.. sectionauthor:: Martin v. Löwis <martin@v.loewis.de>
.. 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
abstract syntax grammar. The abstract syntax itself might change with each
:mod:`ast` Helpers
------------------
-.. versionadded:: 2.6
-
Apart from the node classes, :mod:`ast` module defines these utility functions
and classes for traversing abstract syntax trees:
initialized upon first access or when the first record is read from the
file.
- .. versionchanged:: 2.6
Writer Objects
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()
:module: ctypes.util
of code. Any whitespace that can be uniformly removed from the second line
onwards is removed. Also, all tabs are expanded to spaces.
- .. versionadded:: 2.6
-
.. _inspect-classes-functions:
in the ``logging`` package's namespace). The ``level`` is interpreted as for
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
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
If a name is specified, it must appear in the ``[formatters]`` section and have
The accuracy of fsum() may be impaired on builds that use
extended precision addition and then double-round the results.
- .. versionadded:: 2.6
-
.. function:: isinf(x)
Continue execution until the line with the the line number greater than the
current one is reached or when returning from current frame.
- .. versionadded:: 2.6
-
r(eturn)
Continue execution until the current function returns.
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
the others.
- .. versionadded:: 2.4
- :attr:`maxset`, :attr:`maxfrozenset`, and :attr:`set`.
-
.. attribute:: Repr.maxlong
Update the set, adding elements from *other*.
- .. versionchanged:: 2.6
- Accepts multiple input iterables.
-
.. method:: intersection_update(other, ...)
set &= other & ...
Update the set, keeping only elements found in it and *other*.
- .. versionchanged:: 2.6
- Accepts multiple input iterables.
-
.. method:: difference_update(other, ...)
set -= other | ...
Update the set, removing elements found in others.
- .. versionchanged:: 2.6
- Accepts multiple input iterables.
-
.. method:: symmetric_difference_update(other)
set ^= other
func:`getsizeof` calls the object's __sizeof__ method and adds an additional
garbage collector overhead if the object is managed by the garbage collector.
- .. versionadded:: 2.6
-
.. function:: _getframe([depth])
you want truly insecable words. Default behaviour in previous versions
was to always allow breaking hyphenated words.
- .. versionadded:: 2.6
-
:class:`TextWrapper` also provides two public methods, analogous to the
module-level convenience functions: