Other Library Enhancements

time module

  • Many functions now have optional arguments.
     print time.asctime()
     
     # compare to
     
     print time.asctime(time.localtime(time.time()))

UserString module

  • A subclassable wrapper around string objects

filecmp module

  • Functions for comparing files and directories
<<< O'Reilly OSCON 2001, New Features in Python 2, Slide 70
July 26, 2001, beazley@cs.uchicago.edu
>>>