Kaydet (Commit) 4fbc0d8b authored tarafından Georg Brandl's avatar Georg Brandl

Minor edits.

üst 74ebd9e6
...@@ -13,8 +13,8 @@ Core and Builtins ...@@ -13,8 +13,8 @@ Core and Builtins
- Issue #10372: Import the warnings module only after the IO library is - Issue #10372: Import the warnings module only after the IO library is
initialized, so as to avoid bootstrap issues with the '-W' option. initialized, so as to avoid bootstrap issues with the '-W' option.
- Issue #10293: Remove obsolete field in the PyMemoryView structure, - Issue #10293: Remove obsolete field in the PyMemoryView structure, unused
unused undocumented value PyBUF_SHADOW, and strangely-looking code in undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous. PyMemoryView_GetContiguous.
- Issue #6081: Add str.format_map, similar to str.format(**mapping). - Issue #6081: Add str.format_map, similar to str.format(**mapping).
...@@ -24,35 +24,35 @@ Core and Builtins ...@@ -24,35 +24,35 @@ Core and Builtins
- Issue #10221: dict.pop(k) now has a key error message that includes the - Issue #10221: dict.pop(k) now has a key error message that includes the
missing key (same message d[k] returns for missing keys). missing key (same message d[k] returns for missing keys).
- Issue #5437: A preallocated MemoryError instance should not hold traceback - Issue #5437: A preallocated MemoryError instance should not keep traceback
data (including local variables caught in the stack trace) alive infinitely. data (including local variables caught in the stack trace) alive infinitely.
- Issue #10186: Fix the SyntaxError caret when the offset is equal to the length - Issue #10186: Fix the SyntaxError caret when the offset is equal to the length
of the offending line. of the offending line.
- Issue #10089: Add support for arbitrary -X options on the command-line. - Issue #10089: Add support for arbitrary -X options on the command line. They
They can be retrieved through a new attribute ``sys._xoptions``. can be retrieved through a new attribute ``sys._xoptions``.
- Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead - Issue #4388: On Mac OS X, decode command line arguments from UTF-8, instead of
of the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment
variable is not set, the locale encoding is ISO-8859-1, whereas most programs variable is not set, the locale encoding is ISO-8859-1, whereas most programs
(including Python) expect UTF-8. Python already uses UTF-8 for the filesystem (including Python) expect UTF-8. Python already uses UTF-8 for the filesystem
encoding and to encode command line arguments on this OS. encoding and to encode command line arguments on this OS.
- Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects - Issue #9713, #10114: Parser functions (e.g. PyParser_ASTFromFile) expect
filenames encoded to the filesystem encoding with surrogateescape error filenames encoded to the filesystem encoding with the surrogateescape error
handler (to support undecodable bytes), instead of UTF-8 in strict mode. handler (to support undecodable bytes), instead of UTF-8 in strict mode.
- Issue #9997: Don't let the name "top" have special significance in scope - Issue #9997: Don't let the name "top" have special significance in scope
resolution. resolution.
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding - Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding its value as
its value as the default 512 when compiling on AIX. the default 512 when compiling on AIX.
- Use locale encoding instead of UTF-8 to encode and decode filenames if - Use locale encoding instead of UTF-8 to encode and decode filenames if
Py_FileSystemDefaultEncoding is not set. Py_FileSystemDefaultEncoding is not set.
- Issue #10095: fp_setreadl() doesn't reopen the file, reuse instead the file - Issue #10095: fp_setreadl() doesn't reopen the file, instead reuse the file
descriptor. descriptor.
- Issue #9418: Moved private string methods ``_formatter_parser`` and - Issue #9418: Moved private string methods ``_formatter_parser`` and
...@@ -65,47 +65,46 @@ Library ...@@ -65,47 +65,46 @@ Library
- Issue #5111: IPv6 Host in the Header is wrapped inside [ ]. Patch by Chandru. - Issue #5111: IPv6 Host in the Header is wrapped inside [ ]. Patch by Chandru.
- Fix Fraction.__hash__ so that Fraction.__hash__(-1) is -2. (See - Fix Fraction.__hash__ so that Fraction.__hash__(-1) is -2. (See also issue
also issue #10356.) #10356.)
- Issue #4471: Add the IMAP.starttls() method to enable encryption on - Issue #4471: Add the IMAP.starttls() method to enable encryption on standard
standard IMAP4 connections. Original patch by Lorenzo M. Catucci. IMAP4 connections. Original patch by Lorenzo M. Catucci.
- Issue #1466065: Add 'validate' option to base64.b64decode to raise - Issue #1466065: Add 'validate' option to base64.b64decode to raise an error if
an error if there are non-base64 alphabet characters in the input. there are non-base64 alphabet characters in the input.
- Issue #10386: Add __all__ to token module; this simplifies importing - Issue #10386: Add __all__ to token module; this simplifies importing in
in tokenize module and prevents leaking of private names through tokenize module and prevents leaking of private names through import *.
import *.
- Issue #4471: Properly shutdown socket in IMAP.shutdown(). Patch by - Issue #4471: Properly shutdown socket in IMAP.shutdown(). Patch by Lorenzo
Lorenzo M. Catucci. M. Catucci.
- Fix IMAP.login() to work properly. - Fix IMAP.login() to work properly.
- Issue #9244: multiprocessing pool worker processes could terminate - Issue #9244: multiprocessing pool worker processes could terminate
unexpectedly if the return value of a task could not be pickled. Only unexpectedly if the return value of a task could not be pickled. Only the
the ``repr`` of such errors are now sent back, wrapped in an ``repr`` of such errors are now sent back, wrapped in an
``MaybeEncodingError`` exception. ``MaybeEncodingError`` exception.
- Issue #9244: The ``apply_async()`` and ``map_async()`` methods - Issue #9244: The ``apply_async()`` and ``map_async()`` methods of
of ``multiprocessing.Pool`` now accepts a ``error_callback`` argument. ``multiprocessing.Pool`` now accepts a ``error_callback`` argument. This can
This can be a callback with the signature ``callback(exc)``, which will be a callback with the signature ``callback(exc)``, which will be called if
be called if the target raises an exception. the target raises an exception.
- Issue #10022: The dictionary returned by the ``getpeercert()`` method - Issue #10022: The dictionary returned by the ``getpeercert()`` method of SSL
of SSL sockets now has additional items such as ``issuer`` and ``notBefore``. sockets now has additional items such as ``issuer`` and ``notBefore``.
- ``usenetrc`` is now false by default for NNTP objects. - ``usenetrc`` is now false by default for NNTP objects.
- Issue #1926: Add support for NNTP over SSL on port 563, as well as - Issue #1926: Add support for NNTP over SSL on port 563, as well as STARTTLS.
STARTTLS. Patch by Andrew Vant. Patch by Andrew Vant.
- Issue #10335: Add tokenize.open(), detect the file encoding using - Issue #10335: Add tokenize.open(), detect the file encoding using
tokenize.detect_encoding() and open it in read only mode. tokenize.detect_encoding() and open it in read only mode.
- Issue #10321: Added support for binary data to smtplib.SMTP.sendmail, - Issue #10321: Add support for binary data to smtplib.SMTP.sendmail, and a new
and a new method send_message to send an email.message.Message object. method send_message to send an email.message.Message object.
- Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error - Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
...@@ -130,60 +129,59 @@ Library ...@@ -130,60 +129,59 @@ Library
- Issue #10180: Pickling file objects is now explicitly forbidden, since - Issue #10180: Pickling file objects is now explicitly forbidden, since
unpickling them produced nonsensical results. unpickling them produced nonsensical results.
- Issue #10311: The signal module now restores errno before returning from - Issue #10311: The signal module now restores errno before returning from its
its low-level signal handler. Patch by Hallvard B Furuseth. low-level signal handler. Patch by Hallvard B Furuseth.
- Issue #10282: Add a ``nntp_implementation`` attribute to NNTP objects. - Issue #10282: Add a ``nntp_implementation`` attribute to NNTP objects.
- Issue #10283: Add a ``group_pattern`` argument to NNTP.list(). - Issue #10283: Add a ``group_pattern`` argument to NNTP.list().
- Issue #10155: Add IISCGIHandler to wsgiref.handlers to support IIS - Issue #10155: Add IISCGIHandler to wsgiref.handlers to support IIS CGI
CGI environment better, and to correct unicode environment values environment better, and to correct unicode environment values for WSGI 1.0.1.
for WSGI 1.0.1.
- Issue #10281: nntplib now returns None for absent fields in the OVER/XOVER - Issue #10281: nntplib now returns None for absent fields in the OVER/XOVER
response, instead of raising an exception. response, instead of raising an exception.
- wsgiref now implements and validates PEP 3333, rather than an experimental - wsgiref now implements and validates PEP 3333, rather than an experimental
extension of PEP 333. (Note: earlier versions of Python 3.x may have extension of PEP 333. (Note: earlier versions of Python 3.x may have
incorrectly validated some non-compliant applications as WSGI compliant; incorrectly validated some non-compliant applications as WSGI compliant; if
if your app validates with Python <3.2b1+, but not on this version, it is your app validates with Python <3.2b1+, but not on this version, it is likely
likely the case that your app was not compliant.) the case that your app was not compliant.)
- Issue #10280: NNTP.nntp_version should reflect the highest version - Issue #10280: NNTP.nntp_version should reflect the highest version advertised
advertised by the server. by the server.
- Issue #10184: Touch directories only once when extracting a tarfile. - Issue #10184: Touch directories only once when extracting a tarfile.
- Issue #10199: New package, ``turtledemo`` now contains selected demo - Issue #10199: New package, ``turtledemo`` now contains selected demo scripts
scripts that were formerly found under Demo/turtle. that were formerly found under Demo/turtle.
- Issue #10265: Close file objects explicitly in sunau. Patch by Brian Brazil. - Issue #10265: Close file objects explicitly in sunau. Patch by Brian Brazil.
- Issue #10266: uu.decode didn't close in_file explicitly when it was given - Issue #10266: uu.decode didn't close in_file explicitly when it was given as a
as a filename. Patch by Brian Brazil. filename. Patch by Brian Brazil.
- Issue #10110: Queue objects didn't recognize full queues when the - Issue #10110: Queue objects didn't recognize full queues when the maxsize
maxsize parameter had been reduced. parameter had been reduced.
- Issue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou. - Issue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou.
- logging: Added style option to basicConfig() to allow %, {} or $-formatting. - logging: Added style option to basicConfig() to allow %, {} or $-formatting.
- Issue #5729: json.dumps() now supports using a string such as '\t' - Issue #5729: json.dumps() now supports using a string such as '\t' for
for pretty-printing multilevel objects. pretty-printing multilevel objects.
- Issue #10253: FileIO leaks a file descriptor when trying to open a file - Issue #10253: FileIO leaks a file descriptor when trying to open a file for
for append that isn't seekable. Patch by Brian Brazil. append that isn't seekable. Patch by Brian Brazil.
- Support context manager protocol for file-like objects returned by - Support context manager protocol for file-like objects returned by mailbox
mailbox ``get_file()`` methods. ``get_file()`` methods.
- Issue #10246: uu.encode didn't close file objects explicitly when filenames - Issue #10246: uu.encode didn't close file objects explicitly when filenames
were given to it. Patch by Brian Brazil. were given to it. Patch by Brian Brazil.
- Issue #10198: fix duplicate header written to wave files when writeframes() - Issue #10198: fix duplicate header written to wave files when writeframes() is
is called without data. called without data.
- Close file objects in modulefinder in a timely manner. - Close file objects in modulefinder in a timely manner.
...@@ -193,20 +191,20 @@ Library ...@@ -193,20 +191,20 @@ Library
- Close a file object in pkgutil in a timely manner. - Close a file object in pkgutil in a timely manner.
- Issue #10233: Close file objects in a timely manner in the tarfile module - Issue #10233: Close file objects in a timely manner in the tarfile module and
and its test suite. its test suite.
- Issue #10093: ResourceWarnings are now issued when files and sockets are - Issue #10093: ResourceWarnings are now issued when files and sockets are
deallocated without explicit closing. These warnings are silenced by deallocated without explicit closing. These warnings are silenced by default,
default, except in pydebug mode. except in pydebug mode.
- tarfile.py: Add support for all missing variants of the GNU sparse - tarfile.py: Add support for all missing variants of the GNU sparse extensions
extensions and create files with holes when extracting sparse members. and create files with holes when extracting sparse members.
- Issue #10218: Return timeout status from ``Condition.wait`` in threading. - Issue #10218: Return timeout status from ``Condition.wait`` in threading.
- Issue #7351: Add ``zipfile.BadZipFile`` spelling of the exception name - Issue #7351: Add ``zipfile.BadZipFile`` spelling of the exception name and
and deprecate the old name ``zipfile.BadZipfile``. deprecate the old name ``zipfile.BadZipfile``.
- Issue #5027: The standard ``xml`` namespace is now understood by - Issue #5027: The standard ``xml`` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to xml.sax.saxutils.XMLGenerator as being bound to
...@@ -218,21 +216,19 @@ Library ...@@ -218,21 +216,19 @@ Library
- logging: Added style option to Formatter to allow %, {} or $-formatting. - logging: Added style option to Formatter to allow %, {} or $-formatting.
- Issue #5178: Added tempfile.TemporaryDirectory class that can be used - Issue #5178: Added tempfile.TemporaryDirectory class that can be used as a
as a context manager. context manager.
- Issue #1349106: Generator (and BytesGenerator) flatten method and Header - Issue #1349106: Generator (and BytesGenerator) flatten method and Header
encode method now support a 'linesep' argument. encode method now support a 'linesep' argument.
- Issue #5639: Add a *server_hostname* argument to ``SSLContext.wrap_socket`` - Issue #5639: Add a *server_hostname* argument to ``SSLContext.wrap_socket`` in
in order to support the TLS SNI extension. ``HTTPSConnection`` and order to support the TLS SNI extension. ``HTTPSConnection`` and ``urlopen()``
``urlopen()`` also use this argument, so that HTTPS virtual hosts are now also use this argument, so that HTTPS virtual hosts are now supported.
supported.
- Issue #10166: Avoid recursion in pstats Stats.add() for many stats items. - Issue #10166: Avoid recursion in pstats Stats.add() for many stats items.
- Issue #10163: Skip unreadable registry keys during mimetypes - Issue #10163: Skip unreadable registry keys during mimetypes initialization.
initialization.
- logging: Made StreamHandler terminator configurable. - logging: Made StreamHandler terminator configurable.
...@@ -245,9 +241,9 @@ Library ...@@ -245,9 +241,9 @@ Library
- logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to - logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to
increase flexibility of LogRecord creation. increase flexibility of LogRecord creation.
- Issue #5117: Case normalization was needed on ntpath.relpath(). And - Issue #5117: Case normalization was needed on ntpath.relpath(). Also fixed
fixed root directory issue on posixpath.relpath(). (Ported working fixes root directory issue on posixpath.relpath(). (Ported working fixes from
from ntpath) ntpath.)
- Issue #1343: xml.sax.saxutils.XMLGenerator now has an option - Issue #1343: xml.sax.saxutils.XMLGenerator now has an option
short_empty_elements to direct it to use self-closing tags when appropriate. short_empty_elements to direct it to use self-closing tags when appropriate.
...@@ -266,34 +262,33 @@ Library ...@@ -266,34 +262,33 @@ Library
- Issue #9409: Fix the regex to match all kind of filenames, for interactive - Issue #9409: Fix the regex to match all kind of filenames, for interactive
debugging in doctests. debugging in doctests.
- Issue #9183: ``datetime.timezone(datetime.timedelta(0))`` will now - Issue #9183: ``datetime.timezone(datetime.timedelta(0))`` will now return the
return the same instance as ``datetime.timezone.utc``. same instance as ``datetime.timezone.utc``.
- Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module, - Issue #7523: Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module, where
where supported by the system. Patch by Nikita Vetoshkin. supported by the system. Patch by Nikita Vetoshkin.
- Issue #10063: file:// scheme will stop accessing remote hosts via ftp - Issue #10063: file:// scheme will stop accessing remote hosts via ftp
protocol. file:// urls had fallback to access remote hosts via ftp. This was protocol. file:// urls had fallback to access remote hosts via ftp. This was
not correct, change is made to raise a URLError when a remote host is tried not correct, change is made to raise a URLError when a remote host is tried to
to access via file:// scheme. access via file:// scheme.
- Issue #1710703: Write structures for an empty ZIP archive when a ZipFile is - Issue #1710703: Write structures for an empty ZIP archive when a ZipFile is
created in modes 'a' or 'w' and then closed without adding any files. Raise created in modes 'a' or 'w' and then closed without adding any files. Raise
BadZipfile (rather than IOError) when opening small non-ZIP files. BadZipfile (rather than IOError) when opening small non-ZIP files.
- Issue #10041: The signature of optional arguments in socket.makefile() - Issue #10041: The signature of optional arguments in socket.makefile() didn't
didn't match that of io.open(), and they also didn't get forwarded match that of io.open(), and they also didn't get forwarded properly to
properly to TextIOWrapper in text mode. Patch by Kai Zhu. TextIOWrapper in text mode. Patch by Kai Zhu.
- Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler and - Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler and
urllib.request.urlopen now take optional arguments to allow for urllib.request.urlopen now take optional arguments to allow for server
server certificate checking, as recommended in public uses of HTTPS. certificate checking, as recommended in public uses of HTTPS.
- Issue #6612: Fix site and sysconfig to catch os.getcwd() error, eg. if the - Issue #6612: Fix site and sysconfig to catch os.getcwd() error, eg. if the
current directory was deleted. Patch written by W. Trevor King. current directory was deleted. Patch written by W. Trevor King.
- Issue #3873: Speed up unpickling from file objects which have a peek() - Issue #3873: Speed up unpickling from file objects that have a peek() method.
method.
- Issue #10075: Add a session_stats() method to SSLContext objects. - Issue #10075: Add a session_stats() method to SSLContext objects.
...@@ -314,12 +309,12 @@ Extension Modules ...@@ -314,12 +309,12 @@ Extension Modules
- Issue #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. - Issue #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
- Issue #9054: Fix a crash occurring when using the pyexpat module - Issue #9054: Fix a crash occurring when using the pyexpat module with expat
with expat version 2.0.1. version 2.0.1.
- Issue #5355: Provide mappings from Expat error numbers to string - Issue #5355: Provide mappings from Expat error numbers to string descriptions
descriptions and backwards, in order to actually make it possible and backwards, in order to actually make it possible to analyze error codes
to analyze error codes provided by ExpatError. provided by ExpatError.
- The Unicode database was updated to 6.0.0. - The Unicode database was updated to 6.0.0.
...@@ -327,8 +322,7 @@ C-API ...@@ -327,8 +322,7 @@ C-API
----- -----
- Issue #10288: The deprecated family of "char"-handling macros - Issue #10288: The deprecated family of "char"-handling macros
(ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc (ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc instead.
instead.
- Issue #9778: Hash values are now always the size of pointers. A new Py_hash_t - Issue #9778: Hash values are now always the size of pointers. A new Py_hash_t
type has been introduced. type has been introduced.
...@@ -336,22 +330,22 @@ C-API ...@@ -336,22 +330,22 @@ C-API
Tools/Demos Tools/Demos
----------- -----------
- Issue #10117: Tools/scripts/reindent.py now accepts source files - Issue #10117: Tools/scripts/reindent.py now accepts source files that use
that use encoding other than ASCII or UTF-8. Source encoding is encoding other than ASCII or UTF-8. Source encoding is preserved when
preserved when reindented code is written to a file. reindented code is written to a file.
- Issue #7287: Demo/imputil/knee.py was removed. - Issue #7287: Demo/imputil/knee.py was removed.
Tests Tests
----- -----
- Issue #3699: Fix test_bigaddrspace and extend it to test bytestrings - Issue #3699: Fix test_bigaddrspace and extend it to test bytestrings as well
as well as unicode strings. Initial patch by Sandro Tosi. as unicode strings. Initial patch by Sandro Tosi.
- Issue #10294: Remove dead code form test_unicode_file. - Issue #10294: Remove dead code form test_unicode_file.
- Issue #10123: Don't use non-ascii filenames in test_doctest tests. Add a - Issue #10123: Don't use non-ascii filenames in test_doctest tests. Add a new
new test specific to unicode (non-ascii name and filename). test specific to unicode (non-ascii name and filename).
Build Build
----- -----
...@@ -366,8 +360,8 @@ Build ...@@ -366,8 +360,8 @@ Build
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension. - Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
- Issue #7473: avoid link errors when building a framework with a different - Issue #7473: avoid link errors when building a framework with a different set
set of architectures than the one that is currently installed. of architectures than the one that is currently installed.
What's New in Python 3.2 Alpha 3? What's New in Python 3.2 Alpha 3?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment