Commit c15ca433 authored by Georg Brandl's avatar Georg Brandl

Backport rev. 3ae74b361f53 to 2.7 branch.

parents ba9288c9 1f1060f7
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
...@@ -252,6 +252,8 @@ APIs: ...@@ -252,6 +252,8 @@ APIs:
.. % because not all compilers support the %z width modifier -- we fake it .. % because not all compilers support the %z width modifier -- we fake it
.. % when necessary via interpolating PY_FORMAT_SIZE_T. .. % when necessary via interpolating PY_FORMAT_SIZE_T.
.. tabularcolumns:: |l|l|L|
+-------------------+---------------------+--------------------------------+ +-------------------+---------------------+--------------------------------+
| Format Characters | Type | Comment | | Format Characters | Type | Comment |
+===================+=====================+================================+ +===================+=====================+================================+
......
...@@ -26,6 +26,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and ...@@ -26,6 +26,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
The setup function takes a large number of arguments. These are laid out in the The setup function takes a large number of arguments. These are laid out in the
following table. following table.
.. tabularcolumns:: |l|L|L|
+--------------------+--------------------------------+-------------------------------------------------------------+ +--------------------+--------------------------------+-------------------------------------------------------------+
| argument name | value | type | | argument name | value | type |
+====================+================================+=============================================================+ +====================+================================+=============================================================+
...@@ -125,6 +127,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and ...@@ -125,6 +127,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
*stop_after* tells :func:`setup` when to stop processing; possible values: *stop_after* tells :func:`setup` when to stop processing; possible values:
.. tabularcolumns:: |l|L|
+---------------+---------------------------------------------+ +---------------+---------------------------------------------+
| value | description | | value | description |
+===============+=============================================+ +===============+=============================================+
...@@ -165,6 +169,8 @@ the full reference. ...@@ -165,6 +169,8 @@ the full reference.
The Extension class describes a single C or C++extension module in a setup The Extension class describes a single C or C++extension module in a setup
script. It accepts the following keyword arguments in its constructor script. It accepts the following keyword arguments in its constructor
.. tabularcolumns:: |l|L|l|
+------------------------+--------------------------------+---------------------------+ +------------------------+--------------------------------+---------------------------+
| argument name | value | type | | argument name | value | type |
+========================+================================+===========================+ +========================+================================+===========================+
...@@ -1556,6 +1562,8 @@ lines, and joining lines with backslashes. ...@@ -1556,6 +1562,8 @@ lines, and joining lines with backslashes.
The options are all boolean, and affect the values returned by :meth:`readline` The options are all boolean, and affect the values returned by :meth:`readline`
.. tabularcolumns:: |l|L|l|
+------------------+--------------------------------+---------+ +------------------+--------------------------------+---------+
| option name | description | default | | option name | description | default |
+==================+================================+=========+ +==================+================================+=========+
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
Extending/Embedding FAQ Extending/Embedding FAQ
======================= =======================
.. contents:: .. only:: html
.. contents::
.. highlight:: c .. highlight:: c
......
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
General Python FAQ General Python FAQ
================== ==================
.. contents:: .. only:: html
.. contents::
General Information General Information
=================== ===================
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
Graphic User Interface FAQ Graphic User Interface FAQ
========================== ==========================
.. contents:: .. only:: html
.. contents::
What platform-independent GUI toolkits exist for Python? What platform-independent GUI toolkits exist for Python?
======================================================== ========================================================
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
Library and Extension FAQ Library and Extension FAQ
========================= =========================
.. contents:: .. only:: html
.. contents::
General Library Questions General Library Questions
========================= =========================
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
Programming FAQ Programming FAQ
=============== ===============
.. contents:: .. only:: html
.. contents::
General Questions General Questions
================= =================
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
Python on Windows FAQ Python on Windows FAQ
===================== =====================
.. contents:: .. only:: html
.. contents::
How do I run a Python program under Windows? How do I run a Python program under Windows?
-------------------------------------------- --------------------------------------------
......
...@@ -63,6 +63,8 @@ The logging functions are named after the level or severity of the events ...@@ -63,6 +63,8 @@ The logging functions are named after the level or severity of the events
they are used to track. The standard levels and their applicability are they are used to track. The standard levels and their applicability are
described below (in increasing order of severity): described below (in increasing order of severity):
.. tabularcolumns:: |l|L|
+--------------+---------------------------------------------+ +--------------+---------------------------------------------+
| Level | When it's used | | Level | When it's used |
+==============+=============================================+ +==============+=============================================+
......
...@@ -235,6 +235,8 @@ by how you built/installed Python itself. On Unix (and Mac OS X, which is also ...@@ -235,6 +235,8 @@ by how you built/installed Python itself. On Unix (and Mac OS X, which is also
Unix-based), it also depends on whether the module distribution being installed Unix-based), it also depends on whether the module distribution being installed
is pure Python or contains extensions ("non-pure"): is pure Python or contains extensions ("non-pure"):
.. tabularcolumns:: |l|l|l|l|
+-----------------+-----------------------------------------------------+--------------------------------------------------+-------+ +-----------------+-----------------------------------------------------+--------------------------------------------------+-------+
| Platform | Standard installation location | Default value | Notes | | Platform | Standard installation location | Default value | Notes |
+=================+=====================================================+==================================================+=======+ +=================+=====================================================+==================================================+=======+
......
...@@ -320,6 +320,8 @@ To simplify and standardize error handling, the :meth:`encode` and ...@@ -320,6 +320,8 @@ To simplify and standardize error handling, the :meth:`encode` and
providing the *errors* string argument. The following string values are defined providing the *errors* string argument. The following string values are defined
and implemented by all standard Python codecs: and implemented by all standard Python codecs:
.. tabularcolumns:: |l|L|
+-------------------------+-----------------------------------------------+ +-------------------------+-----------------------------------------------+
| Value | Meaning | | Value | Meaning |
+=========================+===============================================+ +=========================+===============================================+
...@@ -887,6 +889,8 @@ particular, the following variants typically exist: ...@@ -887,6 +889,8 @@ particular, the following variants typically exist:
* an IBM PC code page, which is ASCII compatible * an IBM PC code page, which is ASCII compatible
.. tabularcolumns:: |l|p{0.3\linewidth}|p{0.3\linewidth}|
+-----------------+--------------------------------+--------------------------------+ +-----------------+--------------------------------+--------------------------------+
| Codec | Aliases | Languages | | Codec | Aliases | Languages |
+=================+================================+================================+ +=================+================================+================================+
...@@ -1103,6 +1107,8 @@ For the codecs listed below, the result in the "encoding" direction is always a ...@@ -1103,6 +1107,8 @@ For the codecs listed below, the result in the "encoding" direction is always a
byte string. The result of the "decoding" direction is listed as operand type in byte string. The result of the "decoding" direction is listed as operand type in
the table. the table.
.. tabularcolumns:: |l|p{0.3\linewidth}|l|p{0.3\linewidth}|
+--------------------+---------------------------+----------------+---------------------------+ +--------------------+---------------------------+----------------+---------------------------+
| Codec | Aliases | Operand type | Purpose | | Codec | Aliases | Operand type | Purpose |
+====================+===========================+================+===========================+ +====================+===========================+================+===========================+
......
...@@ -59,6 +59,8 @@ The :mod:`locale` module defines the following exception and functions: ...@@ -59,6 +59,8 @@ The :mod:`locale` module defines the following exception and functions:
Returns the database of the local conventions as a dictionary. This dictionary Returns the database of the local conventions as a dictionary. This dictionary
has the following strings as keys: has the following strings as keys:
.. tabularcolumns:: |l|l|L|
+----------------------+-------------------------------------+--------------------------------+ +----------------------+-------------------------------------+--------------------------------+
| Category | Key | Meaning | | Category | Key | Meaning |
+======================+=====================================+================================+ +======================+=====================================+================================+
......
...@@ -893,6 +893,8 @@ functions. ...@@ -893,6 +893,8 @@ functions.
The following keyword arguments are supported. The following keyword arguments are supported.
.. tabularcolumns:: |l|L|
+--------------+---------------------------------------------+ +--------------+---------------------------------------------+
| Format | Description | | Format | Description |
+==============+=============================================+ +==============+=============================================+
......
...@@ -145,6 +145,8 @@ use cases, the underlying :class:`Popen` interface can be used directly. ...@@ -145,6 +145,8 @@ use cases, the underlying :class:`Popen` interface can be used directly.
.. versionadded:: 2.7 .. versionadded:: 2.7
..
.. warning:: .. warning::
Invoking the system shell with ``shell=True`` can be a security hazard Invoking the system shell with ``shell=True`` can be a security hazard
......
...@@ -302,6 +302,8 @@ always available. ...@@ -302,6 +302,8 @@ always available.
5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of
floating types', for details. floating types', for details.
.. tabularcolumns:: |l|l|L|
+---------------------+----------------+--------------------------------------------------+ +---------------------+----------------+--------------------------------------------------+
| attribute | float.h macro | explanation | | attribute | float.h macro | explanation |
+=====================+================+==================================================+ +=====================+================+==================================================+
...@@ -599,6 +601,8 @@ always available. ...@@ -599,6 +601,8 @@ always available.
A struct sequence that holds information about Python's A struct sequence that holds information about Python's
internal representation of integers. The attributes are read only. internal representation of integers. The attributes are read only.
.. tabularcolumns:: |l|L|
+-------------------------+----------------------------------------------+ +-------------------------+----------------------------------------------+
| Attribute | Explanation | | Attribute | Explanation |
+=========================+==============================================+ +=========================+==============================================+
......
...@@ -2173,9 +2173,11 @@ It contains: ...@@ -2173,9 +2173,11 @@ It contains:
The demoscripts are: The demoscripts are:
.. tabularcolumns:: |l|L|L|
+----------------+------------------------------+-----------------------+ +----------------+------------------------------+-----------------------+
| Name | Description | Features | | Name | Description | Features |
+----------------+------------------------------+-----------------------+ +================+==============================+=======================+
| bytedesign | complex classical | :func:`tracer`, delay,| | bytedesign | complex classical | :func:`tracer`, delay,|
| | turtlegraphics pattern | :func:`update` | | | turtlegraphics pattern | :func:`update` |
+----------------+------------------------------+-----------------------+ +----------------+------------------------------+-----------------------+
......
...@@ -57,6 +57,8 @@ There are a number of built-in exceptions that represent warning categories. ...@@ -57,6 +57,8 @@ There are a number of built-in exceptions that represent warning categories.
This categorization is useful to be able to filter out groups of warnings. The This categorization is useful to be able to filter out groups of warnings. The
following warnings category classes are currently defined: following warnings category classes are currently defined:
.. tabularcolumns:: |l|p{0.6\linewidth}|
+----------------------------------+-----------------------------------------------+ +----------------------------------+-----------------------------------------------+
| Class | Description | | Class | Description |
+==================================+===============================================+ +==================================+===============================================+
......
...@@ -312,6 +312,8 @@ module. We'll be using the ``countrydata`` XML document from the ...@@ -312,6 +312,8 @@ module. We'll be using the ``countrydata`` XML document from the
Supported XPath syntax Supported XPath syntax
^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
.. tabularcolumns:: |l|L|
+-----------------------+------------------------------------------------------+ +-----------------------+------------------------------------------------------+
| Syntax | Meaning | | Syntax | Meaning |
+=======================+======================================================+ +=======================+======================================================+
......
...@@ -481,6 +481,8 @@ Callable types ...@@ -481,6 +481,8 @@ Callable types
Special attributes: Special attributes:
.. tabularcolumns:: |l|L|l|
+-----------------------+-------------------------------+-----------+ +-----------------------+-------------------------------+-----------+
| Attribute | Meaning | | | Attribute | Meaning | |
+=======================+===============================+===========+ +=======================+===============================+===========+
......
...@@ -1370,7 +1370,7 @@ groups from right to left). ...@@ -1370,7 +1370,7 @@ groups from right to left).
| :keyword:`not` ``x`` | Boolean NOT | | :keyword:`not` ``x`` | Boolean NOT |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| :keyword:`in`, :keyword:`not in`, | Comparisons, including membership | | :keyword:`in`, :keyword:`not in`, | Comparisons, including membership |
| :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests, | | :keyword:`is`, :keyword:`is not`, ``<``, | tests and identity tests |
| ``<=``, ``>``, ``>=``, ``<>``, ``!=``, ``==`` | | | ``<=``, ``>``, ``>=``, ``<>``, ``!=``, ``==`` | |
+-----------------------------------------------+-------------------------------------+ +-----------------------------------------------+-------------------------------------+
| ``|`` | Bitwise OR | | ``|`` | Bitwise OR |
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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