2007-08-15 11:28:01 -03:00
|
|
|
.. _library-index:
|
|
|
|
|
|
|
|
###############################
|
|
|
|
The Python Standard Library
|
|
|
|
###############################
|
|
|
|
|
|
|
|
:Release: |version|
|
|
|
|
:Date: |today|
|
|
|
|
|
2008-09-12 23:09:15 -03:00
|
|
|
While :ref:`reference-index` describes the exact syntax and
|
2007-08-15 11:28:01 -03:00
|
|
|
semantics of the Python language, this library reference manual
|
|
|
|
describes the standard library that is distributed with Python. It also
|
|
|
|
describes some of the optional components that are commonly included
|
|
|
|
in Python distributions.
|
|
|
|
|
|
|
|
Python's standard library is very extensive, offering a wide range of
|
|
|
|
facilities as indicated by the long table of contents listed below. The
|
|
|
|
library contains built-in modules (written in C) that provide access to
|
|
|
|
system functionality such as file I/O that would otherwise be
|
|
|
|
inaccessible to Python programmers, as well as modules written in Python
|
|
|
|
that provide standardized solutions for many problems that occur in
|
|
|
|
everyday programming. Some of these modules are explicitly designed to
|
|
|
|
encourage and enhance the portability of Python programs by abstracting
|
|
|
|
away platform-specifics into platform-neutral APIs.
|
|
|
|
|
2008-09-13 14:41:16 -03:00
|
|
|
The Python installers for the Windows platform usually includes
|
2007-08-15 11:28:01 -03:00
|
|
|
the entire standard library and often also include many additional
|
|
|
|
components. For Unix-like operating systems Python is normally provided
|
|
|
|
as a collection of packages, so it may be necessary to use the packaging
|
|
|
|
tools provided with the operating system to obtain some or all of the
|
|
|
|
optional components.
|
|
|
|
|
|
|
|
In addition to the standard library, there is a growing collection of
|
2008-04-07 04:39:23 -03:00
|
|
|
several thousand components (from individual programs and modules to
|
|
|
|
packages and entire application development frameworks), available from
|
|
|
|
the `Python Package Index <http://pypi.python.org/pypi>`_.
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
Merged revisions 70642,70648,70656,70661,70765,70773,70789,70824-70825,70828,70830,70832,70836,70838,70842,70851,70855,70857-70858 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70642 | georg.brandl | 2009-03-28 01:48:48 +0100 (Sa, 28 Mär 2009) | 1 line
Fix typo.
........
r70648 | georg.brandl | 2009-03-28 20:10:37 +0100 (Sa, 28 Mär 2009) | 1 line
#5324: document __subclasses__().
........
r70656 | georg.brandl | 2009-03-28 20:33:33 +0100 (Sa, 28 Mär 2009) | 2 lines
Add a script to fixup rst files if the pre-commit hook rejects them.
........
r70661 | georg.brandl | 2009-03-28 20:57:36 +0100 (Sa, 28 Mär 2009) | 2 lines
Add section numbering to some of the larger subdocuments.
........
r70765 | georg.brandl | 2009-03-31 00:09:34 +0200 (Di, 31 Mär 2009) | 1 line
#5199: make warning about vars() assignment more visible.
........
r70773 | georg.brandl | 2009-03-31 00:43:00 +0200 (Di, 31 Mär 2009) | 1 line
#5039: make it clear that the impl. note refers to CPython.
........
r70789 | georg.brandl | 2009-03-31 03:25:15 +0200 (Di, 31 Mär 2009) | 1 line
Fix a wrong struct field assignment (docstring as closure).
........
r70824 | georg.brandl | 2009-03-31 17:43:20 +0200 (Di, 31 Mär 2009) | 1 line
#5519: remove reference to Kodos, which seems dead.
........
r70825 | georg.brandl | 2009-03-31 17:46:30 +0200 (Di, 31 Mär 2009) | 1 line
#5566: fix versionadded from PyLong ssize_t functions.
........
r70828 | georg.brandl | 2009-03-31 17:50:16 +0200 (Di, 31 Mär 2009) | 1 line
#5581: fget argument of abstractproperty is optional as well.
........
r70830 | georg.brandl | 2009-03-31 18:11:45 +0200 (Di, 31 Mär 2009) | 1 line
#5529: backport new docs of import semantics written by Brett to 2.x.
........
r70832 | georg.brandl | 2009-03-31 18:31:11 +0200 (Di, 31 Mär 2009) | 1 line
#1386675: specify WindowsError as the exception, because it has a winerror attribute that EnvironmentError doesnt have.
........
r70836 | georg.brandl | 2009-03-31 18:50:25 +0200 (Di, 31 Mär 2009) | 1 line
#5417: replace references to undocumented functions by ones to documented functions.
........
r70838 | georg.brandl | 2009-03-31 18:54:38 +0200 (Di, 31 Mär 2009) | 1 line
#992207: document that the parser only accepts \\n newlines.
........
r70842 | georg.brandl | 2009-03-31 19:13:06 +0200 (Di, 31 Mär 2009) | 1 line
#970783: document PyObject_Generic[GS]etAttr.
........
r70851 | georg.brandl | 2009-03-31 20:26:55 +0200 (Di, 31 Mär 2009) | 1 line
#837577: note cryptic return value of spawn*e on invalid env dicts.
........
r70855 | georg.brandl | 2009-03-31 20:30:37 +0200 (Di, 31 Mär 2009) | 1 line
#5245: note that PyRun_SimpleString doesnt return on SystemExit.
........
r70857 | georg.brandl | 2009-03-31 20:33:10 +0200 (Di, 31 Mär 2009) | 1 line
#5227: note that Py_Main doesnt return on SystemExit.
........
r70858 | georg.brandl | 2009-03-31 20:38:56 +0200 (Di, 31 Mär 2009) | 1 line
#5241: document missing U in regex howto.
........
2009-04-05 18:11:43 -03:00
|
|
|
:numbered:
|
2007-08-15 11:28:01 -03:00
|
|
|
|
|
|
|
intro.rst
|
|
|
|
functions.rst
|
|
|
|
constants.rst
|
|
|
|
stdtypes.rst
|
|
|
|
exceptions.rst
|
|
|
|
|
|
|
|
strings.rst
|
|
|
|
datatypes.rst
|
|
|
|
numeric.rst
|
|
|
|
filesys.rst
|
|
|
|
persistence.rst
|
|
|
|
archiving.rst
|
|
|
|
fileformats.rst
|
|
|
|
crypto.rst
|
|
|
|
allos.rst
|
|
|
|
someos.rst
|
|
|
|
ipc.rst
|
|
|
|
netdata.rst
|
|
|
|
markup.rst
|
|
|
|
internet.rst
|
|
|
|
mm.rst
|
|
|
|
i18n.rst
|
|
|
|
frameworks.rst
|
|
|
|
tk.rst
|
|
|
|
development.rst
|
2007-09-12 15:03:51 -03:00
|
|
|
debug.rst
|
2007-08-15 11:28:01 -03:00
|
|
|
python.rst
|
|
|
|
custominterp.rst
|
|
|
|
restricted.rst
|
|
|
|
modules.rst
|
|
|
|
language.rst
|
|
|
|
compiler.rst
|
|
|
|
misc.rst
|
|
|
|
windows.rst
|
|
|
|
unix.rst
|
|
|
|
mac.rst
|
|
|
|
macosa.rst
|
|
|
|
sgi.rst
|
|
|
|
sun.rst
|
|
|
|
undoc.rst
|