Commit 273069cf authored by Nick Coghlan's avatar Nick Coghlan

Close #4966: revamp the sequence docs in order to better explain the state of modern Python

parent 1685db01
.. _binaryservices:
********************
Binary Data Services
********************
The modules described in this chapter provide some basic services operations
for manipulation of binary data. Other operations on binary data, specifically
in relation to file formats and network protocols, are described in the
relevant sections.
Some libraries described under :ref:`textservices` also work with either
ASCII-compatible binary formats (for example, :mod:`re`) or all binary data
(for example, :mod:`difflib`).
In addition, see the documentation for Python's built-in binary data types in
:ref:`binaryseq`.
.. toctree::
struct.rst
codecs.rst
...@@ -46,7 +46,8 @@ the `Python Package Index <http://pypi.python.org/pypi>`_. ...@@ -46,7 +46,8 @@ the `Python Package Index <http://pypi.python.org/pypi>`_.
stdtypes.rst stdtypes.rst
exceptions.rst exceptions.rst
strings.rst text.rst
binary.rst
datatypes.rst datatypes.rst
numeric.rst numeric.rst
functional.rst functional.rst
......
This source diff could not be displayed because it is too large. You can view the blob instead.
.. _stringservices: .. _stringservices:
.. _textservices:
*************** ************************
String Services Text Processing Services
*************** ************************
The modules described in this chapter provide a wide range of string The modules described in this chapter provide a wide range of string
manipulation operations. manipulation operations and other text processing services.
In addition, Python's built-in string classes support the sequence type methods The :mod:`codecs` module described under :ref:`binaryservices` is also
described in the :ref:`typesseq` section, and also the string-specific methods highly relevant to text processing. In addition, see the documentation for
described in the :ref:`string-methods` section. To output formatted strings, Python's built-in string type in :ref:`textseq`.
see the :ref:`string-formatting` section. Also, see the :mod:`re` module for
string functions based on regular expressions.
.. toctree:: .. toctree::
string.rst string.rst
re.rst re.rst
struct.rst
difflib.rst difflib.rst
textwrap.rst textwrap.rst
codecs.rst
unicodedata.rst unicodedata.rst
stringprep.rst stringprep.rst
...@@ -830,7 +830,10 @@ Builtin functions and types ...@@ -830,7 +830,10 @@ Builtin functions and types
* The :class:`str` type gets a new :meth:`~str.casefold` method: return a * The :class:`str` type gets a new :meth:`~str.casefold` method: return a
casefolded copy of the string, casefolded strings may be used for caseless casefolded copy of the string, casefolded strings may be used for caseless
matching. For example, ``'ß'.casefold()`` returns ``'ss'``. matching. For example, ``'ß'.casefold()`` returns ``'ss'``.
* The sequence documentation has been substantially rewritten to better
explain the binary/text sequence distinction and to provide specific
documentation sections for the individual builtin sequence types
(:issue:`4966`)
New Modules New Modules
=========== ===========
......
...@@ -55,6 +55,9 @@ Tools/Demos ...@@ -55,6 +55,9 @@ Tools/Demos
Documentation Documentation
------------- -------------
- Issue #4966: Bring the sequence docs up to date for the Py3k transition
and the many language enhancements since they were original written
- The "path importer" misnomer has been replaced with Eric Snow's - The "path importer" misnomer has been replaced with Eric Snow's
more-awkward-but-at-least-not-wrong suggestion of "path based finder" in more-awkward-but-at-least-not-wrong suggestion of "path based finder" in
the import system reference docs the import system reference docs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment