Python standard library by Lundh F.

By Lundh F.

Python regular Library is an important advisor for critical Python programmers. Python is a modular language that imports most respected operations from the traditional library (basic aid modules; working approach interfaces; community protocols; dossier codecs; facts conversions; threads and procedures; and information storage). you cannot rather application in Python with out utilizing it. during this ebook, writer Fredrik Lundh, author of the Python Imaging Library (PIL), provides confirmed, actual documentation of the entire modules within the Python ordinary Library, in addition to over three hundred annotated instance scripts utilizing the modules.Python normal Library renders this beneficial info in a fresh, easy-to-read structure, but does not speak all the way down to readers. This actual and entire reference documentation is for the Python programmer who desires the proof and little else.The ebook is predicated at the author's paintings with the Python newsgroup: he reviewed greater than 2500 questions and solutions to that newsgroup with the intention to ensure the e-book lined what Python clients quite desired to recognize. An previous model of this ebook has been on hand electronically for over a 12 months, so the cloth has been confirmed via Python programmers in real-life applications.This model of Python typical Library covers all of the new modules and comparable details for Python 2.0, the 1st new significant unencumber of Python in 4 years.

Show description

Read Online or Download Python standard library PDF

Similar python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via information constructions, Washington and Lee college professor Kenneth A. Lambert offers all the very important themes in CS1 and CS2 in a single quantity. This in your price range structure presents teachers with a constant method of educating introductory programming and information buildings over a regular two-term path series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for information research is worried with the nuts and bolts of manipulating, processing, cleansing, and crunching facts in Python. it's also a pragmatic, glossy creation to clinical computing in Python, adapted for data-intensive functions. this can be a ebook concerning the components of the Python language and libraries you'll have to successfully remedy a extensive set of information research difficulties.

Python and AWS

When you intend to take advantage of Amazon net companies (AWS) for distant computing and garage, Python is a perfect programming language for constructing functions and controlling your cloud-based infrastructure. This cookbook will get you begun with greater than dozen recipes for utilizing Python with AWS, in accordance with the author’s boto library.

Artificial Intelligence with Python

Construct real-world synthetic Intelligence purposes with Python to intelligently have interaction with the area round you approximately This ebook Step into the fantastic global of clever apps utilizing this complete advisor input the area of synthetic Intelligence, discover it, and create your personal functions paintings via uncomplicated but insightful examples that may get you up and operating with man made Intelligence very quickly Who This ebook Is For This publication is for Python builders who are looking to construct real-world man made Intelligence purposes.

Extra info for Python standard library

Example text

Example 14-16. 14 The dircache Module (Obsolete) The dircache module contains a function to get a list of files in a directory. listdir function in that it keeps a cache to avoid rereading a directory that hasn't been modified. Example 14-17 demonstrates this. Example 14-17. 2) The dircmp module provides a class that can be used to compare the contents of two disk directories, as Example 14-18 shows. Example 14-18. 0 and later, this module has been replaced by filecmp. 9 The UserList Module The UserList module contains a list class that can be subclassed (simply a Python wrapper for the built-in list type).

2 and earlier, the string module uses functions from the strop implementation module where possible. 6 and later, most string operations are made available as string methods as well, as shown in Example 1-52. Many of the functions in the string module are simply wrapper functions that call the corresponding string method. Example 1-52. count("n") upper => MONTY PYTHON'S FLYING CIRCUS lower => monty python's flying circus split => ['Monty', "Python's", 'Flying', 'Circus'] join => Monty+Python's+Flying+Circus replace => Monty Perl's Flying Circus find => 6 -1 count => 3 In addition to the string-manipulation capabilities offered by string, the module also contains a number of functions that convert strings to other types (as Example 1-53 demonstrates).

0 See the Python Library Reference for a full list of functions. 10 The cmath Module The cmath module shown in Example 1-61 contains a number of mathematical operations for complex numbers. Example 1-61. 14159265359 sqrt(-1) => 1j See the Python Library Reference for a full list of functions. 11 The operator Module The operator module provides a "functional" interface to the standard operators in Python. The functions in this module can be used instead of some lambda constructs, when processing data with functions like map and filter.

Download PDF sample

Rated 4.83 of 5 – based on 35 votes