Protocols, Polymorphism and Descriptors

  • Hunt J
N/ACitations
Citations of this article
7Readers
Mendeley users who have this article in their library.
Get full text

Abstract

In this chapter we will explore the idea of an implicit contract between an object and the code that uses that object. As part of this discussion we will explore what is meant by Duck Typing. Following this we will introduce the Python concept called a protocol. We will explore its role within Python programming and look at two commonly occurring protocols; the Context Manager Protocol and the Descriptor Protocol.

Cite

CITATION STYLE

APA

Hunt, J. (2019). Protocols, Polymorphism and Descriptors (pp. 311–323). https://doi.org/10.1007/978-3-030-20290-3_27

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free