Python Standard Library (Nutshell Handbooks)
Python Standard Library (Nutshell Handbooks) by Fredrik Lundh
- Binding:
- Paperback
- Number of Pages:
- 304
- ISBN:
- 0596000960
- Product Group:
- book
- Publisher:
- O'Reilly Media
- Publication Date:
- May 10, 2001
- BooksForGeeks.com ID:
- 2402
Ideal for any working Python developer, Fredik Lundh's Python Standard Library provides an excellent tour of some of the most important modules in today's Python 2.0 standard. Mixing sample code and plenty of expert advice, this title will be indispensable for programmers.
The book presents sample script code for almost 200 of the built-in modules in Python 2.0--written by a frequent contributor to Python newsgroups--and shows how to solve common programming problems in Python. Instead of a function-based reference, you get sample scripts for a wide variety of solutions centring on different Python modules.
Early sections look at core modules for working with the operating system, maths and strings, among other functions. Material on Python's excellent support for files and directories will help you master the file system. Explanations of various encryption schemes will let you add security to your Python scripts.
Getting Python to multitask with multiple threads comes next, along with getting Python programs to communicate using pipes and signals. After sample scripts for "pickling" Python objects to and from files, the book delves into modules that are geared toward today's Internet. First, there's coverage of Python's support for XML, HTML and SGML, followed by a discussion of its extensive networking support for low-level sockets to high-level Internet protocols, including e-mail and FTP. Sample scripts for e-mail will be really useful for any Python programmer.
Later chapters provide coverage of internationalisation support in Python and its support for multimedia. The book closes with material on platform-specific modules (which are specific to Unix and/or Windows) as well as modules that are obsolete but necessary to understanding legacy Python code.
There's a lot of expertise on display in Python Standard Library. The code does much of the talking in this example-packed text, which is sure to earn its place on any working Python programmer's bookshelf. --Richard Dragan
Topics covered:
- introduction to the Python 2.0 standard modules
- core modules (including modules for operating system functions, string, maths and time)
- file and directory modules
- encryption and security modules
- threads, processes, pipes and signals in Python
- persisting Python objects (marshalling and "pickling" objects)
- Python modules for XML, HTML and SGML
- modules for e-mail and news support
- Internet programming with Python (including sockets, a chat example, FTP, SMTP, IMAP, POP and Telnet)
- internationalisation support
- mmmodules for multimedia support (image and sound files)
- data storage in Python (with shelves)
- Python tools
- platform-specific modules (including Unix- and Windows-specific modules)
- miscellaneous and legacy Python modules
Reviews for Python Standard Library (Nutshell Handbooks)
-
A good guide, but not a reference
Rated out of 5 stars, June 12th, 2001
This book isn't really a reference for the Python standard library - David Beazley's "Python Essential Reference" probably fills that gap better - but it is a very useful guide to what the library can be used for, with a comprehensive and motivated selection of code examples.

