mattharrison / IllustratedPy3

Notes and issues for Illustrated Guide to Python 3
13 stars 5 forks source link

Figure 21.3 #278

Closed mclaughlin closed 7 years ago

mclaughlin commented 7 years ago

Figure 21.3 is a great diagram. But to help the user solidfy this example, it might also useful to show them explicitly how to view these class types from the REPL:

>>> Chair.__class__ <class 'type'> >>> Chair.maxoccupants.__class__ <class 'int'> >>> Chair.__init__.__class__ <class 'function'> >>> Chair.load.__class__ <class 'function'> >>> Chair.unload.__class_\ <class 'function'>

mattharrison commented 7 years ago

Love it. Oct 2