mirror of https://github.com/python/cpython.git
Rewrap and punctuation consistency.
This commit is contained in:
parent
eea594b446
commit
255abdd372
118
Misc/NEWS
118
Misc/NEWS
|
@ -23,18 +23,18 @@ Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
- Issue #10889: range indexing and slicing now works correctly on ranges with
|
- Issue #10889: range indexing and slicing now works correctly on ranges with
|
||||||
a length that exceeds sys.maxsize
|
a length that exceeds sys.maxsize.
|
||||||
|
|
||||||
- Issue #10892: Don't segfault when trying to delete __abstractmethods__ from a
|
- Issue #10892: Don't segfault when trying to delete __abstractmethods__ from a
|
||||||
class.
|
class.
|
||||||
|
|
||||||
- Issue #8020: Avoid a crash where the small objects allocator would read
|
- Issue #8020: Avoid a crash where the small objects allocator would read
|
||||||
non-Python managed memory while it is being modified by another thread.
|
non-Python managed memory while it is being modified by another thread. Patch
|
||||||
Patch by Matt Bandy.
|
by Matt Bandy.
|
||||||
|
|
||||||
- Issue #10841: On Windows, set the binary mode on stdin, stdout, stderr and
|
- Issue #10841: On Windows, set the binary mode on stdin, stdout, stderr and all
|
||||||
all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python
|
io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
|
||||||
parser translates newlines (\r\n => \n).
|
translates newlines (\r\n => \n).
|
||||||
|
|
||||||
- Remove buffer API from stable ABI for now, see #10181.
|
- Remove buffer API from stable ABI for now, see #10181.
|
||||||
|
|
||||||
|
@ -60,38 +60,37 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
- Issue #10916: mmap should not segfault when a file is mapped using 0 as
|
- Issue #10916: mmap should not segfault when a file is mapped using 0 as length
|
||||||
length and a non-zero offset, and an attempt to read past the end of file
|
and a non-zero offset, and an attempt to read past the end of file is made
|
||||||
is made (IndexError is raised instead). Patch by Ross Lagerwall.
|
(IndexError is raised instead). Patch by Ross Lagerwall.
|
||||||
|
|
||||||
- Issue #10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5,
|
- Issue #10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5, rather
|
||||||
rather than the currently problematic Apple-supplied one, when running
|
than the currently problematic Apple-supplied one, when running with the
|
||||||
with the 64-/32-bit installer variant.
|
64-/32-bit installer variant.
|
||||||
|
|
||||||
- Issue #4953: cgi.FieldStorage and cgi.parse() parse the request as bytes, not
|
- Issue #4953: cgi.FieldStorage and cgi.parse() parse the request as bytes, not
|
||||||
as unicode, and accept binary files. Add encoding and errors attributes to
|
as unicode, and accept binary files. Add encoding and errors attributes to
|
||||||
cgi.FieldStorage. Patch written by Pierre Quentel (with many inputs by Glenn
|
cgi.FieldStorage. Patch written by Pierre Quentel (with many inputs by Glenn
|
||||||
Linderman).
|
Linderman).
|
||||||
|
|
||||||
- Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl()
|
- Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl().
|
||||||
|
|
||||||
- Issue #10899: No function type annotations in the standard library.
|
- Issue #10899: No function type annotations in the standard library. Removed
|
||||||
Removed function type annotations from _pyio.py.
|
function type annotations from _pyio.py.
|
||||||
|
|
||||||
- Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.
|
- Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.
|
||||||
|
|
||||||
- Issue #10872: The repr() of TextIOWrapper objects now includes the mode
|
- Issue #10872: The repr() of TextIOWrapper objects now includes the mode
|
||||||
if available.
|
if available.
|
||||||
|
|
||||||
- Issue #10869: Fixed bug where ast.increment_lineno modified the root
|
- Issue #10869: Fixed bug where ast.increment_lineno modified the root node
|
||||||
node twice.
|
twice.
|
||||||
|
|
||||||
- Issue #5871: email.header.Header.encode now raises an error if any
|
- Issue #5871: email.header.Header.encode now raises an error if any
|
||||||
continuation line in the formatted value has no leading white space
|
continuation line in the formatted value has no leading white space and looks
|
||||||
and looks like a header. Since Generator uses Header to format all
|
like a header. Since Generator uses Header to format all headers, this check
|
||||||
headers, this check is made for all headers in any serialized message
|
is made for all headers in any serialized message at serialization time. This
|
||||||
at serialization time. This provides protection against header
|
provides protection against header injection attacks.
|
||||||
injection attacks.
|
|
||||||
|
|
||||||
- Issue #10859: Make ``contextlib.GeneratorContextManager`` officially
|
- Issue #10859: Make ``contextlib.GeneratorContextManager`` officially
|
||||||
private by renaming it to ``_GeneratorContextManager``.
|
private by renaming it to ``_GeneratorContextManager``.
|
||||||
|
@ -100,13 +99,13 @@ Library
|
||||||
comparisons that could lead to infinite recursion.
|
comparisons that could lead to infinite recursion.
|
||||||
|
|
||||||
- Issue #10686: the email package now :rfc:`2047`\ -encodes headers with
|
- Issue #10686: the email package now :rfc:`2047`\ -encodes headers with
|
||||||
non-ASCII bytes (parsed by a Bytes Parser) when doing conversion to
|
non-ASCII bytes (parsed by a Bytes Parser) when doing conversion to 7bit-clean
|
||||||
7bit-clean presentation, instead of replacing them with ?s.
|
presentation, instead of replacing them with ?s.
|
||||||
|
|
||||||
- email.header.Header was incorrectly encoding folding white space when
|
- email.header.Header was incorrectly encoding folding white space when
|
||||||
rfc2047-encoding header values with embedded newlines, leaving them
|
rfc2047-encoding header values with embedded newlines, leaving them without
|
||||||
without folding whitespace. It now uses the continuation_ws, as it
|
folding whitespace. It now uses the continuation_ws, as it does for
|
||||||
does for continuation lines that it creates itself.
|
continuation lines that it creates itself.
|
||||||
|
|
||||||
- Issue #1777412, #10827: Changed the rules for 2-digit years. The
|
- Issue #1777412, #10827: Changed the rules for 2-digit years. The
|
||||||
time.asctime(), time.ctime() and time.strftime() functions will now format
|
time.asctime(), time.ctime() and time.strftime() functions will now format
|
||||||
|
@ -140,12 +139,12 @@ Library
|
||||||
the input buffer length doesn't fit into an unsigned int (length bigger than
|
the input buffer length doesn't fit into an unsigned int (length bigger than
|
||||||
2^32-1 bytes).
|
2^32-1 bytes).
|
||||||
|
|
||||||
- Issue #6643: Reinitialize locks held within the threading module after fork
|
- Issue #6643: Reinitialize locks held within the threading module after fork to
|
||||||
to avoid a potential rare deadlock or crash on some platforms.
|
avoid a potential rare deadlock or crash on some platforms.
|
||||||
|
|
||||||
- Issue #10806, issue #9905: Fix subprocess pipes when some of the standard
|
- Issue #10806, issue #9905: Fix subprocess pipes when some of the standard file
|
||||||
file descriptors (0, 1, 2) are closed in the parent process. Initial
|
descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross
|
||||||
patch by Ross Lagerwall.
|
Lagerwall.
|
||||||
|
|
||||||
- `unittest.TestCase` can be instantiated without a method name; for simpler
|
- `unittest.TestCase` can be instantiated without a method name; for simpler
|
||||||
exploration from the interactive interpreter.
|
exploration from the interactive interpreter.
|
||||||
|
@ -156,32 +155,32 @@ Library
|
||||||
- Issue #10807: Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs from
|
- Issue #10807: Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs from
|
||||||
the codec aliases. They are still accessible via codecs.lookup().
|
the codec aliases. They are still accessible via codecs.lookup().
|
||||||
|
|
||||||
- Issue #10801: In zipfile, support different encodings for the header and
|
- Issue #10801: In zipfile, support different encodings for the header and the
|
||||||
the filenames.
|
filenames.
|
||||||
|
|
||||||
- Issue #6285: IDLE no longer crashes on missing help file; patch by Scott
|
- Issue #6285: IDLE no longer crashes on missing help file; patch by Scott
|
||||||
David Daniels.
|
David Daniels.
|
||||||
|
|
||||||
- Fix collections.OrderedDict.setdefault() so that it works in
|
- Fix collections.OrderedDict.setdefault() so that it works in subclasses that
|
||||||
subclasses that define __missing__().
|
define __missing__().
|
||||||
|
|
||||||
- Issue #10786: unittest.TextTestRunner default stream no longer bound at
|
- Issue #10786: unittest.TextTestRunner default stream no longer bound at import
|
||||||
import time. `sys.stderr` now looked up at instantiation time. Fix
|
time. `sys.stderr` now looked up at instantiation time. Fix contributed by
|
||||||
contributed by Mark Roddy.
|
Mark Roddy.
|
||||||
|
|
||||||
- Issue #10753: Characters ';','=' and ',' in the PATH_INFO environment
|
- Issue #10753: Characters ';','=' and ',' in the PATH_INFO environment variable
|
||||||
variable won't be quoted when the URI is constructed by the wsgiref.util 's
|
won't be quoted when the URI is constructed by the wsgiref.util 's request_uri
|
||||||
request_uri method. According to RFC 3986, these characters can be a part of
|
method. According to RFC 3986, these characters can be a part of params in
|
||||||
params in PATH component of URI and need not be quoted.
|
PATH component of URI and need not be quoted.
|
||||||
|
|
||||||
- Issue #10738: Fix webbrowser.Opera.raise_opts.
|
- Issue #10738: Fix webbrowser.Opera.raise_opts.
|
||||||
|
|
||||||
- Issue #9824: SimpleCookie now encodes , and ; in values to cater to how
|
- Issue #9824: SimpleCookie now encodes , and ; in values to cater to how
|
||||||
browsers actually parse cookies.
|
browsers actually parse cookies.
|
||||||
|
|
||||||
- Issue #9333: os.symlink now available regardless of user privileges.
|
- Issue #9333: os.symlink now available regardless of user privileges. The
|
||||||
The function now raises OSError on Windows >=6.0 when the user is unable
|
function now raises OSError on Windows >=6.0 when the user is unable to create
|
||||||
to create symbolic links. XP and 2003 still raise NotImplementedError.
|
symbolic links. XP and 2003 still raise NotImplementedError.
|
||||||
|
|
||||||
- Issue #10783: struct.pack() no longer implicitly encodes unicode to UTF-8.
|
- Issue #10783: struct.pack() no longer implicitly encodes unicode to UTF-8.
|
||||||
|
|
||||||
|
@ -224,16 +223,15 @@ C-API
|
||||||
- Issue #10913: Deprecate misleading functions PyEval_AcquireLock() and
|
- Issue #10913: Deprecate misleading functions PyEval_AcquireLock() and
|
||||||
PyEval_ReleaseLock(). The thread-state aware APIs should be used instead.
|
PyEval_ReleaseLock(). The thread-state aware APIs should be used instead.
|
||||||
|
|
||||||
- Issue #10333: Remove ancient GC API, which has been deprecated since
|
- Issue #10333: Remove ancient GC API, which has been deprecated since Python
|
||||||
Python 2.2.
|
2.2.
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
- Issue #10843: Update third-party library versions used in OS X
|
- Issue #10843: Update third-party library versions used in OS X 32-bit
|
||||||
32-bit installer builds: bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4
|
installer builds: bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4 (with FTS3/FTS4
|
||||||
(with FTS3/FTS4 and RTREE enabled), and ncursesw 5.5 (wide-char
|
and RTREE enabled), and ncursesw 5.5 (wide-char support enabled).
|
||||||
support enabled).
|
|
||||||
|
|
||||||
- Issue #10820: Fix OS X framework installs to support version-specific
|
- Issue #10820: Fix OS X framework installs to support version-specific
|
||||||
scripts (#10679).
|
scripts (#10679).
|
||||||
|
@ -255,17 +253,17 @@ Build
|
||||||
Tools/Demos
|
Tools/Demos
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
- Issue #10843: Install the Tools directory on OS X in the applications
|
- Issue #10843: Install the Tools directory on OS X in the applications Extras
|
||||||
Extras (/Applications/Python 3.n/Extras/) where the Demo directory
|
(/Applications/Python 3.n/Extras/) where the Demo directory had previous been
|
||||||
had previous been installed.
|
installed.
|
||||||
|
|
||||||
- Issue #7962: The Demo directory is gone. Most of the old and unmaintained
|
- Issue #7962: The Demo directory is gone. Most of the old and unmaintained
|
||||||
demos have been removed, others integrated in documentation or a new
|
demos have been removed, others integrated in documentation or a new
|
||||||
Tools/demo subdirectory.
|
Tools/demo subdirectory.
|
||||||
|
|
||||||
- Issue #10502: Addition of the unittestgui tool. Originally by Steve Purcell.
|
- Issue #10502: Addition of the unittestgui tool. Originally by Steve Purcell.
|
||||||
Updated for test discovery by Mark Roddy and Python 3 compatibility by
|
Updated for test discovery by Mark Roddy and Python 3 compatibility by Brian
|
||||||
Brian Curtin.
|
Curtin.
|
||||||
|
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
@ -281,9 +279,9 @@ Tests
|
||||||
- Issue #5485: Add tests for the UseForeignDTD method of expat parser objects.
|
- Issue #5485: Add tests for the UseForeignDTD method of expat parser objects.
|
||||||
Patch by Jean-Paul Calderone and Sandro Tosi.
|
Patch by Jean-Paul Calderone and Sandro Tosi.
|
||||||
|
|
||||||
- Issue #6293: Have regrtest.py echo back sys.flags. This is done by default
|
- Issue #6293: Have regrtest.py echo back sys.flags. This is done by default in
|
||||||
in whole runs and enabled selectively using ``--header`` when running an
|
whole runs and enabled selectively using ``--header`` when running an explicit
|
||||||
explicit list of tests. Original patch by Collin Winter.
|
list of tests. Original patch by Collin Winter.
|
||||||
|
|
||||||
|
|
||||||
What's New in Python 3.2 Beta 2?
|
What's New in Python 3.2 Beta 2?
|
||||||
|
|
Loading…
Reference in New Issue