From: Ezio Melotti Date: Tue, 10 May 2011 22:10:27 +0000 (+0300) Subject: #12051: merge with 3.1. X-Git-Tag: v3.2.1rc1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f188bc5d4618103bd86a49a6b473e4a86e6b22b7;p=python #12051: merge with 3.1. --- f188bc5d4618103bd86a49a6b473e4a86e6b22b7 diff --cc Misc/NEWS index ac9ac79da2,cdb63bed6f..fdac4a2059 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -304,111 -202,140 +304,114 @@@ Librar - Issue #11089: Fix performance issue limiting the use of ConfigParser() with large config files. -- Issue #8275: Fix passing of callback arguments with ctypes under Win64. - Patch by Stan Mihai. - -- Issue #11053: Fix IDLE "Syntax Error" windows to behave as in 2.x, - preventing a confusing hung appearance on OS X with the windows - obscured. +- Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers + larger than 4GB. Patch by Nadeem Vawda. -- Issue #11052: Correct IDLE menu accelerators on Mac OS X for Save - commands. +- Issue #9348: Raise an early error if argparse nargs and metavar don't match. -- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3 - conversion. +- Issue #8982: Improve the documentation for the argparse Namespace object. -- Issue #10974: IDLE no longer crashes if its recent files list includes files - with non-ASCII characters in their path names. +- Issue #9343: Document that argparse parent parsers must be configured before + their children. -- Issue #10987: Fix the recursion limit handling in the _pickle module. +- Issue #9026: Fix order of argparse sub-commands in help messages. -- Issue #10949: Improved robustness of rotating file handlers. +- Issue #9347: Fix formatting for tuples in argparse type= error messages. -- Issue #10955: Fix a potential crash when trying to mmap() a file past its - length. Initial patch by Ross Lagerwall. +Build +----- -- Issue #10898: Allow compiling the posix module when the C library defines - a symbol named FSTAT. +- Issue #11347: Use --no-as-needed when linking libpython3.so. -- Issue #10916: mmap should not segfault when a file is mapped using 0 as - length and a non-zero offset, and an attempt to read past the end of file - is made (IndexError is raised instead). Patch by Ross Lagerwall. +- Issue #11411: Fix 'make DESTDIR=' with a relative destination. -- Issue #10899: No function type annotations in the standard library. - Removed function type annotations from _pyio.py. +- Issue #11268: Prevent Mac OS X Installer failure if Documentation + package had previously been installed. -- Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'. +IDLE +---- -- Issue #10869: Fixed bug where ast.increment_lineno modified the root - node twice. +- Issue #11718: IDLE's open module dialog couldn't find the __init__.py + file in a package. -- Issue #5871: email.header.Header.encode now raises an error if any - continuation line in the formatted value has no leading white space - and looks like a header. Since Generator uses Header to format all - headers, this check is made for all headers in any serialized message - at serialization time. This provides protection against header - injection attacks. +Tools/Demos +----------- -- Issue #7858: Raise an error properly when os.utime() fails under Windows - on an existing file. +- Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. -- Issue #3839: wsgiref should not override a Content-Length header set by - the application. Initial patch by Clovis Fabricio. +Extension Modules +----------------- -- Issue #10790: email.header.Header.append's charset logic now works correctly - for charsets whose output codec is different from its input codec. ++- Issue #12051: Fix segfault in json.dumps() while encoding highly-nested ++ objects using the C accelerations. + -- Issue #6643: Reinitialize locks held within the threading module after fork - to avoid a potential rare deadlock or crash on some platforms. +- Issue #12017: Fix segfault in json.loads() while decoding highly-nested + objects using the C accelerations. -- Issue #10806, issue #9905: Fix subprocess pipes when some of the standard - file descriptors (0, 1, 2) are closed in the parent process. Initial - patch by Ross Lagerwall. +- Issue #1838: Prevent segfault in ctypes, when _as_parameter_ on a class is set + to an instance of the class. -- Issue #10753 - Characters ';', '=' and ',' in the PATH_INFO environment - variable won't be quoted when the URI is constructed by the wsgiref.util's - request_uri method. According to RFC 3986, these characters can be a part of - params in PATH component of URI and need not be quoted. +Tests +----- -- Issue #10738: Fix webbrowser.Opera.raise_opts +- Issue #11873: Change regex in test_compileall to fix occasional failures when + when the randomly generated temporary path happened to match the regex. -- Issue #9824: SimpleCookie now encodes , and ; in values to cater to how - browsers actually parse cookies. +- Issue #10914: Add a minimal embedding test to test_capi. -- Issue #5258/#10642: if site.py encounters a .pth file that generates an error, - it now prints the filename, line number, and traceback to stderr and skips - the rest of that individual file, instead of stopping processing entirely. +- Issue #11790: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition. -- Issue #4871: The zipfile module now gives a more useful error message if - an attempt is made to use a string to specify the archive password. +- Fix possible "file already exists" error when running the tests in parallel. -- Issue #10750: The ``raw`` attribute of buffered IO objects is now read-only. +- Issue #11719: Fix message about unexpected test_msilib skip on non-Windows + platforms. Patch by Nadeem Vawda. -- Issue #6791: Limit header line length (to 65535 bytes) in http.client - and http.server, to avoid denial of services from the other party. +- Issue #11653: fix -W with -j in regrtest. -- Issue #10404: Use ctl-button-1 on OSX for the context menu in Idle. +- Issue #11577: improve test coverage of binhex.py. Patch by Arkady Koplyarov. -- Issue #4188: Avoid creating dummy thread objects when logging operations - from the threading module (with the internal verbose flag activated). +- Issue #11578: added test for the timeit module. Patch Michael Henry. -- Issue #9721: Fix the behavior of urljoin when the relative url starts with a - ';' character. Patch by Wes Chow. +- Issue #11503: improve test coverage of posixpath.py. Patch by Evan Dandrea. -- Issue #10714: Limit length of incoming request in http.server to 65536 bytes - for security reasons. Initial patch by Ross Lagerwall. +- Issue #11505: improves test coverage of string.py. Patch by Alicia + Arlen. -- Issue #9558: Fix distutils.command.build_ext with VS 8.0. +- Issue #11548: Improve test coverage of the shutil module. Patch by + Evan Dandrea. -- Issue #10695: passing the port as a string value to telnetlib no longer - causes debug mode to fail. +- Issue #11554: Reactivated test_email_codecs. -- Issue #1078919: add_header now automatically RFC2231 encodes parameters - that contain non-ascii values. +- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a + false positive if the last directory in the path is inaccessible. -- Issue #10107: Warn about unsaved files in IDLE on OSX. +- Issue #11223: Fix test_threadsignals to fail, not hang, when the + non-semaphore implementation of locks is used under POSIX. -- Issue #7904: Changes to urllib.parse.urlsplit to handle schemes as defined by - RFC3986. Anything before :// is considered a scheme and is followed by an - authority (or netloc) and by '/' led path, which is optional. +- Issue #10911: Add tests on CGI with non-ASCII characters. Patch written by + Pierre Quentel. -- Issue #10478: Reentrant calls inside buffered IO objects (for example by - way of a signal handler) now raise a RuntimeError instead of freezing the - current process. +- Issue #9931: Fix hangs in GUI tests under Windows in certain conditions. + Patch by Hirokazu Yamamoto. -- Issue #10464: netrc now correctly handles lines with embedded '#' characters. +- Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due + to open door files. -- Issue #1731717: Fixed the problem where subprocess.wait() could cause an - OSError exception when The OS had been told to ignore SIGCLD in our process - or otherwise not wait for exiting child processes. +Documentation +------------- -- Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified - IP addresses in the proxy exception list. +- Issue #11818: Fix tempfile examples for Python 3. -Extension Modules ------------------ -- Issue #12051: Fix segfault in json.dumps() while encoding highly-nested - objects using the C accelerations. +What's New in Python 3.2? +========================= -- Issue #12017: Fix segfault in json.loads() while decoding highly-nested - objects using the C accelerations. +*Release date: 20-Feb-2011* -- Issue #1838: Prevent segfault in ctypes, when _as_parameter_ on a class is set - to an instance of the class. +Core and Builtins +----------------- -- Issue #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. +- Issue #11249: Fix potential crashes when using the limited API. Build -----