Prototypes - University of Arizona

This is a re-write of pp. 295-390 in Learning Python, 2nd ed., by Mark Lutz and David Ascher. ... The interpreter knows the difference between an instance cat2 and a prototype Cat even if we fail to follow the convention of capitalizing prototypes. Line 4 is another example of searching a hierarchy for needed attributes. Only name and sound are ... ................
................