Blurbify master branch. (#3298)

Blurbify master branch.
This commit is contained in:
larryhastings 2017-09-04 13:30:19 -07:00 committed by GitHub
parent 002d64039b
commit f9f17346d7
503 changed files with 25702 additions and 9808 deletions

View file

@ -325,9 +325,6 @@ whatsnew/3.5,,:warning,'WARNING:root:warning\n'
whatsnew/3.5,,::,>>> addr6 = ipaddress.IPv6Address('::1')
whatsnew/3.5,,:root,ERROR:root:exception
whatsnew/3.5,,:exception,ERROR:root:exception
whatsnew/changelog,,:version,import sys; I = version[:version.index(' ')]
whatsnew/changelog,,:end,str[start:end]
library/binascii,,`,'`'
library/uu,,`,'`'
whatsnew/3.7,,`,'`'
whatsnew/changelog,,`,'`'

1 c-api/arg :ref PyArg_ParseTuple(args, "O|O:ref", &object, &callback)
325 whatsnew/3.5 :: >>> addr6 = ipaddress.IPv6Address('::1')
326 whatsnew/3.5 :root ERROR:root:exception
327 whatsnew/3.5 :exception ERROR:root:exception
whatsnew/changelog :version import sys; I = version[:version.index(' ')]
whatsnew/changelog :end str[start:end]
328 library/binascii ` '`'
329 library/uu ` '`'
330 whatsnew/3.7 ` '`'
whatsnew/changelog ` '`'

9805
Misc/NEWS

File diff suppressed because it is too large Load diff

8
Misc/NEWS.d/3.5.0.rst Normal file
View file

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

5869
Misc/NEWS.d/3.5.0a1.rst Normal file

File diff suppressed because it is too large Load diff

406
Misc/NEWS.d/3.5.0a2.rst Normal file
View file

@ -0,0 +1,406 @@
.. bpo: 23571
.. date: 7650
.. 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: 7649
.. 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: 7648
.. nonce: I3RLIV
.. section: Library
Reduced the memory consumption of IPv4Address and IPv6Address.
..
.. bpo: 21793
.. date: 7647
.. nonce: GQtYMM
.. section: Library
BaseHTTPRequestHandler again logs response code as numeric, not as
stringified enum. Patch by Demian Brecht.
..
.. bpo: 23476
.. date: 7646
.. 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: 7645
.. 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: 7644
.. nonce: o31h5I
.. section: Library
Added an __all__ to the types module.
..
.. bpo: 23563
.. date: 7643
.. nonce: iQB-ba
.. section: Library
Optimized utility functions in urllib.parse.
..
.. bpo: 7830
.. date: 7642
.. nonce: irvPdC
.. section: Library
Flatten nested functools.partial.
..
.. bpo: 20204
.. date: 7641
.. nonce: DorA4b
.. section: Library
Added the __module__ attribute to _tkinter classes.
..
.. bpo: 19980
.. date: 7640
.. 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: 7639
.. nonce: HvwFfd
.. section: Library
Corrected pure python implementation of timedelta division.
Eliminated OverflowError from ``timedelta * float`` for some floats;
Corrected rounding in timedlta true division.
..
.. bpo: 21619
.. date: 7638
.. 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: 7637
.. nonce: JrhGYd
.. section: Library
Make it possible to show local variables in tracebacks for both the
traceback module and unittest.
..
.. bpo: 15955
.. date: 7636
.. nonce: _8nYPy
.. section: Library
Add an option to limit the output size in bz2.decompress(). Patch by
Nikolaus Rath.
..
.. bpo: 6639
.. date: 7635
.. nonce: rmjUmG
.. section: Library
Module-level turtle functions no longer raise TclError after closing the
window.
..
.. bpo: 814253
.. date: 7634
.. 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: 7633
.. 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: 7632
.. nonce: iA5yzL
.. section: Library
io.FileIO() called flush() after closing the file. flush() was not called in
close() if closefd=False.
..
.. bpo: 23374
.. date: 7631
.. 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: 7630
.. nonce: ZWwliG
.. section: Library
Remove RC4 from the SSL module's default cipher list.
..
.. bpo: 21548
.. date: 7629
.. nonce: CmO_Yh
.. section: Library
Fix pydoc.synopsis() and pydoc.apropos() on modules with empty docstrings.
..
.. bpo: 22885
.. date: 7628
.. nonce: p8FnYk
.. section: Library
Fixed arbitrary code execution vulnerability in the dbm.dumb module.
Original patch by Claudiu Popa.
..
.. bpo: 23239
.. date: 7627
.. nonce: PGUq7T
.. section: Library
ssl.match_hostname() now supports matching of IP addresses.
..
.. bpo: 23146
.. date: 7626
.. nonce: PW-O3u
.. section: Library
Fix mishandling of absolute Windows paths with forward slashes in pathlib.
..
.. bpo: 23096
.. date: 7625
.. nonce: Ftrmf3
.. section: Library
Pickle representation of floats with protocol 0 now is the same for both
Python and C implementations.
..
.. bpo: 19105
.. date: 7624
.. nonce: ZK07Ff
.. section: Library
pprint now more efficiently uses free space at the right.
..
.. bpo: 14910
.. date: 7623
.. 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: 7622
.. nonce: Knut81
.. section: Library
tarfile.open() now supports 'x' (exclusive creation) mode.
..
.. bpo: 23344
.. date: 7621
.. nonce: ieu8C1
.. section: Library
marshal.dumps() is now 20-25% faster on average.
..
.. bpo: 20416
.. date: 7620
.. nonce: cwEgkL
.. section: Library
marshal.dumps() with protocols 3 and 4 is now 40-50% faster on average.
..
.. bpo: 23421
.. date: 7619
.. nonce: eckzoV
.. section: Library
Fixed compression in tarfile CLI. Patch by wdv4758h.
..
.. bpo: 23367
.. date: 7618
.. nonce: kHnFiz
.. section: Library
Fix possible overflows in the unicodedata module.
..
.. bpo: 23361
.. date: 7617
.. nonce: I_w0-z
.. section: Library
Fix possible overflow in Windows subprocess creation code.
..
.. bpo: 0
.. date: 7616
.. 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: 7615
.. nonce: WLzTRV
.. section: Library
turtledemo now has a visual sorting algorithm demo. Original patch from
Jason Yeo.
..
.. bpo: 23801
.. date: 7614
.. nonce: jyJK3z
.. section: Library
Fix issue where cgi.FieldStorage did not always ignore the entire preamble
to a multipart body.
..
.. bpo: 23445
.. date: 7613
.. nonce: 7fmkYO
.. section: Build
pydebug builds now use "gcc -Og" where possible, to make the resulting
executable faster.
..
.. bpo: 23686
.. date: 7612
.. nonce: B7jDXY
.. section: Build
Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
..
.. bpo: 20204
.. date: 7611
.. nonce: M_jcNK
.. section: C API
Deprecation warning is now raised for builtin types without the __module__
attribute.
..
.. bpo: 23465
.. date: 7610
.. nonce: qBauCy
.. section: Windows
Implement PEP 486 - Make the Python Launcher aware of virtual environments.
Patch by Paul Moore.
..
.. bpo: 23437
.. date: 7609
.. nonce: ro9X8r
.. section: Windows
Make user scripts directory versioned on Windows. Patch by Paul Moore.

518
Misc/NEWS.d/3.5.0a3.rst Normal file
View file

@ -0,0 +1,518 @@
.. bpo: 23573
.. date: 7702
.. 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: 7701
.. nonce: CREjLC
.. section: Core and Builtins
Python doesn't support anymore platforms without stat() or fstat(), these
functions are always required.
..
.. bpo: 23681
.. date: 7700
.. nonce: kh02TF
.. section: Core and Builtins
The -b option now affects comparisons of bytes with int.
..
.. bpo: 23632
.. date: 7699
.. nonce: UVdIZY
.. section: Core and Builtins
Memoryviews now allow tuple indexing (including for multi-dimensional
memoryviews).
..
.. bpo: 23192
.. date: 7698
.. nonce: QKqdow
.. section: Core and Builtins
Fixed generator lambdas. Patch by Bruno Cauet.
..
.. bpo: 23629
.. date: 7697
.. nonce: r9Mt2C
.. section: Core and Builtins
Fix the default __sizeof__ implementation for variable-sized objects.
..
.. bpo: 14260
.. date: 7696
.. nonce: b5M04V
.. section: Library
The groupindex attribute of regular expression pattern object now is non-
modifiable mapping.
..
.. bpo: 23792
.. date: 7695
.. 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: 7694
.. nonce: xKGrSQ
.. section: Library
pprint() of OrderedDict now outputs the same representation as repr().
..
.. bpo: 23765
.. date: 7693
.. nonce: 2ta_C4
.. section: Library
Removed IsBadStringPtr calls in ctypes
..
.. bpo: 22364
.. date: 7692
.. nonce: ejtoKl
.. section: Library
Improved some re error messages using regex for hints.
..
.. bpo: 23742
.. date: 7691
.. nonce: _EkAIa
.. section: Library
ntpath.expandvars() no longer loses unbalanced single quotes.
..
.. bpo: 21717
.. date: 7690
.. nonce: pKndpx
.. section: Library
The zipfile.ZipFile.open function now supports 'x' (exclusive creation)
mode.
..
.. bpo: 21802
.. date: 7689
.. nonce: ygSM2A
.. section: Library
The reader in BufferedRWPair now is closed even when closing writer failed
in BufferedRWPair.close().
..
.. bpo: 23622
.. date: 7688
.. 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: 7687
.. 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: 7686
.. nonce: AH20IQ
.. section: Library
The pprint module now supports mapping proxies.
..
.. bpo: 17530
.. date: 7685
.. nonce: PUp8rL
.. section: Library
pprint now wraps long bytes objects and bytearrays.
..
.. bpo: 22687
.. date: 7684
.. 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: 7683
.. 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: 7682
.. 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: 7681
.. nonce: y1OaV-
.. section: Library
Avoid explicit checks for str in zipapp, adding support for pathlib.Path
objects as arguments.
..
.. bpo: 23688
.. date: 7680
.. 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: 7679
.. nonce: Goi18g
.. section: Library
Added support for writing ZIP files to unseekable streams.
..
.. bpo: 23647
.. date: 7678
.. nonce: pX2qrx
.. section: Library
Increase impalib's MAXLINE to accommodate modern mailbox sizes.
..
.. bpo: 23539
.. date: 7677
.. 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: 7676
.. 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: 7675
.. 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: 7674
.. 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: 7673
.. 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: 7672
.. 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: 7671
.. 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: 7670
.. nonce: VfnWwi
.. section: Library
Iterator of NamedTemporaryFile now keeps a reference to NamedTemporaryFile
instance. Patch by Bohuslav Kabrda.
..
.. bpo: 22903
.. date: 7669
.. 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: 7668
.. 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: 7667
.. 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: 7666
.. nonce: vF4i2S
.. section: Library
Allow selection of output units in timeit. Patch by Julian Gindi.
..
.. bpo: 23631
.. date: 7665
.. nonce: GfSqNI
.. section: Library
Fix traceback.format_list when a traceback has been mutated.
..
.. bpo: 23568
.. date: 7664
.. nonce: ffzJc7
.. section: Library
Add rdivmod support to MagicMock() objects. Patch by Håkan Lövdahl.
..
.. bpo: 2052
.. date: 7663
.. nonce: ujNgna
.. section: Library
Add charset parameter to HtmlDiff.make_file().
..
.. bpo: 23668
.. date: 7662
.. nonce: nF_jnN
.. section: Library
Support os.truncate and os.ftruncate on Windows.
..
.. bpo: 23138
.. date: 7661
.. nonce: 4vMoMZ
.. section: Library
Fixed parsing cookies with absent keys or values in cookiejar. Patch by
Demian Brecht.
..
.. bpo: 23051
.. date: 7660
.. 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: 7659
.. nonce: D4Lknl
.. section: Library
Add matmul support to MagicMock. Patch by Håkan Lövdahl.
..
.. bpo: 23566
.. date: 7658
.. 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: 7657
.. nonce: q2TmY0
.. section: Library
Disabled HTTP header injections in http.client. Original patch by Demian
Brecht.
..
.. bpo: 23615
.. date: 7656
.. nonce: 5Kx9k5
.. section: Library
Modules bz2, tarfile and tokenize now can be reloaded with imp.reload().
Patch by Thomas Kluyver.
..
.. bpo: 23605
.. date: 7655
.. 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: 7654
.. nonce: DTIIoI
.. section: Build
make patchcheck will ensure the interpreter is built.
..
.. bpo: 23583
.. date: 7653
.. nonce: bY8AbM
.. section: Tests
Added tests for standard IO streams in IDLE.
..
.. bpo: 22289
.. date: 7652
.. nonce: ybGcC-
.. section: Tests
Prevent test_urllib2net failures due to ftp connection timeout.
..
.. bpo: 22826
.. date: 7651
.. 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).

665
Misc/NEWS.d/3.5.0a4.rst Normal file
View file

@ -0,0 +1,665 @@
.. bpo: 22980
.. date: 7769
.. 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: 7768
.. nonce: nTx_ZF
.. section: Core and Builtins
Added Linux-specific socket constant CAN_RAW_FD_FRAMES. Patch courtesy of
Joe Jevnik.
..
.. bpo: 23731
.. date: 7767
.. nonce: FOXb37
.. section: Core and Builtins
Implement PEP 488: removal of .pyo files.
..
.. bpo: 23726
.. date: 7766
.. 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: 7765
.. 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: 7764
.. nonce: hutEse
.. section: Core and Builtins
Fixed formatting Windows error messages on Wine. Patch by Martin Panter.
..
.. bpo: 23466
.. date: 7763
.. nonce: KhMltK
.. section: Core and Builtins
%c, %o, %x, and %X in bytes formatting now raise TypeError on non-integer
input.
..
.. bpo: 24044
.. date: 7762
.. nonce: H7vb6-
.. section: Core and Builtins
Fix possible null pointer dereference in list.sort in out of memory
conditions.
..
.. bpo: 21354
.. date: 7761
.. nonce: ZZTe1E
.. section: Core and Builtins
PyCFunction_New function is exposed by python DLL again.
..
.. bpo: 23840
.. date: 7760
.. nonce: mtSbqO
.. section: Library
tokenize.open() now closes the temporary binary file on error to fix a
resource warning.
..
.. bpo: 16914
.. date: 7759
.. nonce: GrP2Jr
.. section: Library
new debuglevel 2 in smtplib adds timestamps to debug output.
..
.. bpo: 7159
.. date: 7758
.. 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: 7757
.. nonce: kYybxm
.. section: Library
Fix a regression in urljoin() introduced in 901e4e52b20a. Patch by Demian
Brecht.
..
.. bpo: 4254
.. date: 7756
.. nonce: eUC_2H
.. section: Library
Adds _curses.update_lines_cols(). Patch by Arnon Yaari
..
.. bpo: 19933
.. date: 7755
.. nonce: Qq8utk
.. section: Library
Provide default argument for ndigits in round. Patch by Vajrasky Kok.
..
.. bpo: 23193
.. date: 7754
.. 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: 7753
.. 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: 7752
.. 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: 7751
.. nonce: bn4U-y
.. section: Library
Fix possible integer overflows in the pickle module.
..
.. bpo: 22931
.. date: 7750
.. nonce: 4CuWYD
.. section: Library
Allow '[' and ']' in cookie values.
..
.. bpo: 0
.. date: 7749
.. nonce: fgX8Qe
.. section: Library
The keywords attribute of functools.partial is now always a dictionary.
..
.. bpo: 23811
.. date: 7748
.. nonce: B6tzf9
.. section: Library
Add missing newline to the PyCompileError error message. Patch by Alex
Shkop.
..
.. bpo: 21116
.. date: 7747
.. 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: 7746
.. nonce: xYmG62
.. section: Library
Improve BOM handling when seeking to multiple positions of a writable text
file.
..
.. bpo: 23464
.. date: 7745
.. nonce: _XGkBk
.. section: Library
Removed deprecated asyncio JoinableQueue.
..
.. bpo: 23529
.. date: 7744
.. 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: 7743
.. nonce: GYrUNP
.. section: Library
Added Python implementation of io.FileIO.
..
.. bpo: 23865
.. date: 7742
.. 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: 7741
.. 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: 7740
.. 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: 7739
.. nonce: 0im3Qw
.. section: Library
Added DefragResult, ParseResult, SplitResult, DefragResultBytes,
ParseResultBytes, and SplitResultBytes to urllib.parse.__all__. Patch by
Martin Panter.
..
.. bpo: 23881
.. date: 7738
.. nonce: yZjl4b
.. section: Library
urllib.request.ftpwrapper constructor now closes the socket if the FTP
connection failed to fix a ResourceWarning.
..
.. bpo: 23853
.. date: 7737
.. 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: 7736
.. 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: 7735
.. 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: 7734
.. nonce: nkxXfU
.. section: Library
xml.sax.parseString() now supports string argument.
..
.. bpo: 23338
.. date: 7733
.. nonce: ZYMGN1
.. section: Library
Fixed formatting ctypes error messages on Cygwin. Patch by Makoto Kato.
..
.. bpo: 15582
.. date: 7732
.. nonce: 26wJNk
.. section: Library
inspect.getdoc() now follows inheritance chains.
..
.. bpo: 2175
.. date: 7731
.. nonce: cHiVOp
.. section: Library
SAX parsers now support a character stream of InputSource object.
..
.. bpo: 16840
.. date: 7730
.. 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: 7729
.. 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: 7728
.. 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: 7727
.. nonce: QQEXrR
.. section: Library
Tkinter now supports new boolean type in Tcl 8.5.
..
.. bpo: 23836
.. date: 7726
.. nonce: zrEmlR
.. section: Library
Fix the faulthandler module to handle reentrant calls to its signal
handlers.
..
.. bpo: 23838
.. date: 7725
.. nonce: IX6FPX
.. section: Library
linecache now clears the cache and returns an empty result on MemoryError.
..
.. bpo: 10395
.. date: 7724
.. nonce: fi_lZp
.. section: Library
Added os.path.commonpath(). Implemented in posixpath and ntpath. Based on
patch by Rafik Draoui.
..
.. bpo: 23611
.. date: 7723
.. 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: 7722
.. nonce: -MPBjZ
.. section: Library
sqlite3.Row now supports slice indexing.
..
.. bpo: 18473
.. date: 7721
.. nonce: 89RHm-
.. section: Library
Fixed 2to3 and 3to2 compatible pickle mappings. Fixed ambigious reverse
mappings. Added many new mappings. Import mapping is no longer applied to
modules already mapped with full name mapping.
..
.. bpo: 23485
.. date: 7720
.. 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: 7719
.. 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: 7718
.. nonce: Ggjvm8
.. section: Library
collections.deque() objects now support __add__, __mul__, and __imul__().
..
.. bpo: 23171
.. date: 7717
.. nonce: b6PBzM
.. section: Library
csv.Writer.writerow() now supports arbitrary iterables.
..
.. bpo: 23745
.. date: 7716
.. 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: 7715
.. nonce: bTO0xx
.. section: Library
Fix os.utime(), it now rounds the timestamp towards minus infinity (-inf)
instead of rounding towards zero.
..
.. bpo: 23310
.. date: 7714
.. nonce: GXmFMR
.. section: Library
Fix MagicMock's initializer to work with __methods__, just like
configure_mock(). Patch by Kasia Jachim.
..
.. bpo: 23817
.. date: 7713
.. nonce: DTmVan
.. section: Build
FreeBSD now uses "1.0" in the SOVERSION as other operating systems, instead
of just "1".
..
.. bpo: 23501
.. date: 7712
.. nonce: iz10e6
.. section: Build
Argument Clinic now generates code into separate files by default.
..
.. bpo: 23799
.. date: 7711
.. nonce: XU2xDw
.. section: Tests
Added test.support.start_threads() for running and cleaning up multiple
threads.
..
.. bpo: 22390
.. date: 7710
.. nonce: UPVFnq
.. section: Tests
test.regrtest now emits a warning if temporary files or directories are left
after running a test.
..
.. bpo: 18128
.. date: 7709
.. nonce: lx2V5a
.. section: Tools/Demos
pygettext now uses standard +NNNN format in the POT-Creation-Date header.
..
.. bpo: 23935
.. date: 7708
.. 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: 7707
.. nonce: Q8ZL2s
.. section: Tools/Demos
Argument Clinic now wraps long impl prototypes at column 78.
..
.. bpo: 20586
.. date: 7706
.. nonce: 7BiEkx
.. section: Tools/Demos
Argument Clinic now ensures that functions without docstrings have
signatures.
..
.. bpo: 23492
.. date: 7705
.. nonce: kjIcQW
.. section: Tools/Demos
Argument Clinic now generates argument parsing code with PyArg_Parse instead
of PyArg_ParseTuple if possible.
..
.. bpo: 23500
.. date: 7704
.. 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: 7703
.. nonce: z7mlLW
.. section: C API
PyImport_ReInitLock() now checks for lock allocation error

848
Misc/NEWS.d/3.5.0b1.rst Normal file
View file

@ -0,0 +1,848 @@
.. bpo: 24276
.. date: 7857
.. nonce: awsxJJ
.. release date: 2015-05-24
.. section: Core and Builtins
Fixed optimization of property descriptor getter.
..
.. bpo: 24268
.. date: 7856
.. nonce: nS7uea
.. section: Core and Builtins
PEP 489: Multi-phase extension module initialization. Patch by Petr
Viktorin.
..
.. bpo: 23955
.. date: 7855
.. nonce: hBHSaU
.. section: Core and Builtins
Add pyvenv.cfg option to suppress registry/environment lookup for generating
sys.path on Windows.
..
.. bpo: 24257
.. date: 7854
.. nonce: UBxshR
.. section: Core and Builtins
Fixed system error in the comparison of faked types.SimpleNamespace.
..
.. bpo: 22939
.. date: 7853
.. nonce: DWA9ls
.. section: Core and Builtins
Fixed integer overflow in iterator object. Patch by Clement Rouault.
..
.. bpo: 23985
.. date: 7852
.. 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: 7851
.. nonce: 9T6h3m
.. section: Core and Builtins
Fixed exception type checking in standard error handlers.
..
.. bpo: 15027
.. date: 7850
.. nonce: wi9sCd
.. section: Core and Builtins
The UTF-32 encoder is now 3x to 7x faster.
..
.. bpo: 23290
.. date: 7849
.. nonce: 57aqLU
.. section: Core and Builtins
Optimize set_merge() for cases where the target is empty. (Contributed by
Serhiy Storchaka.)
..
.. bpo: 2292
.. date: 7848
.. nonce: h4sibO
.. section: Core and Builtins
PEP 448: Additional Unpacking Generalizations.
..
.. bpo: 24096
.. date: 7847
.. nonce: a_Rap7
.. section: Core and Builtins
Make warnings.warn_explicit more robust against mutation of the
warnings.filters list.
..
.. bpo: 23996
.. date: 7846
.. 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: 7845
.. nonce: _gDzaj
.. section: Core and Builtins
Optimize property() getter calls. Patch by Joe Jevnik.
..
.. bpo: 23911
.. date: 7844
.. nonce: 0FnTHk
.. section: Core and Builtins
Move path-based importlib bootstrap code to a separate frozen module.
..
.. bpo: 24192
.. date: 7843
.. nonce: 6ZxJ_R
.. section: Core and Builtins
Fix namespace package imports.
..
.. bpo: 24022
.. date: 7842
.. nonce: 1l8YBm
.. section: Core and Builtins
Fix tokenizer crash when processing undecodable source code.
..
.. bpo: 9951
.. date: 7841
.. nonce: wGztNC
.. section: Core and Builtins
Added a hex() method to bytes, bytearray, and memoryview.
..
.. bpo: 22906
.. date: 7840
.. nonce: WN_kQ6
.. section: Core and Builtins
PEP 479: Change StopIteration handling inside generators.
..
.. bpo: 24017
.. date: 7839
.. nonce: QJa1SC
.. section: Core and Builtins
PEP 492: Coroutines with async and await syntax.
..
.. bpo: 14373
.. date: 7838
.. nonce: 0sk6kE
.. section: Library
Added C implementation of functools.lru_cache(). Based on patches by Matt
Joiner and Alexey Kachayev.
..
.. bpo: 24230
.. date: 7837
.. 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: 7836
.. nonce: 8epgat
.. section: Library
collections.UserString now supports __getnewargs__(), __rmod__(),
casefold(), format_map(), isprintable(), and maketrans(). Patch by Joe
Jevnik.
..
.. bpo: 24244
.. date: 7835
.. nonce: OKE_3R
.. section: Library
Prevents termination when an invalid format string is encountered on Windows
in strftime.
..
.. bpo: 23973
.. date: 7834
.. nonce: EK6awi
.. section: Library
PEP 484: Add the typing module.
..
.. bpo: 23086
.. date: 7833
.. 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: 7832
.. 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: 7831
.. nonce: L_efq0
.. section: Library
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
..
.. bpo: 15836
.. date: 7830
.. 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: 7829
.. nonce: uke9pa
.. section: Library
Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
..
.. bpo: 22955
.. date: 7828
.. 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: 7827
.. 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: 7826
.. nonce: jFPVcN
.. section: Library
Improved error message in os.path.join() with single argument.
..
.. bpo: 6598
.. date: 7825
.. 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: 7824
.. nonce: Jw0-wj
.. section: Library
Fixed various crashes in corner cases in C implementation of ElementTree.
..
.. bpo: 21931
.. date: 7823
.. 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: 7822
.. nonce: n5NAj0
.. section: Library
*quote_via* argument added to urllib.parse.urlencode.
..
.. bpo: 20098
.. date: 7821
.. nonce: Y4otaf
.. section: Library
New mangle_from policy option for email, default True for compat32, but
False for all other policies.
..
.. bpo: 24211
.. date: 7820
.. 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: 7819
.. nonce: Xc4d1O
.. section: Library
Added support for the LZMA compression in distutils.
..
.. bpo: 21804
.. date: 7818
.. nonce: lEhTlc
.. section: Library
poplib now supports RFC 6856 (UTF8).
..
.. bpo: 18682
.. date: 7817
.. nonce: 6Pnfte
.. section: Library
Optimized pprint functions for builtin scalar types.
..
.. bpo: 22027
.. date: 7816
.. nonce: _aeUQS
.. section: Library
smtplib now supports RFC 6531 (SMTPUTF8).
..
.. bpo: 23488
.. date: 7815
.. nonce: 7gs3Cm
.. section: Library
Random generator objects now consume 2x less memory on 64-bit.
..
.. bpo: 1322
.. date: 7814
.. nonce: 495nFL
.. section: Library
platform.dist() and platform.linux_distribution() functions are now
deprecated. Initial patch by Vajrasky Kok.
..
.. bpo: 22486
.. date: 7813
.. 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: 7812
.. nonce: zXC7OL
.. section: Library
Property() docstrings are now writeable. (Patch by Berker Peksag.)
..
.. bpo: 22681
.. date: 7811
.. nonce: 2rIoA2
.. section: Library
Added support for the koi8_t encoding.
..
.. bpo: 22682
.. date: 7810
.. nonce: cP4i3L
.. section: Library
Added support for the kz1048 encoding.
..
.. bpo: 23796
.. date: 7809
.. 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: 7808
.. nonce: BDLMS4
.. section: Library
smtpd now supports the 8BITMIME extension whenever the new *decode_data*
constructor argument is set to False.
..
.. bpo: 24155
.. date: 7807
.. nonce: FZx5c2
.. section: Library
optimize heapq.heapify() for better cache performance when heapifying large
lists.
..
.. bpo: 21800
.. date: 7806
.. 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: 7805
.. 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: 7804
.. nonce: hBst4M
.. section: Library
Remove ignored and erroneous "kwargs" parameters from three METH_VARARGS
methods on _sqlite.Connection.
..
.. bpo: 24134
.. date: 7803
.. 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: 7802
.. nonce: hk7Rcn
.. section: Library
Add a collections.abc.Generator abstract base class. Contributed by Stefan
Behnel.
..
.. bpo: 23880
.. date: 7801
.. 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: 7800
.. nonce: 1gJEqV
.. section: Library
Added negative limit support in the traceback module. Based on patch by
Dmitry Kazakov.
..
.. bpo: 24094
.. date: 7799
.. nonce: 7T-u7k
.. section: Library
Fix possible crash in json.encode with poorly behaved dict subclasses.
..
.. bpo: 9246
.. date: 7798
.. nonce: oM-Ikk
.. section: Library
On POSIX, os.getcwd() now supports paths longer than 1025 bytes. Patch
written by William Orr.
..
.. bpo: 17445
.. date: 7797
.. nonce: Z-QYh5
.. section: Library
add difflib.diff_bytes() to support comparison of byte strings (fixes a
regression from Python 2).
..
.. bpo: 23917
.. date: 7796
.. nonce: uMVPV7
.. section: Library
Fall back to sequential compilation when ProcessPoolExecutor doesn't exist.
Patch by Claudiu Popa.
..
.. bpo: 23008
.. date: 7795
.. nonce: OZFCd-
.. section: Library
Fixed resolving attributes with boolean value is False in pydoc.
..
.. bpo: 0
.. date: 7794
.. 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: 7793
.. nonce: ATdNG-
.. section: Library
os functions now reject paths with embedded null character on Windows
instead of silently truncating them.
..
.. bpo: 23728
.. date: 7792
.. nonce: YBmQmV
.. section: Library
binascii.crc_hqx() could return an integer outside of the range 0-0xffff for
empty data.
..
.. bpo: 23887
.. date: 7791
.. nonce: _XpjPN
.. section: Library
urllib.error.HTTPError now has a proper repr() representation. Patch by
Berker Peksag.
..
.. bpo: 0
.. date: 7790
.. nonce: MjNdSC
.. section: Library
asyncio: New event loop APIs: set_task_factory() and get_task_factory().
..
.. bpo: 0
.. date: 7789
.. nonce: rVcHXp
.. section: Library
asyncio: async() function is deprecated in favour of ensure_future().
..
.. bpo: 24178
.. date: 7788
.. nonce: -enO4y
.. section: Library
asyncio.Lock, Condition, Semaphore, and BoundedSemaphore support new 'async
with' syntax. Contributed by Yury Selivanov.
..
.. bpo: 24179
.. date: 7787
.. nonce: wDy_WZ
.. section: Library
Support 'async for' for asyncio.StreamReader. Contributed by Yury Selivanov.
..
.. bpo: 24184
.. date: 7786
.. nonce: El74TU
.. section: Library
Add AsyncIterator and AsyncIterable ABCs to collections.abc. Contributed by
Yury Selivanov.
..
.. bpo: 22547
.. date: 7785
.. nonce: _ikCaj
.. section: Library
Implement informative __repr__ for inspect.BoundArguments. Contributed by
Yury Selivanov.
..
.. bpo: 24190
.. date: 7784
.. nonce: 1a3vWW
.. section: Library
Implement inspect.BoundArgument.apply_defaults() method. Contributed by Yury
Selivanov.
..
.. bpo: 20691
.. date: 7783
.. nonce: -raLyf
.. section: Library
Add 'follow_wrapped' argument to inspect.Signature.from_callable() and
inspect.signature(). Contributed by Yury Selivanov.
..
.. bpo: 24248
.. date: 7782
.. nonce: IxWooo
.. section: Library
Deprecate inspect.Signature.from_function() and
inspect.Signature.from_builtin().
..
.. bpo: 23898
.. date: 7781
.. nonce: OSiZie
.. section: Library
Fix inspect.classify_class_attrs() to support attributes with overloaded
__eq__ and __bool__. Patch by Mike Bayer.
..
.. bpo: 24298
.. date: 7780
.. nonce: u_TaxI
.. section: Library
Fix inspect.signature() to correctly unwrap wrappers around bound methods.
..
.. bpo: 23184
.. date: 7779
.. nonce: G_Cp9v
.. section: IDLE
remove unused names and imports in idlelib. Initial patch by Al Sweigart.
..
.. bpo: 21520
.. date: 7778
.. 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: 7777
.. nonce: W0Ag2V
.. section: Tests
Move script_helper into the support package. Patch by Christie Wilson.
..
.. bpo: 22155
.. date: 7776
.. 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: 7775
.. nonce: M2Bnks
.. section: Documentation
Document the name binding behavior for submodule imports.
..
.. bpo: 24077
.. date: 7774
.. nonce: 2Og2j-
.. section: Documentation
Fix typo in man page for -I command option: -s, not -S
..
.. bpo: 24000
.. date: 7773
.. nonce: MJyXRr
.. section: Tools/Demos
Improved Argument Clinic's mapping of converters to legacy "format units".
Updated the documentation to match.
..
.. bpo: 24001
.. date: 7772
.. 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: 7771
.. nonce: LTlKDp
.. section: Tools/Demos
h2py now supports arbitrary filenames in #include.
..
.. bpo: 24031
.. date: 7770
.. nonce: duGo88
.. section: Tools/Demos
make patchcheck now supports git checkouts, too.

104
Misc/NEWS.d/3.5.0b2.rst Normal file
View file

@ -0,0 +1,104 @@
.. bpo: 24284
.. date: 7868
.. 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: 7867
.. 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: 7866
.. nonce: 5gL8or
.. section: Core and Builtins
Fix importing one character extension modules.
..
.. bpo: 11205
.. date: 7865
.. nonce: bikrRP
.. section: Core and Builtins
In dictionary displays, evaluate the key before the value.
..
.. bpo: 24285
.. date: 7864
.. nonce: wvJumr
.. section: Core and Builtins
Fixed regression that prevented importing extension modules from inside
packages. Patch by Petr Viktorin.
..
.. bpo: 23247
.. date: 7863
.. nonce: nN-K74
.. section: Library
Fix a crash in the StreamWriter.reset() of CJK codecs.
..
.. bpo: 24270
.. date: 7862
.. 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: 7861
.. nonce: JNzKZq
.. section: Library
Fixed timeit when the statement is a string and the setup is not.
..
.. bpo: 24326
.. date: 7860
.. nonce: 4t_6Gy
.. section: Library
Fixed audioop.ratecv() with non-default weightB argument. Original patch by
David Moore.
..
.. bpo: 16991
.. date: 7859
.. nonce: 19_Zmj
.. section: Library
Add a C implementation of OrderedDict.
..
.. bpo: 23934
.. date: 7858
.. nonce: esb-45
.. section: Library
Fix inspect.signature to fail correctly for builtin types lacking signature
information. Initial patch by James Powell.

273
Misc/NEWS.d/3.5.0b3.rst Normal file
View file

@ -0,0 +1,273 @@
.. bpo: 24467
.. date: 7896
.. 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: 7895
.. nonce: 944IUY
.. section: Core and Builtins
Upgrade to Unicode 8.0.0.
..
.. bpo: 24345
.. date: 7894
.. nonce: fVcTaB
.. section: Core and Builtins
Add Py_tp_finalize slot for the stable ABI.
..
.. bpo: 24400
.. date: 7893
.. 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: 7892
.. 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: 7891
.. nonce: 0kW4n5
.. section: Core and Builtins
Add new RecursionError exception. Patch by Georg Brandl.
..
.. bpo: 21750
.. date: 7890
.. 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: 7889
.. nonce: VTO6sf
.. section: Library
Fix use after free in an error case of the _pickle module.
..
.. bpo: 24514
.. date: 7888
.. nonce: _xRb2r
.. section: Library
tarfile now tolerates number fields consisting of only whitespace.
..
.. bpo: 19176
.. date: 7887
.. 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: 7886
.. nonce: aAbWbQ
.. section: Library
Restore semantic round-trip correctness in tokenize/untokenize for tab-
indented blocks.
..
.. bpo: 24456
.. date: 7885
.. nonce: yYSd2u
.. section: Library
Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() functions of
the audioop module.
..
.. bpo: 24336
.. date: 7884
.. 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: 7883
.. nonce: PkcqCA
.. section: Library
Fix possible integer overflow in json accelerator module.
..
.. bpo: 24489
.. date: 7882
.. nonce: GJnMcW
.. section: Library
ensure a previously set C errno doesn't disturb cmath.polar().
..
.. bpo: 24408
.. date: 7881
.. nonce: vPb5UK
.. section: Library
Fixed AttributeError in measure() and metrics() methods of tkinter.Font.
..
.. bpo: 14373
.. date: 7880
.. nonce: CTYZ4J
.. section: Library
C implementation of functools.lru_cache() now can be used with methods.
..
.. bpo: 24347
.. date: 7879
.. nonce: CPPDb8
.. section: Library
Set KeyError if PyDict_GetItemWithError returns NULL.
..
.. bpo: 24348
.. date: 7878
.. nonce: U11rhr
.. section: Library
Drop superfluous incref/decref.
..
.. bpo: 24359
.. date: 7877
.. nonce: -IRNG9
.. section: Library
Check for changed OrderedDict size during iteration.
..
.. bpo: 24368
.. date: 7876
.. nonce: 550kDT
.. section: Library
Support keyword arguments in OrderedDict methods.
..
.. bpo: 24362
.. date: 7875
.. nonce: cHYce5
.. section: Library
Simplify the C OrderedDict fast nodes resize logic.
..
.. bpo: 24377
.. date: 7874
.. nonce: Gp1Bqr
.. section: Library
Fix a ref leak in OrderedDict.__repr__.
..
.. bpo: 24369
.. date: 7873
.. nonce: qFl7lZ
.. section: Library
Defend against key-changes during iteration.
..
.. bpo: 24373
.. date: 7872
.. 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: 7871
.. nonce: 1egApX
.. section: Documentation
Update documentation to cover multi-phase initialization for extension
modules (PEP 489). Patch by Petr Viktorin.
..
.. bpo: 24351
.. date: 7870
.. nonce: XeSVl5
.. section: Documentation
Clarify what is meant by "identifier" in the context of string.Template
instances.
..
.. bpo: 24432
.. date: 7869
.. nonce: IvUSiN
.. section: Build
Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2c.

255
Misc/NEWS.d/3.5.0b4.rst Normal file
View file

@ -0,0 +1,255 @@
.. bpo: 23573
.. date: 7923
.. 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: 7922
.. nonce: bqh6PQ
.. section: Core and Builtins
Make PEP 448 dictionary evaluation more consistent.
..
.. bpo: 24583
.. date: 7921
.. nonce: Ooq0Tn
.. section: Core and Builtins
Fix crash when set is mutated while being updated.
..
.. bpo: 24407
.. date: 7920
.. nonce: GmCBB3
.. section: Core and Builtins
Fix crash when dict is mutated while being updated.
..
.. bpo: 24619
.. date: 7919
.. 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: 7918
.. nonce: 0UaXFe
.. section: Core and Builtins
Plug refleak on SyntaxError in function parameters annotations.
..
.. bpo: 15944
.. date: 7917
.. nonce: 4GuwqX
.. section: Core and Builtins
memoryview: Allow arbitrary formats when casting to bytes. Patch by Martin
Panter.
..
.. bpo: 23441
.. date: 7916
.. 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: 7915
.. nonce: aJdWEv
.. section: Library
Fixed crashes in _json functions called with arguments of inappropriate
type.
..
.. bpo: 21697
.. date: 7914
.. 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: 7913
.. nonce: Je0yDg
.. section: Library
Fixed segmentation fault when gc.collect() is called during constructing
lru_cache (C implementation).
..
.. bpo: 24695
.. date: 7912
.. 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: 7911
.. nonce: rrnxB-
.. section: Library
Random.setstate() now validates the value of state last element.
..
.. bpo: 22485
.. date: 7910
.. nonce: HvJf6T
.. section: Library
Fixed an issue that caused `inspect.getsource` to return incorrect results
on nested functions.
..
.. bpo: 22153
.. date: 7909
.. nonce: 6n6yld
.. section: Library
Improve unittest docs. Patch from Martin Panter and evilzero.
..
.. bpo: 24580
.. date: 7908
.. 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: 7907
.. nonce: ffkVHH
.. section: Library
Fixed __eq__ and __ne__ methods of inspect classes.
..
.. bpo: 24631
.. date: 7906
.. nonce: uljPxM
.. section: Library
Fixed regression in the timeit module with multiline setup.
..
.. bpo: 18622
.. date: 7905
.. nonce: i6nCCW
.. section: Library
unittest.mock.mock_open().reset_mock would recurse infinitely. Patch from
Nicola Palumbo and Laurent De Buyst.
..
.. bpo: 23661
.. date: 7904
.. 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: 7903
.. nonce: 0TndL0
.. section: Library
chunk.Chunk.read() now always returns bytes, not str.
..
.. bpo: 18684
.. date: 7902
.. nonce: S2es0F
.. section: Library
Fixed reading out of the buffer in the re module.
..
.. bpo: 24259
.. date: 7901
.. nonce: vMAi1A
.. section: Library
tarfile now raises a ReadError if an archive is truncated inside a data
segment.
..
.. bpo: 15014
.. date: 7900
.. 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: 7899
.. nonce: kFThK0
.. section: Library
Fix inspect.getsource() for 'async def' functions. Patch by Kai Groner.
..
.. bpo: 24688
.. date: 7898
.. nonce: -yWfcO
.. section: Library
ast.get_docstring() for 'async def' functions.
..
.. bpo: 24603
.. date: 7897
.. nonce: PyHyF5
.. section: Build
Update Windows builds and OS X 10.5 installer to use OpenSSL 1.0.2d.

241
Misc/NEWS.d/3.5.0rc1.rst Normal file
View file

@ -0,0 +1,241 @@
.. bpo: 24667
.. date: 7948
.. nonce: tdwszf
.. release date: 2015-08-09
.. section: Core and Builtins
Resize odict in all cases that the underlying dict resizes.
..
.. bpo: 24824
.. date: 7947
.. nonce: Eoc4lq
.. section: Library
Signatures of codecs.encode() and codecs.decode() now are compatible with
pydoc.
..
.. bpo: 24634
.. date: 7946
.. nonce: 7bnVgr
.. section: Library
Importing uuid should not try to load libc on Windows
..
.. bpo: 24798
.. date: 7945
.. nonce: zDXL5R
.. section: Library
_msvccompiler.py doesn't properly support manifests
..
.. bpo: 4395
.. date: 7944
.. nonce: JpT0k7
.. section: Library
Better testing and documentation of binary operators. Patch by Martin
Panter.
..
.. bpo: 23973
.. date: 7943
.. nonce: wT59Vh
.. section: Library
Update typing.py from GitHub repo.
..
.. bpo: 23004
.. date: 7942
.. 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: 7941
.. nonce: 7gw4oO
.. section: Library
Handle fractional time in cookie expiry. Patch by ssh.
..
.. bpo: 23652
.. date: 7940
.. 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: 7939
.. nonce: mPclSJ
.. section: Library
Fix timezones in email.utils.formatdate. Patch from Dmitry Shachnev.
..
.. bpo: 23779
.. date: 7938
.. nonce: ET4JJP
.. section: Library
imaplib raises TypeError if authenticator tries to abort. Patch from Craig
Holmquist.
..
.. bpo: 23319
.. date: 7937
.. nonce: FXyUH-
.. section: Library
Fix ctypes.BigEndianStructure, swap correctly bytes. Patch written by
Matthieu Gautier.
..
.. bpo: 23254
.. date: 7936
.. nonce: zNiy1X
.. section: Library
Document how to close the TCPServer listening socket. Patch from Martin
Panter.
..
.. bpo: 19450
.. date: 7935
.. nonce: VG7T-L
.. section: Library
Update Windows and OS X installer builds to use SQLite 3.8.11.
..
.. bpo: 17527
.. date: 7934
.. nonce: ve9fyw
.. section: Library
Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
..
.. bpo: 24791
.. date: 7933
.. nonce: Ok-3nA
.. section: Library
Fix grammar regression for call syntax: 'g(\*a or b)'.
..
.. bpo: 23672
.. date: 7932
.. 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: 7931
.. 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: 7930
.. 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: 7929
.. nonce: vVcO1E
.. section: IDLE
Idle menus. Remove tearoff lines. Patch by Roger Serwy.
..
.. bpo: 24129
.. date: 7928
.. 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: 7927
.. nonce: ZUc9z9
.. section: Documentation
Improve reload() docs. Patch by Dorian Pula.
..
.. bpo: 23589
.. date: 7926
.. nonce: rjU421
.. section: Documentation
Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
..
.. bpo: 24729
.. date: 7925
.. nonce: PH3A9p
.. section: Documentation
Correct IO tutorial to match implementation regarding encoding parameter to
open function.
..
.. bpo: 24751
.. date: 7924
.. 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.

56
Misc/NEWS.d/3.5.0rc2.rst Normal file
View file

@ -0,0 +1,56 @@
.. bpo: 24769
.. date: 7954
.. 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: 7953
.. 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: 7952
.. 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: 7951
.. nonce: SHiiO_
.. section: Library
Removes vcruntime140.dll dependency from Tcl/Tk.
..
.. bpo: 24839
.. date: 7950
.. nonce: 7_iQZl
.. section: Library
platform._syscmd_ver raises DeprecationWarning
..
.. bpo: 24867
.. date: 7949
.. nonce: rxJIl7
.. section: Library
Fix Task.get_stack() for 'async def' coroutines

76
Misc/NEWS.d/3.5.0rc3.rst Normal file
View file

@ -0,0 +1,76 @@
.. bpo: 24305
.. date: 7962
.. 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: 7961
.. nonce: ubSi5J
.. section: Core and Builtins
Prevent __class__ assignment to immutable built-in objects.
..
.. bpo: 24975
.. date: 7960
.. nonce: 2gLdfN
.. section: Core and Builtins
Fix AST compilation for PEP 448 syntax.
..
.. bpo: 24917
.. date: 7959
.. nonce: xaQocz
.. section: Library
time_strftime() buffer over-read.
..
.. bpo: 24748
.. date: 7958
.. 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: 7957
.. 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: 7956
.. 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: 7955
.. nonce: p2ZAJ4
.. section: Library
Fix overrun error in deque.index(). Found by John Leitch and Bryce Darling.

17
Misc/NEWS.d/3.5.0rc4.rst Normal file
View file

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

17
Misc/NEWS.d/3.5.1.rst Normal file
View file

@ -0,0 +1,17 @@
.. bpo: 25709
.. date: 8112
.. 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: 8111
.. nonce: 3LLYLj
.. section: Windows
Python 3.5.1 installer shows wrong upgrade path and incorrect logic for
launcher detection.

1451
Misc/NEWS.d/3.5.1rc1.rst Normal file

File diff suppressed because it is too large Load diff

25
Misc/NEWS.d/3.5.2.rst Normal file
View file

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

2204
Misc/NEWS.d/3.5.2rc1.rst Normal file

File diff suppressed because it is too large Load diff

7
Misc/NEWS.d/3.5.3.rst Normal file
View file

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

2164
Misc/NEWS.d/3.5.3rc1.rst Normal file

File diff suppressed because it is too large Load diff

7
Misc/NEWS.d/3.6.0.rst Normal file
View file

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

3941
Misc/NEWS.d/3.6.0a1.rst Normal file

File diff suppressed because it is too large Load diff

799
Misc/NEWS.d/3.6.0a2.rst Normal file
View file

@ -0,0 +1,799 @@
.. bpo: 27095
.. date: 9032
.. 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: 9031
.. nonce: DHDFeD
.. section: Core and Builtins
Raise NotSupportedError if sqlite3 is older than 3.3.1. Patch by Dave
Sawyer.
..
.. bpo: 27286
.. date: 9030
.. 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: 9029
.. nonce: uc39-1
.. section: Core and Builtins
Added BUILD_CONST_KEY_MAP opcode.
..
.. bpo: 27186
.. date: 9028
.. nonce: EAnCS7
.. section: Core and Builtins
Add support for os.PathLike objects to open() (part of PEP 519).
..
.. bpo: 27066
.. date: 9027
.. 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: 9026
.. 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: 9025
.. 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: 9024
.. nonce: DLSzRi
.. section: Core and Builtins
Python interpreter now uses 16-bit wordcode instead of bytecode. Patch by
Demur Rumed.
..
.. bpo: 23275
.. date: 9023
.. nonce: YGPb_y
.. section: Core and Builtins
Allow assigning to an empty target list in round brackets: () = iterable.
..
.. bpo: 27243
.. date: 9022
.. 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: 9021
.. 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: 9020
.. nonce: ffzxpX
.. section: Library
Generated names for Tkinter widgets are now more meanful and recognizirable.
..
.. bpo: 25455
.. date: 9019
.. nonce: k10GoO
.. section: Library
Fixed crashes in repr of recursive ElementTree.Element and functools.partial
objects.
..
.. bpo: 27294
.. date: 9018
.. nonce: XPCURr
.. section: Library
Improved repr for Tkinter event objects.
..
.. bpo: 20508
.. date: 9017
.. nonce: 3NMbT2
.. section: Library
Improve exception message of IPv{4,6}Network.__getitem__. Patch by Gareth
Rees.
..
.. bpo: 26556
.. date: 9016
.. nonce: v5j2uL
.. original section: Library
.. section: Security
Update expat to 2.1.1, fixes CVE-2015-1283.
..
.. bpo: 0
.. date: 9015
.. nonce: PHOAdg
.. original section: Library
.. section: Security
Fix TLS stripping vulnerability in smtplib, CVE-2016-0772. Reported by Team
Oststrom.
..
.. bpo: 21386
.. date: 9014
.. nonce: DjV72U
.. section: Library
Implement missing IPv4Address.is_global property. It was documented since
07a5610bae9d. Initial patch by Roger Luethi.
..
.. bpo: 27029
.. date: 9013
.. nonce: dmycvw
.. section: Library
Removed deprecated support of universal newlines mode from ZipFile.open().
..
.. bpo: 27030
.. date: 9012
.. 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: 9011
.. nonce: UYiwoh
.. section: Library
Add os.PathLike support to DirEntry (part of PEP 519). Initial patch by
Jelle Zijlstra.
..
.. bpo: 20900
.. date: 9010
.. nonce: H5YQPR
.. section: Library
distutils register command now decodes HTTP responses correctly. Initial
patch by ingrid.
..
.. bpo: 27186
.. date: 9009
.. 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: 9008
.. nonce: ZD1wpp
.. section: Library
Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part
of PEP 519).
..
.. bpo: 27186
.. date: 9007
.. nonce: y7YRfj
.. section: Library
Introduce os.PathLike and os.fspath() (part of PEP 519).
..
.. bpo: 0
.. date: 9006
.. 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: 9005
.. 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: 9004
.. nonce: W30MBr
.. section: Library
Fix the "platform" module to tolerate when sys.version contains truncated
build information.
..
.. bpo: 26839
.. date: 9003
.. 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: 9002
.. 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: 9001
.. 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: 9000
.. 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: 8999
.. nonce: unScIG
.. section: Library
Use _sysconfigdata.py to initialize distutils.sysconfig.
..
.. bpo: 19611
.. date: 8998
.. 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: 8997
.. nonce: ya7JMb
.. section: Library
Add ``__all__`` to :mod:`string`. Patch by Emanuel Barry.
..
.. bpo: 26373
.. date: 8996
.. 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: 8995
.. 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: 8994
.. nonce: orA_j0
.. section: Library
Clarify the subprocess.CalledProcessError error message text when the child
process died due to a signal.
..
.. bpo: 25931
.. date: 8993
.. nonce: W7h6Am
.. section: Library
Don't define socketserver.Forking* names on platforms such as Windows that
do not support os.fork().
..
.. bpo: 21776
.. date: 8992
.. nonce: 04eQfa
.. section: Library
distutils.upload now correctly handles HTTPError. Initial patch by Claudiu
Popa.
..
.. bpo: 26526
.. date: 8991
.. nonce: ScewjJ
.. section: Library
Replace custom parse tree validation in the parser module with a simple DFA
validator.
..
.. bpo: 27114
.. date: 8990
.. nonce: bGCuAM
.. section: Library
Fix SSLContext._load_windows_store_certs fails with PermissionError
..
.. bpo: 18383
.. date: 8989
.. nonce: jr-b0l
.. section: Library
Avoid creating duplicate filters when using filterwarnings and simplefilter.
Based on patch by Alex Shkop.
..
.. bpo: 23026
.. date: 8988
.. nonce: V2rgYX
.. section: Library
winreg.QueryValueEx() now return an integer for REG_QWORD type.
..
.. bpo: 26741
.. date: 8987
.. nonce: fsbb42
.. section: Library
subprocess.Popen destructor now emits a ResourceWarning warning if the child
process is still running.
..
.. bpo: 27056
.. date: 8986
.. 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: 8985
.. nonce: bHIfFA
.. section: Library
New keyword only parameters in reset_mock call.
..
.. bpo: 5124
.. date: 8984
.. 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: 8983
.. 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: 8982
.. 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
colorizoer.
..
.. bpo: 27239
.. date: 8981
.. nonce: fToURh
.. section: IDLE
idlelib.macosx.isXyzTk functions initialize as needed.
..
.. bpo: 27262
.. date: 8980
.. nonce: t7ckly
.. section: IDLE
move Aqua unbinding code, which enable context menus, to maxosx.
..
.. bpo: 24759
.. date: 8979
.. 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: 8978
.. 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: 8977
.. 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: 8976
.. nonce: NxQCka
.. section: IDLE
Update idlelib/README.txt with new file names and event handlers.
..
.. bpo: 27156
.. date: 8975
.. nonce: j1N9br
.. section: IDLE
Remove obsolete code not used by IDLE. Replacements: 1. help.txt, replaced
by help.html, is out-of-date and should not be used. Its dedicated viewer
has be replaced by the html viewer in help.py. 2. ``import idlever; I =
idlever.IDLE_VERSION`` is the same as ``import sys; I =
version[:version.index(' ')]`` 3. After ``ob =
stackviewer.VariablesTreeItem(*args)``, ``ob.keys() ==
list(ob.object.keys)``. 4. In macosc, runningAsOSXAPP == isAquaTk;
idCarbonAquaTk == isCarbonTk
..
.. bpo: 27117
.. date: 8974
.. 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: 8973
.. 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: 8972
.. 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: 8971
.. nonce: pWz-OK
.. section: IDLE
Add test for IDLE's percolator. Original patch by Saimadhav Heblikar.
..
.. bpo: 21676
.. date: 8970
.. nonce: hqy6Qh
.. section: IDLE
Add test for IDLE's replace dialog. Original patch by Saimadhav Heblikar.
..
.. bpo: 18410
.. date: 8969
.. nonce: DLSPZo
.. section: IDLE
Add test for IDLE's search dialog. Original patch by Westley Martínez.
..
.. bpo: 21703
.. date: 8968
.. nonce: bEU8sP
.. section: IDLE
Add test for undo delegator. Patch mostly by Saimadhav Heblikar .
..
.. bpo: 27044
.. date: 8967
.. nonce: 4y7tyM
.. section: IDLE
Add ConfigDialog.remove_var_callbacks to stop memory leaks.
..
.. bpo: 23977
.. date: 8966
.. nonce: miDjj8
.. section: IDLE
Add more asserts to test_delegator.
..
.. bpo: 16484
.. date: 8965
.. 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: 8964
.. nonce: MUK0zK
.. section: Documentation
Document the new PEP 448 unpacking syntax of 3.5.
..
.. bpo: 22558
.. date: 8963
.. nonce: Pk02YC
.. section: Documentation
Add remaining doc links to source code for Python-coded modules. Patch by
Yoni Lavi.
..
.. bpo: 25285
.. date: 8962
.. 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: 8961
.. 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: 8960
.. 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: 8959
.. nonce: C2NDch
.. section: Build
Fix the cross-compiling pgen rule for in-tree builds. Patch by Xavier de
Gaye.
..
.. bpo: 26930
.. date: 8958
.. 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: 8957
.. nonce: QTZbRV
.. section: Windows
Remove unused and outdated icons. (See also:
https://github.com/python/pythondotorg/issues/945)
..
.. bpo: 27186
.. date: 8956
.. nonce: Ll8R-t
.. section: C API
Add the PyOS_FSPath() function (part of PEP 519).
..
.. bpo: 26282
.. date: 8955
.. nonce: Rp-R6L
.. section: C API
PyArg_ParseTupleAndKeywords() now supports positional-only parameters.
..
.. bpo: 26282
.. date: 8954
.. nonce: DRRV--
.. section: Tools/Demos
Argument Clinic now supports positional-only and keyword parameters in the
same function.

537
Misc/NEWS.d/3.6.0a3.rst Normal file
View file

@ -0,0 +1,537 @@
.. bpo: 27473
.. date: 9085
.. 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: 9084
.. 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: 9083
.. nonce: 87ZwZ1
.. section: Core and Builtins
__length_hint__() of bytearray iterators no longer return a negative integer
for a resized bytearray.
..
.. bpo: 27007
.. date: 9082
.. 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: 9081
.. 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: 9080
.. nonce: ipFvxc
.. section: Library
Fix SSL zero-length recv() calls to not block and not raise an error about
unclean EOF.
..
.. bpo: 27466
.. date: 9079
.. 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: 9078
.. 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: 9077
.. 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: 9076
.. 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: 9075
.. nonce: dBtlhI
.. section: Library
Only the level argument to zlib.compress() is keyword argument now. The
first argument is positional-only.
..
.. bpo: 27038
.. date: 9074
.. nonce: yGMV4h
.. section: Library
Expose the DirEntry type as os.DirEntry. Code patch by Jelle Zijlstra.
..
.. bpo: 27186
.. date: 9073
.. 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: 9072
.. 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: 9071
.. 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: 9070
.. nonce: c7d0Ym
.. section: Library
Fixed curses.ascii functions isblank(), iscntrl() and ispunct().
..
.. bpo: 27294
.. date: 9069
.. 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: 9068
.. 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: 9067
.. 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: 9066
.. nonce: DgLWm-
.. section: Library
socket.ioctl now supports SIO_LOOPBACK_FAST_PATH. Patch by Daniel Stokes.
..
.. bpo: 27048
.. date: 9065
.. nonce: EVe-Bk
.. section: Library
Prevents distutils failing on Windows when environment variables contain
non-ASCII characters
..
.. bpo: 27330
.. date: 9064
.. nonce: GJaFCV
.. section: Library
Fixed possible leaks in the ctypes module.
..
.. bpo: 27238
.. date: 9063
.. nonce: Q6v6Qv
.. section: Library
Got rid of bare excepts in the turtle module. Original patch by Jelle
Zijlstra.
..
.. bpo: 27122
.. date: 9062
.. 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: 9061
.. 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: 9060
.. nonce: W7tJDa
.. section: Library
sqlite3.Cursor.lastrowid now supports REPLACE statement. Initial patch by
Alex LordThorsen.
..
.. bpo: 26386
.. date: 9059
.. nonce: 9L3Ut4
.. section: Library
Fixed ttk.TreeView selection operations with item id's containing spaces.
..
.. bpo: 8637
.. date: 9058
.. 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: 9057
.. nonce: 3fQW_g
.. original section: Library
.. section: Security
Avoid shell injection problems with ctypes.util.find_library().
..
.. bpo: 16182
.. date: 9056
.. 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: 9055
.. nonce: obfni7
.. section: Library
Add loop.connect_accepted_socket(). Patch by Jim Fulton.
..
.. bpo: 27477
.. date: 9054
.. nonce: iEuL-9
.. section: IDLE
IDLE search dialogs now use ttk widgets.
..
.. bpo: 27173
.. date: 9053
.. 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: 9052
.. 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: 9051
.. nonce: RtWnyR
.. section: IDLE
add line counter and crc to IDLE configHandler test dump.
..
.. bpo: 27380
.. date: 9050
.. 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: 9049
.. nonce: k3Wj2V
.. section: IDLE
Test_idle no longer changes the locale.
..
.. bpo: 27365
.. date: 9048
.. nonce: y7ys_A
.. section: IDLE
Allow non-ascii chars in IDLE NEWS.txt, for contributor names.
..
.. bpo: 27245
.. date: 9047
.. 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: 9046
.. 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: 9045
.. nonce: KiURpC
.. section: IDLE
Fix IDLE.app failure to launch on OS X due to vestigial import.
..
.. bpo: 26754
.. date: 9044
.. 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: 9043
.. nonce: _3xImV
.. section: Build
Fix the logic that searches build directories for generated include files
when building outside the source tree.
..
.. bpo: 27442
.. date: 9042
.. 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: 9041
.. 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: 9040
.. nonce: 9JUeSD
.. section: Build
Update Windows builds to use OpenSSL 1.0.2h.
..
.. bpo: 23968
.. date: 9039
.. 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 specifc _sysconfigdata module into the platform directory and
rename it to include the ABIFLAGS.
..
.. bpo: 0
.. date: 9038
.. nonce: U46i2u
.. section: Build
Don't use largefile support for GNU/Hurd.
..
.. bpo: 27332
.. date: 9037
.. 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: 9036
.. nonce: W2m_8I
.. section: Tools/Demos
Fixed Tools/importbench/importbench.py.
..
.. bpo: 19489
.. date: 9035
.. 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: 9034
.. 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: 9033
.. nonce: 5oRSGL
.. section: Tests
Added test.support.is_android that is True when this is an Android build.

685
Misc/NEWS.d/3.6.0a4.rst Normal file
View file

@ -0,0 +1,685 @@
.. bpo: 27704
.. date: 9155
.. 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: 9154
.. 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: 9153
.. nonce: q73Tss
.. section: Core and Builtins
Decreased an overhead of parsing keyword arguments in functions implemented
with using Argument Clinic.
..
.. bpo: 22557
.. date: 9152
.. nonce: Hta2Rz
.. section: Core and Builtins
Now importing already imported modules is up to 2.5 times faster.
..
.. bpo: 17596
.. date: 9151
.. nonce: XgbA9V
.. section: Core and Builtins
Include <wincrypt.h> to help with Min GW building.
..
.. bpo: 17599
.. date: 9150
.. 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: 9149
.. nonce: 3pX0Be
.. section: Core and Builtins
Add integer overflow check in bytearray.extend(). Patch by Xiang Zhang.
..
.. bpo: 27581
.. date: 9148
.. nonce: KezjNt
.. section: Core and Builtins
Don't rely on wrapping for overflow check in PySequence_Tuple(). Patch by
Xiang Zhang.
..
.. bpo: 1621
.. date: 9147
.. nonce: _FZWTr
.. section: Core and Builtins
Avoid signed integer overflow in list and tuple operations. Patch by Xiang
Zhang.
..
.. bpo: 27419
.. date: 9146
.. 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: 9145
.. nonce: F4ZT1C
.. section: Core and Builtins
Respect the PYTHONCASEOK environment variable under Windows.
..
.. bpo: 27514
.. date: 9144
.. nonce: NLbwPG
.. section: Core and Builtins
Make having too many statically nested blocks a SyntaxError instead of
SystemError.
..
.. bpo: 27366
.. date: 9143
.. 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: 9142
.. 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: 9141
.. nonce: y7PtEV
.. section: Library
Add Collections to collections.abc. Patch by Ivan Levkivskyi, docs by Neil
Girdhar.
..
.. bpo: 25958
.. date: 9140
.. 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: 9139
.. nonce: cPbNjL
.. section: Library
Support keyword arguments to zlib.decompress(). Patch by Xiang Zhang.
..
.. bpo: 27736
.. date: 9138
.. 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: 9137
.. nonce: UcQnHF
.. section: Library
The *verbose* and *rename* parameters for collections.namedtuple are now
keyword-only.
..
.. bpo: 12345
.. date: 9136
.. nonce: nbAEM8
.. section: Library
Add mathematical constant tau to math and cmath. See also PEP 628.
..
.. bpo: 26823
.. date: 9135
.. 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: 9134
.. nonce: 6DJPxw
.. section: Library
Add to concurrent.futures.thread.ThreadPoolExecutor() the ability to specify
a thread name prefix.
..
.. bpo: 27181
.. date: 9133
.. nonce: 8aw9TZ
.. section: Library
Add geometric_mean and harmonic_mean to statistics module.
..
.. bpo: 27573
.. date: 9132
.. nonce: B7XhTs
.. section: Library
code.interact now prints an message when exiting.
..
.. bpo: 6422
.. date: 9131
.. nonce: iBSc45
.. section: Library
Add autorange method to timeit.Timer objects.
..
.. bpo: 27773
.. date: 9130
.. nonce: hMSSeX
.. section: Library
Correct some memory management errors server_hostname in _ssl.wrap_socket().
..
.. bpo: 26750
.. date: 9129
.. 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: 9128
.. nonce: XZqomf
.. section: Library
Undocumented support of general bytes-like objects as path in compile() and
similar functions is now deprecated.
..
.. bpo: 26800
.. date: 9127
.. nonce: QDcK8u
.. section: Library
Undocumented support of general bytes-like objects as paths in os functions
is now deprecated.
..
.. bpo: 26981
.. date: 9126
.. nonce: yhNTCf
.. section: Library
Add _order_ compatibility shim to enum.Enum for Python 2/3 code bases.
..
.. bpo: 27661
.. date: 9125
.. nonce: 3JZckO
.. section: Library
Added tzinfo keyword argument to datetime.combine.
..
.. bpo: 0
.. date: 9124
.. 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: 9123
.. nonce: cR1jXH
.. section: Library
Fix possible usage of uninitialized memory in operator.methodcaller.
..
.. bpo: 27774
.. date: 9122
.. nonce: FDcik1
.. section: Library
Fix possible Py_DECREF on unowned object in _sre.
..
.. bpo: 27760
.. date: 9121
.. nonce: gxMjp4
.. section: Library
Fix possible integer overflow in binascii.b2a_qp.
..
.. bpo: 27758
.. date: 9120
.. nonce: 0NRV03
.. section: Library
Fix possible integer overflow in the _csv module for large record lengths.
..
.. bpo: 27568
.. date: 9119
.. 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: 9118
.. nonce: nXsVKB
.. section: Library
Remove dead code from the "array" module's slice handling. Patch by Chuck.
..
.. bpo: 27656
.. date: 9117
.. nonce: joTscM
.. section: Library
Do not assume sched.h defines any SCHED_* constants.
..
.. bpo: 27130
.. date: 9116
.. 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: 9115
.. nonce: IDW05R
.. section: Library
Implemented PEP 495 (Local Time Disambiguation).
..
.. bpo: 0
.. date: 9114
.. nonce: lOkwM8
.. section: Library
Expose the EPOLLEXCLUSIVE constant (when it is defined) in the select
module.
..
.. bpo: 27567
.. date: 9113
.. nonce: bYOgyw
.. section: Library
Expose the EPOLLRDHUP and POLLRDHUP constants in the select module.
..
.. bpo: 1621
.. date: 9112
.. nonce: 0nclmI
.. section: Library
Avoid signed int negation overflow in the "audioop" module.
..
.. bpo: 27533
.. date: 9111
.. nonce: iDmKzV
.. section: Library
Release GIL in nt._isdir
..
.. bpo: 17711
.. date: 9110
.. nonce: 47AILJ
.. section: Library
Fixed unpickling by the persistent ID with protocol 0. Original patch by
Alexandre Vassalotti.
..
.. bpo: 27522
.. date: 9109
.. nonce: 8vVz_t
.. section: Library
Avoid an unintentional reference cycle in email.feedparser.
..
.. bpo: 27512
.. date: 9108
.. 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: 9107
.. 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: 9106
.. nonce: BcpOPU
.. section: IDLE
Put query response validation error messages in the query box itself instead
of in a separate massagebox. Redo tests to match. Add Mac OSX refinements.
Original patch by Mark Roseman.
..
.. bpo: 27620
.. date: 9105
.. nonce: TXRR6x
.. section: IDLE
Escape key now closes Query box as cancelled.
..
.. bpo: 27609
.. date: 9104
.. 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: 9103
.. 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: 9102
.. 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: 9101
.. 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: 9100
.. nonce: RtWnyR
.. section: IDLE
add line counter and crc to IDLE configHandler test dump.
..
.. bpo: 25805
.. date: 9099
.. 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: 9098
.. nonce: NS3L93
.. section: Tests
Add test.support.unix_shell as the path to the default shell.
..
.. bpo: 27369
.. date: 9097
.. nonce: LG7U2D
.. section: Tests
In test_pyexpat, avoid testing an error message detail that changed in Expat
2.2.0.
..
.. bpo: 27594
.. date: 9096
.. 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: 9095
.. nonce: -1HUR6
.. section: Windows
Update bundled Tcl/Tk to 8.6.6.
..
.. bpo: 27610
.. date: 9094
.. nonce: O0o0mB
.. section: Windows
Adds PEP 514 metadata to Windows installer
..
.. bpo: 27469
.. date: 9093
.. nonce: 0GwDkX
.. section: Windows
Adds a shell extension to the launcher so that drag and drop works
correctly.
..
.. bpo: 27309
.. date: 9092
.. nonce: chiOo6
.. section: Windows
Enables proper Windows styles in python[w].exe manifest.
..
.. bpo: 27713
.. date: 9091
.. nonce: _3DgXG
.. section: Build
Suppress spurious build warnings when updating importlib's bootstrap files.
Patch by Xiang Zhang
..
.. bpo: 25825
.. date: 9090
.. 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: 9089
.. nonce: Pb5DBi
.. section: Build
CPP invocation in configure must use CPPFLAGS. Patch by Chi Hsuan Yen.
..
.. bpo: 27641
.. date: 9088
.. 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: 9087
.. 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: 9086
.. 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
Misc/NEWS.d/3.6.0b1.rst Normal file

File diff suppressed because it is too large Load diff

840
Misc/NEWS.d/3.6.0b2.rst Normal file
View file

@ -0,0 +1,840 @@
.. bpo: 28183
.. date: 9407
.. nonce: MJZeNd
.. release date: 2016-10-10
.. section: Core and Builtins
Optimize and cleanup dict iteration.
..
.. bpo: 26081
.. date: 9406
.. nonce: _x5vjl
.. section: Core and Builtins
Added C implementation of asyncio.Future. Original patch by Yury Selivanov.
..
.. bpo: 28379
.. date: 9405
.. nonce: DuXlco
.. section: Core and Builtins
Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang
Zhang.
..
.. bpo: 28376
.. date: 9404
.. 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: 9403
.. 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: 9402
.. 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: 9401
.. 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: 9400
.. nonce: k6jffS
.. section: Core and Builtins
PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas
Koep.
..
.. bpo: 24098
.. date: 9399
.. nonce: XqlP_1
.. section: Core and Builtins
Fixed possible crash when AST is changed in process of compiling it.
..
.. bpo: 28201
.. date: 9398
.. nonce: GWUxAy
.. section: Core and Builtins
Dict reduces possibility of 2nd conflict in hash table when hashes have same
lower bits.
..
.. bpo: 28350
.. date: 9397
.. nonce: 8M5Eg9
.. section: Core and Builtins
String constants with null character no longer interned.
..
.. bpo: 26617
.. date: 9396
.. nonce: Gh5LvN
.. section: Core and Builtins
Fix crash when GC runs during weakref callbacks.
..
.. bpo: 27942
.. date: 9395
.. nonce: ZGuhns
.. section: Core and Builtins
String constants now interned recursively in tuples and frozensets.
..
.. bpo: 21578
.. date: 9394
.. nonce: GI1bhj
.. section: Core and Builtins
Fixed misleading error message when ImportError called with invalid keyword
args.
..
.. bpo: 28203
.. date: 9393
.. nonce: LRn5vp
.. section: Core and Builtins
Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
Sharma.
..
.. bpo: 28086
.. date: 9392
.. 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: 9391
.. nonce: zQF8Em
.. section: Core and Builtins
Now __set_name__ is looked up on the class instead of the instance.
..
.. bpo: 27955
.. date: 9390
.. 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: 9389
.. nonce: eR6stU
.. section: Core and Builtins
Don't import readline in isolated mode.
..
.. bpo: 0
.. date: 9388
.. nonce: 9EbOiD
.. section: Core and Builtins
Upgrade internal unicode databases to Unicode version 9.0.0.
..
.. bpo: 28131
.. date: 9387
.. 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: 9386
.. nonce: Qf6-uQ
.. section: Core and Builtins
Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
memcpy().
..
.. bpo: 28120
.. date: 9385
.. 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: 9384
.. nonce: jYlqTO
.. section: Core and Builtins
Raise DeprecationWarning when async and await keywords are used as
variable/attribute/class/function name.
..
.. bpo: 27998
.. date: 9383
.. nonce: CPhy4H
.. section: Library
Fixed bytes path support in os.scandir() on Windows. Patch by Eryk Sun.
..
.. bpo: 28317
.. date: 9382
.. nonce: LgHleA
.. section: Library
The disassembler now decodes FORMAT_VALUE argument.
..
.. bpo: 26293
.. date: 9381
.. 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: 9380
.. nonce: jKPMzH
.. section: Library
unittest.mock Mock autospec functions now properly support assert_called,
assert_not_called, and assert_called_once.
..
.. bpo: 27181
.. date: 9379
.. nonce: SQyDpC
.. section: Library
remove statistics.geometric_mean and defer until 3.7.
..
.. bpo: 28229
.. date: 9378
.. nonce: BKAxcS
.. section: Library
lzma module now supports pathlib.
..
.. bpo: 28321
.. date: 9377
.. nonce: bQ-IIX
.. section: Library
Fixed writing non-BMP characters with binary format in plistlib.
..
.. bpo: 28225
.. date: 9376
.. nonce: 6N28nu
.. section: Library
bz2 module now supports pathlib. Initial patch by Ethan Furman.
..
.. bpo: 28227
.. date: 9375
.. nonce: 7lUz8i
.. section: Library
gzip now supports pathlib. Patch by Ethan Furman.
..
.. bpo: 27358
.. date: 9374
.. 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: 9373
.. 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: 9372
.. nonce: l9hzap
.. section: Library
Fixed possible crashes when unpickle itertools objects from incorrect pickle
data. Based on patch by John Leitch.
..
.. bpo: 28228
.. date: 9371
.. nonce: 1qBwdM
.. section: Library
imghdr now supports pathlib.
..
.. bpo: 28226
.. date: 9370
.. nonce: nMXiwU
.. section: Library
compileall now supports pathlib.
..
.. bpo: 28314
.. date: 9369
.. nonce: N7YrkN
.. section: Library
Fix function declaration (C flags) for the getiterator() method of
xml.etree.ElementTree.Element.
..
.. bpo: 28148
.. date: 9368
.. 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: 9367
.. 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: 9366
.. 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: 9365
.. 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: 9364
.. 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: 9363
.. nonce: osiX5c
.. section: Library
Fix invalid exception handling in Lib/ctypes/macholib/dyld.py. Patch by
Madison May.
..
.. bpo: 27611
.. date: 9362
.. 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: 9361
.. 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: 9360
.. nonce: 3UhyPo
.. section: Library
Allow falsy values to be used for msg parameter of subTest().
..
.. bpo: 27778
.. date: 9359
.. 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: 9358
.. nonce: 4IEbr7
.. section: Library
Fix memory leak on Windows in the os module (fix path_converter() function).
..
.. bpo: 25400
.. date: 9357
.. nonce: d9Qn0E
.. section: Library
RobotFileParser now correctly returns default values for crawl_delay and
request_rate. Initial patch by Peter Wirtz.
..
.. bpo: 27932
.. date: 9356
.. nonce: mtgl-6
.. section: Library
Prevent memory leak in win32_ver().
..
.. bpo: 0
.. date: 9355
.. nonce: iPpjqX
.. section: Library
Fix UnboundLocalError in socket._sendfile_use_sendfile.
..
.. bpo: 28075
.. date: 9354
.. nonce: aLiUs9
.. section: Library
Check for ERROR_ACCESS_DENIED in Windows implementation of os.stat(). Patch
by Eryk Sun.
..
.. bpo: 22493
.. date: 9353
.. 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: 9352
.. nonce: jrZruM
.. section: Library
Prevent codecs.escape_encode() from raising SystemError when an empty
bytestring is passed.
..
.. bpo: 28181
.. date: 9351
.. nonce: NGc4Yv
.. section: Library
Get antigravity over HTTPS. Patch by Kaartic Sivaraam.
..
.. bpo: 25895
.. date: 9350
.. nonce: j92qoQ
.. section: Library
Enable WebSocket URL schemes in urllib.parse.urljoin. Patch by Gergely Imreh
and Markus Holtermann.
..
.. bpo: 28114
.. date: 9349
.. nonce: gmFXsA
.. section: Library
Fix a crash in parse_envlist() when env contains byte strings. Patch by Eryk
Sun.
..
.. bpo: 27599
.. date: 9348
.. nonce: itvm8T
.. section: Library
Fixed buffer overrun in binascii.b2a_qp() and binascii.a2b_qp().
..
.. bpo: 27906
.. date: 9347
.. nonce: TBBXrv
.. section: Library
Fix socket accept exhaustion during high TCP traffic. Patch by Kevin Conway.
..
.. bpo: 28174
.. date: 9346
.. nonce: CV1UdI
.. section: Library
Handle when SO_REUSEPORT isn't properly supported. Patch by Seth Michael
Larson.
..
.. bpo: 26654
.. date: 9345
.. nonce: XtzTE9
.. section: Library
Inspect functools.partial in asyncio.Handle.__repr__. Patch by iceboy.
..
.. bpo: 26909
.. date: 9344
.. nonce: ASiakT
.. section: Library
Fix slow pipes IO in asyncio. Patch by INADA Naoki.
..
.. bpo: 28176
.. date: 9343
.. nonce: sU8R6L
.. section: Library
Fix callbacks race in asyncio.SelectorLoop.sock_connect.
..
.. bpo: 27759
.. date: 9342
.. nonce: qpMDGq
.. section: Library
Fix selectors incorrectly retain invalid file descriptors. Patch by Mark
Williams.
..
.. bpo: 28368
.. date: 9341
.. nonce: fGl9y4
.. section: Library
Refuse monitoring processes if the child watcher has no loop attached. Patch
by Vincent Michel.
..
.. bpo: 28369
.. date: 9340
.. nonce: 8DTANe
.. section: Library
Raise RuntimeError when transport's FD is used with add_reader, add_writer,
etc.
..
.. bpo: 28370
.. date: 9339
.. nonce: 18jBuZ
.. section: Library
Speedup asyncio.StreamReader.readexactly. Patch by Коренберг Марк.
..
.. bpo: 28371
.. date: 9338
.. nonce: U9Zqdk
.. section: Library
Deprecate passing asyncio.Handles to run_in_executor.
..
.. bpo: 28372
.. date: 9337
.. nonce: njcIPk
.. section: Library
Fix asyncio to support formatting of non-python coroutines.
..
.. bpo: 28399
.. date: 9336
.. nonce: QKIqRX
.. section: Library
Remove UNIX socket from FS before binding. Patch by Коренберг Марк.
..
.. bpo: 27972
.. date: 9335
.. nonce: ZK-GFm
.. section: Library
Prohibit Tasks to await on themselves.
..
.. bpo: 28402
.. date: 9334
.. nonce: v9zETJ
.. section: Windows
Adds signed catalog files for stdlib on Windows.
..
.. bpo: 28333
.. date: 9333
.. nonce: KnpeO4
.. section: Windows
Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun)
..
.. bpo: 28251
.. date: 9332
.. nonce: tR_AFs
.. section: Windows
Improvements to help manuals on Windows.
..
.. bpo: 28110
.. date: 9331
.. nonce: cnkP5F
.. section: Windows
launcher.msi has different product codes between 32-bit and 64-bit
..
.. bpo: 28161
.. date: 9330
.. nonce: hF91LI
.. section: Windows
Opening CON for write access fails
..
.. bpo: 28162
.. date: 9329
.. nonce: 3FHPVD
.. section: Windows
WindowsConsoleIO readall() fails if first line starts with Ctrl+Z
..
.. bpo: 28163
.. date: 9328
.. nonce: -DUgJw
.. section: Windows
WindowsConsoleIO fileno() passes wrong flags to _open_osfhandle
..
.. bpo: 28164
.. date: 9327
.. nonce: 5MfN0J
.. section: Windows
_PyIO_get_console_type fails for various paths
..
.. bpo: 28137
.. date: 9326
.. nonce: C1uvzY
.. section: Windows
Renames Windows path file to ._pth
..
.. bpo: 28138
.. date: 9325
.. nonce: pNdv64
.. section: Windows
Windows ._pth file should allow import site
..
.. bpo: 28426
.. date: 9324
.. nonce: zPwvbI
.. section: C API
Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().
..
.. bpo: 28258
.. date: 9323
.. 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: 9322
.. nonce: Z_HNbs
.. section: Build
setup.py now detects system libffi with multiarch wrapper.
..
.. bpo: 15819
.. date: 9321
.. nonce: QVDr3E
.. section: Build
Remove redundant include search directory option for building outside the
source tree.
..
.. bpo: 28217
.. date: 9320
.. nonce: Y37OKV
.. section: Tests
Adds _testconsole module to test console input.

364
Misc/NEWS.d/3.6.0b3.rst Normal file
View file

@ -0,0 +1,364 @@
.. bpo: 28128
.. date: 9445
.. 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: 9444
.. nonce: _Fa4Uq
.. section: Core and Builtins
dict.update() no longer allocate unnecessary large memory.
..
.. bpo: 28426
.. date: 9443
.. nonce: E_quyK
.. section: Core and Builtins
Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
..
.. bpo: 28517
.. date: 9442
.. nonce: ExPkm9
.. section: Core and Builtins
Fixed of-by-one error in the peephole optimizer that caused keeping
unreachable code.
..
.. bpo: 28214
.. date: 9441
.. nonce: 6ECJox
.. section: Core and Builtins
Improved exception reporting for problematic __set_name__ attributes.
..
.. bpo: 23782
.. date: 9440
.. nonce: lonDzj
.. section: Core and Builtins
Fixed possible memory leak in _PyTraceback_Add() and exception loss in
PyTraceBack_Here().
..
.. bpo: 28471
.. date: 9439
.. nonce: Vd5pv7
.. section: Core and Builtins
Fix "Python memory allocator called without holding the GIL" crash in
socket.setblocking.
..
.. bpo: 26128
.. date: 9438
.. nonce: IEF1cf
.. section: Library
Added keyword-only arguments support for subprocess.STARTUPINFO
..
.. bpo: 27517
.. date: 9437
.. nonce: 1CYM8A
.. section: Library
LZMA compressor and decompressor no longer raise exceptions if given empty
data twice. Patch by Benjamin Fogle.
..
.. bpo: 28549
.. date: 9436
.. nonce: ShnM2y
.. section: Library
Fixed segfault in curses's addch() with ncurses6.
..
.. bpo: 28449
.. date: 9435
.. 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: 9434
.. nonce: 6EVB7N
.. section: Library
The webbrowser module now supports Firefox 36+ and derived browsers. Based
on patch by Oleg Broytman.
..
.. bpo: 27939
.. date: 9433
.. 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: 9432
.. nonce: oif1-H
.. section: Library
The various ways of specifying weights for random.choices() now produce the
same result sequences.
..
.. bpo: 28255
.. date: 9431
.. 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: 9430
.. nonce: ObgnQ2
.. section: Library
The textwrap.TextWrapper class now honors non-breaking spaces. Based on
patch by Kaarle Ritvanen.
..
.. bpo: 28353
.. date: 9429
.. nonce: sKGbLL
.. section: Library
os.fwalk() no longer fails on broken links.
..
.. bpo: 28430
.. date: 9428
.. 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: 9427
.. nonce: foAViS
.. section: Library
Generated names for Tkinter widgets now start by the "!" prefix for
readability.
..
.. bpo: 25464
.. date: 9426
.. nonce: HDUTCu
.. section: Library
Fixed HList.header_exists() in tkinter.tix module by addin a workaround to
Tix library bug.
..
.. bpo: 28488
.. date: 9425
.. nonce: TgO112
.. section: Library
shutil.make_archive() no longer adds entry "./" to ZIP archive.
..
.. bpo: 25953
.. date: 9424
.. 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: 9423
.. nonce: 1ANQN1
.. section: Library
Optimize csv.DictWriter for large number of columns. Patch by Mariatta
Wijaya.
..
.. bpo: 28448
.. date: 9422
.. nonce: 5bduWe
.. section: Library
Fix C implemented asyncio.Future didn't work on Windows.
..
.. bpo: 28480
.. date: 9421
.. nonce: 9lHw6m
.. section: Library
Fix error building socket module when multithreading is disabled.
..
.. bpo: 24452
.. date: 9420
.. nonce: m9Kyg3
.. section: Library
Make webbrowser support Chrome on Mac OS X.
..
.. bpo: 20766
.. date: 9419
.. nonce: 4kvCzx
.. section: Library
Fix references leaked by pdb in the handling of SIGINT handlers.
..
.. bpo: 28492
.. date: 9418
.. nonce: pFRLQE
.. section: Library
Fix how StopIteration exception is raised in _asyncio.Future.
..
.. bpo: 28500
.. date: 9417
.. nonce: NINKzZ
.. section: Library
Fix asyncio to handle async gens GC from another thread.
..
.. bpo: 26923
.. date: 9416
.. nonce: 8dh3AV
.. section: Library
Fix asyncio.Gather to refuse being cancelled once all children are done.
Patch by Johannes Ebke.
..
.. bpo: 26796
.. date: 9415
.. nonce: TZyAfJ
.. section: Library
Don't configure the number of workers for default threadpool executor.
Initial patch by Hans Lawrenz.
..
.. bpo: 28544
.. date: 9414
.. nonce: KD1oFP
.. section: Library
Implement asyncio.Task in C.
..
.. bpo: 28522
.. date: 9413
.. nonce: XHMQa7
.. section: Windows
Fixes mishandled buffer reallocation in getpathp.c
..
.. bpo: 28444
.. date: 9412
.. nonce: zkc9nT
.. section: Build
Fix missing extensions modules when cross compiling.
..
.. bpo: 28208
.. date: 9411
.. nonce: DtoP1i
.. section: Build
Update Windows build and OS X installers to use SQLite 3.14.2.
..
.. bpo: 28248
.. date: 9410
.. nonce: KY_-en
.. section: Build
Update Windows build and OS X installers to use OpenSSL 1.0.2j.
..
.. bpo: 26944
.. date: 9409
.. nonce: ChZ_BO
.. section: Tests
Fix test_posix for Android where 'id -G' is entirely wrong or missing the
effective gid.
..
.. bpo: 28409
.. date: 9408
.. nonce: Q2IlxJ
.. section: Tests
regrtest: fix the parser of command line arguments.

327
Misc/NEWS.d/3.6.0b4.rst Normal file
View file

@ -0,0 +1,327 @@
.. bpo: 28532
.. date: 9479
.. nonce: KEYJny
.. release date: 2016-11-21
.. section: Core and Builtins
Show sys.version when -V option is supplied twice.
..
.. bpo: 27100
.. date: 9478
.. 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: 9477
.. 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: 9476
.. 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: 9475
.. 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: 9474
.. 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: 9473
.. nonce: v4nx86
.. section: Core and Builtins
Improve speed of the STORE_DEREF opcode by 40%.
..
.. bpo: 28583
.. date: 9472
.. nonce: F-QAx1
.. section: Core and Builtins
PyDict_SetDefault didn't combine split table when needed. Patch by Xiang
Zhang.
..
.. bpo: 27243
.. date: 9471
.. 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: 9470
.. nonce: a8JXK2
.. section: Core and Builtins
Fix a refleak in code that raises DeprecationWarning.
..
.. bpo: 28721
.. date: 9469
.. nonce: BO9BUF
.. section: Core and Builtins
Fix asynchronous generators aclose() and athrow() to handle
StopAsyncIteration propagation properly.
..
.. bpo: 28752
.. date: 9468
.. nonce: Q-4oRE
.. section: Library
Restored the __reduce__() methods of datetime objects.
..
.. bpo: 28727
.. date: 9467
.. 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: 9466
.. nonce: lGXaH9
.. section: Library
The subprocess.Popen.wait method's undocumented endtime parameter now raises
a DeprecationWarning.
..
.. bpo: 25659
.. date: 9465
.. 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: 9464
.. nonce: HXCAIz
.. section: Library
Makes Path.resolve() succeed on paths that do not exist. Patch by Vajrasky
Kok
..
.. bpo: 28563
.. date: 9463
.. 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: 9462
.. 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: 9461
.. nonce: wMVrjN
.. section: Library
Optimize loop.call_soon.
..
.. bpo: 28613
.. date: 9460
.. nonce: sqUPrv
.. section: Library
Fix get_event_loop() return the current loop if called from
coroutines/callbacks.
..
.. bpo: 28634
.. date: 9459
.. nonce: YlRydz
.. section: Library
Fix asyncio.isfuture() to support unittest.Mock.
..
.. bpo: 26081
.. date: 9458
.. nonce: 2Y8-a9
.. section: Library
Fix refleak in _asyncio.Future.__iter__().throw.
..
.. bpo: 28639
.. date: 9457
.. nonce: WUPo1o
.. section: Library
Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
..
.. bpo: 28652
.. date: 9456
.. nonce: f5M8FG
.. section: Library
Make loop methods reject socket kinds they do not support.
..
.. bpo: 28653
.. date: 9455
.. nonce: S5bA9i
.. section: Library
Fix a refleak in functools.lru_cache.
..
.. bpo: 28703
.. date: 9454
.. nonce: CRLTJc
.. section: Library
Fix asyncio.iscoroutinefunction to handle Mock objects.
..
.. bpo: 28704
.. date: 9453
.. nonce: EFWBII
.. section: Library
Fix create_unix_server to support Path-like objects (PEP 519).
..
.. bpo: 28720
.. date: 9452
.. nonce: Fsz-Lf
.. section: Library
Add collections.abc.AsyncGenerator.
..
.. bpo: 28513
.. date: 9451
.. nonce: L3joAz
.. section: Documentation
Documented command-line interface of zipfile.
..
.. bpo: 28666
.. date: 9450
.. nonce: RtTk-4
.. section: Tests
Now test.support.rmtree is able to remove unwritable or unreadable
directories.
..
.. bpo: 23839
.. date: 9449
.. nonce: zsT_L9
.. section: Tests
Various caches now are cleared before running every test file.
..
.. bpo: 10656
.. date: 9448
.. nonce: pR8FFU
.. section: Build
Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael
Haubenwallner.
..
.. bpo: 26359
.. date: 9447
.. nonce: CLz6qy
.. section: Build
Rename --with-optimiations to --enable-optimizations.
..
.. bpo: 28676
.. date: 9446
.. nonce: Wxf6Ds
.. section: Build
Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth
Rees.

122
Misc/NEWS.d/3.6.0rc1.rst Normal file
View file

@ -0,0 +1,122 @@
.. bpo: 23722
.. date: 9491
.. 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: 9490
.. 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: 9489
.. 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: 9488
.. 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: 9487
.. nonce: iWBYH7
.. section: Library
Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overridden inside the context manager.
..
.. bpo: 27172
.. date: 9486
.. 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: 9485
.. 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: 9484
.. nonce: IrZnFs
.. section: Library
Reading a corrupt config file left configparser in an invalid state.
Original patch by Florian Höch.
..
.. bpo: 28843
.. date: 9483
.. nonce: O7M0LE
.. section: Library
Fix asyncio C Task to handle exceptions __traceback__.
..
.. bpo: 28808
.. date: 9482
.. nonce: A03X6r
.. section: C API
PyUnicode_CompareWithASCIIString() now never raises exceptions.
..
.. bpo: 23722
.. date: 9481
.. 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: 9480
.. nonce: 4gzSGp
.. section: Tools/Demos
Fix python-gdb.py didn't support new dict implementation.

45
Misc/NEWS.d/3.6.0rc2.rst Normal file
View file

@ -0,0 +1,45 @@
.. bpo: 28147
.. date: 9496
.. 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: 9495
.. 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: 9494
.. nonce: N9GQsz
.. section: Tools/Demos
Fix python-gdb.py for fastcalls.
..
.. bpo: 28896
.. date: 9493
.. nonce: ymAbmH
.. section: Windows
Deprecate WindowsRegistryFinder.
..
.. bpo: 28898
.. date: 9492
.. nonce: YGUd_i
.. section: Build
Prevent gdb build errors due to HAVE_LONG_LONG redefinition.

308
Misc/NEWS.d/3.6.1rc1.rst Normal file
View file

@ -0,0 +1,308 @@
.. bpo: 28932
.. date: 9529
.. nonce: QnLx8A
.. release date: XXXX-XX-XX
.. section: Core and Builtins
Do not include <sys/random.h> if it does not exist.
..
.. bpo: 25677
.. date: 9528
.. 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: 9527
.. nonce: K6wQ-3
.. section: Core and Builtins
Fixed bytes formatting of octals with zero padding in alternate form.
..
.. bpo: 26919
.. date: 9526
.. 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: 9525
.. 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: 9524
.. 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: 9523
.. nonce: i-pv6d
.. section: Core and Builtins
Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
..
.. bpo: 28918
.. date: 9522
.. nonce: SFVuPz
.. section: Core and Builtins
Fix the cross compilation of xxlimited when Python has been built with
Py_DEBUG defined.
..
.. bpo: 28731
.. date: 9521
.. 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: 29085
.. date: 9520
.. nonce: bm3gkx
.. section: Library
Allow random.Random.seed() to use high quality OS randomness rather than the
pid and time.
..
.. bpo: 28923
.. date: 9519
.. nonce: naVULD
.. section: Library
Remove editor artifacts from Tix.py.
..
.. bpo: 29055
.. date: 9518
.. nonce: -r_9jc
.. section: Library
Neaten-up empty population error on random.choice() by suppressing the
upstream exception.
..
.. bpo: 28871
.. date: 9517
.. nonce: cPMXCJ
.. section: Library
Fixed a crash when deallocate deep ElementTree.
..
.. bpo: 19542
.. date: 9516
.. nonce: 5tCkaK
.. section: Library
Fix bugs in WeakValueDictionary.setdefault() and WeakValueDictionary.pop()
when a GC collection happens in another thread.
..
.. bpo: 20191
.. date: 9515
.. 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: 9514
.. 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: 9513
.. 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: 9512
.. 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: 29326
.. date: 9511
.. nonce: 4qDQzs
.. section: Windows
Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
..
.. bpo: 28164
.. date: 9510
.. nonce: h4CFX8
.. section: Windows
Correctly handle special console filenames (patch by Eryk Sun)
..
.. bpo: 29409
.. date: 9509
.. nonce: bhvrJ2
.. section: Windows
Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
..
.. bpo: 29392
.. date: 9508
.. nonce: OtqS5t
.. section: Windows
Prevent crash when passing invalid arguments into msvcrt module.
..
.. bpo: 25778
.. date: 9507
.. nonce: 8uKJ82
.. section: Windows
winreg does not truncate string correctly (Patch by Eryk Sun)
..
.. bpo: 28896
.. date: 9506
.. nonce: VMi9w0
.. section: Windows
Deprecate WindowsRegistryFinder and disable it by default.
..
.. bpo: 29349
.. date: 9505
.. nonce: PjSo-t
.. section: Documentation
Fix Python 2 syntax in code for building the documentation.
..
.. bpo: 28950
.. date: 9504
.. nonce: 1W8Glo
.. section: Tests
Disallow -j0 to be combined with -T/-l in regrtest command line arguments.
..
.. bpo: 28683
.. date: 9503
.. 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: 9502
.. nonce: 7j_W5R
.. section: Tests
Add the support.setswitchinterval() function to fix test_functools hanging
on the Android armv7 qemu emulator.
..
.. bpo: 28762
.. date: 9501
.. 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: 9500
.. 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: 9499
.. 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: 9498
.. nonce: AzRRF5
.. section: Build
Do not define sys.implementation._multiarch on Android.

View file

@ -0,0 +1,2 @@
Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth
Rees.

View file

@ -0,0 +1,2 @@
Remove redundant include search directory option for building outside the
source tree.

View file

@ -0,0 +1,3 @@
A full copy of libffi is no longer bundled for use when building _ctypes on
non-OSX UNIX platforms. An installed copy of libffi is now required when
building _ctypes on such platforms.

View file

@ -0,0 +1 @@
setup.py now detects system libffi with multiarch wrapper.

View file

@ -0,0 +1,2 @@
Fixed build with Estonian locale (python-config and distclean targets in
Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.

View file

@ -0,0 +1,2 @@
Add configure check for siginfo_t.si_band, which Cygwin does not provide.
Patch by Masayuki Yamamoto with review and rebase by Erik Bray.

View file

@ -0,0 +1,2 @@
Fix building extensions modules on Cygwin. Patch by Roumen Petrov, based on
original patch by Jason Tishler.

View file

@ -0,0 +1,2 @@
Fix building the _struct module on Cygwin by passing ``NULL`` instead of
``&PyType_Type`` to PyVarObject_HEAD_INIT. Patch by Masayuki Yamamoto.

View file

@ -0,0 +1 @@
Update Windows build and OS X installers to use OpenSSL 1.0.2j.

View file

@ -0,0 +1 @@
Update Windows build and OS X installers to use SQLite 3.14.2.

View file

@ -0,0 +1 @@
Fix missing extensions modules when cross compiling.

View file

@ -0,0 +1 @@
Rename --with-optimiations to --enable-optimizations.

View file

@ -0,0 +1,2 @@
Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael
Haubenwallner.

View file

@ -0,0 +1 @@
Do not define sys.implementation._multiarch on Android.

View file

@ -0,0 +1,3 @@
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.

View file

@ -0,0 +1,2 @@
Fix the compilation error that occurs because if_nameindex() is available on
Android API level 24, but the if_nameindex structure is not defined.

View file

@ -0,0 +1,2 @@
lockf() is available on Android API level 24, but the F_LOCK macro is not
defined in android-ndk-r13.

View file

@ -0,0 +1 @@
Added missed names to PC/python3.def.

View file

@ -0,0 +1 @@
Removes hard dependency on hg.exe from PCBuild/build.bat

View file

@ -0,0 +1 @@
Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto

View file

@ -0,0 +1 @@
Set Android compilation and link flags.

View file

@ -0,0 +1 @@
Remove old Be OS helper scripts.

View file

@ -0,0 +1,3 @@
Prohibit implicit C function declarations: use -Werror=implicit-function-
declaration when possible (GCC and Clang, but it depends on the compiler
version). Patch written by Chi Hsuan Yen.

View file

@ -0,0 +1 @@
Update Windows build and OS X installers to use OpenSSL 1.0.2k.

View file

@ -0,0 +1,3 @@
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.

View file

@ -0,0 +1 @@
Fix ``--enable-optimization`` didn't work.

View file

@ -0,0 +1,2 @@
Don't regenerate generated files based on file modification time anymore:
the action is now explicit. Replace ``make touch`` with ``make regen-all``.

View file

@ -0,0 +1,3 @@
Prevent unnecessary rebuilding of Python during ``make test``, ``make
install`` and some other make targets when configured with ``--enable-
optimizations``.

View file

@ -0,0 +1 @@
Fix out-of-tree builds of Python when configured with ``--with--dtrace``.

View file

@ -0,0 +1,2 @@
Add ``--with-assertions`` configure flag to explicitly enable C ``assert()``
checks. Defaults to off. ``--with-pydebug`` implies ``--with-assertions``.

View file

@ -0,0 +1,2 @@
Support the *disabled* marker in Setup files. Extension modules listed after
this marker are not built at all, neither by the Makefile nor by setup.py.

View file

@ -0,0 +1 @@
Locate msbuild.exe on Windows when building rather than vcvarsall.bat

View file

@ -0,0 +1,3 @@
Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().

View file

@ -0,0 +1 @@
Compiler warnings are now emitted if use most of deprecated functions.

View file

@ -0,0 +1,2 @@
Private variable _Py_PackageContext is now of type ``const char *`` rather
of ``char *``.

View file

@ -0,0 +1,3 @@
The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type ``const char *`` rather of ``char *``.

View file

@ -0,0 +1 @@
PyUnicode_CompareWithASCIIString() now never raises exceptions.

View file

@ -0,0 +1,2 @@
The index parameters *start* and *end* of PyUnicode_FindChar() are now
adjusted to behave like ``str[start:end]``.

View file

@ -0,0 +1,3 @@
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.

View file

@ -0,0 +1,2 @@
The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of
type ``const char *`` rather of ``char *``.

View file

@ -0,0 +1,5 @@
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.

View file

@ -0,0 +1,4 @@
Function PySlice_GetIndicesEx() is deprecated and 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. Added functions
PySlice_Unpack() and PySlice_AdjustIndices().

View file

@ -0,0 +1,3 @@
The type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), and the id parameter of
PyThreadState_SetAsyncExc() changed from "long" to "unsigned long".

View file

@ -0,0 +1,2 @@
Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(),
PyOS_AfterFork_Parent() and PyOS_AfterFork_Child().

View file

@ -0,0 +1,2 @@
PyUnicode_AsWideCharString() now raises a ValueError if the second argument
is NULL and the wchar_t\* string contains null characters.

View file

@ -0,0 +1 @@
Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes.

View file

@ -0,0 +1,2 @@
Fix asynchronous generators aclose() and athrow() to handle
StopAsyncIteration propagation properly.

View file

@ -0,0 +1 @@
Fix a refleak in code that raises DeprecationWarning.

View file

@ -0,0 +1,2 @@
Raise DeprecationWarning when async and await keywords are used as
variable/attribute/class/function name.

View file

@ -0,0 +1,2 @@
Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.

View file

@ -0,0 +1,2 @@
Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
memcpy().

View file

@ -0,0 +1,2 @@
Fix a regression in zipimport's compile_source(). zipimport should use the
same optimization level as the interpreter.

View file

@ -0,0 +1 @@
Upgrade internal unicode databases to Unicode version 9.0.0.

View file

@ -0,0 +1 @@
Clean up redundant code in long_rshift function. Thanks Oren Milman.

View file

@ -0,0 +1,2 @@
Remove some redundant assignments to ob_size in longobject.c. Thanks Oren
Milman.

View file

@ -0,0 +1 @@
Don't import readline in isolated mode.

View file

@ -0,0 +1,2 @@
Fallback on reading /dev/urandom device when the getrandom() syscall fails
with EPERM, for example when blocked by SECCOMP.

View file

@ -0,0 +1 @@
Now __set_name__ is looked up on the class instead of the instance.

View file

@ -0,0 +1,2 @@
Single var-positional argument of tuple subtype was passed unscathed to the
C-defined function. Now it is converted to exact tuple.

View file

@ -0,0 +1,2 @@
Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
Sharma.

View file

@ -0,0 +1,2 @@
Fixed misleading error message when ImportError called with invalid keyword
args.

View file

@ -0,0 +1 @@
ImportError.__init__ now resets not specified attributes.

View file

@ -0,0 +1 @@
String constants now interned recursively in tuples and frozensets.

View file

@ -0,0 +1 @@
Fix crash when GC runs during weakref callbacks.

View file

@ -0,0 +1 @@
String constants with null character no longer interned.

View file

@ -0,0 +1,2 @@
Dict reduces possibility of 2nd conflict in hash table when hashes have same
lower bits.

View file

@ -0,0 +1 @@
Fixed possible crash when AST is changed in process of compiling it.

Some files were not shown because too many files have changed in this diff Show more