From: Benjamin Peterson Date: Sat, 6 Apr 2013 19:18:15 +0000 (-0400) Subject: merge 3.3 X-Git-Tag: v3.4.0a1~1019 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bd190f7add07ca05d1f9402dd026b2b970118da;p=thirdparty%2FPython%2Fcpython.git merge 3.3 --- 7bd190f7add07ca05d1f9402dd026b2b970118da diff --cc Misc/NEWS index bff486a1add2,ca191b5ccf1c..d5529b63e172 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -13,42 -15,69 +13,40 @@@ Core and Builtin - Issue #14010: Fix a crash when iterating or deleting deeply nested filters (builting and in itertools module, i.e. map(), itertools.chain(), etc). -- Issue #17619: Make input() check for Ctrl-C correctly on Windows. - -- Issue #17610: Don't rely on non-standard behavior of the C qsort() function. - -- Issue #17357: Add missing verbosity output when using -v/-vv. - -Library -------- - -- Issue #17572: Avoid chained exceptions while passing bad directives to - time.strptime(). Initial patch by Claudiu Popa. - -- Issue #17435: threading.Timer's __init__ method no longer uses mutable - default values for the args and kwargs parameters. - -- Issue #17526: fix an IndexError raised while passing code without filename to - inspect.findsource(). Initial patch by Tyler Doyle. - -IDLE ----- - -- Issue #17625: In IDLE, close the replace dialog after it is used. - -- Issue #14254: IDLE now handles readline correctly across shell restarts. +- Issue #17469: Fix _Py_GetAllocatedBlocks() and sys.getallocatedblocks() + when running on valgrind. -- Issue #17614: IDLE no longer raises exception when quickly closing a file. - -- Issue #6698: IDLE now opens just an editor window when configured to do so. - -- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer - raises an exception. - -- Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. - -Documentation -------------- - -- Issue #15940: Specify effect of locale on time functions. +- Issue #17619: Make input() check for Ctrl-C correctly on Windows. +- Issue #17357: Add missing verbosity messages for -v/-vv that were lost during + the importlib transition. -What's New in Python 3.3.1? -=========================== +- Issue #17610: Don't rely on non-standard behavior of the C qsort() function. -*Release date: 07-Apr-2013* +- Issue #17323: The "[X refs, Y blocks]" printed by debug builds has been + disabled by default. It can be re-enabled with the `-X showrefcount` option. -Build ------ +- Issue #17522: Add the PyGILState_Check() API. -- Issue #17550: Fix the --enable-profiling configure switch. +- Issue #16475: Support object instancing, recursion and interned strings + in marshal -Library -------- +- Use the HTTPS PyPI url for upload, overriding any plain HTTP URL in pypirc. --- Issue #17625: In IDLE, close the replace dialog after it is used. - +- Issue #16795: On the ast.arguments object, unify vararg with varargannotation + and kwarg and kwargannotation. Change the column offset of ast.Attribute to be + at the attribute name. +- Issue #17434: Properly raise a SyntaxError when a string occurs between future + imports. -What's New in Python 3.3.1 release candidate 1? -=============================================== +- Issue #17117: Import and @importlib.util.set_loader now set __loader__ when + it has a value of None or the attribute doesn't exist. -*Release date: 24-Mar-2013* +- Issue #17327: Add PyDict_SetDefault. -Core and Builtins ------------------ +- Issue #17032: The "global" in the "NameError: global name 'x' is not defined" + error message has been removed. Patch by Ram Rachum. - Issue #17328: Fix possible refleak in dict.setdefault. @@@ -312,33 -263,8 +310,22 @@@ Library ------- +- Issue #17572: Avoid chained exceptions while passing bad directives to + time.strptime(). Initial patch by Claudiu Popa. + - - Issue #14254: IDLE now handles readline correctly across shell restarts. - - - Issue #17614: IDLE no longer raises exception when quickly closing a file. - - - Issue #6698: IDLE now opens just an editor window when configured to do so. - - - Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer - raises an exception. - - - Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. - +- Issue #17435: threading.Timer's __init__ method no longer uses mutable + default values for the args and kwargs parameters. + +- Issue #17526: fix an IndexError raised while passing code without filename to + inspect.findsource(). Initial patch by Tyler Doyle. + - Issue #17540: Added style to formatter configuration by dict. +- Issue #16692: The ssl module now supports TLS 1.1 and TLS 1.2. Initial + patch by Michele Orrù. + +- Issue #17025: multiprocessing: Reduce Queue and SimpleQueue contention. + - Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser, iceweasel, iceape. @@@ -527,8 -388,8 +514,6 @@@ _ Issue #17385: Fix quadratic behavior - Issue #17073: Fix some integer overflows in sqlite3 module. --- Issue #17114: IDLE now uses non-strict config parser. -- - Issue #16723: httplib.HTTPResponse no longer marked closed when the connection is automatically closed. @@@ -590,9 -439,9 +575,6 @@@ - Issue #15505: `unittest.installHandler` no longer assumes SIGINT handler is set to a callable object. --- Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase -- interface and support all mandatory methods and properties. -- - Issue #13454: Fix a crash when deleting an iterator created by itertools.tee() if all other iterators were very advanced before. @@@ -628,15 -477,8 +608,12 @@@ - SSLContext.load_dh_params() now properly closes the input file. --- Issue #16829: IDLE printing no longer fails if there are spaces or other -- special characters in the file path. - +- Issue #15031: Refactor some .pyc management code to cut down on code + duplication. Thanks to Ronan Lamy for the report and taking an initial stab + at the problem. + +- Issue #16398: Optimize deque.rotate() so that it only moves pointers + and doesn't touch the underlying data with increfs and decrefs. - Issue #16900: Issue a ResourceWarning when an ssl socket is left unclosed. @@@ -647,9 -489,7 +624,7 @@@ failing if the connection used a row factory (such as sqlite3.Row) that produced unsortable objects. (Regression was introduced by fix for 9750). --- Issue #16491: IDLE now prints chained exception tracebacks. - +- fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+. - Issue #15972: Fix error messages when os functions expecting a file name or file descriptor receive the incorrect type. @@@ -685,13 -510,10 +660,11 @@@ clears previous values stored in the default section. Same goes for ``parser.update({'DEFAULT': {}})``. --- Issue #16819: IDLE method completion now correctly works for bytes literals. -- - Issue #9586: Redefine SEM_FAILED on MacOSX to keep compiler happy. +- Issue #16787: Increase asyncore and asynchat default output buffers size, to + decrease CPU usage and increase throughput. + - Issue #10527: make multiprocessing use poll() instead of select() if available. - Issue #16688: Now regexes contained backreferences correctly work with @@@ -710,9 -528,9 +683,6 @@@ - Issue #16641: Default values of sched.scheduler.enter() are no longer modifiable. --- Issue #16504: IDLE now catches SyntaxErrors raised by tokenizer. Patch by -- Roger Serwy. -- - Issue #16618: Make glob.glob match consistently across strings and bytes regarding leading dots. Patch by Serhiy Storchaka. @@@ -721,9 -537,9 +691,6 @@@ - Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for localhost tests. --- Issue #16511: Use default IDLE width and height if config param is not valid. -- Patch Serhiy Storchaka. -- - Issue #16713: Parsing of 'tel' urls using urlparse separates params from path. @@@ -883,12 -648,9 +850,9 @@@ - Issue #16152: fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder. -- Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu - Patch by Todd Rovito. +- Issue #16284: Prevent keeping unnecessary references to worker functions + in concurrent.futures ThreadPoolExecutor. - - Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu - Patch by Todd Rovito. - - Issue #16230: Fix a crash in select.select() when one the lists changes size while iterated on. Patch by Serhiy Storchaka. @@@ -957,20 -692,10 +921,17 @@@ - Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror. -- Issue #16076: Made _elementtree.Element pickleable in a way that is compatible - with the Python Element. Pickling/unpickling of xml.etree.ElementTree.Element - works again - this was a temporary regression from 3.2 where the by-default - imported _elementtree had no pickling capability. +- Issue #1492704: shutil.copyfile() raises a distinct SameFileError now if + source and destination are the same file. Patch by Atsuo Ishimoto. + +- Issue #13896: Make shelf instances work with 'with' as context managers. + Original patch by Filip Gruszczyński. + +- Issue #15417: Add support for csh and fish in venv activation scripts. + - - Issue #16123: IDLE - deprecate running without a subprocess. - Patch by Roger Serwy. - +- Issue #14377: ElementTree.write and some of the module-level functions have + a new parameter - *short_empty_elements*. It controls how elements with no + contents are emitted. - Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL). @@@ -1052,6 -762,6 +1013,60 @@@ - Issue #12268: The io module file object write methods no longer abort early when one of its write system calls is interrupted (EINTR). ++IDLE ++---- ++ ++- Issue #14254: IDLE now handles readline correctly across shell restarts. ++ ++- Issue #17614: IDLE no longer raises exception when quickly closing a file. ++ ++- Issue #6698: IDLE now opens just an editor window when configured to do so. ++ ++- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer ++ raises an exception. ++ ++- Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. ++ ++- Issue #17625: In IDLE, close the replace dialog after it is used. ++ ++- Issue #16123: IDLE - deprecate running without a subprocess. ++ Patch by Roger Serwy. ++ ++- Issue #1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu ++ Patch by Todd Rovito. ++ ++- Issue #16511: Use default IDLE width and height if config param is not valid. ++ Patch Serhiy Storchaka. ++ ++- Issue #16504: IDLE now catches SyntaxErrors raised by tokenizer. Patch by ++ Roger Serwy. ++ ++- Issue #16819: IDLE method completion now correctly works for bytes literals. ++ ++- Issue #16491: IDLE now prints chained exception tracebacks. ++ ++- Issue #16829: IDLE printing no longer fails if there are spaces or other ++ special characters in the file path. ++ ++- Issue #5066: Update IDLE docs. Patch by Todd Rovito. ++ ++- Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase ++ interface and support all mandatory methods and properties. ++ ++- Issue #17114: IDLE now uses non-strict config parser. ++ ++- Issue #14254: IDLE now handles readline correctly across shell restarts. ++ ++- Issue #17614: IDLE no longer raises exception when quickly closing a file. ++ ++- Issue #6698: IDLE now opens just an editor window when configured to do so. ++ ++- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer ++ raises an exception. ++ ++- Issue #6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. ++ ++ Tests -----