Title: The Python Standard Library — Python 2.7.18 documentation
Domain: docs.python.org
Links:
| no longer supported | https://devguide.python.org/devcycle/#end-of-life-branches |
| Python documentation for the current stable release | https://docs.python.org/3/library/index.html |
| index | https://docs.python.org/genindex.html |
| modules | https://docs.python.org/py-modindex.html |
| next | https://docs.python.org/2/intro.html |
| previous | https://docs.python.org/reference/grammar.html |
| Python | https://www.python.org/ |
| Python 2.7.18 documentation | https://docs.python.org/index.html |
| ¶ | https://docs.python.org/2/library#the-python-standard-library |
| The Python Language Reference | https://docs.python.org/reference/index.html#reference-index |
| Python Package Index | https://pypi.org |
| 1. Introduction | https://docs.python.org/2/intro.html |
| 2. Built-in Functions | https://docs.python.org/2/functions.html |
| 3. Non-essential Built-in Functions | https://docs.python.org/2/functions.html#non-essential-built-in-functions |
| 4. Built-in Constants | https://docs.python.org/2/constants.html |
| 4.1. Constants added by the site module | https://docs.python.org/2/constants.html#constants-added-by-the-site-module |
| 5. Built-in Types | https://docs.python.org/2/stdtypes.html |
| 5.1. Truth Value Testing | https://docs.python.org/2/stdtypes.html#truth-value-testing |
| 5.2. Boolean Operations — and, or, not | https://docs.python.org/2/stdtypes.html#boolean-operations-and-or-not |
| 5.3. Comparisons | https://docs.python.org/2/stdtypes.html#comparisons |
| 5.4. Numeric Types — int, float, long, complex | https://docs.python.org/2/stdtypes.html#numeric-types-int-float-long-complex |
| 5.5. Iterator Types | https://docs.python.org/2/stdtypes.html#iterator-types |
| 5.6. Sequence Types — str, unicode, list, tuple, bytearray, buffer, xrange | https://docs.python.org/2/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange |
| 5.7. Set Types — set, frozenset | https://docs.python.org/2/stdtypes.html#set-types-set-frozenset |
| 5.8. Mapping Types — dict | https://docs.python.org/2/stdtypes.html#mapping-types-dict |
| 5.9. File Objects | https://docs.python.org/2/stdtypes.html#file-objects |
| 5.10. memoryview type | https://docs.python.org/2/stdtypes.html#memoryview-type |
| 5.11. Context Manager Types | https://docs.python.org/2/stdtypes.html#context-manager-types |
| 5.12. Other Built-in Types | https://docs.python.org/2/stdtypes.html#other-built-in-types |
| 5.13. Special Attributes | https://docs.python.org/2/stdtypes.html#special-attributes |
| 6. Built-in Exceptions | https://docs.python.org/2/exceptions.html |
| 6.1. Exception hierarchy | https://docs.python.org/2/exceptions.html#exception-hierarchy |
| 7. String Services | https://docs.python.org/2/strings.html |
| 7.1. string — Common string operations | https://docs.python.org/2/string.html |
| 7.2. re — Regular expression operations | https://docs.python.org/2/re.html |
| 7.3. struct — Interpret strings as packed binary data | https://docs.python.org/2/struct.html |
| 7.4. difflib — Helpers for computing deltas | https://docs.python.org/2/difflib.html |
| 7.5. StringIO — Read and write strings as files | https://docs.python.org/2/stringio.html |
| 7.6. cStringIO — Faster version of StringIO | https://docs.python.org/2/stringio.html#module-cStringIO |
| 7.7. textwrap — Text wrapping and filling | https://docs.python.org/2/textwrap.html |
| 7.8. codecs — Codec registry and base classes | https://docs.python.org/2/codecs.html |
| 7.9. unicodedata — Unicode Database | https://docs.python.org/2/unicodedata.html |
| 7.10. stringprep — Internet String Preparation | https://docs.python.org/2/stringprep.html |
| 7.11. fpformat — Floating point conversions | https://docs.python.org/2/fpformat.html |
| 8. Data Types | https://docs.python.org/2/datatypes.html |
| 8.1. datetime — Basic date and time types | https://docs.python.org/2/datetime.html |
| 8.2. calendar — General calendar-related functions | https://docs.python.org/2/calendar.html |
| 8.3. collections — High-performance container datatypes | https://docs.python.org/2/collections.html |
| 8.4. heapq — Heap queue algorithm | https://docs.python.org/2/heapq.html |
| 8.5. bisect — Array bisection algorithm | https://docs.python.org/2/bisect.html |
| 8.6. array — Efficient arrays of numeric values | https://docs.python.org/2/array.html |
| 8.7. sets — Unordered collections of unique elements | https://docs.python.org/2/sets.html |
| 8.8. sched — Event scheduler | https://docs.python.org/2/sched.html |
| 8.9. mutex — Mutual exclusion support | https://docs.python.org/2/mutex.html |
| 8.10. Queue — A synchronized queue class | https://docs.python.org/2/queue.html |
| 8.11. weakref — Weak references | https://docs.python.org/2/weakref.html |
| 8.12. UserDict — Class wrapper for dictionary objects | https://docs.python.org/2/userdict.html |
| 8.13. UserList — Class wrapper for list objects | https://docs.python.org/2/userdict.html#module-UserList |
| 8.14. UserString — Class wrapper for string objects | https://docs.python.org/2/userdict.html#module-UserString |
| 8.15. types — Names for built-in types | https://docs.python.org/2/types.html |
| 8.16. new — Creation of runtime internal objects | https://docs.python.org/2/new.html |
| 8.17. copy — Shallow and deep copy operations | https://docs.python.org/2/copy.html |
| 8.18. pprint — Data pretty printer | https://docs.python.org/2/pprint.html |
| 8.19. repr — Alternate repr() implementation | https://docs.python.org/2/repr.html |
| 9. Numeric and Mathematical Modules | https://docs.python.org/2/numeric.html |
| 9.1. numbers — Numeric abstract base classes | https://docs.python.org/2/numbers.html |
| 9.2. math — Mathematical functions | https://docs.python.org/2/math.html |
| 9.3. cmath — Mathematical functions for complex numbers | https://docs.python.org/2/cmath.html |
| 9.4. decimal — Decimal fixed point and floating point arithmetic | https://docs.python.org/2/decimal.html |
| 9.5. fractions — Rational numbers | https://docs.python.org/2/fractions.html |
| 9.6. random — Generate pseudo-random numbers | https://docs.python.org/2/random.html |
| 9.7. itertools — Functions creating iterators for efficient looping | https://docs.python.org/2/itertools.html |
| 9.8. functools — Higher-order functions and operations on callable objects | https://docs.python.org/2/functools.html |
| 9.9. operator — Standard operators as functions | https://docs.python.org/2/operator.html |
| 10. File and Directory Access | https://docs.python.org/2/filesys.html |
| 10.1. os.path — Common pathname manipulations | https://docs.python.org/2/os.path.html |
| 10.2. fileinput — Iterate over lines from multiple input streams | https://docs.python.org/2/fileinput.html |
| 10.3. stat — Interpreting stat() results | https://docs.python.org/2/stat.html |
| 10.4. statvfs — Constants used with os.statvfs() | https://docs.python.org/2/statvfs.html |
| 10.5. filecmp — File and Directory Comparisons | https://docs.python.org/2/filecmp.html |
| 10.6. tempfile — Generate temporary files and directories | https://docs.python.org/2/tempfile.html |
| 10.7. glob — Unix style pathname pattern expansion | https://docs.python.org/2/glob.html |
| 10.8. fnmatch — Unix filename pattern matching | https://docs.python.org/2/fnmatch.html |
| 10.9. linecache — Random access to text lines | https://docs.python.org/2/linecache.html |
| 10.10. shutil — High-level file operations | https://docs.python.org/2/shutil.html |
| 10.11. dircache — Cached directory listings | https://docs.python.org/2/dircache.html |
| 10.12. macpath — Mac OS 9 path manipulation functions | https://docs.python.org/2/macpath.html |
| 11. Data Persistence | https://docs.python.org/2/persistence.html |
| 11.1. pickle — Python object serialization | https://docs.python.org/2/pickle.html |
| 11.2. cPickle — A faster pickle | https://docs.python.org/2/pickle.html#module-cPickle |
| 11.3. copy_reg — Register pickle support functions | https://docs.python.org/2/copy_reg.html |
| 11.4. shelve — Python object persistence | https://docs.python.org/2/shelve.html |
| 11.5. marshal — Internal Python object serialization | https://docs.python.org/2/marshal.html |
| 11.6. anydbm — Generic access to DBM-style databases | https://docs.python.org/2/anydbm.html |
| 11.7. whichdb — Guess which DBM module created a database | https://docs.python.org/2/whichdb.html |
| 11.8. dbm — Simple “database” interface | https://docs.python.org/2/dbm.html |
| 11.9. gdbm — GNU’s reinterpretation of dbm | https://docs.python.org/2/gdbm.html |
| 11.10. dbhash — DBM-style interface to the BSD database library | https://docs.python.org/2/dbhash.html |
| 11.11. bsddb — Interface to Berkeley DB library | https://docs.python.org/2/bsddb.html |
| 11.12. dumbdbm — Portable DBM implementation | https://docs.python.org/2/dumbdbm.html |
| 11.13. sqlite3 — DB-API 2.0 interface for SQLite databases | https://docs.python.org/2/sqlite3.html |
| 12. Data Compression and Archiving | https://docs.python.org/2/archiving.html |
| 12.1. zlib — Compression compatible with gzip | https://docs.python.org/2/zlib.html |
| 12.2. gzip — Support for gzip files | https://docs.python.org/2/gzip.html |
| 12.3. bz2 — Compression compatible with bzip2 | https://docs.python.org/2/bz2.html |
| 12.4. zipfile — Work with ZIP archives | https://docs.python.org/2/zipfile.html |
| 12.5. tarfile — Read and write tar archive files | https://docs.python.org/2/tarfile.html |
| 13. File Formats | https://docs.python.org/2/fileformats.html |
| 13.1. csv — CSV File Reading and Writing | https://docs.python.org/2/csv.html |
| 13.2. ConfigParser — Configuration file parser | https://docs.python.org/2/configparser.html |
| 13.3. robotparser — Parser for robots.txt | https://docs.python.org/2/robotparser.html |
| 13.4. netrc — netrc file processing | https://docs.python.org/2/netrc.html |
| 13.5. xdrlib — Encode and decode XDR data | https://docs.python.org/2/xdrlib.html |
| 13.6. plistlib — Generate and parse Mac OS X .plist files | https://docs.python.org/2/plistlib.html |
| 14. Cryptographic Services | https://docs.python.org/2/crypto.html |
| 14.1. hashlib — Secure hashes and message digests | https://docs.python.org/2/hashlib.html |
| 14.2. hmac — Keyed-Hashing for Message Authentication | https://docs.python.org/2/hmac.html |
| 14.3. md5 — MD5 message digest algorithm | https://docs.python.org/2/md5.html |
| 14.4. sha — SHA-1 message digest algorithm | https://docs.python.org/2/sha.html |
| 15. Generic Operating System Services | https://docs.python.org/2/allos.html |
| 15.1. os — Miscellaneous operating system interfaces | https://docs.python.org/2/os.html |
| 15.2. io — Core tools for working with streams | https://docs.python.org/2/io.html |
| 15.3. time — Time access and conversions | https://docs.python.org/2/time.html |
| 15.4. argparse — Parser for command-line options, arguments and sub-commands | https://docs.python.org/2/argparse.html |
| 15.5. optparse — Parser for command line options | https://docs.python.org/2/optparse.html |
| 15.6. getopt — C-style parser for command line options | https://docs.python.org/2/getopt.html |
| 15.7. logging — Logging facility for Python | https://docs.python.org/2/logging.html |
| 15.8. logging.config — Logging configuration | https://docs.python.org/2/logging.config.html |
| 15.9. logging.handlers — Logging handlers | https://docs.python.org/2/logging.handlers.html |
| 15.10. getpass — Portable password input | https://docs.python.org/2/getpass.html |
| 15.11. curses — Terminal handling for character-cell displays | https://docs.python.org/2/curses.html |
| 15.12. curses.textpad — Text input widget for curses programs | https://docs.python.org/2/curses.html#module-curses.textpad |
| 15.13. curses.ascii — Utilities for ASCII characters | https://docs.python.org/2/curses.ascii.html |
| 15.14. curses.panel — A panel stack extension for curses | https://docs.python.org/2/curses.panel.html |
| 15.15. platform — Access to underlying platform’s identifying data | https://docs.python.org/2/platform.html |
| 15.16. errno — Standard errno system symbols | https://docs.python.org/2/errno.html |
| 15.17. ctypes — A foreign function library for Python | https://docs.python.org/2/ctypes.html |
| 16. Optional Operating System Services | https://docs.python.org/2/someos.html |
| 16.1. select — Waiting for I/O completion | https://docs.python.org/2/select.html |
| 16.2. threading — Higher-level threading interface | https://docs.python.org/2/threading.html |
| 16.3. thread — Multiple threads of control | https://docs.python.org/2/thread.html |
| 16.4. dummy_threading — Drop-in replacement for the threading module | https://docs.python.org/2/dummy_threading.html |
| 16.5. dummy_thread — Drop-in replacement for the thread module | https://docs.python.org/2/dummy_thread.html |
| 16.6. multiprocessing — Process-based “threading” interface | https://docs.python.org/2/multiprocessing.html |
| 16.7. mmap — Memory-mapped file support | https://docs.python.org/2/mmap.html |
| 16.8. readline — GNU readline interface | https://docs.python.org/2/readline.html |
| 16.9. rlcompleter — Completion function for GNU readline | https://docs.python.org/2/rlcompleter.html |
| 17. Interprocess Communication and Networking | https://docs.python.org/2/ipc.html |
| 17.1. subprocess — Subprocess management | https://docs.python.org/2/subprocess.html |
| 17.2. socket — Low-level networking interface | https://docs.python.org/2/socket.html |
| 17.3. ssl — TLS/SSL wrapper for socket objects | https://docs.python.org/2/ssl.html |
| 17.4. signal — Set handlers for asynchronous events | https://docs.python.org/2/signal.html |
| 17.5. popen2 — Subprocesses with accessible I/O streams | https://docs.python.org/2/popen2.html |
| 17.6. asyncore — Asynchronous socket handler | https://docs.python.org/2/asyncore.html |
| 17.7. asynchat — Asynchronous socket command/response handler | https://docs.python.org/2/asynchat.html |
| 18. Internet Data Handling | https://docs.python.org/2/netdata.html |
| 18.1. email — An email and MIME handling package | https://docs.python.org/2/email.html |
| 18.2. json — JSON encoder and decoder | https://docs.python.org/2/json.html |
| 18.3. mailcap — Mailcap file handling | https://docs.python.org/2/mailcap.html |
| 18.4. mailbox — Manipulate mailboxes in various formats | https://docs.python.org/2/mailbox.html |
| 18.5. mhlib — Access to MH mailboxes | https://docs.python.org/2/mhlib.html |
| 18.6. mimetools — Tools for parsing MIME messages | https://docs.python.org/2/mimetools.html |
| 18.7. mimetypes — Map filenames to MIME types | https://docs.python.org/2/mimetypes.html |
| 18.8. MimeWriter — Generic MIME file writer | https://docs.python.org/2/mimewriter.html |
| 18.9. mimify — MIME processing of mail messages | https://docs.python.org/2/mimify.html |
| 18.10. multifile — Support for files containing distinct parts | https://docs.python.org/2/multifile.html |
| 18.11. rfc822 — Parse RFC 2822 mail headers | https://docs.python.org/2/rfc822.html |
| 18.12. base64 — RFC 3548: Base16, Base32, Base64 Data Encodings | https://docs.python.org/2/base64.html |
| 18.13. binhex — Encode and decode binhex4 files | https://docs.python.org/2/binhex.html |
| 18.14. binascii — Convert between binary and ASCII | https://docs.python.org/2/binascii.html |
| 18.15. quopri — Encode and decode MIME quoted-printable data | https://docs.python.org/2/quopri.html |
| 18.16. uu — Encode and decode uuencode files | https://docs.python.org/2/uu.html |
| 19. Structured Markup Processing Tools | https://docs.python.org/2/markup.html |
| 19.1. HTMLParser — Simple HTML and XHTML parser | https://docs.python.org/2/htmlparser.html |
| 19.2. sgmllib — Simple SGML parser | https://docs.python.org/2/sgmllib.html |
| 19.3. htmllib — A parser for HTML documents | https://docs.python.org/2/htmllib.html |
| 19.4. htmlentitydefs — Definitions of HTML general entities | https://docs.python.org/2/htmllib.html#module-htmlentitydefs |
| 19.5. XML Processing Modules | https://docs.python.org/2/xml.html |
| 19.6. XML vulnerabilities | https://docs.python.org/2/xml.html#xml-vulnerabilities |
| 19.7. xml.etree.ElementTree — The ElementTree XML API | https://docs.python.org/2/xml.etree.elementtree.html |
| 19.8. xml.dom — The Document Object Model API | https://docs.python.org/2/xml.dom.html |
| 19.9. xml.dom.minidom — Minimal DOM implementation | https://docs.python.org/2/xml.dom.minidom.html |
| 19.10. xml.dom.pulldom — Support for building partial DOM trees | https://docs.python.org/2/xml.dom.pulldom.html |
| 19.11. xml.sax — Support for SAX2 parsers | https://docs.python.org/2/xml.sax.html |
| 19.12. xml.sax.handler — Base classes for SAX handlers | https://docs.python.org/2/xml.sax.handler.html |
| 19.13. xml.sax.saxutils — SAX Utilities | https://docs.python.org/2/xml.sax.utils.html |
| 19.14. xml.sax.xmlreader — Interface for XML parsers | https://docs.python.org/2/xml.sax.reader.html |
| 19.15. xml.parsers.expat — Fast XML parsing using Expat | https://docs.python.org/2/pyexpat.html |
| 20. Internet Protocols and Support | https://docs.python.org/2/internet.html |
| 20.1. webbrowser — Convenient Web-browser controller | https://docs.python.org/2/webbrowser.html |
| 20.2. cgi — Common Gateway Interface support | https://docs.python.org/2/cgi.html |
| 20.3. cgitb — Traceback manager for CGI scripts | https://docs.python.org/2/cgitb.html |
| 20.4. wsgiref — WSGI Utilities and Reference Implementation | https://docs.python.org/2/wsgiref.html |
| 20.5. urllib — Open arbitrary resources by URL | https://docs.python.org/2/urllib.html |
| 20.6. urllib2 — extensible library for opening URLs | https://docs.python.org/2/urllib2.html |
| 20.7. httplib — HTTP protocol client | https://docs.python.org/2/httplib.html |
| 20.8. ftplib — FTP protocol client | https://docs.python.org/2/ftplib.html |
| 20.9. poplib — POP3 protocol client | https://docs.python.org/2/poplib.html |
| 20.10. imaplib — IMAP4 protocol client | https://docs.python.org/2/imaplib.html |
| 20.11. nntplib — NNTP protocol client | https://docs.python.org/2/nntplib.html |
| 20.12. smtplib — SMTP protocol client | https://docs.python.org/2/smtplib.html |
| 20.13. smtpd — SMTP Server | https://docs.python.org/2/smtpd.html |
| 20.14. telnetlib — Telnet client | https://docs.python.org/2/telnetlib.html |
| 20.15. uuid — UUID objects according to RFC 4122 | https://docs.python.org/2/uuid.html |
| 20.16. urlparse — Parse URLs into components | https://docs.python.org/2/urlparse.html |
| 20.17. SocketServer — A framework for network servers | https://docs.python.org/2/socketserver.html |
| 20.18. BaseHTTPServer — Basic HTTP server | https://docs.python.org/2/basehttpserver.html |
| 20.19. SimpleHTTPServer — Simple HTTP request handler | https://docs.python.org/2/simplehttpserver.html |
| 20.20. CGIHTTPServer — CGI-capable HTTP request handler | https://docs.python.org/2/cgihttpserver.html |
| 20.21. cookielib — Cookie handling for HTTP clients | https://docs.python.org/2/cookielib.html |
| 20.22. Cookie — HTTP state management | https://docs.python.org/2/cookie.html |
| 20.23. xmlrpclib — XML-RPC client access | https://docs.python.org/2/xmlrpclib.html |
| 20.24. SimpleXMLRPCServer — Basic XML-RPC server | https://docs.python.org/2/simplexmlrpcserver.html |
| 20.25. DocXMLRPCServer — Self-documenting XML-RPC server | https://docs.python.org/2/docxmlrpcserver.html |
| 21. Multimedia Services | https://docs.python.org/2/mm.html |
| 21.1. audioop — Manipulate raw audio data | https://docs.python.org/2/audioop.html |
| 21.2. imageop — Manipulate raw image data | https://docs.python.org/2/imageop.html |
| 21.3. aifc — Read and write AIFF and AIFC files | https://docs.python.org/2/aifc.html |
| 21.4. sunau — Read and write Sun AU files | https://docs.python.org/2/sunau.html |
| 21.5. wave — Read and write WAV files | https://docs.python.org/2/wave.html |
| 21.6. chunk — Read IFF chunked data | https://docs.python.org/2/chunk.html |
| 21.7. colorsys — Conversions between color systems | https://docs.python.org/2/colorsys.html |
| 21.8. imghdr — Determine the type of an image | https://docs.python.org/2/imghdr.html |
| 21.9. sndhdr — Determine type of sound file | https://docs.python.org/2/sndhdr.html |
| 21.10. ossaudiodev — Access to OSS-compatible audio devices | https://docs.python.org/2/ossaudiodev.html |
| 22. Internationalization | https://docs.python.org/2/i18n.html |
| 22.1. gettext — Multilingual internationalization services | https://docs.python.org/2/gettext.html |
| 22.2. locale — Internationalization services | https://docs.python.org/2/locale.html |
| 23. Program Frameworks | https://docs.python.org/2/frameworks.html |
| 23.1. cmd — Support for line-oriented command interpreters | https://docs.python.org/2/cmd.html |
| 23.2. shlex — Simple lexical analysis | https://docs.python.org/2/shlex.html |
| 24. Graphical User Interfaces with Tk | https://docs.python.org/2/tk.html |
| 24.1. Tkinter — Python interface to Tcl/Tk | https://docs.python.org/2/tkinter.html |
| 24.2. ttk — Tk themed widgets | https://docs.python.org/2/ttk.html |
| 24.3. Tix — Extension widgets for Tk | https://docs.python.org/2/tix.html |
| 24.4. ScrolledText — Scrolled Text Widget | https://docs.python.org/2/scrolledtext.html |
| 24.5. turtle — Turtle graphics for Tk | https://docs.python.org/2/turtle.html |
| 24.6. IDLE | https://docs.python.org/2/idle.html |
| 24.7. Other Graphical User Interface Packages | https://docs.python.org/2/othergui.html |
| 25. Development Tools | https://docs.python.org/2/development.html |
| 25.1. pydoc — Documentation generator and online help system | https://docs.python.org/2/pydoc.html |
| 25.2. doctest — Test interactive Python examples | https://docs.python.org/2/doctest.html |
| 25.3. unittest — Unit testing framework | https://docs.python.org/2/unittest.html |
| 25.4. 2to3 - Automated Python 2 to 3 code translation | https://docs.python.org/2/2to3.html |
| 25.5. test — Regression tests package for Python | https://docs.python.org/2/test.html |
| 25.6. test.support — Utility functions for tests | https://docs.python.org/2/test.html#module-test.support |
| 26. Debugging and Profiling | https://docs.python.org/2/debug.html |
| 26.1. bdb — Debugger framework | https://docs.python.org/2/bdb.html |
| 26.2. pdb — The Python Debugger | https://docs.python.org/2/pdb.html |
| 26.3. Debugger Commands | https://docs.python.org/2/pdb.html#debugger-commands |
| 26.4. The Python Profilers | https://docs.python.org/2/profile.html |
| 26.5. hotshot — High performance logging profiler | https://docs.python.org/2/hotshot.html |
| 26.6. timeit — Measure execution time of small code snippets | https://docs.python.org/2/timeit.html |
| 26.7. trace — Trace or track Python statement execution | https://docs.python.org/2/trace.html |
| 27. Software Packaging and Distribution | https://docs.python.org/2/distribution.html |
| 27.1. distutils — Building and installing Python modules | https://docs.python.org/2/distutils.html |
| 27.2. ensurepip — Bootstrapping the pip installer | https://docs.python.org/2/ensurepip.html |
| 28. Python Runtime Services | https://docs.python.org/2/python.html |
| 28.1. sys — System-specific parameters and functions | https://docs.python.org/2/sys.html |
| 28.2. sysconfig — Provide access to Python’s configuration information | https://docs.python.org/2/sysconfig.html |
| 28.3. __builtin__ — Built-in objects | https://docs.python.org/2/__builtin__.html |
| 28.4. future_builtins — Python 3 builtins | https://docs.python.org/2/future_builtins.html |
| 28.5. __main__ — Top-level script environment | https://docs.python.org/2/__main__.html |
| 28.6. warnings — Warning control | https://docs.python.org/2/warnings.html |
| 28.7. contextlib — Utilities for with-statement contexts | https://docs.python.org/2/contextlib.html |
| 28.8. abc — Abstract Base Classes | https://docs.python.org/2/abc.html |
| 28.9. atexit — Exit handlers | https://docs.python.org/2/atexit.html |
| 28.10. traceback — Print or retrieve a stack traceback | https://docs.python.org/2/traceback.html |
| 28.11. __future__ — Future statement definitions | https://docs.python.org/2/__future__.html |
| 28.12. gc — Garbage Collector interface | https://docs.python.org/2/gc.html |
| 28.13. inspect — Inspect live objects | https://docs.python.org/2/inspect.html |
| 28.14. site — Site-specific configuration hook | https://docs.python.org/2/site.html |
| 28.15. user — User-specific configuration hook | https://docs.python.org/2/user.html |
| 28.16. fpectl — Floating point exception control | https://docs.python.org/2/fpectl.html |
| 29. Custom Python Interpreters | https://docs.python.org/2/custominterp.html |
| 29.1. code — Interpreter base classes | https://docs.python.org/2/code.html |
| 29.2. codeop — Compile Python code | https://docs.python.org/2/codeop.html |
| 30. Restricted Execution | https://docs.python.org/2/restricted.html |
| 30.1. rexec — Restricted execution framework | https://docs.python.org/2/rexec.html |
| 30.2. Bastion — Restricting access to objects | https://docs.python.org/2/bastion.html |
| 31. Importing Modules | https://docs.python.org/2/modules.html |
| 31.1. imp — Access the import internals | https://docs.python.org/2/imp.html |
| 31.2. importlib — Convenience wrappers for __import__() | https://docs.python.org/2/importlib.html |
| 31.3. imputil — Import utilities | https://docs.python.org/2/imputil.html |
| 31.4. zipimport — Import modules from Zip archives | https://docs.python.org/2/zipimport.html |
| 31.5. pkgutil — Package extension utility | https://docs.python.org/2/pkgutil.html |
| 31.6. modulefinder — Find modules used by a script | https://docs.python.org/2/modulefinder.html |
| 31.7. runpy — Locating and executing Python modules | https://docs.python.org/2/runpy.html |
| 32. Python Language Services | https://docs.python.org/2/language.html |
| 32.1. parser — Access Python parse trees | https://docs.python.org/2/parser.html |
| 32.2. ast — Abstract Syntax Trees | https://docs.python.org/2/ast.html |
| 32.3. symtable — Access to the compiler’s symbol tables | https://docs.python.org/2/symtable.html |
| 32.4. symbol — Constants used with Python parse trees | https://docs.python.org/2/symbol.html |
| 32.5. token — Constants used with Python parse trees | https://docs.python.org/2/token.html |
| 32.6. keyword — Testing for Python keywords | https://docs.python.org/2/keyword.html |
| 32.7. tokenize — Tokenizer for Python source | https://docs.python.org/2/tokenize.html |
| 32.8. tabnanny — Detection of ambiguous indentation | https://docs.python.org/2/tabnanny.html |
| 32.9. pyclbr — Python class browser support | https://docs.python.org/2/pyclbr.html |
| 32.10. py_compile — Compile Python source files | https://docs.python.org/2/py_compile.html |
| 32.11. compileall — Byte-compile Python libraries | https://docs.python.org/2/compileall.html |
| 32.12. dis — Disassembler for Python bytecode | https://docs.python.org/2/dis.html |
| 32.13. pickletools — Tools for pickle developers | https://docs.python.org/2/pickletools.html |
| 33. Python compiler package | https://docs.python.org/2/compiler.html |
| 33.1. The basic interface | https://docs.python.org/2/compiler.html#module-compiler |
| 33.2. Limitations | https://docs.python.org/2/compiler.html#limitations |
| 33.3. Python Abstract Syntax | https://docs.python.org/2/compiler.html#python-abstract-syntax |
| 33.4. Using Visitors to Walk ASTs | https://docs.python.org/2/compiler.html#module-compiler.visitor |
| 33.5. Bytecode Generation | https://docs.python.org/2/compiler.html#bytecode-generation |
| 34. Miscellaneous Services | https://docs.python.org/2/misc.html |
| 34.1. formatter — Generic output formatting | https://docs.python.org/2/formatter.html |
| 35. MS Windows Specific Services | https://docs.python.org/2/windows.html |
| 35.1. msilib — Read and write Microsoft Installer files | https://docs.python.org/2/msilib.html |
| 35.2. msvcrt — Useful routines from the MS VC++ runtime | https://docs.python.org/2/msvcrt.html |
| 35.3. _winreg — Windows registry access | https://docs.python.org/2/_winreg.html |
| 35.4. winsound — Sound-playing interface for Windows | https://docs.python.org/2/winsound.html |
| 36. Unix Specific Services | https://docs.python.org/2/unix.html |
| 36.1. posix — The most common POSIX system calls | https://docs.python.org/2/posix.html |
| 36.2. pwd — The password database | https://docs.python.org/2/pwd.html |
| 36.3. spwd — The shadow password database | https://docs.python.org/2/spwd.html |
| 36.4. grp — The group database | https://docs.python.org/2/grp.html |
| 36.5. crypt — Function to check Unix passwords | https://docs.python.org/2/crypt.html |
| 36.6. dl — Call C functions in shared objects | https://docs.python.org/2/dl.html |
| 36.7. termios — POSIX style tty control | https://docs.python.org/2/termios.html |
| 36.8. tty — Terminal control functions | https://docs.python.org/2/tty.html |
| 36.9. pty — Pseudo-terminal utilities | https://docs.python.org/2/pty.html |
| 36.10. fcntl — The fcntl and ioctl system calls | https://docs.python.org/2/fcntl.html |
| 36.11. pipes — Interface to shell pipelines | https://docs.python.org/2/pipes.html |
| 36.12. posixfile — File-like objects with locking support | https://docs.python.org/2/posixfile.html |
| 36.13. resource — Resource usage information | https://docs.python.org/2/resource.html |
| 36.14. nis — Interface to Sun’s NIS (Yellow Pages) | https://docs.python.org/2/nis.html |
| 36.15. syslog — Unix syslog library routines | https://docs.python.org/2/syslog.html |
| 36.16. commands — Utilities for running commands | https://docs.python.org/2/commands.html |
| 37. Mac OS X specific services | https://docs.python.org/2/mac.html |
| 37.1. ic — Access to the Mac OS X Internet Config | https://docs.python.org/2/ic.html |
| 37.2. MacOS — Access to Mac OS interpreter features | https://docs.python.org/2/macos.html |
| 37.3. macostools — Convenience routines for file manipulation | https://docs.python.org/2/macostools.html |
| 37.4. findertools — The finder’s Apple Events interface | https://docs.python.org/2/macostools.html#module-findertools |
| 37.5. EasyDialogs — Basic Macintosh dialogs | https://docs.python.org/2/easydialogs.html |
| 37.6. FrameWork — Interactive application framework | https://docs.python.org/2/framework.html |
| 37.7. autoGIL — Global Interpreter Lock handling in event loops | https://docs.python.org/2/autogil.html |
| 37.8. Mac OS Toolbox Modules | https://docs.python.org/2/carbon.html |
| 37.9. ColorPicker — Color selection dialog | https://docs.python.org/2/colorpicker.html |
| 38. MacPython OSA Modules | https://docs.python.org/2/macosa.html |
| 38.1. gensuitemodule — Generate OSA stub packages | https://docs.python.org/2/gensuitemodule.html |
| 38.2. aetools — OSA client support | https://docs.python.org/2/aetools.html |
| 38.3. aepack — Conversion between Python variables and AppleEvent data containers | https://docs.python.org/2/aepack.html |
| 38.4. aetypes — AppleEvent objects | https://docs.python.org/2/aetypes.html |
| 38.5. MiniAEFrame — Open Scripting Architecture server support | https://docs.python.org/2/miniaeframe.html |
| 39. SGI IRIX Specific Services | https://docs.python.org/2/sgi.html |
| 39.1. al — Audio functions on the SGI | https://docs.python.org/2/al.html |
| 39.2. AL — Constants used with the al module | https://docs.python.org/2/al.html#module-AL |
| 39.3. cd — CD-ROM access on SGI systems | https://docs.python.org/2/cd.html |
| 39.4. fl — FORMS library for graphical user interfaces | https://docs.python.org/2/fl.html |
| 39.5. FL — Constants used with the fl module | https://docs.python.org/2/fl.html#module-FL |
| 39.6. flp — Functions for loading stored FORMS designs | https://docs.python.org/2/fl.html#module-flp |
| 39.7. fm — Font Manager interface | https://docs.python.org/2/fm.html |
| 39.8. gl — Graphics Library interface | https://docs.python.org/2/gl.html |
| 39.9. DEVICE — Constants used with the gl module | https://docs.python.org/2/gl.html#module-DEVICE |
| 39.10. GL — Constants used with the gl module | https://docs.python.org/2/gl.html#module-GL |
| 39.11. imgfile — Support for SGI imglib files | https://docs.python.org/2/imgfile.html |
| 39.12. jpeg — Read and write JPEG files | https://docs.python.org/2/jpeg.html |
| 40. SunOS Specific Services | https://docs.python.org/2/sun.html |
| 40.1. sunaudiodev — Access to Sun audio hardware | https://docs.python.org/2/sunaudio.html |
| 40.2. SUNAUDIODEV — Constants used with sunaudiodev | https://docs.python.org/2/sunaudio.html#module-SUNAUDIODEV |
| 41. Undocumented Modules | https://docs.python.org/2/undoc.html |
| 41.1. Miscellaneous useful utilities | https://docs.python.org/2/undoc.html#miscellaneous-useful-utilities |
| 41.2. Platform specific modules | https://docs.python.org/2/undoc.html#platform-specific-modules |
| 41.3. Multimedia | https://docs.python.org/2/undoc.html#multimedia |
| 41.4. Undocumented Mac OS modules | https://docs.python.org/2/undoc.html#undocumented-mac-os-modules |
| 41.5. Obsolete | https://docs.python.org/2/undoc.html#obsolete |
| 41.6. SGI-specific Extension modules | https://docs.python.org/2/undoc.html#sgi-specific-extension-modules |
| 9. Full Grammar specification | https://docs.python.org/reference/grammar.html |
| 1. Introduction | https://docs.python.org/2/intro.html |
| Show Source | https://docs.python.org/_sources/library/index.rst.txt |
| index | https://docs.python.org/genindex.html |
| modules | https://docs.python.org/py-modindex.html |
| next | https://docs.python.org/2/intro.html |
| previous | https://docs.python.org/reference/grammar.html |
| Python | https://www.python.org/ |
| Python 2.7.18 documentation | https://docs.python.org/index.html |
| Copyright | https://docs.python.org/copyright.html |
| Please donate. | https://www.python.org/psf/donations/ |
| Found a bug | https://docs.python.org/bugs.html |
| Sphinx | http://sphinx.pocoo.org/ |