mirror of https://github.com/python/cpython
519 lines
9.5 KiB
ReStructuredText
519 lines
9.5 KiB
ReStructuredText
|
.. 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).
|