Buying Options
Python Standard Library
Print $29.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
Python Standard Library, an essential guide for serious Python programmers, delivers accurate, author-tested documentation of all the modules in the Python Standard Library, along with over 300 annotated example scripts using the modules. This version of the book covers all the new modules and related information for Python 2.0, the first major release of Python in four years.
Full Description
Table of Contents
  1. Chapter 1 Core Modules

    1. Introduction

    2. The _ _builtin_ _ Module

    3. The exceptions Module

    4. The os Module

    5. The os.path Module

    6. The stat Module

    7. The string Module

    8. The re Module

    9. The math Module

    10. The cmath Module

    11. The operator Module

    12. The copy Module

    13. The sys Module

    14. The atexit Module

    15. The time Module

    16. The types Module

    17. The gc Module

  2. Chapter 2 More Standard Modules

    1. Overview

    2. The fileinput Module

    3. The shutil Module

    4. The tempfile Module

    5. The StringIO Module

    6. The cStringIO Module

    7. The mmap Module

    8. The UserDict Module

    9. The UserList Module

    10. The UserString Module

    11. The traceback Module

    12. The errno Module

    13. The getopt Module

    14. The getpass Module

    15. The glob Module

    16. The fnmatch Module

    17. The random Module

    18. The whrandom Module

    19. The md5 Module

    20. The sha Module

    21. The crypt Module

    22. The rotor Module

    23. The zlib Module

    24. The code Module

  3. Chapter 3 Threads and Processes

    1. Overview

    2. The threading Module

    3. The Queue Module

    4. The thread Module

    5. The commands Module

    6. The pipes Module

    7. The popen2 Module

    8. The signal Module

  4. Chapter 4 Data Representation

    1. Overview

    2. The array Module

    3. The struct Module

    4. The xdrlib Module

    5. The marshal Module

    6. The pickle Module

    7. The cPickle Module

    8. The copy_reg Module

    9. The pprint Module

    10. The repr Module

    11. The base64 Module

    12. The binhex Module

    13. The quopri Module

    14. The uu Module

    15. The binascii Module

  5. Chapter 5 File Formats

    1. Overview

    2. The xmllib Module

    3. The xml.parsers.expat Module

    4. The sgmllib Module

    5. The htmllib Module

    6. The htmlentitydefs Module

    7. The formatter Module

    8. The ConfigParser Module

    9. The netrc Module

    10. The shlex Module

    11. The zipfile Module

    12. The gzip Module

  6. Chapter 6 Mail and News Message Processing

    1. Overview

    2. The rfc822 Module

    3. The mimetools Module

    4. The MimeWriter Module

    5. The mailbox Module

    6. The mailcap Module

    7. The mimetypes Module

    8. The packmail Module

    9. The mimify Module

    10. The multifile Module

  7. Chapter 7 Network Protocols

    1. Overview

    2. The socket Module

    3. The select Module

    4. The asyncore Module

    5. The asynchat Module

    6. The urllib Module

    7. The urlparse Module

    8. The cookie Module

    9. The robotparser Module

    10. The ftplib Module

    11. The gopherlib Module

    12. The httplib Module

    13. The poplib Module

    14. The imaplib Module

    15. The smtplib Module

    16. The telnetlib Module

    17. The nntplib Module

    18. The SocketServer Module

    19. The BaseHTTPServer Module

    20. The SimpleHTTPServer Module

    21. The CGIHTTPServer Module

    22. The cgi Module

    23. The webbrowser Module

  8. Chapter 8 Internationalization

    1. The locale Module

    2. The unicodedata Module

    3. The ucnhash Module

  9. Chapter 9 Multimedia Modules

    1. Overview

    2. The imghdr Module

    3. The sndhdr module

    4. The whatsound Module

    5. The aifc Module

    6. The sunau Module

    7. The sunaudio Module

    8. The wave Module

    9. The audiodev Module

    10. The winsound Module

    11. The colorsys Module

  10. Chapter 10 Data Storage

    1. Overview

    2. The anydbm Module

    3. The whichdb Module

    4. The shelve Module

    5. The dbhash Module

    6. The dbm Module

    7. The dumbdbm Module

    8. The gdbm Module

  11. Chapter 11 Tools and Utilities

    1. The dis Module

    2. The pdb Module

    3. The bdb Module

    4. The profile Module

    5. The pstats Module

    6. The tabnanny Module

  12. Chapter 12 Platform-Specific Modules

    1. Overview

    2. The fcntl Module

    3. The pwd Module

    4. The grp Module

    5. The nis Module

    6. The curses Module

    7. The termios Module

    8. The tty Module

    9. The resource Module

    10. The syslog Module

    11. The msvcrt Module

    12. The nt Module

    13. The _winreg Module

    14. The posix Module

  13. Chapter 13 Implementation Support Modules

    1. The dospath Module

    2. The macpath Module

    3. The ntpath Module

    4. The posixpath Module

    5. The strop Module

    6. The imp Module

    7. The new Module

    8. The pre Module

    9. The sre Module

    10. The py_compile Module

    11. The compileall Module

    12. The ihooks Module

    13. The linecache Module

    14. The macurl2path Module

    15. The nturl2path module

    16. The tokenize Module

    17. The keyword Module

    18. The parser Module

    19. The symbol Module

    20. The token Module

  14. Chapter 14 Other Modules

    1. Overview

    2. The pyclbr Module

    3. The filecmp Module

    4. The cmd Module

    5. The rexec Module

    6. The Bastion Module

    7. The readline Module

    8. The rlcompleter Module

    9. The statvfs Module

    10. The calendar Module

    11. The sched Module

    12. The statcache Module

    13. The grep Module

    14. The dircache Module

    15. The dircmp Module

    16. The cmp Module

    17. The cmpcache Module

    18. The util Module

    19. The soundex Module

    20. The timing Module

    21. The posixfile Module

    22. The bisect Module

    23. The knee Module

    24. The tzparse Module

    25. The regex Module

    26. The regsub Module

    27. The reconvert Module

    28. The regex_syntax Module

    29. The find Module

  1. Colophon

View Full Table of Contents
Product Details
Title:
Python Standard Library
By:
Fredrik Lundh
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
May 2001
Pages:
304
Print ISBN:
978-0-596-00096-7
| ISBN 10:
0-596-00096-0
Customer Reviews
About the Author
  1. Fredrik Lundh

    Fredrik Lundh is a principal of Secret Labs, Inc., the creators of PythonWorks, an integrated development environment (IDE) for Python. He is an expert on the use of Python with images and graphics and is also the creator of the Python Imaging Library (PIL). He is an active member of the Python community and a frequent contributor to the Python newsgroups.

    View Fredrik Lundh's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animals on the cover of Python Standard Library are harvest mice. Many species of harvest mice populate North American grasslands and marshes, while only one species—Micromys minutus, the Old World harvest mouse—resides in the grasslands and farmlands of Europe and Asia.

Smaller than the common house mouse, the harvest mouse sports prominent ears and a very long hairy tail, and its hind feet have an opposable fifth toe for grasping and climbing stems. Behaviorally, harvest mice set themselves apart from other mice species by building breeding nests suspended in high grasses. These nests are baseball-sized globes of woven grass with small entrance holes and are lined with soft plant material, such as dandelion fluff, to keep the young warm. The young are born in litters of three to six, completely dependent on the mother (the father is not allowed in the nest). By the time they are five weeks old, however, they are independent and sexually mature. Overall, harvest mice typically live for six to eighteen months in the wild—enough time for a female to produce one to six litters in her lifetime. These numbers are much higher for mice in captivity.

The harvest mouse is a "cover dependent" species, as it relies on brush and vegetation to hide its small, brown body from predators as it forages for seeds and insect larvae. It moves slowly and adopts a still "camouflage posture" as further defense; overall, it is much more calm than the common house mouse.

The Western, Eastern, and Fulvous harvest mice (Reithrodontomys megalotis, Reithrodontomys humulis, and Reithrodontomys fulvescens, respectively) currently populate various regions of the United States and Canada with relative success, challenged somewhat by habitat loss due to crop farming, cattle grazing, and urbanization. However, their cousin the Saltmarsh harvest mouse (Reithrodontomys raviventris) suffers severe threat due to the filling in of its dwindling marshland home in the San Francisco Bay Area. The only endangered harvest mouse species, its members number in only the hundreds to the few thousands. Catherine Morris was the production editor and proofreader, and Linley Dolby was the copyeditor for Python Standard Library. Emily Quill, Matt Hutchinson, and Claire Cloutier provided quality control. Joe Wizda wrote the index. Interior composition was done by Gabe Weiss, Matt Hutchinson, and Catherine Morris.

Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. Emma Colby also designed the CD label.

David Futato designed the interior layout based on a series design by Nancy Priest. The print version of this book was created by translating the DocBook SGML markup of its source files into a set of gtroff macros using a filter developed at O'Reilly & Associates by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff –gs macros; Lenny Muellner adapted them to SGML and implemented the book design. The GNU groff text formatter Version 1.11.1 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. This colophon was written by Sarah Jane Shangraw.

  • Book cover of Python Standard Library