python-3.6.zip added from Github

README.cosmo contains the necessary links.
This commit is contained in:
ahgamut 2021-08-08 09:38:33 +05:30 committed by Justine Tunney
parent 75fc601ff5
commit 0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions

1775
third_party/python/Misc/ACKS vendored Normal file

File diff suppressed because it is too large Load diff

34821
third_party/python/Misc/HISTORY vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
.. bpo: 25071
.. date: 8265
.. nonce: EwjXl1
.. release date: 2015-09-13
.. section: Build
Windows installer should not require TargetDir parameter when installing
quietly.

5877
third_party/python/Misc/NEWS.d/3.5.0a1.rst vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,406 @@
.. bpo: 23571
.. date: 7950
.. nonce: GTkAkq
.. release date: 2015-03-09
.. section: Core and Builtins
PyObject_Call() and PyCFunction_Call() now raise a SystemError if a function
returns a result and raises an exception. The SystemError is chained to the
previous exception.
..
.. bpo: 22524
.. date: 7949
.. nonce: Ks6_2x
.. section: Library
New os.scandir() function, part of the PEP 471: "os.scandir() function -- a
better and faster directory iterator". Patch written by Ben Hoyt.
..
.. bpo: 23103
.. date: 7948
.. nonce: I3RLIV
.. section: Library
Reduced the memory consumption of IPv4Address and IPv6Address.
..
.. bpo: 21793
.. date: 7947
.. nonce: GQtYMM
.. section: Library
BaseHTTPRequestHandler again logs response code as numeric, not as
stringified enum. Patch by Demian Brecht.
..
.. bpo: 23476
.. date: 7946
.. nonce: 82QV9I
.. section: Library
In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST flag on
certificate stores when it is available.
..
.. bpo: 23576
.. date: 7945
.. nonce: 98F-PP
.. section: Library
Avoid stalling in SSL reads when EOF has been reached in the SSL layer but
the underlying connection hasn't been closed.
..
.. bpo: 23504
.. date: 7944
.. nonce: o31h5I
.. section: Library
Added an __all__ to the types module.
..
.. bpo: 23563
.. date: 7943
.. nonce: iQB-ba
.. section: Library
Optimized utility functions in urllib.parse.
..
.. bpo: 7830
.. date: 7942
.. nonce: irvPdC
.. section: Library
Flatten nested functools.partial.
..
.. bpo: 20204
.. date: 7941
.. nonce: DorA4b
.. section: Library
Added the __module__ attribute to _tkinter classes.
..
.. bpo: 19980
.. date: 7940
.. nonce: whwzL_
.. section: Library
Improved help() for non-recognized strings. help('') now shows the help on
str. help('help') now shows the help on help(). Original patch by Mark
Lawrence.
..
.. bpo: 23521
.. date: 7939
.. nonce: HvwFfd
.. section: Library
Corrected pure python implementation of timedelta division.
Eliminated OverflowError from ``timedelta * float`` for some floats;
Corrected rounding in timedelta true division.
..
.. bpo: 21619
.. date: 7938
.. nonce: uL0SZh
.. section: Library
Popen objects no longer leave a zombie after exit in the with statement if
the pipe was broken. Patch by Martin Panter.
..
.. bpo: 22936
.. date: 7937
.. nonce: JrhGYd
.. section: Library
Make it possible to show local variables in tracebacks for both the
traceback module and unittest.
..
.. bpo: 15955
.. date: 7936
.. nonce: _8nYPy
.. section: Library
Add an option to limit the output size in bz2.decompress(). Patch by
Nikolaus Rath.
..
.. bpo: 6639
.. date: 7935
.. nonce: rmjUmG
.. section: Library
Module-level turtle functions no longer raise TclError after closing the
window.
..
.. bpo: 814253
.. date: 7934
.. nonce: icZb-I
.. section: Library
Group references and conditional group references now work in lookbehind
assertions in regular expressions. (See also: bpo-9179)
..
.. bpo: 23215
.. date: 7933
.. nonce: VHVSVX
.. section: Library
Multibyte codecs with custom error handlers that ignores errors consumed too
much memory and raised SystemError or MemoryError. Original patch by Aleksi
Torhamo.
..
.. bpo: 5700
.. date: 7932
.. nonce: iA5yzL
.. section: Library
io.FileIO() called flush() after closing the file. flush() was not called in
close() if closefd=False.
..
.. bpo: 23374
.. date: 7931
.. nonce: 8A9LuZ
.. section: Library
Fixed pydoc failure with non-ASCII files when stdout encoding differs from
file system encoding (e.g. on Mac OS).
..
.. bpo: 23481
.. date: 7930
.. nonce: ZWwliG
.. section: Library
Remove RC4 from the SSL module's default cipher list.
..
.. bpo: 21548
.. date: 7929
.. nonce: CmO_Yh
.. section: Library
Fix pydoc.synopsis() and pydoc.apropos() on modules with empty docstrings.
..
.. bpo: 22885
.. date: 7928
.. nonce: p8FnYk
.. section: Library
Fixed arbitrary code execution vulnerability in the dbm.dumb module.
Original patch by Claudiu Popa.
..
.. bpo: 23239
.. date: 7927
.. nonce: PGUq7T
.. section: Library
ssl.match_hostname() now supports matching of IP addresses.
..
.. bpo: 23146
.. date: 7926
.. nonce: PW-O3u
.. section: Library
Fix mishandling of absolute Windows paths with forward slashes in pathlib.
..
.. bpo: 23096
.. date: 7925
.. nonce: Ftrmf3
.. section: Library
Pickle representation of floats with protocol 0 now is the same for both
Python and C implementations.
..
.. bpo: 19105
.. date: 7924
.. nonce: ZK07Ff
.. section: Library
pprint now more efficiently uses free space at the right.
..
.. bpo: 14910
.. date: 7923
.. nonce: zueIhP
.. section: Library
Add allow_abbrev parameter to argparse.ArgumentParser. Patch by Jonathan
Paugh, Steven Bethard, paul j3 and Daniel Eriksson.
..
.. bpo: 21717
.. date: 7922
.. nonce: Knut81
.. section: Library
tarfile.open() now supports 'x' (exclusive creation) mode.
..
.. bpo: 23344
.. date: 7921
.. nonce: ieu8C1
.. section: Library
marshal.dumps() is now 20-25% faster on average.
..
.. bpo: 20416
.. date: 7920
.. nonce: cwEgkL
.. section: Library
marshal.dumps() with protocols 3 and 4 is now 40-50% faster on average.
..
.. bpo: 23421
.. date: 7919
.. nonce: eckzoV
.. section: Library
Fixed compression in tarfile CLI. Patch by wdv4758h.
..
.. bpo: 23367
.. date: 7918
.. nonce: kHnFiz
.. section: Library
Fix possible overflows in the unicodedata module.
..
.. bpo: 23361
.. date: 7917
.. nonce: I_w0-z
.. section: Library
Fix possible overflow in Windows subprocess creation code.
..
.. bpo: 0
.. date: 7916
.. nonce: sfmjTs
.. section: Library
logging.handlers.QueueListener now takes a respect_handler_level keyword
argument which, if set to True, will pass messages to handlers taking
handler levels into account.
..
.. bpo: 19705
.. date: 7915
.. nonce: WLzTRV
.. section: Library
turtledemo now has a visual sorting algorithm demo. Original patch from
Jason Yeo.
..
.. bpo: 23801
.. date: 7914
.. nonce: jyJK3z
.. section: Library
Fix issue where cgi.FieldStorage did not always ignore the entire preamble
to a multipart body.
..
.. bpo: 23445
.. date: 7913
.. nonce: 7fmkYO
.. section: Build
pydebug builds now use "gcc -Og" where possible, to make the resulting
executable faster.
..
.. bpo: 23686
.. date: 7912
.. nonce: B7jDXY
.. section: Build
Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
..
.. bpo: 20204
.. date: 7911
.. nonce: M_jcNK
.. section: C API
Deprecation warning is now raised for builtin types without the __module__
attribute.
..
.. bpo: 23465
.. date: 7910
.. nonce: qBauCy
.. section: Windows
Implement PEP 486 - Make the Python Launcher aware of virtual environments.
Patch by Paul Moore.
..
.. bpo: 23437
.. date: 7909
.. nonce: ro9X8r
.. section: Windows
Make user scripts directory versioned on Windows. Patch by Paul Moore.

View file

@ -0,0 +1,518 @@
.. bpo: 23573
.. date: 8002
.. nonce: ZpM4D-
.. release date: 2015-03-28
.. section: Core and Builtins
Increased performance of string search operations (str.find, str.index,
str.count, the in operator, str.split, str.partition) with arguments of
different kinds (UCS1, UCS2, UCS4).
..
.. bpo: 23753
.. date: 8001
.. nonce: CREjLC
.. section: Core and Builtins
Python doesn't support anymore platforms without stat() or fstat(), these
functions are always required.
..
.. bpo: 23681
.. date: 8000
.. nonce: kh02TF
.. section: Core and Builtins
The -b option now affects comparisons of bytes with int.
..
.. bpo: 23632
.. date: 7999
.. nonce: UVdIZY
.. section: Core and Builtins
Memoryviews now allow tuple indexing (including for multi-dimensional
memoryviews).
..
.. bpo: 23192
.. date: 7998
.. nonce: QKqdow
.. section: Core and Builtins
Fixed generator lambdas. Patch by Bruno Cauet.
..
.. bpo: 23629
.. date: 7997
.. nonce: r9Mt2C
.. section: Core and Builtins
Fix the default __sizeof__ implementation for variable-sized objects.
..
.. bpo: 14260
.. date: 7996
.. nonce: b5M04V
.. section: Library
The groupindex attribute of regular expression pattern object now is
non-modifiable mapping.
..
.. bpo: 23792
.. date: 7995
.. nonce: Kfm9-f
.. section: Library
Ignore KeyboardInterrupt when the pydoc pager is active. This mimics the
behavior of the standard unix pagers, and prevents pipepager from shutting
down while the pager itself is still running.
..
.. bpo: 23775
.. date: 7994
.. nonce: xKGrSQ
.. section: Library
pprint() of OrderedDict now outputs the same representation as repr().
..
.. bpo: 23765
.. date: 7993
.. nonce: 2ta_C4
.. section: Library
Removed IsBadStringPtr calls in ctypes
..
.. bpo: 22364
.. date: 7992
.. nonce: ejtoKl
.. section: Library
Improved some re error messages using regex for hints.
..
.. bpo: 23742
.. date: 7991
.. nonce: _EkAIa
.. section: Library
ntpath.expandvars() no longer loses unbalanced single quotes.
..
.. bpo: 21717
.. date: 7990
.. nonce: pKndpx
.. section: Library
The zipfile.ZipFile.open function now supports 'x' (exclusive creation)
mode.
..
.. bpo: 21802
.. date: 7989
.. nonce: ygSM2A
.. section: Library
The reader in BufferedRWPair now is closed even when closing writer failed
in BufferedRWPair.close().
..
.. bpo: 23622
.. date: 7988
.. nonce: 9-ZRqj
.. section: Library
Unknown escapes in regular expressions that consist of ``'\'`` and ASCII
letter now raise a deprecation warning and will be forbidden in Python 3.6.
..
.. bpo: 23671
.. date: 7987
.. nonce: zWPm-a
.. section: Library
string.Template now allows specifying the "self" parameter as a keyword
argument. string.Formatter now allows specifying the "self" and the
"format_string" parameters as keyword arguments.
..
.. bpo: 23502
.. date: 7986
.. nonce: AH20IQ
.. section: Library
The pprint module now supports mapping proxies.
..
.. bpo: 17530
.. date: 7985
.. nonce: PUp8rL
.. section: Library
pprint now wraps long bytes objects and bytearrays.
..
.. bpo: 22687
.. date: 7984
.. nonce: zEJPd9
.. section: Library
Fixed some corner cases in breaking words in tetxtwrap. Got rid of quadratic
complexity in breaking long words.
..
.. bpo: 4727
.. date: 7983
.. nonce: iDQSpi
.. section: Library
The copy module now uses pickle protocol 4 (PEP 3154) and supports copying
of instances of classes whose __new__ method takes keyword-only arguments.
..
.. bpo: 23491
.. date: 7982
.. nonce: P_WKrt
.. section: Library
Added a zipapp module to support creating executable zip file archives of
Python code. Registered ".pyz" and ".pyzw" extensions on Windows for these
archives (PEP 441).
..
.. bpo: 23657
.. date: 7981
.. nonce: y1OaV-
.. section: Library
Avoid explicit checks for str in zipapp, adding support for pathlib.Path
objects as arguments.
..
.. bpo: 23688
.. date: 7980
.. nonce: d6LVy3
.. section: Library
Added support of arbitrary bytes-like objects and avoided unnecessary
copying of memoryview in gzip.GzipFile.write(). Original patch by Wolfgang
Maier.
..
.. bpo: 23252
.. date: 7979
.. nonce: Goi18g
.. section: Library
Added support for writing ZIP files to unseekable streams.
..
.. bpo: 23647
.. date: 7978
.. nonce: pX2qrx
.. section: Library
Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
..
.. bpo: 23539
.. date: 7977
.. nonce: 5BVUim
.. section: Library
If body is None, http.client.HTTPConnection.request now sets Content-Length
to 0 for PUT, POST, and PATCH headers to avoid 411 errors from some web
servers.
..
.. bpo: 22351
.. date: 7976
.. nonce: agB8Y3
.. section: Library
The nntplib.NNTP constructor no longer leaves the connection and socket open
until the garbage collector cleans them up. Patch by Martin Panter.
..
.. bpo: 23704
.. date: 7975
.. nonce: LTyyxL
.. section: Library
collections.deque() objects now support methods for index(), insert(), and
copy(). This allows deques to be registered as a MutableSequence and it
improves their substitutability for lists.
..
.. bpo: 23715
.. date: 7974
.. nonce: Yap3tU
.. section: Library
:func:`signal.sigwaitinfo` and :func:`signal.sigtimedwait` are now retried
when interrupted by a signal not in the *sigset* parameter, if the signal
handler does not raise an exception. signal.sigtimedwait() recomputes the
timeout with a monotonic clock when it is retried.
..
.. bpo: 23001
.. date: 7973
.. nonce: YSFnam
.. section: Library
Few functions in modules mmap, ossaudiodev, socket, ssl, and codecs, that
accepted only read-only bytes-like object now accept writable bytes-like
object too.
..
.. bpo: 23646
.. date: 7972
.. nonce: Tljc1S
.. section: Library
If time.sleep() is interrupted by a signal, the sleep is now retried with
the recomputed delay, except if the signal handler raises an exception (PEP
475).
..
.. bpo: 23136
.. date: 7971
.. nonce: 1bnpnb
.. section: Library
_strptime now uniformly handles all days in week 0, including Dec 30 of
previous year. Based on patch by Jim Carroll.
..
.. bpo: 23700
.. date: 7970
.. nonce: VfnWwi
.. section: Library
Iterator of NamedTemporaryFile now keeps a reference to NamedTemporaryFile
instance. Patch by Bohuslav Kabrda.
..
.. bpo: 22903
.. date: 7969
.. nonce: 2GjTHY
.. section: Library
The fake test case created by unittest.loader when it fails importing a test
module is now picklable.
..
.. bpo: 22181
.. date: 7968
.. nonce: 7mnxea
.. section: Library
On Linux, os.urandom() now uses the new getrandom() syscall if available,
syscall introduced in the Linux kernel 3.17. It is more reliable and more
secure, because it avoids the need of a file descriptor and waits until the
kernel has enough entropy.
..
.. bpo: 2211
.. date: 7967
.. nonce: 17Iz5U
.. section: Library
Updated the implementation of the http.cookies.Morsel class. Setting
attributes key, value and coded_value directly now is deprecated. update()
and setdefault() now transform and check keys. Comparing for equality now
takes into account attributes key, value and coded_value. copy() now returns
a Morsel, not a dict. repr() now contains all attributes. Optimized
checking keys and quoting values. Added new tests. Original patch by Demian
Brecht.
..
.. bpo: 18983
.. date: 7966
.. nonce: vF4i2S
.. section: Library
Allow selection of output units in timeit. Patch by Julian Gindi.
..
.. bpo: 23631
.. date: 7965
.. nonce: GfSqNI
.. section: Library
Fix traceback.format_list when a traceback has been mutated.
..
.. bpo: 23568
.. date: 7964
.. nonce: ffzJc7
.. section: Library
Add rdivmod support to MagicMock() objects. Patch by Håkan Lövdahl.
..
.. bpo: 2052
.. date: 7963
.. nonce: ujNgna
.. section: Library
Add charset parameter to HtmlDiff.make_file().
..
.. bpo: 23668
.. date: 7962
.. nonce: nF_jnN
.. section: Library
Support os.truncate and os.ftruncate on Windows.
..
.. bpo: 23138
.. date: 7961
.. nonce: 4vMoMZ
.. section: Library
Fixed parsing cookies with absent keys or values in cookiejar. Patch by
Demian Brecht.
..
.. bpo: 23051
.. date: 7960
.. nonce: Vi5tCZ
.. section: Library
multiprocessing.Pool methods imap() and imap_unordered() now handle
exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.
..
.. bpo: 23581
.. date: 7959
.. nonce: D4Lknl
.. section: Library
Add matmul support to MagicMock. Patch by Håkan Lövdahl.
..
.. bpo: 23566
.. date: 7958
.. nonce: F6LSyk
.. section: Library
enable(), register(), dump_traceback() and dump_traceback_later() functions
of faulthandler now accept file descriptors. Patch by Wei Wu.
..
.. bpo: 22928
.. date: 7957
.. nonce: q2TmY0
.. section: Library
Disabled HTTP header injections in http.client. Original patch by Demian
Brecht.
..
.. bpo: 23615
.. date: 7956
.. nonce: 5Kx9k5
.. section: Library
Modules bz2, tarfile and tokenize now can be reloaded with imp.reload().
Patch by Thomas Kluyver.
..
.. bpo: 23605
.. date: 7955
.. nonce: JUOA_X
.. section: Library
os.walk() now calls os.scandir() instead of os.listdir(). The usage of
os.scandir() reduces the number of calls to os.stat(). Initial patch written
by Ben Hoyt.
..
.. bpo: 23585
.. date: 7954
.. nonce: DTIIoI
.. section: Build
make patchcheck will ensure the interpreter is built.
..
.. bpo: 23583
.. date: 7953
.. nonce: bY8AbM
.. section: Tests
Added tests for standard IO streams in IDLE.
..
.. bpo: 22289
.. date: 7952
.. nonce: ybGcC-
.. section: Tests
Prevent test_urllib2net failures due to ftp connection timeout.
..
.. bpo: 22826
.. date: 7951
.. nonce: 3bcoDL
.. section: Tools/Demos
The result of open() in Tools/freeze/bkfile.py is now better compatible with
regular files (in particular it now supports the context management
protocol).

View file

@ -0,0 +1,665 @@
.. bpo: 22980
.. date: 8069
.. nonce: Lu_y6y
.. release date: 2015-04-19
.. section: Core and Builtins
Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include the
architecture triplet in the extension name, to make it easy to test builds
for different ABIs in the same working tree. Under OS X, the extension name
now includes PEP 3149-style information.
..
.. bpo: 22631
.. date: 8068
.. nonce: nTx_ZF
.. section: Core and Builtins
Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch courtesy of
Joe Jevnik.
..
.. bpo: 23731
.. date: 8067
.. nonce: FOXb37
.. section: Core and Builtins
Implement PEP 488: removal of .pyo files.
..
.. bpo: 23726
.. date: 8066
.. nonce: ZopTQ0
.. section: Core and Builtins
Don't enable GC for user subclasses of non-GC types that don't add any new
fields. Patch by Eugene Toder.
..
.. bpo: 23309
.. date: 8065
.. nonce: Wfnsnz
.. section: Core and Builtins
Avoid a deadlock at shutdown if a daemon thread is aborted while it is
holding a lock to a buffered I/O object, and the main thread tries to use
the same I/O object (typically stdout or stderr). A fatal error is emitted
instead.
..
.. bpo: 22977
.. date: 8064
.. nonce: hutEse
.. section: Core and Builtins
Fixed formatting Windows error messages on Wine. Patch by Martin Panter.
..
.. bpo: 23466
.. date: 8063
.. nonce: KhMltK
.. section: Core and Builtins
%c, %o, %x, and %X in bytes formatting now raise TypeError on non-integer
input.
..
.. bpo: 24044
.. date: 8062
.. nonce: H7vb6-
.. section: Core and Builtins
Fix possible null pointer dereference in list.sort in out of memory
conditions.
..
.. bpo: 21354
.. date: 8061
.. nonce: ZZTe1E
.. section: Core and Builtins
PyCFunction_New function is exposed by python DLL again.
..
.. bpo: 23840
.. date: 8060
.. nonce: mtSbqO
.. section: Library
tokenize.open() now closes the temporary binary file on error to fix a
resource warning.
..
.. bpo: 16914
.. date: 8059
.. nonce: GrP2Jr
.. section: Library
new debuglevel 2 in smtplib adds timestamps to debug output.
..
.. bpo: 7159
.. date: 8058
.. nonce: KCgOUm
.. section: Library
urllib.request now supports sending auth credentials automatically after the
first 401. This enhancement is a superset of the enhancement from issue
#19494 and supersedes that change.
..
.. bpo: 23703
.. date: 8057
.. nonce: kYybxm
.. section: Library
Fix a regression in urljoin() introduced in 901e4e52b20a. Patch by Demian
Brecht.
..
.. bpo: 4254
.. date: 8056
.. nonce: eUC_2H
.. section: Library
Adds _curses.update_lines_cols(). Patch by Arnon Yaari
..
.. bpo: 19933
.. date: 8055
.. nonce: Qq8utk
.. section: Library
Provide default argument for ndigits in round. Patch by Vajrasky Kok.
..
.. bpo: 23193
.. date: 8054
.. nonce: n5ahcG
.. section: Library
Add a numeric_owner parameter to tarfile.TarFile.extract and
tarfile.TarFile.extractall. Patch by Michael Vogt and Eric Smith.
..
.. bpo: 23342
.. date: 8053
.. nonce: CbSzYI
.. section: Library
Add a subprocess.run() function than returns a CalledProcess instance for a
more consistent API than the existing call* functions.
..
.. bpo: 21217
.. date: 8052
.. nonce: TkFTlk
.. section: Library
inspect.getsourcelines() now tries to compute the start and end lines from
the code object, fixing an issue when a lambda function is used as decorator
argument. Patch by Thomas Ballinger and Allison Kaptur.
..
.. bpo: 24521
.. date: 8051
.. nonce: bn4U-y
.. section: Library
Fix possible integer overflows in the pickle module.
..
.. bpo: 22931
.. date: 8050
.. nonce: 4CuWYD
.. section: Library
Allow '[' and ']' in cookie values.
..
.. bpo: 0
.. date: 8049
.. nonce: fgX8Qe
.. section: Library
The keywords attribute of functools.partial is now always a dictionary.
..
.. bpo: 23811
.. date: 8048
.. nonce: B6tzf9
.. section: Library
Add missing newline to the PyCompileError error message. Patch by Alex
Shkop.
..
.. bpo: 21116
.. date: 8047
.. nonce: Orft3K
.. section: Library
Avoid blowing memory when allocating a multiprocessing shared array that's
larger than 50% of the available RAM. Patch by Médéric Boquien.
..
.. bpo: 22982
.. date: 8046
.. nonce: xYmG62
.. section: Library
Improve BOM handling when seeking to multiple positions of a writable text
file.
..
.. bpo: 23464
.. date: 8045
.. nonce: _XGkBk
.. section: Library
Removed deprecated asyncio JoinableQueue.
..
.. bpo: 23529
.. date: 8044
.. nonce: Hr7AHH
.. section: Library
Limit the size of decompressed data when reading from GzipFile, BZ2File or
LZMAFile. This defeats denial of service attacks using compressed bombs
(i.e. compressed payloads which decompress to a huge size). Patch by Martin
Panter and Nikolaus Rath.
..
.. bpo: 21859
.. date: 8043
.. nonce: GYrUNP
.. section: Library
Added Python implementation of io.FileIO.
..
.. bpo: 23865
.. date: 8042
.. nonce: PtSLgU
.. section: Library
close() methods in multiple modules now are idempotent and more robust at
shutdown. If they need to release multiple resources, all are released even
if errors occur.
..
.. bpo: 23400
.. date: 8041
.. nonce: JSh9Z3
.. section: Library
Raise same exception on both Python 2 and 3 if sem_open is not available.
Patch by Davin Potts.
..
.. bpo: 10838
.. date: 8040
.. nonce: p9tSPC
.. section: Library
The subprocess now module includes SubprocessError and TimeoutError in its
list of exported names for the users wild enough to use ``from subprocess
import *``.
..
.. bpo: 23411
.. date: 8039
.. nonce: 0im3Qw
.. section: Library
Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by
Martin Panter.
..
.. bpo: 23881
.. date: 8038
.. nonce: yZjl4b
.. section: Library
urllib.request.ftpwrapper constructor now closes the socket if the FTP
connection failed to fix a ResourceWarning.
..
.. bpo: 23853
.. date: 8037
.. nonce: mNY1eI
.. section: Library
:meth:`socket.socket.sendall` does no more reset the socket timeout each
time data is sent successfully. The socket timeout is now the maximum total
duration to send all data.
..
.. bpo: 22721
.. date: 8036
.. nonce: MVfBL9
.. section: Library
An order of multiline pprint output of set or dict containing orderable and
non-orderable elements no longer depends on iteration order of set or dict.
..
.. bpo: 15133
.. date: 8035
.. nonce: C0QfV8
.. section: Library
_tkinter.tkapp.getboolean() now supports Tcl_Obj and always returns bool.
tkinter.BooleanVar now validates input values (accepted bool, int, str, and
Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
..
.. bpo: 10590
.. date: 8034
.. nonce: nkxXfU
.. section: Library
xml.sax.parseString() now supports string argument.
..
.. bpo: 23338
.. date: 8033
.. nonce: ZYMGN1
.. section: Library
Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato.
..
.. bpo: 15582
.. date: 8032
.. nonce: 26wJNk
.. section: Library
inspect.getdoc() now follows inheritance chains.
..
.. bpo: 2175
.. date: 8031
.. nonce: cHiVOp
.. section: Library
SAX parsers now support a character stream of InputSource object.
..
.. bpo: 16840
.. date: 8030
.. nonce: kKIhPm
.. section: Library
Tkinter now supports 64-bit integers added in Tcl 8.4 and arbitrary
precision integers added in Tcl 8.5.
..
.. bpo: 23834
.. date: 8029
.. nonce: fX3TF4
.. section: Library
Fix socket.sendto(), use the C Py_ssize_t type to store the result of
sendto() instead of the C int type.
..
.. bpo: 23618
.. date: 8028
.. nonce: Of_q5t
.. section: Library
:meth:`socket.socket.connect` now waits until the connection completes
instead of raising :exc:`InterruptedError` if the connection is interrupted
by signals, signal handlers don't raise an exception and the socket is
blocking or has a timeout. :meth:`socket.socket.connect` still raise
:exc:`InterruptedError` for non-blocking sockets.
..
.. bpo: 21526
.. date: 8027
.. nonce: QQEXrR
.. section: Library
Tkinter now supports new boolean type in Tcl 8.5.
..
.. bpo: 23836
.. date: 8026
.. nonce: zrEmlR
.. section: Library
Fix the faulthandler module to handle reentrant calls to its signal
handlers.
..
.. bpo: 23838
.. date: 8025
.. nonce: IX6FPX
.. section: Library
linecache now clears the cache and returns an empty result on MemoryError.
..
.. bpo: 10395
.. date: 8024
.. nonce: fi_lZp
.. section: Library
Added os.path.commonpath(). Implemented in posixpath and ntpath. Based on
patch by Rafik Draoui.
..
.. bpo: 23611
.. date: 8023
.. nonce: QkBJVB
.. section: Library
Serializing more "lookupable" objects (such as unbound methods or nested
classes) now are supported with pickle protocols < 4.
..
.. bpo: 13583
.. date: 8022
.. nonce: -MPBjZ
.. section: Library
sqlite3.Row now supports slice indexing.
..
.. bpo: 18473
.. date: 8021
.. nonce: 89RHm-
.. section: Library
Fixed 2to3 and 3to2 compatible pickle mappings. Fixed ambiguous reverse
mappings. Added many new mappings. Import mapping is no longer applied to
modules already mapped with full name mapping.
..
.. bpo: 23485
.. date: 8020
.. nonce: kQWN6L
.. section: Library
select.select() is now retried automatically with the recomputed timeout
when interrupted by a signal, except if the signal handler raises an
exception. This change is part of the PEP 475.
..
.. bpo: 23752
.. date: 8019
.. nonce: 5fbVNb
.. section: Library
When built from an existing file descriptor, io.FileIO() now only calls
fstat() once. Before fstat() was called twice, which was not necessary.
..
.. bpo: 23704
.. date: 8018
.. nonce: Ggjvm8
.. section: Library
collections.deque() objects now support __add__, __mul__, and __imul__().
..
.. bpo: 23171
.. date: 8017
.. nonce: b6PBzM
.. section: Library
csv.Writer.writerow() now supports arbitrary iterables.
..
.. bpo: 23745
.. date: 8016
.. nonce: E00Bml
.. section: Library
The new email header parser now handles duplicate MIME parameter names
without error, similar to how get_param behaves.
..
.. bpo: 22117
.. date: 8015
.. nonce: bTO0xx
.. section: Library
Fix os.utime(), it now rounds the timestamp towards minus infinity (-inf)
instead of rounding towards zero.
..
.. bpo: 23310
.. date: 8014
.. nonce: GXmFMR
.. section: Library
Fix MagicMock's initializer to work with __methods__, just like
configure_mock(). Patch by Kasia Jachim.
..
.. bpo: 23817
.. date: 8013
.. nonce: DTmVan
.. section: Build
FreeBSD now uses "1.0" in the SOVERSION as other operating systems, instead
of just "1".
..
.. bpo: 23501
.. date: 8012
.. nonce: iz10e6
.. section: Build
Argument Clinic now generates code into separate files by default.
..
.. bpo: 23799
.. date: 8011
.. nonce: XU2xDw
.. section: Tests
Added test.support.start_threads() for running and cleaning up multiple
threads.
..
.. bpo: 22390
.. date: 8010
.. nonce: UPVFnq
.. section: Tests
test.regrtest now emits a warning if temporary files or directories are left
after running a test.
..
.. bpo: 18128
.. date: 8009
.. nonce: lx2V5a
.. section: Tools/Demos
pygettext now uses standard +NNNN format in the POT-Creation-Date header.
..
.. bpo: 23935
.. date: 8008
.. nonce: JSYowT
.. section: Tools/Demos
Argument Clinic's understanding of format units accepting bytes, bytearrays,
and buffers is now consistent with both the documentation and the
implementation.
..
.. bpo: 23944
.. date: 8007
.. nonce: Q8ZL2s
.. section: Tools/Demos
Argument Clinic now wraps long impl prototypes at column 78.
..
.. bpo: 20586
.. date: 8006
.. nonce: 7BiEkx
.. section: Tools/Demos
Argument Clinic now ensures that functions without docstrings have
signatures.
..
.. bpo: 23492
.. date: 8005
.. nonce: kjIcQW
.. section: Tools/Demos
Argument Clinic now generates argument parsing code with PyArg_Parse instead
of PyArg_ParseTuple if possible.
..
.. bpo: 23500
.. date: 8004
.. nonce: H6_dX_
.. section: Tools/Demos
Argument Clinic is now smarter about generating the "#ifndef" (empty)
definition of the methoddef macro: it's only generated once, even if
Argument Clinic processes the same symbol multiple times, and it's emitted
at the end of all processing rather than immediately after the first use.
..
.. bpo: 23998
.. date: 8003
.. nonce: z7mlLW
.. section: C API
PyImport_ReInitLock() now checks for lock allocation error

View file

@ -0,0 +1,848 @@
.. bpo: 24276
.. date: 8157
.. nonce: awsxJJ
.. release date: 2015-05-24
.. section: Core and Builtins
Fixed optimization of property descriptor getter.
..
.. bpo: 24268
.. date: 8156
.. nonce: nS7uea
.. section: Core and Builtins
PEP 489: Multi-phase extension module initialization. Patch by Petr
Viktorin.
..
.. bpo: 23955
.. date: 8155
.. nonce: hBHSaU
.. section: Core and Builtins
Add pyvenv.cfg option to suppress registry/environment lookup for generating
sys.path on Windows.
..
.. bpo: 24257
.. date: 8154
.. nonce: UBxshR
.. section: Core and Builtins
Fixed system error in the comparison of faked types.SimpleNamespace.
..
.. bpo: 22939
.. date: 8153
.. nonce: DWA9ls
.. section: Core and Builtins
Fixed integer overflow in iterator object. Patch by Clement Rouault.
..
.. bpo: 23985
.. date: 8152
.. nonce: eezPxO
.. section: Core and Builtins
Fix a possible buffer overrun when deleting a slice from the front of a
bytearray and then appending some other bytes data.
..
.. bpo: 24102
.. date: 8151
.. nonce: 9T6h3m
.. section: Core and Builtins
Fixed exception type checking in standard error handlers.
..
.. bpo: 15027
.. date: 8150
.. nonce: wi9sCd
.. section: Core and Builtins
The UTF-32 encoder is now 3x to 7x faster.
..
.. bpo: 23290
.. date: 8149
.. nonce: 57aqLU
.. section: Core and Builtins
Optimize set_merge() for cases where the target is empty. (Contributed by
Serhiy Storchaka.)
..
.. bpo: 2292
.. date: 8148
.. nonce: h4sibO
.. section: Core and Builtins
PEP 448: Additional Unpacking Generalizations.
..
.. bpo: 24096
.. date: 8147
.. nonce: a_Rap7
.. section: Core and Builtins
Make warnings.warn_explicit more robust against mutation of the
warnings.filters list.
..
.. bpo: 23996
.. date: 8146
.. nonce: znqcT8
.. section: Core and Builtins
Avoid a crash when a delegated generator raises an unnormalized
StopIteration exception. Patch by Stefan Behnel.
..
.. bpo: 23910
.. date: 8145
.. nonce: _gDzaj
.. section: Core and Builtins
Optimize property() getter calls. Patch by Joe Jevnik.
..
.. bpo: 23911
.. date: 8144
.. nonce: 0FnTHk
.. section: Core and Builtins
Move path-based importlib bootstrap code to a separate frozen module.
..
.. bpo: 24192
.. date: 8143
.. nonce: 6ZxJ_R
.. section: Core and Builtins
Fix namespace package imports.
..
.. bpo: 24022
.. date: 8142
.. nonce: 1l8YBm
.. section: Core and Builtins
Fix tokenizer crash when processing undecodable source code.
..
.. bpo: 9951
.. date: 8141
.. nonce: wGztNC
.. section: Core and Builtins
Added a hex() method to bytes, bytearray, and memoryview.
..
.. bpo: 22906
.. date: 8140
.. nonce: WN_kQ6
.. section: Core and Builtins
PEP 479: Change StopIteration handling inside generators.
..
.. bpo: 24017
.. date: 8139
.. nonce: QJa1SC
.. section: Core and Builtins
PEP 492: Coroutines with async and await syntax.
..
.. bpo: 14373
.. date: 8138
.. nonce: 0sk6kE
.. section: Library
Added C implementation of functools.lru_cache(). Based on patches by Matt
Joiner and Alexey Kachayev.
..
.. bpo: 24230
.. date: 8137
.. nonce: b-kgme
.. section: Library
The tempfile module now accepts bytes for prefix, suffix and dir parameters
and returns bytes in such situations (matching the os module APIs).
..
.. bpo: 22189
.. date: 8136
.. nonce: 8epgat
.. section: Library
collections.UserString now supports __getnewargs__(), __rmod__(),
casefold(), format_map(), isprintable(), and maketrans(). Patch by Joe
Jevnik.
..
.. bpo: 24244
.. date: 8135
.. nonce: OKE_3R
.. section: Library
Prevents termination when an invalid format string is encountered on Windows
in strftime.
..
.. bpo: 23973
.. date: 8134
.. nonce: EK6awi
.. section: Library
PEP 484: Add the typing module.
..
.. bpo: 23086
.. date: 8133
.. nonce: Aix6Nv
.. section: Library
The collections.abc.Sequence() abstract base class added *start* and *stop*
parameters to the index() mixin. Patch by Devin Jeanpierre.
..
.. bpo: 20035
.. date: 8132
.. nonce: UNZzw6
.. section: Library
Replaced the ``tkinter._fix`` module used for setting up the Tcl/Tk
environment on Windows with a private function in the ``_tkinter`` module
that makes no permanent changes to the environment.
..
.. bpo: 24257
.. date: 8131
.. nonce: L_efq0
.. section: Library
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
..
.. bpo: 15836
.. date: 8130
.. nonce: gU3Rmx
.. section: Library
assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()
assertments now check the type of the first argument to prevent possible
user error. Based on patch by Daniel Wagner-Hall.
..
.. bpo: 9858
.. date: 8129
.. nonce: uke9pa
.. section: Library
Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
..
.. bpo: 22955
.. date: 8128
.. nonce: Jw_B9_
.. section: Library
attrgetter, itemgetter and methodcaller objects in the operator module now
support pickling. Added readable and evaluable repr for these objects.
Based on patch by Josh Rosenberg.
..
.. bpo: 22107
.. date: 8127
.. nonce: 2F8k4W
.. section: Library
tempfile.gettempdir() and tempfile.mkdtemp() now try again when a directory
with the chosen name already exists on Windows as well as on Unix.
tempfile.mkstemp() now fails early if parent directory is not valid (not
exists or is a file) on Windows.
..
.. bpo: 23780
.. date: 8126
.. nonce: jFPVcN
.. section: Library
Improved error message in os.path.join() with single argument.
..
.. bpo: 6598
.. date: 8125
.. nonce: JdZNDt
.. section: Library
Increased time precision and random number range in email.utils.make_msgid()
to strengthen the uniqueness of the message ID.
..
.. bpo: 24091
.. date: 8124
.. nonce: Jw0-wj
.. section: Library
Fixed various crashes in corner cases in C implementation of ElementTree.
..
.. bpo: 21931
.. date: 8123
.. nonce: t6lGxY
.. section: Library
msilib.FCICreate() now raises TypeError in the case of a bad argument
instead of a ValueError with a bogus FCI error number. Patch by Jeffrey
Armstrong.
..
.. bpo: 13866
.. date: 8122
.. nonce: n5NAj0
.. section: Library
*quote_via* argument added to urllib.parse.urlencode.
..
.. bpo: 20098
.. date: 8121
.. nonce: Y4otaf
.. section: Library
New mangle_from policy option for email, default True for compat32, but
False for all other policies.
..
.. bpo: 24211
.. date: 8120
.. nonce: j3Afpc
.. section: Library
The email library now supports RFC 6532: it can generate headers using utf-8
instead of encoded words.
..
.. bpo: 16314
.. date: 8119
.. nonce: Xc4d1O
.. section: Library
Added support for the LZMA compression in distutils.
..
.. bpo: 21804
.. date: 8118
.. nonce: lEhTlc
.. section: Library
poplib now supports RFC 6856 (UTF8).
..
.. bpo: 18682
.. date: 8117
.. nonce: 6Pnfte
.. section: Library
Optimized pprint functions for builtin scalar types.
..
.. bpo: 22027
.. date: 8116
.. nonce: _aeUQS
.. section: Library
smtplib now supports RFC 6531 (SMTPUTF8).
..
.. bpo: 23488
.. date: 8115
.. nonce: 7gs3Cm
.. section: Library
Random generator objects now consume 2x less memory on 64-bit.
..
.. bpo: 1322
.. date: 8114
.. nonce: 495nFL
.. section: Library
platform.dist() and platform.linux_distribution() functions are now
deprecated. Initial patch by Vajrasky Kok.
..
.. bpo: 22486
.. date: 8113
.. nonce: Yxov5m
.. section: Library
Added the math.gcd() function. The fractions.gcd() function now is
deprecated. Based on patch by Mark Dickinson.
..
.. bpo: 24064
.. date: 8112
.. nonce: zXC7OL
.. section: Library
Property() docstrings are now writeable. (Patch by Berker Peksag.)
..
.. bpo: 22681
.. date: 8111
.. nonce: 2rIoA2
.. section: Library
Added support for the koi8_t encoding.
..
.. bpo: 22682
.. date: 8110
.. nonce: cP4i3L
.. section: Library
Added support for the kz1048 encoding.
..
.. bpo: 23796
.. date: 8109
.. nonce: JJmUnc
.. section: Library
peek and read1 methods of BufferedReader now raise ValueError if they called
on a closed object. Patch by John Hergenroeder.
..
.. bpo: 21795
.. date: 8108
.. nonce: BDLMS4
.. section: Library
smtpd now supports the 8BITMIME extension whenever the new *decode_data*
constructor argument is set to False.
..
.. bpo: 24155
.. date: 8107
.. nonce: FZx5c2
.. section: Library
optimize heapq.heapify() for better cache performance when heapifying large
lists.
..
.. bpo: 21800
.. date: 8106
.. nonce: evGSKc
.. section: Library
imaplib now supports RFC 5161 (enable), RFC 6855 (utf8/internationalized
email) and automatically encodes non-ASCII usernames and passwords to UTF8.
..
.. bpo: 20274
.. date: 8105
.. nonce: uVHogg
.. section: Library
When calling a _sqlite.Connection, it now complains if passed any keyword
arguments. Previously it silently ignored them.
..
.. bpo: 20274
.. date: 8104
.. nonce: hBst4M
.. section: Library
Remove ignored and erroneous "kwargs" parameters from three METH_VARARGS
methods on _sqlite.Connection.
..
.. bpo: 24134
.. date: 8103
.. nonce: Ajw0S-
.. section: Library
assertRaises(), assertRaisesRegex(), assertWarns() and assertWarnsRegex()
checks now emits a deprecation warning when callable is None or keyword
arguments except msg is passed in the context manager mode.
..
.. bpo: 24018
.. date: 8102
.. nonce: hk7Rcn
.. section: Library
Add a collections.abc.Generator abstract base class. Contributed by Stefan
Behnel.
..
.. bpo: 23880
.. date: 8101
.. nonce: QtKupC
.. section: Library
Tkinter's getint() and getdouble() now support Tcl_Obj. Tkinter's
getdouble() now supports any numbers (in particular int).
..
.. bpo: 22619
.. date: 8100
.. nonce: 1gJEqV
.. section: Library
Added negative limit support in the traceback module. Based on patch by
Dmitry Kazakov.
..
.. bpo: 24094
.. date: 8099
.. nonce: 7T-u7k
.. section: Library
Fix possible crash in json.encode with poorly behaved dict subclasses.
..
.. bpo: 9246
.. date: 8098
.. nonce: oM-Ikk
.. section: Library
On POSIX, os.getcwd() now supports paths longer than 1025 bytes. Patch
written by William Orr.
..
.. bpo: 17445
.. date: 8097
.. nonce: Z-QYh5
.. section: Library
add difflib.diff_bytes() to support comparison of byte strings (fixes a
regression from Python 2).
..
.. bpo: 23917
.. date: 8096
.. nonce: uMVPV7
.. section: Library
Fall back to sequential compilation when ProcessPoolExecutor doesn't exist.
Patch by Claudiu Popa.
..
.. bpo: 23008
.. date: 8095
.. nonce: OZFCd-
.. section: Library
Fixed resolving attributes with boolean value is False in pydoc.
..
.. bpo: 0
.. date: 8094
.. nonce: 6tJNf2
.. section: Library
Fix asyncio issue 235: LifoQueue and PriorityQueue's put didn't increment
unfinished tasks (this bug was introduced when JoinableQueue was merged with
Queue).
..
.. bpo: 23908
.. date: 8093
.. nonce: ATdNG-
.. section: Library
os functions now reject paths with embedded null character on Windows
instead of silently truncating them.
..
.. bpo: 23728
.. date: 8092
.. nonce: YBmQmV
.. section: Library
binascii.crc_hqx() could return an integer outside of the range 0-0xffff for
empty data.
..
.. bpo: 23887
.. date: 8091
.. nonce: _XpjPN
.. section: Library
urllib.error.HTTPError now has a proper repr() representation. Patch by
Berker Peksag.
..
.. bpo: 0
.. date: 8090
.. nonce: MjNdSC
.. section: Library
asyncio: New event loop APIs: set_task_factory() and get_task_factory().
..
.. bpo: 0
.. date: 8089
.. nonce: rVcHXp
.. section: Library
asyncio: async() function is deprecated in favour of ensure_future().
..
.. bpo: 24178
.. date: 8088
.. nonce: -enO4y
.. section: Library
asyncio.Lock, Condition, Semaphore, and BoundedSemaphore support new 'async
with' syntax. Contributed by Yury Selivanov.
..
.. bpo: 24179
.. date: 8087
.. nonce: wDy_WZ
.. section: Library
Support 'async for' for asyncio.StreamReader. Contributed by Yury Selivanov.
..
.. bpo: 24184
.. date: 8086
.. nonce: El74TU
.. section: Library
Add AsyncIterator and AsyncIterable ABCs to collections.abc. Contributed by
Yury Selivanov.
..
.. bpo: 22547
.. date: 8085
.. nonce: _ikCaj
.. section: Library
Implement informative __repr__ for inspect.BoundArguments. Contributed by
Yury Selivanov.
..
.. bpo: 24190
.. date: 8084
.. nonce: 1a3vWW
.. section: Library
Implement inspect.BoundArgument.apply_defaults() method. Contributed by Yury
Selivanov.
..
.. bpo: 20691
.. date: 8083
.. nonce: -raLyf
.. section: Library
Add 'follow_wrapped' argument to inspect.Signature.from_callable() and
inspect.signature(). Contributed by Yury Selivanov.
..
.. bpo: 24248
.. date: 8082
.. nonce: IxWooo
.. section: Library
Deprecate inspect.Signature.from_function() and
inspect.Signature.from_builtin().
..
.. bpo: 23898
.. date: 8081
.. nonce: OSiZie
.. section: Library
Fix inspect.classify_class_attrs() to support attributes with overloaded
__eq__ and __bool__. Patch by Mike Bayer.
..
.. bpo: 24298
.. date: 8080
.. nonce: u_TaxI
.. section: Library
Fix inspect.signature() to correctly unwrap wrappers around bound methods.
..
.. bpo: 23184
.. date: 8079
.. nonce: G_Cp9v
.. section: IDLE
remove unused names and imports in idlelib. Initial patch by Al Sweigart.
..
.. bpo: 21520
.. date: 8078
.. nonce: FKtvmQ
.. section: Tests
test_zipfile no longer fails if the word 'bad' appears anywhere in the name
of the current directory.
..
.. bpo: 9517
.. date: 8077
.. nonce: W0Ag2V
.. section: Tests
Move script_helper into the support package. Patch by Christie Wilson.
..
.. bpo: 22155
.. date: 8076
.. nonce: 9EbOit
.. section: Documentation
Add File Handlers subsection with createfilehandler to tkinter doc. Remove
obsolete example from FAQ. Patch by Martin Panter.
..
.. bpo: 24029
.. date: 8075
.. nonce: M2Bnks
.. section: Documentation
Document the name binding behavior for submodule imports.
..
.. bpo: 24077
.. date: 8074
.. nonce: 2Og2j-
.. section: Documentation
Fix typo in man page for -I command option: -s, not -S
..
.. bpo: 24000
.. date: 8073
.. nonce: MJyXRr
.. section: Tools/Demos
Improved Argument Clinic's mapping of converters to legacy "format units".
Updated the documentation to match.
..
.. bpo: 24001
.. date: 8072
.. nonce: m74vst
.. section: Tools/Demos
Argument Clinic converters now use accept={type} instead of types={'type'}
to specify the types the converter accepts.
..
.. bpo: 23330
.. date: 8071
.. nonce: LTlKDp
.. section: Tools/Demos
h2py now supports arbitrary filenames in #include.
..
.. bpo: 24031
.. date: 8070
.. nonce: duGo88
.. section: Tools/Demos
make patchcheck now supports git checkouts, too.

View file

@ -0,0 +1,104 @@
.. bpo: 24284
.. date: 8168
.. nonce: NvtEnc
.. release date: 2015-05-31
.. section: Core and Builtins
The startswith and endswith methods of the str class no longer return True
when finding the empty string and the indexes are completely out of range.
..
.. bpo: 24115
.. date: 8167
.. nonce: y9e_MO
.. section: Core and Builtins
Update uses of PyObject_IsTrue(), PyObject_Not(), PyObject_IsInstance(),
PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle
errors correctly.
..
.. bpo: 24328
.. date: 8166
.. nonce: 5gL8or
.. section: Core and Builtins
Fix importing one character extension modules.
..
.. bpo: 11205
.. date: 8165
.. nonce: bikrRP
.. section: Core and Builtins
In dictionary displays, evaluate the key before the value.
..
.. bpo: 24285
.. date: 8164
.. nonce: wvJumr
.. section: Core and Builtins
Fixed regression that prevented importing extension modules from inside
packages. Patch by Petr Viktorin.
..
.. bpo: 23247
.. date: 8163
.. nonce: nN-K74
.. section: Library
Fix a crash in the StreamWriter.reset() of CJK codecs.
..
.. bpo: 24270
.. date: 8162
.. nonce: M2rJNs
.. section: Library
Add math.isclose() and cmath.isclose() functions as per PEP 485. Contributed
by Chris Barker and Tal Einat.
..
.. bpo: 5633
.. date: 8161
.. nonce: JNzKZq
.. section: Library
Fixed timeit when the statement is a string and the setup is not.
..
.. bpo: 24326
.. date: 8160
.. nonce: 4t_6Gy
.. section: Library
Fixed audioop.ratecv() with non-default weightB argument. Original patch by
David Moore.
..
.. bpo: 16991
.. date: 8159
.. nonce: 19_Zmj
.. section: Library
Add a C implementation of OrderedDict.
..
.. bpo: 23934
.. date: 8158
.. nonce: esb-45
.. section: Library
Fix inspect.signature to fail correctly for builtin types lacking signature
information. Initial patch by James Powell.

View file

@ -0,0 +1,273 @@
.. bpo: 24467
.. date: 8196
.. nonce: BAJ80-
.. release date: 2015-07-05
.. section: Core and Builtins
Fixed possible buffer over-read in bytearray. The bytearray object now
always allocates place for trailing null byte and it's buffer now is always
null-terminated.
..
.. bpo: 0
.. date: 8195
.. nonce: 944IUY
.. section: Core and Builtins
Upgrade to Unicode 8.0.0.
..
.. bpo: 24345
.. date: 8194
.. nonce: fVcTaB
.. section: Core and Builtins
Add Py_tp_finalize slot for the stable ABI.
..
.. bpo: 24400
.. date: 8193
.. nonce: 2mNeD8
.. section: Core and Builtins
Introduce a distinct type for PEP 492 coroutines; add types.CoroutineType,
inspect.getcoroutinestate, inspect.getcoroutinelocals; coroutines no longer
use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def'
coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine,
it's intended to test for pure 'async def' coroutines only; add new opcode:
GET_YIELD_FROM_ITER; fix generators wrapper used in types.coroutine to be
instance of collections.abc.Generator; collections.abc.Awaitable and
collections.abc.Coroutine can no longer be used to detect generator-based
coroutines--use inspect.isawaitable instead.
..
.. bpo: 24450
.. date: 8192
.. nonce: lF0S5c
.. section: Core and Builtins
Add gi_yieldfrom to generators and cr_await to coroutines. Contributed by
Benno Leslie and Yury Selivanov.
..
.. bpo: 19235
.. date: 8191
.. nonce: 0kW4n5
.. section: Core and Builtins
Add new RecursionError exception. Patch by Georg Brandl.
..
.. bpo: 21750
.. date: 8190
.. nonce: _Ycvgi
.. section: Library
mock_open.read_data can now be read from each instance, as it could in
Python 3.3.
..
.. bpo: 24552
.. date: 8189
.. nonce: VTO6sf
.. section: Library
Fix use after free in an error case of the _pickle module.
..
.. bpo: 24514
.. date: 8188
.. nonce: _xRb2r
.. section: Library
tarfile now tolerates number fields consisting of only whitespace.
..
.. bpo: 19176
.. date: 8187
.. nonce: 8V6nOK
.. section: Library
Fixed doctype() related bugs in C implementation of ElementTree. A
deprecation warning no longer issued by XMLParser subclass with default
doctype() method. Direct call of doctype() now issues a warning. Parser's
doctype() now is not called if target's doctype() is called. Based on patch
by Martin Panter.
..
.. bpo: 20387
.. date: 8186
.. nonce: aAbWbQ
.. section: Library
Restore semantic round-trip correctness in tokenize/untokenize for
tab-indented blocks.
..
.. bpo: 24456
.. date: 8185
.. nonce: yYSd2u
.. section: Library
Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() functions of
the audioop module.
..
.. bpo: 24336
.. date: 8184
.. nonce: 4a5y1m
.. section: Library
The contextmanager decorator now works with functions with keyword arguments
called "func" and "self". Patch by Martin Panter.
..
.. bpo: 24522
.. date: 8183
.. nonce: PkcqCA
.. section: Library
Fix possible integer overflow in json accelerator module.
..
.. bpo: 24489
.. date: 8182
.. nonce: GJnMcW
.. section: Library
ensure a previously set C errno doesn't disturb cmath.polar().
..
.. bpo: 24408
.. date: 8181
.. nonce: vPb5UK
.. section: Library
Fixed AttributeError in measure() and metrics() methods of tkinter.Font.
..
.. bpo: 14373
.. date: 8180
.. nonce: CTYZ4J
.. section: Library
C implementation of functools.lru_cache() now can be used with methods.
..
.. bpo: 24347
.. date: 8179
.. nonce: CPPDb8
.. section: Library
Set KeyError if PyDict_GetItemWithError returns NULL.
..
.. bpo: 24348
.. date: 8178
.. nonce: U11rhr
.. section: Library
Drop superfluous incref/decref.
..
.. bpo: 24359
.. date: 8177
.. nonce: -IRNG9
.. section: Library
Check for changed OrderedDict size during iteration.
..
.. bpo: 24368
.. date: 8176
.. nonce: 550kDT
.. section: Library
Support keyword arguments in OrderedDict methods.
..
.. bpo: 24362
.. date: 8175
.. nonce: cHYce5
.. section: Library
Simplify the C OrderedDict fast nodes resize logic.
..
.. bpo: 24377
.. date: 8174
.. nonce: Gp1Bqr
.. section: Library
Fix a ref leak in OrderedDict.__repr__.
..
.. bpo: 24369
.. date: 8173
.. nonce: qFl7lZ
.. section: Library
Defend against key-changes during iteration.
..
.. bpo: 24373
.. date: 8172
.. nonce: 6TL2XG
.. section: Tests
_testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid
reference leaks encountered when combining tp_dealloc with PyType_FromSpec
(see issue #16690 for details)
..
.. bpo: 24458
.. date: 8171
.. nonce: 1egApX
.. section: Documentation
Update documentation to cover multi-phase initialization for extension
modules (PEP 489). Patch by Petr Viktorin.
..
.. bpo: 24351
.. date: 8170
.. nonce: XeSVl5
.. section: Documentation
Clarify what is meant by "identifier" in the context of string.Template
instances.
..
.. bpo: 24432
.. date: 8169
.. nonce: IvUSiN
.. section: Build
Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2c.

View file

@ -0,0 +1,255 @@
.. bpo: 23573
.. date: 8223
.. nonce: HdJPs7
.. release date: 2015-07-26
.. section: Core and Builtins
Restored optimization of bytes.rfind() and bytearray.rfind() for single-byte
argument on Linux.
..
.. bpo: 24569
.. date: 8222
.. nonce: bqh6PQ
.. section: Core and Builtins
Make PEP 448 dictionary evaluation more consistent.
..
.. bpo: 24583
.. date: 8221
.. nonce: Ooq0Tn
.. section: Core and Builtins
Fix crash when set is mutated while being updated.
..
.. bpo: 24407
.. date: 8220
.. nonce: GmCBB3
.. section: Core and Builtins
Fix crash when dict is mutated while being updated.
..
.. bpo: 24619
.. date: 8219
.. nonce: cnfZGo
.. section: Core and Builtins
New approach for tokenizing async/await. As a consequence, it is now
possible to have one-line 'async def foo(): await ..' functions.
..
.. bpo: 24687
.. date: 8218
.. nonce: 0UaXFe
.. section: Core and Builtins
Plug refleak on SyntaxError in function parameters annotations.
..
.. bpo: 15944
.. date: 8217
.. nonce: 4GuwqX
.. section: Core and Builtins
memoryview: Allow arbitrary formats when casting to bytes. Patch by Martin
Panter.
..
.. bpo: 23441
.. date: 8216
.. nonce: JXt2Yt
.. section: Library
rcompleter now prints a tab character instead of displaying possible
completions for an empty word. Initial patch by Martin Sekera.
..
.. bpo: 24683
.. date: 8215
.. nonce: aJdWEv
.. section: Library
Fixed crashes in _json functions called with arguments of inappropriate
type.
..
.. bpo: 21697
.. date: 8214
.. nonce: jpATha
.. section: Library
shutil.copytree() now correctly handles symbolic links that point to
directories. Patch by Eduardo Seabra and Thomas Kluyver.
..
.. bpo: 14373
.. date: 8213
.. nonce: Je0yDg
.. section: Library
Fixed segmentation fault when gc.collect() is called during constructing
lru_cache (C implementation).
..
.. bpo: 24695
.. date: 8212
.. nonce: QjZzFb
.. section: Library
Fix a regression in traceback.print_exception(). If exc_traceback is None
we shouldn't print a traceback header like described in the documentation.
..
.. bpo: 24620
.. date: 8211
.. nonce: rrnxB-
.. section: Library
Random.setstate() now validates the value of state last element.
..
.. bpo: 22485
.. date: 8210
.. nonce: HvJf6T
.. section: Library
Fixed an issue that caused `inspect.getsource` to return incorrect results
on nested functions.
..
.. bpo: 22153
.. date: 8209
.. nonce: 6n6yld
.. section: Library
Improve unittest docs. Patch from Martin Panter and evilzero.
..
.. bpo: 24580
.. date: 8208
.. nonce: AGi4Gm
.. section: Library
Symbolic group references to open group in re patterns now are explicitly
forbidden as well as numeric group references.
..
.. bpo: 24206
.. date: 8207
.. nonce: ffkVHH
.. section: Library
Fixed __eq__ and __ne__ methods of inspect classes.
..
.. bpo: 24631
.. date: 8206
.. nonce: uljPxM
.. section: Library
Fixed regression in the timeit module with multiline setup.
..
.. bpo: 18622
.. date: 8205
.. nonce: i6nCCW
.. section: Library
unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from
Nicola Palumbo and Laurent De Buyst.
..
.. bpo: 23661
.. date: 8204
.. 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: 24608
.. date: 8203
.. nonce: 0TndL0
.. section: Library
chunk.Chunk.read() now always returns bytes, not str.
..
.. bpo: 18684
.. date: 8202
.. nonce: S2es0F
.. section: Library
Fixed reading out of the buffer in the re module.
..
.. bpo: 24259
.. date: 8201
.. nonce: vMAi1A
.. section: Library
tarfile now raises a ReadError if an archive is truncated inside a data
segment.
..
.. bpo: 15014
.. date: 8200
.. nonce: hwXwCH
.. section: Library
SMTP.auth() and SMTP.login() now support RFC 4954's optional
initial-response argument to the SMTP AUTH command.
..
.. bpo: 24669
.. date: 8199
.. nonce: kFThK0
.. section: Library
Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner.
..
.. bpo: 24688
.. date: 8198
.. nonce: -yWfcO
.. section: Library
ast.get_docstring() for 'async def' functions.
..
.. bpo: 24603
.. date: 8197
.. nonce: PyHyF5
.. section: Build
Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2d.

View file

@ -0,0 +1,241 @@
.. bpo: 24667
.. date: 8248
.. nonce: tdwszf
.. release date: 2015-08-09
.. section: Core and Builtins
Resize odict in all cases that the underlying dict resizes.
..
.. bpo: 24824
.. date: 8247
.. nonce: Eoc4lq
.. section: Library
Signatures of codecs.encode() and codecs.decode() now are compatible with
pydoc.
..
.. bpo: 24634
.. date: 8246
.. nonce: 7bnVgr
.. section: Library
Importing uuid should not try to load libc on Windows
..
.. bpo: 24798
.. date: 8245
.. nonce: zDXL5R
.. section: Library
_msvccompiler.py doesn't properly support manifests
..
.. bpo: 4395
.. date: 8244
.. nonce: JpT0k7
.. section: Library
Better testing and documentation of binary operators. Patch by Martin
Panter.
..
.. bpo: 23973
.. date: 8243
.. nonce: wT59Vh
.. section: Library
Update typing.py from GitHub repo.
..
.. bpo: 23004
.. date: 8242
.. nonce: xswcPm
.. section: Library
mock_open() now reads binary data correctly when the type of read_data is
bytes. Initial patch by Aaron Hill.
..
.. bpo: 23888
.. date: 8241
.. nonce: 7gw4oO
.. section: Library
Handle fractional time in cookie expiry. Patch by ssh.
..
.. bpo: 23652
.. date: 8240
.. nonce: DKQ_7t
.. section: Library
Make it possible to compile the select module against the libc headers from
the Linux Standard Base, which do not include some EPOLL macros. Patch by
Matt Frank.
..
.. bpo: 22932
.. date: 8239
.. nonce: mPclSJ
.. section: Library
Fix timezones in email.utils.formatdate. Patch from Dmitry Shachnev.
..
.. bpo: 23779
.. date: 8238
.. nonce: ET4JJP
.. section: Library
imaplib raises TypeError if authenticator tries to abort. Patch from Craig
Holmquist.
..
.. bpo: 23319
.. date: 8237
.. nonce: FXyUH-
.. section: Library
Fix ctypes.BigEndianStructure, swap correctly bytes. Patch written by
Matthieu Gautier.
..
.. bpo: 23254
.. date: 8236
.. nonce: zNiy1X
.. section: Library
Document how to close the TCPServer listening socket. Patch from Martin
Panter.
..
.. bpo: 19450
.. date: 8235
.. nonce: VG7T-L
.. section: Library
Update Windows and OS X installer builds to use SQLite 3.8.11.
..
.. bpo: 17527
.. date: 8234
.. nonce: ve9fyw
.. section: Library
Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
..
.. bpo: 24791
.. date: 8233
.. nonce: Ok-3nA
.. section: Library
Fix grammar regression for call syntax: 'g(\*a or b)'.
..
.. bpo: 23672
.. date: 8232
.. nonce: 8td2se
.. section: IDLE
Allow Idle to edit and run files with astral chars in name. Patch by Mohd
Sanad Zaki Rizvi.
..
.. bpo: 24745
.. date: 8231
.. nonce: edbziT
.. section: IDLE
Idle editor default font. Switch from Courier to platform-sensitive
TkFixedFont. This should not affect current customized font selections. If
there is a problem, edit $HOME/.idlerc/config-main.cfg and remove 'fontxxx'
entries from [Editor Window]. Patch by Mark Roseman.
..
.. bpo: 21192
.. date: 8230
.. nonce: CdbipH
.. section: IDLE
Idle editor. When a file is run, put its name in the restart bar. Do not
print false prompts. Original patch by Adnan Umer.
..
.. bpo: 13884
.. date: 8229
.. nonce: vVcO1E
.. section: IDLE
Idle menus. Remove tearoff lines. Patch by Roger Serwy.
..
.. bpo: 24129
.. date: 8228
.. nonce: Imr54z
.. section: Documentation
Clarify the reference documentation for name resolution. This includes
removing the assumption that readers will be familiar with the name
resolution scheme Python used prior to the introduction of lexical scoping
for function namespaces. Patch by Ivan Levkivskyi.
..
.. bpo: 20769
.. date: 8227
.. nonce: ZUc9z9
.. section: Documentation
Improve reload() docs. Patch by Dorian Pula.
..
.. bpo: 23589
.. date: 8226
.. nonce: rjU421
.. section: Documentation
Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
..
.. bpo: 24729
.. date: 8225
.. nonce: PH3A9p
.. section: Documentation
Correct IO tutorial to match implementation regarding encoding parameter to
open function.
..
.. bpo: 24751
.. date: 8224
.. nonce: pL2pbj
.. section: Tests
When running regrtest with the ``-w`` command line option, a test run is no
longer marked as a failure if all tests succeed when re-run.

View file

@ -0,0 +1,56 @@
.. bpo: 24769
.. date: 8254
.. nonce: XgRA0n
.. release date: 2015-08-25
.. section: Core and Builtins
Interpreter now starts properly when dynamic loading is disabled. Patch by
Petr Viktorin.
..
.. bpo: 21167
.. date: 8253
.. nonce: uom-Dq
.. section: Core and Builtins
NAN operations are now handled correctly when python is compiled with ICC
even if -fp-model strict is not specified.
..
.. bpo: 24492
.. date: 8252
.. nonce: LKDAIu
.. section: Core and Builtins
A "package" lacking a __name__ attribute when trying to perform a ``from ..
import ...`` statement will trigger an ImportError instead of an
AttributeError.
..
.. bpo: 24847
.. date: 8251
.. nonce: SHiiO_
.. section: Library
Removes vcruntime140.dll dependency from Tcl/Tk.
..
.. bpo: 24839
.. date: 8250
.. nonce: 7_iQZl
.. section: Library
platform._syscmd_ver raises DeprecationWarning
..
.. bpo: 24867
.. date: 8249
.. nonce: rxJIl7
.. section: Library
Fix Task.get_stack() for 'async def' coroutines

View file

@ -0,0 +1,76 @@
.. bpo: 24305
.. date: 8262
.. nonce: QeF4A8
.. release date: 2015-09-07
.. section: Core and Builtins
Prevent import subsystem stack frames from being counted by the
warnings.warn(stacklevel=) parameter.
..
.. bpo: 24912
.. date: 8261
.. nonce: ubSi5J
.. section: Core and Builtins
Prevent __class__ assignment to immutable built-in objects.
..
.. bpo: 24975
.. date: 8260
.. nonce: 2gLdfN
.. section: Core and Builtins
Fix AST compilation for PEP 448 syntax.
..
.. bpo: 24917
.. date: 8259
.. nonce: xaQocz
.. section: Library
time_strftime() buffer over-read.
..
.. bpo: 24748
.. date: 8258
.. nonce: 83NuO8
.. section: Library
To resolve a compatibility problem found with py2exe and pywin32,
imp.load_dynamic() once again ignores previously loaded modules to support
Python modules replacing themselves with extension modules. Patch by Petr
Viktorin.
..
.. bpo: 24635
.. date: 8257
.. nonce: EiJPPf
.. section: Library
Fixed a bug in typing.py where isinstance([], typing.Iterable) would return
True once, then False on subsequent calls.
..
.. bpo: 24989
.. date: 8256
.. nonce: 9BJLiy
.. section: Library
Fixed buffer overread in BytesIO.readline() if a position is set beyond
size. Based on patch by John Leitch.
..
.. bpo: 24913
.. date: 8255
.. nonce: p2ZAJ4
.. section: Library
Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling.

View file

@ -0,0 +1,17 @@
.. bpo: 25029
.. date: 8264
.. nonce: Zf97rk
.. release date: 2015-09-09
.. section: Library
Fixes MemoryError in test_strptime.
..
.. bpo: 25027
.. date: 8263
.. nonce: Zaib78
.. section: Build
Reverts partial-static build options and adds vcruntime140.dll to Windows
installation.

View file

@ -0,0 +1,17 @@
.. bpo: 25709
.. date: 8412
.. nonce: OPX2TS
.. release date: 2015-12-06
.. section: Core and Builtins
Fixed problem with in-place string concatenation and utf-8 cache.
..
.. bpo: 25715
.. date: 8411
.. nonce: 3LLYLj
.. section: Windows
Python 3.5.1 installer shows wrong upgrade path and incorrect logic for
launcher detection.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,25 @@
.. bpo: 26930
.. date: 8636
.. nonce: 9JUeSD
.. release date: 2016-06-26
.. section: Core and Builtins
Update Windows builds to use OpenSSL 1.0.2h.
..
.. bpo: 26867
.. date: 8635
.. nonce: QPSyP5
.. section: Tests
Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.
..
.. bpo: 27365
.. date: 8634
.. nonce: ipkJ_M
.. section: IDLE
Allow non-ascii in idlelib/NEWS.txt - minimal part for 3.5.2.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
.. bpo: 0
.. date: 8859
.. no changes: True
.. nonce: zYPqUK
.. release date: 2017-01-17
There were no code changes between 3.5.3rc1 and 3.5.3 final.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
.. bpo: 0
.. date: 9796
.. no changes: True
.. nonce: F9ENBV
.. release date: 2016-12-23
No changes since release candidate 2

3941
third_party/python/Misc/NEWS.d/3.6.0a1.rst vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,792 @@
.. bpo: 27095
.. date: 9332
.. nonce: 92UoyH
.. release date: 2016-06-13
.. section: Core and Builtins
Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes. Patch by Demur
Rumed.
..
.. bpo: 27190
.. date: 9331
.. nonce: DHDFeD
.. section: Core and Builtins
Raise NotSupportedError if sqlite3 is older than 3.3.1. Patch by Dave
Sawyer.
..
.. bpo: 27286
.. date: 9330
.. nonce: U8q6B1
.. section: Core and Builtins
Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling function with
generalized unpacking (PEP 448) and conflicting keyword names could cause
undefined behavior.
..
.. bpo: 27140
.. date: 9329
.. nonce: uc39-1
.. section: Core and Builtins
Added BUILD_CONST_KEY_MAP opcode.
..
.. bpo: 27186
.. date: 9328
.. nonce: EAnCS7
.. section: Core and Builtins
Add support for os.PathLike objects to open() (part of PEP 519).
..
.. bpo: 27066
.. date: 9327
.. nonce: SNExZi
.. section: Core and Builtins
Fixed SystemError if a custom opener (for open()) returns a negative number
without setting an exception.
..
.. bpo: 26983
.. date: 9326
.. nonce: A0f3fK
.. section: Core and Builtins
float() now always return an instance of exact float. The deprecation
warning is emitted if __float__ returns an instance of a strict subclass of
float. In a future versions of Python this can be an error.
..
.. bpo: 27097
.. date: 9325
.. nonce: woRKey
.. section: Core and Builtins
Python interpreter is now about 7% faster due to optimized instruction
decoding. Based on patch by Demur Rumed.
..
.. bpo: 26647
.. date: 9324
.. nonce: DLSzRi
.. section: Core and Builtins
Python interpreter now uses 16-bit wordcode instead of bytecode. Patch by
Demur Rumed.
..
.. bpo: 23275
.. date: 9323
.. nonce: YGPb_y
.. section: Core and Builtins
Allow assigning to an empty target list in round brackets: () = iterable.
..
.. bpo: 27243
.. date: 9322
.. nonce: U36M4E
.. section: Core and Builtins
Update the __aiter__ protocol: instead of returning an awaitable that
resolves to an asynchronous iterator, the asynchronous iterator should be
returned directly. Doing the former will trigger a
PendingDeprecationWarning.
..
.. bpo: 0
.. date: 9321
.. nonce: nBpVM1
.. section: Library
Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway.
..
.. bpo: 27025
.. date: 9320
.. nonce: ffzxpX
.. section: Library
Generated names for Tkinter widgets are now more meaningful and recognizable.
..
.. bpo: 25455
.. date: 9319
.. nonce: k10GoO
.. section: Library
Fixed crashes in repr of recursive ElementTree.Element and functools.partial
objects.
..
.. bpo: 27294
.. date: 9318
.. nonce: XPCURr
.. section: Library
Improved repr for Tkinter event objects.
..
.. bpo: 20508
.. date: 9317
.. nonce: 3NMbT2
.. section: Library
Improve exception message of IPv{4,6}Network.__getitem__. Patch by Gareth
Rees.
..
.. bpo: 26556
.. date: 9316
.. nonce: v5j2uL
.. original section: Library
.. section: Security
Update expat to 2.1.1, fixes CVE-2015-1283.
..
.. bpo: 0
.. date: 9315
.. nonce: PHOAdg
.. original section: Library
.. section: Security
Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team
Oststrom.
..
.. bpo: 21386
.. date: 9314
.. nonce: DjV72U
.. section: Library
Implement missing IPv4Address.is_global property. It was documented since
07a5610bae9d. Initial patch by Roger Luethi.
..
.. bpo: 27029
.. date: 9313
.. nonce: dmycvw
.. section: Library
Removed deprecated support of universal newlines mode from ZipFile.open().
..
.. bpo: 27030
.. date: 9312
.. nonce: p29J7m
.. section: Library
Unknown escapes consisting of ``'\'`` and an ASCII letter in regular
expressions now are errors. The re.LOCALE flag now can be used only with
bytes patterns.
..
.. bpo: 27186
.. date: 9311
.. nonce: UYiwoh
.. section: Library
Add os.PathLike support to DirEntry (part of PEP 519). Initial patch by
Jelle Zijlstra.
..
.. bpo: 20900
.. date: 9310
.. nonce: H5YQPR
.. section: Library
distutils register command now decodes HTTP responses correctly. Initial
patch by ingrid.
..
.. bpo: 27186
.. date: 9309
.. nonce: Xo4c_F
.. section: Library
Add os.PathLike support to pathlib, removing its provisional status (part of
PEP 519). Initial patch by Dusty Phillips.
..
.. bpo: 27186
.. date: 9308
.. nonce: ZD1wpp
.. section: Library
Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part
of PEP 519).
..
.. bpo: 27186
.. date: 9307
.. nonce: y7YRfj
.. section: Library
Introduce os.PathLike and os.fspath() (part of PEP 519).
..
.. bpo: 0
.. date: 9306
.. nonce: iYIeng
.. section: Library
A new version of typing.py provides several new classes and features:
@overload outside stubs, Reversible, DefaultDict, Text, ContextManager,
Type[], NewType(), TYPE_CHECKING, and numerous bug fixes (note that some of
the new features are not yet implemented in mypy or other static analyzers).
Also classes for PEP 492 (Awaitable, AsyncIterable, AsyncIterator) have been
added (in fact they made it into 3.5.1 but were never mentioned).
..
.. bpo: 25738
.. date: 9305
.. nonce: mED9w4
.. section: Library
Stop http.server.BaseHTTPRequestHandler.send_error() from sending a message
body for 205 Reset Content. Also, don't send Content header fields in
responses that don't have a body. Patch by Susumu Koshiba.
..
.. bpo: 21313
.. date: 9304
.. nonce: W30MBr
.. section: Library
Fix the "platform" module to tolerate when sys.version contains truncated
build information.
..
.. bpo: 26839
.. date: 9303
.. nonce: yVvy7R
.. original section: Library
.. section: Security
On Linux, :func:`os.urandom` now calls ``getrandom()`` with
``GRND_NONBLOCK`` to fall back on reading ``/dev/urandom`` if the urandom
entropy pool is not initialized yet. Patch written by Colm Buckley.
..
.. bpo: 23883
.. date: 9302
.. nonce: tsZUiM
.. section: Library
Added missing APIs to __all__ to match the documented APIs for the following
modules: cgi, mailbox, mimetypes, plistlib and smtpd. Patches by Jacek
Kołodziej.
..
.. bpo: 27164
.. date: 9301
.. nonce: 6wmjx2
.. section: Library
In the zlib module, allow decompressing raw Deflate streams with a
predefined zdict. Based on patch by Xiang Zhang.
..
.. bpo: 24291
.. date: 9300
.. nonce: Ac6HvL
.. section: Library
Fix wsgiref.simple_server.WSGIRequestHandler to completely write data to the
client. Previously it could do partial writes and truncate data. Also,
wsgiref.handler.ServerHandler can now handle stdout doing partial writes,
but this is deprecated.
..
.. bpo: 21272
.. date: 9299
.. nonce: unScIG
.. section: Library
Use _sysconfigdata.py to initialize distutils.sysconfig.
..
.. bpo: 19611
.. date: 9298
.. nonce: MT-Qga
.. section: Library
:mod:`inspect` now reports the implicit ``.0`` parameters generated by the
compiler for comprehension and generator expression scopes as if they were
positional-only parameters called ``implicit0``. Patch by Jelle Zijlstra.
..
.. bpo: 26809
.. date: 9297
.. nonce: ya7JMb
.. section: Library
Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
..
.. bpo: 26373
.. date: 9296
.. nonce: P6qz6o
.. section: Library
subprocess.Popen.communicate now correctly ignores BrokenPipeError when the
child process dies before .communicate() is called in more/all
circumstances.
..
.. bpo: 0
.. date: 9295
.. nonce: eKchPz
.. section: Library
signal, socket, and ssl module IntEnum constant name lookups now return a
consistent name for values having multiple names. Ex: signal.Signals(6) now
refers to itself as signal.SIGALRM rather than flipping between that and
signal.SIGIOT based on the interpreter's hash randomization seed.
..
.. bpo: 27167
.. date: 9294
.. nonce: orA_j0
.. section: Library
Clarify the subprocess.CalledProcessError error message text when the child
process died due to a signal.
..
.. bpo: 25931
.. date: 9293
.. nonce: W7h6Am
.. section: Library
Don't define socketserver.Forking* names on platforms such as Windows that
do not support os.fork().
..
.. bpo: 21776
.. date: 9292
.. nonce: 04eQfa
.. section: Library
distutils.upload now correctly handles HTTPError. Initial patch by Claudiu
Popa.
..
.. bpo: 26526
.. date: 9291
.. nonce: ScewjJ
.. section: Library
Replace custom parse tree validation in the parser module with a simple DFA
validator.
..
.. bpo: 27114
.. date: 9290
.. nonce: bGCuAM
.. section: Library
Fix SSLContext._load_windows_store_certs fails with PermissionError
..
.. bpo: 18383
.. date: 9289
.. nonce: jr-b0l
.. section: Library
Avoid creating duplicate filters when using filterwarnings and simplefilter.
Based on patch by Alex Shkop.
..
.. bpo: 23026
.. date: 9288
.. nonce: V2rgYX
.. section: Library
winreg.QueryValueEx() now return an integer for REG_QWORD type.
..
.. bpo: 26741
.. date: 9287
.. nonce: fsbb42
.. section: Library
subprocess.Popen destructor now emits a ResourceWarning warning if the child
process is still running.
..
.. bpo: 27056
.. date: 9286
.. nonce: rk-BBL
.. section: Library
Optimize pickle.load() and pickle.loads(), up to 10% faster to deserialize a
lot of small objects.
..
.. bpo: 21271
.. date: 9285
.. nonce: bHIfFA
.. section: Library
New keyword only parameters in reset_mock call.
..
.. bpo: 5124
.. date: 9284
.. nonce: 4kwBvM
.. section: IDLE
Paste with text selected now replaces the selection on X11. This matches how
paste works on Windows, Mac, most modern Linux apps, and ttk widgets.
Original patch by Serhiy Storchaka.
..
.. bpo: 24750
.. date: 9283
.. nonce: wA-pc9
.. section: IDLE
Switch all scrollbars in IDLE to ttk versions. Where needed, minimal tests
are added to cover changes.
..
.. bpo: 24759
.. date: 9282
.. nonce: 76HB4w
.. section: IDLE
IDLE requires tk 8.5 and availability ttk widgets. Delete now unneeded tk
version tests and code for older versions. Add test for IDLE syntax
colorizer.
..
.. bpo: 27239
.. date: 9281
.. nonce: fToURh
.. section: IDLE
idlelib.macosx.isXyzTk functions initialize as needed.
..
.. bpo: 27262
.. date: 9280
.. nonce: t7ckly
.. section: IDLE
move Aqua unbinding code, which enable context menus, to macosx.
..
.. bpo: 24759
.. date: 9279
.. nonce: ccmySu
.. section: IDLE
Make clear in idlelib.idle_test.__init__ that the directory is a private
implementation of test.test_idle and tool for maintainers.
..
.. bpo: 27196
.. date: 9278
.. nonce: 3yp8TF
.. section: IDLE
Stop 'ThemeChanged' warnings when running IDLE tests. These persisted after
other warnings were suppressed in #20567. Apply Serhiy Storchaka's
update_idletasks solution to four test files. Record this additional advice
in idle_test/README.txt
..
.. bpo: 20567
.. date: 9277
.. nonce: hhT32b
.. section: IDLE
Revise idle_test/README.txt with advice about avoiding tk warning messages
from tests. Apply advice to several IDLE tests.
..
.. bpo: 24225
.. date: 9276
.. nonce: NxQCka
.. section: IDLE
Update idlelib/README.txt with new file names and event handlers.
..
.. bpo: 27156
.. date: 9275
.. nonce: j1N9br
.. section: IDLE
Remove obsolete code not used by IDLE.
..
.. bpo: 27117
.. date: 9274
.. nonce: YrLPf4
.. section: IDLE
Make colorizer htest and turtledemo work with dark themes. Move code for
configuring text widget colors to a new function.
..
.. bpo: 24225
.. date: 9273
.. nonce: RbyFuV
.. section: IDLE
Rename many `idlelib/*.py` and `idle_test/test_*.py` files. Edit files to
replace old names with new names when the old name referred to the module
rather than the class it contained. See the issue and IDLE section in What's
New in 3.6 for more.
..
.. bpo: 26673
.. date: 9272
.. nonce: dh0_Ij
.. section: IDLE
When tk reports font size as 0, change to size 10. Such fonts on Linux
prevented the configuration dialog from opening.
..
.. bpo: 21939
.. date: 9271
.. nonce: pWz-OK
.. section: IDLE
Add test for IDLE's percolator. Original patch by Saimadhav Heblikar.
..
.. bpo: 21676
.. date: 9270
.. nonce: hqy6Qh
.. section: IDLE
Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar.
..
.. bpo: 18410
.. date: 9269
.. nonce: DLSPZo
.. section: IDLE
Add test for IDLE's search dialog. Original patch by Westley Martínez.
..
.. bpo: 21703
.. date: 9268
.. nonce: bEU8sP
.. section: IDLE
Add test for undo delegator. Patch mostly by Saimadhav Heblikar .
..
.. bpo: 27044
.. date: 9267
.. nonce: 4y7tyM
.. section: IDLE
Add ConfigDialog.remove_var_callbacks to stop memory leaks.
..
.. bpo: 23977
.. date: 9266
.. nonce: miDjj8
.. section: IDLE
Add more asserts to test_delegator.
..
.. bpo: 16484
.. date: 9265
.. nonce: ITzcGg
.. section: Documentation
Change the default PYTHONDOCS URL to "https:", and fix the resulting links
to use lowercase. Patch by Sean Rodman, test by Kaushik Nadikuditi.
..
.. bpo: 24136
.. date: 9264
.. nonce: MUK0zK
.. section: Documentation
Document the new PEP 448 unpacking syntax of 3.5.
..
.. bpo: 22558
.. date: 9263
.. nonce: Pk02YC
.. section: Documentation
Add remaining doc links to source code for Python-coded modules. Patch by
Yoni Lavi.
..
.. bpo: 25285
.. date: 9262
.. nonce: 6CxIBo
.. section: Tests
regrtest now uses subprocesses when the -j1 command line option is used:
each test file runs in a fresh child process. Before, the -j1 option was
ignored.
..
.. bpo: 25285
.. date: 9261
.. nonce: ENYqUQ
.. section: Tests
Tools/buildbot/test.bat script now uses -j1 by default to run each test file
in fresh child process.
..
.. bpo: 27064
.. date: 9260
.. nonce: xeY1WF
.. section: Windows
The py.exe launcher now defaults to Python 3. The Windows launcher
``py.exe`` no longer prefers an installed Python 2 version over Python 3 by
default when used interactively.
..
.. bpo: 27229
.. date: 9259
.. nonce: C2NDch
.. section: Build
Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de
Gaye.
..
.. bpo: 26930
.. date: 9258
.. nonce: Sqz2O3
.. section: Build
Update OS X 10.5+ 32-bit-only installer to build and link with OpenSSL
1.0.2h.
..
.. bpo: 17500
.. date: 9257
.. nonce: QTZbRV
.. section: Windows
Remove unused and outdated icons. (See also:
https://github.com/python/pythondotorg/issues/945)
..
.. bpo: 27186
.. date: 9256
.. nonce: Ll8R-t
.. section: C API
Add the PyOS_FSPath() function (part of PEP 519).
..
.. bpo: 26282
.. date: 9255
.. nonce: Rp-R6L
.. section: C API
PyArg_ParseTupleAndKeywords() now supports positional-only parameters.
..
.. bpo: 26282
.. date: 9254
.. nonce: DRRV--
.. section: Tools/Demos
Argument Clinic now supports positional-only and keyword parameters in the
same function.

View file

@ -0,0 +1,537 @@
.. bpo: 27473
.. date: 9385
.. nonce: _nOtTA
.. release date: 2016-07-11
.. section: Core and Builtins
Fixed possible integer overflow in bytes and bytearray concatenations.
Patch by Xiang Zhang.
..
.. bpo: 23034
.. date: 9384
.. nonce: GWaUqn
.. section: Core and Builtins
The output of a special Python build with defined COUNT_ALLOCS,
SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can
be re-enabled using the "-X showalloccount" option. It now outputs to
stderr instead of stdout.
..
.. bpo: 27443
.. date: 9383
.. nonce: 87ZwZ1
.. section: Core and Builtins
__length_hint__() of bytearray iterators no longer return a negative integer
for a resized bytearray.
..
.. bpo: 27007
.. date: 9382
.. nonce: Gg8Um4
.. section: Core and Builtins
The fromhex() class methods of bytes and bytearray subclasses now return an
instance of corresponding subclass.
..
.. bpo: 26844
.. date: 9381
.. nonce: I0wdnY
.. section: Library
Fix error message for imp.find_module() to refer to 'path' instead of
'name'. Patch by Lev Maximov.
..
.. bpo: 23804
.. date: 9380
.. nonce: ipFvxc
.. section: Library
Fix SSL zero-length recv() calls to not block and not raise an error about
unclean EOF.
..
.. bpo: 27466
.. date: 9379
.. nonce: C_3a8E
.. section: Library
Change time format returned by http.cookie.time2netscape, confirming the
netscape cookie format and making it consistent with documentation.
..
.. bpo: 21708
.. date: 9378
.. nonce: RpPYiv
.. section: Library
Deprecated dbm.dumb behavior that differs from common dbm behavior: creating
a database in 'r' and 'w' modes and modifying a database in 'r' mode.
..
.. bpo: 26721
.. date: 9377
.. nonce: L37Y7r
.. section: Library
Change the socketserver.StreamRequestHandler.wfile attribute to implement
BufferedIOBase. In particular, the write() method no longer does partial
writes.
..
.. bpo: 22115
.. date: 9376
.. nonce: vG5UQW
.. section: Library
Added methods trace_add, trace_remove and trace_info in the tkinter.Variable
class. They replace old methods trace_variable, trace, trace_vdelete and
trace_vinfo that use obsolete Tcl commands and might not work in future
versions of Tcl. Fixed old tracing methods: trace_vdelete() with wrong mode
no longer break tracing, trace_vinfo() now always returns a list of pairs of
strings, tracing in the "u" mode now works.
..
.. bpo: 26243
.. date: 9375
.. nonce: dBtlhI
.. section: Library
Only the level argument to zlib.compress() is keyword argument now. The
first argument is positional-only.
..
.. bpo: 27038
.. date: 9374
.. nonce: yGMV4h
.. section: Library
Expose the DirEntry type as os.DirEntry. Code patch by Jelle Zijlstra.
..
.. bpo: 27186
.. date: 9373
.. nonce: OtorpF
.. section: Library
Update os.fspath()/PyOS_FSPath() to check the return value of __fspath__()
to be either str or bytes.
..
.. bpo: 18726
.. date: 9372
.. nonce: eIXHIl
.. section: Library
All optional parameters of the dump(), dumps(), load() and loads() functions
and JSONEncoder and JSONDecoder class constructors in the json module are
now keyword-only.
..
.. bpo: 27319
.. date: 9371
.. nonce: vDl2zm
.. section: Library
Methods selection_set(), selection_add(), selection_remove() and
selection_toggle() of ttk.TreeView now allow passing multiple items as
multiple arguments instead of passing them as a tuple. Deprecated
undocumented ability of calling the selection() method with arguments.
..
.. bpo: 27079
.. date: 9370
.. nonce: c7d0Ym
.. section: Library
Fixed curses.ascii functions isblank(), iscntrl() and ispunct().
..
.. bpo: 27294
.. date: 9369
.. nonce: 0WSp9y
.. section: Library
Numerical state in the repr for Tkinter event objects is now represented as
a combination of known flags.
..
.. bpo: 27177
.. date: 9368
.. nonce: U6jRnd
.. section: Library
Match objects in the re module now support index-like objects as group
indices. Based on patches by Jeroen Demeyer and Xiang Zhang.
..
.. bpo: 26754
.. date: 9367
.. nonce: J3n0QW
.. section: Library
Some functions (compile() etc) accepted a filename argument encoded as an
iterable of integers. Now only strings and byte-like objects are accepted.
..
.. bpo: 26536
.. date: 9366
.. nonce: DgLWm-
.. section: Library
socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes.
..
.. bpo: 27048
.. date: 9365
.. nonce: EVe-Bk
.. section: Library
Prevents distutils failing on Windows when environment variables contain
non-ASCII characters
..
.. bpo: 27330
.. date: 9364
.. nonce: GJaFCV
.. section: Library
Fixed possible leaks in the ctypes module.
..
.. bpo: 27238
.. date: 9363
.. nonce: Q6v6Qv
.. section: Library
Got rid of bare excepts in the turtle module. Original patch by Jelle
Zijlstra.
..
.. bpo: 27122
.. date: 9362
.. nonce: 06t7zN
.. section: Library
When an exception is raised within the context being managed by a
contextlib.ExitStack() and one of the exit stack generators catches and
raises it in a chain, do not re-raise the original exception when exiting,
let the new chained one through. This avoids the PEP 479 bug described in
issue25782.
..
.. bpo: 27278
.. date: 9361
.. nonce: y_HkGw
.. original section: Library
.. section: Security
Fix os.urandom() implementation using getrandom() on Linux. Truncate size
to INT_MAX and loop until we collected enough random bytes, instead of
casting a directly Py_ssize_t to int.
..
.. bpo: 16864
.. date: 9360
.. nonce: W7tJDa
.. section: Library
sqlite3.Cursor.lastrowid now supports REPLACE statement. Initial patch by
Alex LordThorsen.
..
.. bpo: 26386
.. date: 9359
.. nonce: 9L3Ut4
.. section: Library
Fixed ttk.TreeView selection operations with item id's containing spaces.
..
.. bpo: 8637
.. date: 9358
.. nonce: lHiUSA
.. section: Library
Honor a pager set by the env var MANPAGER (in preference to one set by the
env var PAGER).
..
.. bpo: 22636
.. date: 9357
.. nonce: 3fQW_g
.. original section: Library
.. section: Security
Avoid shell injection problems with ctypes.util.find_library().
..
.. bpo: 16182
.. date: 9356
.. nonce: RgFXyr
.. section: Library
Fix various functions in the "readline" module to use the locale encoding,
and fix get_begidx() and get_endidx() to return code point indexes.
..
.. bpo: 27392
.. date: 9355
.. nonce: obfni7
.. section: Library
Add loop.connect_accepted_socket(). Patch by Jim Fulton.
..
.. bpo: 27477
.. date: 9354
.. nonce: iEuL-9
.. section: IDLE
IDLE search dialogs now use ttk widgets.
..
.. bpo: 27173
.. date: 9353
.. nonce: M-fYaV
.. section: IDLE
Add 'IDLE Modern Unix' to the built-in key sets. Make the default key set
depend on the platform. Add tests for the changes to the config module.
..
.. bpo: 27452
.. date: 9352
.. nonce: dLxZ8W
.. section: IDLE
make command line "idle-test> python test_help.py" work. __file__ is
relative when python is started in the file's directory.
..
.. bpo: 27452
.. date: 9351
.. nonce: RtWnyR
.. section: IDLE
add line counter and crc to IDLE configHandler test dump.
..
.. bpo: 27380
.. date: 9350
.. nonce: Q39r9U
.. section: IDLE
IDLE: add query.py with base Query dialog and ttk widgets. Module had
subclasses SectionName, ModuleName, and HelpSource, which are used to get
information from users by configdialog and file =>Load Module. Each subclass
has itw own validity checks. Using ModuleName allows users to edit bad
module names instead of starting over. Add tests and delete the two files
combined into the new one.
..
.. bpo: 27372
.. date: 9349
.. nonce: k3Wj2V
.. section: IDLE
Test_idle no longer changes the locale.
..
.. bpo: 27365
.. date: 9348
.. nonce: y7ys_A
.. section: IDLE
Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
..
.. bpo: 27245
.. date: 9347
.. nonce: u9aKO1
.. section: IDLE
IDLE: Cleanly delete custom themes and key bindings. Previously, when IDLE
was started from a console or by import, a cascade of warnings was emitted.
Patch by Serhiy Storchaka.
..
.. bpo: 24137
.. date: 9346
.. nonce: v8o-IT
.. section: IDLE
Run IDLE, test_idle, and htest with tkinter default root disabled. Fix code
and tests that fail with this restriction. Fix htests to not create a
second and redundant root and mainloop.
..
.. bpo: 27310
.. date: 9345
.. nonce: KiURpC
.. section: IDLE
Fix IDLE.app failure to launch on OS X due to vestigial import.
..
.. bpo: 26754
.. date: 9344
.. nonce: Qm_N79
.. section: C API
PyUnicode_FSDecoder() accepted a filename argument encoded as an iterable of
integers. Now only strings and byte-like objects are accepted.
..
.. bpo: 28066
.. date: 9343
.. nonce: _3xImV
.. section: Build
Fix the logic that searches build directories for generated include files
when building outside the source tree.
..
.. bpo: 27442
.. date: 9342
.. nonce: S2M0cz
.. section: Build
Expose the Android API level that python was built against, in
sysconfig.get_config_vars() as 'ANDROID_API_LEVEL'.
..
.. bpo: 27434
.. date: 9341
.. nonce: 4nRZmn
.. section: Build
The interpreter that runs the cross-build, found in PATH, must now be of the
same feature version (e.g. 3.6) as the source being built.
..
.. bpo: 26930
.. date: 9340
.. nonce: 9JUeSD
.. section: Build
Update Windows builds to use OpenSSL 1.0.2h.
..
.. bpo: 23968
.. date: 9339
.. nonce: 7AuSK9
.. section: Build
Rename the platform directory from plat-$(MACHDEP) to
plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from
config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install the
platform specific _sysconfigdata module into the platform directory and
rename it to include the ABIFLAGS.
..
.. bpo: 0
.. date: 9338
.. nonce: U46i2u
.. section: Build
Don't use largefile support for GNU/Hurd.
..
.. bpo: 27332
.. date: 9337
.. nonce: OuRZp9
.. section: Tools/Demos
Fixed the type of the first argument of module-level functions generated by
Argument Clinic. Patch by Petr Viktorin.
..
.. bpo: 27418
.. date: 9336
.. nonce: W2m_8I
.. section: Tools/Demos
Fixed Tools/importbench/importbench.py.
..
.. bpo: 19489
.. date: 9335
.. nonce: jvzuO7
.. section: Documentation
Moved the search box from the sidebar to the header and footer of each page.
Patch by Ammar Askar.
..
.. bpo: 27285
.. date: 9334
.. nonce: wZur0b
.. section: Documentation
Update documentation to reflect the deprecation of ``pyvenv`` and normalize
on the term "virtual environment". Patch by Steve Piercy.
..
.. bpo: 27027
.. date: 9333
.. nonce: 5oRSGL
.. section: Tests
Added test.support.is_android that is True when this is an Android build.

View file

@ -0,0 +1,685 @@
.. bpo: 27704
.. date: 9455
.. nonce: RUxzHf
.. release date: 2016-08-15
.. section: Core and Builtins
Optimized creating bytes and bytearray from byte-like objects and iterables.
Speed up to 3 times for short objects. Original patch by Naoki Inada.
..
.. bpo: 26823
.. date: 9454
.. nonce: UWORiU
.. section: Core and Builtins
Large sections of repeated lines in tracebacks are now abbreviated as
"[Previous line repeated {count} more times]" by the builtin traceback
rendering. Patch by Emanuel Barry.
..
.. bpo: 27574
.. date: 9453
.. nonce: q73Tss
.. section: Core and Builtins
Decreased an overhead of parsing keyword arguments in functions implemented
with using Argument Clinic.
..
.. bpo: 22557
.. date: 9452
.. nonce: Hta2Rz
.. section: Core and Builtins
Now importing already imported modules is up to 2.5 times faster.
..
.. bpo: 17596
.. date: 9451
.. nonce: XgbA9V
.. section: Core and Builtins
Include <wincrypt.h> to help with Min GW building.
..
.. bpo: 17599
.. date: 9450
.. nonce: noy7o1
.. section: Core and Builtins
On Windows, rename the privately defined REPARSE_DATA_BUFFER structure to
avoid conflicting with the definition from Min GW.
..
.. bpo: 27507
.. date: 9449
.. nonce: 3pX0Be
.. section: Core and Builtins
Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang.
..
.. bpo: 27581
.. date: 9448
.. nonce: KezjNt
.. section: Core and Builtins
Don't rely on wrapping for overflow check in PySequence_Tuple(). Patch by
Xiang Zhang.
..
.. bpo: 1621
.. date: 9447
.. nonce: _FZWTr
.. section: Core and Builtins
Avoid signed integer overflow in list and tuple operations. Patch by Xiang
Zhang.
..
.. bpo: 27419
.. date: 9446
.. nonce: YaGodL
.. section: Core and Builtins
Standard __import__() no longer look up "__import__" in globals or builtins
for importing submodules or "from import". Fixed a crash if raise a warning
about unabling to resolve package from __spec__ or __package__.
..
.. bpo: 27083
.. date: 9445
.. nonce: F4ZT1C
.. section: Core and Builtins
Respect the PYTHONCASEOK environment variable under Windows.
..
.. bpo: 27514
.. date: 9444
.. nonce: NLbwPG
.. section: Core and Builtins
Make having too many statically nested blocks a SyntaxError instead of
SystemError.
..
.. bpo: 27366
.. date: 9443
.. nonce: VrInsj
.. section: Core and Builtins
Implemented PEP 487 (Simpler customization of class creation). Upon
subclassing, the __init_subclass__ classmethod is called on the base class.
Descriptors are initialized with __set_name__ after class creation.
..
.. bpo: 26027
.. date: 9442
.. nonce: nfVMKM
.. section: Library
Add PEP 519/__fspath__() support to the os and os.path modules. Includes
code from Jelle Zijlstra. (See also: bpo-27524)
..
.. bpo: 27598
.. date: 9441
.. nonce: y7PtEV
.. section: Library
Add Collections to collections.abc. Patch by Ivan Levkivskyi, docs by Neil
Girdhar.
..
.. bpo: 25958
.. date: 9440
.. nonce: X-V4U1
.. section: Library
Support "anti-registration" of special methods from various ABCs, like
__hash__, __iter__ or __len__. All these (and several more) can be set to
None in an implementation class and the behavior will be as if the method is
not defined at all. (Previously, this mechanism existed only for __hash__,
to make mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
..
.. bpo: 16764
.. date: 9439
.. nonce: cPbNjL
.. section: Library
Support keyword arguments to zlib.decompress(). Patch by Xiang Zhang.
..
.. bpo: 27736
.. date: 9438
.. nonce: 8kMhpQ
.. section: Library
Prevent segfault after interpreter re-initialization due to ref count
problem introduced in code for Issue #27038 in 3.6.0a3. Patch by Xiang
Zhang.
..
.. bpo: 25628
.. date: 9437
.. nonce: UcQnHF
.. section: Library
The *verbose* and *rename* parameters for collections.namedtuple are now
keyword-only.
..
.. bpo: 12345
.. date: 9436
.. nonce: nbAEM8
.. section: Library
Add mathematical constant tau to math and cmath. See also PEP 628.
..
.. bpo: 26823
.. date: 9435
.. nonce: HcO8tR
.. section: Library
traceback.StackSummary.format now abbreviates large sections of repeated
lines as "[Previous line repeated {count} more times]" (this change then
further affects other traceback display operations in the module). Patch by
Emanuel Barry.
..
.. bpo: 27664
.. date: 9434
.. nonce: 6DJPxw
.. section: Library
Add to concurrent.futures.thread.ThreadPoolExecutor() the ability to specify
a thread name prefix.
..
.. bpo: 27181
.. date: 9433
.. nonce: 8aw9TZ
.. section: Library
Add geometric_mean and harmonic_mean to statistics module.
..
.. bpo: 27573
.. date: 9432
.. nonce: B7XhTs
.. section: Library
code.interact now prints an message when exiting.
..
.. bpo: 6422
.. date: 9431
.. nonce: iBSc45
.. section: Library
Add autorange method to timeit.Timer objects.
..
.. bpo: 27773
.. date: 9430
.. nonce: hMSSeX
.. section: Library
Correct some memory management errors server_hostname in _ssl.wrap_socket().
..
.. bpo: 26750
.. date: 9429
.. nonce: OQn3fr
.. section: Library
unittest.mock.create_autospec() now works properly for subclasses of
property() and other data descriptors. Removes the never publicly used,
never documented unittest.mock.DescriptorTypes tuple.
..
.. bpo: 26754
.. date: 9428
.. nonce: XZqomf
.. section: Library
Undocumented support of general bytes-like objects as path in compile() and
similar functions is now deprecated.
..
.. bpo: 26800
.. date: 9427
.. nonce: QDcK8u
.. section: Library
Undocumented support of general bytes-like objects as paths in os functions
is now deprecated.
..
.. bpo: 26981
.. date: 9426
.. nonce: yhNTCf
.. section: Library
Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.
..
.. bpo: 27661
.. date: 9425
.. nonce: 3JZckO
.. section: Library
Added tzinfo keyword argument to datetime.combine.
..
.. bpo: 0
.. date: 9424
.. nonce: Ny9oPv
.. section: Library
In the curses module, raise an error if window.getstr() or window.instr() is
passed a negative value.
..
.. bpo: 27783
.. date: 9423
.. nonce: cR1jXH
.. section: Library
Fix possible usage of uninitialized memory in operator.methodcaller.
..
.. bpo: 27774
.. date: 9422
.. nonce: FDcik1
.. section: Library
Fix possible Py_DECREF on unowned object in _sre.
..
.. bpo: 27760
.. date: 9421
.. nonce: gxMjp4
.. section: Library
Fix possible integer overflow in binascii.b2a_qp.
..
.. bpo: 27758
.. date: 9420
.. nonce: 0NRV03
.. section: Library
Fix possible integer overflow in the _csv module for large record lengths.
..
.. bpo: 27568
.. date: 9419
.. nonce: OnuO9s
.. section: Library
Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the HTTP_PROXY variable
when REQUEST_METHOD environment is set, which indicates that the script is
in CGI mode.
..
.. bpo: 7063
.. date: 9418
.. nonce: nXsVKB
.. section: Library
Remove dead code from the "array" module's slice handling. Patch by Chuck.
..
.. bpo: 27656
.. date: 9417
.. nonce: joTscM
.. section: Library
Do not assume sched.h defines any SCHED_* constants.
..
.. bpo: 27130
.. date: 9416
.. nonce: SUxwXZ
.. section: Library
In the "zlib" module, fix handling of large buffers (typically 4 GiB) when
compressing and decompressing. Previously, inputs were limited to 4 GiB,
and compression and decompression operations did not properly handle results
of 4 GiB.
..
.. bpo: 24773
.. date: 9415
.. nonce: IDW05R
.. section: Library
Implemented PEP 495 (Local Time Disambiguation).
..
.. bpo: 0
.. date: 9414
.. nonce: lOkwM8
.. section: Library
Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select
module.
..
.. bpo: 27567
.. date: 9413
.. nonce: bYOgyw
.. section: Library
Expose the EPOLLRDHUP and POLLRDHUP constants in the select module.
..
.. bpo: 1621
.. date: 9412
.. nonce: 0nclmI
.. section: Library
Avoid signed int negation overflow in the "audioop" module.
..
.. bpo: 27533
.. date: 9411
.. nonce: iDmKzV
.. section: Library
Release GIL in nt._isdir
..
.. bpo: 17711
.. date: 9410
.. nonce: 47AILJ
.. section: Library
Fixed unpickling by the persistent ID with protocol 0. Original patch by
Alexandre Vassalotti.
..
.. bpo: 27522
.. date: 9409
.. nonce: 8vVz_t
.. section: Library
Avoid an unintentional reference cycle in email.feedparser.
..
.. bpo: 27512
.. date: 9408
.. nonce: FaGwup
.. section: Library
Fix a segfault when os.fspath() called an __fspath__() method that raised an
exception. Patch by Xiang Zhang.
..
.. bpo: 27714
.. date: 9407
.. nonce: bUEDsI
.. section: IDLE
text_textview and test_autocomplete now pass when re-run in the same
process. This occurs when test_idle fails when run with the -w option but
without -jn. Fix warning from test_config.
..
.. bpo: 27621
.. date: 9406
.. nonce: BcpOPU
.. section: IDLE
Put query response validation error messages in the query box itself instead
of in a separate messagebox. Redo tests to match. Add Mac OSX refinements.
Original patch by Mark Roseman.
..
.. bpo: 27620
.. date: 9405
.. nonce: TXRR6x
.. section: IDLE
Escape key now closes Query box as cancelled.
..
.. bpo: 27609
.. date: 9404
.. nonce: MbTuKa
.. section: IDLE
IDLE: tab after initial whitespace should tab, not autocomplete. This fixes
problem with writing docstrings at least twice indented.
..
.. bpo: 27609
.. date: 9403
.. nonce: OBYgv_
.. section: IDLE
Explicitly return None when there are also non-None returns. In a few cases,
reverse a condition and eliminate a return.
..
.. bpo: 25507
.. date: 9402
.. nonce: lxf68d
.. section: IDLE
IDLE no longer runs buggy code because of its tkinter imports. Users must
include the same imports required to run directly in Python.
..
.. bpo: 27173
.. date: 9401
.. nonce: M-fYaV
.. section: IDLE
Add 'IDLE Modern Unix' to the built-in key sets. Make the default key set
depend on the platform. Add tests for the changes to the config module.
..
.. bpo: 27452
.. date: 9400
.. nonce: RtWnyR
.. section: IDLE
add line counter and crc to IDLE configHandler test dump.
..
.. bpo: 25805
.. date: 9399
.. nonce: 9SVxXQ
.. section: Tests
Skip a test in test_pkgutil as needed that doesn't work when ``__name__ ==
__main__``. Patch by SilentGhost.
..
.. bpo: 27472
.. date: 9398
.. nonce: NS3L93
.. section: Tests
Add test.support.unix_shell as the path to the default shell.
..
.. bpo: 27369
.. date: 9397
.. nonce: LG7U2D
.. section: Tests
In test_pyexpat, avoid testing an error message detail that changed in Expat
2.2.0.
..
.. bpo: 27594
.. date: 9396
.. nonce: w3F57B
.. section: Tests
Prevent assertion error when running test_ast with coverage enabled: ensure
code object has a valid first line number. Patch suggested by Ivan
Levkivskyi.
..
.. bpo: 27647
.. date: 9395
.. nonce: -1HUR6
.. section: Windows
Update bundled Tcl/Tk to 8.6.6.
..
.. bpo: 27610
.. date: 9394
.. nonce: O0o0mB
.. section: Windows
Adds PEP 514 metadata to Windows installer
..
.. bpo: 27469
.. date: 9393
.. nonce: 0GwDkX
.. section: Windows
Adds a shell extension to the launcher so that drag and drop works
correctly.
..
.. bpo: 27309
.. date: 9392
.. nonce: chiOo6
.. section: Windows
Enables proper Windows styles in python[w].exe manifest.
..
.. bpo: 27713
.. date: 9391
.. nonce: _3DgXG
.. section: Build
Suppress spurious build warnings when updating importlib's bootstrap files.
Patch by Xiang Zhang
..
.. bpo: 25825
.. date: 9390
.. nonce: MLbdVU
.. section: Build
Correct the references to Modules/python.exp, which is required on AIX. The
references were accidentally changed in 3.5.0a1.
..
.. bpo: 27453
.. date: 9389
.. nonce: Pb5DBi
.. section: Build
CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen.
..
.. bpo: 27641
.. date: 9388
.. nonce: eGzgCk
.. section: Build
The configure script now inserts comments into the makefile to prevent the
pgen and _freeze_importlib executables from being cross-compiled.
..
.. bpo: 26662
.. date: 9387
.. nonce: XkwRxM
.. section: Build
Set PYTHON_FOR_GEN in configure as the Python program to be used for file
generation during the build.
..
.. bpo: 10910
.. date: 9386
.. nonce: ZdRayb
.. section: Build
Avoid C++ compilation errors on FreeBSD and OS X. Also update FreedBSD
version checks for the original ctype UTF-8 workaround.

1608
third_party/python/Misc/NEWS.d/3.6.0b1.rst vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,840 @@
.. bpo: 28183
.. date: 9707
.. nonce: MJZeNd
.. release date: 2016-10-10
.. section: Core and Builtins
Optimize and cleanup dict iteration.
..
.. bpo: 26081
.. date: 9706
.. nonce: _x5vjl
.. section: Core and Builtins
Added C implementation of asyncio.Future. Original patch by Yury Selivanov.
..
.. bpo: 28379
.. date: 9705
.. nonce: DuXlco
.. section: Core and Builtins
Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang
Zhang.
..
.. bpo: 28376
.. date: 9704
.. nonce: oPD-5D
.. section: Core and Builtins
The type of long range iterator is now registered as Iterator. Patch by Oren
Milman.
..
.. bpo: 28376
.. date: 9703
.. nonce: YEy-uG
.. section: Core and Builtins
Creating instances of range_iterator by calling range_iterator type now is
deprecated. Patch by Oren Milman.
..
.. bpo: 28376
.. date: 9702
.. nonce: fLeHM2
.. section: Core and Builtins
The constructor of range_iterator now checks that step is not 0. Patch by
Oren Milman.
..
.. bpo: 26906
.. date: 9701
.. nonce: YBjcwI
.. section: Core and Builtins
Resolving special methods of uninitialized type now causes implicit
initialization of the type instead of a fail.
..
.. bpo: 18287
.. date: 9700
.. nonce: k6jffS
.. section: Core and Builtins
PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas
Koep.
..
.. bpo: 24098
.. date: 9699
.. nonce: XqlP_1
.. section: Core and Builtins
Fixed possible crash when AST is changed in process of compiling it.
..
.. bpo: 28201
.. date: 9698
.. nonce: GWUxAy
.. section: Core and Builtins
Dict reduces possibility of 2nd conflict in hash table when hashes have same
lower bits.
..
.. bpo: 28350
.. date: 9697
.. nonce: 8M5Eg9
.. section: Core and Builtins
String constants with null character no longer interned.
..
.. bpo: 26617
.. date: 9696
.. nonce: Gh5LvN
.. section: Core and Builtins
Fix crash when GC runs during weakref callbacks.
..
.. bpo: 27942
.. date: 9695
.. nonce: ZGuhns
.. section: Core and Builtins
String constants now interned recursively in tuples and frozensets.
..
.. bpo: 21578
.. date: 9694
.. nonce: GI1bhj
.. section: Core and Builtins
Fixed misleading error message when ImportError called with invalid keyword
args.
..
.. bpo: 28203
.. date: 9693
.. nonce: LRn5vp
.. section: Core and Builtins
Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
Sharma.
..
.. bpo: 28086
.. date: 9692
.. nonce: JsQPMQ
.. section: Core and Builtins
Single var-positional argument of tuple subtype was passed unscathed to the
C-defined function. Now it is converted to exact tuple.
..
.. bpo: 28214
.. date: 9691
.. nonce: zQF8Em
.. section: Core and Builtins
Now __set_name__ is looked up on the class instead of the instance.
..
.. bpo: 27955
.. date: 9690
.. nonce: HC4pZ4
.. section: Core and Builtins
Fallback on reading /dev/urandom device when the getrandom() syscall fails
with EPERM, for example when blocked by SECCOMP.
..
.. bpo: 28192
.. date: 9689
.. nonce: eR6stU
.. section: Core and Builtins
Don't import readline in isolated mode.
..
.. bpo: 0
.. date: 9688
.. nonce: 9EbOiD
.. section: Core and Builtins
Upgrade internal unicode databases to Unicode version 9.0.0.
..
.. bpo: 28131
.. date: 9687
.. nonce: owq0wW
.. section: Core and Builtins
Fix a regression in zipimport's compile_source(). zipimport should use the
same optimization level as the interpreter.
..
.. bpo: 28126
.. date: 9686
.. nonce: Qf6-uQ
.. section: Core and Builtins
Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
memcpy().
..
.. bpo: 28120
.. date: 9685
.. nonce: e5xc1i
.. section: Core and Builtins
Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.
..
.. bpo: 26182
.. date: 9684
.. nonce: jYlqTO
.. section: Core and Builtins
Raise DeprecationWarning when async and await keywords are used as
variable/attribute/class/function name.
..
.. bpo: 27998
.. date: 9683
.. nonce: CPhy4H
.. section: Library
Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun.
..
.. bpo: 28317
.. date: 9682
.. nonce: LgHleA
.. section: Library
The disassembler now decodes FORMAT_VALUE argument.
..
.. bpo: 26293
.. date: 9681
.. nonce: 2mjvwX
.. section: Library
Fixed writing ZIP files that starts not from the start of the file. Offsets
in ZIP file now are relative to the start of the archive in conforming to
the specification.
..
.. bpo: 28380
.. date: 9680
.. nonce: jKPMzH
.. section: Library
unittest.mock Mock autospec functions now properly support assert_called,
assert_not_called, and assert_called_once.
..
.. bpo: 27181
.. date: 9679
.. nonce: SQyDpC
.. section: Library
remove statistics.geometric_mean and defer until 3.7.
..
.. bpo: 28229
.. date: 9678
.. nonce: BKAxcS
.. section: Library
lzma module now supports pathlib.
..
.. bpo: 28321
.. date: 9677
.. nonce: bQ-IIX
.. section: Library
Fixed writing non-BMP characters with binary format in plistlib.
..
.. bpo: 28225
.. date: 9676
.. nonce: 6N28nu
.. section: Library
bz2 module now supports pathlib. Initial patch by Ethan Furman.
..
.. bpo: 28227
.. date: 9675
.. nonce: 7lUz8i
.. section: Library
gzip now supports pathlib. Patch by Ethan Furman.
..
.. bpo: 27358
.. date: 9674
.. nonce: t288Iv
.. section: Library
Optimized merging var-keyword arguments and improved error message when
passing a non-mapping as a var-keyword argument.
..
.. bpo: 28257
.. date: 9673
.. nonce: SVD_IH
.. section: Library
Improved error message when passing a non-iterable as a var-positional
argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
..
.. bpo: 28322
.. date: 9672
.. nonce: l9hzap
.. section: Library
Fixed possible crashes when unpickle itertools objects from incorrect pickle
data. Based on patch by John Leitch.
..
.. bpo: 28228
.. date: 9671
.. nonce: 1qBwdM
.. section: Library
imghdr now supports pathlib.
..
.. bpo: 28226
.. date: 9670
.. nonce: nMXiwU
.. section: Library
compileall now supports pathlib.
..
.. bpo: 28314
.. date: 9669
.. nonce: N7YrkN
.. section: Library
Fix function declaration (C flags) for the getiterator() method of
xml.etree.ElementTree.Element.
..
.. bpo: 28148
.. date: 9668
.. nonce: Flzndx
.. section: Library
Stop using localtime() and gmtime() in the time module.
Introduced platform independent _PyTime_localtime API that is similar to
POSIX localtime_r, but available on all platforms. Patch by Ed Schouten.
..
.. bpo: 28253
.. date: 9667
.. nonce: aLfmhe
.. section: Library
Fixed calendar functions for extreme months: 0001-01 and 9999-12.
Methods itermonthdays() and itermonthdays2() are reimplemented so that they
don't call itermonthdates() which can cause datetime.date under/overflow.
..
.. bpo: 28275
.. date: 9666
.. nonce: EhWIsz
.. section: Library
Fixed possible use after free in the decompress() methods of the
LZMADecompressor and BZ2Decompressor classes. Original patch by John Leitch.
..
.. bpo: 27897
.. date: 9665
.. nonce: I0Ppmx
.. section: Library
Fixed possible crash in sqlite3.Connection.create_collation() if pass
invalid string-like object as a name. Patch by Xiang Zhang.
..
.. bpo: 18844
.. date: 9664
.. nonce: fQsEdn
.. section: Library
random.choices() now has k as a keyword-only argument to improve the
readability of common cases and come into line with the signature used in
other languages.
..
.. bpo: 18893
.. date: 9663
.. nonce: osiX5c
.. section: Library
Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by
Madison May.
..
.. bpo: 27611
.. date: 9662
.. nonce: A_ArH_
.. section: Library
Fixed support of default root window in the tkinter.tix module. Added the
master parameter in the DisplayStyle constructor.
..
.. bpo: 27348
.. date: 9661
.. nonce: tDx7Vw
.. section: Library
In the traceback module, restore the formatting of exception messages like
"Exception: None". This fixes a regression introduced in 3.5a2.
..
.. bpo: 25651
.. date: 9660
.. nonce: 3UhyPo
.. section: Library
Allow falsy values to be used for msg parameter of subTest().
..
.. bpo: 27778
.. date: 9659
.. nonce: Yyo1aP
.. section: Library
Fix a memory leak in os.getrandom() when the getrandom() is interrupted by a
signal and a signal handler raises a Python exception.
..
.. bpo: 28200
.. date: 9658
.. nonce: 4IEbr7
.. section: Library
Fix memory leak on Windows in the os module (fix path_converter() function).
..
.. bpo: 25400
.. date: 9657
.. nonce: d9Qn0E
.. section: Library
RobotFileParser now correctly returns default values for crawl_delay and
request_rate. Initial patch by Peter Wirtz.
..
.. bpo: 27932
.. date: 9656
.. nonce: mtgl-6
.. section: Library
Prevent memory leak in win32_ver().
..
.. bpo: 0
.. date: 9655
.. nonce: iPpjqX
.. section: Library
Fix UnboundLocalError in socket._sendfile_use_sendfile.
..
.. bpo: 28075
.. date: 9654
.. nonce: aLiUs9
.. section: Library
Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch
by Eryk Sun.
..
.. bpo: 22493
.. date: 9653
.. nonce: Mv_hZf
.. section: Library
Warning message emitted by using inline flags in the middle of regular
expression now contains a (truncated) regex pattern. Patch by Tim Graham.
..
.. bpo: 25270
.. date: 9652
.. nonce: jrZruM
.. section: Library
Prevent codecs.escape_encode() from raising SystemError when an empty
bytestring is passed.
..
.. bpo: 28181
.. date: 9651
.. nonce: NGc4Yv
.. section: Library
Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
..
.. bpo: 25895
.. date: 9650
.. nonce: j92qoQ
.. section: Library
Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh
and Markus Holtermann.
..
.. bpo: 28114
.. date: 9649
.. nonce: gmFXsA
.. section: Library
Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk
Sun.
..
.. bpo: 27599
.. date: 9648
.. nonce: itvm8T
.. section: Library
Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
..
.. bpo: 27906
.. date: 9647
.. nonce: TBBXrv
.. section: Library
Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway.
..
.. bpo: 28174
.. date: 9646
.. nonce: CV1UdI
.. section: Library
Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael
Larson.
..
.. bpo: 26654
.. date: 9645
.. nonce: XtzTE9
.. section: Library
Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy.
..
.. bpo: 26909
.. date: 9644
.. nonce: ASiakT
.. section: Library
Fix slow pipes IO in asyncio. Patch by INADA Naoki.
..
.. bpo: 28176
.. date: 9643
.. nonce: sU8R6L
.. section: Library
Fix callbacks race in asyncio.SelectorLoop.sock_connect.
..
.. bpo: 27759
.. date: 9642
.. nonce: qpMDGq
.. section: Library
Fix selectors incorrectly retain invalid file descriptors. Patch by Mark
Williams.
..
.. bpo: 28368
.. date: 9641
.. nonce: fGl9y4
.. section: Library
Refuse monitoring processes if the child watcher has no loop attached. Patch
by Vincent Michel.
..
.. bpo: 28369
.. date: 9640
.. nonce: 8DTANe
.. section: Library
Raise RuntimeError when transport's FD is used with add_reader, add_writer,
etc.
..
.. bpo: 28370
.. date: 9639
.. nonce: 18jBuZ
.. section: Library
Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк.
..
.. bpo: 28371
.. date: 9638
.. nonce: U9Zqdk
.. section: Library
Deprecate passing asyncio.Handles to run_in_executor.
..
.. bpo: 28372
.. date: 9637
.. nonce: njcIPk
.. section: Library
Fix asyncio to support formatting of non-python coroutines.
..
.. bpo: 28399
.. date: 9636
.. nonce: QKIqRX
.. section: Library
Remove UNIX socket from FS before binding. Patch by Коренберг Марк.
..
.. bpo: 27972
.. date: 9635
.. nonce: ZK-GFm
.. section: Library
Prohibit Tasks to await on themselves.
..
.. bpo: 28402
.. date: 9634
.. nonce: v9zETJ
.. section: Windows
Adds signed catalog files for stdlib on Windows.
..
.. bpo: 28333
.. date: 9633
.. nonce: KnpeO4
.. section: Windows
Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun)
..
.. bpo: 28251
.. date: 9632
.. nonce: tR_AFs
.. section: Windows
Improvements to help manuals on Windows.
..
.. bpo: 28110
.. date: 9631
.. nonce: cnkP5F
.. section: Windows
launcher.msi has different product codes between 32-bit and 64-bit
..
.. bpo: 28161
.. date: 9630
.. nonce: hF91LI
.. section: Windows
Opening CON for write access fails
..
.. bpo: 28162
.. date: 9629
.. nonce: 3FHPVD
.. section: Windows
WindowsConsoleIO readall() fails if first line starts with Ctrl+Z
..
.. bpo: 28163
.. date: 9628
.. nonce: -DUgJw
.. section: Windows
WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
..
.. bpo: 28164
.. date: 9627
.. nonce: 5MfN0J
.. section: Windows
_PyIO_get_console_type fails for various paths
..
.. bpo: 28137
.. date: 9626
.. nonce: C1uvzY
.. section: Windows
Renames Windows path file to ._pth
..
.. bpo: 28138
.. date: 9625
.. nonce: pNdv64
.. section: Windows
Windows ._pth file should allow import site
..
.. bpo: 28426
.. date: 9624
.. nonce: zPwvbI
.. section: C API
Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().
..
.. bpo: 28258
.. date: 9623
.. nonce: iKtAHd
.. section: Build
Fixed build with Estonian locale (python-config and distclean targets in
Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.
..
.. bpo: 26661
.. date: 9622
.. nonce: Z_HNbs
.. section: Build
setup.py now detects system libffi with multiarch wrapper.
..
.. bpo: 15819
.. date: 9621
.. nonce: QVDr3E
.. section: Build
Remove redundant include search directory option for building outside the
source tree.
..
.. bpo: 28217
.. date: 9620
.. nonce: Y37OKV
.. section: Tests
Adds _testconsole module to test console input.

View file

@ -0,0 +1,355 @@
.. bpo: 28128
.. date: 9744
.. nonce: Lc2sFu
.. release date: 2016-10-31
.. section: Core and Builtins
Deprecation warning for invalid str and byte escape sequences now prints
better information about where the error occurs. Patch by Serhiy Storchaka
and Eric Smith.
..
.. bpo: 28509
.. date: 9743
.. nonce: _Fa4Uq
.. section: Core and Builtins
dict.update() no longer allocate unnecessary large memory.
..
.. bpo: 28426
.. date: 9742
.. nonce: E_quyK
.. section: Core and Builtins
Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
..
.. bpo: 28517
.. date: 9741
.. nonce: ExPkm9
.. section: Core and Builtins
Fixed of-by-one error in the peephole optimizer that caused keeping
unreachable code.
..
.. bpo: 28214
.. date: 9740
.. nonce: 6ECJox
.. section: Core and Builtins
Improved exception reporting for problematic __set_name__ attributes.
..
.. bpo: 23782
.. date: 9739
.. nonce: lonDzj
.. section: Core and Builtins
Fixed possible memory leak in _PyTraceback_Add() and exception loss in
PyTraceBack_Here().
..
.. bpo: 28471
.. date: 9738
.. nonce: Vd5pv7
.. section: Core and Builtins
Fix "Python memory allocator called without holding the GIL" crash in
socket.setblocking.
..
.. bpo: 27517
.. date: 9737
.. nonce: 1CYM8A
.. section: Library
LZMA compressor and decompressor no longer raise exceptions if given empty
data twice. Patch by Benjamin Fogle.
..
.. bpo: 28549
.. date: 9736
.. nonce: ShnM2y
.. section: Library
Fixed segfault in curses's addch() with ncurses6.
..
.. bpo: 28449
.. date: 9735
.. nonce: 5JK6ES
.. section: Library
tarfile.open() with mode "r" or "r:" now tries to open a tar file with
compression before trying to open it without compression. Otherwise it had
50% chance failed with ignore_zeros=True.
..
.. bpo: 23262
.. date: 9734
.. nonce: 6EVB7N
.. section: Library
The webbrowser module now supports Firefox 36+ and derived browsers. Based
on patch by Oleg Broytman.
..
.. bpo: 27939
.. date: 9733
.. nonce: mTfADV
.. section: Library
Fixed bugs in tkinter.ttk.LabeledScale and tkinter.Scale caused by
representing the scale as float value internally in Tk. tkinter.IntVar now
works if float value is set to underlying Tk variable.
..
.. bpo: 18844
.. date: 9732
.. nonce: oif1-H
.. section: Library
The various ways of specifying weights for random.choices() now produce the
same result sequences.
..
.. bpo: 28255
.. date: 9731
.. nonce: _ZH4wm
.. section: Library
calendar.TextCalendar().prmonth() no longer prints a space at the start of
new line after printing a month's calendar. Patch by Xiang Zhang.
..
.. bpo: 20491
.. date: 9730
.. nonce: ObgnQ2
.. section: Library
The textwrap.TextWrapper class now honors non-breaking spaces. Based on
patch by Kaarle Ritvanen.
..
.. bpo: 28353
.. date: 9729
.. nonce: sKGbLL
.. section: Library
os.fwalk() no longer fails on broken links.
..
.. bpo: 28430
.. date: 9728
.. nonce: 4MiEYT
.. section: Library
Fix iterator of C implemented asyncio.Future doesn't accept non-None value
is passed to it.send(val).
..
.. bpo: 27025
.. date: 9727
.. nonce: foAViS
.. section: Library
Generated names for Tkinter widgets now start by the "!" prefix for
readability.
..
.. bpo: 25464
.. date: 9726
.. nonce: HDUTCu
.. section: Library
Fixed HList.header_exists() in tkinter.tix module by addin a workaround to
Tix library bug.
..
.. bpo: 28488
.. date: 9725
.. nonce: TgO112
.. section: Library
shutil.make_archive() no longer adds entry "./" to ZIP archive.
..
.. bpo: 25953
.. date: 9724
.. nonce: EKKJAQ
.. section: Library
re.sub() now raises an error for invalid numerical group reference in
replacement template even if the pattern is not found in the string. Error
message for invalid group reference now includes the group index and the
position of the reference. Based on patch by SilentGhost.
..
.. bpo: 18219
.. date: 9723
.. nonce: 1ANQN1
.. section: Library
Optimize csv.DictWriter for large number of columns. Patch by Mariatta
Wijaya.
..
.. bpo: 28448
.. date: 9722
.. nonce: 5bduWe
.. section: Library
Fix C implemented asyncio.Future didn't work on Windows.
..
.. bpo: 28480
.. date: 9721
.. nonce: 9lHw6m
.. section: Library
Fix error building socket module when multithreading is disabled.
..
.. bpo: 24452
.. date: 9720
.. nonce: m9Kyg3
.. section: Library
Make webbrowser support Chrome on Mac OS X.
..
.. bpo: 20766
.. date: 9719
.. nonce: 4kvCzx
.. section: Library
Fix references leaked by pdb in the handling of SIGINT handlers.
..
.. bpo: 28492
.. date: 9718
.. nonce: pFRLQE
.. section: Library
Fix how StopIteration exception is raised in _asyncio.Future.
..
.. bpo: 28500
.. date: 9717
.. nonce: NINKzZ
.. section: Library
Fix asyncio to handle async gens GC from another thread.
..
.. bpo: 26923
.. date: 9716
.. nonce: 8dh3AV
.. section: Library
Fix asyncio.Gather to refuse being cancelled once all children are done.
Patch by Johannes Ebke.
..
.. bpo: 26796
.. date: 9715
.. nonce: TZyAfJ
.. section: Library
Don't configure the number of workers for default threadpool executor.
Initial patch by Hans Lawrenz.
..
.. bpo: 28544
.. date: 9714
.. nonce: KD1oFP
.. section: Library
Implement asyncio.Task in C.
..
.. bpo: 28522
.. date: 9713
.. nonce: XHMQa7
.. section: Windows
Fixes mishandled buffer reallocation in getpathp.c
..
.. bpo: 28444
.. date: 9712
.. nonce: zkc9nT
.. section: Build
Fix missing extensions modules when cross compiling.
..
.. bpo: 28208
.. date: 9711
.. nonce: DtoP1i
.. section: Build
Update Windows build and OS X installers to use SQLite 3.14.2.
..
.. bpo: 28248
.. date: 9710
.. nonce: KY_-en
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2j.
..
.. bpo: 26944
.. date: 9709
.. nonce: ChZ_BO
.. section: Tests
Fix test_posix for Android where 'id -G' is entirely wrong or missing the
effective gid.
..
.. bpo: 28409
.. date: 9708
.. nonce: Q2IlxJ
.. section: Tests
regrtest: fix the parser of command line arguments.

View file

@ -0,0 +1,327 @@
.. bpo: 28532
.. date: 9778
.. nonce: KEYJny
.. release date: 2016-11-21
.. section: Core and Builtins
Show sys.version when -V option is supplied twice.
..
.. bpo: 27100
.. date: 9777
.. nonce: poVjXq
.. section: Core and Builtins
The with-statement now checks for __enter__ before it checks for __exit__.
This gives less confusing error messages when both methods are missing.
Patch by Jonathan Ellington.
..
.. bpo: 28746
.. date: 9776
.. nonce: r5MXdB
.. section: Core and Builtins
Fix the set_inheritable() file descriptor method on platforms that do not
have the ioctl FIOCLEX and FIONCLEX commands.
..
.. bpo: 26920
.. date: 9775
.. nonce: 1URwGb
.. section: Core and Builtins
Fix not getting the locale's charset upon initializing the interpreter, on
platforms that do not have langinfo.
..
.. bpo: 28648
.. date: 9774
.. nonce: z7B52W
.. section: Core and Builtins
Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode
astral characters. Patch by Xiang Zhang.
..
.. bpo: 19398
.. date: 9773
.. nonce: RYbEGH
.. section: Core and Builtins
Extra slash no longer added to sys.path components in case of empty
compile-time PYTHONPATH components.
..
.. bpo: 28665
.. date: 9772
.. nonce: v4nx86
.. section: Core and Builtins
Improve speed of the STORE_DEREF opcode by 40%.
..
.. bpo: 28583
.. date: 9771
.. nonce: F-QAx1
.. section: Core and Builtins
PyDict_SetDefault didn't combine split table when needed. Patch by Xiang
Zhang.
..
.. bpo: 27243
.. date: 9770
.. nonce: 61E6K5
.. section: Core and Builtins
Change PendingDeprecationWarning -> DeprecationWarning. As it was agreed in
the issue, __aiter__ returning an awaitable should result in
PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6.
..
.. bpo: 26182
.. date: 9769
.. nonce: a8JXK2
.. section: Core and Builtins
Fix a refleak in code that raises DeprecationWarning.
..
.. bpo: 28721
.. date: 9768
.. nonce: BO9BUF
.. section: Core and Builtins
Fix asynchronous generators aclose() and athrow() to handle
StopAsyncIteration propagation properly.
..
.. bpo: 28752
.. date: 9767
.. nonce: Q-4oRE
.. section: Library
Restored the __reduce__() methods of datetime objects.
..
.. bpo: 28727
.. date: 9766
.. nonce: ubZP_b
.. section: Library
Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383: don't duplicate warning filters when the
warnings module is reloaded (thing usually only done in unit tests).
..
.. bpo: 20572
.. date: 9765
.. nonce: lGXaH9
.. section: Library
The subprocess.Popen.wait method's undocumented endtime parameter now raises
a DeprecationWarning.
..
.. bpo: 25659
.. date: 9764
.. nonce: lE2IlT
.. section: Library
In ctypes, prevent a crash calling the from_buffer() and from_buffer_copy()
methods on abstract classes like Array.
..
.. bpo: 19717
.. date: 9763
.. nonce: HXCAIz
.. section: Library
Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky
Kok
..
.. bpo: 28563
.. date: 9762
.. nonce: iweEiw
.. section: Library
Fixed possible DoS and arbitrary code execution when handle plural form
selections in the gettext module. The expression parser now supports exact
syntax supported by GNU gettext.
..
.. bpo: 28387
.. date: 9761
.. nonce: 1clJu7
.. section: Library
Fixed possible crash in _io.TextIOWrapper deallocator when the garbage
collector is invoked in other thread. Based on patch by Sebastian Cufre.
..
.. bpo: 28600
.. date: 9760
.. nonce: wMVrjN
.. section: Library
Optimize loop.call_soon.
..
.. bpo: 28613
.. date: 9759
.. nonce: sqUPrv
.. section: Library
Fix get_event_loop() return the current loop if called from
coroutines/callbacks.
..
.. bpo: 28634
.. date: 9758
.. nonce: YlRydz
.. section: Library
Fix asyncio.isfuture() to support unittest.Mock.
..
.. bpo: 26081
.. date: 9757
.. nonce: 2Y8-a9
.. section: Library
Fix refleak in _asyncio.Future.__iter__().throw.
..
.. bpo: 28639
.. date: 9756
.. nonce: WUPo1o
.. section: Library
Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
..
.. bpo: 28652
.. date: 9755
.. nonce: f5M8FG
.. section: Library
Make loop methods reject socket kinds they do not support.
..
.. bpo: 28653
.. date: 9754
.. nonce: S5bA9i
.. section: Library
Fix a refleak in functools.lru_cache.
..
.. bpo: 28703
.. date: 9753
.. nonce: CRLTJc
.. section: Library
Fix asyncio.iscoroutinefunction to handle Mock objects.
..
.. bpo: 28704
.. date: 9752
.. nonce: EFWBII
.. section: Library
Fix create_unix_server to support Path-like objects (PEP 519).
..
.. bpo: 28720
.. date: 9751
.. nonce: Fsz-Lf
.. section: Library
Add collections.abc.AsyncGenerator.
..
.. bpo: 28513
.. date: 9750
.. nonce: L3joAz
.. section: Documentation
Documented command-line interface of zipfile.
..
.. bpo: 28666
.. date: 9749
.. nonce: RtTk-4
.. section: Tests
Now test.support.rmtree is able to remove unwritable or unreadable
directories.
..
.. bpo: 23839
.. date: 9748
.. nonce: zsT_L9
.. section: Tests
Various caches now are cleared before running every test file.
..
.. bpo: 10656
.. date: 9747
.. nonce: pR8FFU
.. section: Build
Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael
Haubenwallner.
..
.. bpo: 26359
.. date: 9746
.. nonce: CLz6qy
.. section: Build
Rename --with-optimiations to --enable-optimizations.
..
.. bpo: 28676
.. date: 9745
.. nonce: Wxf6Ds
.. section: Build
Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth
Rees.

View file

@ -0,0 +1,122 @@
.. bpo: 23722
.. date: 9790
.. nonce: e8BH5h
.. release date: 2016-12-06
.. section: Core and Builtins
Rather than silently producing a class that doesn't support zero-argument
``super()`` in methods, failing to pass the new ``__classcell__`` namespace
entry up to ``type.__new__`` now results in a ``DeprecationWarning`` and a
class that supports zero-argument ``super()``.
..
.. bpo: 28797
.. date: 9789
.. nonce: _A0_Z5
.. section: Core and Builtins
Modifying the class __dict__ inside the __set_name__ method of a descriptor
that is used inside that class no longer prevents calling the __set_name__
method of other descriptors.
..
.. bpo: 28782
.. date: 9788
.. nonce: foJV_E
.. section: Core and Builtins
Fix a bug in the implementation ``yield from`` when checking if the next
instruction is YIELD_FROM. Regression introduced by WORDCODE (issue #26647).
..
.. bpo: 27030
.. date: 9787
.. nonce: 88FOrz
.. section: Library
Unknown escapes in re.sub() replacement template are allowed again. But
they still are deprecated and will be disabled in 3.7.
..
.. bpo: 28835
.. date: 9786
.. nonce: Fv7Dr1
.. section: Library
Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
..
.. bpo: 27172
.. date: 9785
.. nonce: mVKfLT
.. section: Library
To assist with upgrades from 2.7, the previously documented deprecation of
``inspect.getfullargspec()`` has been reversed. This decision may be
revisited again after the Python 2.7 branch is no longer officially
supported.
..
.. bpo: 26273
.. date: 9784
.. nonce: ilNIWN
.. section: Library
Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
:data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by
Omar Sandoval.
..
.. bpo: 24142
.. date: 9783
.. nonce: IrZnFs
.. section: Library
Reading a corrupt config file left configparser in an invalid state.
Original patch by Florian Höch.
..
.. bpo: 28843
.. date: 9782
.. nonce: O7M0LE
.. section: Library
Fix asyncio C Task to handle exceptions __traceback__.
..
.. bpo: 28808
.. date: 9781
.. nonce: A03X6r
.. section: C API
PyUnicode_CompareWithASCIIString() now never raises exceptions.
..
.. bpo: 23722
.. date: 9780
.. nonce: 6HX6fk
.. section: Documentation
The data model reference and the porting section in the What's New guide now
cover the additional ``__classcell__`` handling needed for custom
metaclasses to fully support PEP 487 and zero-argument ``super()``.
..
.. bpo: 28023
.. date: 9779
.. nonce: 4gzSGp
.. section: Tools/Demos
Fix python-gdb.py didn't support new dict implementation.

View file

@ -0,0 +1,45 @@
.. bpo: 28147
.. date: 9795
.. nonce: CnK_xf
.. release date: 2016-12-16
.. section: Core and Builtins
Fix a memory leak in split-table dictionaries: setattr() must not convert
combined table into split table. Patch written by INADA Naoki.
..
.. bpo: 28990
.. date: 9794
.. nonce: m8xRMJ
.. section: Core and Builtins
Fix asyncio SSL hanging if connection is closed before handshake is
completed. (Patch by HoHo-Ho)
..
.. bpo: 28770
.. date: 9793
.. nonce: N9GQsz
.. section: Tools/Demos
Fix python-gdb.py for fastcalls.
..
.. bpo: 28896
.. date: 9792
.. nonce: ymAbmH
.. section: Windows
Deprecate WindowsRegistryFinder.
..
.. bpo: 28898
.. date: 9791
.. nonce: YGUd_i
.. section: Build
Prevent gdb build errors due to HAVE_LONG_LONG redefinition.

View file

@ -0,0 +1,31 @@
.. bpo: 29723
.. date: 9895
.. nonce: M5omgP
.. release date: 2017-03-21
.. section: Core and Builtins
The ``sys.path[0]`` initialization change for bpo-29139 caused a regression
by revealing an inconsistency in how sys.path is initialized when executing
``__main__`` from a zipfile, directory, or other import location. The
interpreter now consistently avoids ever adding the import location's parent
directory to ``sys.path``, and ensures no other ``sys.path`` entries are
inadvertently modified when inserting the import location named on the
command line.
..
.. bpo: 27593
.. date: 9894
.. nonce: nk7Etn
.. section: Build
fix format of git information used in sys.version
..
.. bpo: 0
.. date: 9893
.. nonce: usKKNQ
.. section: Build
Fix incompatible comment in python.h

View file

@ -0,0 +1,7 @@
.. bpo: 38295
.. date: 2019-12-17-03-43-04
.. nonce: hgDvlB
.. release date: 2019-12-18
.. section: macOS
Prevent failure of test_relative_path in test_py_compile on macOS Catalina.

View file

@ -0,0 +1,97 @@
.. bpo: 38945
.. date: 2019-12-01-22-44-40
.. nonce: ztmNXc
.. release date: 2019-12-11
.. section: Security
Newline characters have been escaped when performing uu encoding to prevent
them from overflowing into to content section of the encoded file. This
prevents malicious or accidental modification of data during the decoding
process.
..
.. bpo: 37228
.. date: 2019-11-21-21-36-54
.. nonce: yBZnFG
.. section: Security
Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint` is no longer supported. This
is because of the behavior of ``SO_REUSEADDR`` in UDP. For more details, see
the documentation for ``loop.create_datagram_endpoint()``. (Contributed by
Kyle Stanley, Antoine Pitrou, and Yury Selivanov in :issue:`37228`.)
..
.. bpo: 38804
.. date: 2019-11-15-00-54-42
.. nonce: vjbM8V
.. section: Security
Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by Ben Caller.
..
.. bpo: 38243
.. date: 2019-09-25-13-21-09
.. nonce: 1pfz24
.. section: Security
Escape the server title of :class:`xmlrpc.server.DocXMLRPCServer` when
rendering the document page as HTML. (Contributed by Dong-hee Na in
:issue:`38243`.)
..
.. bpo: 38174
.. date: 2019-09-23-21-02-46
.. nonce: MeWuJd
.. section: Security
Update vendorized expat library version to 2.2.8, which resolves
CVE-2019-15903.
..
.. bpo: 37461
.. date: 2019-07-16-08-11-00
.. nonce: 1Ahz7O
.. section: Security
Fix an infinite loop when parsing specially crafted email headers. Patch by
Abhilash Raj.
..
.. bpo: 34155
.. date: 2019-05-04-13-33-37
.. nonce: MJll68
.. section: Security
Fix parsing of invalid email addresses with more than one ``@`` (e.g.
a@b@c.com.) to not return the part before 2nd ``@`` as valid email address.
Patch by maxking & jpic.
..
.. bpo: 38216
.. date: 2019-09-27-15-24-45
.. nonce: -7yvZR
.. section: Library
Allow the rare code that wants to send invalid http requests from the
`http.client` library a way to do so. The fixes for bpo-30458 led to
breakage for some projects that were relying on this ability to test their
own behavior in the face of bad requests.
..
.. bpo: 36564
.. date: 2019-04-08-13-00-13
.. nonce: _n67m_
.. section: Library
Fix infinite loop in email header folding logic that would be triggered when
an email policy's max_line_length is not long enough to include the required
markup and any values in the message. Patch by Paul Ganssle

View file

@ -0,0 +1,8 @@
.. bpo: 0
.. date: 2020-06-27
.. no changes: True
.. nonce: NCau2w
.. release date: 2020-06-27
.. section: Library
There were no new changes in version 3.6.11.

View file

@ -0,0 +1,72 @@
.. bpo: 39073
.. date: 2020-03-15-01-28-36
.. nonce: 6Szd3i
.. release date: 2020-06-17
.. section: Security
Disallow CR or LF in email.headerregistry.Address arguments to guard against
header injection attacks.
..
.. bpo: 38576
.. date: 2020-03-14-14-57-44
.. nonce: OowwQn
.. section: Security
Disallow control characters in hostnames in http.client, addressing
CVE-2019-18348. Such potentially malicious header injection URLs now cause a
InvalidURL to be raised.
..
.. bpo: 39503
.. date: 2020-01-30-16-15-29
.. nonce: B299Yq
.. section: Security
CVE-2020-8492: The :class:`~urllib.request.AbstractBasicAuthHandler` class
of the :mod:`urllib.request` module uses an inefficient regular expression
which can be exploited by an attacker to cause a denial of service. Fix the
regex to prevent the catastrophic backtracking. Vulnerability reported by
Ben Caller and Matt Schwager.
..
.. bpo: 39401
.. date: 2020-01-28-20-54-09
.. nonce: he7h_A
.. section: Security
Avoid unsafe load of ``api-ms-win-core-path-l1-1-0.dll`` at startup on
Windows 7.
..
.. bpo: 39510
.. date: 2020-02-04-10-27-41
.. nonce: PMIh-f
.. section: Core and Builtins
Fix segfault in ``readinto()`` method on closed BufferedReader.
..
.. bpo: 39421
.. date: 2020-01-22-15-53-37
.. nonce: O3nG7u
.. section: Core and Builtins
Fix possible crashes when operating with the functions in the :mod:`heapq`
module and custom comparison operators.
..
.. bpo: 39503
.. date: 2020-03-25-16-02-16
.. nonce: YmMbYn
.. section: Library
:class:`~urllib.request.AbstractBasicAuthHandler` of :mod:`urllib.request`
now parses all WWW-Authenticate HTTP headers and accepts multiple challenges
per header: use the realm of the first Basic challenge.

View file

@ -0,0 +1,51 @@
.. bpo: 29778
.. date: 2020-07-03-17-21-37
.. nonce: cR_fGS
.. release date: 2020-08-15
.. section: Security
Ensure :file:`python3.dll` is loaded from correct locations when Python is
embedded (CVE-2020-15523).
..
.. bpo: 41004
.. date: 2020-06-29-16-02-29
.. nonce: ovF0KZ
.. section: Security
CVE-2020-14422: The __hash__() methods of ipaddress.IPv4Interface and
ipaddress.IPv6Interface incorrectly generated constant hash values of 32 and
128 respectively. This resulted in always causing hash collisions. The fix
uses hash() to generate hash values for the tuple of (address, mask length,
network address).
..
.. bpo: 39603
.. date: 2020-02-12-14-17-39
.. nonce: Gt3RSg
.. section: Security
Prevent http header injection by rejecting control characters in
http.client.putrequest(...).
..
.. bpo: 41288
.. date: 2020-07-13-15-06-35
.. nonce: 8mn5P-
.. section: Library
Unpickling invalid NEWOBJ_EX opcode with the C implementation raises now
UnpicklingError instead of crashing.
..
.. bpo: 39017
.. date: 2020-07-12-22-16-58
.. nonce: x3Cg-9
.. section: Library
Avoid infinite loop when reading specially crafted TAR files using the
tarfile module (CVE-2019-20907).

View file

@ -0,0 +1,90 @@
.. bpo: 42967
.. date: 2021-02-14-15-59-16
.. nonce: YApqDS
.. release date: 2021-02-15
.. section: Security
Fix web cache poisoning vulnerability by defaulting the query args separator
to ``&``, and allowing the user to choose a custom separator.
..
.. bpo: 42938
.. date: 2021-01-18-09-27-31
.. nonce: 4Zn4Mp
.. section: Security
Avoid static buffers when computing the repr of :class:`ctypes.c_double` and
:class:`ctypes.c_longdouble` values.
..
.. bpo: 42103
.. date: 2020-10-23-19-19-30
.. nonce: cILT66
.. section: Security
Prevented potential DoS attack via CPU and RAM exhaustion when processing
malformed Apple Property List files in binary format.
..
.. bpo: 42051
.. date: 2020-10-19-10-56-27
.. nonce: EU_B7u
.. section: Security
The :mod:`plistlib` module no longer accepts entity declarations in XML
plist files to avoid XML vulnerabilities. This should not affect users as
entity declarations are not used in regular plist files.
..
.. bpo: 40791
.. date: 2020-05-28-06-06-47
.. nonce: QGZClX
.. section: Security
Add ``volatile`` to the accumulator variable in ``hmac.compare_digest``,
making constant-time-defeating optimizations less likely.
..
.. bpo: 35560
.. date: 2018-12-22-22-19-51
.. nonce: 9vMWSP
.. section: Core and Builtins
Fix an assertion error in :func:`format` in debug build for floating point
formatting with "n" format, zero padding and small width. Release build is
not impacted. Patch by Karthikeyan Singaravelan.
..
.. bpo: 42103
.. date: 2020-10-23-19-20-14
.. nonce: C5obK2
.. section: Library
:exc:`~plistlib.InvalidFileException` and :exc:`RecursionError` are now the
only errors caused by loading malformed binary Plist file (previously
ValueError and TypeError could be raised in some specific cases).
..
.. bpo: 42794
.. date: 2021-01-01-08-52-36
.. nonce: -7-XGz
.. section: Tests
Update test_nntplib to use offical group name of news.aioe.org for testing.
Patch by Dong-hee Na.
..
.. bpo: 41944
.. date: 2020-10-05-17-43-46
.. nonce: rf1dYb
.. section: Tests
Tests for CJK codecs no longer call ``eval()`` on content received via HTTP.

View file

@ -0,0 +1,64 @@
.. bpo: 44022
.. date: 2021-05-05-17-37-04
.. nonce: bS3XJ9
.. release date: 2021-06-28
.. section: Security
:mod:`http.client` now avoids infinitely reading potential HTTP headers after
a ``100 Continue`` status response from the server.
..
.. bpo: 43882
.. date: 2021-04-25-07-46-37
.. nonce: Jpwx85
.. section: Security
The presence of newline or tab characters in parts of a URL could allow some
forms of attacks.
Following the controlling specification for URLs defined by WHATWG
:func:`urllib.parse` now removes ASCII newlines and tabs from URLs,
preventing such attacks.
..
.. bpo: 42988
.. date: 2021-03-24-14-16-56
.. nonce: P2aNco
.. section: Security
CVE-2021-3426: Remove the ``getfile`` feature of the :mod:`pydoc` module
which could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python modules can
contain sensitive data like passwords. Vulnerability reported by David
Schwörer.
..
.. bpo: 43285
.. date: 2021-03-13-03-48-14
.. nonce: g-Hah3
.. section: Security
:mod:`ftplib` no longer trusts the IP address value returned from the server
in response to the PASV command by default. This prevents a malicious FTP
server from using the response to probe IPv4 address and port combinations
on the client network.
Code that requires the former vulnerable behavior may set a
``trust_server_pasv_ipv4_address`` attribute on their :class:`ftplib.FTP`
instances to ``True`` to re-enable it.
..
.. bpo: 43075
.. date: 2021-01-31-05-28-14
.. nonce: DoAXqO
.. section: Security
Fix Regular Expression Denial of Service (ReDoS) vulnerability in
:class:`urllib.request.AbstractBasicAuthHandler`. The ReDoS-vulnerable
regex has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on the
client side and needs remote attackers to control the HTTP server.

View file

@ -0,0 +1,940 @@
.. bpo: 28893
.. date: 9892
.. nonce: WTKnpj
.. release date: 2017-03-04
.. section: Core and Builtins
Set correct __cause__ for errors about invalid awaitables returned from
__aiter__ and __anext__.
..
.. bpo: 29683
.. date: 9891
.. nonce: G5iS-P
.. section: Core and Builtins
Fixes to memory allocation in _PyCode_SetExtra. Patch by Brian Coleman.
..
.. bpo: 29684
.. date: 9890
.. nonce: wTgEoh
.. section: Core and Builtins
Fix minor regression of PyEval_CallObjectWithKeywords. It should raise
TypeError when kwargs is not a dict. But it might cause segv when args=NULL
and kwargs is not a dict.
..
.. bpo: 28598
.. date: 9889
.. nonce: QxbzQn
.. section: Core and Builtins
Support __rmod__ for subclasses of str being called before str.__mod__.
Patch by Martijn Pieters.
..
.. bpo: 29607
.. date: 9888
.. nonce: 7NvBA1
.. section: Core and Builtins
Fix stack_effect computation for CALL_FUNCTION_EX. Patch by Matthieu
Dartiailh.
..
.. bpo: 29602
.. date: 9887
.. nonce: qyyskC
.. section: Core and Builtins
Fix incorrect handling of signed zeros in complex constructor for complex
subclasses and for inputs having a __complex__ method. Patch by Serhiy
Storchaka.
..
.. bpo: 29347
.. date: 9886
.. nonce: 1RPPGN
.. section: Core and Builtins
Fixed possibly dereferencing undefined pointers when creating weakref
objects.
..
.. bpo: 29438
.. date: 9885
.. nonce: IKxD6I
.. section: Core and Builtins
Fixed use-after-free problem in key sharing dict.
..
.. bpo: 29319
.. date: 9884
.. nonce: KLDUZf
.. section: Core and Builtins
Prevent RunMainFromImporter overwriting sys.path[0].
..
.. bpo: 29337
.. date: 9883
.. nonce: bjX8AE
.. section: Core and Builtins
Fixed possible BytesWarning when compare the code objects. Warnings could be
emitted at compile time.
..
.. bpo: 29327
.. date: 9882
.. nonce: XXQarW
.. section: Core and Builtins
Fixed a crash when pass the iterable keyword argument to sorted().
..
.. bpo: 29034
.. date: 9881
.. nonce: 7-uEDT
.. section: Core and Builtins
Fix memory leak and use-after-free in os module (path_converter).
..
.. bpo: 29159
.. date: 9880
.. nonce: gEn_kP
.. section: Core and Builtins
Fix regression in bytes(x) when x.__index__() raises Exception.
..
.. bpo: 28932
.. date: 9879
.. nonce: QnLx8A
.. section: Core and Builtins
Do not include <sys/random.h> if it does not exist.
..
.. bpo: 25677
.. date: 9878
.. nonce: RWhZrb
.. section: Core and Builtins
Correct the positioning of the syntax error caret for indented blocks.
Based on patch by Michael Layzell.
..
.. bpo: 29000
.. date: 9877
.. nonce: K6wQ-3
.. section: Core and Builtins
Fixed bytes formatting of octals with zero padding in alternate form.
..
.. bpo: 26919
.. date: 9876
.. nonce: Cm7MSa
.. section: Core and Builtins
On Android, operating system data is now always encoded/decoded to/from
UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.
..
.. bpo: 28991
.. date: 9875
.. nonce: lGA0FK
.. section: Core and Builtins
functools.lru_cache() was susceptible to an obscure reentrancy bug
triggerable by a monkey-patched len() function.
..
.. bpo: 28739
.. date: 9874
.. nonce: w1fvhk
.. section: Core and Builtins
f-string expressions are no longer accepted as docstrings and by
ast.literal_eval() even if they do not include expressions.
..
.. bpo: 28512
.. date: 9873
.. nonce: i-pv6d
.. section: Core and Builtins
Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
..
.. bpo: 28918
.. date: 9872
.. nonce: SFVuPz
.. section: Core and Builtins
Fix the cross compilation of xxlimited when Python has been built with
Py_DEBUG defined.
..
.. bpo: 28731
.. date: 9871
.. nonce: oNF59u
.. section: Core and Builtins
Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of
dict literal with constant keys up to 30%.
..
.. bpo: 29169
.. date: 9870
.. nonce: 8ypApm
.. section: Library
Update zlib to 1.2.11.
..
.. bpo: 29623
.. date: 9869
.. nonce: D3-NP2
.. section: Library
Allow use of path-like object as a single argument in ConfigParser.read().
Patch by David Ellis.
..
.. bpo: 28963
.. date: 9868
.. nonce: tPl8dq
.. section: Library
Fix out of bound iteration in asyncio.Future.remove_done_callback
implemented in C.
..
.. bpo: 29704
.. date: 9867
.. nonce: r-kWqv
.. section: Library
asyncio.subprocess.SubprocessStreamProtocol no longer closes before all
pipes are closed.
..
.. bpo: 29271
.. date: 9866
.. nonce: y8Vj2v
.. section: Library
Fix Task.current_task and Task.all_tasks implemented in C to accept None
argument as their pure Python implementation.
..
.. bpo: 29703
.. date: 9865
.. nonce: ZdsPCR
.. section: Library
Fix asyncio to support instantiation of new event loops in child processes.
..
.. bpo: 29376
.. date: 9864
.. nonce: rrJhJy
.. section: Library
Fix assertion error in threading._DummyThread.is_alive().
..
.. bpo: 28624
.. date: 9863
.. nonce: 43TJib
.. section: Library
Add a test that checks that cwd parameter of Popen() accepts PathLike
objects. Patch by Sayan Chowdhury.
..
.. bpo: 28518
.. date: 9862
.. nonce: o-Q2Nw
.. section: Library
Start a transaction implicitly before a DML statement. Patch by Aviv
Palivoda.
..
.. bpo: 29532
.. date: 9861
.. nonce: YCwVQn
.. section: Library
Altering a kwarg dictionary passed to functools.partial() no longer affects
a partial object after creation.
..
.. bpo: 29110
.. date: 9860
.. nonce: wmE-_T
.. section: Library
Fix file object leak in aifc.open() when file is given as a filesystem path
and is not in valid AIFF format. Patch by Anthony Zhang.
..
.. bpo: 28556
.. date: 9859
.. nonce: p6967e
.. section: Library
Various updates to typing module: typing.Counter, typing.ChainMap, improved
ABC caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi, Manuel
Krebber, and Łukasz Langa.
..
.. bpo: 29100
.. date: 9858
.. nonce: LAAERS
.. section: Library
Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check
minimum and maximum years.
..
.. bpo: 29519
.. date: 9857
.. nonce: oGGgZ4
.. section: Library
Fix weakref spewing exceptions during interpreter shutdown when used with a
rare combination of multiprocessing and custom codecs.
..
.. bpo: 29416
.. date: 9856
.. nonce: KJGyI_
.. section: Library
Prevent infinite loop in pathlib.Path.mkdir
..
.. bpo: 29444
.. date: 9855
.. nonce: cEwgmk
.. section: Library
Fixed out-of-bounds buffer access in the group() method of the match object.
Based on patch by WGH.
..
.. bpo: 29335
.. date: 9854
.. nonce: _KC7IK
.. section: Library
Fix subprocess.Popen.wait() when the child process has exited to a stopped
instead of terminated state (ex: when under ptrace).
..
.. bpo: 29290
.. date: 9853
.. nonce: XBqptF
.. section: Library
Fix a regression in argparse that help messages would wrap at non-breaking
spaces.
..
.. bpo: 28735
.. date: 9852
.. nonce: admHLO
.. section: Library
Fixed the comparison of mock.MagickMock with mock.ANY.
..
.. bpo: 29316
.. date: 9851
.. nonce: OeOQw5
.. section: Library
Restore the provisional status of typing module, add corresponding note to
documentation. Patch by Ivan L.
..
.. bpo: 29219
.. date: 9850
.. nonce: kxui7t
.. section: Library
Fixed infinite recursion in the repr of uninitialized ctypes.CDLL instances.
..
.. bpo: 29011
.. date: 9849
.. nonce: MI5f2R
.. section: Library
Fix an important omission by adding Deque to the typing module.
..
.. bpo: 28969
.. date: 9848
.. nonce: j3HJYO
.. section: Library
Fixed race condition in C implementation of functools.lru_cache. KeyError
could be raised when cached function with full cache was simultaneously
called from differen threads with the same uncached arguments.
..
.. bpo: 29142
.. date: 9847
.. nonce: xo6kAv
.. section: Library
In urllib.request, suffixes in no_proxy environment variable with leading
dots could match related hostnames again (e.g. .b.c matches a.b.c). Patch by
Milan Oberkirch.
..
.. bpo: 28961
.. date: 9846
.. nonce: Rt93vg
.. section: Library
Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
Patch written by Jiajun Huang.
..
.. bpo: 29203
.. date: 9845
.. nonce: kN5S6v
.. section: Library
functools.lru_cache() now respects PEP 468 and preserves the order of
keyword arguments. f(a=1, b=2) is now cached separately from f(b=2, a=1)
since both calls could potentially give different results.
..
.. bpo: 15812
.. date: 9844
.. nonce: R1U-Ec
.. section: Library
inspect.getframeinfo() now correctly shows the first line of a context.
Patch by Sam Breese.
..
.. bpo: 29094
.. date: 9843
.. nonce: 460ZQo
.. section: Library
Offsets in a ZIP file created with extern file object and modes "w" and "x"
now are relative to the start of the file.
..
.. bpo: 29085
.. date: 9842
.. nonce: bm3gkx
.. section: Library
Allow random.Random.seed() to use high quality OS randomness rather than the
pid and time.
..
.. bpo: 29061
.. date: 9841
.. nonce: YKq0Ba
.. section: Library
Fixed bug in secrets.randbelow() which would hang when given a negative
input. Patch by Brendan Donegan.
..
.. bpo: 29079
.. date: 9840
.. nonce: g4YLix
.. section: Library
Prevent infinite loop in pathlib.resolve() on Windows
..
.. bpo: 13051
.. date: 9839
.. nonce: YzC1Te
.. section: Library
Fixed recursion errors in large or resized curses.textpad.Textbox. Based on
patch by Tycho Andersen.
..
.. bpo: 29119
.. date: 9838
.. nonce: Ov69fr
.. section: Library
Fix weakrefs in the pure python version of collections.OrderedDict
move_to_end() method. Contributed by Andra Bogildea.
..
.. bpo: 9770
.. date: 9837
.. nonce: WJJnwP
.. section: Library
curses.ascii predicates now work correctly with negative integers.
..
.. bpo: 28427
.. date: 9836
.. nonce: vUd-va
.. section: Library
old keys should not remove new values from WeakValueDictionary when
collecting from another thread.
..
.. bpo: 28923
.. date: 9835
.. nonce: naVULD
.. section: Library
Remove editor artifacts from Tix.py.
..
.. bpo: 29055
.. date: 9834
.. nonce: -r_9jc
.. section: Library
Neaten-up empty population error on random.choice() by suppressing the
upstream exception.
..
.. bpo: 28871
.. date: 9833
.. nonce: cPMXCJ
.. section: Library
Fixed a crash when deallocate deep ElementTree.
..
.. bpo: 19542
.. date: 9832
.. nonce: 5tCkaK
.. section: Library
Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
when a GC collection happens in another thread.
..
.. bpo: 20191
.. date: 9831
.. nonce: Q7uZCS
.. section: Library
Fixed a crash in resource.prlimit() when passing a sequence that doesn't own
its elements as limits.
..
.. bpo: 28779
.. date: 9830
.. nonce: t-mjED
.. section: Library
multiprocessing.set_forkserver_preload() would crash the forkserver process
if a preloaded module instantiated some multiprocessing objects such as
locks.
..
.. bpo: 28847
.. date: 9829
.. nonce: J7d3nG
.. section: Library
dbm.dumb now supports reading read-only files and no longer writes the index
file when it is not changed.
..
.. bpo: 26937
.. date: 9828
.. nonce: c9kgiA
.. section: Library
The chown() method of the tarfile.TarFile class does not fail now when the
grp module cannot be imported, as for example on Android platforms.
..
.. bpo: 29071
.. date: 9827
.. nonce: FCOpJn
.. section: IDLE
IDLE colors f-string prefixes (but not invalid ur prefixes).
..
.. bpo: 28572
.. date: 9826
.. nonce: 1_duKY
.. section: IDLE
Add 10% to coverage of IDLE's test_configdialog. Update and augment
description of the configuration system.
..
.. bpo: 29579
.. date: 9825
.. nonce: Ih-G2Q
.. section: Windows
Removes readme.txt from the installer
..
.. bpo: 29326
.. date: 9824
.. nonce: 4qDQzs
.. section: Windows
Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
..
.. bpo: 28164
.. date: 9823
.. nonce: h4CFX8
.. section: Windows
Correctly handle special console filenames (patch by Eryk Sun)
..
.. bpo: 29409
.. date: 9822
.. nonce: bhvrJ2
.. section: Windows
Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
..
.. bpo: 29392
.. date: 9821
.. nonce: OtqS5t
.. section: Windows
Prevent crash when passing invalid arguments into msvcrt module.
..
.. bpo: 25778
.. date: 9820
.. nonce: 8uKJ82
.. section: Windows
winreg does not truncate string correctly (Patch by Eryk Sun)
..
.. bpo: 28896
.. date: 9819
.. nonce: VMi9w0
.. section: Windows
Deprecate WindowsRegistryFinder and disable it by default.
..
.. bpo: 27867
.. date: 9818
.. nonce: UC5ohc
.. section: C API
Function PySlice_GetIndicesEx() is replaced with a macro if Py_LIMITED_API
is not set or set to the value between 0x03050400 and 0x03060000 (not
including) or 0x03060100 or higher.
..
.. bpo: 29083
.. date: 9817
.. nonce: tGTjr_
.. section: C API
Fixed the declaration of some public API functions. PyArg_VaParse() and
PyArg_VaParseTupleAndKeywords() were not available in limited API.
PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and Py_BuildValue()
were not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is
defined.
..
.. bpo: 29058
.. date: 9816
.. nonce: 0wNVP8
.. section: C API
All stable API extensions added after Python 3.2 are now available only when
Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python
version supporting this API.
..
.. bpo: 28929
.. date: 9815
.. nonce: Md7kb0
.. section: Documentation
Link the documentation to its source file on GitHub.
..
.. bpo: 25008
.. date: 9814
.. nonce: CeIzyU
.. section: Documentation
Document smtpd.py as effectively deprecated and add a pointer to aiosmtpd, a
third-party asyncio-based replacement.
..
.. bpo: 26355
.. date: 9813
.. nonce: SDq_8Y
.. section: Documentation
Add canonical header link on each page to corresponding major version of the
documentation. Patch by Matthias Bussonnier.
..
.. bpo: 29349
.. date: 9812
.. nonce: PjSo-t
.. section: Documentation
Fix Python 2 syntax in code for building the documentation.
..
.. bpo: 28087
.. date: 9811
.. nonce: m8dc4R
.. section: Tests
Skip test_asyncore and test_eintr poll failures on macOS. Skip some tests of
select.poll when running on macOS due to unresolved issues with the
underlying system poll function on some macOS versions.
..
.. bpo: 29571
.. date: 9810
.. nonce: r6Dixr
.. section: Tests
to match the behaviour of the ``re.LOCALE`` flag, test_re.test_locale_flag
now uses ``locale.getpreferredencoding(False)`` to determine the candidate
encoding for the test regex (allowing it to correctly skip the test when the
default locale encoding is a multi-byte encoding)
..
.. bpo: 28950
.. date: 9809
.. nonce: 1W8Glo
.. section: Tests
Disallow -j0 to be combined with -T/-l in regrtest command line arguments.
..
.. bpo: 28683
.. date: 9808
.. nonce: Fp-Hdq
.. section: Tests
Fix the tests that bind() a unix socket and raise PermissionError on Android
for a non-root user.
..
.. bpo: 26939
.. date: 9807
.. nonce: 7j_W5R
.. section: Tests
Add the support.setswitchinterval() function to fix test_functools hanging
on the Android armv7 qemu emulator.
..
.. bpo: 27593
.. date: 9806
.. nonce: v87xEr
.. section: Build
sys.version and the platform module python_build(), python_branch(), and
python_revision() functions now use git information rather than hg when
building from a repo.
..
.. bpo: 29572
.. date: 9805
.. nonce: iZ1XKK
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2k.
..
.. bpo: 26851
.. date: 9804
.. nonce: R5243g
.. section: Build
Set Android compilation and link flags.
..
.. bpo: 28768
.. date: 9803
.. nonce: b9_a6E
.. section: Build
Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
..
.. bpo: 29080
.. date: 9802
.. nonce: b3qLQT
.. section: Build
Removes hard dependency on hg.exe from PCBuild/build.bat
..
.. bpo: 23903
.. date: 9801
.. nonce: JXJ889
.. section: Build
Added missed names to PC/python3.def.
..
.. bpo: 28762
.. date: 9800
.. nonce: Ru0YN_
.. section: Build
lockf() is available on Android API level 24, but the F_LOCK macro is not
defined in android-ndk-r13.
..
.. bpo: 28538
.. date: 9799
.. nonce: FqtN7v
.. section: Build
Fix the compilation error that occurs because if_nameindex() is available on
Android API level 24, but the if_nameindex structure is not defined.
..
.. bpo: 20211
.. date: 9798
.. nonce: gpNptI
.. section: Build
Do not add the directory for installing C header files and the directory for
installing object code libraries to the cross compilation search paths.
Original patch by Thomas Petazzoni.
..
.. bpo: 28849
.. date: 9797
.. nonce: AzRRF5
.. section: Build
Do not define sys.implementation._multiarch on Android.

View file

@ -0,0 +1,7 @@
.. bpo: 0
.. date: 9993
.. no changes: True
.. nonce: F9ENBV
.. release date: 2017-07-17
No changes since release candidate 2

View file

@ -0,0 +1,942 @@
.. bpo: 30682
.. date: 9989
.. nonce: zZm88E
.. release date: 2017-06-17
.. section: Core and Builtins
Removed a too-strict assertion that failed for certain f-strings, such as
eval("f'\\\n'") and eval("f'\\\r'").
..
.. bpo: 30604
.. date: 9988
.. nonce: W47hPY
.. section: Core and Builtins
Move co_extra_freefuncs to not be per-thread to avoid crashes
..
.. bpo: 29104
.. date: 9987
.. nonce: u26yCx
.. section: Core and Builtins
Fixed parsing backslashes in f-strings.
..
.. bpo: 27945
.. date: 9986
.. nonce: p29r3O
.. section: Core and Builtins
Fixed various segfaults with dict when input collections are mutated during
searching, inserting or comparing. Based on patches by Duane Griffin and
Tim Mitchell.
..
.. bpo: 25794
.. date: 9985
.. nonce: xfPwqm
.. section: Core and Builtins
Fixed type.__setattr__() and type.__delattr__() for non-interned attribute
names. Based on patch by Eryk Sun.
..
.. bpo: 30039
.. date: 9984
.. nonce: e0u4DG
.. section: Core and Builtins
If a KeyboardInterrupt happens when the interpreter is in the middle of
resuming a chain of nested 'yield from' or 'await' calls, it's now correctly
delivered to the innermost frame.
..
.. bpo: 12414
.. date: 9983
.. nonce: T9ix8O
.. section: Core and Builtins
sys.getsizeof() on a code object now returns the sizes which includes the
code struct and sizes of objects which it references. Patch by Dong-hee Na.
..
.. bpo: 29949
.. date: 9982
.. nonce: DevGPS
.. section: Core and Builtins
Fix memory usage regression of set and frozenset object.
..
.. bpo: 29935
.. date: 9981
.. nonce: vgjdJo
.. section: Core and Builtins
Fixed error messages in the index() method of tuple, list and deque when
pass indices of wrong type.
..
.. bpo: 29859
.. date: 9980
.. nonce: Z1MLcA
.. section: Core and Builtins
Show correct error messages when any of the pthread_* calls in
thread_pthread.h fails.
..
.. bpo: 28876
.. date: 9979
.. nonce: cU-sGT
.. section: Core and Builtins
``bool(range)`` works even if ``len(range)`` raises :exc:`OverflowError`.
..
.. bpo: 29600
.. date: 9978
.. nonce: 77wQ6C
.. section: Core and Builtins
Fix wrapping coroutine return values in StopIteration.
..
.. bpo: 28856
.. date: 9977
.. nonce: AFRmo4
.. section: Core and Builtins
Fix an oversight that %b format for bytes should support objects follow the
buffer protocol.
..
.. bpo: 29714
.. date: 9976
.. nonce: z-BhVd
.. section: Core and Builtins
Fix a regression that bytes format may fail when containing zero bytes
inside.
..
.. bpo: 29478
.. date: 9975
.. nonce: rTQ-qy
.. section: Core and Builtins
If max_line_length=None is specified while using the Compat32 policy, it is
no longer ignored. Patch by Mircea Cosbuc.
..
.. bpo: 30616
.. date: 9974
.. nonce: I2mDTz
.. section: Library
Functional API of enum allows to create empty enums. Patched by Dong-hee Na
..
.. bpo: 30038
.. date: 9973
.. nonce: vb4DWk
.. section: Library
Fix race condition between signal delivery and wakeup file descriptor.
Patch by Nathaniel Smith.
..
.. bpo: 23894
.. date: 9972
.. nonce: k2pADV
.. section: Library
lib2to3 now recognizes ``rb'...'`` and ``f'...'`` strings.
..
.. bpo: 23890
.. date: 9971
.. nonce: GCFAAZ
.. section: Library
unittest.TestCase.assertRaises() now manually breaks a reference cycle to
not keep objects alive longer than expected.
..
.. bpo: 30149
.. date: 9970
.. nonce: hE649r
.. section: Library
inspect.signature() now supports callables with variable-argument parameters
wrapped with partialmethod. Patch by Dong-hee Na.
..
.. bpo: 30645
.. date: 9969
.. nonce: oYzbbW
.. section: Library
Fix path calculation in imp.load_package(), fixing it for cases when a
package is only shipped with bytecodes. Patch by Alexandru Ardelean.
..
.. bpo: 29931
.. date: 9968
.. nonce: tfcTwK
.. section: Library
Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay
Sundaresan.
..
.. bpo: 30605
.. date: 9967
.. nonce: XqGz1r
.. section: Library
re.compile() no longer raises a BytesWarning when compiling a bytes instance
with misplaced inline modifier. Patch by Roy Williams.
..
.. bpo: 29591
.. date: 9966
.. nonce: ExKblw
.. original section: Library
.. section: Security
Update expat copy from 2.1.1 to 2.2.0 to get fixes of CVE-2016-0718 and
CVE-2016-4472. See https://sourceforge.net/p/expat/bugs/537/ for more
information.
..
.. bpo: 24484
.. date: 9965
.. nonce: fNS32j
.. section: Library
Avoid race condition in multiprocessing cleanup (#2159)
..
.. bpo: 28994
.. date: 9964
.. nonce: 9vzun1
.. section: Library
The traceback no longer displayed for SystemExit raised in a callback
registered by atexit.
..
.. bpo: 30508
.. date: 9963
.. nonce: wNWRS2
.. section: Library
Don't log exceptions if Task/Future "cancel()" method was called.
..
.. bpo: 28556
.. date: 9962
.. nonce: mESP7G
.. section: Library
Updates to typing module: Add generic AsyncContextManager, add support for
ContextManager on all versions. Original PRs by Jelle Zijlstra and Ivan
Levkivskyi
..
.. bpo: 29870
.. date: 9961
.. nonce: p960Ih
.. section: Library
Fix ssl sockets leaks when connection is aborted in asyncio/ssl
implementation. Patch by Michaël Sghaïer.
..
.. bpo: 29743
.. date: 9960
.. nonce: en2P4s
.. section: Library
Closing transport during handshake process leaks open socket. Patch by
Nikolay Kim
..
.. bpo: 27585
.. date: 9959
.. nonce: 0Ugqqu
.. section: Library
Fix waiter cancellation in asyncio.Lock. Patch by Mathieu Sornay.
..
.. bpo: 30418
.. date: 9958
.. nonce: EwISQm
.. section: Library
On Windows, subprocess.Popen.communicate() now also ignore EINVAL on
stdin.write() if the child process is still running but closed the pipe.
..
.. bpo: 29822
.. date: 9957
.. nonce: G7dX13
.. section: Library
inspect.isabstract() now works during __init_subclass__. Patch by Nate
Soares.
..
.. bpo: 29581
.. date: 9956
.. nonce: gHCrxP
.. section: Library
ABCMeta.__new__ now accepts ``**kwargs``, allowing abstract base classes to
use keyword parameters in __init_subclass__. Patch by Nate Soares.
..
.. bpo: 30557
.. date: 9955
.. nonce: uykrLf
.. section: Library
faulthandler now correctly filters and displays exception codes on Windows
..
.. bpo: 30378
.. date: 9954
.. nonce: R_19_5
.. section: Library
Fix the problem that logging.handlers.SysLogHandler cannot handle IPv6
addresses.
..
.. bpo: 29960
.. date: 9953
.. nonce: g0wr3r
.. section: Library
Preserve generator state when _random.Random.setstate() raises an exception.
Patch by Bryan Olson.
..
.. bpo: 30414
.. date: 9952
.. nonce: jGl1Lb
.. section: Library
multiprocessing.Queue._feed background running thread do not break from main
loop on exception.
..
.. bpo: 30003
.. date: 9951
.. nonce: BOl9HE
.. section: Library
Fix handling escape characters in HZ codec. Based on patch by Ma Lin.
..
.. bpo: 30301
.. date: 9950
.. nonce: ywOkjN
.. section: Library
Fix AttributeError when using SimpleQueue.empty() under *spawn* and
*forkserver* start methods.
..
.. bpo: 30329
.. date: 9949
.. nonce: EuT36N
.. section: Library
imaplib and poplib now catch the Windows socket WSAEINVAL error (code 10022)
on shutdown(SHUT_RDWR): An invalid operation was attempted. This error
occurs sometimes on SSL connections.
..
.. bpo: 30375
.. date: 9948
.. nonce: 9c8qM7
.. section: Library
Warnings emitted when compile a regular expression now always point to the
line in the user code. Previously they could point into inners of the re
module if emitted from inside of groups or conditionals.
..
.. bpo: 30048
.. date: 9947
.. nonce: ELRx8R
.. section: Library
Fixed ``Task.cancel()`` can be ignored when the task is running coroutine
and the coroutine returned without any more ``await``.
..
.. bpo: 30266
.. date: 9946
.. nonce: YJzHAH
.. section: Library
contextlib.AbstractContextManager now supports anti-registration by setting
__enter__ = None or __exit__ = None, following the pattern introduced in
bpo-25958. Patch by Jelle Zijlstra.
..
.. bpo: 30298
.. date: 9945
.. nonce: ZN-bWo
.. section: Library
Weaken the condition of deprecation warnings for inline modifiers. Now
allowed several subsequential inline modifiers at the start of the pattern
(e.g. ``'(?i)(?s)...'``). In verbose mode whitespaces and comments now are
allowed before and between inline modifiers (e.g. ``'(?x) (?i) (?s)...'``).
..
.. bpo: 29990
.. date: 9944
.. nonce: HWV6KE
.. section: Library
Fix range checking in GB18030 decoder. Original patch by Ma Lin.
..
.. bpo: 26293
.. date: 9943
.. nonce: wig0YG
.. section: Library
Change resulted because of zipfile breakage. (See also: bpo-29094)
..
.. bpo: 30243
.. date: 9942
.. nonce: RHQt0v
.. section: Library
Removed the __init__ methods of _json's scanner and encoder. Misusing them
could cause memory leaks or crashes. Now scanner and encoder objects are
completely initialized in the __new__ methods.
..
.. bpo: 30185
.. date: 9941
.. nonce: Tiu1n8
.. section: Library
Avoid KeyboardInterrupt tracebacks in forkserver helper process when Ctrl-C
is received.
..
.. bpo: 28556
.. date: 9940
.. nonce: 51gjbP
.. section: Library
Various updates to typing module: add typing.NoReturn type, use
WrapperDescriptorType, minor bug-fixes. Original PRs by Jim
Fasarakis-Hilliard and Ivan Levkivskyi.
..
.. bpo: 30205
.. date: 9939
.. nonce: BsxO34
.. section: Library
Fix getsockname() for unbound AF_UNIX sockets on Linux.
..
.. bpo: 30070
.. date: 9938
.. nonce: XM_B41
.. section: Library
Fixed leaks and crashes in errors handling in the parser module.
..
.. bpo: 30061
.. date: 9937
.. nonce: 2w_dX9
.. section: Library
Fixed crashes in IOBase methods __next__() and readlines() when readline()
or __next__() respectively return non-sizeable object. Fixed possible other
errors caused by not checking results of PyObject_Size(), PySequence_Size(),
or PyMapping_Size().
..
.. bpo: 30017
.. date: 9936
.. nonce: cKBuhU
.. section: Library
Allowed calling the close() method of the zip entry writer object multiple
times. Writing to a closed writer now always produces a ValueError.
..
.. bpo: 30068
.. date: 9935
.. nonce: n4q47r
.. section: Library
_io._IOBase.readlines will check if it's closed first when hint is present.
..
.. bpo: 29694
.. date: 9934
.. nonce: LWKxb1
.. section: Library
Fixed race condition in pathlib mkdir with flags parents=True. Patch by
Armin Rigo.
..
.. bpo: 29692
.. date: 9933
.. nonce: oyWrAE
.. section: Library
Fixed arbitrary unchaining of RuntimeError exceptions in
contextlib.contextmanager. Patch by Siddharth Velankar.
..
.. bpo: 29998
.. date: 9932
.. nonce: poeIKD
.. section: Library
Pickling and copying ImportError now preserves name and path attributes.
..
.. bpo: 29953
.. date: 9931
.. nonce: Q1hSt-
.. section: Library
Fixed memory leaks in the replace() method of datetime and time objects when
pass out of bound fold argument.
..
.. bpo: 29942
.. date: 9930
.. nonce: CsGNuT
.. section: Library
Fix a crash in itertools.chain.from_iterable when encountering long runs of
empty iterables.
..
.. bpo: 27863
.. date: 9929
.. nonce: pPYHHI
.. section: Library
Fixed multiple crashes in ElementTree caused by race conditions and wrong
types.
..
.. bpo: 28699
.. date: 9928
.. nonce: wZztZP
.. section: Library
Fixed a bug in pools in multiprocessing.pool that raising an exception at
the very first of an iterable may swallow the exception or make the program
hang. Patch by Davin Potts and Xiang Zhang.
..
.. bpo: 25803
.. date: 9927
.. nonce: CPDR0W
.. section: Library
Avoid incorrect errors raised by Path.mkdir(exist_ok=True) when the OS gives
priority to errors such as EACCES over EEXIST.
..
.. bpo: 29861
.. date: 9926
.. nonce: t2ZoRK
.. section: Library
Release references to tasks, their arguments and their results as soon as
they are finished in multiprocessing.Pool.
..
.. bpo: 29884
.. date: 9925
.. nonce: kWXR8W
.. section: Library
faulthandler: Restore the old sigaltstack during teardown. Patch by
Christophe Zeitouny.
..
.. bpo: 25455
.. date: 9924
.. nonce: ZsahHN
.. section: Library
Fixed crashes in repr of recursive buffered file-like objects.
..
.. bpo: 29800
.. date: 9923
.. nonce: d2xASa
.. section: Library
Fix crashes in partial.__repr__ if the keys of partial.keywords are not
strings. Patch by Michael Seifert.
..
.. bpo: 29742
.. date: 9922
.. nonce: 8hqfEO
.. section: Library
get_extra_info() raises exception if get called on closed ssl transport.
Patch by Nikolay Kim.
..
.. bpo: 8256
.. date: 9921
.. nonce: jAwGQH
.. section: Library
Fixed possible failing or crashing input() if attributes "encoding" or
"errors" of sys.stdin or sys.stdout are not set or are not strings.
..
.. bpo: 28298
.. date: 9920
.. nonce: xfm84U
.. section: Library
Fix a bug that prevented array 'Q', 'L' and 'I' from accepting big intables
(objects that have __int__) as elements. Patch by Oren Milman.
..
.. bpo: 28231
.. date: 9919
.. nonce: MG1X09
.. section: Library
The zipfile module now accepts path-like objects for external paths.
..
.. bpo: 26915
.. date: 9918
.. nonce: qShJZO
.. section: Library
index() and count() methods of collections.abc.Sequence now check identity
before checking equality when do comparisons.
..
.. bpo: 29615
.. date: 9917
.. nonce: OpFKzg
.. section: Library
SimpleXMLRPCDispatcher no longer chains KeyError (or any other exception) to
exception(s) raised in the dispatched methods. Patch by Petr Motejlek.
..
.. bpo: 30177
.. date: 9916
.. nonce: JGIJNL
.. section: Library
path.resolve(strict=False) no longer cuts the path after the first element
not present in the filesystem. Patch by Antoine Pietri.
..
.. bpo: 15786
.. date: 9915
.. nonce: _XRbaR
.. section: IDLE
Fix several problems with IDLE's autocompletion box. The following should
now work: clicking on selection box items; using the scrollbar; selecting an
item by hitting Return. Hangs on MacOSX should no longer happen. Patch by
Louie Lu.
..
.. bpo: 25514
.. date: 9914
.. nonce: 882pXa
.. section: IDLE
Add doc subsubsection about IDLE failure to start. Popup no-connection
message directs users to this section.
..
.. bpo: 30642
.. date: 9913
.. nonce: 3Zujzt
.. section: IDLE
Fix reference leaks in IDLE tests. Patches by Louie Lu and Terry Jan Reedy.
..
.. bpo: 30495
.. date: 9912
.. nonce: I3i5vL
.. section: IDLE
Add docstrings for textview.py and use PEP8 names. Patches by Cheryl Sabella
and Terry Jan Reedy.
..
.. bpo: 30290
.. date: 9911
.. nonce: fZ3kod
.. section: IDLE
Help-about: use pep8 names and add tests. Increase coverage to 100%. Patches
by Louie Lu, Cheryl Sabella, and Terry Jan Reedy.
..
.. bpo: 30303
.. date: 9910
.. nonce: 2L2F-4
.. section: IDLE
Add _utest option to textview; add new tests. Increase coverage to 100%.
Patches by Louie Lu and Terry Jan Reedy.
..
.. bpo: 27867
.. date: 9909
.. nonce: B46BRE
.. section: C API
Function PySlice_GetIndicesEx() no longer replaced with a macro if
Py_LIMITED_API is not set.
..
.. bpo: 29941
.. date: 9908
.. nonce: ylh45A
.. section: Build
Add ``--with-assertions`` configure flag to explicitly enable C ``assert()``
checks. Defaults to off. ``--with-pydebug`` implies ``--with-assertions``.
..
.. bpo: 28787
.. date: 9907
.. nonce: vhH_6a
.. section: Build
Fix out-of-tree builds of Python when configured with ``--with--dtrace``.
..
.. bpo: 29243
.. date: 9906
.. nonce: WDK4hT
.. section: Build
Prevent unnecessary rebuilding of Python during ``make test``, ``make
install`` and some other make targets when configured with
``--enable-optimizations``.
..
.. bpo: 23404
.. date: 9905
.. nonce: PdYVWg
.. section: Build
Don't regenerate generated files based on file modification time anymore:
the action is now explicit. Replace ``make touch`` with ``make regen-all``.
..
.. bpo: 29643
.. date: 9904
.. nonce: 4WLIJQ
.. section: Build
Fix ``--enable-optimization`` didn't work.
..
.. bpo: 30176
.. date: 9903
.. nonce: VivmCg
.. section: Documentation
Add missing attribute related constants in curses documentation.
..
.. bpo: 30052
.. date: 9902
.. nonce: TpmpaF
.. section: Documentation
the link targets for :func:`bytes` and :func:`bytearray` are now their
respective type definitions, rather than the corresponding builtin function
entries. Use :ref:`bytes <func-bytes>` and :ref:`bytearray <func-bytearray>`
to reference the latter.
In order to ensure this and future cross-reference updates are applied
automatically, the daily documentation builds now disable the default output
caching features in Sphinx.
..
.. bpo: 26985
.. date: 9901
.. nonce: NB5_9S
.. section: Documentation
Add missing info of code object in inspect documentation.
..
.. bpo: 29367
.. date: 9900
.. nonce: 4dOKL0
.. section: Tools/Demos
python-gdb.py now supports also ``method-wrapper`` (``wrapperobject``)
objects.
..
.. bpo: 30357
.. date: 9899
.. nonce: n4CPEa
.. section: Tests
test_thread: setUp() now uses support.threading_setup() and
support.threading_cleanup() to wait until threads complete to avoid random
side effects on following tests. Initial patch written by Grzegorz Grzywacz.
..
.. bpo: 30197
.. date: 9898
.. nonce: c5wRfu
.. section: Tests
Enhanced functions swap_attr() and swap_item() in the test.support module.
They now work when delete replaced attribute or item inside the with
statement. The old value of the attribute or item (or None if it doesn't
exist) now will be assigned to the target of the "as" clause, if there is
one.
..
.. bpo: 30687
.. date: 9897
.. nonce: 8mqHnu
.. section: Windows
Locate msbuild.exe on Windows when building rather than vcvarsall.bat
..
.. bpo: 30450
.. date: 9896
.. nonce: qsaK8y
.. section: Windows
The build process on Windows no longer depends on Subversion, instead
pulling external code from GitHub via a Python script. If Python 3.6 is not
found on the system (via ``py -3.6``), NuGet is used to download a copy of
32-bit Python.

View file

@ -0,0 +1,39 @@
.. bpo: 30730
.. date: 9992
.. nonce: rJsyTH
.. original section: Library
.. release date: 2017-07-07
.. section: Security
Prevent environment variables injection in subprocess on Windows. Prevent
passing other environment variables and command arguments.
..
.. bpo: 30694
.. date: 9991
.. nonce: WkMWM_
.. original section: Library
.. section: Security
Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple security
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 already gets entropy from the OS to set the expat secret using
``XML_SetHashSalt()``.
..
.. bpo: 30500
.. date: 9990
.. nonce: 1VG7R-
.. original section: Library
.. section: Security
Fix urllib.parse.splithost() to correctly parse fragments. For example,
``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the
``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an
authentication (``login@host``).

View file

@ -0,0 +1,27 @@
.. bpo: 31641
.. date: 2017-10-03-01-05-11
.. nonce: vlQEq5
.. release date: 2017-10-03
.. section: Library
Re-allow arbitrary iterables in `concurrent.futures.as_completed()`. Fixes
regression in 3.6.3rc1.
..
.. bpo: 31662
.. date: 2017-10-03-01-06-24
.. nonce: 8l2jEz
.. section: Build
Fix typos in Windows ``uploadrelease.bat`` script. Fix Windows Doc build
issues in ``Doc/make.bat``.
..
.. bpo: 31423
.. date: 2017-10-03-01-01-52
.. nonce: uKvPYA
.. section: Build
Fix building the PDF documentation with newer versions of Sphinx.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
.. bpo: 0
.. date: 2017-12-18
.. no changes: True
.. nonce: qH8KPG
.. release date: 2017-12-18
.. section: Library
There were no new code changes in version 3.6.4 since v3.6.4rc1.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,16 @@
.. bpo: 32872
.. date: 2018-03-28-01-35-02
.. nonce: J5NDUj
.. release date: 2018-03-28
.. section: Tests
Avoid regrtest compatibility issue with namespace packages.
..
.. bpo: 33163
.. date: 2018-03-28-04-15-03
.. nonce: hfpWuU
.. section: Build
Upgrade pip to 9.0.3 and setuptools to v39.0.1.

View file

@ -0,0 +1,867 @@
.. bpo: 33001
.. date: 2018-03-05-10-09-51
.. nonce: elj4Aa
.. release date: 2018-03-13
.. section: Security
Minimal fix to prevent buffer overrun in os.symlink on Windows
..
.. bpo: 32981
.. date: 2018-03-02-10-24-52
.. nonce: O_qDyj
.. section: Security
Regexes in difflib and poplib were vulnerable to catastrophic backtracking.
These regexes formed potential DOS vectors (REDOS). They have been
refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch by Jamie
Davis.
..
.. bpo: 33026
.. date: 2018-03-08-09-48-38
.. nonce: QZA3Ba
.. section: Core and Builtins
Fixed jumping out of "with" block by setting f_lineno.
..
.. bpo: 17288
.. date: 2018-02-27-13-36-21
.. nonce: Gdj24S
.. section: Core and Builtins
Prevent jumps from 'return' and 'exception' trace events.
..
.. bpo: 32889
.. date: 2018-02-20-21-53-48
.. nonce: J6eWy5
.. section: Core and Builtins
Update Valgrind suppression list to account for the rename of
``Py_ADDRESS_IN_RANG`` to ``address_in_range``.
..
.. bpo: 32650
.. date: 2018-01-28-23-01-39
.. nonce: Bbi7ek
.. section: Core and Builtins
Pdb and other debuggers dependent on bdb.py will correctly step over (next
command) native coroutines. Patch by Pablo Galindo.
..
.. bpo: 32685
.. date: 2018-01-28-12-25-06
.. nonce: nGctze
.. section: Core and Builtins
Improve suggestion when the Python 2 form of print statement is either
present on the same line as the header of a compound statement or else
terminated by a semi-colon instead of a newline. Patch by Nitish Chandra.
..
.. bpo: 32583
.. date: 2018-01-26-21-20-21
.. nonce: Fh3fau
.. section: Core and Builtins
Fix possible crashing in builtin Unicode decoders caused by write
out-of-bound errors when using customized decode error handlers.
..
.. bpo: 26163
.. date: 2018-01-14-20-32-47
.. nonce: xv9Iuv
.. section: Core and Builtins
Improved frozenset() hash to create more distinct hash values when faced
with datasets containing many similar values.
..
.. bpo: 27169
.. date: 2017-12-15-11-50-06
.. nonce: VO84fQ
.. section: Core and Builtins
The ``__debug__`` constant is now optimized out at compile time. This fixes
also bpo-22091.
..
.. bpo: 32329
.. date: 2017-12-15-00-55-35
.. nonce: XL1O99
.. section: Core and Builtins
``sys.flags.hash_randomization`` is now properly set to 0 when hash
randomization is turned off by ``PYTHONHASHSEED=0``.
..
.. bpo: 30416
.. date: 2017-12-14-11-48-19
.. nonce: hlHo_9
.. section: Core and Builtins
The optimizer is now protected from spending much time doing complex
calculations and consuming much memory for creating large constants in
constant folding.
..
.. bpo: 18533
.. date: 2017-12-13-16-46-23
.. nonce: Dlk8d7
.. section: Core and Builtins
``repr()`` on a dict containing its own ``values()`` or ``items()`` no
longer raises ``RecursionError``; OrderedDict similarly. Instead, use
``...``, as for other recursive structures. Patch by Ben North.
..
.. bpo: 32028
.. date: 2017-12-03-22-29-13
.. nonce: KC2w4Q
.. section: Core and Builtins
Leading whitespace is now correctly ignored when generating suggestions for
converting Py2 print statements to Py3 builtin print function calls. Patch
by Sanyam Khurana.
..
.. bpo: 32137
.. date: 2017-11-26-14-36-30
.. nonce: Stj5nL
.. section: Core and Builtins
The repr of deeply nested dict now raises a RecursionError instead of
crashing due to a stack overflow.
..
.. bpo: 33064
.. date: 2018-03-12-19-58-25
.. nonce: LO2KIY
.. section: Library
lib2to3 now properly supports trailing commas after ``*args`` and
``**kwargs`` in function signatures.
..
.. bpo: 31804
.. date: 2018-03-11-19-03-52
.. nonce: i8KUMp
.. section: Library
Avoid failing in multiprocessing.Process if the standard streams are closed
or None at exit.
..
.. bpo: 33037
.. date: 2018-03-09-23-07-07
.. nonce: nAJ3at
.. section: Library
Skip sending/receiving data after SSL transport closing.
..
.. bpo: 30353
.. date: 2018-03-08-09-54-01
.. nonce: XdE5aM
.. section: Library
Fix ctypes pass-by-value for structs on 64-bit Cygwin/MinGW.
..
.. bpo: 33009
.. date: 2018-03-06-11-54-59
.. nonce: -Ekysb
.. section: Library
Fix inspect.signature() for single-parameter partialmethods.
..
.. bpo: 32969
.. date: 2018-03-06-00-19-41
.. nonce: rGTKa0
.. section: Library
Expose several missing constants in zlib and fix corresponding
documentation.
..
.. bpo: 32713
.. date: 2018-02-26-13-16-36
.. nonce: 55yegW
.. section: Library
Fixed tarfile.itn handling of out-of-bounds float values. Patch by Joffrey
Fuhrer.
..
.. bpo: 30622
.. date: 2018-02-24-21-40-42
.. nonce: dQjxSe
.. section: Library
The ssl module now detects missing NPN support in LibreSSL.
..
.. bpo: 32922
.. date: 2018-02-23-19-12-04
.. nonce: u-xe0B
.. section: Library
dbm.open() now encodes filename with the filesystem encoding rather than
default encoding.
..
.. bpo: 32859
.. date: 2018-02-19-17-46-31
.. nonce: kAT-Xp
.. section: Library
In ``os.dup2``, don't check every call whether the ``dup3`` syscall exists
or not.
..
.. bpo: 21060
.. date: 2018-02-17-19-20-19
.. nonce: S1Z-x6
.. section: Library
Rewrite confusing message from setup.py upload from "No dist file created in
earlier command" to the more helpful "Must create and upload files in one
command".
..
.. bpo: 32857
.. date: 2018-02-16-14-37-14
.. nonce: -XljAx
.. section: Library
In :mod:`tkinter`, ``after_cancel(None)`` now raises a :exc:`ValueError`
instead of canceling the first scheduled function. Patch by Cheryl Sabella.
..
.. bpo: 32852
.. date: 2018-02-15-12-04-29
.. nonce: HDqIxM
.. section: Library
Make sure sys.argv remains as a list when running trace.
..
.. bpo: 32841
.. date: 2018-02-14-00-21-24
.. nonce: bvHDOc
.. section: Library
Fixed `asyncio.Condition` issue which silently ignored cancellation after
notifying and cancelling a conditional lock. Patch by Bar Harel.
..
.. bpo: 31787
.. date: 2018-02-09-21-41-56
.. nonce: owSZ2t
.. section: Library
Fixed refleaks of ``__init__()`` methods in various modules. (Contributed by
Oren Milman)
..
.. bpo: 30157
.. date: 2018-02-09-14-44-43
.. nonce: lEiiAK
.. section: Library
Fixed guessing quote and delimiter in csv.Sniffer.sniff() when only the last
field is quoted. Patch by Jake Davis.
..
.. bpo: 32394
.. date: 2018-02-08-08-18-26
.. nonce: 6E_7X7
.. section: Library
socket: Remove TCP_FASTOPEN, TCP_KEEPCNT flags on older version Windows
during run-time.
..
.. bpo: 32777
.. date: 2018-02-05-21-28-28
.. nonce: C-wIXF
.. section: Library
Fix a rare but potential pre-exec child process deadlock in subprocess on
POSIX systems when marking file descriptors inheritable on exec in the child
process. This bug appears to have been introduced in 3.4.
..
.. bpo: 32647
.. date: 2018-02-05-13-31-42
.. nonce: ktmfR_
.. section: Library
The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.
..
.. bpo: 32734
.. date: 2018-02-01-01-34-47
.. nonce: gCV9AD
.. section: Library
Fixed ``asyncio.Lock()`` safety issue which allowed acquiring and locking
the same lock multiple times, without it being free. Patch by Bar Harel.
..
.. bpo: 32727
.. date: 2018-01-30-17-46-18
.. nonce: aHVsRC
.. section: Library
Do not include name field in SMTP envelope from address. Patch by Stéphane
Wirtel
..
.. bpo: 27931
.. date: 2018-01-25-21-04-11
.. nonce: e4r52t
.. section: Library
Fix email address header parsing error when the username is an empty quoted
string. Patch by Xiang Zhang.
..
.. bpo: 32304
.. date: 2018-01-21-16-33-53
.. nonce: TItrNv
.. section: Library
distutils' upload command no longer corrupts tar files ending with a CR
byte, and no longer tries to convert CR to CRLF in any of the upload text
fields.
..
.. bpo: 32502
.. date: 2018-01-20-17-15-34
.. nonce: OXJfn7
.. section: Library
uuid.uuid1 no longer raises an exception if a 64-bit hardware address is
encountered.
..
.. bpo: 31848
.. date: 2018-01-18-23-34-17
.. nonce: M2cldy
.. section: Library
Fix the error handling in Aifc_read.initfp() when the SSND chunk is not
found. Patch by Zackery Spytz.
..
.. bpo: 32555
.. date: 2018-01-15-17-52-47
.. nonce: CMq2zF
.. section: Library
On FreeBSD and Solaris, os.strerror() now always decode the byte string from
the current locale encoding, rather than using ASCII/surrogateescape in some
cases.
..
.. bpo: 32521
.. date: 2018-01-15-12-53-13
.. nonce: IxX4Ba
.. section: Library
The nis module is now compatible with new libnsl and headers location.
..
.. bpo: 32473
.. date: 2018-01-10-20-37-59
.. nonce: mP_yJG
.. section: Library
Improve ABCMeta._dump_registry() output readability
..
.. bpo: 32521
.. date: 2018-01-08-18-02-33
.. nonce: Kh-KoN
.. section: Library
glibc has removed Sun RPC. Use replacement libtirpc headers and library in
nis module.
..
.. bpo: 32228
.. date: 2017-12-22-16-47-41
.. nonce: waPx3q
.. section: Library
Ensure that ``truncate()`` preserves the file position (as reported by
``tell()``) after writes longer than the buffer size.
..
.. bpo: 26133
.. date: 2017-12-21-11-08-42
.. nonce: mt81QV
.. section: Library
Don't unsubscribe signals in asyncio UNIX event loop on interpreter
shutdown.
..
.. bpo: 32185
.. date: 2017-12-20-09-25-10
.. nonce: IL0cMt
.. section: Library
The SSL module no longer sends IP addresses in SNI TLS extension on
platforms with OpenSSL 1.0.2+ or inet_pton.
..
.. bpo: 32323
.. date: 2017-12-14-10-10-10
.. nonce: ideco
.. section: Library
:func:`urllib.parse.urlsplit()` does not convert zone-id (scope) to lower
case for scoped IPv6 addresses in hostnames now.
..
.. bpo: 32302
.. date: 2017-12-13-22-38-08
.. nonce: othtTr
.. section: Library
Fix bdist_wininst of distutils for CRT v142: it binary compatible with CRT
v140.
..
.. bpo: 32255
.. date: 2017-12-12-07-29-06
.. nonce: 2bfNmM
.. section: Library
A single empty field is now always quoted when written into a CSV file. This
allows to distinguish an empty row from a row consisting of a single empty
field. Patch by Licht Takeuchi.
..
.. bpo: 32277
.. date: 2017-12-11-09-53-14
.. nonce: jkKiVC
.. section: Library
Raise ``NotImplementedError`` instead of ``SystemError`` on platforms where
``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
Sottile.
..
.. bpo: 32199
.. date: 2017-12-04-12-23-26
.. nonce: nGof4v
.. section: Library
The getnode() ip getter now uses 'ip link' instead of 'ip link list'.
..
.. bpo: 27456
.. date: 2017-11-02-11-57-41
.. nonce: snzyTC
.. section: Library
Ensure TCP_NODELAY is set on Linux. Tests by Victor Stinner.
..
.. bpo: 31900
.. date: 2017-10-30-15-55-32
.. nonce: -S9xc4
.. section: Library
The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE``
locale to the ``LC_NUMERIC`` locale to decode ``decimal_point`` and
``thousands_sep`` byte strings if they are non-ASCII or longer than 1 byte,
and the ``LC_NUMERIC`` locale is different than the ``LC_CTYPE`` locale.
This temporary change affects other threads.
Same change for the :meth:`str.format` method when formatting a number
(:class:`int`, :class:`float`, :class:`float` and subclasses) with the ``n``
type (ex: ``'{:n}'.format(1234)``).
..
.. bpo: 31802
.. date: 2017-10-17-14-52-14
.. nonce: sYj2Zv
.. section: Library
Importing native path module (``posixpath``, ``ntpath``) now works even if
the ``os`` module still is not imported.
..
.. bpo: 17232
.. date: 2018-02-23-12-48-03
.. nonce: tmuTKL
.. section: Documentation
Clarify docs for -O and -OO. Patch by Terry Reedy.
..
.. bpo: 32800
.. date: 2018-02-10-15-16-04
.. nonce: FyrqCk
.. section: Documentation
Update link to w3c doc for xml default namespaces.
..
.. bpo: 8722
.. date: 2018-02-03-06-11-37
.. nonce: MPyVyj
.. section: Documentation
Document :meth:`__getattr__` behavior when property :meth:`get` method
raises :exc:`AttributeError`.
..
.. bpo: 32614
.. date: 2018-02-02-07-41-57
.. nonce: LSqzGw
.. section: Documentation
Modify RE examples in documentation to use raw strings to prevent
:exc:`DeprecationWarning` and add text to REGEX HOWTO to highlight the
deprecation.
..
.. bpo: 31972
.. date: 2018-01-25-14-23-12
.. nonce: w1m_8r
.. section: Documentation
Improve docstrings for `pathlib.PurePath` subclasses.
..
.. bpo: 17799
.. date: 2018-01-22-21-13-46
.. nonce: rdZ-Vk
.. section: Documentation
Explain real behaviour of sys.settrace and sys.setprofile and their C-API
counterparts regarding which type of events are received in each function.
Patch by Pablo Galindo Salgado.
..
.. bpo: 32517
.. date: 2018-03-09-07-05-12
.. nonce: ugc1iW
.. section: Tests
Fix failing ``test_asyncio`` on macOS 10.12.2+ due to transport of
``KqueueSelector`` loop was not being closed.
..
.. bpo: 32721
.. date: 2018-01-29-21-30-44
.. nonce: 2Bebm1
.. section: Tests
Fix test_hashlib to not fail if the _md5 module is not built.
..
.. bpo: 32252
.. date: 2017-12-11-13-31-33
.. nonce: YnFw7J
.. section: Tests
Fix faulthandler_suppress_crash_report() used to prevent core dump files
when testing crashes. getrlimit() returns zero on success.
..
.. bpo: 31518
.. date: 2017-09-19-20-48-50
.. nonce: KwTMMz
.. section: Tests
Debian Unstable has disabled TLS 1.0 and 1.1 for SSLv23_METHOD(). Change
TLS/SSL protocol of some tests to PROTOCOL_TLS or PROTOCOL_TLSv1_2 to make
them pass on Debian.
..
.. bpo: 32635
.. date: 2018-01-23-15-33-40
.. nonce: qHwIZy
.. section: Build
Fix segfault of the crypt module when libxcrypt is provided instead of
libcrypt at the system.
..
.. bpo: 33016
.. date: 2018-03-07-01-33-33
.. nonce: Z_Med0
.. section: Windows
Fix potential use of uninitialized memory in nt._getfinalpathname
..
.. bpo: 32903
.. date: 2018-02-28-11-03-24
.. nonce: 1SXY4t
.. section: Windows
Fix a memory leak in os.chdir() on Windows if the current directory is set
to a UNC path.
..
.. bpo: 31966
.. date: 2018-02-19-13-54-42
.. nonce: _Q3HPb
.. section: Windows
Fixed WindowsConsoleIO.write() for writing empty data.
..
.. bpo: 32409
.. date: 2018-02-19-10-00-57
.. nonce: nocuDg
.. section: Windows
Ensures activate.bat can handle Unicode contents.
..
.. bpo: 32457
.. date: 2018-02-19-08-54-06
.. nonce: vVP0Iz
.. section: Windows
Improves handling of denormalized executable path when launching Python.
..
.. bpo: 32370
.. date: 2018-02-10-15-38-19
.. nonce: kcKuct
.. section: Windows
Use the correct encoding for ipconfig output in the uuid module. Patch by
Segev Finer.
..
.. bpo: 29248
.. date: 2018-02-07-17-50-48
.. nonce: Xzwj-6
.. section: Windows
Fix :func:`os.readlink` on Windows, which was mistakenly treating the
``PrintNameOffset`` field of the reparse data buffer as a number of
characters instead of bytes. Patch by Craig Holmquist and SSE4.
..
.. bpo: 32588
.. date: 2018-01-18-14-56-45
.. nonce: vHww6F
.. section: Windows
Create standalone _distutils_findvs module.
..
.. bpo: 32726
.. date: 2018-03-13-21-00-20
.. nonce: Mticyn
.. section: macOS
Provide an additional, more modern macOS installer variant that supports
macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied third-party
libraries to OpenSSL 1.0.2n, XZ 5.2.3, and SQLite 3.22.0. The 10.9+
installer now links with and supplies its own copy of Tcl/Tk 8.6.8.
..
.. bpo: 32984
.. date: 2018-03-05-01-29-05
.. nonce: NGjgT4
.. section: IDLE
Set ``__file__`` while running a startup file. Like Python, IDLE optionally
runs one startup file in the Shell window before presenting the first
interactive input prompt. For IDLE, ``-s`` runs a file named in
environmental variable :envvar:`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`;
``-r file`` runs ``file``. Python sets ``__file__`` to the startup file
name before running the file and unsets it before the first prompt. IDLE
now does the same when run normally, without the ``-n`` option.
..
.. bpo: 32940
.. date: 2018-02-24-18-20-50
.. nonce: ZaJ1Rf
.. section: IDLE
Simplify and rename StringTranslatePseudoMapping in pyparse.
..
.. bpo: 32916
.. date: 2018-02-23-07-32-36
.. nonce: 4MsQ5F
.. section: IDLE
Change ``str`` to ``code`` in pyparse.
..
.. bpo: 32905
.. date: 2018-02-22-00-09-27
.. nonce: VlXj0x
.. section: IDLE
Remove unused code in pyparse module.
..
.. bpo: 32874
.. date: 2018-02-19-10-56-41
.. nonce: 6pZ9Gv
.. section: IDLE
Add tests for pyparse.
..
.. bpo: 32837
.. date: 2018-02-12-17-22-48
.. nonce: -33QPl
.. section: IDLE
Using the system and place-dependent default encoding for open() is a bad
idea for IDLE's system and location-independent files.
..
.. bpo: 32826
.. date: 2018-02-12-11-05-22
.. nonce: IxNZrk
.. section: IDLE
Add "encoding=utf-8" to open() in IDLE's test_help_about. GUI test
test_file_buttons() only looks at initial ascii-only lines, but failed on
systems where open() defaults to 'ascii' because readline() internally reads
and decodes far enough ahead to encounter a non-ascii character in
CREDITS.txt.
..
.. bpo: 32765
.. date: 2018-02-04-17-52-54
.. nonce: qm0eCu
.. section: IDLE
Update configdialog General tab docstring to add new widgets to the widget
list.
..
.. bpo: 24960
.. date: 2017-12-22-09-25-51
.. nonce: TGdAgO
.. section: Tools/Demos
2to3 and lib2to3 can now read pickled grammar files using pkgutil.get_data()
rather than probing the filesystem. This lets 2to3 and lib2to3 work when run
from a zipfile.
..
.. bpo: 32222
.. date: 2017-12-07-20-51-20
.. nonce: hPBcGT
.. section: Tools/Demos
Fix pygettext not extracting docstrings for functions with type annotated
arguments. Patch by Toby Harradine.
..
.. bpo: 29084
.. date: 2017-12-16-09-59-35
.. nonce: ZGJ-LJ
.. section: C API
Undocumented C API for OrderedDict has been excluded from the limited C API.
It was added by mistake and actually never worked in the limited C API.

View file

@ -0,0 +1,8 @@
.. bpo: 0
.. date: 2018-06-27
.. no changes: True
.. nonce: IWyX1H
.. release date: 2018-06-27
.. section: Library
There were no new changes in version 3.6.6.

View file

@ -0,0 +1,885 @@
.. bpo: 33786
.. date: 2018-06-06-23-24-40
.. nonce: lBvT8z
.. release date: 2018-06-11
.. section: Core and Builtins
Fix asynchronous generators to handle GeneratorExit in athrow() correctly
..
.. bpo: 30654
.. date: 2018-05-28-12-28-53
.. nonce: 9fDJye
.. section: Core and Builtins
Fixed reset of the SIGINT handler to SIG_DFL on interpreter shutdown even
when there was a custom handler set previously. Patch by Philipp Kerling.
..
.. bpo: 33622
.. date: 2018-05-23-20-46-14
.. nonce: xPucO9
.. section: Core and Builtins
Fixed a leak when the garbage collector fails to add an object with the
``__del__`` method or referenced by it into the :data:`gc.garbage` list.
:c:func:`PyGC_Collect` can now be called when an exception is set and
preserves it.
..
.. bpo: 31849
.. date: 2018-05-14-11-00-00
.. nonce: EmHaH4
.. section: Core and Builtins
Fix signed/unsigned comparison warning in pyhash.c.
..
.. bpo: 33391
.. date: 2018-05-02-08-36-03
.. nonce: z4a7rb
.. section: Core and Builtins
Fix a leak in set_symmetric_difference().
..
.. bpo: 28055
.. date: 2018-04-25-20-44-42
.. nonce: f49kfC
.. section: Core and Builtins
Fix unaligned accesses in siphash24(). Patch by Rolf Eike Beer.
..
.. bpo: 33231
.. date: 2018-04-05-22-20-44
.. nonce: 3Jmo0q
.. section: Core and Builtins
Fix potential memory leak in ``normalizestring()``.
..
.. bpo: 29922
.. date: 2018-04-03-00-30-25
.. nonce: CdLuMl
.. section: Core and Builtins
Improved error messages in 'async with' when ``__aenter__()`` or
``__aexit__()`` return non-awaitable object.
..
.. bpo: 33199
.. date: 2018-04-02-09-32-40
.. nonce: TPnxQu
.. section: Core and Builtins
Fix ``ma_version_tag`` in dict implementation is uninitialized when copying
from key-sharing dict.
..
.. bpo: 33041
.. date: 2018-03-18-13-56-14
.. nonce: XwPhI2
.. section: Core and Builtins
Fixed jumping when the function contains an ``async for`` loop.
..
.. bpo: 32282
.. date: 2017-12-12-14-02-28
.. nonce: xFVMTn
.. section: Core and Builtins
Fix an unnecessary ifdef in the include of VersionHelpers.h in socketmodule
on Windows.
..
.. bpo: 21983
.. date: 2017-10-02-21-02-14
.. nonce: UoC319
.. section: Core and Builtins
Fix a crash in `ctypes.cast()` in case the type argument is a ctypes
structured data type. Patch by Eryk Sun and Oren Milman.
..
.. bpo: 30167
.. date: 2018-06-10-19-29-17
.. nonce: G5EgC5
.. section: Library
Prevent site.main() exception if PYTHONSTARTUP is set. Patch by Steve Weber.
..
.. bpo: 33812
.. date: 2018-06-10-13-26-02
.. nonce: frGAOr
.. section: Library
Datetime instance d with non-None tzinfo, but with d.tzinfo.utcoffset(d)
returning None is now treated as naive by the astimezone() method.
..
.. bpo: 30805
.. date: 2018-06-08-17-34-16
.. nonce: 3qCWa0
.. section: Library
Avoid race condition with debug logging
..
.. bpo: 33767
.. date: 2018-06-03-22-41-59
.. nonce: 2e82g3
.. section: Library
The concatenation (``+``) and repetition (``*``) sequence operations now
raise :exc:`TypeError` instead of :exc:`SystemError` when performed on
:class:`mmap.mmap` objects. Patch by Zackery Spytz.
..
.. bpo: 32684
.. date: 2018-05-29-12-51-18
.. nonce: ZEIism
.. section: Library
Fix gather to propagate cancellation of itself even with return_exceptions.
..
.. bpo: 33674
.. date: 2018-05-28-22-49-59
.. nonce: 6LFFj7
.. section: Library
Fix a race condition in SSLProtocol.connection_made() of asyncio.sslproto:
start immediately the handshake instead of using call_soon(). Previously,
data_received() could be called before the handshake started, causing the
handshake to hang or fail.
..
.. bpo: 31647
.. date: 2018-05-28-18-40-26
.. nonce: s4Fad3
.. section: Library
Fixed bug where calling write_eof() on a _SelectorSocketTransport after it's
already closed raises AttributeError.
..
.. bpo: 33672
.. date: 2018-05-28-17-45-06
.. nonce: GM_Xm_
.. section: Library
Fix Task.__repr__ crash with Cython's bogus coroutines
..
.. bpo: 33469
.. date: 2018-05-28-15-55-12
.. nonce: hmXBpY
.. section: Library
Fix RuntimeError after closing loop that used run_in_executor
..
.. bpo: 11874
.. date: 2018-05-23-00-26-27
.. nonce: glK5iP
.. section: Library
Use a better regex when breaking usage into wrappable parts. Avoids bogus
assertion errors from custom metavar strings.
..
.. bpo: 30877
.. date: 2018-05-22-13-05-12
.. nonce: JZEGjI
.. section: Library
Fixed a bug in the Python implementation of the JSON decoder that prevented
the cache of parsed strings from clearing after finishing the decoding.
Based on patch by c-fos.
..
.. bpo: 33548
.. date: 2018-05-16-17-05-48
.. nonce: xWslmx
.. section: Library
tempfile._candidate_tempdir_list should consider common TEMP locations
..
.. bpo: 33542
.. date: 2018-05-16-09-30-27
.. nonce: idNAcs
.. section: Library
Prevent ``uuid.get_node`` from using a DUID instead of a MAC on Windows.
Patch by Zvi Effron
..
.. bpo: 26819
.. date: 2018-05-16-05-24-43
.. nonce: taxbVT
.. section: Library
Fix race condition with `ReadTransport.resume_reading` in Windows proactor
event loop.
..
.. bpo: 28556
.. date: 2018-05-10-14-51-19
.. nonce: y3zK6I
.. section: Library
Minor fixes in typing module: add annotations to ``NamedTuple.__new__``,
pass ``*args`` and ``**kwds`` in ``Generic.__new__``. Original PRs by
Paulius Šarka and Chad Dombrova.
..
.. bpo: 20087
.. date: 2018-05-05-18-02-24
.. nonce: lJrvXL
.. section: Library
Updated alias mapping with glibc 2.27 supported locales.
..
.. bpo: 33422
.. date: 2018-05-05-09-53-05
.. nonce: 4FtQ0q
.. section: Library
Fix trailing quotation marks getting deleted when looking up byte/string
literals on pydoc. Patch by Andrés Delfino.
..
.. bpo: 33197
.. date: 2018-04-29-23-56-20
.. nonce: dgRLqr
.. section: Library
Update error message when constructing invalid inspect.Parameters Patch by
Dong-hee Na.
..
.. bpo: 33383
.. date: 2018-04-29-11-15-38
.. nonce: g32YWn
.. section: Library
Fixed crash in the get() method of the :mod:`dbm.ndbm` database object when
it is called with a single argument.
..
.. bpo: 33329
.. date: 2018-04-23-13-21-39
.. nonce: lQ-Eod
.. section: Library
Fix multiprocessing regression on newer glibcs
..
.. bpo: 991266
.. date: 2018-04-21-00-24-08
.. nonce: h93TP_
.. section: Library
Fix quoting of the ``Comment`` attribute of
:class:`http.cookies.SimpleCookie`.
..
.. bpo: 33131
.. date: 2018-04-20-10-43-17
.. nonce: L2E977
.. section: Library
Upgrade bundled version of pip to 10.0.1.
..
.. bpo: 33308
.. date: 2018-04-18-19-12-25
.. nonce: fW75xi
.. section: Library
Fixed a crash in the :mod:`parser` module when converting an ST object to a
tree of tuples or lists with ``line_info=False`` and ``col_info=True``.
..
.. bpo: 33263
.. date: 2018-04-11-20-29-19
.. nonce: B56Hc1
.. section: Library
Fix FD leak in `_SelectorSocketTransport` Patch by Vlad Starostin.
..
.. bpo: 33256
.. date: 2018-04-10-20-57-14
.. nonce: ndHkqu
.. section: Library
Fix display of ``<module>`` call in the html produced by ``cgitb.html()``.
Patch by Stéphane Blondon.
..
.. bpo: 33203
.. date: 2018-04-05-11-09-45
.. nonce: Hje9Py
.. section: Library
``random.Random.choice()`` now raises ``IndexError`` for empty sequences
consistently even when called from subclasses without a ``getrandbits()``
implementation.
..
.. bpo: 33224
.. date: 2018-04-04-23-41-30
.. nonce: pyR0jB
.. section: Library
Update difflib.mdiff() for PEP 479. Convert an uncaught StopIteration in a
generator into a return-statement.
..
.. bpo: 33209
.. date: 2018-04-03-10-37-13
.. nonce: 9sGWE_
.. section: Library
End framing at the end of C implementation of :func:`pickle.Pickler.dump`.
..
.. bpo: 32861
.. date: 2018-04-02-20-44-54
.. nonce: HeBjzN
.. section: Library
The urllib.robotparser's ``__str__`` representation now includes wildcard
entries and the "Crawl-delay" and "Request-rate" fields. Patch by Michael
Lazar.
..
.. bpo: 33096
.. date: 2018-03-25-13-18-16
.. nonce: ofdbe7
.. section: Library
Allow ttk.Treeview.insert to insert iid that has a false boolean value. Note
iid=0 and iid=False would be same. Patch by Garvit Khatri.
..
.. bpo: 33127
.. date: 2018-03-24-15-08-24
.. nonce: olJmHv
.. section: Library
The ssl module now compiles with LibreSSL 2.7.1.
..
.. bpo: 33021
.. date: 2018-03-12-00-27-56
.. nonce: m19B9T
.. section: Library
Release the GIL during fstat() calls, avoiding hang of all threads when
calling mmap.mmap(), os.urandom(), and random.seed(). Patch by Nir Soffer.
..
.. bpo: 27683
.. date: 2018-03-07-22-28-17
.. nonce: 572Rv4
.. section: Library
Fix a regression in :mod:`ipaddress` that result of :meth:`hosts` is empty
when the network is constructed by a tuple containing an integer mask and
only 1 bit left for addresses.
..
.. bpo: 32844
.. date: 2018-02-28-13-08-00
.. nonce: u8tnAe
.. section: Library
Fix wrong redirection of a low descriptor (0 or 1) to stderr in subprocess
if another low descriptor is closed.
..
.. bpo: 31908
.. date: 2017-10-31
.. nonce: g4xh8x
.. section: Library
Fix output of cover files for ``trace`` module command-line tool. Previously
emitted cover files only when ``--missing`` option was used. Patch by
Michael Selik.
..
.. bpo: 31457
.. date: 2017-10-18-19-05-17
.. nonce: KlE6r8
.. section: Library
If nested log adapters are used, the inner ``process()`` methods are no
longer omitted.
..
.. bpo: 16865
.. date: 2017-09-29-16-40-38
.. nonce: l-f6I_
.. section: Library
Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer.
..
.. bpo: 31238
.. date: 2017-08-21-12-31-53
.. nonce: Gg0LRH
.. section: Library
pydoc: the stop() method of the private ServerThread class now waits until
DocServer.serve_until_quit() completes and then explicitly sets its
docserver attribute to None to break a reference cycle.
..
.. bpo: 33503
.. date: 2018-05-14-20-08-58
.. nonce: Wvt0qg
.. section: Documentation
Fix broken pypi link
..
.. bpo: 33421
.. date: 2018-05-14-15-23-51
.. nonce: 3GU_QO
.. section: Documentation
Add missing documentation for ``typing.AsyncContextManager``.
..
.. bpo: 33378
.. date: 2018-04-29-04-02-18
.. nonce: -anAHN
.. section: Documentation
Add Korean language switcher for https://docs.python.org/3/
..
.. bpo: 33276
.. date: 2018-04-20-14-09-36
.. nonce: rA1z_3
.. section: Documentation
Clarify that the ``__path__`` attribute on modules cannot be just any value.
..
.. bpo: 33201
.. date: 2018-04-01-21-03-41
.. nonce: aa8Lkl
.. section: Documentation
Modernize documentation for writing C extension types.
..
.. bpo: 33195
.. date: 2018-04-01-14-30-36
.. nonce: dRS-XX
.. section: Documentation
Deprecate ``Py_UNICODE`` usage in ``c-api/arg`` document. ``Py_UNICODE``
related APIs are deprecated since Python 3.3, but it is missed in the
document.
..
.. bpo: 33126
.. date: 2018-03-28-17-03-17
.. nonce: 5UGkNv
.. section: Documentation
Document PyBuffer_ToContiguous().
..
.. bpo: 27212
.. date: 2018-03-22-19-23-04
.. nonce: wrE5KR
.. section: Documentation
Modify documentation for the :func:`islice` recipe to consume initial values
up to the start index.
..
.. bpo: 28247
.. date: 2018-03-20-20-11-05
.. nonce: -V-WS-
.. section: Documentation
Update :mod:`zipapp` documentation to describe how to make standalone
applications.
..
.. bpo: 18802
.. date: 2018-03-11-18-53-47
.. nonce: JhAqH3
.. section: Documentation
Documentation changes for ipaddress. Patch by Jon Foster and Berker Peksag.
..
.. bpo: 27428
.. date: 2018-03-11-00-16-56
.. nonce: B7A8FT
.. section: Documentation
Update documentation to clarify that ``WindowsRegistryFinder`` implements
``MetaPathFinder``. (Patch by Himanshu Lakhara)
..
.. bpo: 8243
.. date: 2018-01-13-20-30-53
.. nonce: s98r28
.. section: Documentation
Add a note about curses.addch and curses.addstr exception behavior when
writing outside a window, or pad.
..
.. bpo: 31432
.. date: 2017-09-13-07-14-59
.. nonce: yAY4Z3
.. section: Documentation
Clarify meaning of CERT_NONE, CERT_OPTIONAL, and CERT_REQUIRED flags for
ssl.SSLContext.verify_mode.
..
.. bpo: 33655
.. date: 2018-05-26-16-01-40
.. nonce: Frb4LA
.. section: Tests
Ignore test_posix_fallocate failures on BSD platforms that might be due to
running on ZFS.
..
.. bpo: 19417
.. date: 2018-01-08-13-33-47
.. nonce: 2asoXy
.. section: Tests
Add test_bdb.py.
..
.. bpo: 5755
.. date: 2018-06-04-21-34-34
.. nonce: 65GmCj
.. section: Build
Move ``-Wstrict-prototypes`` option to ``CFLAGS_NODIST`` from ``OPT``. This
option emitted annoying warnings when building extension modules written in
C++.
..
.. bpo: 33614
.. date: 2018-05-28-11-40-22
.. nonce: 28e0sE
.. section: Build
Ensures module definition files for the stable ABI on Windows are correctly
regenerated.
..
.. bpo: 33522
.. date: 2018-05-15-12-44-50
.. nonce: mJoNcA
.. section: Build
Enable CI builds on Visual Studio Team Services at
https://python.visualstudio.com/cpython
..
.. bpo: 33012
.. date: 2018-05-10-21-10-01
.. nonce: 5Zfjac
.. section: Build
Add ``-Wno-cast-function-type`` for gcc 8 for silencing warnings about
function casts like casting to PyCFunction in method definition lists.
..
.. bpo: 33394
.. date: 2018-04-30-17-36-46
.. nonce: _Vdi4t
.. section: Build
Enable the verbose build for extension modules, when GNU make is passed
macros on the command line.
..
.. bpo: 33184
.. date: 2018-04-13-11-39-28
.. nonce: aEohx0
.. section: Windows
Update Windows installer to OpenSSL 1.0.2o.
..
.. bpo: 33184
.. date: 2018-04-07-00-58-50
.. nonce: rMTiqu
.. section: macOS
Update macOS installer build to use OpenSSL 1.0.2o.
..
.. bpo: 33656
.. date: 2018-06-10-17-59-36
.. nonce: 60ZqJS
.. section: IDLE
On Windows, add API call saying that tk scales for DPI. On Windows 8.1+ or
10, with DPI compatibility properties of the Python binary unchanged, and a
monitor resolution greater than 96 DPI, this should make text and lines
sharper. It should otherwise have no effect.
..
.. bpo: 33768
.. date: 2018-06-04-19-23-11
.. nonce: I_2qpV
.. section: IDLE
Clicking on a context line moves that line to the top of the editor window.
..
.. bpo: 33763
.. date: 2018-06-03-20-12-57
.. nonce: URiFlE
.. section: IDLE
IDLE: Use read-only text widget for code context instead of label widget.
..
.. bpo: 33664
.. date: 2018-06-03-09-13-28
.. nonce: PZzQyL
.. section: IDLE
Scroll IDLE editor text by lines. Previously, the mouse wheel and scrollbar
slider moved text by a fixed number of pixels, resulting in partial lines at
the top of the editor box. The change also applies to the shell and grep
output windows, but not to read-only text views.
..
.. bpo: 33679
.. date: 2018-05-29-07-14-37
.. nonce: MgX_Ui
.. section: IDLE
Enable theme-specific color configuration for Code Context. Use the
Highlights tab to see the setting for built-in themes or add settings to
custom themes.
..
.. bpo: 33642
.. date: 2018-05-24-20-42-44
.. nonce: J0VQbS
.. section: IDLE
Display up to maxlines non-blank lines for Code Context. If there is no
current context, show a single blank line.
..
.. bpo: 33628
.. date: 2018-05-23-19-51-07
.. nonce: sLlFLO
.. section: IDLE
IDLE: Cleanup codecontext.py and its test.
..
.. bpo: 33564
.. date: 2018-05-17-19-41-12
.. nonce: XzHZJe
.. section: IDLE
IDLE's code context now recognizes async as a block opener.
..
.. bpo: 29706
.. date: 2018-05-15-17-01-10
.. nonce: id4H5i
.. section: IDLE
IDLE now colors async and await as keywords in 3.6. They become full
keywords in 3.7.
..
.. bpo: 21474
.. date: 2018-04-29-16-13-02
.. nonce: bglg-F
.. section: IDLE
Update word/identifier definition from ascii to unicode. In text and entry
boxes, this affects selection by double-click, movement left/right by
control-left/right, and deletion left/right by control-BACKSPACE/DEL.
..
.. bpo: 33204
.. date: 2018-04-02-00-28-13
.. nonce: NBsuIv
.. section: IDLE
IDLE: consistently color invalid string prefixes. A 'u' string prefix cannot
be paired with either 'r' or 'f'. Consistently color as much of the prefix,
starting at the right, as is valid. Revise and extend colorizer test.
..
.. bpo: 32831
.. date: 2018-02-12-08-08-45
.. nonce: srDRvU
.. section: IDLE
Add docstrings and tests for codecontext.
..
.. bpo: 33189
.. date: 2018-04-03-18-10-00
.. nonce: QrXR00
.. section: Tools/Demos
:program:`pygettext.py` now recognizes only literal strings as docstrings
and translatable strings, and rejects bytes literals and f-string
expressions.
..
.. bpo: 31920
.. date: 2018-03-26-18-54-24
.. nonce: u_WKsT
.. section: Tools/Demos
Fixed handling directories as arguments in the ``pygettext`` script. Based
on patch by Oleg Krasnikov.
..
.. bpo: 29673
.. date: 2018-03-16-17-25-05
.. nonce: m8QtaW
.. section: Tools/Demos
Fix pystackv and pystack gdbinit macros.
..
.. bpo: 32885
.. date: 2018-02-20-12-16-47
.. nonce: dL5x7C
.. section: Tools/Demos
Add an ``-n`` flag for ``Tools/scripts/pathfix.py`` to disable automatic
backup creation (files with ``~`` suffix).
..
.. bpo: 31583
.. date: 2017-09-26-10-11-21
.. nonce: TM90_H
.. section: Tools/Demos
Fix 2to3 for using with --add-suffix option but without --output-dir option
for relative path to files in current directory.
..
.. bpo: 32374
.. date: 2018-01-09-17-03-54
.. nonce: SwwLoz
.. section: C API
Document that m_traverse for multi-phase initialized modules can be called
with m_state=NULL, and add a sanity check

View file

@ -0,0 +1,8 @@
.. bpo: 0
.. date: 2018-10-20
.. no changes: True
.. nonce: 66tWQH
.. release date: 2018-10-20
.. section: Library
There were no new changes in version 3.6.7.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,149 @@
.. bpo: 34879
.. date: 2018-10-02-22-55-11
.. nonce: 7VNH2a
.. release date: 2018-10-13
.. section: Core and Builtins
Fix a possible null pointer dereference in bytesobject.c. Patch by Zackery
Spytz.
..
.. bpo: 34320
.. date: 2018-08-02-22-34-59
.. nonce: hNshAA
.. section: Core and Builtins
Fix ``dict(od)`` didn't copy iteration order of OrderedDict.
..
.. bpo: 34769
.. date: 2018-10-09-11-01-16
.. nonce: cSkkZt
.. section: Library
Fix for async generators not finalizing when event loop is in debug mode and
garbage collector runs in another thread.
..
.. bpo: 34922
.. date: 2018-10-07-21-18-52
.. nonce: 37IdsA
.. section: Library
Fixed integer overflow in the :meth:`~hashlib.shake.digest()` and
:meth:`~hashlib.shake.hexdigest()` methods for the SHAKE algorithm in the
:mod:`hashlib` module.
..
.. bpo: 34871
.. date: 2018-10-04-18-46-54
.. nonce: t3X-dB
.. section: Library
Fix inspect module polluted ``sys.modules`` when parsing
``__text_signature__`` of callable.
..
.. bpo: 34872
.. date: 2018-10-02-19-36-34
.. nonce: yWZRhI
.. section: Library
Fix self-cancellation in C implementation of asyncio.Task
..
.. bpo: 34819
.. date: 2018-09-27-09-45-00
.. nonce: 9ZaFyO
.. section: Library
Use a monotonic clock to compute timeouts in :meth:`Executor.map` and
:func:`as_completed`, in order to prevent timeouts from deviating when the
system clock is adjusted.
..
.. bpo: 34521
.. date: 2018-10-13-19-15-23
.. nonce: YPaiTK
.. release date: 2018-10-20
.. section: Library
Use :func:`socket.CMSG_SPACE` to calculate ancillary data size instead of
:func:`socket.CMSG_LEN` in :func:`multiprocessing.reduction.recvfds` as
:rfc:`3542` requires the use of the former for portable applications.
..
.. bpo: 34282
.. date: 2018-09-02-13-33-35
.. nonce: ztyXH8
.. section: Library
Fix enum members getting shadowed by parent attributes.
..
.. bpo: 34172
.. date: 2018-07-26-10-31-52
.. nonce: 8ovLNi
.. section: Library
Fix a reference issue inside multiprocessing.Pool that caused the pool to
remain alive if it was deleted without being closed or terminated
explicitly.
..
.. bpo: 33729
.. date: 2018-07-20-09-11-05
.. nonce: sO6iTb
.. section: Library
Fixed issues with arguments parsing in :mod:`hashlib`.
..
.. bpo: 32174
.. date: 2018-10-08-19-15-28
.. nonce: YO9CYm
.. section: Documentation
chm document displays non-ASCII charaters properly on some MBCS Windows
systems.
..
.. bpo: 32962
.. date: 2018-05-10-16-59-15
.. nonce: S-rcIN
.. section: Tests
Fixed test_gdb when Python is compiled with flags -mcet -fcf-protection -O0.
..
.. bpo: 34370
.. date: 2018-10-13-02-07-55
.. nonce: FqUqcG
.. section: macOS
Revert to using the released Tk 8.6.8 with macOS installers instead of the
Tk 8.6.x development snapshot used with 3.7.1rc1 and 3.6.7rc1. The snapshot
introduced at least one significant regression (bpo-34927).
..
.. bpo: 34910
.. date: 2018-10-05-17-06-49
.. nonce: tSFrls
.. section: C API
Ensure that :c:func:`PyObject_Print` always returns ``-1`` on error. Patch
by Zackery Spytz.

View file

@ -0,0 +1,38 @@
.. bpo: 31715
.. date: 2018-08-15-16-22-30
.. nonce: Iw8jS8
.. release date: 2018-12-23
.. section: Library
Associate ``.mjs`` file extension with ``application/javascript`` MIME Type.
..
.. bpo: 35499
.. date: 2018-12-14-19-36-05
.. nonce: 9yAldM
.. section: Build
``make profile-opt`` no longer replaces ``CFLAGS_NODIST`` with ``CFLAGS``.
It now adds profile-guided optimization (PGO) flags to ``CFLAGS_NODIST``:
existing ``CFLAGS_NODIST`` flags are kept.
..
.. bpo: 35257
.. date: 2018-12-05-22-28-40
.. nonce: dmcd_s
.. section: Build
Avoid leaking the linker flags from Link Time Optimizations (LTO) into
distutils when compiling C extensions.
..
.. bpo: 35259
.. date: 2018-11-22-13-52-36
.. nonce: p07c61
.. section: C API
Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6) based on
Py_LIMITED_API. Patch by Arthur Neufeld.

View file

@ -0,0 +1,882 @@
.. bpo: 34812
.. date: 2018-11-23-15-00-23
.. nonce: 84VQnb
.. release date: 2018-12-11
.. section: Security
The :option:`-I` command line option (run Python in isolated mode) is now
also copied by the :mod:`multiprocessing` and :mod:`distutils` modules when
spawning child processes. Previously, only :option:`-E` and :option:`-s`
options (enabled by :option:`-I`) were copied.
..
.. bpo: 34791
.. date: 2018-09-24-18-49-25
.. nonce: 78GmIG
.. section: Security
The xml.sax and xml.dom.domreg no longer use environment variables to
override parser implementations when sys.flags.ignore_environment is set by
-E or -I arguments.
..
.. bpo: 35444
.. date: 2018-12-09-13-09-39
.. nonce: 9kYn4V
.. section: Core and Builtins
Fixed error handling in pickling methods when fail to look up builtin
"getattr".
..
.. bpo: 35436
.. date: 2018-12-07-02-38-01
.. nonce: 0VW7p9
.. section: Core and Builtins
Fix various issues with memory allocation error handling. Patch by Zackery
Spytz.
..
.. bpo: 35357
.. date: 2018-12-03-21-20-24
.. nonce: rhhoiC
.. section: Core and Builtins
Internal attributes' names of unittest.mock._Call and
unittest.mock.MagicProxy (name, parent & from_kall) are now prefixed with
_mock_ in order to prevent clashes with widely used object attributes. Fixed
minor typo in test function name.
..
.. bpo: 35372
.. date: 2018-12-01-19-20-53
.. nonce: RwVJjZ
.. section: Core and Builtins
Fixed the code page decoder for input longer than 2 GiB containing
undecodable bytes.
..
.. bpo: 33954
.. date: 2018-11-20-22-33-38
.. nonce: RzSngM
.. section: Core and Builtins
For :meth:`str.format`, :meth:`float.__format__` and
:meth:`complex.__format__` methods for non-ASCII decimal point when using
the "n" formatter.
..
.. bpo: 35214
.. date: 2018-11-13-00-40-35
.. nonce: OQBjph
.. section: Core and Builtins
Fixed an out of bounds memory access when parsing a truncated unicode escape
sequence at the end of a string such as ``'\N'``. It would read one byte
beyond the end of the memory allocation.
..
.. bpo: 35214
.. date: 2018-11-12-11-38-06
.. nonce: PCHKbX
.. section: Core and Builtins
The interpreter and extension modules have had annotations added so that
they work properly under clang's Memory Sanitizer. A new configure flag
--with-memory-sanitizer has been added to make test builds of this nature
easier to perform.
..
.. bpo: 35193
.. date: 2018-11-08-23-00-04
.. nonce: WK2PDg
.. section: Core and Builtins
Fix an off by one error in the bytecode peephole optimizer where it could
read bytes beyond the end of bounds of an array when removing unreachable
code. This bug was present in every release of Python 3.6 until now.
..
.. bpo: 29341
.. date: 2018-10-25-20-53-32
.. nonce: jH-AMF
.. section: Core and Builtins
Clarify in the docstrings of :mod:`os` methods that path-like objects are
also accepted as input parameters.
..
.. bpo: 35050
.. date: 2018-10-23-15-03-53
.. nonce: 49wraS
.. section: Core and Builtins
:mod:`socket`: Fix off-by-one bug in length check for ``AF_ALG`` name and
type.
..
.. bpo: 34974
.. date: 2018-10-13-22-24-19
.. nonce: 7LgTc2
.. section: Core and Builtins
:class:`bytes` and :class:`bytearray` constructors no longer convert
unexpected exceptions (e.g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`)
to :exc:`TypeError`.
..
.. bpo: 34973
.. date: 2018-10-13-16-42-03
.. nonce: B5M-3g
.. section: Core and Builtins
Fixed crash in :func:`bytes` when the :class:`list` argument is mutated
while it is iterated.
..
.. bpo: 34824
.. date: 2018-09-27-11-10-02
.. nonce: VLlCaU
.. section: Core and Builtins
Fix a possible null pointer dereference in Modules/_ssl.c. Patch by Zackery
Spytz.
..
.. bpo: 1621
.. date: 2018-09-11-15-19-37
.. nonce: 7o19yG
.. section: Core and Builtins
Do not assume signed integer overflow behavior (C undefined behavior) when
performing set hash table resizing.
..
.. bpo: 35052
.. date: 2018-12-10-09-48-27
.. nonce: xE1ymg
.. section: Library
Fix xml.dom.minidom cloneNode() on a document with an entity: pass the
correct arguments to the user data handler of an entity.
..
.. bpo: 35330
.. date: 2018-12-06-00-43-13
.. nonce: abB4BN
.. section: Library
When a :class:`Mock` instance was used to wrap an object, if `side_effect`
is used in one of the mocks of it methods, don't call the original
implementation and return the result of using the side effect the same way
that it is done with return_value.
..
.. bpo: 34172
.. date: 2018-12-06-00-31-25
.. nonce: l7CIYt
.. section: Library
Revert the fix for this issue previously released in 3.6.7 pending further
investigation: Fix a reference issue inside multiprocessing.Pool that caused
the pool to remain alive if it was deleted without being closed or
terminated explicitly.
..
.. bpo: 10496
.. date: 2018-12-05-13-37-39
.. nonce: VH-1Lp
.. section: Library
:func:`posixpath.expanduser` now returns the input *path* unchanged if the
``HOME`` environment variable is not set and the current user has no home
directory (if the current user identifier doesn't exist in the password
database). This change fix the :mod:`site` module if the current user
doesn't exist in the password database (if the user has no home directory).
..
.. bpo: 35310
.. date: 2018-12-03-19-45-00
.. nonce: 9k28gR
.. section: Library
Fix a bug in :func:`select.select` where, in some cases, the file descriptor
sequences were returned unmodified after a signal interruption, even though
the file descriptors might not be ready yet. :func:`select.select` will now
always return empty lists if a timeout has occurred. Patch by Oran Avraham.
..
.. bpo: 35380
.. date: 2018-12-03-14-41-11
.. nonce: SdRF9l
.. section: Library
Enable TCP_NODELAY on Windows for proactor asyncio event loop.
..
.. bpo: 35371
.. date: 2018-12-01-13-44-12
.. nonce: fTAwlX
.. section: Library
Fixed possible crash in ``os.utime()`` on Windows when pass incorrect
arguments.
..
.. bpo: 27903
.. date: 2018-11-29-12-14-04
.. nonce: ia8xgT
.. section: Library
Fix ``ResourceWarning`` in :func:`platform.dist` on SuSE and Caldera
OpenLinux. Patch by Ville Skyttä.
..
.. bpo: 28604
.. date: 2018-11-20-13-34-01
.. nonce: iiih5h
.. section: Library
:func:`locale.localeconv` now sets temporarily the ``LC_CTYPE`` locale to
the ``LC_MONETARY`` locale if the two locales are different and monetary
strings are non-ASCII. This temporary change affects other threads.
..
.. bpo: 35277
.. date: 2018-11-19-07-22-04
.. nonce: dsD-2E
.. section: Library
Update ensurepip to install pip 18.1 and setuptools 40.6.2.
..
.. bpo: 35226
.. date: 2018-11-15-07-14-32
.. nonce: wJPEEe
.. section: Library
Recursively check arguments when testing for equality of
:class:`unittest.mock.call` objects and add note that tracking of parameters
used to create ancestors of mocks in ``mock_calls`` is not possible.
..
.. bpo: 35189
.. date: 2018-11-09-13-35-36
.. nonce: gog-sl
.. section: Library
Modify the following fnctl function to retry if interrupted by a signal
(EINTR): flock, lockf, fnctl
..
.. bpo: 35062
.. date: 2018-10-29-23-09-24
.. nonce: dQS1ng
.. section: Library
Fix incorrect parsing of :class:`_io.IncrementalNewlineDecoder`'s
*translate* argument.
..
.. bpo: 35079
.. date: 2018-10-26-22-53-16
.. nonce: Tm5jvF
.. section: Library
Improve difflib.SequenceManager.get_matching_blocks doc by adding
'non-overlapping' and changing '!=' to '<'.
..
.. bpo: 35017
.. date: 2018-10-26-00-11-21
.. nonce: 6Ez4Cv
.. section: Library
:meth:`socketserver.BaseServer.serve_forever` now exits immediately if it's
:meth:`~socketserver.BaseServer.shutdown` method is called while it is
polling for new events.
..
.. bpo: 31047
.. date: 2018-10-25-09-37-03
.. nonce: kBbX8r
.. section: Library
Fix ``ntpath.abspath`` regression where it didn't remove a trailing
separator on Windows. Patch by Tim Graham.
..
.. bpo: 34794
.. date: 2018-10-21-14-53-19
.. nonce: yt3R4-
.. section: Library
Fixed a leak in Tkinter when pass the Python wrapper around Tcl_Obj back to
Tcl/Tk.
..
.. bpo: 35008
.. date: 2018-10-17-11-54-04
.. nonce: dotef_
.. section: Library
Fixed references leaks when call the ``__setstate__()`` method of
:class:`xml.etree.ElementTree.Element` in the C implementation for already
initialized element.
..
.. bpo: 23420
.. date: 2018-10-17-11-00-00
.. nonce: Lq74Uu
.. section: Library
Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert
Kuska
..
.. bpo: 16965
.. date: 2018-10-12-20-30-42
.. nonce: xo5LAr
.. section: Library
The :term:`2to3` :2to3fixer:`execfile` fixer now opens the file with mode
``'rb'``. Patch by Zackery Spytz.
..
.. bpo: 34966
.. date: 2018-10-12-18-57-52
.. nonce: WZeBHO
.. section: Library
:mod:`pydoc` now supports aliases not only to methods defined in the end
class, but also to inherited methods. The docstring is not duplicated for
aliases.
..
.. bpo: 34941
.. date: 2018-10-09-14-42-16
.. nonce: 1Q5QKv
.. section: Library
Methods ``find()``, ``findtext()`` and ``findall()`` of the ``Element``
class in the :mod:`xml.etree.ElementTree` module are now able to find
children which are instances of ``Element`` subclasses.
..
.. bpo: 34936
.. date: 2018-10-08-21-05-11
.. nonce: 3tRqdq
.. section: Library
Fix ``TclError`` in ``tkinter.Spinbox.selection_element()``. Patch by
Juliette Monsel.
..
.. bpo: 34900
.. date: 2018-10-05-05-55-53
.. nonce: 8RNiFu
.. section: Library
Fixed :meth:`unittest.TestCase.debug` when used to call test methods with
subtests. Patch by Bruno Oliveira.
..
.. bpo: 34866
.. date: 2018-10-03-11-07-28
.. nonce: ML6KpJ
.. section: Library
Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS attacks harder
by limiting the number of ``MiniFieldStorage`` objects created by
``FieldStorage``.
..
.. bpo: 34738
.. date: 2018-09-19-16-51-04
.. nonce: Pr3-iG
.. section: Library
ZIP files created by :mod:`distutils` will now include entries for
directories.
..
.. bpo: 31177
.. date: 2018-09-14-10-38-18
.. nonce: Sv91TN
.. section: Library
Fix bug that prevented using :meth:`reset_mock
<unittest.mock.Mock.reset_mock>` on mock instances with deleted attributes
..
.. bpo: 34604
.. date: 2018-09-07-10-16-34
.. nonce: xL7-kG
.. section: Library
Fix possible mojibake in the error message of `pwd.getpwnam` and
`grp.getgrnam` using string representation because of invisible characters
or trailing whitespaces. Patch by William Grzybowski.
..
.. bpo: 34574
.. date: 2018-09-04-09-32-54
.. nonce: X4RwYI
.. section: Library
OrderedDict iterators are not exhausted during pickling anymore. Patch by
Sergey Fedoseev.
..
.. bpo: 34052
.. date: 2018-07-24-16-37-40
.. nonce: VbbFAE
.. section: Library
:meth:`sqlite3.Connection.create_aggregate`,
:meth:`sqlite3.Connection.create_function`,
:meth:`sqlite3.Connection.set_authorizer`,
:meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError
when unhashable objects are passed as callable. These methods now don't pass
such objects to SQLite API. Previous behavior could lead to segfaults. Patch
by Sergey Fedoseev.
..
.. bpo: 29877
.. date: 2017-12-16-11-40-52
.. nonce: SfWhmz
.. section: Library
compileall: import ProcessPoolExecutor only when needed, preventing hangs on
low resource platforms
..
.. bpo: 22005
.. date: 2017-10-12-22-39-55
.. nonce: lGP-sc
.. section: Library
Implemented unpickling instances of :class:`~datetime.datetime`,
:class:`~datetime.date` and :class:`~datetime.time` pickled by Python 2.
``encoding='latin1'`` should be used for successful decoding.
..
.. bpo: 35089
.. date: 2018-10-28-16-51-31
.. nonce: _stCpS
.. section: Documentation
Remove mention of ``typing.io`` and ``typing.re``. Their types should be
imported from ``typing`` directly.
..
.. bpo: 35038
.. date: 2018-10-25-17-45-09
.. nonce: 2eVOYS
.. section: Documentation
Fix the documentation about an unexisting `f_restricted` attribute in the
frame object. Patch by Stéphane Wirtel
..
.. bpo: 35035
.. date: 2018-10-21-02-20-36
.. nonce: 4zBObK
.. section: Documentation
Rename documentation for :mod:`email.utils` to ``email.utils.rst``.
..
.. bpo: 34967
.. date: 2018-10-13-07-39-57
.. nonce: E40tFP
.. section: Documentation
Use app.add_object_type() instead of the deprecated Sphinx function
app.description_unit()
..
.. bpo: 33594
.. date: 2018-05-21-14-36-12
.. nonce: -HRcyX
.. section: Documentation
Document ``getargspec``, ``from_function`` and ``from_builtin`` as
deprecated in their respective docstring, and include version since
deprecation in DeprecationWarning message.
..
.. bpo: 32613
.. date: 2018-02-05-15-05-53
.. nonce: TDjgM1
.. section: Documentation
Update the faq/windows.html to use the py command from PEP 397 instead of
python.
..
.. bpo: 33725
.. date: 2018-12-09-01-27-29
.. nonce: TaGayj
.. section: Tests
test_multiprocessing_fork may crash on recent versions of macOS. Until the
issue is resolved, skip the test on macOS.
..
.. bpo: 35352
.. date: 2018-11-30-17-18-56
.. nonce: 8bD7GC
.. section: Tests
Modify test_asyncio to use the certificate set from the test directory.
..
.. bpo: 35317
.. date: 2018-11-26-16-54-21
.. nonce: jByGP2
.. section: Tests
Fix ``mktime()`` overflow error in ``test_email``: run
``test_localtime_daylight_true_dst_true()`` and
``test_localtime_daylight_false_dst_true()`` with a specific timezone.
..
.. bpo: 21263
.. date: 2018-11-04-20-17-09
.. nonce: T3qo9r
.. section: Tests
After several reports that test_gdb does not work properly on macOS and
since gdb is not shipped by default anymore, test_gdb is now skipped on
macOS when LLVM Clang has been used to compile Python. Patch by Lysandros
Nikolaou
..
.. bpo: 34279
.. date: 2018-10-27-13-41-55
.. nonce: v0Xqxe
.. section: Tests
regrtest issue a warning when no tests have been executed in a particular
test file. Also, a new final result state is issued if no test have been
executed across all test files. Patch by Pablo Galindo.
..
.. bpo: 35351
.. date: 2018-12-04-15-33-28
.. nonce: ZhhBfT
.. section: Build
When building Python with clang and LTO, LTO flags are no longer passed into
CFLAGS to build third-party C extensions through distutils.
..
.. bpo: 35139
.. date: 2018-11-01-15-01-23
.. nonce: XZTttb
.. section: Build
Fix a compiler error when statically linking `pyexpat` in `Modules/Setup`.
..
.. bpo: 35011
.. date: 2018-10-17-17-38-57
.. nonce: GgoPIC
.. section: Build
Restores the use of pyexpatns.h to isolate our embedded copy of the expat C
library so that its symbols do not conflict at link or dynamic loading time
with an embedding application or other extension modules with their own
version of libexpat.
..
.. bpo: 28015
.. date: 2018-10-16-12-22-36
.. nonce: ylSgFh
.. section: Build
Have --with-lto works correctly with clang.
..
.. bpo: 33015
.. date: 2018-08-24-09-48-25
.. nonce: s21y74
.. section: Build
Fix an undefined behaviour in the pthread implementation of
:c:func:`PyThread_start_new_thread`: add a function wrapper to always return
``NULL``.
..
.. bpo: 31625
.. date: 2017-09-28-23-21-20
.. nonce: Bb2NXr
.. section: Build
Stop using ranlib on static libraries. Instead, we assume ar supports the
's' flag.
..
.. bpo: 31354
.. date: 2017-09-08-11-48-11
.. nonce: 4f-VJK
.. section: Build
Allow --with-lto to be used on all builds, not just `make profile-opt`.
..
.. bpo: 35401
.. date: 2018-12-10-15-01-13
.. nonce: 9L1onG
.. section: Windows
Updates Windows build to OpenSSL 1.0.2q
..
.. bpo: 32890
.. date: 2018-03-08-20-02-38
.. nonce: 3jzFzY
.. section: Windows
Fix usage of GetLastError() instead of errno in os.execve() and
os.truncate().
..
.. bpo: 15663
.. date: 2018-12-11-02-50-35
.. nonce: 6tnyd2
.. section: macOS
The macOS 10.6+ installer now provides a private copy of Tcl/Tk 8.6, like
the 10.9+ installer does.
..
.. bpo: 35402
.. date: 2018-12-10-02-44-48
.. nonce: xzn8qJ
.. section: macOS
Update macOS installer to use Tcl/Tk 8.6.9.1. [NOTE: This change was
reverted for the released python.org 3.6.8 macOS installers due to
regressions found in Tk 8.6.9.1. For now, the installers provide
Tcl/Tk 8.6.8.]
..
.. bpo: 35401
.. date: 2018-12-10-02-37-11
.. nonce: sFhD5z
.. section: macOS
Update macOS installer to use OpenSSL 1.0.2q.
..
.. bpo: 35025
.. date: 2018-10-18-23-54-55
.. nonce: X4LFJg
.. section: macOS
Properly guard the use of the ``CLOCK_GETTIME`` et al. macros in
``timemodule`` on macOS.
..
.. bpo: 24658
.. date: 2018-10-17-14-36-08
.. nonce: Naddgx
.. section: macOS
On macOS, fix reading from and writing into a file with a size larger than 2
GiB.
..
.. bpo: 35213
.. date: 2018-11-12-00-20-01
.. nonce: cqNgzT
.. section: IDLE
Where appropriate, use 'macOS' in idlelib.
..
.. bpo: 34864
.. date: 2018-11-11-17-13-50
.. nonce: cw0PvO
.. section: IDLE
On macOS, warn if the system preference "Prefer tabs when opening documents"
is set to "Always".
..
.. bpo: 34864
.. date: 2018-11-10-21-27-25
.. nonce: Ci-G2q
.. section: IDLE
Document two IDLE on MacOS issues. The System Preferences Dock "prefer tabs
always" setting disables some IDLE features. Menus are a bit different than
as described for Windows and Linux.
..
.. bpo: 35202
.. date: 2018-11-10-09-10-54
.. nonce: TeJJrt
.. section: IDLE
Remove unused imports from lib/idlelib
..
.. bpo: 33000
.. date: 2018-11-06-23-10-54
.. nonce: pQasCt
.. section: IDLE
Document that IDLE's shell has no line limit. A program that runs
indefinitely can overfill memory.
..
.. bpo: 23220
.. date: 2018-11-05-23-23-00
.. nonce: H3SAWE
.. section: IDLE
Explain how IDLE's Shell displays output.
..
.. bpo: 35099
.. date: 2018-11-05-20-43-08
.. nonce: SVOZXC
.. section: IDLE
Improve the doc about IDLE running user code. The section is renamed from
"IDLE -- console differences" is renamed "Running user code". It mostly
covers the implications of using custom sys.stdxxx objects.
..
.. bpo: 35097
.. date: 2018-10-28-20-17-14
.. nonce: 07tm66
.. section: IDLE
Add IDLE doc subsection explaining editor windows. Topics include opening,
title and status bar, .py* extension, and running.
..
.. bpo: 35093
.. date: 2018-10-28-15-53-51
.. nonce: cH-tli
.. section: IDLE
Document the IDLE document viewer in the IDLE doc. Add a paragraph in "Help
and preferences", "Help sources" subsection.
..
.. bpo: 35088
.. date: 2018-10-28-00-54-32
.. nonce: r1lJZd
.. section: IDLE
Update idlelib.help.copy_string docstring. We now use git and backporting
instead of hg and forward merging.
..
.. bpo: 35087
.. date: 2018-10-28-00-08-42
.. nonce: G7gx2-
.. section: IDLE
Update idlelib help files for the current doc build. The main change is the
elimination of chapter-section numbers.
..
.. bpo: 34989
.. date: 2018-10-15-13-22-28
.. nonce: hU4fra
.. section: Tools/Demos
python-gdb.py now handles errors on computing the line number of a Python
frame.

View file

@ -0,0 +1,19 @@
.. bpo: 37437
.. date: 2019-06-27-20-33-50
.. nonce: du39_A
.. release date: 2019-07-02
.. section: Library
Update vendorized expat version to 2.2.7.
..
.. bpo: 34602
.. date: 2019-07-02-01-06-47
.. nonce: 10d4wl
.. section: macOS
Avoid test suite failures on macOS by no longer calling resource.setrlimit
to increase the process stack size limit at runtime. The runtime change is
no longer needed since the interpreter is being built with a larger default
stack size.

View file

@ -0,0 +1,165 @@
.. bpo: 35907
.. date: 2019-05-21-23-20-18
.. nonce: NC_zNK
.. release date: 2019-06-18
.. section: Security
CVE-2019-9948: Avoid file reading by disallowing ``local-file://`` and
``local_file://`` URL schemes in ``URLopener().open()`` and
``URLopener().retrieve()`` of :mod:`urllib.request`.
..
.. bpo: 36742
.. date: 2019-04-29-15-34-59
.. nonce: QCUY0i
.. section: Security
Fixes mishandling of pre-normalization characters in urlsplit().
..
.. bpo: 30458
.. date: 2019-04-10-08-53-30
.. nonce: 51E-DA
.. section: Security
Address CVE-2019-9740 by disallowing URL paths with embedded whitespace or
control characters through into the underlying http client request. Such
potentially malicious header injection URLs now cause an
http.client.InvalidURL exception to be raised.
..
.. bpo: 36216
.. date: 2019-03-06-09-38-40
.. nonce: 6q1m4a
.. section: Security
Changes urlsplit() to raise ValueError when the URL contains characters that
decompose under IDNA encoding (NFKC-normalization) into characters that
affect how the URL is parsed.
..
.. bpo: 33529
.. date: 2019-02-24-18-48-16
.. nonce: wpNNBD
.. section: Security
Prevent fold function used in email header encoding from entering infinite
loop when there are too many non-ASCII characters in a header.
..
.. bpo: 35746
.. date: 2019-01-15-18-16-05
.. nonce: nMSd0j
.. section: Security
[CVE-2019-5010] Fix a NULL pointer deref in ssl module. The cert parser did
not handle CRL distribution points with empty DP or URI correctly. A
malicious or buggy certificate can result into segfault. Vulnerability
(TALOS-2018-0758) reported by Colin Read and Nicolas Edet of Cisco.
..
.. bpo: 35121
.. date: 2018-10-31-15-39-17
.. nonce: EgHv9k
.. section: Security
Don't send cookies of domain A without Domain attribute to domain B when
domain A is a suffix match of domain B while using a cookiejar with
:class:`http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan
Singaravelan.
..
.. bpo: 35643
.. date: 2019-01-02-20-04-49
.. nonce: DaMiaV
.. section: Library
Fixed a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py.
Patch by Mickaël Schoentgen.
..
.. bpo: 35121
.. date: 2018-12-30-14-35-19
.. nonce: oWmiGU
.. section: Library
Don't set cookie for a request when the request path is a prefix match of
the cookie's path attribute but doesn't end with "/". Patch by Karthikeyan
Singaravelan.
..
.. bpo: 35605
.. date: 2018-12-30-09-56-13
.. nonce: gAWt32
.. section: Documentation
Fix documentation build for sphinx<1.6. Patch by Anthony Sottile.
..
.. bpo: 35564
.. date: 2018-12-22-22-52-05
.. nonce: TuEU_D
.. section: Documentation
Explicitly set master_doc variable in conf.py for compliance with Sphinx 2.0
..
.. bpo: 36816
.. date: 2019-05-08-15-55-46
.. nonce: WBKRGZ
.. section: Tests
Update Lib/test/selfsigned_pythontestdotnet.pem to match
self-signed.pythontest.net's new TLS certificate.
..
.. bpo: 35925
.. date: 2019-05-06-18-29-54
.. nonce: gwQPuC
.. section: Tests
Skip specific nntplib and ssl networking tests when they would otherwise
fail due to a modern OS or distro with a default OpenSSL policy of rejecting
connections to servers with weak certificates or disabling TLS below
TLSv1.2.
..
.. bpo: 27313
.. date: 2019-02-24-01-58-38
.. nonce: Sj9veH
.. section: Tests
Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa Tk.
..
.. bpo: 32947
.. date: 2019-01-18-17-46-10
.. nonce: Hk0KnM
.. section: Tests
test_ssl fixes for TLS 1.3 and OpenSSL 1.1.1.
..
.. bpo: 34602
.. date: 2019-04-29-10-54-14
.. nonce: Lrl2zU
.. section: macOS
Avoid failures setting macOS stack resource limit with resource.setrlimit.
This reverts an earlier fix for bpo-18075 which forced a non-default stack
size when building the interpreter executable on macOS.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Build* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *C API* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Core and Builtins* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Documentation* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *IDLE* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Library* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Security* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Tests* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Tools/Demos* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *Windows* section in this directory.

View file

@ -0,0 +1 @@
Put news entry ``blurb`` files for the *macOS* section in this directory.

1
third_party/python/Misc/Porting vendored Normal file
View file

@ -0,0 +1 @@
This document is moved to https://devguide.python.org/porting/

27
third_party/python/Misc/README vendored Normal file
View file

@ -0,0 +1,27 @@
Python Misc subdirectory
========================
This directory contains files that wouldn't fit in elsewhere. Some
documents are only of historic importance.
Files found here
----------------
ACKS Acknowledgements
gdbinit Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY News from previous releases -- oldest last
indent.pro GNU indent profile approximating my C style
NEWS News for this release (for some meaning of "this")
Porting Mini-FAQ on porting to new platforms
python-config.in Python script template for python-config
python.man UNIX man page for the python interpreter
python.pc.in Package configuration info template for pkg-config
python-wing*.wpr Wing IDE project file
README The file you're reading now
README.AIX Information about using Python on AIX
README.coverity Information about running Coverity's Prevent on Python
README.valgrind Information for Valgrind users, see valgrind-python.supp
SpecialBuilds.txt Describes extra symbols you can set for debug builds
svnmap.txt Map of old SVN revs and branches to hg changeset ids
valgrind-python.supp Valgrind suppression file, see README.valgrind
vgrindefs Python configuration for vgrind (a generic pretty printer)

137
third_party/python/Misc/README.AIX vendored Normal file
View file

@ -0,0 +1,137 @@
This documentation tries to help people who intend to use Python on
AIX.
There used to be many issues with Python on AIX, but the major ones
have been corrected for version 3.2, so that Python should now work
rather well on this platform. The remaining known issues are listed in
this document.
======================================================================
Compiling Python
----------------------------------------------------------------------
You can compile Python with gcc or the native AIX compiler. The native
compiler used to give better performances on this system with older
versions of Python. With Python 3.2 it may not be the case anymore,
as this compiler does not allow compiling Python with computed gotos.
Some benchmarks need to be done.
Compiling with gcc:
cd Python-3.2
CC=gcc OPT="-O2" ./configure --enable-shared
make
There are various aliases for the native compiler. The recommended
alias for compiling Python is 'xlc_r', which provides a better level of
compatibility and handles thread initialization properly.
It is a good idea to add the '-qmaxmem=70000' option, otherwise the
compiler considers various files too complex to optimize.
Compiling with xlc:
cd Python-3.2
CC=xlc_r OPT="-O2 -qmaxmem=70000" ./configure --without-computed-gotos --enable-shared
make
Note:
On AIX 5.3 and earlier, you will also need to specify the
"--disable-ipv6" flag to configure. This has been corrected in AIX
6.1.
======================================================================
Memory Limitations
----------------------------------------------------------------------
Note: this section may not apply when compiling Python as a 64 bit
application.
By default on AIX each program gets one segment register for its data
segment. As each segment register covers 256 MB, a Python program that
would use more than 256MB will raise a MemoryError. The standard
Python test suite is one such application.
To allocate more segment registers to Python, you must use the linker
option -bmaxdata or the ldedit tool to specify the number of bytes you
need in the data segment.
For example, if you want to allow 512MB of memory for Python (this is
enough for the test suite to run without MemoryErrors), you should run
the following command at the end of compilation:
ldedit -b maxdata:0x20000000 ./python
You can allow up to 2GB of memory for Python by using the value
0x80000000 for maxdata.
It is also possible to go beyond 2GB of memory by activating Large
Page Use. You should consult the IBM documentation if you need to use
this option. You can also follow the discussion of this problem
in issue 11212 at bugs.python.org.
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/ldedit.htm
======================================================================
Known issues
----------------------------------------------------------------------
Those issues are currently affecting Python on AIX:
* Python has not been fully tested on AIX when compiled as a 64 bit
application.
* issue 3526: the memory used by a Python process will never be
released to the system. If you have a Python application on AIX that
uses a lot of memory, you should read this issue and you may
consider using the provided patch that implements a custom malloc
implementation
* issue 11184: support for large files is currently broken
* issue 11185: os.wait4 does not behave correctly with option WNOHANG
* issue 1745108: there may be some problems with curses.panel
* issue 11192: test_socket fails
* issue 11190: test_locale fails
* issue 11193: test_subprocess fails
* issue 9920: minor arithmetic issues in cmath
* issue 11215: test_fileio fails
* issue 11188: test_time fails
======================================================================
Implementation details for developers
----------------------------------------------------------------------
Python and python modules can now be built as shared libraries on AIX
as usual.
AIX shared libraries require that an "export" and "import" file be
provided at compile time to list all extern symbols which may be
shared between modules. The "export" file (named python.exp) for the
modules and the libraries that belong to the Python core is created by
the "makexp_aix" script before performing the link of the python
binary. It lists all global symbols (exported during the link) of the
modules and the libraries that make up the python executable.
When shared library modules (.so files) are made, a second shell
script is invoked. This script is named "ld_so_aix" and is also
provided with the distribution in the Modules subdirectory. This
script acts as an "ld" wrapper which hides the explicit management of
"export" and "import" files; it adds the appropriate arguments (in the
appropriate order) to the link command that creates the shared module.
Among other things, it specifies that the "python.exp" file is an
"import" file for the shared module.
This mechanism should be transparent.

22
third_party/python/Misc/README.coverity vendored Normal file
View file

@ -0,0 +1,22 @@
Coverity has a static analysis tool (Prevent) which is similar to Klocwork.
They run their tool on the Python source code (SVN head) on a daily basis.
The results are available at:
http://scan.coverity.com/
About 20 people have access to the analysis reports. Other
people can be added by request.
Prevent was first run on the Python 2.5 source code in March 2006.
There were originally about 100 defects reported. Some of these
were false positives. Over 70 issues were uncovered.
Each warning has a unique id and comments that can be made on it.
When checking in changes due to a warning, the unique id
as reported by the tool was added to the SVN commit message.
False positives were annotated so that the comments can
be reviewed and reversed if the analysis was incorrect.
Contact python-dev@python.org for more information.

100
third_party/python/Misc/README.valgrind vendored Normal file
View file

@ -0,0 +1,100 @@
This document describes some caveats about the use of Valgrind with
Python. Valgrind is used periodically by Python developers to try
to ensure there are no memory leaks or invalid memory reads/writes.
UPDATE: Python 3.6 now supports PYTHONMALLOC=malloc environment variable which
can be used to force the usage of the malloc() allocator of the C library.
If you don't want to read about the details of using Valgrind, there
are still two things you must do to suppress the warnings. First,
you must use a suppressions file. One is supplied in
Misc/valgrind-python.supp. Second, you must do one of the following:
* Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c,
then rebuild Python
* Uncomment the lines in Misc/valgrind-python.supp that
suppress the warnings for PyObject_Free and PyObject_Realloc
If you want to use Valgrind more effectively and catch even more
memory leaks, you will need to configure python --without-pymalloc.
PyMalloc allocates a few blocks in big chunks and most object
allocations don't call malloc, they use chunks doled about by PyMalloc
from the big blocks. This means Valgrind can't detect
many allocations (and frees), except for those that are forwarded
to the system malloc. Note: configuring python --without-pymalloc
makes Python run much slower, especially when running under Valgrind.
You may need to run the tests in batches under Valgrind to keep
the memory usage down to allow the tests to complete. It seems to take
about 5 times longer to run --without-pymalloc.
Apr 15, 2006:
test_ctypes causes Valgrind 3.1.1 to fail (crash).
test_socket_ssl should be skipped when running valgrind.
The reason is that it purposely uses uninitialized memory.
This causes many spurious warnings, so it's easier to just skip it.
Details:
--------
Python uses its own small-object allocation scheme on top of malloc,
called PyMalloc.
Valgrind may show some unexpected results when PyMalloc is used.
Starting with Python 2.3, PyMalloc is used by default. You can disable
PyMalloc when configuring python by adding the --without-pymalloc option.
If you disable PyMalloc, most of the information in this document and
the supplied suppressions file will not be useful. As discussed above,
disabling PyMalloc can catch more problems.
If you use valgrind on a default build of Python, you will see
many errors like:
==6399== Use of uninitialised value of size 4
==6399== at 0x4A9BDE7E: PyObject_Free (obmalloc.c:711)
==6399== by 0x4A9B8198: dictresize (dictobject.c:477)
These are expected and not a problem. Tim Peters explains
the situation:
PyMalloc needs to know whether an arbitrary address is one
that's managed by it, or is managed by the system malloc.
The current scheme allows this to be determined in constant
time, regardless of how many memory areas are under pymalloc's
control.
The memory pymalloc manages itself is in one or more "arenas",
each a large contiguous memory area obtained from malloc.
The base address of each arena is saved by pymalloc
in a vector. Each arena is carved into "pools", and a field at
the start of each pool contains the index of that pool's arena's
base address in that vector.
Given an arbitrary address, pymalloc computes the pool base
address corresponding to it, then looks at "the index" stored
near there. If the index read up is out of bounds for the
vector of arena base addresses pymalloc maintains, then
pymalloc knows for certain that this address is not under
pymalloc's control. Otherwise the index is in bounds, and
pymalloc compares
the arena base address stored at that index in the vector
to
the arbitrary address pymalloc is investigating
pymalloc controls this arbitrary address if and only if it lies
in the arena the address's pool's index claims it lies in.
It doesn't matter whether the memory pymalloc reads up ("the
index") is initialized. If it's not initialized, then
whatever trash gets read up will lead pymalloc to conclude
(correctly) that the address isn't controlled by it, either
because the index is out of bounds, or the index is in bounds
but the arena it represents doesn't contain the address.
This determination has to be made on every call to one of
pymalloc's free/realloc entry points, so its speed is critical
(Python allocates and frees dynamic memory at a ferocious rate
-- everything in Python, from integers to "stack frames",
lives in the heap).

View file

@ -0,0 +1,236 @@
This file describes some special Python build types enabled via compile-time
preprocessor defines.
IMPORTANT: if you want to build a debug-enabled Python, it is recommended that
you use ``./configure --with-pydebug``, rather than the options listed here.
However, if you wish to define some of these options individually, it is best
to define them in the EXTRA_CFLAGS make variable;
``make EXTRA_CFLAGS="-DPy_REF_DEBUG"``.
Py_REF_DEBUG
------------
Turn on aggregate reference counting. This arranges that extern _Py_RefTotal
hold a count of all references, the sum of ob_refcnt across all objects.
Passing ``-X showrefcount`` on the command line causes the interactive
interpreter to print the reference count total as well the number of memory
blocks allocated after each statement:
>>> 23
23
[8288 refs, 14332 blocks]
>>>
Note that if this count increases when you're not storing away new objects,
there's probably a leak. Remember, though, that in interactive mode the special
name "_" holds a reference to the last result displayed!
Py_REF_DEBUG also checks after every decref to verify that the refcount hasn't
gone negative, and causes an immediate fatal error if it has.
Special gimmicks:
sys.gettotalrefcount()
Return current total of all refcounts.
Py_TRACE_REFS
-------------
Turn on heavy reference debugging. This is major surgery. Every PyObject grows
two more pointers, to maintain a doubly-linked list of all live heap-allocated
objects. Most built-in type objects are not in this list, as they're statically
allocated. Starting in Python 2.3, if COUNT_ALLOCS (see below) is also defined,
a static type object T does appear in this list if at least one object of type T
has been created.
Note that because the fundamental PyObject layout changes, Python modules
compiled with Py_TRACE_REFS are incompatible with modules compiled without it.
Py_TRACE_REFS implies Py_REF_DEBUG.
Special gimmicks:
sys.getobjects(max[, type])
Return list of the (no more than) max most-recently allocated objects, most
recently allocated first in the list, least-recently allocated last in the
list. max=0 means no limit on list length. If an optional type object is
passed, the list is also restricted to objects of that type. The return
list itself, and some temp objects created just to call sys.getobjects(),
are excluded from the return list. Note that the list returned is just
another object, though, so may appear in the return list the next time you
call getobjects(); note that every object in the list is kept alive too,
simply by virtue of being in the list.
envvar PYTHONDUMPREFS
If this envvar exists, Py_FinalizeEx() arranges to print a list of all
still-live heap objects. This is printed twice, in different formats,
before and after Py_FinalizeEx has cleaned up everything it can clean up. The
first output block produces the repr() of each object so is more
informative; however, a lot of stuff destined to die is still alive then.
The second output block is much harder to work with (repr() can't be invoked
anymore -- the interpreter has been torn down too far), but doesn't list any
objects that will die. The tool script combinerefs.py can be run over this
to combine the info from both output blocks. The second output block, and
combinerefs.py, were new in Python 2.3b1.
PYMALLOC_DEBUG
--------------
When pymalloc is enabled (WITH_PYMALLOC is defined), calls to the PyObject_
memory routines are handled by Python's own small-object allocator, while calls
to the PyMem_ memory routines are directed to the system malloc/ realloc/free.
If PYMALLOC_DEBUG is also defined, calls to both PyObject_ and PyMem_ memory
routines are directed to a special debugging mode of Python's small-object
allocator.
This mode fills dynamically allocated memory blocks with special, recognizable
bit patterns, and adds debugging info on each end of dynamically allocated
memory blocks. The special bit patterns are:
#define CLEANBYTE 0xCB /* clean (newly allocated) memory */
#define DEADBYTE 0xDB /* dead (newly freed) memory */
#define FORBIDDENBYTE 0xFB /* forbidden -- untouchable bytes */
Strings of these bytes are unlikely to be valid addresses, floats, or 7-bit
ASCII strings.
Let S = sizeof(size_t). 2*S bytes are added at each end of each block of N bytes
requested. The memory layout is like so, where p represents the address
returned by a malloc-like or realloc-like function (p[i:j] means the slice of
bytes from *(p+i) inclusive up to *(p+j) exclusive; note that the treatment of
negative indices differs from a Python slice):
p[-2*S:-S]
Number of bytes originally asked for. This is a size_t, big-endian (easier
to read in a memory dump).
p[-S]
API ID. See PEP 445. This is a character, but seems undocumented.
p[-S+1:0]
Copies of FORBIDDENBYTE. Used to catch under- writes and reads.
p[0:N]
The requested memory, filled with copies of CLEANBYTE, used to catch
reference to uninitialized memory. When a realloc-like function is called
requesting a larger memory block, the new excess bytes are also filled with
CLEANBYTE. When a free-like function is called, these are overwritten with
DEADBYTE, to catch reference to freed memory. When a realloc- like function
is called requesting a smaller memory block, the excess old bytes are also
filled with DEADBYTE.
p[N:N+S]
Copies of FORBIDDENBYTE. Used to catch over- writes and reads.
p[N+S:N+2*S]
A serial number, incremented by 1 on each call to a malloc-like or
realloc-like function. Big-endian size_t. If "bad memory" is detected
later, the serial number gives an excellent way to set a breakpoint on the
next run, to capture the instant at which this block was passed out. The
static function bumpserialno() in obmalloc.c is the only place the serial
number is incremented, and exists so you can set such a breakpoint easily.
A realloc-like or free-like function first checks that the FORBIDDENBYTEs at
each end are intact. If they've been altered, diagnostic output is written to
stderr, and the program is aborted via Py_FatalError(). The other main failure
mode is provoking a memory error when a program reads up one of the special bit
patterns and tries to use it as an address. If you get in a debugger then and
look at the object, you're likely to see that it's entirely filled with 0xDB
(meaning freed memory is getting used) or 0xCB (meaning uninitialized memory is
getting used).
Note that PYMALLOC_DEBUG requires WITH_PYMALLOC.
Special gimmicks:
envvar PYTHONMALLOCSTATS
If this envvar exists, a report of pymalloc summary statistics is printed to
stderr whenever a new arena is allocated, and also by Py_FinalizeEx().
Changed in 2.5: The number of extra bytes allocated is 4*sizeof(size_t).
Before it was 16 on all boxes, reflecting that Python couldn't make use of
allocations >= 2**32 bytes even on 64-bit boxes before 2.5.
Py_DEBUG
--------
This is what is generally meant by "a debug build" of Python.
Py_DEBUG implies LLTRACE, Py_REF_DEBUG, Py_TRACE_REFS, and PYMALLOC_DEBUG (if
WITH_PYMALLOC is enabled). In addition, C assert()s are enabled (via the C way:
by not defining NDEBUG), and some routines do additional sanity checks inside
"#ifdef Py_DEBUG" blocks.
COUNT_ALLOCS
------------
Each type object grows three new members:
/* Number of times an object of this type was allocated. */
int tp_allocs;
/* Number of times an object of this type was deallocated. */
int tp_frees;
/* Highwater mark: the maximum value of tp_allocs - tp_frees so
* far; or, IOW, the largest number of objects of this type alive at
* the same time.
*/
int tp_maxalloc;
Allocation and deallocation code keeps these counts up to date. Py_FinalizeEx()
displays a summary of the info returned by sys.getcounts() (see below), along
with assorted other special allocation counts (like the number of tuple
allocations satisfied by a tuple free-list, the number of 1-character strings
allocated, etc).
Before Python 2.2, type objects were immortal, and the COUNT_ALLOCS
implementation relies on that. As of Python 2.2, heap-allocated type/ class
objects can go away. COUNT_ALLOCS can blow up in 2.2 and 2.2.1 because of this;
this was fixed in 2.2.2. Use of COUNT_ALLOCS makes all heap-allocated type
objects immortal, except for those for which no object of that type is ever
allocated.
Starting with Python 2.3, If Py_TRACE_REFS is also defined, COUNT_ALLOCS
arranges to ensure that the type object for each allocated object appears in the
doubly-linked list of all objects maintained by Py_TRACE_REFS.
Special gimmicks:
sys.getcounts()
Return a list of 4-tuples, one entry for each type object for which at least
one object of that type was allocated. Each tuple is of the form:
(tp_name, tp_allocs, tp_frees, tp_maxalloc)
Each distinct type object gets a distinct entry in this list, even if two or
more type objects have the same tp_name (in which case there's no way to
distinguish them by looking at this list). The list is ordered by time of
first object allocation: the type object for which the first allocation of
an object of that type occurred most recently is at the front of the list.
LLTRACE
-------
Compile in support for Low Level TRACE-ing of the main interpreter loop.
When this preprocessor symbol is defined, before PyEval_EvalFrame executes a
frame's code it checks the frame's global namespace for a variable
"__ltrace__". If such a variable is found, mounds of information about what
the interpreter is doing are sprayed to stdout, such as every opcode and opcode
argument and values pushed onto and popped off the value stack.
Not useful very often, but very useful when needed.
CALL_PROFILE
------------
Count the number of function calls executed.
When this symbol is defined, the ceval mainloop and helper functions count the
number of function calls made. It keeps detailed statistics about what kind of
object was called and whether the call hit any of the special fast paths in the
code.

187
third_party/python/Misc/coverity_model.c vendored Normal file
View file

@ -0,0 +1,187 @@
/* Coverity Scan model
*
* This is a modeling file for Coverity Scan. Modeling helps to avoid false
* positives.
*
* - A model file can't import any header files.
* - Therefore only some built-in primitives like int, char and void are
* available but not wchar_t, NULL etc.
* - Modeling doesn't need full structs and typedefs. Rudimentary structs
* and similar types are sufficient.
* - An uninitialized local pointer is not an error. It signifies that the
* variable could be either NULL or have some data.
*
* Coverity Scan doesn't pick up modifications automatically. The model file
* must be uploaded by an admin in the analysis settings of
* http://scan.coverity.com/projects/200
*/
/* dummy definitions, in most cases struct fields aren't required. */
#define NULL (void *)0
#define assert(op) /* empty */
typedef int sdigit;
typedef long Py_ssize_t;
typedef unsigned short wchar_t;
typedef struct {} PyObject;
typedef struct {} grammar;
typedef struct {} DIR;
typedef struct {} RFILE;
/* Python/pythonrun.c
* resource leak false positive */
void Py_FatalError(const char *msg) {
__coverity_panic__();
}
/* Objects/longobject.c
* NEGATIVE_RETURNS false positive */
static PyObject *get_small_int(sdigit ival)
{
/* Never returns NULL */
PyObject *p;
assert(p != NULL);
return p;
}
PyObject *PyLong_FromLong(long ival)
{
PyObject *p;
int maybe;
if ((ival >= -5) && (ival < 257 + 5)) {
p = get_small_int(ival);
assert(p != NULL);
return p;
}
if (maybe)
return p;
else
return NULL;
}
PyObject *PyLong_FromLongLong(long long ival)
{
return PyLong_FromLong((long)ival);
}
PyObject *PyLong_FromSsize_t(Py_ssize_t ival)
{
return PyLong_FromLong((long)ival);
}
/* tainted sinks
*
* Coverity considers argv, environ, read() data etc as tained.
*/
PyObject *PyErr_SetFromErrnoWithFilename(PyObject *exc, const char *filename)
{
__coverity_tainted_data_sink__(filename);
return NULL;
}
/* Python/fileutils.c */
wchar_t *Py_DecodeLocale(const char* arg, size_t *size)
{
wchar_t *w;
__coverity_tainted_data_sink__(arg);
__coverity_tainted_data_sink__(size);
return w;
}
/* Parser/pgenmain.c */
grammar *getgrammar(const char *filename)
{
grammar *g;
__coverity_tainted_data_sink__(filename);
return g;
}
/* Python/marshal.c */
static Py_ssize_t r_string(char *s, Py_ssize_t n, RFILE *p)
{
__coverity_tainted_string_argument__(s);
return 0;
}
static long r_long(RFILE *p)
{
long l;
unsigned char buffer[4];
r_string((char *)buffer, 4, p);
__coverity_tainted_string_sanitize_content__(buffer);
l = (long)buffer;
return l;
}
/* Coverity doesn't understand that fdopendir() may take ownership of fd. */
DIR *fdopendir(int fd)
{
DIR *d;
if (d) {
__coverity_close__(fd);
}
return d;
}
/* Modules/_datetime.c
*
* Coverity thinks that the input values for these function come from a
* tainted source PyDateTime_DATE_GET_* macros use bit shifting.
*/
static PyObject *
build_struct_time(int y, int m, int d, int hh, int mm, int ss, int dstflag)
{
PyObject *result;
__coverity_tainted_data_sanitize__(y);
__coverity_tainted_data_sanitize__(m);
__coverity_tainted_data_sanitize__(d);
__coverity_tainted_data_sanitize__(hh);
__coverity_tainted_data_sanitize__(mm);
__coverity_tainted_data_sanitize__(ss);
__coverity_tainted_data_sanitize__(dstflag);
return result;
}
static int
ymd_to_ord(int year, int month, int day)
{
int ord = 0;
__coverity_tainted_data_sanitize__(year);
__coverity_tainted_data_sanitize__(month);
__coverity_tainted_data_sanitize__(day);
return ord;
}
static int
normalize_date(int *year, int *month, int *day)
{
__coverity_tainted_data_sanitize__(*year);
__coverity_tainted_data_sanitize__(*month);
__coverity_tainted_data_sanitize__(*day);
return 0;
}
static int
weekday(int year, int month, int day)
{
int w = 0;
__coverity_tainted_data_sanitize__(year);
__coverity_tainted_data_sanitize__(month);
__coverity_tainted_data_sanitize__(day);
return w;
}

162
third_party/python/Misc/gdbinit vendored Normal file
View file

@ -0,0 +1,162 @@
# If you use the GNU debugger gdb to debug the Python C runtime, you
# might find some of the following commands useful. Copy this to your
# ~/.gdbinit file and it'll get loaded into gdb automatically when you
# start it up. Then, at the gdb prompt you can do things like:
#
# (gdb) pyo apyobjectptr
# <module 'foobar' (built-in)>
# refcounts: 1
# address : 84a7a2c
# $1 = void
# (gdb)
#
# NOTE: If you have gdb 7 or later, it supports debugging of Python directly
# with embedded macros that you may find superior to what is in here.
# See Tools/gdb/libpython.py and http://bugs.python.org/issue8032.
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyObject*
define pyo
# side effect of calling _PyObject_Dump is to dump the object's
# info - assigning just prevents gdb from printing the
# NULL return value
set $_unused_void = _PyObject_Dump($arg0)
end
# Prints a representation of the object to stderr, along with the
# number of reference counts it current has and the hex address the
# object is allocated at. The argument must be a PyGC_Head*
define pyg
print _PyGC_Dump($arg0)
end
# print the local variables of the current frame
define pylocals
set $_i = 0
while $_i < f->f_code->co_nlocals
if f->f_localsplus + $_i != 0
set $_names = f->f_code->co_varnames
set $_name = PyUnicode_AsUTF8(PyTuple_GetItem($_names, $_i))
printf "%s:\n", $_name
pyo f->f_localsplus[$_i]
end
set $_i = $_i + 1
end
end
# A rewrite of the Python interpreter's line number calculator in GDB's
# command language
define lineno
set $__continue = 1
set $__co = f->f_code
set $__lasti = f->f_lasti
set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
set $__li = $__co->co_firstlineno
set $__ad = 0
while ($__sz-1 >= 0 && $__continue)
set $__sz = $__sz - 1
set $__ad = $__ad + *$__p
set $__p = $__p + 1
if ($__ad > $__lasti)
set $__continue = 0
else
set $__li = $__li + *$__p
set $__p = $__p + 1
end
end
printf "%d", $__li
end
# print the current frame - verbose
define pyframev
pyframe
pylocals
end
define pyframe
set $__fn = PyUnicode_AsUTF8(f->f_code->co_filename)
set $__n = PyUnicode_AsUTF8(f->f_code->co_name)
printf "%s (", $__fn
lineno
printf "): %s\n", $__n
### Uncomment these lines when using from within Emacs/XEmacs so it will
### automatically track/display the current Python source line
# printf "%c%c%s:", 032, 032, $__fn
# lineno
# printf ":1\n"
end
### Use these at your own risk. It appears that a bug in gdb causes it
### to crash in certain circumstances.
#define up
# up-silently 1
# printframe
#end
#define down
# down-silently 1
# printframe
#end
define printframe
if $pc > PyEval_EvalFrameEx && $pc < _PyEval_EvalFrameDefault
pyframe
else
frame
end
end
# Here's a somewhat fragile way to print the entire Python stack from gdb.
# It's fragile because the tests for the value of $pc depend on the layout
# of specific functions in the C source code.
# Explanation of while and if tests: We want to pop up the stack until we
# land in Py_Main (this is probably an incorrect assumption in an embedded
# interpreter, but the test can be extended by an interested party). If
# Py_Main <= $pc <= Py_GetArgcArv is true, $pc is in Py_Main(), so the while
# tests succeeds as long as it's not true. In a similar fashion the if
# statement tests to see if we are in PyEval_EvalFrameEx().
# Note: The name of the main interpreter function and the function which
# follow it has changed over time. This version of pystack works with this
# version of Python. If you try using it with older or newer versions of
# the interpreter you may will have to change the functions you compare with
# $pc.
# print the entire Python call stack
define pystack
while $pc < Py_Main || $pc > Py_GetArgcArgv
if $pc > PyEval_EvalFrameEx && $pc < _PyEval_EvalFrameDefault
pyframe
end
up-silently 1
end
select-frame 0
end
# print the entire Python call stack - verbose mode
define pystackv
while $pc < Py_Main || $pc > Py_GetArgcArgv
if $pc > PyEval_EvalFrameEx && $pc < _PyEval_EvalFrameDefault
pyframev
end
up-silently 1
end
select-frame 0
end
# generally useful macro to print a Unicode string
def pu
set $uni = $arg0
set $i = 0
while (*$uni && $i++<100)
if (*$uni < 0x80)
print *(char*)$uni++
else
print /x *(short*)$uni++
end
end
end

24
third_party/python/Misc/indent.pro vendored Normal file
View file

@ -0,0 +1,24 @@
--blank-lines-after-declarations
--blank-lines-after-procedures
--braces-after-func-def-line
--braces-on-if-line
--braces-on-struct-decl-line
--break-after-boolean-operator
--comment-indentation25
--comment-line-length79
--continue-at-parentheses
--dont-cuddle-do-while
--dont-cuddle-else
--indent-level4
--line-length79
--no-space-after-casts
--no-space-after-function-call-names
--no-space-after-parentheses
--no-tabs
--procnames-start-lines
--space-after-for
--space-after-if
--space-after-while
--swallow-optional-blank-lines
-T PyCFunction
-T PyObject

View file

@ -0,0 +1,69 @@
#!@EXENAME@
# -*- python -*-
# Keep this script in sync with python-config.sh.in
import getopt
import os
import sys
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']
def exit_with_usage(code=1):
print("Usage: {0} [{1}]".format(
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)), file=sys.stderr)
sys.exit(code)
try:
opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
except getopt.error:
exit_with_usage()
if not opts:
exit_with_usage()
pyver = sysconfig.get_config_var('VERSION')
getvar = sysconfig.get_config_var
opt_flags = [flag for (flag, val) in opts]
if '--help' in opt_flags:
exit_with_usage(code=0)
for opt in opt_flags:
if opt == '--prefix':
print(sysconfig.get_config_var('prefix'))
elif opt == '--exec-prefix':
print(sysconfig.get_config_var('exec_prefix'))
elif opt in ('--includes', '--cflags'):
flags = ['-I' + sysconfig.get_path('include'),
'-I' + sysconfig.get_path('platinclude')]
if opt == '--cflags':
flags.extend(getvar('CFLAGS').split())
print(' '.join(flags))
elif opt in ('--libs', '--ldflags'):
libs = ['-lpython' + pyver + sys.abiflags]
libs += getvar('LIBS').split()
libs += getvar('SYSLIBS').split()
# add the prefix/lib/pythonX.Y/config dir, but only if there is no
# shared library in prefix/lib/.
if opt == '--ldflags':
if not getvar('Py_ENABLE_SHARED'):
libs.insert(0, '-L' + getvar('LIBPL'))
if not getvar('PYTHONFRAMEWORK'):
libs.extend(getvar('LINKFORSHARED').split())
print(' '.join(libs))
elif opt == '--extension-suffix':
print(sysconfig.get_config_var('EXT_SUFFIX'))
elif opt == '--abiflags':
print(sys.abiflags)
elif opt == '--configdir':
print(sysconfig.get_config_var('LIBPL'))

View file

@ -0,0 +1,112 @@
#!/bin/sh
# Keep this script in sync with python-config.in
exit_with_usage ()
{
echo "Usage: $0 --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir"
exit $1
}
if [ "$1" = "" ] ; then
exit_with_usage 1
fi
# Returns the actual prefix where this script was installed to.
installed_prefix ()
{
RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
if which readlink >/dev/null 2>&1 ; then
if readlink -f "$RESULT" >/dev/null 2>&1; then
RESULT=$(readlink -f "$RESULT")
fi
fi
echo $RESULT
}
prefix_real=$(installed_prefix "$0")
# Use sed to fix paths from their built-to locations to their installed-to
# locations. Keep prefix & exec_prefix using their original values in case
# they are referenced in other configure variables, to prevent double
# substitution, issue #22140.
prefix="@prefix@"
exec_prefix="@exec_prefix@"
exec_prefix_real=${prefix_real}
includedir=$(echo "@includedir@" | sed "s#$prefix#$prefix_real#")
libdir=$(echo "@libdir@" | sed "s#$prefix#$prefix_real#")
CFLAGS=$(echo "@CFLAGS@" | sed "s#$prefix#$prefix_real#")
VERSION="@VERSION@"
LIBM="@LIBM@"
LIBC="@LIBC@"
SYSLIBS="$LIBM $LIBC"
ABIFLAGS="@ABIFLAGS@"
LIBS="-lpython${VERSION}${ABIFLAGS} @LIBS@ $SYSLIBS"
BASECFLAGS="@BASECFLAGS@"
LDLIBRARY="@LDLIBRARY@"
LINKFORSHARED="@LINKFORSHARED@"
OPT="@OPT@"
PY_ENABLE_SHARED="@PY_ENABLE_SHARED@"
LDVERSION="@LDVERSION@"
LIBDEST=${prefix_real}/lib/python${VERSION}
LIBPL=$(echo "@LIBPL@" | sed "s#$prefix#$prefix_real#")
SO="@EXT_SUFFIX@"
PYTHONFRAMEWORK="@PYTHONFRAMEWORK@"
INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}"
# Scan for --help or unknown argument.
for ARG in $*
do
case $ARG in
--help)
exit_with_usage 0
;;
--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--abiflags|--configdir)
;;
*)
exit_with_usage 1
;;
esac
done
for ARG in "$@"
do
case "$ARG" in
--prefix)
echo "$prefix_real"
;;
--exec-prefix)
echo "$exec_prefix_real"
;;
--includes)
echo "$INCDIR $PLATINCDIR"
;;
--cflags)
echo "$INCDIR $PLATINCDIR $BASECFLAGS $CFLAGS $OPT"
;;
--libs)
echo "$LIBS"
;;
--ldflags)
LINKFORSHAREDUSED=
if [ -z "$PYTHONFRAMEWORK" ] ; then
LINKFORSHAREDUSED=$LINKFORSHARED
fi
LIBPLUSED=
if [ "$PY_ENABLE_SHARED" = "0" ] ; then
LIBPLUSED="-L$LIBPL"
fi
echo "$LIBPLUSED -L$libdir $LIBS $LINKFORSHAREDUSED"
;;
--extension-suffix)
echo "$SO"
;;
--abiflags)
echo "$ABIFLAGS"
;;
--configdir)
echo "$LIBPL"
;;
esac
done

View file

@ -0,0 +1,13 @@
#!wing
#!version=3.0
##################################################################
# Wing IDE project file #
##################################################################
[project attributes]
proj.directory-list = [{'dirloc': loc('..'),
'excludes': [u'Lib/__pycache__'],
'filter': '*',
'include_hidden': False,
'recursive': True,
'watch_for_changes': True}]
proj.file-type = 'shared'

View file

@ -0,0 +1,18 @@
#!wing
#!version=4.0
##################################################################
# Wing IDE project file #
##################################################################
[project attributes]
proj.directory-list = [{'dirloc': loc('..'),
'excludes': [u'.hg',
u'Lib/unittest/__pycache__',
u'Lib/unittest/test/__pycache__',
u'Lib/__pycache__',
u'build',
u'Doc/build'],
'filter': '*',
'include_hidden': False,
'recursive': True,
'watch_for_changes': True}]
proj.file-type = 'shared'

View file

@ -0,0 +1,18 @@
#!wing
#!version=5.0
##################################################################
# Wing IDE project file #
##################################################################
[project attributes]
proj.directory-list = [{'dirloc': loc('..'),
'excludes': [u'.hg',
u'Lib/unittest/__pycache__',
u'Lib/unittest/test/__pycache__',
u'Lib/__pycache__',
u'build',
u'Doc/build'],
'filter': '*',
'include_hidden': False,
'recursive': True,
'watch_for_changes': True}]
proj.file-type = 'shared'

455
third_party/python/Misc/python.man vendored Normal file
View file

@ -0,0 +1,455 @@
.TH PYTHON "1"
.\" To view this file while editing, run it through groff:
.\" groff -Tascii -man python.man | less
.SH NAME
python \- an interpreted, interactive, object-oriented programming language
.SH SYNOPSIS
.B python
[
.B \-B
]
[
.B \-b
]
[
.B \-d
]
[
.B \-E
]
[
.B \-h
]
[
.B \-i
]
[
.B \-I
]
.br
[
.B \-m
.I module-name
]
[
.B \-q
]
[
.B \-O
]
[
.B \-OO
]
[
.B \-s
]
[
.B \-S
]
[
.B \-u
]
.br
[
.B \-v
]
[
.B \-V
]
[
.B \-W
.I argument
]
[
.B \-x
]
[
[
.B \-X
.I option
]
.B \-?
]
.br
[
.B \-c
.I command
|
.I script
|
\-
]
[
.I arguments
]
.SH DESCRIPTION
Python is an interpreted, interactive, object-oriented programming
language that combines remarkable power with very clear syntax.
For an introduction to programming in Python, see the Python Tutorial.
The Python Library Reference documents built-in and standard types,
constants, functions and modules.
Finally, the Python Reference Manual describes the syntax and
semantics of the core language in (perhaps too) much detail.
(These documents may be located via the
.B "INTERNET RESOURCES"
below; they may be installed on your system as well.)
.PP
Python's basic power can be extended with your own modules written in
C or C++.
On most systems such modules may be dynamically loaded.
Python is also adaptable as an extension language for existing
applications.
See the internal documentation for hints.
.PP
Documentation for installed Python modules and packages can be
viewed by running the
.B pydoc
program.
.SH COMMAND LINE OPTIONS
.TP
.B \-B
Don't write
.I .pyc
files on import. See also PYTHONDONTWRITEBYTECODE.
.TP
.B \-b
Issue warnings about str(bytes_instance), str(bytearray_instance)
and comparing bytes/bytearray with str. (-bb: issue errors)
.TP
.BI "\-c " command
Specify the command to execute (see next section).
This terminates the option list (following options are passed as
arguments to the command).
.TP
.B \-d
Turn on parser debugging output (for wizards only, depending on
compilation options).
.TP
.B \-E
Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
the behavior of the interpreter.
.TP
.B \-h ", " \-? ", "\-\-help
Prints the usage for the interpreter executable and exits.
.TP
.B \-i
When a script is passed as first argument or the \fB\-c\fP option is
used, enter interactive mode after executing the script or the
command. It does not read the $PYTHONSTARTUP file. This can be
useful to inspect global variables or a stack trace when a script
raises an exception.
.TP
.B \-I
Run Python in isolated mode. This also implies \fB\-E\fP and \fB\-s\fP. In
isolated mode sys.path contains neither the script's directory nor the user's
site-packages directory. All PYTHON* environment variables are ignored, too.
Further restrictions may be imposed to prevent the user from injecting
malicious code.
.TP
.BI "\-m " module-name
Searches
.I sys.path
for the named module and runs the corresponding
.I .py
file as a script.
.TP
.B \-O
Remove assert statements and any code conditional on the value of
__debug__; augment the filename for compiled (bytecode) files by
adding .opt-1 before the .pyc extension.
.TP
.B \-OO
Do \fB-O\fP and also discard docstrings; change the filename for
compiled (bytecode) files by adding .opt-2 before the .pyc extension.
.TP
.B \-q
Do not print the version and copyright messages. These messages are
also suppressed in non-interactive mode.
.TP
.B \-s
Don't add user site directory to sys.path.
.TP
.B \-S
Disable the import of the module
.I site
and the site-dependent manipulations of
.I sys.path
that it entails. Also disable these manipulations if
.I site
is explicitly imported later.
.TP
.B \-u
Force the binary I/O layers of stdout and stderr to be unbuffered.
stdin is always buffered.
The text I/O layer will still be line-buffered.
.\" Note that there is internal buffering in readlines() and
.\" file-object iterators ("for line in sys.stdin") which is not
.\" influenced by this option. To work around this, you will want to use
.\" "sys.stdin.readline()" inside a "while 1:" loop.
.TP
.B \-v
Print a message each time a module is initialized, showing the place
(filename or built-in module) from which it is loaded. When given
twice, print a message for each file that is checked for when
searching for a module. Also provides information on module cleanup
at exit.
.TP
.B \-V ", " \-\-version
Prints the Python version number of the executable and exits. When given
twice, print more information about the build.
.TP
.BI "\-W " argument
Warning control. Python sometimes prints warning message to
.IR sys.stderr .
A typical warning message has the following form:
.IB file ":" line ": " category ": " message.
By default, each warning is printed once for each source line where it
occurs. This option controls how often warnings are printed.
Multiple
.B \-W
options may be given; when a warning matches more than one
option, the action for the last matching option is performed.
Invalid
.B \-W
options are ignored (a warning message is printed about invalid
options when the first warning is issued). Warnings can also be
controlled from within a Python program using the
.I warnings
module.
The simplest form of
.I argument
is one of the following
.I action
strings (or a unique abbreviation):
.B ignore
to ignore all warnings;
.B default
to explicitly request the default behavior (printing each warning once
per source line);
.B all
to print a warning each time it occurs (this may generate many
messages if a warning is triggered repeatedly for the same source
line, such as inside a loop);
.B module
to print each warning only the first time it occurs in each
module;
.B once
to print each warning only the first time it occurs in the program; or
.B error
to raise an exception instead of printing a warning message.
The full form of
.I argument
is
.IB action : message : category : module : line.
Here,
.I action
is as explained above but only applies to messages that match the
remaining fields. Empty fields match all values; trailing empty
fields may be omitted. The
.I message
field matches the start of the warning message printed; this match is
case-insensitive. The
.I category
field matches the warning category. This must be a class name; the
match test whether the actual warning category of the message is a
subclass of the specified warning category. The full class name must
be given. The
.I module
field matches the (fully-qualified) module name; this match is
case-sensitive. The
.I line
field matches the line number, where zero matches all line numbers and
is thus equivalent to an omitted line number.
.TP
.BI "\-X " option
Set implementation specific option.
.TP
.B \-x
Skip the first line of the source. This is intended for a DOS
specific hack only. Warning: the line numbers in error messages will
be off by one!
.SH INTERPRETER INTERFACE
The interpreter interface resembles that of the UNIX shell: when
called with standard input connected to a tty device, it prompts for
commands and executes them until an EOF is read; when called with a
file name argument or with a file as standard input, it reads and
executes a
.I script
from that file;
when called with
.B \-c
.IR command ,
it executes the Python statement(s) given as
.IR command .
Here
.I command
may contain multiple statements separated by newlines.
Leading whitespace is significant in Python statements!
In non-interactive mode, the entire input is parsed before it is
executed.
.PP
If available, the script name and additional arguments thereafter are
passed to the script in the Python variable
.IR sys.argv ,
which is a list of strings (you must first
.I import sys
to be able to access it).
If no script name is given,
.I sys.argv[0]
is an empty string; if
.B \-c
is used,
.I sys.argv[0]
contains the string
.I '-c'.
Note that options interpreted by the Python interpreter itself
are not placed in
.IR sys.argv .
.PP
In interactive mode, the primary prompt is `>>>'; the second prompt
(which appears when a command is not complete) is `...'.
The prompts can be changed by assignment to
.I sys.ps1
or
.IR sys.ps2 .
The interpreter quits when it reads an EOF at a prompt.
When an unhandled exception occurs, a stack trace is printed and
control returns to the primary prompt; in non-interactive mode, the
interpreter exits after printing the stack trace.
The interrupt signal raises the
.I Keyboard\%Interrupt
exception; other UNIX signals are not caught (except that SIGPIPE is
sometimes ignored, in favor of the
.I IOError
exception). Error messages are written to stderr.
.SH FILES AND DIRECTORIES
These are subject to difference depending on local installation
conventions; ${prefix} and ${exec_prefix} are installation-dependent
and should be interpreted as for GNU software; they may be the same.
The default for both is \fI/usr/local\fP.
.IP \fI${exec_prefix}/bin/python\fP
Recommended location of the interpreter.
.PP
.I ${prefix}/lib/python<version>
.br
.I ${exec_prefix}/lib/python<version>
.RS
Recommended locations of the directories containing the standard
modules.
.RE
.PP
.I ${prefix}/include/python<version>
.br
.I ${exec_prefix}/include/python<version>
.RS
Recommended locations of the directories containing the include files
needed for developing Python extensions and embedding the
interpreter.
.RE
.SH ENVIRONMENT VARIABLES
.IP PYTHONHOME
Change the location of the standard Python libraries. By default, the
libraries are searched in ${prefix}/lib/python<version> and
${exec_prefix}/lib/python<version>, where ${prefix} and ${exec_prefix}
are installation-dependent directories, both defaulting to
\fI/usr/local\fP. When $PYTHONHOME is set to a single directory, its value
replaces both ${prefix} and ${exec_prefix}. To specify different values
for these, set $PYTHONHOME to ${prefix}:${exec_prefix}.
.IP PYTHONPATH
Augments the default search path for module files.
The format is the same as the shell's $PATH: one or more directory
pathnames separated by colons.
Non-existent directories are silently ignored.
The default search path is installation dependent, but generally
begins with ${prefix}/lib/python<version> (see PYTHONHOME above).
The default search path is always appended to $PYTHONPATH.
If a script argument is given, the directory containing the script is
inserted in the path in front of $PYTHONPATH.
The search path can be manipulated from within a Python program as the
variable
.IR sys.path .
.IP PYTHONSTARTUP
If this is the name of a readable file, the Python commands in that
file are executed before the first prompt is displayed in interactive
mode.
The file is executed in the same name space where interactive commands
are executed so that objects defined or imported in it can be used
without qualification in the interactive session.
You can also change the prompts
.I sys.ps1
and
.I sys.ps2
in this file.
.IP PYTHONOPTIMIZE
If this is set to a non-empty string it is equivalent to specifying
the \fB\-O\fP option. If set to an integer, it is equivalent to
specifying \fB\-O\fP multiple times.
.IP PYTHONDEBUG
If this is set to a non-empty string it is equivalent to specifying
the \fB\-d\fP option. If set to an integer, it is equivalent to
specifying \fB\-d\fP multiple times.
.IP PYTHONDONTWRITEBYTECODE
If this is set to a non-empty string it is equivalent to specifying
the \fB\-B\fP option (don't try to write
.I .pyc
files).
.IP PYTHONINSPECT
If this is set to a non-empty string it is equivalent to specifying
the \fB\-i\fP option.
.IP PYTHONIOENCODING
If this is set before running the interpreter, it overrides the encoding used
for stdin/stdout/stderr, in the syntax
.IB encodingname ":" errorhandler
The
.IB errorhandler
part is optional and has the same meaning as in str.encode. For stderr, the
.IB errorhandler
part is ignored; the handler will always be \'backslashreplace\'.
.IP PYTHONNOUSERSITE
If this is set to a non-empty string it is equivalent to specifying the
\fB\-s\fP option (Don't add the user site directory to sys.path).
.IP PYTHONUNBUFFERED
If this is set to a non-empty string it is equivalent to specifying
the \fB\-u\fP option.
.IP PYTHONVERBOSE
If this is set to a non-empty string it is equivalent to specifying
the \fB\-v\fP option. If set to an integer, it is equivalent to
specifying \fB\-v\fP multiple times.
.IP PYTHONWARNINGS
If this is set to a comma-separated string it is equivalent to
specifying the \fB\-W\fP option for each separate value.
.IP PYTHONHASHSEED
If this variable is set to "random", a random value is used to seed the hashes
of str, bytes and datetime objects.
If PYTHONHASHSEED is set to an integer value, it is used as a fixed seed for
generating the hash() of the types covered by the hash randomization. Its
purpose is to allow repeatable hashing, such as for selftests for the
interpreter itself, or to allow a cluster of python processes to share hash
values.
The integer must be a decimal number in the range [0,4294967295]. Specifying
the value 0 will disable hash randomization.
.SH AUTHOR
The Python Software Foundation: https://www.python.org/psf/
.SH INTERNET RESOURCES
Main website: https://www.python.org/
.br
Documentation: https://docs.python.org/
.br
Developer resources: https://devguide.python.org/
.br
Downloads: https://www.python.org/downloads/
.br
Module repository: https://pypi.org/
.br
Newsgroups: comp.lang.python, comp.lang.python.announce
.SH LICENSING
Python is distributed under an Open Source license. See the file
"LICENSE" in the Python source distribution for information on terms &
conditions for accessing and otherwise using Python and for a
DISCLAIMER OF ALL WARRANTIES.

13
third_party/python/Misc/python.pc.in vendored Normal file
View file

@ -0,0 +1,13 @@
# See: man pkg-config
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Python
Description: Python library
Requires:
Version: @VERSION@
Libs.private: @LIBS@
Libs: -L${libdir} -lpython@VERSION@@ABIFLAGS@
Cflags: -I${includedir}/python@VERSION@@ABIFLAGS@

72546
third_party/python/Misc/svnmap.txt vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,480 @@
#
# This is a valgrind suppression file that should be used when using valgrind.
#
# Here's an example of running valgrind:
#
# cd python/dist/src
# valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \
# ./python -E ./Lib/test/regrtest.py -u gui,network
#
# You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER
# to use the preferred suppressions with address_in_range.
#
# If you do not want to recompile Python, you can uncomment
# suppressions for _PyObject_Free and _PyObject_Realloc.
#
# See Misc/README.valgrind for more information.
# all tool names: Addrcheck,Memcheck,cachegrind,helgrind,massif
{
ADDRESS_IN_RANGE/Invalid read of size 4
Memcheck:Addr4
fun:address_in_range
}
{
ADDRESS_IN_RANGE/Invalid read of size 4
Memcheck:Value4
fun:address_in_range
}
{
ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64 aka amd64)
Memcheck:Value8
fun:address_in_range
}
{
ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
Memcheck:Cond
fun:address_in_range
}
#
# Leaks (including possible leaks)
# Hmmm, I wonder if this masks some real leaks. I think it does.
# Will need to fix that.
#
{
Suppress leaking the GIL. Happens once per process, see comment in ceval.c.
Memcheck:Leak
fun:malloc
fun:PyThread_allocate_lock
fun:PyEval_InitThreads
}
{
Suppress leaking the GIL after a fork.
Memcheck:Leak
fun:malloc
fun:PyThread_allocate_lock
fun:PyEval_ReInitThreads
}
{
Suppress leaking the autoTLSkey. This looks like it shouldn't leak though.
Memcheck:Leak
fun:malloc
fun:PyThread_create_key
fun:_PyGILState_Init
fun:Py_InitializeEx
fun:Py_Main
}
{
Hmmm, is this a real leak or like the GIL?
Memcheck:Leak
fun:malloc
fun:PyThread_ReInitTLS
}
{
Handle PyMalloc confusing valgrind (possibly leaked)
Memcheck:Leak
fun:realloc
fun:_PyObject_GC_Resize
fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
}
{
Handle PyMalloc confusing valgrind (possibly leaked)
Memcheck:Leak
fun:malloc
fun:_PyObject_GC_New
fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
}
{
Handle PyMalloc confusing valgrind (possibly leaked)
Memcheck:Leak
fun:malloc
fun:_PyObject_GC_NewVar
fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
}
#
# Non-python specific leaks
#
{
Handle pthread issue (possibly leaked)
Memcheck:Leak
fun:calloc
fun:allocate_dtv
fun:_dl_allocate_tls_storage
fun:_dl_allocate_tls
}
{
Handle pthread issue (possibly leaked)
Memcheck:Leak
fun:memalign
fun:_dl_allocate_tls_storage
fun:_dl_allocate_tls
}
###{
### ADDRESS_IN_RANGE/Invalid read of size 4
### Memcheck:Addr4
### fun:_PyObject_Free
###}
###
###{
### ADDRESS_IN_RANGE/Invalid read of size 4
### Memcheck:Value4
### fun:_PyObject_Free
###}
###
###{
### ADDRESS_IN_RANGE/Use of uninitialised value of size 8
### Memcheck:Addr8
### fun:_PyObject_Free
###}
###
###{
### ADDRESS_IN_RANGE/Use of uninitialised value of size 8
### Memcheck:Value8
### fun:_PyObject_Free
###}
###
###{
### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
### Memcheck:Cond
### fun:_PyObject_Free
###}
###{
### ADDRESS_IN_RANGE/Invalid read of size 4
### Memcheck:Addr4
### fun:_PyObject_Realloc
###}
###
###{
### ADDRESS_IN_RANGE/Invalid read of size 4
### Memcheck:Value4
### fun:_PyObject_Realloc
###}
###
###{
### ADDRESS_IN_RANGE/Use of uninitialised value of size 8
### Memcheck:Addr8
### fun:_PyObject_Realloc
###}
###
###{
### ADDRESS_IN_RANGE/Use of uninitialised value of size 8
### Memcheck:Value8
### fun:_PyObject_Realloc
###}
###
###{
### ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
### Memcheck:Cond
### fun:_PyObject_Realloc
###}
###
### All the suppressions below are for errors that occur within libraries
### that Python uses. The problems to not appear to be related to Python's
### use of the libraries.
###
{
Generic ubuntu ld problems
Memcheck:Addr8
obj:/lib/ld-2.4.so
obj:/lib/ld-2.4.so
obj:/lib/ld-2.4.so
obj:/lib/ld-2.4.so
}
{
Generic gentoo ld problems
Memcheck:Cond
obj:/lib/ld-2.3.4.so
obj:/lib/ld-2.3.4.so
obj:/lib/ld-2.3.4.so
obj:/lib/ld-2.3.4.so
}
{
DBM problems, see test_dbm
Memcheck:Param
write(buf)
fun:write
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
fun:dbm_close
}
{
DBM problems, see test_dbm
Memcheck:Value8
fun:memmove
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
fun:dbm_store
fun:dbm_ass_sub
}
{
DBM problems, see test_dbm
Memcheck:Cond
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
fun:dbm_store
fun:dbm_ass_sub
}
{
DBM problems, see test_dbm
Memcheck:Cond
fun:memmove
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
obj:/usr/lib/libdb1.so.2
fun:dbm_store
fun:dbm_ass_sub
}
{
GDBM problems, see test_gdbm
Memcheck:Param
write(buf)
fun:write
fun:gdbm_open
}
{
ZLIB problems, see test_gzip
Memcheck:Cond
obj:/lib/libz.so.1.2.3
obj:/lib/libz.so.1.2.3
fun:deflate
}
{
Avoid problems w/readline doing a putenv and leaking on exit
Memcheck:Leak
fun:malloc
fun:xmalloc
fun:sh_set_lines_and_columns
fun:_rl_get_screen_size
fun:_rl_init_terminal_io
obj:/lib/libreadline.so.4.3
fun:rl_initialize
}
###
### These occur from somewhere within the SSL, when running
### test_socket_sll. They are too general to leave on by default.
###
###{
### somewhere in SSL stuff
### Memcheck:Cond
### fun:memset
###}
###{
### somewhere in SSL stuff
### Memcheck:Value4
### fun:memset
###}
###
###{
### somewhere in SSL stuff
### Memcheck:Cond
### fun:MD5_Update
###}
###
###{
### somewhere in SSL stuff
### Memcheck:Value4
### fun:MD5_Update
###}
# Fedora's package "openssl-1.0.1-0.1.beta2.fc17.x86_64" on x86_64
# See http://bugs.python.org/issue14171
{
openssl 1.0.1 prng 1
Memcheck:Cond
fun:bcmp
fun:fips_get_entropy
fun:FIPS_drbg_instantiate
fun:RAND_init_fips
fun:OPENSSL_init_library
fun:SSL_library_init
fun:init_hashlib
}
{
openssl 1.0.1 prng 2
Memcheck:Cond
fun:fips_get_entropy
fun:FIPS_drbg_instantiate
fun:RAND_init_fips
fun:OPENSSL_init_library
fun:SSL_library_init
fun:init_hashlib
}
{
openssl 1.0.1 prng 3
Memcheck:Value8
fun:_x86_64_AES_encrypt_compact
fun:AES_encrypt
}
#
# All of these problems come from using test_socket_ssl
#
{
from test_socket_ssl
Memcheck:Cond
fun:BN_bin2bn
}
{
from test_socket_ssl
Memcheck:Cond
fun:BN_num_bits_word
}
{
from test_socket_ssl
Memcheck:Value4
fun:BN_num_bits_word
}
{
from test_socket_ssl
Memcheck:Cond
fun:BN_mod_exp_mont_word
}
{
from test_socket_ssl
Memcheck:Cond
fun:BN_mod_exp_mont
}
{
from test_socket_ssl
Memcheck:Param
write(buf)
fun:write
obj:/usr/lib/libcrypto.so.0.9.7
}
{
from test_socket_ssl
Memcheck:Cond
fun:RSA_verify
}
{
from test_socket_ssl
Memcheck:Value4
fun:RSA_verify
}
{
from test_socket_ssl
Memcheck:Value4
fun:DES_set_key_unchecked
}
{
from test_socket_ssl
Memcheck:Value4
fun:DES_encrypt2
}
{
from test_socket_ssl
Memcheck:Cond
obj:/usr/lib/libssl.so.0.9.7
}
{
from test_socket_ssl
Memcheck:Value4
obj:/usr/lib/libssl.so.0.9.7
}
{
from test_socket_ssl
Memcheck:Cond
fun:BUF_MEM_grow_clean
}
{
from test_socket_ssl
Memcheck:Cond
fun:memcpy
fun:ssl3_read_bytes
}
{
from test_socket_ssl
Memcheck:Cond
fun:SHA1_Update
}
{
from test_socket_ssl
Memcheck:Value4
fun:SHA1_Update
}
{
test_buffer_non_debug
Memcheck:Addr4
fun:PyUnicodeUCS2_FSConverter
}
{
test_buffer_non_debug
Memcheck:Addr4
fun:PyUnicode_FSConverter
}
{
wcscmp_false_positive
Memcheck:Addr8
fun:wcscmp
fun:_PyOS_GetOpt
fun:Py_Main
fun:main
}
# Additional suppressions for the unified decimal tests:
{
test_decimal
Memcheck:Addr4
fun:PyUnicodeUCS2_FSConverter
}
{
test_decimal2
Memcheck:Addr4
fun:PyUnicode_FSConverter
}

10
third_party/python/Misc/vgrindefs vendored Normal file
View file

@ -0,0 +1,10 @@
# vgrind is a pretty-printer that takes source code and outputs
# eye-pleasing postscript. The entry below should be added to your
# local vgrindefs file. Contributed by Neale Pickett <neale@lanl.gov>.
python|Python|py:\
:pb=^\d?(def|class)\d\p(\d|\\|\(|\:):\
:cb=#:ce=$:sb=":se=\e":lb=':le=\e':\
:kw=assert and break class continue def del elif else except\
finally for from global if import in is lambda not or\
pass print raise return try while yield: