namespacesthe conclusion simple namesglobal unless assigned attribute namesobject namespaces the "zenof namespacesassignments classify names nested classesthe legb scopes rule revisited namespace dictionariesreview namespace linksa tree climber documentation strings revisited classes versus modules summary test your knowledgequiz test your knowledgeanswers operator overloading the basics constructors and expressions__init__ and __sub__ common operator overloading methods indexing and slicing__getitem__ and __setitem__ intercepting slices slicing and indexing in python but ' __index__ is not indexingindex iteration__getitem__ iterable objects__iter__ and __next__ user-defined iterables multiple iterators on one object coding alternative__iter__ plus yield membership__contains____iter__and __getitem__ attribute access__getattr__ and __setattr__ attribute reference attribute assignment and deletion other attribute management tools emulating privacy for instance attributespart string representation__repr__ and __str__ why two display methodsdisplay usage notes right-side and in-place uses__radd__ and __iadd__ right-side addition in-place addition call expressions__call__ function interfaces and callback-based code comparisons__lt____gt__and others the __cmp__ method in python xxii table of contents