Separate source link from main text.
This commit is contained in:
parent
04da1e013a
commit
4f707fd316
|
@ -9,6 +9,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/ast.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`ast` module helps Python applications to process trees of the Python
|
||||
abstract syntax grammar. The abstract syntax itself might change with each
|
||||
Python release; this module helps to find out programmatically what the current
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/bisect.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides support for maintaining a list in sorted order without
|
||||
having to sort the list after each insertion. For long lists of items with
|
||||
expensive comparison operations, this can be an improvement over the more common
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/calendar.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module allows you to output calendars like the Unix :program:`cal` program,
|
||||
and provides additional useful functions related to the calendar. By default,
|
||||
these calendars have Monday as the first day of the week, and Sunday as the last
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/cmd.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :class:`Cmd` class provides a simple framework for writing line-oriented
|
||||
command interpreters. These are often useful for test harnesses, administrative
|
||||
tools, and prototypes that will later be wrapped in a more sophisticated
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/collections.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module implements specialized container datatypes providing alternatives to
|
||||
Python's general purpose built-in containers, :class:`dict`, :class:`list`,
|
||||
:class:`set`, and :class:`tuple`.
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/contextlib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides utilities for common tasks involving the :keyword:`with`
|
||||
statement. For more information see also :ref:`typecontextmanager` and
|
||||
:ref:`context-managers`.
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/dis.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`dis` module supports the analysis of CPython :term:`bytecode` by
|
||||
disassembling it. The CPython bytecode which this module takes as an
|
||||
input is defined in the file :file:`Include/opcode.h` and used by the compiler
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/filecmp.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`filecmp` module defines functions to compare files and directories,
|
||||
with various optional time/correctness trade-offs. For comparing files,
|
||||
see also the :mod:`difflib` module.
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/fileinput.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module implements a helper class and functions to quickly write a
|
||||
loop over standard input or a list of files. If you just want to read or
|
||||
write one file see :func:`open`.
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/fnmatch.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides support for Unix shell-style wildcards, which are *not* the
|
||||
same as regular expressions (which are documented in the :mod:`re` module). The
|
||||
special characters used in shell-style wildcards are:
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/glob.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`glob` module finds all the pathnames matching a specified pattern
|
||||
according to the rules used by the Unix shell. No tilde expansion is done, but
|
||||
``*``, ``?``, and character ranges expressed with ``[]`` will be correctly
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/heapq.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides an implementation of the heap queue algorithm, also known
|
||||
as the priority queue algorithm.
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/keyword.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module allows a Python program to determine if a string is a keyword.
|
||||
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/linecache.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`linecache` module allows one to get any line from any file, while
|
||||
attempting to optimize internally, using a cache, the common case where many
|
||||
lines are read from a single file. This is used by the :mod:`traceback` module
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/pprint.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
|
||||
Python data structures in a form which can be used as input to the interpreter.
|
||||
If the formatted structures include objects which are not fundamental Python
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/queue.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`queue` module implements multi-producer, multi-consumer queues.
|
||||
It is especially useful in threaded programming when information must be
|
||||
exchanged safely between multiple threads. The :class:`Queue` class in this
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/random.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module implements pseudo-random number generators for various
|
||||
distributions.
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/sched.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`sched` module defines a class which implements a general purpose event
|
||||
scheduler:
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/shelve.py`
|
||||
|
||||
--------------
|
||||
|
||||
A "shelf" is a persistent, dictionary-like object. The difference with "dbm"
|
||||
databases is that the values (not the keys!) in a shelf can be essentially
|
||||
arbitrary Python objects --- anything that the :mod:`pickle` module can handle.
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/shutil.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`shutil` module offers a number of high-level operations on files and
|
||||
collections of files. In particular, functions are provided which support file
|
||||
copying and removal. For operations on individual files, see also the
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/string.py`
|
||||
|
||||
--------------
|
||||
|
||||
String constants
|
||||
----------------
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/textwrap.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`textwrap` module provides two convenience functions, :func:`wrap` and
|
||||
:func:`fill`, as well as :class:`TextWrapper`, the class that does all the work,
|
||||
and a utility function :func:`dedent`. If you're just wrapping or filling one
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/threading.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module constructs higher-level threading interfaces on top of the lower
|
||||
level :mod:`_thread` module. See also the :mod:`queue` module.
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/tokenize.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`tokenize` module provides a lexical scanner for Python source code,
|
||||
implemented in Python. The scanner in this module returns comments as tokens
|
||||
as well, making it useful for implementing "pretty-printers," including
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/trace.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`trace` module allows you to trace program execution, generate
|
||||
annotated statement coverage listings, print caller/callee relationships and
|
||||
list functions executed during a program run. It can be used in another program
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
**Source code:** :source:`Lib/uu.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module encodes and decodes files in uuencode format, allowing arbitrary
|
||||
binary data to be transferred over ASCII-only connections. Wherever a file
|
||||
argument is expected, the methods accept a file-like object. For backwards
|
||||
|
|
|
@ -1614,7 +1614,7 @@ memory jog without having to read all of the docs.
|
|||
In some cases, the pure Python source code can be helpful adjunct to the docs,
|
||||
so now some modules feature quick links to the latest version of the source
|
||||
code. For example, the :mod:`functools` module documentation has a quick link
|
||||
at the top labeled *Source code* source:`Lib/functools.py`.
|
||||
at the top labeled: *Source code* :source:`Lib/functools.py`.
|
||||
|
||||
The docs now contain more examples and recipes. In particular, :mod:`re` module
|
||||
has an extensive section, :ref:`re-examples`. Likewise, the :mod:`itertools`
|
||||
|
|
Loading…
Reference in New Issue