replacement covered in sdictionary compare sorted( items()(or loop code types listtype list (types is for non-built-in names __metaclass__ class (metaclass= ) __builtin__ builtins (renamed tkinter tkinter (renamed sys exc_typeexc_value sys exc_info()[ ][ function func_code function __code__ __getattr__ run by built-ins redefine __x__ methods in wrapper classes - -tt command-line switches inconsistent tabs/spaces use is always an error from *within function may only appear at the top level of file import modin same package from import modpackage-rel class myexceptionclass myexception(excep tion) exceptions module built-in scopelibrary manual threadqueue modules _threadqueue (both renamed anydbm module dbm (renamed cpickle module _pickle (renamedused automati os popen subprocess popen (os popen re string-based exceptions class-based exceptions (also required in string module functions string object methods unbound methods functions (staticmethod to call via instance mixed type comparisonssorts nonnumeric mixed type magnitude comparisons (and sortsare errors onlyative form callytainedthird edition python changes the third edition of this book was thoroughly updated to reflect python and all changes to the language made after the publication of the second edition in late (the second edition was based largely on python with some features grafted on at the end of the project in additionbrief discussions of anticipated changes in appendix cpython changes and this book