cpython/Misc/NEWS.d/3.6.0a1.rst

3942 lines
72 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. bpo: 20041
.. date: 8953
.. nonce: TypyGp
.. release date: 2016-05-16
.. section: Core and Builtins
Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye.
..
.. bpo: 26168
.. date: 8952
.. nonce: -nPBL6
.. section: Core and Builtins
Fixed possible refleaks in failing Py_BuildValue() with the "N" format unit.
..
.. bpo: 26991
.. date: 8951
.. nonce: yWGNhz
.. section: Core and Builtins
Fix possible refleak when creating a function with annotations.
..
.. bpo: 27039
.. date: 8950
.. nonce: oO-wLV
.. section: Core and Builtins
Fixed bytearray.remove() for values greater than 127. Based on patch by Joe
Jevnik.
..
.. bpo: 23640
.. date: 8949
.. nonce: kvNC4c
.. section: Core and Builtins
int.from_bytes() no longer bypasses constructors for subclasses.
..
.. bpo: 27005
.. date: 8948
.. nonce: ZtcJf-
.. section: Core and Builtins
Optimized the float.fromhex() class method for exact float. It is now 2
times faster.
..
.. bpo: 18531
.. date: 8947
.. nonce: PkXgtO
.. section: Core and Builtins
Single var-keyword argument of dict subtype was passed unscathed to the
C-defined function. Now it is converted to exact dict.
..
.. bpo: 26811
.. date: 8946
.. nonce: oNzUWt
.. section: Core and Builtins
gc.get_objects() no longer contains a broken tuple with NULL pointer.
..
.. bpo: 20120
.. date: 8945
.. nonce: c-FZZc
.. section: Core and Builtins
Use RawConfigParser for .pypirc parsing, removing support for interpolation
unintentionally added with move to Python 3. Behavior no longer does any
interpolation in .pypirc files, matching behavior in Python 2.7 and
Setuptools 19.0.
..
.. bpo: 26249
.. date: 8944
.. nonce: ZbpWF3
.. section: Core and Builtins
Memory functions of the :c:func:`PyMem_Malloc` domain
(:c:data:`PYMEM_DOMAIN_MEM`) now use the :ref:`pymalloc allocator
<pymalloc>` rather than system :c:func:`malloc`. Applications calling
:c:func:`PyMem_Malloc` without holding the GIL can now crash: use
``PYTHONMALLOC=debug`` environment variable to validate the usage of memory
allocators in your application.
..
.. bpo: 26802
.. date: 8943
.. nonce: hWpU4v
.. section: Core and Builtins
Optimize function calls only using unpacking like ``func(*tuple)`` (no other
positional argument, no keyword): avoid copying the tuple. Patch written by
Joe Jevnik.
..
.. bpo: 26659
.. date: 8942
.. nonce: 5PRa83
.. section: Core and Builtins
Make the builtin slice type support cycle collection.
..
.. bpo: 26718
.. date: 8941
.. nonce: K5PQ8j
.. section: Core and Builtins
super.__init__ no longer leaks memory if called multiple times. NOTE: A
direct call of super.__init__ is not endorsed!
..
.. bpo: 27138
.. date: 8940
.. nonce: ifYEro
.. section: Core and Builtins
Fix the doc comment for FileFinder.find_spec().
..
.. bpo: 27147
.. date: 8939
.. nonce: tCCgmH
.. section: Core and Builtins
Mention PEP 420 in the importlib docs.
..
.. bpo: 25339
.. date: 8938
.. nonce: ZcaC2E
.. section: Core and Builtins
PYTHONIOENCODING now has priority over locale in setting the error handler
for stdin and stdout.
..
.. bpo: 26494
.. date: 8937
.. nonce: G6eXIi
.. section: Core and Builtins
Fixed crash on iterating exhausting iterators. Affected classes are generic
sequence iterators, iterators of str, bytes, bytearray, list, tuple, set,
frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
..
.. bpo: 26574
.. date: 8936
.. nonce: D2YL_w
.. section: Core and Builtins
Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``.
Patch written by Josh Snider.
..
.. bpo: 26581
.. date: 8935
.. nonce: yNA7nm
.. section: Core and Builtins
If coding cookie is specified multiple times on a line in Python source code
file, only the first one is taken to account.
..
.. bpo: 19711
.. date: 8934
.. nonce: gDDPJE
.. section: Core and Builtins
Add tests for reloading namespace packages.
..
.. bpo: 21099
.. date: 8933
.. nonce: CuMWZJ
.. section: Core and Builtins
Switch applicable importlib tests to use PEP 451 API.
..
.. bpo: 26563
.. date: 8932
.. nonce: lyrB2Q
.. section: Core and Builtins
Debug hooks on Python memory allocators now raise a fatal error if functions
of the :c:func:`PyMem_Malloc` family are called without holding the GIL.
..
.. bpo: 26564
.. date: 8931
.. nonce: xeRXaz
.. section: Core and Builtins
On error, the debug hooks on Python memory allocators now use the
:mod:`tracemalloc` module to get the traceback where a memory block was
allocated.
..
.. bpo: 26558
.. date: 8930
.. nonce: s05jz7
.. section: Core and Builtins
The debug hooks on Python memory allocator :c:func:`PyObject_Malloc` now
detect when functions are called without holding the GIL.
..
.. bpo: 26516
.. date: 8929
.. nonce: OjekqZ
.. section: Core and Builtins
Add :envvar:`PYTHONMALLOC` environment variable to set the Python memory
allocators and/or install debug hooks.
..
.. bpo: 26516
.. date: 8928
.. nonce: chNJuF
.. section: Core and Builtins
The :c:func:`PyMem_SetupDebugHooks` function can now also be used on Python
compiled in release mode.
..
.. bpo: 26516
.. date: 8927
.. nonce: q7fu1f
.. section: Core and Builtins
The :envvar:`PYTHONMALLOCSTATS` environment variable can now also be used on
Python compiled in release mode. It now has no effect if set to an empty
string.
..
.. bpo: 26516
.. date: 8926
.. nonce: 2k9k6R
.. section: Core and Builtins
In debug mode, debug hooks are now also installed on Python memory
allocators when Python is configured without pymalloc.
..
.. bpo: 26464
.. date: 8925
.. nonce: 7BreGz
.. section: Core and Builtins
Fix str.translate() when string is ASCII and first replacements removes
character, but next replacement uses a non-ASCII character or a string
longer than 1 character. Regression introduced in Python 3.5.0.
..
.. bpo: 22836
.. date: 8924
.. nonce: cimt1y
.. section: Core and Builtins
Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable()
are sensible even when formatting them produces secondary errors. This
affects the reports produced by sys.__excepthook__() and when __del__()
raises an exception.
..
.. bpo: 26302
.. date: 8923
.. nonce: UD9XQt
.. section: Core and Builtins
Correct behavior to reject comma as a legal character for cookie names.
..
.. bpo: 26136
.. date: 8922
.. nonce: eZ0t1K
.. section: Core and Builtins
Upgrade the warning when a generator raises StopIteration from
PendingDeprecationWarning to DeprecationWarning. Patch by Anish Shah.
..
.. bpo: 26204
.. date: 8921
.. nonce: x3Zp8E
.. section: Core and Builtins
The compiler now ignores all constant statements: bytes, str, int, float,
complex, name constants (None, False, True), Ellipsis and ast.Constant; not
only str and int. For example, ``1.0`` is now ignored in ``def f(): 1.0``.
..
.. bpo: 4806
.. date: 8920
.. nonce: i9m3hj
.. section: Core and Builtins
Avoid masking the original TypeError exception when using star (``*``)
unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel
Urban.
..
.. bpo: 26146
.. date: 8919
.. nonce: HKrUth
.. section: Core and Builtins
Add a new kind of AST node: ``ast.Constant``. It can be used by external AST
optimizers, but the compiler does not emit directly such node.
..
.. bpo: 23601
.. date: 8918
.. nonce: 2E4seG
.. section: Core and Builtins
Sped-up allocation of dict key objects by using Python's small object
allocator. (Contributed by Julian Taylor.)
..
.. bpo: 18018
.. date: 8917
.. nonce: XKKap3
.. section: Core and Builtins
Import raises ImportError instead of SystemError if a relative import is
attempted without a known parent package.
..
.. bpo: 25843
.. date: 8916
.. nonce: NtJZie
.. section: Core and Builtins
When compiling code, don't merge constants if they are equal but have a
different types. For example, ``f1, f2 = lambda: 1, lambda: 1.0`` is now
correctly compiled to two different functions: ``f1()`` returns ``1``
(``int``) and ``f2()`` returns ``1.0`` (``float``), even if ``1`` and
``1.0`` are equal.
..
.. bpo: 26107
.. date: 8915
.. nonce: q0LBMY
.. section: Core and Builtins
The format of the ``co_lnotab`` attribute of code objects changes to support
negative line number delta.
..
.. bpo: 26154
.. date: 8914
.. nonce: MtnRAH
.. section: Core and Builtins
Add a new private _PyThreadState_UncheckedGet() function to get the current
Python thread state, but don't issue a fatal error if it is NULL. This new
function must be used instead of accessing directly the
_PyThreadState_Current variable. The variable is no more exposed since
Python 3.5.1 to hide the exact implementation of atomic C types, to avoid
compiler issues.
..
.. bpo: 25791
.. date: 8913
.. nonce: gllzPw
.. section: Core and Builtins
If __package__ != __spec__.parent or if neither __package__ or __spec__ are
defined then ImportWarning is raised.
..
.. bpo: 22995
.. date: 8912
.. nonce: KYNKvs
.. section: Core and Builtins
[UPDATE] Comment out the one of the pickleability tests in
_PyObject_GetState() due to regressions observed in Cython-based projects.
..
.. bpo: 25961
.. date: 8911
.. nonce: Hdjjw0
.. section: Core and Builtins
Disallowed null characters in the type name.
..
.. bpo: 25973
.. date: 8910
.. nonce: Ud__ZP
.. section: Core and Builtins
Fix segfault when an invalid nonlocal statement binds a name starting with
two underscores.
..
.. bpo: 22995
.. date: 8909
.. nonce: Wq0E86
.. section: Core and Builtins
Instances of extension types with a state that aren't subclasses of list or
dict and haven't implemented any pickle-related methods (__reduce__,
__reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no
longer be pickled. Including memoryview.
..
.. bpo: 20440
.. date: 8908
.. nonce: GCwOfH
.. section: Core and Builtins
Massive replacing unsafe attribute setting code with special macro
Py_SETREF.
..
.. bpo: 25766
.. date: 8907
.. nonce: jn93Yu
.. section: Core and Builtins
Special method __bytes__() now works in str subclasses.
..
.. bpo: 25421
.. date: 8906
.. nonce: c47YEL
.. section: Core and Builtins
__sizeof__ methods of builtin types now use dynamic basic size. This allows
sys.getsize() to work correctly with their subclasses with __slots__
defined.
..
.. bpo: 25709
.. date: 8905
.. nonce: WwGm2k
.. section: Core and Builtins
Fixed problem with in-place string concatenation and utf-8 cache.
..
.. bpo: 5319
.. date: 8904
.. nonce: HxlGwI
.. section: Core and Builtins
New Py_FinalizeEx() API allowing Python to set an exit status of 120 on
failure to flush buffered streams.
..
.. bpo: 25485
.. date: 8903
.. nonce: 9qnaPt
.. section: Core and Builtins
telnetlib.Telnet is now a context manager.
..
.. bpo: 24097
.. date: 8902
.. nonce: Vt4E-i
.. section: Core and Builtins
Fixed crash in object.__reduce__() if slot name is freed inside __getattr__.
..
.. bpo: 24731
.. date: 8901
.. nonce: h9-hnz
.. section: Core and Builtins
Fixed crash on converting objects with special methods __bytes__, __trunc__,
and __float__ returning instances of subclasses of bytes, int, and float to
subclasses of bytes, int, and float correspondingly.
..
.. bpo: 25630
.. date: 8900
.. nonce: ZxzcoY
.. section: Core and Builtins
Fix a possible segfault during argument parsing in functions that accept
filesystem paths.
..
.. bpo: 23564
.. date: 8899
.. nonce: XHarGG
.. section: Core and Builtins
Fixed a partially broken sanity check in the _posixsubprocess internals
regarding how fds_to_pass were passed to the child. The bug had no actual
impact as subprocess.py already avoided it.
..
.. bpo: 25388
.. date: 8898
.. nonce: zm3uuQ
.. section: Core and Builtins
Fixed tokenizer crash when processing undecodable source code with a null
byte.
..
.. bpo: 25462
.. date: 8897
.. nonce: eXDzgO
.. section: Core and Builtins
The hash of the key now is calculated only once in most operations in C
implementation of OrderedDict.
..
.. bpo: 22995
.. date: 8896
.. nonce: 90kpuP
.. section: Core and Builtins
Default implementation of __reduce__ and __reduce_ex__ now rejects builtin
types with not defined __new__.
..
.. bpo: 24802
.. date: 8895
.. nonce: Qie066
.. section: Core and Builtins
Avoid buffer overreads when int(), float(), compile(), exec() and eval() are
passed bytes-like objects. These objects are not necessarily terminated by
a null byte, but the functions assumed they were.
..
.. bpo: 25555
.. date: 8894
.. nonce: MUpG-j
.. section: Core and Builtins
Fix parser and AST: fill lineno and col_offset of "arg" node when compiling
AST from Python objects.
..
.. bpo: 24726
.. date: 8893
.. nonce: AHk4v2
.. section: Core and Builtins
Fixed a crash and leaking NULL in repr() of OrderedDict that was mutated by
direct calls of dict methods.
..
.. bpo: 25449
.. date: 8892
.. nonce: VqTOFi
.. section: Core and Builtins
Iterating OrderedDict with keys with unstable hash now raises KeyError in C
implementations as well as in Python implementation.
..
.. bpo: 25395
.. date: 8891
.. nonce: htkE3W
.. section: Core and Builtins
Fixed crash when highly nested OrderedDict structures were garbage
collected.
..
.. bpo: 25401
.. date: 8890
.. nonce: ofrAtd
.. section: Core and Builtins
Optimize bytes.fromhex() and bytearray.fromhex(): they are now between 2x
and 3.5x faster.
..
.. bpo: 25399
.. date: 8889
.. nonce: dNKIhY
.. section: Core and Builtins
Optimize bytearray % args using the new private _PyBytesWriter API.
Formatting is now between 2.5 and 5 times faster.
..
.. bpo: 25274
.. date: 8888
.. nonce: QCGvAF
.. section: Core and Builtins
sys.setrecursionlimit() now raises a RecursionError if the new recursion
limit is too low depending at the current recursion depth. Modify also the
"lower-water mark" formula to make it monotonic. This mark is used to decide
when the overflowed flag of the thread state is reset.
..
.. bpo: 24402
.. date: 8887
.. nonce: MAgi3X
.. section: Core and Builtins
Fix input() to prompt to the redirected stdout when sys.stdout.fileno()
fails.
..
.. bpo: 25349
.. date: 8886
.. nonce: 7lBgJ8
.. section: Core and Builtins
Optimize bytes % args using the new private _PyBytesWriter API. Formatting
is now up to 2 times faster.
..
.. bpo: 24806
.. date: 8885
.. nonce: Nb0znT
.. section: Core and Builtins
Prevent builtin types that are not allowed to be subclassed from being
subclassed through multiple inheritance.
..
.. bpo: 25301
.. date: 8884
.. nonce: hUTCfr
.. section: Core and Builtins
The UTF-8 decoder is now up to 15 times as fast for error handlers:
``ignore``, ``replace`` and ``surrogateescape``.
..
.. bpo: 24848
.. date: 8883
.. nonce: HlUSuy
.. section: Core and Builtins
Fixed a number of bugs in UTF-7 decoding of misformed data.
..
.. bpo: 25267
.. date: 8882
.. nonce: SW8Gs6
.. section: Core and Builtins
The UTF-8 encoder is now up to 75 times as fast for error handlers:
``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``. Patch co-
written with Serhiy Storchaka.
..
.. bpo: 25280
.. date: 8881
.. nonce: ivTMwd
.. section: Core and Builtins
Import trace messages emitted in verbose (-v) mode are no longer formatted
twice.
..
.. bpo: 25227
.. date: 8880
.. nonce: 19v5rp
.. section: Core and Builtins
Optimize ASCII and latin1 encoders with the ``surrogateescape`` error
handler: the encoders are now up to 3 times as fast. Initial patch written
by Serhiy Storchaka.
..
.. bpo: 25003
.. date: 8879
.. nonce: _ban92
.. section: Core and Builtins
On Solaris 11.3 or newer, os.urandom() now uses the getrandom() function
instead of the getentropy() function. The getentropy() function is blocking
to generate very good quality entropy, os.urandom() doesn't need such high-
quality entropy.
..
.. bpo: 9232
.. date: 8878
.. nonce: pjsmWw
.. section: Core and Builtins
Modify Python's grammar to allow trailing commas in the argument list of a
function declaration. For example, "def f(\*, a = 3,): pass" is now legal.
Patch from Mark Dickinson.
..
.. bpo: 24965
.. date: 8877
.. nonce: wfyxbB
.. section: Core and Builtins
Implement PEP 498 "Literal String Interpolation". This allows you to embed
expressions inside f-strings, which are converted to normal strings at run
time. Given x=3, then f'value={x}' == 'value=3'. Patch by Eric V. Smith.
..
.. bpo: 26478
.. date: 8876
.. nonce: n0dB8e
.. section: Core and Builtins
Fix semantic bugs when using binary operators with dictionary views and
tuples.
..
.. bpo: 26171
.. date: 8875
.. nonce: 8SaQEa
.. section: Core and Builtins
Fix possible integer overflow and heap corruption in zipimporter.get_data().
..
.. bpo: 25660
.. date: 8874
.. nonce: 93DzBo
.. section: Core and Builtins
Fix TAB key behaviour in REPL with readline.
..
.. bpo: 26288
.. date: 8873
.. nonce: f67RLk
.. section: Core and Builtins
Optimize PyLong_AsDouble.
..
.. bpo: 26289
.. date: 8872
.. nonce: uG9ozG
.. section: Core and Builtins
Optimize floor and modulo division for single-digit longs. Microbenchmarks
show 2-2.5x improvement. Built-in 'divmod' function is now also ~10%
faster. (See also: bpo-26315)
..
.. bpo: 25887
.. date: 8871
.. nonce: PtVIX7
.. section: Core and Builtins
Raise a RuntimeError when a coroutine object is awaited more than once.
..
.. bpo: 27057
.. date: 8870
.. nonce: YzTA_Q
.. section: Library
Fix os.set_inheritable() on Android, ioctl() is blocked by SELinux and fails
with EACCESS. The function now falls back to fcntl(). Patch written by
Michał Bednarski.
..
.. bpo: 27014
.. date: 8869
.. nonce: ui7Khn
.. section: Library
Fix infinite recursion using typing.py. Thanks to Kalle Tuure!
..
.. bpo: 27031
.. date: 8868
.. nonce: FtvDPs
.. section: Library
Removed dummy methods in Tkinter widget classes: tk_menuBar() and
tk_bindForTraversal().
..
.. bpo: 14132
.. date: 8867
.. nonce: 5wR9MN
.. section: Library
Fix urllib.request redirect handling when the target only has a query
string. Original fix by Ján Janech.
..
.. bpo: 17214
.. date: 8866
.. nonce: lUbZOV
.. section: Library
The "urllib.request" module now percent-encodes non-ASCII bytes found in
redirect target URLs. Some servers send Location header fields with non-
ASCII bytes, but "http.client" requires the request target to be ASCII-
encodable, otherwise a UnicodeEncodeError is raised. Based on patch by
Christian Heimes.
..
.. bpo: 27033
.. date: 8865
.. nonce: o4XIPr
.. section: Library
The default value of the decode_data parameter for smtpd.SMTPChannel and
smtpd.SMTPServer constructors is changed to False.
..
.. bpo: 27034
.. date: 8864
.. nonce: ptzz_S
.. section: Library
Removed deprecated class asynchat.fifo.
..
.. bpo: 26870
.. date: 8863
.. nonce: 5tCUlp
.. section: Library
Added readline.set_auto_history(), which can stop entries being
automatically added to the history list. Based on patch by Tyler Crompton.
..
.. bpo: 26039
.. date: 8862
.. nonce: JnXjiE
.. section: Library
zipfile.ZipFile.open() can now be used to write data into a ZIP file, as
well as for extracting data. Patch by Thomas Kluyver.
..
.. bpo: 26892
.. date: 8861
.. nonce: XIXb0h
.. section: Library
Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by
Chi Hsuan Yen.
..
.. bpo: 22274
.. date: 8860
.. nonce: 0RHDMN
.. section: Library
In the subprocess module, allow stderr to be redirected to stdout even when
stdout is not redirected. Patch by Akira Li.
..
.. bpo: 26807
.. date: 8859
.. nonce: LXSPP6
.. section: Library
mock_open 'files' no longer error on readline at end of file. Patch from
Yolanda Robla.
..
.. bpo: 25745
.. date: 8858
.. nonce: -n8acU
.. section: Library
Fixed leaking a userptr in curses panel destructor.
..
.. bpo: 26977
.. date: 8857
.. nonce: 5G4HtL
.. section: Library
Removed unnecessary, and ignored, call to sum of squares helper in
statistics.pvariance.
..
.. bpo: 26002
.. date: 8856
.. nonce: bVD4pW
.. section: Library
Use bisect in statistics.median instead of a linear search. Patch by Upendra
Kuma.
..
.. bpo: 25974
.. date: 8855
.. nonce: cpOy5R
.. section: Library
Make use of new Decimal.as_integer_ratio() method in statistics module.
Patch by Stefan Krah.
..
.. bpo: 26996
.. date: 8854
.. nonce: LR__VD
.. section: Library
Add secrets module as described in PEP 506.
..
.. bpo: 26881
.. date: 8853
.. nonce: mdiq_L
.. section: Library
The modulefinder module now supports extended opcode arguments.
..
.. bpo: 23815
.. date: 8852
.. nonce: _krNe8
.. section: Library
Fixed crashes related to directly created instances of types in _tkinter and
curses.panel modules.
..
.. bpo: 17765
.. date: 8851
.. nonce: hiSVS1
.. section: Library
weakref.ref() no longer silently ignores keyword arguments. Patch by Georg
Brandl.
..
.. bpo: 26873
.. date: 8850
.. nonce: cYXRcH
.. section: Library
xmlrpc now raises ResponseError on unsupported type tags instead of silently
return incorrect result.
..
.. bpo: 26915
.. date: 8849
.. nonce: GoQKUL
.. section: Library
The __contains__ methods in the collections ABCs now check for identity
before checking equality. This better matches the behavior of the concrete
classes, allows sensible handling of NaNs, and makes it easier to reason
about container invariants.
..
.. bpo: 26711
.. date: 8848
.. nonce: Eu85Qw
.. section: Library
Fixed the comparison of plistlib.Data with other types.
..
.. bpo: 24114
.. date: 8847
.. nonce: RMRMtM
.. section: Library
Fix an uninitialized variable in `ctypes.util`.
The bug only occurs on SunOS when the ctypes implementation searches for the
`crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos.
..
.. bpo: 26864
.. date: 8846
.. nonce: 1KgGds
.. section: Library
In urllib.request, change the proxy bypass host checking against no_proxy to
be case-insensitive, and to not match unrelated host names that happen to
have a bypassed hostname as a suffix. Patch by Xiang Zhang.
..
.. bpo: 24902
.. date: 8845
.. nonce: bwWpLj
.. section: Library
Print server URL on http.server startup. Initial patch by Felix Kaiser.
..
.. bpo: 25788
.. date: 8844
.. nonce: 9weIV5
.. section: Library
fileinput.hook_encoded() now supports an "errors" argument for passing to
open. Original patch by Joseph Hackman.
..
.. bpo: 26634
.. date: 8843
.. nonce: FZvsSb
.. section: Library
recursive_repr() now sets __qualname__ of wrapper. Patch by Xiang Zhang.
..
.. bpo: 26804
.. date: 8842
.. nonce: 9Orp-G
.. section: Library
urllib.request will prefer lower_case proxy environment variables over
UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen.
..
.. bpo: 26837
.. date: 8841
.. nonce: 2FXGsD
.. section: Library
assertSequenceEqual() now correctly outputs non-stringified differing items
(like bytes in the -b mode). This affects assertListEqual() and
assertTupleEqual().
..
.. bpo: 26041
.. date: 8840
.. nonce: bVem-p
.. section: Library
Remove "will be removed in Python 3.7" from deprecation messages of
platform.dist() and platform.linux_distribution(). Patch by Kumaripaba
Miyurusara Athukorala.
..
.. bpo: 26822
.. date: 8839
.. nonce: rYSL4W
.. section: Library
itemgetter, attrgetter and methodcaller objects no longer silently ignore
keyword arguments.
..
.. bpo: 26733
.. date: 8838
.. nonce: YxaJmL
.. section: Library
Disassembling a class now disassembles class and static methods. Patch by
Xiang Zhang.
..
.. bpo: 26801
.. date: 8837
.. nonce: TQGY-7
.. section: Library
Fix error handling in :func:`shutil.get_terminal_size`, catch
:exc:`AttributeError` instead of :exc:`NameError`. Patch written by Emanuel
Barry.
..
.. bpo: 24838
.. date: 8836
.. nonce: 3Pfx8T
.. section: Library
tarfile's ustar and gnu formats now correctly calculate name and link field
limits for multibyte character encodings like utf-8.
..
.. bpo: 26657
.. date: 8835
.. nonce: C_-XFg
.. original section: Library
.. section: Security
Fix directory traversal vulnerability with http.server on Windows. This
fixes a regression that was introduced in 3.3.4rc1 and 3.4.0rc1. Based on
patch by Philipp Hagemeister.
..
.. bpo: 26717
.. date: 8834
.. nonce: jngTdu
.. section: Library
Stop encoding Latin-1-ized WSGI paths with UTF-8. Patch by Anthony Sottile.
..
.. bpo: 26782
.. date: 8833
.. nonce: JWLPrH
.. section: Library
Add STARTUPINFO to subprocess.__all__ on Windows.
..
.. bpo: 26404
.. date: 8832
.. nonce: hXw7Bs
.. section: Library
Add context manager to socketserver. Patch by Aviv Palivoda.
..
.. bpo: 26735
.. date: 8831
.. nonce: riSl3b
.. section: Library
Fix :func:`os.urandom` on Solaris 11.3 and newer when reading more than
1,024 bytes: call ``getrandom()`` multiple times with a limit of 1024 bytes
per call.
..
.. bpo: 26585
.. date: 8830
.. nonce: kfb749
.. section: Library
Eliminate http.server._quote_html() and use html.escape(quote=False). Patch
by Xiang Zhang.
..
.. bpo: 26685
.. date: 8829
.. nonce: sI_1Ff
.. section: Library
Raise OSError if closing a socket fails.
..
.. bpo: 16329
.. date: 8828
.. nonce: nuXD8W
.. section: Library
Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'.
..
.. bpo: 13952
.. date: 8827
.. nonce: SOoTVE
.. section: Library
Add .csv to mimetypes.types_map. Patch by Geoff Wilson.
..
.. bpo: 26587
.. date: 8826
.. nonce: Qo-B6C
.. section: Library
the site module now allows .pth files to specify files to be added to
sys.path (e.g. zip files).
..
.. bpo: 25609
.. date: 8825
.. nonce: t1ydQM
.. section: Library
Introduce contextlib.AbstractContextManager and typing.ContextManager.
..
.. bpo: 26709
.. date: 8824
.. nonce: luOPbP
.. section: Library
Fixed Y2038 problem in loading binary PLists.
..
.. bpo: 23735
.. date: 8823
.. nonce: Y5oQ9r
.. section: Library
Handle terminal resizing with Readline 6.3+ by installing our own SIGWINCH
handler. Patch by Eric Price.
..
.. bpo: 25951
.. date: 8822
.. nonce: 1CUASJ
.. section: Library
Change SSLSocket.sendall() to return None, as explicitly documented for
plain socket objects. Patch by Aviv Palivoda.
..
.. bpo: 26586
.. date: 8821
.. nonce: V5pZNa
.. section: Library
In http.server, respond with "413 Request header fields too large" if there
are too many header fields to parse, rather than killing the connection and
raising an unhandled exception. Patch by Xiang Zhang.
..
.. bpo: 26676
.. date: 8820
.. nonce: zLRFed
.. section: Library
Added missing XMLPullParser to ElementTree.__all__.
..
.. bpo: 22854
.. date: 8819
.. nonce: K3rMEH
.. section: Library
Change BufferedReader.writable() and BufferedWriter.readable() to always
return False.
..
.. bpo: 26492
.. date: 8818
.. nonce: YN18iz
.. section: Library
Exhausted iterator of array.array now conforms with the behavior of
iterators of other mutable sequences: it lefts exhausted even if iterated
array is extended.
..
.. bpo: 26641
.. date: 8817
.. nonce: 1ICQz0
.. section: Library
doctest.DocFileTest and doctest.testfile() now support packages (module
splitted into multiple directories) for the package parameter.
..
.. bpo: 25195
.. date: 8816
.. nonce: EOc4Po
.. section: Library
Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
3603bae63c13 only works for classes) so we need to implement __ne__
ourselves. Patch by Andrew Plummer.
..
.. bpo: 26644
.. date: 8815
.. nonce: 7tt1tk
.. section: Library
Raise ValueError rather than SystemError when a negative length is passed to
SSLSocket.recv() or read().
..
.. bpo: 23804
.. date: 8814
.. nonce: PP63Ff
.. section: Library
Fix SSL recv(0) and read(0) methods to return zero bytes instead of up to
1024.
..
.. bpo: 26616
.. date: 8813
.. nonce: v3QwdD
.. section: Library
Fixed a bug in datetime.astimezone() method.
..
.. bpo: 26637
.. date: 8812
.. nonce: ttiUf7
.. section: Library
The :mod:`importlib` module now emits an :exc:`ImportError` rather than a
:exc:`TypeError` if :func:`__import__` is tried during the Python shutdown
process but :data:`sys.path` is already cleared (set to ``None``).
..
.. bpo: 21925
.. date: 8811
.. nonce: xFz-hR
.. section: Library
:func:`warnings.formatwarning` now catches exceptions when calling
:func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be
able to log :exc:`ResourceWarning` emitted late during the Python shutdown
process.
..
.. bpo: 23848
.. date: 8810
.. nonce: RkKqPi
.. section: Library
On Windows, faulthandler.enable() now also installs an exception handler to
dump the traceback of all Python threads on any Windows exception, not only
on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
..
.. bpo: 26530
.. date: 8809
.. nonce: RWN1jR
.. section: Library
Add C functions :c:func:`_PyTraceMalloc_Track` and
:c:func:`_PyTraceMalloc_Untrack` to track memory blocks using the
:mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get
the traceback of an object.
..
.. bpo: 26588
.. date: 8808
.. nonce: uen0XP
.. section: Library
The _tracemalloc now supports tracing memory allocations of multiple address
spaces (domains).
..
.. bpo: 24266
.. date: 8807
.. nonce: YZgVyM
.. section: Library
Ctrl+C during Readline history search now cancels the search mode when
compiled with Readline 7.
..
.. bpo: 26590
.. date: 8806
.. nonce: qEy91x
.. section: Library
Implement a safe finalizer for the _socket.socket type. It now releases the
GIL to close the socket.
..
.. bpo: 18787
.. date: 8805
.. nonce: rWyzgA
.. section: Library
spwd.getspnam() now raises a PermissionError if the user doesn't have
privileges.
..
.. bpo: 26560
.. date: 8804
.. nonce: A4WXNz
.. section: Library
Avoid potential ValueError in BaseHandler.start_response. Initial patch by
Peter Inglesby.
..
.. bpo: 26567
.. date: 8803
.. nonce: kcC99B
.. section: Library
Add a new function :c:func:`PyErr_ResourceWarning` function to pass the
destroyed object. Add a *source* attribute to
:class:`warnings.WarningMessage`. Add warnings._showwarnmsg() which uses
tracemalloc to get the traceback where source object was allocated.
..
.. bpo: 26313
.. date: 8802
.. nonce: LjZAjy
.. original section: Library
.. section: Security
ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch
by Baji.
..
.. bpo: 26569
.. date: 8801
.. nonce: EX8vF1
.. section: Library
Fix :func:`pyclbr.readmodule` and :func:`pyclbr.readmodule_ex` to support
importing packages.
..
.. bpo: 26499
.. date: 8800
.. nonce: NP08PI
.. section: Library
Account for remaining Content-Length in HTTPResponse.readline() and read1().
Based on patch by Silent Ghost. Also document that HTTPResponse now supports
these methods.
..
.. bpo: 25320
.. date: 8799
.. nonce: V96LIy
.. section: Library
Handle sockets in directories unittest discovery is scanning. Patch from
Victor van den Elzen.
..
.. bpo: 16181
.. date: 8798
.. nonce: P7lLvo
.. section: Library
cookiejar.http2time() now returns None if year is higher than
datetime.MAXYEAR.
..
.. bpo: 26513
.. date: 8797
.. nonce: HoPepy
.. section: Library
Fixes platform module detection of Windows Server
..
.. bpo: 23718
.. date: 8796
.. nonce: AMPC0o
.. section: Library
Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence
Gedai.
..
.. bpo: 26323
.. date: 8795
.. nonce: KkZqEj
.. section: Library
Add Mock.assert_called() and Mock.assert_called_once() methods to
unittest.mock. Patch written by Amit Saha.
..
.. bpo: 20589
.. date: 8794
.. nonce: NsQ_I1
.. section: Library
Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
..
.. bpo: 26177
.. date: 8793
.. nonce: HlSWer
.. section: Library
Fixed the keys() method for Canvas and Scrollbar widgets.
..
.. bpo: 15068
.. date: 8792
.. nonce: xokEVC
.. section: Library
Got rid of excessive buffering in fileinput. The bufsize parameter is now
deprecated and ignored.
..
.. bpo: 19475
.. date: 8791
.. nonce: MH2HH9
.. section: Library
Added an optional argument timespec to the datetime isoformat() method to
choose the precision of the time component.
..
.. bpo: 2202
.. date: 8790
.. nonce: dk9sd0
.. section: Library
Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls.
Initial patch by Mathieu Dupuy.
..
.. bpo: 26167
.. date: 8789
.. nonce: 3F-d12
.. section: Library
Minimized overhead in copy.copy() and copy.deepcopy(). Optimized copying and
deepcopying bytearrays, NotImplemented, slices, short lists, tuples, dicts,
sets.
..
.. bpo: 25718
.. date: 8788
.. nonce: 4EjZyv
.. section: Library
Fixed pickling and copying the accumulate() iterator with total is None.
..
.. bpo: 26475
.. date: 8787
.. nonce: JXVccY
.. section: Library
Fixed debugging output for regular expressions with the (?x) flag.
..
.. bpo: 26482
.. date: 8786
.. nonce: d635gW
.. section: Library
Allowed pickling recursive dequeues.
..
.. bpo: 26335
.. date: 8785
.. nonce: iXw5Yb
.. section: Library
Make mmap.write() return the number of bytes written like other write
methods. Patch by Jakub Stasiak.
..
.. bpo: 26457
.. date: 8784
.. nonce: Xe6Clh
.. section: Library
Fixed the subnets() methods in IP network classes for the case when
resulting prefix length is equal to maximal prefix length. Based on patch by
Xiang Zhang.
..
.. bpo: 26385
.. date: 8783
.. nonce: 50bDXm
.. section: Library
Remove the file if the internal open() call in NamedTemporaryFile() fails.
Patch by Silent Ghost.
..
.. bpo: 26402
.. date: 8782
.. nonce: k7DVuU
.. section: Library
Fix XML-RPC client to retry when the server shuts down a persistent
connection. This was a regression related to the new
http.client.RemoteDisconnected exception in 3.5.0a4.
..
.. bpo: 25913
.. date: 8781
.. nonce: 5flb95
.. section: Library
Leading ``<~`` is optional now in base64.a85decode() with adobe=True. Patch
by Swati Jaiswal.
..
.. bpo: 26186
.. date: 8780
.. nonce: R9rfiL
.. section: Library
Remove an invalid type check in importlib.util.LazyLoader.
..
.. bpo: 26367
.. date: 8779
.. nonce: Qct-9S
.. section: Library
importlib.__import__() raises ImportError like builtins.__import__() when
``level`` is specified but without an accompanying package specified.
..
.. bpo: 26309
.. date: 8778
.. nonce: ubEeiz
.. section: Library
In the "socketserver" module, shut down the request (closing the connected
socket) when verify_request() returns false. Patch by Aviv Palivoda.
..
.. bpo: 23430
.. date: 8777
.. nonce: s_mLiA
.. section: Library
Change the socketserver module to only catch exceptions raised from a
request handler that are derived from Exception (instead of BaseException).
Therefore SystemExit and KeyboardInterrupt no longer trigger the
handle_error() method, and will now to stop a single-threaded server.
..
.. bpo: 25939
.. date: 8776
.. nonce: X49Fqd
.. original section: Library
.. section: Security
On Windows open the cert store readonly in ssl.enum_certificates.
..
.. bpo: 25995
.. date: 8775
.. nonce: NfcimP
.. section: Library
os.walk() no longer uses FDs proportional to the tree depth.
..
.. bpo: 25994
.. date: 8774
.. nonce: ga9rT-
.. section: Library
Added the close() method and the support of the context manager protocol for
the os.scandir() iterator.
..
.. bpo: 23992
.. date: 8773
.. nonce: O0Hhvc
.. section: Library
multiprocessing: make MapResult not fail-fast upon exception.
..
.. bpo: 26243
.. date: 8772
.. nonce: 41WSpF
.. section: Library
Support keyword arguments to zlib.compress(). Patch by Aviv Palivoda.
..
.. bpo: 26117
.. date: 8771
.. nonce: ne6p11
.. section: Library
The os.scandir() iterator now closes file descriptor not only when the
iteration is finished, but when it was failed with error.
..
.. bpo: 25949
.. date: 8770
.. nonce: -Lh9vz
.. section: Library
__dict__ for an OrderedDict instance is now created only when needed.
..
.. bpo: 25911
.. date: 8769
.. nonce: d4Zadh
.. section: Library
Restored support of bytes paths in os.walk() on Windows.
..
.. bpo: 26045
.. date: 8768
.. nonce: WmzUrX
.. section: Library
Add UTF-8 suggestion to error message when posting a non-Latin-1 string with
http.client.
..
.. bpo: 26039
.. date: 8767
.. nonce: a5Bxm4
.. section: Library
Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir(). Patch by
Thomas Kluyver.
..
.. bpo: 12923
.. date: 8766
.. nonce: HPAu-B
.. section: Library
Reset FancyURLopener's redirect counter even if there is an exception.
Based on patches by Brian Brazil and Daniel Rocco.
..
.. bpo: 25945
.. date: 8765
.. nonce: guNgNM
.. section: Library
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor. "args" and "keywords"
attributes of functools.partial have now always types tuple and dict
correspondingly.
..
.. bpo: 26202
.. date: 8764
.. nonce: LPIXLg
.. section: Library
copy.deepcopy() now correctly copies range() objects with non-atomic
attributes.
..
.. bpo: 23076
.. date: 8763
.. nonce: 8rphoP
.. section: Library
Path.glob() now raises a ValueError if it's called with an invalid pattern.
Patch by Thomas Nyberg.
..
.. bpo: 19883
.. date: 8762
.. nonce: z9TsO6
.. section: Library
Fixed possible integer overflows in zipimport.
..
.. bpo: 26227
.. date: 8761
.. nonce: Fe6oiB
.. section: Library
On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions
of the socket module now decode the hostname from the ANSI code page rather
than UTF-8.
..
.. bpo: 26099
.. date: 8760
.. nonce: CH5jer
.. section: Library
The site module now writes an error into stderr if sitecustomize module can
be imported but executing the module raise an ImportError. Same change for
usercustomize.
..
.. bpo: 26147
.. date: 8759
.. nonce: i-Jc01
.. section: Library
xmlrpc now works with strings not encodable with used non-UTF-8 encoding.
..
.. bpo: 25935
.. date: 8758
.. nonce: cyni91
.. section: Library
Garbage collector now breaks reference loops with OrderedDict.
..
.. bpo: 16620
.. date: 8757
.. nonce: rxpn_Y
.. section: Library
Fixed AttributeError in msilib.Directory.glob().
..
.. bpo: 26013
.. date: 8756
.. nonce: 93RKNz
.. section: Library
Added compatibility with broken protocol 2 pickles created in old Python 3
versions (3.4.3 and lower).
..
.. bpo: 26129
.. date: 8755
.. nonce: g4RQZd
.. section: Library
Deprecated accepting non-integers in grp.getgrgid().
..
.. bpo: 25850
.. date: 8754
.. nonce: jwFPxj
.. section: Library
Use cross-compilation by default for 64-bit Windows.
..
.. bpo: 25822
.. date: 8753
.. nonce: 0Eafyi
.. section: Library
Add docstrings to the fields of urllib.parse results. Patch contributed by
Swati Jaiswal.
..
.. bpo: 22642
.. date: 8752
.. nonce: PEgS9F
.. section: Library
Convert trace module option parsing mechanism to argparse. Patch contributed
by SilentGhost.
..
.. bpo: 24705
.. date: 8751
.. nonce: IZYwjR
.. section: Library
Fix sysconfig._parse_makefile not expanding ${} vars appearing before $()
vars.
..
.. bpo: 26069
.. date: 8750
.. nonce: NaF4lN
.. section: Library
Remove the deprecated apis in the trace module.
..
.. bpo: 22138
.. date: 8749
.. nonce: nRNYkc
.. section: Library
Fix mock.patch behavior when patching descriptors. Restore original values
after patching. Patch contributed by Sean McCully.
..
.. bpo: 25672
.. date: 8748
.. nonce: fw9RJP
.. section: Library
In the ssl module, enable the SSL_MODE_RELEASE_BUFFERS mode option if it is
safe to do so.
..
.. bpo: 26012
.. date: 8747
.. nonce: IFSXNm
.. section: Library
Don't traverse into symlinks for ``**`` pattern in pathlib.Path.[r]glob().
..
.. bpo: 24120
.. date: 8746
.. nonce: Yiwa0h
.. section: Library
Ignore PermissionError when traversing a tree with pathlib.Path.[r]glob().
Patch by Ulrich Petri.
..
.. bpo: 21815
.. date: 8745
.. nonce: h7-UY8
.. section: Library
Accept ] characters in the data portion of imap responses, in order to
handle the flags with square brackets accepted and produced by servers such
as gmail.
..
.. bpo: 25447
.. date: 8744
.. nonce: -4m4xO
.. section: Library
fileinput now uses sys.stdin as-is if it does not have a buffer attribute
(restores backward compatibility).
..
.. bpo: 25971
.. date: 8743
.. nonce: vhMeG0
.. section: Library
Optimized creating Fractions from floats by 2 times and from Decimals by 3
times.
..
.. bpo: 25802
.. date: 8742
.. nonce: Y2KOnA
.. section: Library
Document as deprecated the remaining implementations of
importlib.abc.Loader.load_module().
..
.. bpo: 25928
.. date: 8741
.. nonce: JsQfKK
.. section: Library
Add Decimal.as_integer_ratio().
..
.. bpo: 25447
.. date: 8740
.. nonce: ajPRDy
.. section: Library
Copying the lru_cache() wrapper object now always works, independently from
the type of the wrapped object (by returning the original object unchanged).
..
.. bpo: 25768
.. date: 8739
.. nonce: GDj2ip
.. section: Library
Have the functions in compileall return booleans instead of ints and add
proper documentation and tests for the return values.
..
.. bpo: 24103
.. date: 8738
.. nonce: WufqrQ
.. section: Library
Fixed possible use after free in ElementTree.XMLPullParser.
..
.. bpo: 25860
.. date: 8737
.. nonce: 0hActb
.. section: Library
os.fwalk() no longer skips remaining directories when error occurs.
Original patch by Samson Lee.
..
.. bpo: 25914
.. date: 8736
.. nonce: h0V61F
.. section: Library
Fixed and simplified OrderedDict.__sizeof__.
..
.. bpo: 25869
.. date: 8735
.. nonce: eAnRH5
.. section: Library
Optimized deepcopying ElementTree; it is now 20 times faster.
..
.. bpo: 25873
.. date: 8734
.. nonce: L4Fgjm
.. section: Library
Optimized iterating ElementTree. Iterating elements Element.iter() is now
40% faster, iterating text Element.itertext() is now up to 2.5 times faster.
..
.. bpo: 25902
.. date: 8733
.. nonce: 6t2FmH
.. section: Library
Fixed various refcount issues in ElementTree iteration.
..
.. bpo: 22227
.. date: 8732
.. nonce: 5utM-Q
.. section: Library
The TarFile iterator is reimplemented using generator. This implementation
is simpler that using class.
..
.. bpo: 25638
.. date: 8731
.. nonce: yitRj4
.. section: Library
Optimized ElementTree.iterparse(); it is now 2x faster. Optimized
ElementTree parsing; it is now 10% faster.
..
.. bpo: 25761
.. date: 8730
.. nonce: JGgMOP
.. section: Library
Improved detecting errors in broken pickle data.
..
.. bpo: 25717
.. date: 8729
.. nonce: 0_xjaK
.. section: Library
Restore the previous behaviour of tolerating most fstat() errors when
opening files. This was a regression in 3.5a1, and stopped anonymous
temporary files from working in special cases.
..
.. bpo: 24903
.. date: 8728
.. nonce: 3LBdzb
.. section: Library
Fix regression in number of arguments compileall accepts when '-d' is
specified. The check on the number of arguments has been dropped completely
as it never worked correctly anyway.
..
.. bpo: 25764
.. date: 8727
.. nonce: 7WWG07
.. section: Library
In the subprocess module, preserve any exception caused by fork() failure
when preexec_fn is used.
..
.. bpo: 25771
.. date: 8726
.. nonce: It-7Qf
.. section: Library
Tweak the exception message for importlib.util.resolve_name() when 'package'
isn't specified but necessary.
..
.. bpo: 6478
.. date: 8725
.. nonce: -Bi9Hb
.. section: Library
_strptime's regexp cache now is reset after changing timezone with
time.tzset().
..
.. bpo: 14285
.. date: 8724
.. nonce: UyG8Hj
.. section: Library
When executing a package with the "python -m package" option, and package
initialization fails, a proper traceback is now reported. The "runpy"
module now lets exceptions from package initialization pass back to the
caller, rather than raising ImportError.
..
.. bpo: 19771
.. date: 8723
.. nonce: 5NG-bg
.. section: Library
Also in runpy and the "-m" option, omit the irrelevant message ". . . is a
package and cannot be directly executed" if the package could not even be
initialized (e.g. due to a bad ``*.pyc`` file).
..
.. bpo: 25177
.. date: 8722
.. nonce: aNR4Ha
.. section: Library
Fixed problem with the mean of very small and very large numbers. As a side
effect, statistics.mean and statistics.variance should be significantly
faster.
..
.. bpo: 25718
.. date: 8721
.. nonce: D9mHZF
.. section: Library
Fixed copying object with state with boolean value is false.
..
.. bpo: 10131
.. date: 8720
.. nonce: a7tptz
.. section: Library
Fixed deep copying of minidom documents. Based on patch by Marian Ganisin.
..
.. bpo: 7990
.. date: 8719
.. nonce: fpvQxH
.. section: Library
dir() on ElementTree.Element now lists properties: "tag", "text", "tail" and
"attrib". Original patch by Santoso Wijaya.
..
.. bpo: 25725
.. date: 8718
.. nonce: XIKv3R
.. section: Library
Fixed a reference leak in pickle.loads() when unpickling invalid data
including tuple instructions.
..
.. bpo: 25663
.. date: 8717
.. nonce: Ofwfqa
.. section: Library
In the Readline completer, avoid listing duplicate global names, and search
the global namespace before searching builtins.
..
.. bpo: 25688
.. date: 8716
.. nonce: 8P1HOv
.. section: Library
Fixed file leak in ElementTree.iterparse() raising an error.
..
.. bpo: 23914
.. date: 8715
.. nonce: 1sEz4J
.. section: Library
Fixed SystemError raised by unpickler on broken pickle data.
..
.. bpo: 25691
.. date: 8714
.. nonce: ZEaapY
.. section: Library
Fixed crash on deleting ElementTree.Element attributes.
..
.. bpo: 25624
.. date: 8713
.. nonce: ed-fM0
.. section: Library
ZipFile now always writes a ZIP_STORED header for directory entries. Patch
by Dingyuan Wang.
..
.. bpo: 25626
.. date: 8712
.. nonce: TQ3fvb
.. section: Library
Change three zlib functions to accept sizes that fit in Py_ssize_t, but
internally cap those sizes to UINT_MAX. This resolves a regression in 3.5
where GzipFile.read() failed to read chunks larger than 2 or 4 GiB. The
change affects the zlib.Decompress.decompress() max_length parameter, the
zlib.decompress() bufsize parameter, and the zlib.Decompress.flush() length
parameter.
..
.. bpo: 25583
.. date: 8711
.. nonce: Gk-cim
.. section: Library
Avoid incorrect errors raised by os.makedirs(exist_ok=True) when the OS
gives priority to errors such as EACCES over EEXIST.
..
.. bpo: 25593
.. date: 8710
.. nonce: 56uegI
.. section: Library
Change semantics of EventLoop.stop() in asyncio.
..
.. bpo: 6973
.. date: 8709
.. nonce: nl5cHt
.. section: Library
When we know a subprocess.Popen process has died, do not allow the
send_signal(), terminate(), or kill() methods to do anything as they could
potentially signal a different process.
..
.. bpo: 23883
.. date: 8708
.. nonce: OQS5sS
.. section: Library
Added missing APIs to __all__ to match the documented APIs for the following
modules: calendar, csv, enum, fileinput, ftplib, logging, optparse, tarfile,
threading and wave. Also added a test.support.check__all__() helper.
Patches by Jacek Kołodziej, Mauro S. M. Rodrigues and Joel Taddei.
..
.. bpo: 25590
.. date: 8707
.. nonce: KPcnfv
.. section: Library
In the Readline completer, only call getattr() once per attribute. Also
complete names of attributes such as properties and slots which are listed
by dir() but not yet created on an instance.
..
.. bpo: 25498
.. date: 8706
.. nonce: AvqEBl
.. section: Library
Fix a crash when garbage-collecting ctypes objects created by wrapping a
memoryview. This was a regression made in 3.5a1. Based on patch by
Eryksun.
..
.. bpo: 25584
.. date: 8705
.. nonce: 124mYw
.. section: Library
Added "escape" to the __all__ list in the glob module.
..
.. bpo: 25584
.. date: 8704
.. nonce: ZeWX0J
.. section: Library
Fixed recursive glob() with patterns starting with ``**``.
..
.. bpo: 25446
.. date: 8703
.. nonce: k1DByx
.. section: Library
Fix regression in smtplib's AUTH LOGIN support.
..
.. bpo: 18010
.. date: 8702
.. nonce: Azyf1C
.. section: Library
Fix the pydoc web server's module search function to handle exceptions from
importing packages.
..
.. bpo: 25554
.. date: 8701
.. nonce: UM9MlR
.. section: Library
Got rid of circular references in regular expression parsing.
..
.. bpo: 18973
.. date: 8700
.. nonce: Am9jFL
.. section: Library
Command-line interface of the calendar module now uses argparse instead of
optparse.
..
.. bpo: 25510
.. date: 8699
.. nonce: 79g7LA
.. section: Library
fileinput.FileInput.readline() now returns b'' instead of '' at the end if
the FileInput was opened with binary mode. Patch by Ryosuke Ito.
..
.. bpo: 25503
.. date: 8698
.. nonce: Zea0Y7
.. section: Library
Fixed inspect.getdoc() for inherited docstrings of properties. Original
patch by John Mark Vandenberg.
..
.. bpo: 25515
.. date: 8697
.. nonce: fQsyYG
.. section: Library
Always use os.urandom as a source of randomness in uuid.uuid4.
..
.. bpo: 21827
.. date: 8696
.. nonce: k2oreR
.. section: Library
Fixed textwrap.dedent() for the case when largest common whitespace is a
substring of smallest leading whitespace. Based on patch by Robert Li.
..
.. bpo: 25447
.. date: 8695
.. nonce: eDYc4t
.. section: Library
The lru_cache() wrapper objects now can be copied and pickled (by returning
the original object unchanged).
..
.. bpo: 25390
.. date: 8694
.. nonce: 6mSgRq
.. section: Library
typing: Don't crash on Union[str, Pattern].
..
.. bpo: 25441
.. date: 8693
.. nonce: d7zph6
.. section: Library
asyncio: Raise error from drain() when socket is closed.
..
.. bpo: 25410
.. date: 8692
.. nonce: QAs_3B
.. section: Library
Cleaned up and fixed minor bugs in C implementation of OrderedDict.
..
.. bpo: 25411
.. date: 8691
.. nonce: qsJTCb
.. section: Library
Improved Unicode support in SMTPHandler through better use of the email
package. Thanks to user simon04 for the patch.
..
.. bpo: 0
.. date: 8690
.. nonce: pFHJ0i
.. section: Library
Move the imp module from a PendingDeprecationWarning to DeprecationWarning.
..
.. bpo: 25407
.. date: 8689
.. nonce: ukNt1D
.. section: Library
Remove mentions of the formatter module being removed in Python 3.6.
..
.. bpo: 25406
.. date: 8688
.. nonce: 5MZKU_
.. section: Library
Fixed a bug in C implementation of OrderedDict.move_to_end() that caused
segmentation fault or hang in iterating after moving several items to the
start of ordered dict.
..
.. bpo: 25382
.. date: 8687
.. nonce: XQ44yE
.. section: Library
pickletools.dis() now outputs implicit memo index for the MEMOIZE opcode.
..
.. bpo: 25357
.. date: 8686
.. nonce: ebqGy-
.. section: Library
Add an optional newline paramer to binascii.b2a_base64(). base64.b64encode()
uses it to avoid a memory copy.
..
.. bpo: 24164
.. date: 8685
.. nonce: oi6H3E
.. section: Library
Objects that need calling ``__new__`` with keyword arguments, can now be
pickled using pickle protocols older than protocol version 4.
..
.. bpo: 25364
.. date: 8684
.. nonce: u_1Wi6
.. section: Library
zipfile now works in threads disabled builds.
..
.. bpo: 25328
.. date: 8683
.. nonce: Rja1Xg
.. section: Library
smtpd's SMTPChannel now correctly raises a ValueError if both decode_data
and enable_SMTPUTF8 are set to true.
..
.. bpo: 16099
.. date: 8682
.. nonce: _MTt3k
.. section: Library
RobotFileParser now supports Crawl-delay and Request-rate extensions. Patch
by Nikolay Bogoychev.
..
.. bpo: 25316
.. date: 8681
.. nonce: dHQHWI
.. section: Library
distutils raises OSError instead of DistutilsPlatformError when MSVC is not
installed.
..
.. bpo: 25380
.. date: 8680
.. nonce: sKZ6-I
.. section: Library
Fixed protocol for the STACK_GLOBAL opcode in pickletools.opcodes.
..
.. bpo: 23972
.. date: 8679
.. nonce: s2g30g
.. section: Library
Updates asyncio datagram create method allowing reuseport and reuseaddr
socket options to be set prior to binding the socket. Mirroring the existing
asyncio create_server method the reuseaddr option for datagram sockets
defaults to True if the O/S is 'posix' (except if the platform is Cygwin).
Patch by Chris Laws.
..
.. bpo: 25304
.. date: 8678
.. nonce: CsmLyI
.. section: Library
Add asyncio.run_coroutine_threadsafe(). This lets you submit a coroutine to
a loop from another thread, returning a concurrent.futures.Future. By
Vincent Michel.
..
.. bpo: 25232
.. date: 8677
.. nonce: KhKjCE
.. section: Library
Fix CGIRequestHandler to split the query from the URL at the first question
mark (?) rather than the last. Patch from Xiang Zhang.
..
.. bpo: 24657
.. date: 8676
.. nonce: h2Ag7y
.. section: Library
Prevent CGIRequestHandler from collapsing slashes in the query part of the
URL as if it were a path. Patch from Xiang Zhang.
..
.. bpo: 25287
.. date: 8675
.. nonce: KhzzMW
.. section: Library
Don't add crypt.METHOD_CRYPT to crypt.methods if it's not supported. Check
if it is supported, it may not be supported on OpenBSD for example.
..
.. bpo: 23600
.. date: 8674
.. nonce: 7J_RD5
.. section: Library
Default implementation of tzinfo.fromutc() was returning wrong results in
some cases.
..
.. bpo: 25203
.. date: 8673
.. nonce: IgDEbt
.. section: Library
Failed readline.set_completer_delims() no longer left the module in
inconsistent state.
..
.. bpo: 25011
.. date: 8672
.. nonce: VcaCd6
.. section: Library
rlcompleter now omits private and special attribute names unless the prefix
starts with underscores.
..
.. bpo: 25209
.. date: 8671
.. nonce: WxKcdJ
.. section: Library
rlcompleter now can add a space or a colon after completed keyword.
..
.. bpo: 22241
.. date: 8670
.. nonce: a-Mtw2
.. section: Library
timezone.utc name is now plain 'UTC', not 'UTC-00:00'.
..
.. bpo: 23517
.. date: 8669
.. nonce: 0ABp8q
.. section: Library
fromtimestamp() and utcfromtimestamp() methods of datetime.datetime now
round microseconds to nearest with ties going to nearest even integer
(ROUND_HALF_EVEN), as round(float), instead of rounding towards -Infinity
(ROUND_FLOOR).
..
.. bpo: 23552
.. date: 8668
.. nonce: I0T-M-
.. section: Library
Timeit now warns when there is substantial (4x) variance between best and
worst times. Patch from Serhiy Storchaka.
..
.. bpo: 24633
.. date: 8667
.. nonce: 6Unn9B
.. section: Library
site-packages/README -> README.txt.
..
.. bpo: 24879
.. date: 8666
.. nonce: YUzg_z
.. section: Library
help() and pydoc can now list named tuple fields in the order they were
defined rather than alphabetically. The ordering is determined by the
_fields attribute if present.
..
.. bpo: 24874
.. date: 8665
.. nonce: luBfgA
.. section: Library
Improve speed of itertools.cycle() and make its pickle more compact.
..
.. bpo: 0
.. date: 8664
.. nonce: mD-_3v
.. section: Library
Fix crash in itertools.cycle.__setstate__() when the first argument wasn't a
list.
..
.. bpo: 20059
.. date: 8663
.. nonce: SHv0Ji
.. section: Library
urllib.parse raises ValueError on all invalid ports. Patch by Martin Panter.
..
.. bpo: 24360
.. date: 8662
.. nonce: 5RwH-e
.. section: Library
Improve __repr__ of argparse.Namespace() for invalid identifiers. Patch by
Matthias Bussonnier.
..
.. bpo: 23426
.. date: 8661
.. nonce: PUV-Cx
.. section: Library
run_setup was broken in distutils. Patch from Alexander Belopolsky.
..
.. bpo: 13938
.. date: 8660
.. nonce: e5NSE1
.. section: Library
2to3 converts StringTypes to a tuple. Patch from Mark Hammond.
..
.. bpo: 2091
.. date: 8659
.. nonce: bp56pO
.. section: Library
open() accepted a 'U' mode string containing '+', but 'U' can only be used
with 'r'. Patch from Jeff Balogh and John O'Connor.
..
.. bpo: 8585
.. date: 8658
.. nonce: 78hPc2
.. section: Library
improved tests for zipimporter2. Patch from Mark Lawrence.
..
.. bpo: 18622
.. date: 8657
.. nonce: i6nCCW
.. section: Library
unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from
Nicola Palumbo and Laurent De Buyst.
..
.. bpo: 24426
.. date: 8656
.. nonce: yCtQfT
.. section: Library
Fast searching optimization in regular expressions now works for patterns
that starts with capturing groups. Fast searching optimization now can't be
disabled at compile time.
..
.. bpo: 23661
.. date: 8655
.. nonce: 5VHJmh
.. section: Library
unittest.mock side_effects can now be exceptions again. This was a
regression vs Python 3.4. Patch from Ignacio Rossi
..
.. bpo: 13248
.. date: 8654
.. nonce: SA2hvu
.. section: Library
Remove deprecated inspect.getmoduleinfo function.
..
.. bpo: 25578
.. date: 8653
.. nonce: G6S-ft
.. section: Library
Fix (another) memory leak in SSLSocket.getpeercer().
..
.. bpo: 25530
.. date: 8652
.. nonce: hDFkwu
.. section: Library
Disable the vulnerable SSLv3 protocol by default when creating
ssl.SSLContext.
..
.. bpo: 25569
.. date: 8651
.. nonce: CfvQjK
.. section: Library
Fix memory leak in SSLSocket.getpeercert().
..
.. bpo: 25471
.. date: 8650
.. nonce: T0A02M
.. section: Library
Sockets returned from accept() shouldn't appear to be nonblocking.
..
.. bpo: 25319
.. date: 8649
.. nonce: iyuglv
.. section: Library
When threading.Event is reinitialized, the underlying condition should use a
regular lock rather than a recursive lock.
..
.. bpo: 0
.. date: 8648
.. nonce: rtZyid
.. section: Library
Skip getaddrinfo if host is already resolved. Patch by A. Jesse Jiryu Davis.
..
.. bpo: 26050
.. date: 8647
.. nonce: sclyvk
.. section: Library
Add asyncio.StreamReader.readuntil() method. Patch by Марк Коренберг.
..
.. bpo: 25924
.. date: 8646
.. nonce: Uxr2vt
.. section: Library
Avoid unnecessary serialization of getaddrinfo(3) calls on OS X versions
10.5 or higher. Original patch by A. Jesse Jiryu Davis.
..
.. bpo: 26406
.. date: 8645
.. nonce: ihvhF4
.. section: Library
Avoid unnecessary serialization of getaddrinfo(3) calls on current versions
of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
..
.. bpo: 26848
.. date: 8644
.. nonce: ChBOpQ
.. section: Library
Fix asyncio/subprocess.communicate() to handle empty input. Patch by Jack
O'Connor.
..
.. bpo: 27040
.. date: 8643
.. nonce: UASyCC
.. section: Library
Add loop.get_exception_handler method
..
.. bpo: 27041
.. date: 8642
.. nonce: p3893U
.. section: Library
asyncio: Add loop.create_future method
..
.. bpo: 20640
.. date: 8641
.. nonce: PmI-G8
.. section: IDLE
Add tests for idlelib.configHelpSourceEdit. Patch by Saimadhav Heblikar.
..
.. bpo: 0
.. date: 8640
.. nonce: _YJfG7
.. section: IDLE
In the 'IDLE-console differences' section of the IDLE doc, clarify how
running with IDLE affects sys.modules and the standard streams.
..
.. bpo: 25507
.. date: 8639
.. nonce: i8bNpk
.. section: IDLE
fix incorrect change in IOBinding that prevented printing. Augment IOBinding
htest to include all major IOBinding functions.
..
.. bpo: 25905
.. date: 8638
.. nonce: FzNb3B
.. section: IDLE
Revert unwanted conversion of ' to RIGHT SINGLE QUOTATION MARK in
README.txt and open this and NEWS.txt with 'ascii'. Re-encode CREDITS.txt to
utf-8 and open it with 'utf-8'.
..
.. bpo: 15348
.. date: 8637
.. nonce: d1Fg01
.. section: IDLE
Stop the debugger engine (normally in a user process) before closing the
debugger window (running in the IDLE process). This prevents the
RuntimeErrors that were being caught and ignored.
..
.. bpo: 24455
.. date: 8636
.. nonce: x6YqtE
.. section: IDLE
Prevent IDLE from hanging when a) closing the shell while the debugger is
active (15347); b) closing the debugger with the [X] button (15348); and c)
activating the debugger when already active (24455). The patch by Mark
Roseman does this by making two changes. 1. Suspend and resume the
gui.interaction method with the tcl vwait mechanism intended for this
purpose (instead of root.mainloop & .quit). 2. In gui.run, allow any
existing interaction to terminate first.
..
.. bpo: 0
.. date: 8635
.. nonce: Yp9LRY
.. section: IDLE
Change 'The program' to 'Your program' in an IDLE 'kill program?' message to
make it clearer that the program referred to is the currently running user
program, not IDLE itself.
..
.. bpo: 24750
.. date: 8634
.. nonce: xgsi-K
.. section: IDLE
Improve the appearance of the IDLE editor window status bar. Patch by Mark
Roseman.
..
.. bpo: 25313
.. date: 8633
.. nonce: xMXHpO
.. section: IDLE
Change the handling of new built-in text color themes to better address the
compatibility problem introduced by the addition of IDLE Dark. Consistently
use the revised idleConf.CurrentTheme everywhere in idlelib.
..
.. bpo: 24782
.. date: 8632
.. nonce: RgIPYE
.. section: IDLE
Extension configuration is now a tab in the IDLE Preferences dialog rather
than a separate dialog. The former tabs are now a sorted list. Patch by
Mark Roseman.
..
.. bpo: 22726
.. date: 8631
.. nonce: x8T0dA
.. section: IDLE
Re-activate the config dialog help button with some content about the other
buttons and the new IDLE Dark theme.
..
.. bpo: 24820
.. date: 8630
.. nonce: TFPJhr
.. section: IDLE
IDLE now has an 'IDLE Dark' built-in text color theme. It is more or less
IDLE Classic inverted, with a cobalt blue background. Strings, comments,
keywords, ... are still green, red, orange, ... . To use it with IDLEs
released before November 2015, hit the 'Save as New Custom Theme' button and
enter a new name, such as 'Custom Dark'. The custom theme will work with
any IDLE release, and can be modified.
..
.. bpo: 25224
.. date: 8629
.. nonce: 5Llwo4
.. section: IDLE
README.txt is now an idlelib index for IDLE developers and curious users.
The previous user content is now in the IDLE doc chapter. 'IDLE' now means
'Integrated Development and Learning Environment'.
..
.. bpo: 24820
.. date: 8628
.. nonce: ZUz9Fn
.. section: IDLE
Users can now set breakpoint colors in Settings -> Custom Highlighting.
Original patch by Mark Roseman.
..
.. bpo: 24972
.. date: 8627
.. nonce: uc0uNo
.. section: IDLE
Inactive selection background now matches active selection background, as
configured by users, on all systems. Found items are now always highlighted
on Windows. Initial patch by Mark Roseman.
..
.. bpo: 24570
.. date: 8626
.. nonce: s3EkNn
.. section: IDLE
Idle: make calltip and completion boxes appear on Macs affected by a tk
regression. Initial patch by Mark Roseman.
..
.. bpo: 24988
.. date: 8625
.. nonce: tXqq4T
.. section: IDLE
Idle ScrolledList context menus (used in debugger) now work on Mac Aqua.
Patch by Mark Roseman.
..
.. bpo: 24801
.. date: 8624
.. nonce: -bj_Ou
.. section: IDLE
Make right-click for context menu work on Mac Aqua. Patch by Mark Roseman.
..
.. bpo: 25173
.. date: 8623
.. nonce: EZzrPg
.. section: IDLE
Associate tkinter messageboxes with a specific widget. For Mac OSX, make
them a 'sheet'. Patch by Mark Roseman.
..
.. bpo: 25198
.. date: 8622
.. nonce: -j_BV7
.. 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
users for shell and editor. * When the Table of Contents (TOC) menu is used,
put the section header at the top of the screen.
..
.. bpo: 25225
.. date: 8621
.. nonce: 9pvdq6
.. section: IDLE
Condense and rewrite Idle doc section on text colors.
..
.. bpo: 21995
.. date: 8620
.. nonce: C5Rmzx
.. section: IDLE
Explain some differences between IDLE and console Python.
..
.. bpo: 22820
.. date: 8619
.. nonce: hix_8X
.. section: IDLE
Explain need for *print* when running file from Idle editor.
..
.. bpo: 25224
.. date: 8618
.. nonce: UVMYQq
.. section: IDLE
Doc: augment Idle feature list and no-subprocess section.
..
.. bpo: 25219
.. date: 8617
.. nonce: 8_9DYg
.. section: IDLE
Update doc for Idle command line options. Some were missing and notes were
not correct.
..
.. bpo: 24861
.. date: 8616
.. nonce: Ecg2yT
.. section: IDLE
Most of idlelib is private and subject to change. Use idleib.idle.* to start
Idle. See idlelib.__init__.__doc__.
..
.. bpo: 25199
.. date: 8615
.. nonce: ih7yY3
.. section: IDLE
Idle: add synchronization comments for future maintainers.
..
.. bpo: 16893
.. date: 8614
.. nonce: uIi1oB
.. section: IDLE
Replace help.txt with help.html for Idle doc display. The new
idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks
better than help.txt and will better document Idle as released. The tkinter
html viewer that works for this file was written by Rose Roseman. The now
unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
..
.. bpo: 24199
.. date: 8613
.. nonce: VKnZEv
.. section: IDLE
Deprecate unused idlelib.idlever with possible removal in 3.6.
..
.. bpo: 24790
.. date: 8612
.. nonce: hD1hlj
.. section: IDLE
Remove extraneous code (which also create 2 & 3 conflicts).
..
.. bpo: 26736
.. date: 8611
.. nonce: U_Hyqo
.. section: Documentation
Used HTTPS for external links in the documentation if possible.
..
.. bpo: 6953
.. date: 8610
.. nonce: Zk6rno
.. section: Documentation
Rework the Readline module documentation to group related functions
together, and add more details such as what underlying Readline functions
and variables are accessed.
..
.. bpo: 23606
.. date: 8609
.. nonce: 9MhIso
.. section: Documentation
Adds note to ctypes documentation regarding cdll.msvcrt.
..
.. bpo: 24952
.. date: 8608
.. nonce: RHhFPE
.. section: Documentation
Clarify the default size argument of stack_size() in the "threading" and
"_thread" modules. Patch from Mattip.
..
.. bpo: 26014
.. date: 8607
.. nonce: ptdZ_I
.. section: Documentation
Update 3.x packaging documentation: * "See also" links to the new docs are
now provided in the legacy pages * links to setuptools documentation have
been updated
..
.. bpo: 21916
.. date: 8606
.. nonce: muwCyp
.. section: Tests
Added tests for the turtle module. Patch by ingrid, Gregory Loyse and Jelle
Zijlstra.
..
.. bpo: 26295
.. date: 8605
.. nonce: sYBtj5
.. section: Tests
When using "python3 -m test --testdir=TESTDIR", regrtest doesn't add "test."
prefix to test module names.
..
.. bpo: 26523
.. date: 8604
.. nonce: em_Uzt
.. section: Tests
The multiprocessing thread pool (multiprocessing.dummy.Pool) was untested.
..
.. bpo: 26015
.. date: 8603
.. nonce: p3oWK3
.. section: Tests
Added new tests for pickling iterators of mutable sequences.
..
.. bpo: 26325
.. date: 8602
.. nonce: KOUc82
.. section: Tests
Added test.support.check_no_resource_warning() to check that no
ResourceWarning is emitted.
..
.. bpo: 25940
.. date: 8601
.. nonce: MvBwSe
.. section: Tests
Changed test_ssl to use its internal local server more. This avoids relying
on svn.python.org, which recently changed root certificate.
..
.. bpo: 25616
.. date: 8600
.. nonce: Qr-60p
.. section: Tests
Tests for OrderedDict are extracted from test_collections into separate file
test_ordered_dict.
..
.. bpo: 25449
.. date: 8599
.. nonce: MP6KNs
.. section: Tests
Added tests for OrderedDict subclasses.
..
.. bpo: 25188
.. date: 8598
.. nonce: lnLnIW
.. section: Tests
Add -P/--pgo to test.regrtest to suppress error output when running the test
suite for the purposes of a PGO build. Initial patch by Alecsandru Patrascu.
..
.. bpo: 22806
.. date: 8597
.. nonce: _QHyyV
.. section: Tests
Add ``python -m test --list-tests`` command to list tests.
..
.. bpo: 18174
.. date: 8596
.. nonce: TzH9d_
.. section: Tests
``python -m test --huntrleaks ...`` now also checks for leak of file
descriptors. Patch written by Richard Oudkerk.
..
.. bpo: 25260
.. date: 8595
.. nonce: jw3p83
.. section: Tests
Fix ``python -m test --coverage`` on Windows. Remove the list of ignored
directories.
..
.. bpo: 0
.. date: 8594
.. nonce: X-Bk5l
.. section: Tests
``PCbuild\rt.bat`` now accepts an unlimited number of arguments to pass
along to regrtest.py. Previously there was a limit of 9.
..
.. bpo: 26583
.. date: 8593
.. nonce: Up7hTl
.. section: Tests
Skip test_timestamp_overflow in test_import if bytecode files cannot be
written.
..
.. bpo: 21277
.. date: 8592
.. nonce: 7y1j9a
.. section: Build
Don't try to link _ctypes with a ffi_convenience library.
..
.. bpo: 26884
.. date: 8591
.. nonce: O8-azL
.. section: Build
Fix linking extension modules for cross builds. Patch by Xavier de Gaye.
..
.. bpo: 26932
.. date: 8590
.. nonce: 5kzaG9
.. section: Build
Fixed support of RTLD_* constants defined as enum values, not via macros (in
particular on Android). Patch by Chi Hsuan Yen.
..
.. bpo: 22359
.. date: 8589
.. nonce: HDjM4s
.. section: Build
Disable the rules for running _freeze_importlib and pgen when cross-
compiling. The output of these programs is normally saved with the source
code anyway, and is still regenerated when doing a native build. Patch by
Xavier de Gaye.
..
.. bpo: 21668
.. date: 8588
.. nonce: qWwBui
.. section: Build
Link audioop, _datetime, _ctypes_test modules to libm, except on Mac OS X.
Patch written by Chi Hsuan Yen.
..
.. bpo: 25702
.. date: 8587
.. nonce: ipxyJs
.. section: Build
A --with-lto configure option has been added that will enable link time
optimizations at build time during a make profile-opt. Some compilers and
toolchains are known to not produce stable code when using LTO, be sure to
test things thoroughly before relying on it. It can provide a few % speed up
over profile-opt alone.
..
.. bpo: 26624
.. date: 8586
.. nonce: 4fGrTl
.. section: Build
Adds validation of ucrtbase[d].dll version with warning for old versions.
..
.. bpo: 17603
.. date: 8585
.. nonce: 102DA-
.. section: Build
Avoid error about nonexistent fileblocks.o file by using a lower-level check
for st_blocks in struct stat.
..
.. bpo: 26079
.. date: 8584
.. nonce: mEzW0O
.. section: Build
Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel.
..
.. bpo: 26465
.. date: 8583
.. nonce: _YR608
.. section: Build
Update Windows builds to use OpenSSL 1.0.2g.
..
.. bpo: 25348
.. date: 8582
.. nonce: FLSPfp
.. section: Build
Added ``--pgo`` and ``--pgo-job`` arguments to ``PCbuild\build.bat`` for
building with Profile-Guided Optimization. The old
``PCbuild\build_pgo.bat`` script is removed.
..
.. bpo: 25827
.. date: 8581
.. nonce: yg3DMM
.. section: Build
Add support for building with ICC to ``configure``, including a new
``--with-icc`` flag.
..
.. bpo: 25696
.. date: 8580
.. nonce: 2R_wIv
.. section: Build
Fix installation of Python on UNIX with make -j9.
..
.. bpo: 24986
.. date: 8579
.. nonce: 1WyXeU
.. section: Build
It is now possible to build Python on Windows without errors when external
libraries are not available.
..
.. bpo: 24421
.. date: 8578
.. nonce: 2zY7vM
.. section: Build
Compile Modules/_math.c once, before building extensions. Previously it
could fail to compile properly if the math and cmath builds were concurrent.
..
.. bpo: 26465
.. date: 8577
.. nonce: PkIaV8
.. section: Build
Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL
1.0.2g.
..
.. bpo: 26268
.. date: 8576
.. nonce: I3-YLh
.. section: Build
Update Windows builds to use OpenSSL 1.0.2f.
..
.. bpo: 25136
.. date: 8575
.. nonce: Vi-fmO
.. section: Build
Support Apple Xcode 7's new textual SDK stub libraries.
..
.. bpo: 24324
.. date: 8574
.. nonce: m6DZMx
.. section: Build
Do not enable unreachable code warnings when using gcc as the option does
not work correctly in older versions of gcc and has been silently removed as
of gcc-4.5.
..
.. bpo: 27053
.. date: 8573
.. nonce: 1IRbae
.. section: Windows
Updates make_zip.py to correctly generate library ZIP file.
..
.. bpo: 26268
.. date: 8572
.. nonce: Z-lJEh
.. section: Windows
Update the prepare_ssl.py script to handle OpenSSL releases that don't
include the contents of the include directory (that is, 1.0.2e and later).
..
.. bpo: 26071
.. date: 8571
.. nonce: wLxL2l
.. section: Windows
bdist_wininst created binaries fail to start and find 32bit Python
..
.. bpo: 26073
.. date: 8570
.. nonce: XwWgHp
.. section: Windows
Update the list of magic numbers in launcher
..
.. bpo: 26065
.. date: 8569
.. nonce: SkVLJp
.. section: Windows
Excludes venv from library when generating embeddable distro.
..
.. bpo: 25022
.. date: 8568
.. nonce: vAt_zr
.. section: Windows
Removed very outdated PC/example_nt/ directory.
..
.. bpo: 26799
.. date: 8567
.. nonce: gK2VXX
.. section: Tools/Demos
Fix python-gdb.py: don't get C types once when the Python code is loaded,
but get C types on demand. The C types can change if python-gdb.py is loaded
before the Python executable. Patch written by Thomas Ilsche.
..
.. bpo: 26271
.. date: 8566
.. nonce: wg-rzr
.. section: Tools/Demos
Fix the Freeze tool to properly use flags passed through configure. Patch by
Daniel Shaulov.
..
.. bpo: 26489
.. date: 8565
.. nonce: rJ_U5S
.. section: Tools/Demos
Add dictionary unpacking support to Tools/parser/unparse.py. Patch by Guo Ci
Teo.
..
.. bpo: 26316
.. date: 8564
.. nonce: QJvVOi
.. section: Tools/Demos
Fix variable name typo in Argument Clinic.
..
.. bpo: 25440
.. date: 8563
.. nonce: 5xhyGr
.. section: Tools/Demos
Fix output of python-config --extension-suffix.
..
.. bpo: 25154
.. date: 8562
.. nonce: yLO-r4
.. section: Tools/Demos
The pyvenv script has been deprecated in favour of `python3 -m venv`.
..
.. bpo: 26312
.. date: 8561
.. nonce: h1T61B
.. section: C API
SystemError is now raised in all programming bugs with using
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some
programming bugs.
..
.. bpo: 26198
.. date: 8560
.. nonce: lVn1HX
.. section: C API
ValueError is now raised instead of TypeError on buffer overflow in parsing
"es#" and "et#" format units. SystemError is now raised instead of
TypeError on programmical error in parsing format string.