Closed mclaughlin closed 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'>
Love it. Oct 2
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'>