mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
murder some versionadded and versionchanged directives in their beds
This commit is contained in:
parent
24c4d85598
commit
9abf93d6c9
@ -9,12 +9,6 @@ Abstract Syntax Trees
|
|||||||
.. sectionauthor:: Martin v. Löwis <martin@v.loewis.de>
|
.. sectionauthor:: Martin v. Löwis <martin@v.loewis.de>
|
||||||
.. sectionauthor:: Georg Brandl <georg@python.org>
|
.. sectionauthor:: Georg Brandl <georg@python.org>
|
||||||
|
|
||||||
.. versionadded:: 2.5
|
|
||||||
The low-level ``_ast`` module containing only the node classes.
|
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
The high-level ``ast`` module containing all helpers.
|
|
||||||
|
|
||||||
|
|
||||||
The :mod:`ast` module helps Python applications to process trees of the Python
|
The :mod:`ast` module helps Python applications to process trees of the Python
|
||||||
abstract syntax grammar. The abstract syntax itself might change with each
|
abstract syntax grammar. The abstract syntax itself might change with each
|
||||||
@ -113,8 +107,6 @@ The abstract grammar is currently defined as follows:
|
|||||||
:mod:`ast` Helpers
|
:mod:`ast` Helpers
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
Apart from the node classes, :mod:`ast` module defines these utility functions
|
Apart from the node classes, :mod:`ast` module defines these utility functions
|
||||||
and classes for traversing abstract syntax trees:
|
and classes for traversing abstract syntax trees:
|
||||||
|
|
||||||
|
@ -381,7 +381,6 @@ DictReader objects have the following public attribute:
|
|||||||
initialized upon first access or when the first record is read from the
|
initialized upon first access or when the first record is read from the
|
||||||
file.
|
file.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
|
|
||||||
|
|
||||||
Writer Objects
|
Writer Objects
|
||||||
|
@ -1859,10 +1859,6 @@ Utility functions
|
|||||||
|
|
||||||
The exact functionality is system dependent.
|
The exact functionality is system dependent.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
Windows only: ``find_library("m")`` or
|
|
||||||
``find_library("c")`` return the result of a call to
|
|
||||||
``find_msvcrt()``.
|
|
||||||
|
|
||||||
.. function:: find_msvcrt()
|
.. function:: find_msvcrt()
|
||||||
:module: ctypes.util
|
:module: ctypes.util
|
||||||
|
@ -364,8 +364,6 @@ Retrieving source code
|
|||||||
of code. Any whitespace that can be uniformly removed from the second line
|
of code. Any whitespace that can be uniformly removed from the second line
|
||||||
onwards is removed. Also, all tabs are expanded to spaces.
|
onwards is removed. Also, all tabs are expanded to spaces.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
|
|
||||||
.. _inspect-classes-functions:
|
.. _inspect-classes-functions:
|
||||||
|
|
||||||
|
@ -2315,10 +2315,6 @@ The ``class`` entry indicates the handler's class (as determined by :func:`eval`
|
|||||||
in the ``logging`` package's namespace). The ``level`` is interpreted as for
|
in the ``logging`` package's namespace). The ``level`` is interpreted as for
|
||||||
loggers, and ``NOTSET`` is taken to mean "log everything".
|
loggers, and ``NOTSET`` is taken to mean "log everything".
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
Added support for resolving the handler's class as a dotted module and class
|
|
||||||
name.
|
|
||||||
|
|
||||||
The ``formatter`` entry indicates the key name of the formatter for this
|
The ``formatter`` entry indicates the key name of the formatter for this
|
||||||
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
|
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
|
||||||
If a name is specified, it must appear in the ``[formatters]`` section and have
|
If a name is specified, it must appear in the ``[formatters]`` section and have
|
||||||
|
@ -88,8 +88,6 @@ Number-theoretic and representation functions:
|
|||||||
The accuracy of fsum() may be impaired on builds that use
|
The accuracy of fsum() may be impaired on builds that use
|
||||||
extended precision addition and then double-round the results.
|
extended precision addition and then double-round the results.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
|
|
||||||
.. function:: isinf(x)
|
.. function:: isinf(x)
|
||||||
|
|
||||||
|
@ -265,8 +265,6 @@ unt(il)
|
|||||||
Continue execution until the line with the the line number greater than the
|
Continue execution until the line with the the line number greater than the
|
||||||
current one is reached or when returning from current frame.
|
current one is reached or when returning from current frame.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
r(eturn)
|
r(eturn)
|
||||||
Continue execution until the current function returns.
|
Continue execution until the current function returns.
|
||||||
|
|
||||||
|
@ -62,9 +62,6 @@ which format specific object types.
|
|||||||
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
|
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
|
||||||
the others.
|
the others.
|
||||||
|
|
||||||
.. versionadded:: 2.4
|
|
||||||
:attr:`maxset`, :attr:`maxfrozenset`, and :attr:`set`.
|
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: Repr.maxlong
|
.. attribute:: Repr.maxlong
|
||||||
|
|
||||||
|
@ -1651,25 +1651,16 @@ The constructors for both classes work the same:
|
|||||||
|
|
||||||
Update the set, adding elements from *other*.
|
Update the set, adding elements from *other*.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
Accepts multiple input iterables.
|
|
||||||
|
|
||||||
.. method:: intersection_update(other, ...)
|
.. method:: intersection_update(other, ...)
|
||||||
set &= other & ...
|
set &= other & ...
|
||||||
|
|
||||||
Update the set, keeping only elements found in it and *other*.
|
Update the set, keeping only elements found in it and *other*.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
Accepts multiple input iterables.
|
|
||||||
|
|
||||||
.. method:: difference_update(other, ...)
|
.. method:: difference_update(other, ...)
|
||||||
set -= other | ...
|
set -= other | ...
|
||||||
|
|
||||||
Update the set, removing elements found in others.
|
Update the set, removing elements found in others.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
|
||||||
Accepts multiple input iterables.
|
|
||||||
|
|
||||||
.. method:: symmetric_difference_update(other)
|
.. method:: symmetric_difference_update(other)
|
||||||
set ^= other
|
set ^= other
|
||||||
|
|
||||||
|
@ -332,8 +332,6 @@ always available.
|
|||||||
func:`getsizeof` calls the object's __sizeof__ method and adds an additional
|
func:`getsizeof` calls the object's __sizeof__ method and adds an additional
|
||||||
garbage collector overhead if the object is managed by the garbage collector.
|
garbage collector overhead if the object is managed by the garbage collector.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
|
|
||||||
.. function:: _getframe([depth])
|
.. function:: _getframe([depth])
|
||||||
|
|
||||||
|
@ -181,8 +181,6 @@ indentation from strings that have unwanted whitespace to the left of the text.
|
|||||||
you want truly insecable words. Default behaviour in previous versions
|
you want truly insecable words. Default behaviour in previous versions
|
||||||
was to always allow breaking hyphenated words.
|
was to always allow breaking hyphenated words.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
|
||||||
|
|
||||||
|
|
||||||
:class:`TextWrapper` also provides two public methods, analogous to the
|
:class:`TextWrapper` also provides two public methods, analogous to the
|
||||||
module-level convenience functions:
|
module-level convenience functions:
|
||||||
|
Loading…
Reference in New Issue
Block a user