liveBook · Manning

Object system

As explained in Python Workout, Second Edition

An object system is the collection of language mechanisms governing object creation, classes, inheritance, and object interactions.

An object system defines how objects are created, how classes are defined and interact with their parents, and how classes interact with the rest of the world. Understanding these rules makes both user-created objects and built-in language objects easier to use. section 10.2

Use the object system to reason about:

  • Object creation and the behavior shared by objects. section 10.2
  • Class definitions, parent relationships, and inheritance behavior. section 10.2
  • Attribute lookup through the instance, class, parents, and object sequence. section 10.2
  • Choosing object-oriented, procedural, functional, or mixed styles without escaping object use. section 10.2

How Python Workout, Second Edition covers it

How deep it goes
Defines creation, classes, parents, and attribute lookup while deferring detailed treatment of the lookup rules.
Examples
Uses user-created objects and built-in language objects as the central examples.
What you can do after
Evaluate how Python objects and classes behave when writing code in any supported programming style.
How it connects
Connects objects with classes, inheritance, attribute lookup, and procedural, functional, and object-oriented programming.

This explainer was generated by Manning's knowledge graph from the text of Python Workout, Second Edition. The section links point to the parts of the book it draws on.