.. nonce: mFw2O5
.. section: Core and Builtins
-Tuple's tp_repr did not take into account the possibility of having a self-
-referential tuple, which is possible from C code. Nor did object's tp_str
+Tuple's tp_repr did not take into account the possibility of having a
+self-referential tuple, which is possible from C code. Nor did object's tp_str
consider that a type's tp_str could do something that could lead to an
inifinite recursion. Py_ReprEnter() and Py_EnterRecursiveCall(),
respectively, fixed the issues.
.. section: Library
distutils' build command now uses different build directory when building
-extension modules against versions of Python compiled with ``--with-
-pydebug``.
+extension modules against versions of Python compiled with
+``--with-pydebug``.
..
.. nonce: MPohFL
.. section: Library
-ctypes now does work on OS X when Python is built with --disable-toolbox-
-glue.
+ctypes now does work on OS X when Python is built with
+``--disable-toolbox-glue``.
..
.. nonce: bwAdWN
.. section: Build
-don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS returned by python-
-config if Python was built with --enable-shared because that prevented the
+don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS returned by
+python-config if Python was built with --enable-shared because that prevented the
shared library from being used.
..
With narrow Unicode builds, the unicode escape sequence \Uxxxxxxxx did not
accept values outside the Basic Multilingual Plane. This affected raw
unicode literals and the 'raw-unicode-escape' codec. Now UTF-16 surrogates
-are generated in this case, like normal unicode literals and the 'unicode-
-escape' codec.
+are generated in this case, like normal unicode literals and the
+'unicode-escape' codec.
..
.. nonce: pMUClw
.. section: Library
-urllib2's auth handler now allows single-quoted realms in the WWW-
-Authenticate header.
+urllib2's auth handler now allows single-quoted realms in the
+WWW-Authenticate header.
..
.. nonce: aAbWbQ
.. section: Library
-Restore semantic round-trip correctness in tokenize/untokenize for tab-
-indented blocks.
+Restore semantic round-trip correctness in tokenize/untokenize for
+tab-indented blocks.
..
.. section: IDLE
Enhance the initial html viewer now used for Idle Help. * Properly indent
-fixed-pitch text (patch by Mark Roseman). * Give code snippet a very Sphinx-
-like light blueish-gray background. * Re-use initial width and height set by
+fixed-pitch text (patch by Mark Roseman). * Give code snippet a very
+Sphinx-like light blueish-gray background. * Re-use initial width and height set by
users for shell and editor. * When the Table of Contents (TOC) menu is used,
put the section header at the top of the screen.
.. nonce: RYbEGH
.. section: Core and Builtins
-Extra slash no longer added to sys.path components in case of empty compile-
-time PYTHONPATH components.
+Extra slash no longer added to sys.path components in case of empty
+compile-time PYTHONPATH components.
..
When parsing HTTP header fields, if an invalid line is encountered, skip it
and continue parsing. Previously, no more header fields were parsed, which
-could lead to fields for HTTP framing like Content-Length and Transfer-
-Encoding being overlooked.
+could lead to fields for HTTP framing like Content-Length and
+Transfer-Encoding being overlooked.
..
.. section: Build
Cause lack of llvm-profdata tool when using clang as required for PGO
-linking to be a configure time error rather than make time when --with-
-optimizations is enabled. Also improve our ability to find the llvm-
-profdata tool on MacOS and some Linuxes.
+linking to be a configure time error rather than make time when
+``--with-optimizations`` is enabled. Also improve our ability to find the
+llvm-profdata tool on MacOS and some Linuxes.
..
.. nonce: -zJ7d8
.. section: Library
-multiprocessing.Queue.get() with a timeout now polls its reader in non-
-blocking mode if it succeeded to aquire the lock but the acquire took longer
+multiprocessing.Queue.get() with a timeout now polls its reader in
+non-blocking mode if it succeeded to aquire the lock but the acquire took longer
than the timeout.
..
vulnerabilities including: CVE-2017-9233 (External entity infinite loop
DoS), CVE-2016-9063 (Integer overflow, re-fix), CVE-2016-0718 (Fix
regression bugs from 2.2.0's fix to CVE-2016-0718) and CVE-2012-0876
-(Counter hash flooding with SipHash). Note: the CVE-2016-5300 (Use os-
-specific entropy sources like getrandom) doesn't impact Python, since Python
+(Counter hash flooding with SipHash). Note: the CVE-2016-5300 (Use
+os-specific entropy sources like getrandom) doesn't impact Python, since Python
already gets entropy from the OS to set the expat secret using
``XML_SetHashSalt()``.
Rewrite Comparisons section in the Expressions chapter of the language
reference. Some of the details of comparing mixed types were incorrect or
-ambiguous. Added default behaviour and consistency suggestions for user-
-defined classes. Based on patch from Andy Maier.
+ambiguous. Added default behaviour and consistency suggestions for
+user-defined classes. Based on patch from Andy Maier.
..
.. section: Build
Prevent unnecessary rebuilding of Python during ``make test``, ``make
-install`` and some other make targets when configured with ``--enable-
-optimizations``.
+install`` and some other make targets when configured with
+``--enable-optimizations``.
..
.. nonce: rUvlec
.. section: Core and Builtins
-Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear the end-
-of-file indicator after CTRL+d.
+Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear the
+end-of-file indicator after CTRL+d.
..
.. nonce: JAYw4l
.. section: Library
-In WeakSet, do not raise TypeErrors when testing for membership of non-
-weakrefable objects.
+In WeakSet, do not raise TypeErrors when testing for membership of
+non-weakrefable objects.
..
.. nonce: xpdEg8
.. section: Library
-mmap should not segfault when a file is mapped using 0 as length and a non-
-zero offset, and an attempt to read past the end of file is made (IndexError
+mmap should not segfault when a file is mapped using 0 as length and a
+non-zero offset, and an attempt to read past the end of file is made (IndexError
is raised instead). Patch by Ross Lagerwall.
..
.. nonce: BN3sYU
.. section: Build
-Allow Mac OS X installer builds to again work on 10.5 with the system-
-provided Python.
+Allow Mac OS X installer builds to again work on 10.5 with the
+system-provided Python.
..
.. nonce: 9Mn07O
.. section: Library
-Fix a bug where zlib.decompressobj().flush() might try to access previously-
-freed memory. Patch by Serhiy Storchaka.
+Fix a bug where zlib.decompressobj().flush() might try to access
+previously-freed memory. Patch by Serhiy Storchaka.
..
.. nonce: 9gGqPw
.. section: Library
-In cmath and math modules, add workaround for platforms whose system-
-supplied log1p function doesn't respect signs of zeros.
+In cmath and math modules, add workaround for platforms whose
+system-supplied log1p function doesn't respect signs of zeros.
..
.. section: Library
OS X Xcode 4 - improve support for universal extension modules In
-particular, fix extension module build failures when trying to use 32-bit-
-only installer Pythons on systems with Xcode 4 (currently OS X 10.8, 10.7,
+particular, fix extension module build failures when trying to use
+32-bit-only installer Pythons on systems with Xcode 4 (currently OS X 10.8, 10.7,
and optionally 10.6). * Backport 3.3.0 fixes to 2.7 branch (for release in
2.7.4) * Since Xcode 4 removes ppc support, extension module builds now
check for ppc compiler support and by default remove ppc and ppc64 archs
.. nonce: E6rcrn
.. section: Library
-Add to webbrowser's browser list: xdg-open, gvfs-open, www-browser, x-www-
-browser, chromium browsers, iceweasel, iceape.
+Add to webbrowser's browser list: xdg-open, gvfs-open, www-browser,
+x-www-browser, chromium browsers, iceweasel, iceape.
..
.. nonce: KAl7aO
.. section: Build
-Prevent possible segfaults and other random failures of python --generate-
-posix-vars in pybuilddir.txt build target.
+Prevent possible segfaults and other random failures of python
+``--generate-posix-vars`` in pybuilddir.txt build target.
..
include: str for floats and complex numbers; the float and complex
constructors; old-style and new-style numeric formatting; serialization and
deserialization of floats and complex numbers using marshal, pickle and
-json; parsing of float and imaginary literals in Python code; Decimal-to-
-float conversion.
+json; parsing of float and imaginary literals in Python code;
+Decimal-to-float conversion.
The conversions use a Python-adapted version of David Gay's well-known
dtoa.c, providing correctly-rounded strtod and dtoa C functions. This code
.. nonce: c2vdqn
.. section: Tests
-Moved tests involving loading tk from Lib/test/test_tcl to Lib/lib-
-tk/test/test_tkinter/test_loadtk. With this, these tests demonstrate the
+Moved tests involving loading tk from Lib/test/test_tcl to
+Lib/lib-tk/test/test_tkinter/test_loadtk. With this, these tests demonstrate the
same behaviour as test_ttkguionly (and now also test_tk) which is to skip
the tests if DISPLAY is defined but can't be used.
.. nonce: oAWtv2
.. section: Library
-Fixed IMAP4_SSL hang when the IMAP server response is missing proper end-of-
-line termination.
+Fixed IMAP4_SSL hang when the IMAP server response is missing proper
+end-of-line termination.
..
.. nonce: ZEBSAJ
.. section: Core and Builtins
-Issue a PendingDeprecationWarning if object.__format__ is called with a non-
-empty format string. This is an effort to future-proof user code. If a
+Issue a PendingDeprecationWarning if object.__format__ is called with a
+non-empty format string. This is an effort to future-proof user code. If a
derived class does not currently implement __format__ but later adds its own
__format__, it would most likely break user code that had supplied a format
string. This will be changed to a DeprecationWarning in Python 3.3 and it
.. nonce: nshtA2
.. section: Library
-The functools module also adds cmp_to_key() as a tool to transition old-
-style comparison functions to new-style key-functions.
+The functools module also adds cmp_to_key() as a tool to transition
+old-style comparison functions to new-style key-functions.
..
.. nonce: 6FLjC9
.. section: Core and Builtins
-Fix inconsistency in range function argument processing: any non-float non-
-integer argument is now converted to an integer (if possible) using its
+Fix inconsistency in range function argument processing: any non-float
+non-integer argument is now converted to an integer (if possible) using its
__int__ method. Previously, only small arguments were treated this way;
larger arguments (those whose __int__ was outside the range of a C long)
would produce a TypeError.
A new C API function, :cfunc:`PySys_SetArgvEx`, allows embedders of the
interpreter to set sys.argv without also modifying sys.path. This helps fix
-`CVE-2008-5983 <http://cve.mitre.org/cgi-
-bin/cvename.cgi?name=CVE-2008-5983>`_.
+`CVE-2008-5983
+<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_.
..