<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Changelog — Python v3.3.2 documentation</title> <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '3.3.2', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/sidebar.js"></script> <link rel="search" type="application/opensearchdescription+xml" title="Search within Python v3.3.2 documentation" href="../_static/opensearch.xml"/> <link rel="author" title="About these documents" href="../about.html" /> <link rel="copyright" title="Copyright" href="../copyright.html" /> <link rel="top" title="Python v3.3.2 documentation" href="../index.html" /> <link rel="up" title="What’s New in Python" href="index.html" /> <link rel="next" title="The Python Tutorial" href="../tutorial/index.html" /> <link rel="prev" title="What’s New in Python 2.0" href="2.0.html" /> <link rel="shortcut icon" type="image/png" href="../_static/py.png" /> <script type="text/javascript" src="../_static/copybutton.js"></script> <script type="text/javascript"> $(document).ready(function() { // add the search form and bind the events $('h1').after([ '<p>Filter entries by content:', '<input type="text" value="" id="searchbox" style="width: 50%">', '<input type="submit" id="searchbox-submit" value="Filter"></p>' ].join('\n')); function dofilter() { try { var query = new RegExp($('#searchbox').val(), 'i'); } catch (e) { return; // not a valid regex (yet) } // find headers for the versions (What's new in Python X.Y.Z?) $('#changelog h2').each(function(index1, h2) { var h2_parent = $(h2).parent(); var sections_found = 0; // find headers for the sections (Core, Library, etc.) h2_parent.find('h3').each(function(index2, h3) { var h3_parent = $(h3).parent(); var entries_found = 0; // find all the entries h3_parent.find('li').each(function(index3, li) { var li = $(li); // check if the query matches the entry if (query.test(li.text())) { li.show(); entries_found++; } else { li.hide(); } }); // if there are entries, show the section, otherwise hide it if (entries_found > 0) { h3_parent.show(); sections_found++; } else { h3_parent.hide(); } }); if (sections_found > 0) h2_parent.show(); else h2_parent.hide(); }); } $('#searchbox').keyup(dofilter); $('#searchbox-submit').click(dofilter); }); </script> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="../tutorial/index.html" title="The Python Tutorial" accesskey="N">next</a> |</li> <li class="right" > <a href="2.0.html" title="What’s New in Python 2.0" accesskey="P">previous</a> |</li> <li><img src="../_static/py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="http://www.python.org/">Python</a> »</li> <li> <a href="../index.html">3.3.2 Documentation</a> » </li> <li><a href="index.html" accesskey="U">What’s New in Python</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="changelog"> <h1>Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline">¶</a></h1> <div class="section" id="python-3-3-2"> <h2>Python 3.3.2<a class="headerlink" href="#python-3-3-2" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 13-May-2013</em></p> <div class="section" id="core-and-builtins"> <h3>Core and Builtins<a class="headerlink" href="#core-and-builtins" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17237">Issue #17237</a>: Fix crash in the ASCII decoder on m68k.</li> <li><a class="reference external" href="http://bugs.python.org/17408">Issue #17408</a>: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.</li> <li><a class="reference external" href="http://bugs.python.org/17863">Issue #17863</a>: In the interactive console, don’t loop forever if the encoding can’t be fetched from stdin.</li> <li><a class="reference external" href="http://bugs.python.org/17867">Issue #17867</a>: Raise an ImportError if __import__ is not found in __builtins__.</li> <li><a class="reference external" href="http://bugs.python.org/17857">Issue #17857</a>: Prevent build failures with pre-3.5.0 versions of sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.</li> <li><a class="reference external" href="http://bugs.python.org/17413">Issue #17413</a>: sys.settrace callbacks were being passed a string instead of an exception instance for the ‘value’ element of the arg tuple if the exception originated from C code; now an exception instance is always provided.</li> <li><a class="reference external" href="http://bugs.python.org/17782">Issue #17782</a>: Fix undefined behaviour on platforms where <tt class="docutils literal"><span class="pre">struct</span> <span class="pre">timespec</span></tt>‘s “tv_nsec” member is not a C long.</li> <li><a class="reference external" href="http://bugs.python.org/17715">Issue #17715</a>: Fix segmentation fault from raising an exception in a __trunc__ method.</li> <li><a class="reference external" href="http://bugs.python.org/16447">Issue #16447</a>: Fixed potential segmentation fault when setting __name__ on a class.</li> <li><a class="reference external" href="http://bugs.python.org/17669">Issue #17669</a>: Fix crash involving finalization of generators using yield from.</li> <li><a class="reference external" href="http://bugs.python.org/17619">Issue #17619</a>: Make input() check for Ctrl-C correctly on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/17610">Issue #17610</a>: Don’t rely on non-standard behavior of the C qsort() function.</li> <li><a class="reference external" href="http://bugs.python.org/17357">Issue #17357</a>: Add missing verbosity output when using -v/-vv.</li> </ul> </div> <div class="section" id="library"> <h3>Library<a class="headerlink" href="#library" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17606">Issue #17606</a>: Fixed support of encoded byte strings in the XMLGenerator</li> </ul> <blockquote> <div><dl class="docutils"> <dt>.characters() and ignorableWhitespace() methods. Original patch by Sebastian</dt> <dd>Ortiz Vasquez.</dd> </dl> </div></blockquote> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17732">Issue #17732</a>: Ignore distutils.cfg options pertaining to install paths if a virtual environment is active.</li> <li><a class="reference external" href="http://bugs.python.org/1159051">Issue #1159051</a>: Back out a fix for handling corrupted gzip files that broke backwards compatibility.</li> <li><a class="reference external" href="http://bugs.python.org/17915">Issue #17915</a>: Fix interoperability of xml.sax with file objects returned by codecs.open().</li> <li><a class="reference external" href="http://bugs.python.org/16601">Issue #16601</a>: Restarting iteration over tarfile no more continues from where it left off. Patch by Michael Birtwell.</li> <li><a class="reference external" href="http://bugs.python.org/17289">Issue #17289</a>: The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable. Initial patch by Bradley Froehle.</li> <li><a class="reference external" href="http://bugs.python.org/12181">Issue #12181</a>: select module: Fix struct kevent definition on OpenBSD 64-bit platforms. Patch by Federico Schwindt.</li> <li><a class="reference external" href="http://bugs.python.org/14173">Issue #14173</a>: Avoid crashing when reading a signal handler during interpreter shutdown.</li> <li><a class="reference external" href="http://bugs.python.org/16316">Issue #16316</a>: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions.</li> <li><a class="reference external" href="http://bugs.python.org/15902">Issue #15902</a>: Fix imp.load_module() accepting None as a file when loading an extension module.</li> <li><a class="reference external" href="http://bugs.python.org/17802">Issue #17802</a>: Fix an UnboundLocalError in html.parser. Initial tests by Thomas Barlow.</li> <li><a class="reference external" href="http://bugs.python.org/15535">Issue #15535</a>: Fix namedtuple pickles which were picking up the OrderedDict instead of just the underlying tuple.</li> <li><a class="reference external" href="http://bugs.python.org/17192">Issue #17192</a>: Restore the patch for <a class="reference external" href="http://bugs.python.org/11729">Issue #11729</a> which was ommitted in 3.3.1 when updating the bundled version of libffi used by ctypes. Update many libffi files that were missed in 3.3.1’s update to libffi-3.0.13.</li> <li><a class="reference external" href="http://bugs.python.org/17358">Issue #17358</a>: Modules loaded by imp.load_source() and load_compiled() (and by extention load_module()) now have a better chance of working when reloaded.</li> <li><a class="reference external" href="http://bugs.python.org/17353">Issue #17353</a>: Plistlib emitted empty data tags with deeply nested datastructures</li> <li><a class="reference external" href="http://bugs.python.org/11714">Issue #11714</a>: Use ‘with’ statements to assure a Semaphore releases a condition variable. Original patch by Thomas Rachel.</li> <li><a class="reference external" href="http://bugs.python.org/17795">Issue #17795</a>: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets.</li> <li><a class="reference external" href="http://bugs.python.org/17555">Issue #17555</a>: Fix ForkAwareThreadLock so that size of after fork registry does not grow exponentially with generation of process.</li> <li><a class="reference external" href="http://bugs.python.org/17707">Issue #17707</a>: multiprocessing.Queue’s get() method does not block for short timeouts.</li> <li>Isuse #17720: Fix the Python implementation of pickle.Unpickler to correctly process the APPENDS opcode when it is used on non-list objects.</li> <li><a class="reference external" href="http://bugs.python.org/17012">Issue #17012</a>: shutil.which() no longer fallbacks to the PATH environment variable if empty path argument is specified. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/17710">Issue #17710</a>: Fix pickle raising a SystemError on bogus input.</li> <li><a class="reference external" href="http://bugs.python.org/17341">Issue #17341</a>: Include the invalid name in the error messages from re about invalid group names.</li> <li><a class="reference external" href="http://bugs.python.org/17702">Issue #17702</a>: os.environ now raises KeyError with the original environment variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).</li> <li><a class="reference external" href="http://bugs.python.org/16163">Issue #16163</a>: Make the importlib based version of pkgutil.iter_importers work for submodules. Initial patch by Berker Peksag.</li> <li><a class="reference external" href="http://bugs.python.org/16804">Issue #16804</a>: Fix a bug in the ‘site’ module that caused running ‘python -S -m site’ to incorrectly throw an exception.</li> <li><a class="reference external" href="http://bugs.python.org/17016">Issue #17016</a>: Get rid of possible pointer wraparounds and integer overflows in the re module. Patch by Nickolai Zeldovich.</li> <li><a class="reference external" href="http://bugs.python.org/16658">Issue #16658</a>: add missing return to HTTPConnection.send() Patch by Jeff Knupp.</li> <li><a class="reference external" href="http://bugs.python.org/14971">Issue #14971</a>: unittest test discovery no longer gets confused when a function has a different __name__ than its name in the TestCase class dictionary.</li> <li><a class="reference external" href="http://bugs.python.org/17678">Issue #17678</a>: Fix DeprecationWarning in the http/cookiejar.py by changing the usage of get_origin_req_host() to origin_req_host.</li> <li><a class="reference external" href="http://bugs.python.org/17666">Issue #17666</a>: Fix reading gzip files with an extra field.</li> <li><a class="reference external" href="http://bugs.python.org/17502">Issue #17502</a>: Process DEFAULT values in mock side_effect that returns iterator. Patch by Michael Foord.</li> <li><a class="reference external" href="http://bugs.python.org/17572">Issue #17572</a>: Avoid chained exceptions while passing bad directives to time.strptime(). Initial patch by Claudiu Popa.</li> <li><a class="reference external" href="http://bugs.python.org/17435">Issue #17435</a>: threading.Timer’s __init__ method no longer uses mutable default values for the args and kwargs parameters.</li> <li><a class="reference external" href="http://bugs.python.org/17526">Issue #17526</a>: fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle.</li> <li><a class="reference external" href="http://bugs.python.org/16550">Issue #16550</a>: Update the opcode descriptions of pickletools to use unsigned integers where appropriate. Initial patch by Serhiy Storchaka.</li> </ul> </div> <div class="section" id="idle"> <h3>IDLE<a class="headerlink" href="#idle" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17838">Issue #17838</a>: Allow sys.stdin to be reassigned.</li> <li><a class="reference external" href="http://bugs.python.org/13495">Issue #13495</a>: Avoid loading the color delegator twice in IDLE.</li> <li><a class="reference external" href="http://bugs.python.org/17798">Issue #17798</a>: Allow IDLE to edit new files when specified on command line.</li> <li><a class="reference external" href="http://bugs.python.org/14735">Issue #14735</a>: Update IDLE docs to omit “Control-z on Windows”.</li> <li><a class="reference external" href="http://bugs.python.org/17585">Issue #17585</a>: Fixed IDLE regression. Now closes when using exit() or quit().</li> <li><a class="reference external" href="http://bugs.python.org/17657">Issue #17657</a>: Show full Tk version in IDLE’s about dialog. Patch by Todd Rovito.</li> <li><a class="reference external" href="http://bugs.python.org/17613">Issue #17613</a>: Prevent traceback when removing syntax colorizer in IDLE.</li> <li><a class="reference external" href="http://bugs.python.org/1207589">Issue #1207589</a>: Backwards-compatibility patch for right-click menu in IDLE.</li> <li><a class="reference external" href="http://bugs.python.org/16887">Issue #16887</a>: IDLE now accepts Cancel in tabify/untabify dialog box.</li> <li><a class="reference external" href="http://bugs.python.org/17625">Issue #17625</a>: In IDLE, close the replace dialog after it is used.</li> <li><a class="reference external" href="http://bugs.python.org/14254">Issue #14254</a>: IDLE now handles readline correctly across shell restarts.</li> <li><a class="reference external" href="http://bugs.python.org/17614">Issue #17614</a>: IDLE no longer raises exception when quickly closing a file.</li> <li><a class="reference external" href="http://bugs.python.org/6698">Issue #6698</a>: IDLE now opens just an editor window when configured to do so.</li> <li><a class="reference external" href="http://bugs.python.org/8900">Issue #8900</a>: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.</li> <li><a class="reference external" href="http://bugs.python.org/6649">Issue #6649</a>: Fixed missing exit status in IDLE. Patch by Guilherme Polo.</li> </ul> </div> <div class="section" id="tests"> <h3>Tests<a class="headerlink" href="#tests" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17833">Issue #17833</a>: Fix test_gdb failures seen on machines where debug symbols for glibc are available (seen on PPC64 Linux).</li> <li><a class="reference external" href="http://bugs.python.org/7855">Issue #7855</a>: Add tests for ctypes/winreg for issues found in IronPython. Initial patch by Dino Viehland.</li> <li><a class="reference external" href="http://bugs.python.org/17712">Issue #17712</a>: Fix test_gdb failures on Ubuntu 13.04.</li> <li><a class="reference external" href="http://bugs.python.org/17835">Issue #17835</a>: Fix test_io when the default OS pipe buffer size is larger than one million bytes.</li> <li><a class="reference external" href="http://bugs.python.org/17065">Issue #17065</a>: Use process-unique key for winreg tests to avoid failures if test is run multiple times in parallel (eg: on a buildbot host).</li> <li><a class="reference external" href="http://bugs.python.org/12820">Issue #12820</a>: add tests for the xml.dom.minicompat module. Patch by John Chandler and Phil Connell.</li> <li><a class="reference external" href="http://bugs.python.org/17790">Issue #17790</a>: test_set now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17789">Issue #17789</a>: test_random now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17779">Issue #17779</a>: test_osx_env now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17766">Issue #17766</a>: test_iterlen now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17690">Issue #17690</a>: test_time now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17692">Issue #17692</a>: test_sqlite now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17843">Issue #17843</a>: Removed bz2 test data file that was triggering false-positive virus warnings with certain antivirus software.</li> </ul> </div> <div class="section" id="documentation"> <h3>Documentation<a class="headerlink" href="#documentation" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15940">Issue #15940</a>: Specify effect of locale on time functions.</li> <li><a class="reference external" href="http://bugs.python.org/6696">Issue #6696</a>: add documentation for the Profile objects, and improve profile/cProfile docs. Patch by Tom Pinckney.</li> <li><a class="reference external" href="http://bugs.python.org/17915">Issue #17915</a>: Fix interoperability of xml.sax with file objects returned by codecs.open().</li> </ul> </div> <div class="section" id="build"> <h3>Build<a class="headerlink" href="#build" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17547">Issue #17547</a>: In configure, explicitly pass -Wformat for the benefit for GCC 4.8.</li> <li><a class="reference external" href="http://bugs.python.org/17962">Issue #17962</a>: Build with OpenSSL 1.0.1e on Windows.</li> </ul> </div> </div> <div class="section" id="python-3-3-1"> <h2>Python 3.3.1<a class="headerlink" href="#python-3-3-1" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 07-Apr-2013</em></p> <div class="section" id="id1"> <h3>Build<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17550">Issue #17550</a>: Fix the –enable-profiling configure switch.</li> </ul> </div> <div class="section" id="id2"> <h3>IDLE<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17625">Issue #17625</a>: In IDLE, close the replace dialog after it is used.</li> </ul> </div> </div> <div class="section" id="python-3-3-1-release-candidate-1"> <h2>Python 3.3.1 release candidate 1<a class="headerlink" href="#python-3-3-1-release-candidate-1" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 24-Mar-2013</em></p> <div class="section" id="id3"> <h3>Core and Builtins<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17328">Issue #17328</a>: Fix possible refleak in dict.setdefault.</li> <li><a class="reference external" href="http://bugs.python.org/17223">Issue #17223</a>: Fix PyUnicode_FromUnicode() for string of 1 character outside the range U+0000-U+10ffff.</li> <li><a class="reference external" href="http://bugs.python.org/1692335">Issue #1692335</a>: Move initial args assignment to BaseException.__new__ to help pickling of naive subclasses.</li> <li><a class="reference external" href="http://bugs.python.org/17275">Issue #17275</a>: Corrected class name in init error messages of the C version of BufferedWriter and BufferedRandom.</li> <li><a class="reference external" href="http://bugs.python.org/7963">Issue #7963</a>: Fixed misleading error message that issued when object is called without arguments.</li> <li><a class="reference external" href="http://bugs.python.org/5308">Issue #5308</a>: Raise ValueError when marshalling too large object (a sequence with size >= 2**31), instead of producing illegal marshal data.</li> <li><a class="reference external" href="http://bugs.python.org/12983">Issue #12983</a>: Bytes literals with invalid x escape now raise a SyntaxError and a full traceback including line number.</li> <li><a class="reference external" href="http://bugs.python.org/17173">Issue #17173</a>: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.</li> <li><a class="reference external" href="http://bugs.python.org/17137">Issue #17137</a>: When an Unicode string is resized, the internal wide character string (wstr) format is now cleared.</li> <li><a class="reference external" href="http://bugs.python.org/17043">Issue #17043</a>: The unicode-internal decoder no longer read past the end of input buffer.</li> <li><a class="reference external" href="http://bugs.python.org/17098">Issue #17098</a>: All modules now have __loader__ set even if they pre-exist the bootstrapping of importlib.</li> <li><a class="reference external" href="http://bugs.python.org/16979">Issue #16979</a>: Fix error handling bugs in the unicode-escape-decode decoder.</li> <li><a class="reference external" href="http://bugs.python.org/10156">Issue #10156</a>: In the interpreter’s initialization phase, unicode globals are now initialized dynamically as needed.</li> <li><a class="reference external" href="http://bugs.python.org/16980">Issue #16980</a>: Fix processing of escaped non-ascii bytes in the unicode-escape-decode decoder.</li> <li><a class="reference external" href="http://bugs.python.org/16975">Issue #16975</a>: Fix error handling bug in the escape-decode bytes decoder.</li> <li><a class="reference external" href="http://bugs.python.org/14850">Issue #14850</a>: Now a charmap decoder treats U+FFFE as “undefined mapping” in any mapping, not only in a string.</li> <li><a class="reference external" href="http://bugs.python.org/16730">Issue #16730</a>: importlib.machinery.FileFinder now no longers raises an exception when trying to populate its cache and it finds out the directory is unreadable or has turned into a file. Reported and diagnosed by David Pritchard.</li> <li><a class="reference external" href="http://bugs.python.org/16906">Issue #16906</a>: Fix a logic error that prevented most static strings from being cleared.</li> <li><a class="reference external" href="http://bugs.python.org/11461">Issue #11461</a>: Fix the incremental UTF-16 decoder. Original patch by Amaury Forgeot d’Arc.</li> <li><a class="reference external" href="http://bugs.python.org/16856">Issue #16856</a>: Fix a segmentation fault from calling repr() on a dict with a key whose repr raise an exception.</li> <li><a class="reference external" href="http://bugs.python.org/16367">Issue #16367</a>: Fix FileIO.readall() on Windows for files larger than 2 GB.</li> <li><a class="reference external" href="http://bugs.python.org/16455">Issue #16455</a>: On FreeBSD and Solaris, if the locale is C, the ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice.</li> <li><a class="reference external" href="http://bugs.python.org/16761">Issue #16761</a>: Calling int() with base argument only now raises TypeError.</li> <li><a class="reference external" href="http://bugs.python.org/16759">Issue #16759</a>: Support the full DWORD (unsigned long) range in Reg2Py when retrieving a REG_DWORD value. This corrects functions like winreg.QueryValueEx that may have been returning truncated values.</li> <li><a class="reference external" href="http://bugs.python.org/14420">Issue #14420</a>: Support the full DWORD (unsigned long) range in Py2Reg when passed a REG_DWORD value. Fixes OverflowError in winreg.SetValueEx.</li> <li><a class="reference external" href="http://bugs.python.org/16597">Issue #16597</a>: In buffered and text IO, call close() on the underlying stream if invoking flush() fails.</li> <li><a class="reference external" href="http://bugs.python.org/16722">Issue #16722</a>: In the bytes() constructor, try to call __bytes__ on the argument before __index__.</li> <li><a class="reference external" href="http://bugs.python.org/16602">Issue #16602</a>: When a weakref’s target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.</li> <li><a class="reference external" href="http://bugs.python.org/16416">Issue #16416</a>: On Mac OS X, operating system data are now always encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding (which may be ASCII if no locale environment variable is set), to avoid inconsistencies with os.fsencode() and os.fsdecode() functions which are already using UTF-8/surrogateescape.</li> <li><a class="reference external" href="http://bugs.python.org/16588">Issue #16588</a>: Silence unused-but-set warnings in Python/thread_pthread</li> <li><a class="reference external" href="http://bugs.python.org/16546">Issue #16546</a>: Fix: ast.YieldFrom argument is now mandatory.</li> <li><a class="reference external" href="http://bugs.python.org/16514">Issue #16514</a>: Fix regression causing a traceback when sys.path[0] is None (actually, any non-string or non-bytes type).</li> <li><a class="reference external" href="http://bugs.python.org/16306">Issue #16306</a>: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.</li> <li><a class="reference external" href="http://bugs.python.org/16215">Issue #16215</a>: Fix potential double memory free in str.replace(). Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16453">Issue #16453</a>: Fix equality testing of dead weakref objects.</li> <li><a class="reference external" href="http://bugs.python.org/9535">Issue #9535</a>: Fix pending signals that have been received but not yet handled by Python to not persist after os.fork() in the child process.</li> <li><a class="reference external" href="http://bugs.python.org/15001">Issue #15001</a>: fix segfault on “del sys.modules[‘__main__’]”. Patch by Victor Stinner.</li> <li><a class="reference external" href="http://bugs.python.org/8271">Issue #8271</a>: the utf-8 decoder now outputs the correct number of U+FFFD characters when used with the ‘replace’ error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti.</li> <li><a class="reference external" href="http://bugs.python.org/5765">Issue #5765</a>: Apply a hard recursion limit in the compiler instead of blowing the stack and segfaulting. Initial patch by Andrea Griffini.</li> <li><a class="reference external" href="http://bugs.python.org/16402">Issue #16402</a>: When slicing a range, fix shadowing of exceptions from __index__.</li> <li><a class="reference external" href="http://bugs.python.org/16336">Issue #16336</a>: fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/8401">Issue #8401</a>: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an error.</li> <li>Fix segfaults on setting __qualname__ on builtin types and attempting to delete it on any type.</li> <li><a class="reference external" href="http://bugs.python.org/16345">Issue #16345</a>: Fix an infinite loop when <tt class="docutils literal"><span class="pre">fromkeys</span></tt> on a dict subclass received a nonempty dict from the constructor.</li> <li><a class="reference external" href="http://bugs.python.org/16271">Issue #16271</a>: Fix strange bugs that resulted from __qualname__ appearing in a class’s __dict__ and on type.</li> <li><a class="reference external" href="http://bugs.python.org/6074">Issue #6074</a>: Ensure cached bytecode files can always be updated by the user that created them, even when the source file is read-only.</li> <li><a class="reference external" href="http://bugs.python.org/14783">Issue #14783</a>: Improve int() docstring and switch docstrings for str(), range(), and slice() to use multi-line signatures.</li> <li><a class="reference external" href="http://bugs.python.org/16160">Issue #16160</a>: Subclass support now works for types.SimpleNamespace.</li> <li><a class="reference external" href="http://bugs.python.org/15379">Issue #15379</a>: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings). Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15144">Issue #15144</a>: Fix possible integer overflow when handling pointers as integer values, by using <tt class="xref py py-obj docutils literal"><span class="pre">Py_uintptr_t</span></tt> instead of <tt class="xref py py-obj docutils literal"><span class="pre">size_t</span></tt>. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15965">Issue #15965</a>: Explicitly cast <tt class="xref py py-obj docutils literal"><span class="pre">AT_FDCWD</span></tt> as (int). Required on Solaris 10 (which defines <tt class="xref py py-obj docutils literal"><span class="pre">AT_FDCWD</span></tt> as <tt class="docutils literal"><span class="pre">0xffd19553</span></tt>), harmless on other platforms.</li> <li><a class="reference external" href="http://bugs.python.org/15839">Issue #15839</a>: Convert SystemErrors in <a class="reference internal" href="../library/functions.html#super" title="super"><tt class="xref py py-obj docutils literal"><span class="pre">super()</span></tt></a> to RuntimeErrors.</li> <li><a class="reference external" href="http://bugs.python.org/15846">Issue #15846</a>: Fix SystemError which happened when using <a class="reference internal" href="../library/ast.html#ast.parse" title="ast.parse"><tt class="xref py py-obj docutils literal"><span class="pre">ast.parse()</span></tt></a> in an exception handler on code with syntax errors.</li> <li><a class="reference external" href="http://bugs.python.org/15801">Issue #15801</a>: Make sure mappings passed to ‘%’ formatting are actually subscriptable.</li> <li><a class="reference external" href="http://bugs.python.org/15111">Issue #15111</a>: __import__ should let ImportError propagate when a module that is imported as a side-effect of using fromlist tries to import a module that cannot be found.</li> </ul> </div> <div class="section" id="id4"> <h3>Library<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17540">Issue #17540</a>: Added style to formatter configuration by dict.</li> <li><a class="reference external" href="http://bugs.python.org/17536">Issue #17536</a>: Add to webbrowser’s browser list: www-browser, x-www-browser, iceweasel, iceape.</li> <li><a class="reference external" href="http://bugs.python.org/17488">Issue #17488</a>: Change the subprocess.Popen bufsize parameter default value from unbuffered (0) to buffering (-1) to match the behavior existing code expects and match the behavior of the subprocess module in Python 2 to avoid introducing hard to track down bugs.</li> <li><a class="reference external" href="http://bugs.python.org/17521">Issue #17521</a>: Corrected non-enabling of logger following two calls to fileConfig().</li> <li><a class="reference external" href="http://bugs.python.org/17508">Issue #17508</a>: Corrected MemoryHandler configuration in dictConfig() where the target handler wasn’t configured first.</li> <li><a class="reference external" href="http://bugs.python.org/17209">Issue #17209</a>: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c).</li> <li><a class="reference external" href="http://bugs.python.org/5713">Issue #5713</a>: smtplib now handles 421 (closing connection) error codes when sending mail by closing the socket and reporting the 421 error code via the exception appropriate to the command that received the error response.</li> <li><a class="reference external" href="http://bugs.python.org/17192">Issue #17192</a>: Update the ctypes module’s libffi to v3.0.13. This specifically addresses a stack misalignment issue on x86 and issues on some more recent platforms.</li> <li><a class="reference external" href="http://bugs.python.org/8862">Issue #8862</a>: Fixed curses cleanup when getkey is interrputed by a signal.</li> <li><a class="reference external" href="http://bugs.python.org/17443">Issue #17443</a>: imaplib.IMAP4_stream was using the default unbuffered IO in subprocess, but the imap code assumes buffered IO. In Python2 this worked by accident. IMAP4_stream now explicitly uses buffered IO.</li> <li><a class="reference external" href="http://bugs.python.org/17476">Issue #17476</a>: Fixed regression relative to Python2 in undocumented pydoc ‘allmethods’; it was missing unbound methods on the class.</li> <li><a class="reference external" href="http://bugs.python.org/16880">Issue #16880</a>: Do not assume _imp.load_dynamic() is defined in the imp module.</li> <li><a class="reference external" href="http://bugs.python.org/16389">Issue #16389</a>: Fixed a performance regression relative to Python 3.1 in the caching of compiled regular expressions.</li> <li><a class="reference external" href="http://bugs.python.org/17431">Issue #17431</a>: Fix missing import of BytesFeedParser in email.parser.</li> <li><a class="reference external" href="http://bugs.python.org/1285086">Issue #1285086</a>: Get rid of the refcounting hack and speed up urllib.parse.unquote() and urllib.parse.unquote_to_bytes().</li> <li><a class="reference external" href="http://bugs.python.org/17368">Issue #17368</a>: Fix an off-by-one error in the Python JSON decoder that caused a failure while decoding empty object literals when object_pairs_hook was specified.</li> <li><a class="reference external" href="http://bugs.python.org/14645">Issue #14645</a>: The email generator classes now produce output using the specified linesep throughout. Previously if the prolog, epilog, or body were stored with a different linesep, that linesep was used. This fix corrects an RFC non-compliance issue with smtplib.send_message.</li> <li><a class="reference external" href="http://bugs.python.org/17278">Issue #17278</a>: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.</li> <li><a class="reference external" href="http://bugs.python.org/16962">Issue #16962</a>: Use getdents64 instead of the obsolete getdents syscall in the subprocess module on Linux.</li> <li><a class="reference external" href="http://bugs.python.org/17018">Issue #17018</a>: Make Process.join() retry if os.waitpid() fails with EINTR.</li> <li><a class="reference external" href="http://bugs.python.org/17223">Issue #17223</a>: array module: Fix a crasher when converting an array containing invalid characters (outside range [U+0000; U+10ffff]) to Unicode: repr(array), str(array) and array.tounicode(). Patch written by Manuel Jacob.</li> <li><a class="reference external" href="http://bugs.python.org/14720">Issue #14720</a>: sqlite3: Convert datetime microseconds correctly. Patch by Lowe Thiderman.</li> <li><a class="reference external" href="http://bugs.python.org/17225">Issue #17225</a>: JSON decoder now counts columns in the first line starting with 1, as in other lines.</li> <li><a class="reference external" href="http://bugs.python.org/13700">Issue #13700</a>: Fix byte/string handling in imaplib authentication when an authobject is specified.</li> <li><a class="reference external" href="http://bugs.python.org/13153">Issue #13153</a>: Tkinter functions now raise TclError instead of ValueError when a string argument contains non-BMP character.</li> <li><a class="reference external" href="http://bugs.python.org/9669">Issue #9669</a>: Protect re against infinite loops on zero-width matching in non-greedy repeat. Patch by Matthew Barnett.</li> <li><a class="reference external" href="http://bugs.python.org/13169">Issue #13169</a>: The maximal repetition number in a regular expression has been increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).</li> <li><a class="reference external" href="http://bugs.python.org/17143">Issue #17143</a>: Fix a missing import in the trace module. Initial patch by Berker Peksag.</li> <li><a class="reference external" href="http://bugs.python.org/16743">Issue #16743</a>: Fix mmap overflow check on 32 bit Windows.</li> <li><a class="reference external" href="http://bugs.python.org/16800">Issue #16800</a>: tempfile.gettempdir() no longer left temporary files when the disk is full. Original patch by Amir Szekely.</li> <li><a class="reference external" href="http://bugs.python.org/16564">Issue #16564</a>: Fixed regression relative to Python2 in the operation of email.encoders.encode_7or8bit when used with binary data.</li> <li><a class="reference external" href="http://bugs.python.org/17052">Issue #17052</a>: unittest discovery should use self.testLoader.</li> <li><a class="reference external" href="http://bugs.python.org/4591">Issue #4591</a>: Uid and gid values larger than 2**31 are supported now.</li> <li><a class="reference external" href="http://bugs.python.org/17141">Issue #17141</a>: random.vonmisesvariate() no more hangs for large kappas.</li> <li><a class="reference external" href="http://bugs.python.org/17149">Issue #17149</a>: Fix random.vonmisesvariate to always return results in [0, 2*math.pi].</li> <li><a class="reference external" href="http://bugs.python.org/1470548">Issue #1470548</a>: XMLGenerator now works with binary output streams.</li> <li><a class="reference external" href="http://bugs.python.org/6975">Issue #6975</a>: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.</li> <li><a class="reference external" href="http://bugs.python.org/16564">Issue #16564</a>: Fixed regression relative to Python2 in the operation of email.encoders.encode_noop when used with binary data.</li> <li><a class="reference external" href="http://bugs.python.org/10355">Issue #10355</a>: In SpooledTemporaryFile class mode, name, encoding and newlines properties now work for unrolled files. Obsoleted and never working on Python 3 xreadline method now removed.</li> <li><a class="reference external" href="http://bugs.python.org/16686">Issue #16686</a>: Fixed a lot of bugs in audioop module. Fixed crashes in avgpp(), maxpp() and ratecv(). Fixed an integer overflow in add(), bias(), and ratecv(). reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. max() and rms() no more returns a negative result and various other functions now work correctly with 32-bit sample -0x80000000.</li> <li><a class="reference external" href="http://bugs.python.org/17073">Issue #17073</a>: Fix some integer overflows in sqlite3 module.</li> <li><a class="reference external" href="http://bugs.python.org/16723">Issue #16723</a>: httplib.HTTPResponse no longer marked closed when the connection is automatically closed.</li> <li><a class="reference external" href="http://bugs.python.org/16948">Issue #16948</a>: Fix quoted printable body encoding for non-latin1 character sets in the email package.</li> <li><a class="reference external" href="http://bugs.python.org/16811">Issue #16811</a>: Fix folding of headers with no value in the provisional email policies.</li> <li><a class="reference external" href="http://bugs.python.org/17132">Issue #17132</a>: Update symbol for “yield from” grammar changes.</li> <li><a class="reference external" href="http://bugs.python.org/17076">Issue #17076</a>: Make copying of xattrs more permissive of missing FS support. Patch by Thomas Wouters.</li> <li><a class="reference external" href="http://bugs.python.org/17089">Issue #17089</a>: Expat parser now correctly works with string input not only when an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and strings larger than 2 GiB.</li> <li><a class="reference external" href="http://bugs.python.org/6083">Issue #6083</a>: Fix multiple segmentation faults occured when PyArg_ParseTuple parses nested mutating sequence.</li> <li><a class="reference external" href="http://bugs.python.org/5289">Issue #5289</a>: Fix ctypes.util.find_library on Solaris.</li> <li><a class="reference external" href="http://bugs.python.org/17106">Issue #17106</a>: Fix a segmentation fault in io.TextIOWrapper when an underlying stream or a decoder produces data of an unexpected type (i.e. when io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).</li> <li><a class="reference external" href="http://bugs.python.org/15633">Issue #15633</a>: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.</li> <li><a class="reference external" href="http://bugs.python.org/12268">Issue #12268</a>: The io module file object write methods no longer abort early when one of its write system calls is interrupted (EINTR).</li> <li><a class="reference external" href="http://bugs.python.org/6972">Issue #6972</a>: The zipfile module no longer overwrites files outside of its destination path when extracting malicious zip files.</li> <li><a class="reference external" href="http://bugs.python.org/4844">Issue #4844</a>: ZipFile now raises BadZipFile when opens a ZIP file with an incomplete “End of Central Directory” record. Original patch by Guilherme Polo and Alan McIntyre.</li> <li><a class="reference external" href="http://bugs.python.org/17071">Issue #17071</a>: Signature.bind() now works when one of the keyword arguments is named <tt class="docutils literal"><span class="pre">self</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/12004">Issue #12004</a>: Fix an internal error in PyZipFile when writing an invalid Python file. Patch by Ben Morgan.</li> <li><a class="reference external" href="http://bugs.python.org/1602133">Issue #1602133</a>: on Mac OS X a shared library build (<tt class="docutils literal"><span class="pre">--enable-shared</span></tt>) now fills the <tt class="docutils literal"><span class="pre">os.environ</span></tt> variable correctly.</li> <li><a class="reference external" href="http://bugs.python.org/15505">Issue #15505</a>: <a class="reference internal" href="../library/unittest.html#unittest.installHandler" title="unittest.installHandler"><tt class="xref py py-obj docutils literal"><span class="pre">unittest.installHandler</span></tt></a> no longer assumes SIGINT handler is set to a callable object.</li> <li><a class="reference external" href="http://bugs.python.org/13454">Issue #13454</a>: Fix a crash when deleting an iterator created by itertools.tee() if all other iterators were very advanced before.</li> <li><a class="reference external" href="http://bugs.python.org/12411">Issue #12411</a>: Fix to cgi.parse_multipart to correctly use bytes boundaries and bytes data. Patch by Jonas Wagner.</li> <li><a class="reference external" href="http://bugs.python.org/16957">Issue #16957</a>: shutil.which() no longer searches a bare file name in the current directory on Unix and no longer searches a relative file path with a directory part in PATH directories. Patch by Thomas Kluyver.</li> <li><a class="reference external" href="http://bugs.python.org/16993">Issue #16993</a>: shutil.which() now preserves the case of the path and extension on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/16992">Issue #16992</a>: On Windows in signal.set_wakeup_fd, validate the file descriptor argument.</li> <li><a class="reference external" href="http://bugs.python.org/16422">Issue #16422</a>: For compatibility with the Python version, the C version of decimal now uses strings instead of integers for rounding mode constants.</li> <li><a class="reference external" href="http://bugs.python.org/15861">Issue #15861</a>: tkinter now correctly works with lists and tuples containing strings with whitespaces, backslashes or unbalanced braces.</li> <li><a class="reference external" href="http://bugs.python.org/10527">Issue #10527</a>: Use poll() instead of select() for multiprocessing pipes.</li> <li><a class="reference external" href="http://bugs.python.org/9720">Issue #9720</a>: zipfile now writes correct local headers for files larger than 4 GiB.</li> <li><a class="reference external" href="http://bugs.python.org/16955">Issue #16955</a>: Fix the poll() method for multiprocessing’s socket connections on Windows.</li> <li>SSLContext.load_dh_params() now properly closes the input file.</li> <li><a class="reference external" href="http://bugs.python.org/16900">Issue #16900</a>: Issue a ResourceWarning when an ssl socket is left unclosed.</li> <li><a class="reference external" href="http://bugs.python.org/13899">Issue #13899</a>: A, Z, and B now correctly match the A, Z, and B literals when used inside character classes (e.g. ‘[A]’). Patch by Matthew Barnett.</li> <li><a class="reference external" href="http://bugs.python.org/15545">Issue #15545</a>: Fix regression in sqlite3’s iterdump method where it was failing if the connection used a row factory (such as sqlite3.Row) that produced unsortable objects. (Regression was introduced by fix for 9750).</li> <li><a class="reference external" href="http://bugs.python.org/15972">Issue #15972</a>: Fix error messages when os functions expecting a file name or file descriptor receive the incorrect type.</li> <li><a class="reference external" href="http://bugs.python.org/16828">Issue #16828</a>: Fix error incorrectly raised by bz2.compress(b’‘) and bz2.BZ2Compressor.compress(b’‘). Initial patch by Martin Packman.</li> <li><a class="reference external" href="http://bugs.python.org/16541">Issue #16541</a>: tk_setPalette() now works with keyword arguments.</li> <li><a class="reference external" href="http://bugs.python.org/16820">Issue #16820</a>: In configparser, <tt class="xref py py-obj docutils literal"><span class="pre">parser.popitem()</span></tt> no longer raises ValueError. This makes <tt class="xref py py-obj docutils literal"><span class="pre">parser.clean()</span></tt> work correctly.</li> <li><a class="reference external" href="http://bugs.python.org/16820">Issue #16820</a>: In configparser, <tt class="docutils literal"><span class="pre">parser['section']</span> <span class="pre">=</span> <span class="pre">{}</span></tt> now preserves section order within the parser. This makes <tt class="xref py py-obj docutils literal"><span class="pre">parser.update()</span></tt> preserve section order as well.</li> <li><a class="reference external" href="http://bugs.python.org/16820">Issue #16820</a>: In configparser, <tt class="docutils literal"><span class="pre">parser['DEFAULT']</span> <span class="pre">=</span> <span class="pre">{}</span></tt> now correctly clears previous values stored in the default section. Same goes for <tt class="docutils literal"><span class="pre">parser.update({'DEFAULT':</span> <span class="pre">{}})</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/9586">Issue #9586</a>: Redefine SEM_FAILED on MacOSX to keep compiler happy.</li> <li><a class="reference external" href="http://bugs.python.org/10527">Issue #10527</a>: make multiprocessing use poll() instead of select() if available.</li> <li><a class="reference external" href="http://bugs.python.org/16688">Issue #16688</a>: Now regexes contained backreferences correctly work with non-ASCII strings. Patch by Matthew Barnett.</li> <li><a class="reference external" href="http://bugs.python.org/16485">Issue #16485</a>: Now file descriptors are closed if file header patching failed on closing an aifc file.</li> <li><a class="reference external" href="http://bugs.python.org/16165">Issue #16165</a>: sched.scheduler.run() no longer blocks a scheduler for other threads.</li> <li><a class="reference external" href="http://bugs.python.org/16641">Issue #16641</a>: Default values of sched.scheduler.enter() are no longer modifiable.</li> <li><a class="reference external" href="http://bugs.python.org/16618">Issue #16618</a>: Make glob.glob match consistently across strings and bytes regarding leading dots. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16713">Issue #16713</a>: Parsing of ‘tel’ urls using urlparse separates params from path.</li> <li><a class="reference external" href="http://bugs.python.org/16443">Issue #16443</a>: Add docstrings to regular expression match objects. Patch by Anton Kasyanov.</li> <li><a class="reference external" href="http://bugs.python.org/15701">Issue #15701</a>: Fix HTTPError info method call to return the headers information.</li> <li><a class="reference external" href="http://bugs.python.org/16752">Issue #16752</a>: Add a missing import to modulefinder. Patch by Berker Peksag.</li> <li><a class="reference external" href="http://bugs.python.org/16646">Issue #16646</a>: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)</li> <li><a class="reference external" href="http://bugs.python.org/16626">Issue #16626</a>: Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15783">Issue #15783</a>: Except for the number methods, the C version of decimal now supports all None default values present in decimal.py. These values were largely undocumented.</li> <li><a class="reference external" href="http://bugs.python.org/16298">Issue #16298</a>: In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished. Patch by Eran Rundstein.</li> <li><a class="reference external" href="http://bugs.python.org/15872">Issue #15872</a>: Fix 3.3 regression introduced by the new fd-based shutil.rmtree that caused it to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16248">Issue #16248</a>: Disable code execution from the user’s home directory by tkinter when the -E flag is passed to Python. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16628">Issue #16628</a>: Fix a memory leak in ctypes.resize().</li> <li><a class="reference external" href="http://bugs.python.org/13614">Issue #13614</a>: Fix setup.py register failure with invalid rst in description. Patch by Julien Courteau and Pierre Paul Lefebvre.</li> <li><a class="reference external" href="http://bugs.python.org/13512">Issue #13512</a>: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by Philip Jenvey, tested by Mageia and Debian.</li> <li><a class="reference external" href="http://bugs.python.org/7719">Issue #7719</a>: Make distutils ignore <tt class="docutils literal"><span class="pre">.nfs*</span></tt> files instead of choking later on. Initial patch by SilentGhost and Jeff Ramnani.</li> <li><a class="reference external" href="http://bugs.python.org/13120">Issue #13120</a>: Allow to call pdb.set_trace() from thread. Patch by Ilya Sandler.</li> <li><a class="reference external" href="http://bugs.python.org/16585">Issue #16585</a>: Make CJK encoders support error handlers that return bytes per PEP 383.</li> <li><a class="reference external" href="http://bugs.python.org/10182">Issue #10182</a>: The re module doesn’t truncate indices to 32 bits anymore. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16573">Issue #16573</a>: In 2to3, treat enumerate() like a consuming call, so superfluous list() calls aren’t added to filter(), map(), and zip() which are directly passed enumerate().</li> <li><a class="reference external" href="http://bugs.python.org/12848">Issue #12848</a>: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16408">Issue #16408</a>: Fix file descriptors not being closed in error conditions in the zipfile module. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16481">Issue #16481</a>: multiprocessing no longer leaks process handles on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/16140">Issue #16140</a>: The subprocess module no longer double closes its child subprocess.PIPE parent file descriptors on child error prior to exec().</li> <li>Remove a bare print to stdout from the subprocess module that could have happened if the child process wrote garbage to its pre-exec error pipe.</li> <li><a class="reference external" href="http://bugs.python.org/16327">Issue #16327</a>: The subprocess module no longer leaks file descriptors used for stdin/stdout/stderr pipes to the child when fork() fails.</li> <li><a class="reference external" href="http://bugs.python.org/14396">Issue #14396</a>: Handle the odd rare case of waitpid returning 0 when not expected in subprocess.Popen.wait().</li> <li><a class="reference external" href="http://bugs.python.org/16411">Issue #16411</a>: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16357">Issue #16357</a>: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket(). Original patch by Jeff McNeil.</li> <li><a class="reference external" href="http://bugs.python.org/16409">Issue #16409</a>: The reporthook callback made by the legacy urllib.request.urlretrieve API now properly supplies a constant non-zero block_size as it did in Python 3.2 and 2.7. This matches the behavior of urllib.request.URLopener.retrieve.</li> <li><a class="reference external" href="http://bugs.python.org/16431">Issue #16431</a>: Use the type information when constructing a Decimal subtype from a Decimal argument.</li> <li><a class="reference external" href="http://bugs.python.org/16350">Issue #16350</a>: zlib.decompressobj().decompress() now accumulates data from successive calls after EOF in unused_data, instead of only saving the argument to the last call. decompressobj().flush() now correctly sets unused_data and unconsumed_tail. A bug in the handling of MemoryError when setting the unconsumed_tail attribute has also been fixed. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/12759">Issue #12759</a>: sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16152">Issue #16152</a>: fix tokenize to ignore whitespace at the end of the code when no newline is found. Patch by Ned Batchelder.</li> <li><a class="reference external" href="http://bugs.python.org/16230">Issue #16230</a>: Fix a crash in select.select() when one the lists changes size while iterated on. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16228">Issue #16228</a>: Fix a crash in the json module where a list changes size while it is being encoded. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/14897">Issue #14897</a>: Enhance error messages of struct.pack and struct.pack_into. Patch by Matti Mäki.</li> <li><a class="reference external" href="http://bugs.python.org/12890">Issue #12890</a>: cgitb no longer prints spurious <p> tags in text mode when the logdir option is specified.</li> <li><a class="reference external" href="http://bugs.python.org/16307">Issue #16307</a>: Fix multiprocessing.Pool.map_async not calling its callbacks. Patch by Janne Karila.</li> <li><a class="reference external" href="http://bugs.python.org/16250">Issue #16250</a>: Fix URLError invocation with proper args.</li> <li><a class="reference external" href="http://bugs.python.org/16116">Issue #16116</a>: Fix include and library paths to be correct when building C extensions in venvs.</li> <li><a class="reference external" href="http://bugs.python.org/16245">Issue #16245</a>: Fix the value of a few entities in html.entities.html5.</li> <li><a class="reference external" href="http://bugs.python.org/14398">Issue #14398</a>: Fix size truncation and overflow bugs in the bz2 module.</li> <li><a class="reference external" href="http://bugs.python.org/16220">Issue #16220</a>: wsgiref now always calls close() on an iterable response. Patch by Brent Tubbs.</li> <li><a class="reference external" href="http://bugs.python.org/16270">Issue #16270</a>: urllib may hang when used for retrieving files via FTP by using a context manager. Patch by Giampaolo Rodola’.</li> <li><a class="reference external" href="http://bugs.python.org/16461">Issue #16461</a>: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.</li> <li><a class="reference external" href="http://bugs.python.org/16176">Issue #16176</a>: Properly identify Windows 8 via platform.platform()</li> <li><a class="reference external" href="http://bugs.python.org/16114">Issue #16114</a>: The subprocess module no longer provides a misleading error message stating that args[0] did not exist when either the cwd or executable keyword arguments specified a path that did not exist.</li> <li><a class="reference external" href="http://bugs.python.org/16169">Issue #16169</a>: Fix ctypes.WinError()’s confusion between errno and winerror.</li> <li><a class="reference external" href="http://bugs.python.org/16076">Issue #16076</a>: 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.</li> <li><a class="reference external" href="http://bugs.python.org/16089">Issue #16089</a>: Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).</li> <li><a class="reference external" href="http://bugs.python.org/16913">Issue #16913</a>: Fix Element.itertext()’s handling of text with XML entities.,</li> <li><a class="reference external" href="http://bugs.python.org/16034">Issue #16034</a>: Fix performance regressions in the new <a class="reference internal" href="../library/bz2.html#bz2.BZ2File" title="bz2.BZ2File"><tt class="xref py py-obj docutils literal"><span class="pre">bz2.BZ2File</span></tt></a> implementation. Initial patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16112">Issue #16112</a>: platform.architecture does not correctly escape argument to /usr/bin/file. Patch by David Benjamin.</li> <li><a class="reference external" href="http://bugs.python.org/15756">Issue #15756</a>: <tt class="xref py py-obj docutils literal"><span class="pre">subprocess.poll()</span></tt> now properly handles <a class="reference internal" href="../library/errno.html#errno.ECHILD" title="errno.ECHILD"><tt class="xref py py-obj docutils literal"><span class="pre">errno.ECHILD</span></tt></a> to return a returncode of 0 when the child has already exited or cannot be waited on.</li> <li><a class="reference external" href="http://bugs.python.org/15323">Issue #15323</a>: Improve failure message of <tt class="xref py py-obj docutils literal"><span class="pre">Mock.assert_called_once_with()</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/16064">Issue #16064</a>: <tt class="docutils literal"><span class="pre">unittest</span> <span class="pre">-m</span></tt> claims executable is “python”, not “python3”.</li> <li><a class="reference external" href="http://bugs.python.org/12376">Issue #12376</a>: Pass on parameters in <tt class="xref py py-obj docutils literal"><span class="pre">TextTestResult.__init__()</span></tt> super call.</li> <li><a class="reference external" href="http://bugs.python.org/15222">Issue #15222</a>: Insert blank line after each message in mbox mailboxes.</li> <li><a class="reference external" href="http://bugs.python.org/16013">Issue #16013</a>: Fix <tt class="xref py py-obj docutils literal"><span class="pre">csv.Reader</span></tt> parsing issue with ending quote characters. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15421">Issue #15421</a>: Fix an OverflowError in <tt class="xref py py-obj docutils literal"><span class="pre">Calendar.itermonthdates()</span></tt> after <a class="reference internal" href="../library/datetime.html#datetime.MAXYEAR" title="datetime.MAXYEAR"><tt class="xref py py-obj docutils literal"><span class="pre">datetime.MAXYEAR</span></tt></a>. Patch by Cédric Krier.</li> <li><a class="reference external" href="http://bugs.python.org/15970">Issue #15970</a>: <a class="reference internal" href="../library/xml.etree.elementtree.html#module-xml.etree.ElementTree" title="xml.etree.ElementTree: Implementation of the ElementTree API."><tt class="xref py py-obj docutils literal"><span class="pre">xml.etree.ElementTree</span></tt></a> now serializes correctly the empty HTML elements ‘meta’ and ‘param’.</li> <li><a class="reference external" href="http://bugs.python.org/15842">Issue #15842</a>: The <tt class="xref py py-obj docutils literal"><span class="pre">SocketIO.{readable,writable,seekable}</span></tt> methods now raise ValueError when the file-like object is closed. Patch by Alessandro Moura.</li> <li><a class="reference external" href="http://bugs.python.org/15876">Issue #15876</a>: Fix a refleak in the <a class="reference internal" href="../library/curses.html#module-curses" title="curses: An interface to the curses library, providing portable terminal handling. (Unix)"><tt class="xref py py-obj docutils literal"><span class="pre">curses</span></tt></a> module: window.encoding.</li> <li><a class="reference external" href="http://bugs.python.org/15881">Issue #15881</a>: Fix <a class="reference internal" href="../library/atexit.html#module-atexit" title="atexit: Register and execute cleanup functions."><tt class="xref py py-obj docutils literal"><span class="pre">atexit</span></tt></a> hook in <a class="reference internal" href="../library/multiprocessing.html#module-multiprocessing" title="multiprocessing: Process-based parallelism."><tt class="xref py py-obj docutils literal"><span class="pre">multiprocessing</span></tt></a>. Original patch by Chris McDonough.</li> <li><a class="reference external" href="http://bugs.python.org/15841">Issue #15841</a>: The readable(), writable() and seekable() methods of <a class="reference internal" href="../library/io.html#io.BytesIO" title="io.BytesIO"><tt class="xref py py-obj docutils literal"><span class="pre">io.BytesIO</span></tt></a> and <a class="reference internal" href="../library/io.html#io.StringIO" title="io.StringIO"><tt class="xref py py-obj docutils literal"><span class="pre">io.StringIO</span></tt></a> objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.</li> <li><a class="reference external" href="http://bugs.python.org/15447">Issue #15447</a>: Use <a class="reference internal" href="../library/subprocess.html#subprocess.DEVNULL" title="subprocess.DEVNULL"><tt class="xref py py-obj docutils literal"><span class="pre">subprocess.DEVNULL</span></tt></a> in webbrowser, instead of opening <a class="reference internal" href="../library/os.html#os.devnull" title="os.devnull"><tt class="xref py py-obj docutils literal"><span class="pre">os.devnull</span></tt></a> explicitly and leaving it open.</li> <li><a class="reference external" href="http://bugs.python.org/15509">Issue #15509</a>: <tt class="xref py py-obj docutils literal"><span class="pre">webbrowser.UnixBrowser</span></tt> no longer passes empty arguments to Popen when <tt class="docutils literal"><span class="pre">%action</span></tt> substitutions produce empty strings.</li> <li><a class="reference external" href="http://bugs.python.org/12776">Issue #12776</a>, <a class="reference external" href="http://bugs.python.org/11839">issue #11839</a>: Call <a class="reference internal" href="../library/argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><tt class="xref py py-obj docutils literal"><span class="pre">argparse</span></tt></a> type function (specified by add_argument) only once. Before, the type function was called twice in the case where the default was specified and the argument was given as well. This was especially problematic for the FileType type, as a default file would always be opened, even if a file argument was specified on the command line.</li> <li><a class="reference external" href="http://bugs.python.org/15906">Issue #15906</a>: Fix a regression in <a class="reference internal" href="../library/argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><tt class="xref py py-obj docutils literal"><span class="pre">argparse</span></tt></a> caused by the preceding change, when <tt class="docutils literal"><span class="pre">action='append'</span></tt>, <tt class="docutils literal"><span class="pre">type='str'</span></tt> and <tt class="docutils literal"><span class="pre">default=[]</span></tt>.</li> </ul> </div> <div class="section" id="id5"> <h3>IDLE<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17114">Issue #17114</a>: IDLE now uses non-strict config parser.</li> <li><a class="reference external" href="http://bugs.python.org/9290">Issue #9290</a>: In IDLE the sys.std* streams now implement io.TextIOBase interface and support all mandatory methods and properties.</li> <li><a class="reference external" href="http://bugs.python.org/16829">Issue #16829</a>: IDLE printing no longer fails if there are spaces or other special characters in the file path.</li> <li><a class="reference external" href="http://bugs.python.org/16491">Issue #16491</a>: IDLE now prints chained exception tracebacks.</li> <li><a class="reference external" href="http://bugs.python.org/16819">Issue #16819</a>: IDLE method completion now correctly works for bytes literals.</li> <li><a class="reference external" href="http://bugs.python.org/16504">Issue #16504</a>: IDLE now catches SyntaxErrors raised by tokenizer. Patch by Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/16511">Issue #16511</a>: Use default IDLE width and height if config param is not valid. Patch Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/1207589">Issue #1207589</a>: Add Cut/Copy/Paste items to IDLE right click Context Menu Patch by Todd Rovito.</li> </ul> </div> <div class="section" id="id6"> <h3>Tests<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17448">Issue #17448</a>: test_sax now skips if there are no xml parsers available instead of raising an ImportError.</li> <li><a class="reference external" href="http://bugs.python.org/11420">Issue #11420</a>: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.</li> <li><a class="reference external" href="http://bugs.python.org/10652">Issue #10652</a>: make tcl/tk tests run after __all__ test, patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/11963">Issue #11963</a>: remove human verification from test_parser and test_subprocess.</li> <li><a class="reference external" href="http://bugs.python.org/11732">Issue #11732</a>: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_faulthandler and test_capi.</li> <li><a class="reference external" href="http://bugs.python.org/13898">Issue #13898</a>: test_ssl no longer prints a spurious stack trace on Ubuntu.</li> <li><a class="reference external" href="http://bugs.python.org/17249">Issue #17249</a>: convert a test in test_capi to use unittest and reap threads.</li> <li><a class="reference external" href="http://bugs.python.org/17041">Issue #17041</a>: Fix testing when Python is configured with the –without-doc-strings.</li> <li><a class="reference external" href="http://bugs.python.org/16923">Issue #16923</a>: Fix ResourceWarnings in test_ssl.</li> <li><a class="reference external" href="http://bugs.python.org/15539">Issue #15539</a>: Added regression tests for Tools/scripts/pindent.py.</li> <li><a class="reference external" href="http://bugs.python.org/17479">Issue #17479</a>: test_io now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17066">Issue #17066</a>: test_robotparser now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17334">Issue #17334</a>: test_index now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17333">Issue #17333</a>: test_imaplib now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17082">Issue #17082</a>: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17079">Issue #17079</a>: test_ctypes now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17304">Issue #17304</a>: test_hash now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17303">Issue #17303</a>: test_future* now work with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/17163">Issue #17163</a>: test_file now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16925">Issue #16925</a>: test_configparser now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16918">Issue #16918</a>: test_codecs now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16919">Issue #16919</a>: test_crypt now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16910">Issue #16910</a>: test_bytes, test_unicode, and test_userstring now work with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16905">Issue #16905</a>: test_warnings now works with unittest test discovery. Initial patch by Berker Peksag.</li> <li><a class="reference external" href="http://bugs.python.org/16898">Issue #16898</a>: test_bufio now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16888">Issue #16888</a>: test_array now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16896">Issue #16896</a>: test_asyncore now works with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16897">Issue #16897</a>: test_bisect now works with unittest test discovery. Initial patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16852">Issue #16852</a>: test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/16748">Issue #16748</a>: test_heapq now works with unittest test discovery.</li> <li><a class="reference external" href="http://bugs.python.org/15324">Issue #15324</a>: Fix regrtest parsing of –fromfile, –match, and –randomize options.</li> <li><a class="reference external" href="http://bugs.python.org/16702">Issue #16702</a>: test_urllib2_localnet tests now correctly ignores proxies for localhost tests.</li> <li><a class="reference external" href="http://bugs.python.org/16664">Issue #16664</a>: Add regression tests for glob’s behaviour concerning entries starting with a ”.”. Patch by Sebastian Kreft.</li> <li><a class="reference external" href="http://bugs.python.org/16559">Issue #16559</a>: Add more tests for the json module, including some from the official test suite at json.org. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16661">Issue #16661</a>: Fix the <a class="reference internal" href="../library/os.html#os.getgrouplist" title="os.getgrouplist"><tt class="xref py py-obj docutils literal"><span class="pre">os.getgrouplist()</span></tt></a> test by not assuming that it gives the same output as <strong class="command">id -G</strong>.</li> <li><a class="reference external" href="http://bugs.python.org/16115">Issue #16115</a>: Add some tests for the executable argument to subprocess.Popen(). Initial patch by Kushal Das.</li> <li><a class="reference external" href="http://bugs.python.org/16126">Issue #16126</a>: PyErr_Format format mismatch in _testcapimodule.c. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15304">Issue #15304</a>: Fix warning message when <a class="reference internal" href="../library/os.html#os.chdir" title="os.chdir"><tt class="xref py py-obj docutils literal"><span class="pre">os.chdir()</span></tt></a> fails inside <a class="reference internal" href="../library/test.html#test.support.temp_cwd" title="test.support.temp_cwd"><tt class="xref py py-obj docutils literal"><span class="pre">test.support.temp_cwd()</span></tt></a>. Patch by Chris Jerdonek.</li> <li><a class="reference external" href="http://bugs.python.org/15802">Issue #15802</a>: Fix test logic in <tt class="xref py py-obj docutils literal"><span class="pre">TestMaildir.test_create_tmp()</span></tt>. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15557">Issue #15557</a>: Add a test suite for the <a class="reference internal" href="../library/webbrowser.html#module-webbrowser" title="webbrowser: Easy-to-use controller for Web browsers."><tt class="xref py py-obj docutils literal"><span class="pre">webbrowser</span></tt></a> module, thanks to Anton Barkovsky.</li> <li><a class="reference external" href="http://bugs.python.org/16698">Issue #16698</a>: Skip posix test_getgroups when built with OS X deployment target prior to 10.6.</li> </ul> </div> <div class="section" id="id7"> <h3>Build<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17550">Issue #17550</a>: Fix the –enable-profiling configure switch.</li> <li><a class="reference external" href="http://bugs.python.org/17425">Issue #17425</a>: Build with openssl 1.0.1d on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/16754">Issue #16754</a>: Fix the incorrect shared library extension on linux. Introduce two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.</li> <li><a class="reference external" href="http://bugs.python.org/5033">Issue #5033</a>: Fix building of the sqlite3 extension module when the SQLite library version has “beta” in it. Patch by Andreas Pelme.</li> <li><a class="reference external" href="http://bugs.python.org/17228">Issue #17228</a>: Fix building without pymalloc.</li> <li><a class="reference external" href="http://bugs.python.org/3718">Issue #3718</a>: Use AC_ARG_VAR to set MACHDEP in configure.ac.</li> <li><a class="reference external" href="http://bugs.python.org/17031">Issue #17031</a>: Fix running regen in cross builds.</li> <li><a class="reference external" href="http://bugs.python.org/3754">Issue #3754</a>: fix typo in pthread AC_CACHE_VAL.</li> <li><a class="reference external" href="http://bugs.python.org/15484">Issue #15484</a>: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds; use _PYTHON_PROJECT_BASE in distutils/sysconfig.py.</li> <li><a class="reference external" href="http://bugs.python.org/17029">Issue #17029</a>: Let h2py search the multiarch system include directory.</li> <li><a class="reference external" href="http://bugs.python.org/16953">Issue #16953</a>: Fix socket module compilation on platforms with HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.</li> <li><a class="reference external" href="http://bugs.python.org/16836">Issue #16836</a>: Enable IPv6 support even if IPv6 is disabled on the build host.</li> <li>Cross compiling needs host and build settings. configure no longer creates a broken PYTHON_FOR_BUILD variable when –build is missing.</li> <li>Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are defined in cross compiling mode, too.</li> <li><a class="reference external" href="http://bugs.python.org/16593">Issue #16593</a>: Have BSD ‘make -s’ do the right thing, thanks to Daniel Shahaf</li> <li><a class="reference external" href="http://bugs.python.org/16262">Issue #16262</a>: fix out-of-src-tree builds, if mercurial is not installed.</li> <li><a class="reference external" href="http://bugs.python.org/15298">Issue #15298</a>: ensure _sysconfigdata is generated in build directory, not source directory.</li> <li><a class="reference external" href="http://bugs.python.org/15833">Issue #15833</a>: Fix a regression in 3.3 that resulted in exceptions being raised if importlib failed to write byte-compiled files. This affected attempts to build Python out-of-tree from a read-only source directory.</li> <li><a class="reference external" href="http://bugs.python.org/15923">Issue #15923</a>: Fix a mistake in <tt class="docutils literal"><span class="pre">asdl_c.py</span></tt> that resulted in a TypeError after 2801bf875a24 (see #15801).</li> <li><a class="reference external" href="http://bugs.python.org/15819">Issue #15819</a>: Make sure we can build Python out-of-tree from a read-only source directory. (Somewhat related to <a class="reference external" href="http://bugs.python.org/9860">issue #9860</a>.)</li> <li><a class="reference external" href="http://bugs.python.org/15587">Issue #15587</a>: Enable Tk high-resolution text rendering on Macs with Retina displays. Applies to Tkinter apps, such as IDLE, on OS X framework builds linked with Cocoa Tk 8.5.</li> <li><a class="reference external" href="http://bugs.python.org/17161">Issue #17161</a>: make install now also installs a python3 man page.</li> </ul> </div> <div class="section" id="c-api"> <h3>C-API<a class="headerlink" href="#c-api" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/16881">Issue #16881</a>: Fix Py_ARRAY_LENGTH macro for GCC < 3.1.</li> </ul> </div> <div class="section" id="id8"> <h3>Documentation<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Issue 17538: Document XML vulnerabilties</li> <li><a class="reference external" href="http://bugs.python.org/16642">Issue #16642</a>: sched.scheduler timefunc initial default is time.monotonic. Patch by Ramchandra Apte</li> <li><a class="reference external" href="http://bugs.python.org/17047">Issue #17047</a>: remove doubled words in docs and docstrings reported by Serhiy Storchaka and Matthew Barnett.</li> <li><a class="reference external" href="http://bugs.python.org/15465">Issue #15465</a>: Document the versioning macros in the C API docs rather than the standard library docs. Patch by Kushal Das.</li> <li><a class="reference external" href="http://bugs.python.org/16406">Issue #16406</a>: Combine the pages for uploading and registering to PyPI.</li> <li><a class="reference external" href="http://bugs.python.org/16403">Issue #16403</a>: Document how distutils uses the maintainer field in PKG-INFO. Patch by Jyrki Pulliainen.</li> <li><a class="reference external" href="http://bugs.python.org/16695">Issue #16695</a>: Document how glob handles filenames starting with a dot. Initial patch by Jyrki Pulliainen.</li> <li><a class="reference external" href="http://bugs.python.org/8890">Issue #8890</a>: Stop advertising an insecure practice by replacing uses of the /tmp directory with better alternatives in the documentation. Patch by Geoff Wilson.</li> <li><a class="reference external" href="http://bugs.python.org/17203">Issue #17203</a>: add long option names to unittest discovery docs.</li> <li><a class="reference external" href="http://bugs.python.org/13094">Issue #13094</a>: add “Why do lambdas defined in a loop with different values all return the same result?” programming FAQ.</li> <li><a class="reference external" href="http://bugs.python.org/14901">Issue #14901</a>: Update portions of the Windows FAQ. Patch by Ashish Nitin Patil.</li> <li><a class="reference external" href="http://bugs.python.org/16267">Issue #16267</a>: Better document the 3.3+ approach to combining @abstractmethod with @staticmethod, @classmethod and @property</li> <li><a class="reference external" href="http://bugs.python.org/15209">Issue #15209</a>: Clarify exception chaining description in exceptions module documentation</li> <li><a class="reference external" href="http://bugs.python.org/15990">Issue #15990</a>: Improve argument/parameter documentation.</li> <li><a class="reference external" href="http://bugs.python.org/16209">Issue #16209</a>: Move the documentation for the str built-in function to a new str class entry in the “Text Sequence Type” section.</li> <li><a class="reference external" href="http://bugs.python.org/13538">Issue #13538</a>: Improve str() and object.__str__() documentation.</li> <li><a class="reference external" href="http://bugs.python.org/16489">Issue #16489</a>: Make it clearer that importlib.find_loader() requires any and all packages to be separately imported.</li> <li><a class="reference external" href="http://bugs.python.org/16400">Issue #16400</a>: Update the description of which versions of a given package PyPI displays.</li> <li><a class="reference external" href="http://bugs.python.org/15677">Issue #15677</a>: Document that zlib and gzip accept a compression level of 0 to mean ‘no compression’. Patch by Brian Brazil.</li> <li><a class="reference external" href="http://bugs.python.org/16197">Issue #16197</a>: Update winreg docstrings and documentation to match code. Patch by Zachary Ware.</li> <li><a class="reference external" href="http://bugs.python.org/8040">Issue #8040</a>: added a version switcher to the documentation. Patch by Yury Selivanov.</li> <li><a class="reference external" href="http://bugs.python.org/16241">Issue #16241</a>: Document -X faulthandler command line option. Patch by Marek Šuppa.</li> <li>Additional comments and some style changes in the concurrent.futures URL retrieval example</li> <li><a class="reference external" href="http://bugs.python.org/16115">Issue #16115</a>: Improve subprocess.Popen() documentation around args, shell, and executable arguments.</li> <li><a class="reference external" href="http://bugs.python.org/15533">Issue #15533</a>: Clarify docs and add tests for <a class="reference internal" href="../library/subprocess.html#subprocess.Popen" title="subprocess.Popen"><tt class="xref py py-obj docutils literal"><span class="pre">subprocess.Popen()</span></tt></a>‘s cwd argument.</li> <li><a class="reference external" href="http://bugs.python.org/15979">Issue #15979</a>: Improve timeit documentation.</li> <li><a class="reference external" href="http://bugs.python.org/16036">Issue #16036</a>: Improve documentation of built-in <a class="reference internal" href="../library/functions.html#int" title="int"><tt class="xref py py-obj docutils literal"><span class="pre">int()</span></tt></a>‘s signature and arguments.</li> <li><a class="reference external" href="http://bugs.python.org/15935">Issue #15935</a>: Clarification of <a class="reference internal" href="../library/argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><tt class="xref py py-obj docutils literal"><span class="pre">argparse</span></tt></a> docs, re: add_argument() type and default arguments. Patch contributed by Chris Jerdonek.</li> <li><a class="reference external" href="http://bugs.python.org/11964">Issue #11964</a>: Document a change in v3.2 to the behavior of the indent parameter of json encoding operations.</li> <li><a class="reference external" href="http://bugs.python.org/15116">Issue #15116</a>: Remove references to appscript as it is no longer being supported.</li> </ul> </div> <div class="section" id="tools-demos"> <h3>Tools/Demos<a class="headerlink" href="#tools-demos" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/17156">Issue #17156</a>: pygettext.py now uses an encoding of source file and correctly writes and escapes non-ascii characters.</li> <li><a class="reference external" href="http://bugs.python.org/15539">Issue #15539</a>: Fix a number of bugs in Tools/scripts/pindent.py. Now pindent.py works with a “with” statement. pindent.py no longer produces improper indentation. pindent.py now works with continued lines broken after “class” or “def” keywords and with continuations at the start of line.</li> <li><a class="reference external" href="http://bugs.python.org/15378">Issue #15378</a>: Fix Tools/unicode/comparecodecs.py. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/16476">Issue #16476</a>: Fix json.tool to avoid including trailing whitespace.</li> <li><a class="reference external" href="http://bugs.python.org/16549">Issue #16549</a>: Make json.tool work again on Python 3 and add tests. Initial patch by Berker Peksag and Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/13301">Issue #13301</a>: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py Patch by Serhiy Storchaka.</li> </ul> </div> </div> <div class="section" id="python-3-3-0"> <h2>Python 3.3.0<a class="headerlink" href="#python-3-3-0" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 29-Sep-2012</em></p> <div class="section" id="id9"> <h3>Core and Builtins<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/16046">Issue #16046</a>: Fix loading sourceless legacy .pyo files.</li> <li><a class="reference external" href="http://bugs.python.org/16060">Issue #16060</a>: Fix refcounting bug when <tt class="xref py py-obj docutils literal"><span class="pre">__trunc__()</span></tt> returns an object whose <tt class="xref py py-obj docutils literal"><span class="pre">__int__()</span></tt> gives a non-integer. Patch by Serhiy Storchaka.</li> </ul> </div> <div class="section" id="extension-modules"> <h3>Extension Modules<a class="headerlink" href="#extension-modules" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/16012">Issue #16012</a>: Fix a regression in pyexpat. The parser’s <tt class="xref py py-obj docutils literal"><span class="pre">UseForeignDTD()</span></tt> method doesn’t require an argument again.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-release-candidate-3"> <h2>Python 3.3.0 Release Candidate 3<a class="headerlink" href="#python-3-3-0-release-candidate-3" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 23-Sep-2012</em></p> <div class="section" id="id10"> <h3>Core and Builtins<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15900">Issue #15900</a>: Fix reference leak in <tt class="xref py py-obj docutils literal"><span class="pre">PyUnicode_TranslateCharmap()</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/15926">Issue #15926</a>: Fix crash after multiple reinitializations of the interpreter.</li> <li><a class="reference external" href="http://bugs.python.org/15895">Issue #15895</a>: Fix FILE pointer leak in one error branch of <tt class="xref py py-obj docutils literal"><span class="pre">PyRun_SimpleFileExFlags()</span></tt> when filename points to a pyc/pyo file, closeit is false an and set_main_loader() fails.</li> <li>Fixes for a few crash and memory leak regressions found by Coverity.</li> </ul> </div> <div class="section" id="id11"> <h3>Library<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15882">Issue #15882</a>: Change <tt class="xref py py-obj docutils literal"><span class="pre">_decimal</span></tt> to accept any coefficient tuple when constructing infinities. This is done for backwards compatibility with decimal.py: Infinity coefficients are undefined in _decimal (in accordance with the specification).</li> <li><a class="reference external" href="http://bugs.python.org/15925">Issue #15925</a>: Fix a regression in <tt class="xref py py-obj docutils literal"><span class="pre">email.util</span></tt> where the <tt class="xref py py-obj docutils literal"><span class="pre">parsedate()</span></tt> and <tt class="xref py py-obj docutils literal"><span class="pre">parsedate_tz()</span></tt> functions did not return None anymore when the argument could not be parsed.</li> </ul> </div> <div class="section" id="id12"> <h3>Extension Modules<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15973">Issue #15973</a>: Fix a segmentation fault when comparing datetime timezone objects.</li> <li><a class="reference external" href="http://bugs.python.org/15977">Issue #15977</a>: Fix memory leak in Modules/_ssl.c when the function _set_npn_protocols() is called multiple times, thanks to Daniel Sommermann.</li> <li><a class="reference external" href="http://bugs.python.org/15969">Issue #15969</a>: <a class="reference internal" href="../library/faulthandler.html#module-faulthandler" title="faulthandler: Dump the Python traceback."><tt class="xref py py-obj docutils literal"><span class="pre">faulthandler</span></tt></a> module: rename dump_tracebacks_later() to dump_traceback_later() and cancel_dump_tracebacks_later() to cancel_dump_traceback_later().</li> <li>_decimal module: use only C 89 style comments.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-release-candidate-2"> <h2>Python 3.3.0 Release Candidate 2<a class="headerlink" href="#python-3-3-0-release-candidate-2" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 09-Sep-2012</em></p> <div class="section" id="id13"> <h3>Core and Builtins<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13992">Issue #13992</a>: The trashcan mechanism is now thread-safe. This eliminates sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types.</li> <li><a class="reference external" href="http://bugs.python.org/15784">Issue #15784</a>: Modify <a class="reference internal" href="../library/exceptions.html#OSError" title="OSError"><tt class="xref py py-obj docutils literal"><span class="pre">OSError</span></tt></a>.__str__() to better distinguish between errno error numbers and Windows error numbers.</li> <li><a class="reference external" href="http://bugs.python.org/15781">Issue #15781</a>: Fix two small race conditions in import’s module locking.</li> </ul> </div> <div class="section" id="id14"> <h3>Library<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15847">Issue #15847</a>: Fix a regression in argparse, which did not accept tuples as argument lists anymore.</li> <li><a class="reference external" href="http://bugs.python.org/15828">Issue #15828</a>: Restore support for C extensions in <a class="reference internal" href="../library/imp.html#imp.load_module" title="imp.load_module"><tt class="xref py py-obj docutils literal"><span class="pre">imp.load_module()</span></tt></a>.</li> <li><a class="reference external" href="http://bugs.python.org/15340">Issue #15340</a>: Fix importing the random module when <tt class="docutils literal"><span class="pre">/dev/urandom</span></tt> cannot be opened. This was a regression caused by the hash randomization patch.</li> <li><a class="reference external" href="http://bugs.python.org/10650">Issue #10650</a>: Deprecate the watchexp parameter of the <tt class="xref py py-obj docutils literal"><span class="pre">Decimal.quantize()</span></tt> method.</li> <li><a class="reference external" href="http://bugs.python.org/15785">Issue #15785</a>: Modify <tt class="xref py py-obj docutils literal"><span class="pre">window.get_wch()</span></tt> API of the curses module: return a character for most keys, and an integer for special keys, instead of always returning an integer. So it is now possible to distinguish special keys like keypad keys.</li> <li><a class="reference external" href="http://bugs.python.org/14223">Issue #14223</a>: Fix <tt class="xref py py-obj docutils literal"><span class="pre">window.addch()</span></tt> of the curses module for special characters like curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now calling the C function waddch()/mvwaddch() (as it was done in Python 3.2), instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked to libncursesw.</li> </ul> </div> <div class="section" id="id15"> <h3>Build<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15822">Issue #15822</a>: Really ensure 2to3 grammar pickles are properly installed (replaces fixes for <a class="reference external" href="http://bugs.python.org/15645">Issue #15645</a>).</li> </ul> </div> <div class="section" id="id16"> <h3>Documentation<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15814">Issue #15814</a>: The memoryview enhancements in 3.3.0 accidentally permitted the hashing of multi-dimensional memorviews and memoryviews with multi-byte item formats. The intended restrictions have now been documented - they will be correctly enforced in 3.3.1.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-release-candidate-1"> <h2>Python 3.3.0 Release Candidate 1<a class="headerlink" href="#python-3-3-0-release-candidate-1" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 25-Aug-2012</em></p> <div class="section" id="id17"> <h3>Core and Builtins<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15573">Issue #15573</a>: memoryview comparisons are now performed by value with full support for any valid struct module format definition.</li> <li><a class="reference external" href="http://bugs.python.org/15316">Issue #15316</a>: When an item in the fromlist for <a class="reference internal" href="../library/functions.html#__import__" title="__import__"><tt class="xref py py-obj docutils literal"><span class="pre">__import__()</span></tt></a> doesn’t exist, don’t raise an error, but if an exception is raised as part of an import do let that propagate.</li> <li><a class="reference external" href="http://bugs.python.org/15778">Issue #15778</a>: Ensure that <tt class="docutils literal"><span class="pre">str(ImportError(msg))</span></tt> returns a str even when msg isn’t a str.</li> <li><a class="reference external" href="http://bugs.python.org/2051">Issue #2051</a>: Source file permission bits are once again correctly copied to the cached bytecode file. (The migration to importlib reintroduced this problem because these was no regression test. A test has been added as part of this patch)</li> <li><a class="reference external" href="http://bugs.python.org/15761">Issue #15761</a>: Fix crash when <tt class="docutils literal"><span class="pre">PYTHONEXECUTABLE</span></tt> is set on Mac OS X.</li> <li><a class="reference external" href="http://bugs.python.org/15726">Issue #15726</a>: Fix incorrect bounds checking in PyState_FindModule. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/15604">Issue #15604</a>: Update uses of <tt class="xref py py-obj docutils literal"><span class="pre">PyObject_IsTrue()</span></tt> to check for and handle errors correctly. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/14846">Issue #14846</a>: <tt class="xref py py-obj docutils literal"><span class="pre">importlib.FileFinder</span></tt> now handles the case where the directory being searched is removed after a previous import attempt.</li> </ul> </div> <div class="section" id="id18"> <h3>Library<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13370">Issue #13370</a>: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler.</li> <li><a class="reference external" href="http://bugs.python.org/13072">Issue #13072</a>: The array module’s ‘u’ format code is now deprecated and will be removed in Python 4.0.</li> <li><a class="reference external" href="http://bugs.python.org/15544">Issue #15544</a>: Fix Decimal.__float__ to work with payload-carrying NaNs.</li> <li><a class="reference external" href="http://bugs.python.org/15776">Issue #15776</a>: Allow pyvenv to work in existing directory with –clean.</li> <li><a class="reference external" href="http://bugs.python.org/15249">Issue #15249</a>: email’s BytesGenerator now correctly mangles From lines (when requested) even if the body contains undecodable bytes.</li> <li><a class="reference external" href="http://bugs.python.org/15777">Issue #15777</a>: Fix a refleak in _posixsubprocess.</li> <li>Issue ##665194: Update <a class="reference internal" href="../library/email.util.html#email.utils.localtime" title="email.utils.localtime"><tt class="xref py py-obj docutils literal"><span class="pre">email.utils.localtime</span></tt></a> to use datetime.astimezone and correctly handle historic changes in UTC offsets.</li> <li><a class="reference external" href="http://bugs.python.org/15199">Issue #15199</a>: Fix JavaScript’s default MIME type to application/javascript. Patch by Bohuslav Kabrda.</li> <li><a class="reference external" href="http://bugs.python.org/12643">Issue #12643</a>: <a class="reference internal" href="../library/code.html#code.InteractiveConsole" title="code.InteractiveConsole"><tt class="xref py py-obj docutils literal"><span class="pre">code.InteractiveConsole</span></tt></a> now respects <a class="reference internal" href="../library/sys.html#sys.excepthook" title="sys.excepthook"><tt class="xref py py-obj docutils literal"><span class="pre">sys.excepthook</span></tt></a> when displaying exceptions. Patch by Aaron Iles.</li> <li><a class="reference external" href="http://bugs.python.org/13579">Issue #13579</a>: <a class="reference internal" href="../library/string.html#string.Formatter" title="string.Formatter"><tt class="xref py py-obj docutils literal"><span class="pre">string.Formatter</span></tt></a> now understands the ‘a’ conversion specifier.</li> <li><a class="reference external" href="http://bugs.python.org/15595">Issue #15595</a>: Fix <tt class="docutils literal"><span class="pre">subprocess.Popen(universal_newlines=True)</span></tt> for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek.</li> <li><a class="reference external" href="http://bugs.python.org/15477">Issue #15477</a>: In cmath and math modules, add workaround for platforms whose system-supplied log1p function doesn’t respect signs of zeros.</li> <li><a class="reference external" href="http://bugs.python.org/15715">Issue #15715</a>: <a class="reference internal" href="../library/importlib.html#importlib.__import__" title="importlib.__import__"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.__import__()</span></tt></a> will silence an ImportError when the use of fromlist leads to a failed import.</li> <li><a class="reference external" href="http://bugs.python.org/14669">Issue #14669</a>: Fix pickling of connections and sockets on Mac OS X by sending/receiving an acknowledgment after file descriptor transfer. TestPicklingConnection has been reenabled for Mac OS X.</li> <li><a class="reference external" href="http://bugs.python.org/11062">Issue #11062</a>: Fix adding a message from file to Babyl mailbox.</li> <li><a class="reference external" href="http://bugs.python.org/15646">Issue #15646</a>: Prevent equivalent of a fork bomb when using <a class="reference internal" href="../library/multiprocessing.html#module-multiprocessing" title="multiprocessing: Process-based parallelism."><tt class="xref py py-obj docutils literal"><span class="pre">multiprocessing</span></tt></a> on Windows without the <tt class="docutils literal"><span class="pre">if</span> <span class="pre">__name__</span> <span class="pre">==</span> <span class="pre">'__main__'</span></tt> idiom.</li> </ul> </div> <div class="section" id="id19"> <h3>IDLE<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15678">Issue #15678</a>: Fix IDLE menus when started from OS X command line (3.3.0b2 regression).</li> </ul> </div> <div class="section" id="id20"> <h3>Documentation<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Touched up the Python 2 to 3 porting guide.</li> <li><a class="reference external" href="http://bugs.python.org/14674">Issue #14674</a>: Add a discussion of the <a class="reference internal" href="../library/json.html#module-json" title="json: Encode and decode the JSON format."><tt class="xref py py-obj docutils literal"><span class="pre">json</span></tt></a> module’s standard compliance. Patch by Chris Rebert.</li> <li>Create a ‘Concurrent Execution’ section in the docs, and split up the ‘Optional Operating System Services’ section to use a more user-centric classification scheme (splitting them across the new CE section, IPC and text processing). Operating system limitations can be reflected with the Sphinx <tt class="docutils literal"><span class="pre">:platform:</span></tt> tag, it doesn’t make sense as part of the Table of Contents.</li> <li><a class="reference external" href="http://bugs.python.org/4966">Issue #4966</a>: Bring the sequence docs up to date for the Py3k transition and the many language enhancements since they were original written.</li> <li>The “path importer” misnomer has been replaced with Eric Snow’s more-awkward-but-at-least-not-wrong suggestion of “path based finder” in the import system reference docs.</li> <li><a class="reference external" href="http://bugs.python.org/15640">Issue #15640</a>: Document <a class="reference internal" href="../library/importlib.html#importlib.abc.Finder" title="importlib.abc.Finder"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.abc.Finder</span></tt></a> as deprecated.</li> <li><a class="reference external" href="http://bugs.python.org/15630">Issue #15630</a>: Add an example for “continue” stmt in the tutorial. Patch by Daniel Ellis.</li> </ul> </div> <div class="section" id="id21"> <h3>Tests<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15747">Issue #15747</a>: ZFS always returns EOPNOTSUPP when attempting to set the UF_IMMUTABLE flag (via either chflags or lchflags); refactor affected tests in test_posix.py to account for this.</li> <li><a class="reference external" href="http://bugs.python.org/15285">Issue #15285</a>: Refactor the approach for testing connect timeouts using two external hosts that have been configured specifically for this type of test.</li> <li><a class="reference external" href="http://bugs.python.org/15743">Issue #15743</a>: Remove the deprecated method usage in <tt class="xref py py-obj docutils literal"><span class="pre">urllib</span></tt> tests. Patch by Jeff Knupp.</li> <li><a class="reference external" href="http://bugs.python.org/15615">Issue #15615</a>: Add some tests for the <a class="reference internal" href="../library/json.html#module-json" title="json: Encode and decode the JSON format."><tt class="xref py py-obj docutils literal"><span class="pre">json</span></tt></a> module’s handling of invalid input data. Patch by Kushal Das.</li> </ul> </div> <div class="section" id="id22"> <h3>Build<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Output lib files for PGO build into PGO directory.</li> <li>Pick up 32-bit launcher from PGO directory on 64-bit PGO build.</li> <li>Drop <tt class="docutils literal"><span class="pre">PC\python_nt.h</span></tt> as it’s not used. Add input dependency on custom build step.</li> <li><a class="reference external" href="http://bugs.python.org/15511">Issue #15511</a>: Drop explicit dependency on pythonxy.lib from _decimal amd64 configuration.</li> <li>Add missing PGI/PGO configurations for pywlauncher.</li> <li><a class="reference external" href="http://bugs.python.org/15645">Issue #15645</a>: Ensure 2to3 grammar pickles are properly installed.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-beta-2"> <h2>Python 3.3.0 Beta 2<a class="headerlink" href="#python-3-3-0-beta-2" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 12-Aug-2012</em></p> <div class="section" id="id23"> <h3>Core and Builtins<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15568">Issue #15568</a>: Fix the return value of <tt class="docutils literal"><span class="pre">yield</span> <span class="pre">from</span></tt> when StopIteration is raised by a custom iterator.</li> <li><a class="reference external" href="http://bugs.python.org/13119">Issue #13119</a>: <a class="reference internal" href="../library/sys.html#sys.stdout" title="sys.stdout"><tt class="xref py py-obj docutils literal"><span class="pre">sys.stdout</span></tt></a> and <a class="reference internal" href="../library/sys.html#sys.stderr" title="sys.stderr"><tt class="xref py py-obj docutils literal"><span class="pre">sys.stderr</span></tt></a> are now using “rn” newline on Windows, as Python 2.</li> <li><a class="reference external" href="http://bugs.python.org/15534">Issue #15534</a>: Fix the fast-search function for non-ASCII Unicode strings.</li> <li><a class="reference external" href="http://bugs.python.org/15508">Issue #15508</a>: Fix the docstring for <a class="reference internal" href="../library/functions.html#__import__" title="__import__"><tt class="xref py py-obj docutils literal"><span class="pre">__import__()</span></tt></a> to have the proper default value of 0 for ‘level’ and to not mention negative levels since they are not supported.</li> <li><a class="reference external" href="http://bugs.python.org/15425">Issue #15425</a>: Eliminated traceback noise from more situations involving importlib.</li> <li><a class="reference external" href="http://bugs.python.org/14578">Issue #14578</a>: Support modules registered in the Windows registry again.</li> <li><a class="reference external" href="http://bugs.python.org/15466">Issue #15466</a>: Stop using TYPE_INT64 in marshal, to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems.</li> <li><a class="reference external" href="http://bugs.python.org/1692335">Issue #1692335</a>: Move initial exception args assignment to <tt class="xref py py-obj docutils literal"><span class="pre">BaseException.__new__()</span></tt> to help pickling of naive subclasses.</li> <li><a class="reference external" href="http://bugs.python.org/12834">Issue #12834</a>: Fix <tt class="xref py py-obj docutils literal"><span class="pre">PyBuffer_ToContiguous()</span></tt> for non-contiguous arrays.</li> <li><a class="reference external" href="http://bugs.python.org/15456">Issue #15456</a>: Fix code <tt class="xref py py-obj docutils literal"><span class="pre">__sizeof__()</span></tt> after #12399 change. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15404">Issue #15404</a>: Refleak in PyMethodObject repr.</li> <li><a class="reference external" href="http://bugs.python.org/15394">Issue #15394</a>: An issue in <tt class="xref py py-obj docutils literal"><span class="pre">PyModule_Create()</span></tt> that caused references to be leaked on some error paths has been fixed. Patch by Julia Lawall.</li> <li><a class="reference external" href="http://bugs.python.org/15368">Issue #15368</a>: An issue that caused bytecode generation to be non-deterministic has been fixed.</li> <li><a class="reference external" href="http://bugs.python.org/15202">Issue #15202</a>: Consistently use the name “follow_symlinks” for new parameters in os and shutil functions.</li> <li><a class="reference external" href="http://bugs.python.org/15314">Issue #15314</a>: <tt class="docutils literal"><span class="pre">__main__.__loader__</span></tt> is now set correctly during interpreter startup.</li> <li><a class="reference external" href="http://bugs.python.org/15111">Issue #15111</a>: When a module imported using ‘from import’ has an ImportError inside itself, don’t mask that fact behind a generic ImportError for the module itself.</li> <li><a class="reference external" href="http://bugs.python.org/15293">Issue #15293</a>: Add GC support to the AST base node type.</li> <li><a class="reference external" href="http://bugs.python.org/15291">Issue #15291</a>: Fix a memory leak where AST nodes where not properly deallocated.</li> <li><a class="reference external" href="http://bugs.python.org/15110">Issue #15110</a>: Fix the tracebacks generated by “import xxx” to not show the importlib stack frames.</li> <li><a class="reference external" href="http://bugs.python.org/16369">Issue #16369</a>: Global PyTypeObjects not initialized with PyType_Ready(...).</li> <li><a class="reference external" href="http://bugs.python.org/15020">Issue #15020</a>: The program name used to search for Python’s path is now “python3” under Unix, not “python”.</li> <li><a class="reference external" href="http://bugs.python.org/15897">Issue #15897</a>: zipimport.c doesn’t check return value of fseek(). Patch by Felipe Cruz.</li> <li><a class="reference external" href="http://bugs.python.org/15033">Issue #15033</a>: Fix the exit status bug when modules invoked using -m switch, return the proper failure return value (1). Patch contributed by Jeff Knupp.</li> <li><a class="reference external" href="http://bugs.python.org/15229">Issue #15229</a>: An <a class="reference internal" href="../library/exceptions.html#OSError" title="OSError"><tt class="xref py py-obj docutils literal"><span class="pre">OSError</span></tt></a> subclass whose __init__ doesn’t call back OSError.__init__ could produce incomplete instances, leading to crashes when calling str() on them.</li> <li><a class="reference external" href="http://bugs.python.org/15307">Issue #15307</a>: Virtual environments now use symlinks with framework builds on Mac OS X, like other POSIX builds.</li> </ul> </div> <div class="section" id="id24"> <h3>Library<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14590">Issue #14590</a>: configparser now correctly strips inline comments when delimiter occurs earlier without preceding space.</li> <li><a class="reference external" href="http://bugs.python.org/15424">Issue #15424</a>: Add a <tt class="xref py py-obj docutils literal"><span class="pre">__sizeof__()</span></tt> implementation for array objects. Patch by Ludwig Hähne.</li> <li><a class="reference external" href="http://bugs.python.org/15576">Issue #15576</a>: Allow extension modules to act as a package’s __init__ module.</li> <li><a class="reference external" href="http://bugs.python.org/15502">Issue #15502</a>: Have <a class="reference internal" href="../library/importlib.html#importlib.invalidate_caches" title="importlib.invalidate_caches"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.invalidate_caches()</span></tt></a> work on <a class="reference internal" href="../library/sys.html#sys.meta_path" title="sys.meta_path"><tt class="xref py py-obj docutils literal"><span class="pre">sys.meta_path</span></tt></a> instead of <a class="reference internal" href="../library/sys.html#sys.path_importer_cache" title="sys.path_importer_cache"><tt class="xref py py-obj docutils literal"><span class="pre">sys.path_importer_cache</span></tt></a>.</li> <li><a class="reference external" href="http://bugs.python.org/15163">Issue #15163</a>: Pydoc shouldn’t list __loader__ as module data.</li> <li><a class="reference external" href="http://bugs.python.org/15471">Issue #15471</a>: Do not use mutable objects as defaults for <a class="reference internal" href="../library/importlib.html#importlib.__import__" title="importlib.__import__"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.__import__()</span></tt></a>.</li> <li><a class="reference external" href="http://bugs.python.org/15559">Issue #15559</a>: To avoid a problematic failure mode when passed to the bytes constructor, objects in the ipaddress module no longer implement <tt class="xref py py-obj docutils literal"><span class="pre">__index__()</span></tt> (they still implement <tt class="xref py py-obj docutils literal"><span class="pre">__int__()</span></tt> as appropriate).</li> <li><a class="reference external" href="http://bugs.python.org/15546">Issue #15546</a>: Fix handling of pathological input data in the peek() and read1() methods of the BZ2File, GzipFile and LZMAFile classes.</li> <li><a class="reference external" href="http://bugs.python.org/12655">Issue #12655</a>: Instead of requiring a custom type, <a class="reference internal" href="../library/os.html#os.sched_getaffinity" title="os.sched_getaffinity"><tt class="xref py py-obj docutils literal"><span class="pre">os.sched_getaffinity()</span></tt></a> and <a class="reference internal" href="../library/os.html#os.sched_setaffinity" title="os.sched_setaffinity"><tt class="xref py py-obj docutils literal"><span class="pre">os.sched_setaffinity()</span></tt></a> now use regular sets of integers to represent the CPUs a process is restricted to.</li> <li><a class="reference external" href="http://bugs.python.org/15538">Issue #15538</a>: Fix compilation of the <a class="reference internal" href="../library/socket.html#socket.getnameinfo" title="socket.getnameinfo"><tt class="xref py py-obj docutils literal"><span class="pre">socket.getnameinfo()</span></tt></a> / <a class="reference internal" href="../library/socket.html#socket.getaddrinfo" title="socket.getaddrinfo"><tt class="xref py py-obj docutils literal"><span class="pre">socket.getaddrinfo()</span></tt></a> emulation code. Patch by Philipp Hagemeister.</li> <li><a class="reference external" href="http://bugs.python.org/15519">Issue #15519</a>: Properly expose WindowsRegistryFinder in importlib (and use the correct term for it). Original patch by Eric Snow.</li> <li><a class="reference external" href="http://bugs.python.org/15502">Issue #15502</a>: Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow.</li> <li><a class="reference external" href="http://bugs.python.org/15499">Issue #15499</a>: Launching a webbrowser in Unix used to sleep for a few seconds. Original patch by Anton Barkovsky.</li> <li><a class="reference external" href="http://bugs.python.org/15463">Issue #15463</a>: The faulthandler module truncates strings to 500 characters, instead of 100, to be able to display long file paths.</li> <li><a class="reference external" href="http://bugs.python.org/6056">Issue #6056</a>: Make <a class="reference internal" href="../library/multiprocessing.html#module-multiprocessing" title="multiprocessing: Process-based parallelism."><tt class="xref py py-obj docutils literal"><span class="pre">multiprocessing</span></tt></a> use setblocking(True) on the sockets it uses. Original patch by J Derek Wilson.</li> <li><a class="reference external" href="http://bugs.python.org/15364">Issue #15364</a>: Fix sysconfig.get_config_var(‘srcdir’) to be an absolute path.</li> <li><a class="reference external" href="http://bugs.python.org/15413">Issue #15413</a>: <a class="reference internal" href="../library/os.html#os.times" title="os.times"><tt class="xref py py-obj docutils literal"><span class="pre">os.times()</span></tt></a> had disappeared under Windows.</li> <li><a class="reference external" href="http://bugs.python.org/15402">Issue #15402</a>: An issue in the struct module that caused <a class="reference internal" href="../library/sys.html#sys.getsizeof" title="sys.getsizeof"><tt class="xref py py-obj docutils literal"><span class="pre">sys.getsizeof()</span></tt></a> to return incorrect results for struct.Struct instances has been fixed. Initial patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15232">Issue #15232</a>: When mangle_from is True, <tt class="xref py py-obj docutils literal"><span class="pre">email.Generator</span></tt> now correctly mangles lines that start with ‘From ‘ that occur in a MIME preamble or epilogue.</li> <li><a class="reference external" href="http://bugs.python.org/15094">Issue #15094</a>: Incorrectly placed #endif in _tkinter.c. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/13922">Issue #13922</a>: <a class="reference internal" href="../library/argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><tt class="xref py py-obj docutils literal"><span class="pre">argparse</span></tt></a> no longer incorrectly strips ‘–’s that appear after the first one.</li> <li><a class="reference external" href="http://bugs.python.org/12353">Issue #12353</a>: <a class="reference internal" href="../library/argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><tt class="xref py py-obj docutils literal"><span class="pre">argparse</span></tt></a> now correctly handles null argument values.</li> <li><a class="reference external" href="http://bugs.python.org/10017">Issue #10017</a>, <a class="reference external" href="http://bugs.python.org/14998">issue #14998</a>: Fix TypeError using pprint on dictionaries with user-defined types as keys or other unorderable keys.</li> <li><a class="reference external" href="http://bugs.python.org/15397">Issue #15397</a>: <a class="reference internal" href="../library/inspect.html#inspect.getmodulename" title="inspect.getmodulename"><tt class="xref py py-obj docutils literal"><span class="pre">inspect.getmodulename()</span></tt></a> is now based directly on importlib via a new <a class="reference internal" href="../library/importlib.html#importlib.machinery.all_suffixes" title="importlib.machinery.all_suffixes"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.machinery.all_suffixes()</span></tt></a> API.</li> <li><a class="reference external" href="http://bugs.python.org/14635">Issue #14635</a>: <a class="reference internal" href="../library/telnetlib.html#module-telnetlib" title="telnetlib: Telnet client class."><tt class="xref py py-obj docutils literal"><span class="pre">telnetlib</span></tt></a> will use poll() rather than select() when possible to avoid failing due to the select() file descriptor limit.</li> <li><a class="reference external" href="http://bugs.python.org/15180">Issue #15180</a>: Clarify posixpath.join() error message when mixing str & bytes.</li> <li><a class="reference external" href="http://bugs.python.org/15343">Issue #15343</a>: pkgutil now includes an iter_importer_modules implementation for importlib.machinery.FileFinder (similar to the way it already handled zipimport.zipimporter).</li> <li><a class="reference external" href="http://bugs.python.org/15314">Issue #15314</a>: runpy now sets __main__.__loader__ correctly.</li> <li><a class="reference external" href="http://bugs.python.org/15357">Issue #15357</a>: The import emulation in pkgutil is now deprecated. pkgutil uses importlib internally rather than the emulation.</li> <li><a class="reference external" href="http://bugs.python.org/15233">Issue #15233</a>: Python now guarantees that callables registered with the atexit module will be called in a deterministic order.</li> <li><a class="reference external" href="http://bugs.python.org/15238">Issue #15238</a>: <a class="reference internal" href="../library/shutil.html#shutil.copystat" title="shutil.copystat"><tt class="xref py py-obj docutils literal"><span class="pre">shutil.copystat()</span></tt></a> now copies Linux “extended attributes”.</li> <li><a class="reference external" href="http://bugs.python.org/15230">Issue #15230</a>: runpy.run_path now correctly sets __package__ as described in the documentation.</li> <li><a class="reference external" href="http://bugs.python.org/15315">Issue #15315</a>: Support VS 2010 in distutils cygwincompiler.</li> <li><a class="reference external" href="http://bugs.python.org/15294">Issue #15294</a>: Fix a regression in pkgutil.extend_path()’s handling of nested namespace packages.</li> <li><a class="reference external" href="http://bugs.python.org/15056">Issue #15056</a>: <a class="reference internal" href="../library/imp.html#imp.cache_from_source" title="imp.cache_from_source"><tt class="xref py py-obj docutils literal"><span class="pre">imp.cache_from_source()</span></tt></a> and <a class="reference internal" href="../library/imp.html#imp.source_from_cache" title="imp.source_from_cache"><tt class="xref py py-obj docutils literal"><span class="pre">imp.source_from_cache()</span></tt></a> raise NotImplementedError when <tt class="xref py py-obj docutils literal"><span class="pre">sys.implementation.cache_tag</span></tt> is set to None.</li> <li><a class="reference external" href="http://bugs.python.org/15256">Issue #15256</a>: Grammatical mistake in exception raised by <a class="reference internal" href="../library/imp.html#imp.find_module" title="imp.find_module"><tt class="xref py py-obj docutils literal"><span class="pre">imp.find_module()</span></tt></a>.</li> <li><a class="reference external" href="http://bugs.python.org/5931">Issue #5931</a>: <a class="reference internal" href="../library/wsgiref.html#module-wsgiref" title="wsgiref: WSGI Utilities and Reference Implementation."><tt class="xref py py-obj docutils literal"><span class="pre">wsgiref</span></tt></a> environ variable SERVER_SOFTWARE will specify an implementation specific term like CPython, Jython instead of generic “Python”.</li> <li><a class="reference external" href="http://bugs.python.org/13248">Issue #13248</a>: Remove obsolete argument “max_buffer_size” of BufferedWriter and BufferedRWPair, from the io module.</li> <li><a class="reference external" href="http://bugs.python.org/13248">Issue #13248</a>: Remove obsolete argument “version” of <a class="reference internal" href="../library/argparse.html#argparse.ArgumentParser" title="argparse.ArgumentParser"><tt class="xref py py-obj docutils literal"><span class="pre">argparse.ArgumentParser</span></tt></a>.</li> <li><a class="reference external" href="http://bugs.python.org/14814">Issue #14814</a>: Implement more consistent ordering and sorting behaviour for ipaddress objects.</li> <li><a class="reference external" href="http://bugs.python.org/14814">Issue #14814</a>: <a class="reference internal" href="../library/ipaddress.html#module-ipaddress" title="ipaddress: IPv4/IPv6 manipulation library."><tt class="xref py py-obj docutils literal"><span class="pre">ipaddress</span></tt></a> network objects correctly return NotImplemented when compared to arbitrary objects instead of raising TypeError.</li> <li><a class="reference external" href="http://bugs.python.org/14990">Issue #14990</a>: Correctly fail with SyntaxError on invalid encoding declaration.</li> <li><a class="reference external" href="http://bugs.python.org/14814">Issue #14814</a>: <a class="reference internal" href="../library/ipaddress.html#module-ipaddress" title="ipaddress: IPv4/IPv6 manipulation library."><tt class="xref py py-obj docutils literal"><span class="pre">ipaddress</span></tt></a> now provides more informative error messages when constructing instances directly (changes permitted during beta due to provisional API status).</li> <li><a class="reference external" href="http://bugs.python.org/15247">Issue #15247</a>: <a class="reference internal" href="../library/io.html#io.FileIO" title="io.FileIO"><tt class="xref py py-obj docutils literal"><span class="pre">io.FileIO</span></tt></a> now raises an error when given a file descriptor pointing to a directory.</li> <li><a class="reference external" href="http://bugs.python.org/15261">Issue #15261</a>: Stop os.stat(fd) crashing on Windows when fd not open.</li> <li><a class="reference external" href="http://bugs.python.org/15166">Issue #15166</a>: Implement <a class="reference internal" href="../library/imp.html#imp.get_tag" title="imp.get_tag"><tt class="xref py py-obj docutils literal"><span class="pre">imp.get_tag()</span></tt></a> using <tt class="xref py py-obj docutils literal"><span class="pre">sys.implementation.cache_tag</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/15210">Issue #15210</a>: Catch KeyError when <tt class="xref py py-obj docutils literal"><span class="pre">importlib.__init__()</span></tt> can’t find _frozen_importlib in sys.modules, not ImportError.</li> <li><a class="reference external" href="http://bugs.python.org/15030">Issue #15030</a>: <a class="reference internal" href="../library/importlib.html#importlib.abc.PyPycLoader" title="importlib.abc.PyPycLoader"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.abc.PyPycLoader</span></tt></a> now supports the new source size header field in .pyc files.</li> <li><a class="reference external" href="http://bugs.python.org/5346">Issue #5346</a>: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush().</li> <li><a class="reference external" href="http://bugs.python.org/10571">Issue #10571</a>: Fix the “–sign” option of distutils’ upload command. Patch by Jakub Wilk.</li> <li><a class="reference external" href="http://bugs.python.org/9559">Issue #9559</a>: If messages were only added, a new file is no longer created and renamed over the old file when flush() is called on an mbox, MMDF or Babyl mailbox.</li> <li><a class="reference external" href="http://bugs.python.org/10924">Issue #10924</a>: Fixed <a class="reference internal" href="../library/crypt.html#crypt.mksalt" title="crypt.mksalt"><tt class="xref py py-obj docutils literal"><span class="pre">crypt.mksalt()</span></tt></a> to use a RNG that is suitable for cryptographic purpose.</li> <li><a class="reference external" href="http://bugs.python.org/15184">Issue #15184</a>: Ensure consistent results of OS X configuration tailoring for universal builds by factoring out common OS X-specific customizations from sysconfig, distutils.sysconfig, distutils.util, and distutils.unixccompiler into a new module _osx_support.</li> </ul> </div> <div class="section" id="id25"> <h3>C API<a class="headerlink" href="#id25" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15610">Issue #15610</a>: <tt class="xref py py-obj docutils literal"><span class="pre">PyImport_ImportModuleEx()</span></tt> now uses a ‘level’ of 0 instead of -1.</li> <li><a class="reference external" href="http://bugs.python.org/15169">Issue #15169</a>, <a class="reference external" href="http://bugs.python.org/14599">issue #14599</a>: Strip out the C implementation of <a class="reference internal" href="../library/imp.html#imp.source_from_cache" title="imp.source_from_cache"><tt class="xref py py-obj docutils literal"><span class="pre">imp.source_from_cache()</span></tt></a> used by PyImport_ExecCodeModuleWithPathnames() and used the Python code instead. Leads to PyImport_ExecCodeModuleObject() to not try to infer the source path from the bytecode path as PyImport_ExecCodeModuleWithPathnames() does.</li> </ul> </div> <div class="section" id="id26"> <h3>Extension Modules<a class="headerlink" href="#id26" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/6493">Issue #6493</a>: An issue in ctypes on Windows that caused structure bitfields of type <a class="reference internal" href="../library/ctypes.html#ctypes.c_uint32" title="ctypes.c_uint32"><tt class="xref py py-obj docutils literal"><span class="pre">ctypes.c_uint32</span></tt></a> and width 32 to incorrectly be set has been fixed.</li> <li><a class="reference external" href="http://bugs.python.org/15194">Issue #15194</a>: Update libffi to the 3.0.11 release.</li> </ul> </div> <div class="section" id="id27"> <h3>IDLE<a class="headerlink" href="#id27" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13052">Issue #13052</a>: Fix IDLE crashing when replace string in Search/Replace dialog ended with <tt class="docutils literal"><span class="pre">\</span></tt>. Patch by Roger Serwy.</li> </ul> </div> <div class="section" id="id28"> <h3>Tools/Demos<a class="headerlink" href="#id28" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15458">Issue #15458</a>: python-config gets a new option –configdir to print the $LIBPL value.</li> <li>Move importlib.test.benchmark to Tools/importbench.</li> <li><a class="reference external" href="http://bugs.python.org/12605">Issue #12605</a>: The gdb hooks for debugging CPython (within Tools/gdb) have been enhanced to show information on more C frames relevant to CPython within the “py-bt” and “py-bt-full” commands:<ul> <li>C frames that are waiting on the GIL</li> <li>C frames that are garbage-collecting</li> <li>C frames that are due to the invocation of a PyCFunction</li> </ul> </li> </ul> </div> <div class="section" id="id29"> <h3>Documentation<a class="headerlink" href="#id29" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15041">Issue #15041</a>: Update “see also” list in tkinter documentation.</li> <li><a class="reference external" href="http://bugs.python.org/15444">Issue #15444</a>: Use proper spelling for non-ASCII contributor names. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15295">Issue #15295</a>: Reorganize and rewrite the documentation on the import system.</li> <li><a class="reference external" href="http://bugs.python.org/15230">Issue #15230</a>: Clearly document some of the limitations of the runpy module and nudge readers towards importlib when appropriate.</li> <li><a class="reference external" href="http://bugs.python.org/15053">Issue #15053</a>: Copy Python 3.3 import lock change notice to all relevant functions in imp instead of just at the top of the relevant section.</li> <li><a class="reference external" href="http://bugs.python.org/15288">Issue #15288</a>: Link to the term “loader” in notes in pkgutil about how things won’t work as expected in Python 3.3 and mark the requisite functions as “changed” since they will no longer work with modules directly imported by import itself.</li> <li><a class="reference external" href="http://bugs.python.org/13557">Issue #13557</a>: Clarify effect of giving two different namespaces to <a class="reference internal" href="../library/functions.html#exec" title="exec"><tt class="xref py py-obj docutils literal"><span class="pre">exec()</span></tt></a> or <tt class="xref py py-obj docutils literal"><span class="pre">execfile()</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/15250">Issue #15250</a>: Document that <a class="reference internal" href="../library/filecmp.html#filecmp.dircmp" title="filecmp.dircmp"><tt class="xref py py-obj docutils literal"><span class="pre">filecmp.dircmp()</span></tt></a> compares files shallowly. Patch contributed by Chris Jerdonek.</li> </ul> </div> <div class="section" id="id30"> <h3>Tests<a class="headerlink" href="#id30" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15467">Issue #15467</a>: Move helpers for <tt class="xref py py-obj docutils literal"><span class="pre">__sizeof__()</span></tt> tests into test_support. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15320">Issue #15320</a>: Make iterating the list of tests thread-safe when running tests in multiprocess mode. Patch by Chris Jerdonek.</li> <li><a class="reference external" href="http://bugs.python.org/15168">Issue #15168</a>: Move <tt class="xref py py-obj docutils literal"><span class="pre">importlib.test</span></tt> to <tt class="xref py py-obj docutils literal"><span class="pre">test.test_importlib</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/15091">Issue #15091</a>: Reactivate a test on UNIX which was failing thanks to a forgotten <a class="reference internal" href="../library/importlib.html#importlib.invalidate_caches" title="importlib.invalidate_caches"><tt class="xref py py-obj docutils literal"><span class="pre">importlib.invalidate_caches()</span></tt></a> call.</li> <li><a class="reference external" href="http://bugs.python.org/15230">Issue #15230</a>: Adopted a more systematic approach in the runpy tests.</li> <li><a class="reference external" href="http://bugs.python.org/15300">Issue #15300</a>: Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build. Patch by Chris Jerdonek.</li> <li><a class="reference external" href="http://bugs.python.org/15284">Issue #15284</a>: Skip {send,recv}msg tests in test_socket when IPv6 is not enabled. Patch by Brian Brazil.</li> <li><a class="reference external" href="http://bugs.python.org/15277">Issue #15277</a>: Fix a resource leak in support.py when IPv6 is disabled. Patch by Brian Brazil.</li> </ul> </div> <div class="section" id="id31"> <h3>Build<a class="headerlink" href="#id31" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/11715">Issue #11715</a>: Fix multiarch detection without having Debian development tools (dpkg-dev) installed.</li> <li><a class="reference external" href="http://bugs.python.org/15037">Issue #15037</a>: Build OS X installers with local copy of ncurses 5.9 libraries to avoid curses.unget_wch bug present in older versions of ncurses such as those shipped with OS X.</li> <li><a class="reference external" href="http://bugs.python.org/15560">Issue #15560</a>: Fix building _sqlite3 extension on OS X with an SDK. Also, for OS X installers, ensure consistent sqlite3 behavior and feature availability by building a local copy of libsqlite3 rather than depending on the wide range of versions supplied with various OS X releases.</li> <li><a class="reference external" href="http://bugs.python.org/8847">Issue #8847</a>: Disable COMDAT folding in Windows PGO builds.</li> <li><a class="reference external" href="http://bugs.python.org/14018">Issue #14018</a>: Fix OS X Tcl/Tk framework checking when using OS X SDKs.</li> <li><a class="reference external" href="http://bugs.python.org/16256">Issue #16256</a>: OS X installer now sets correct permissions for doc directory.</li> <li><a class="reference external" href="http://bugs.python.org/15431">Issue #15431</a>: Add _freeze_importlib project to regenerate importlib.h on Windows. Patch by Kristján Valur Jónsson.</li> <li><a class="reference external" href="http://bugs.python.org/14197">Issue #14197</a>: For OS X framework builds, ensure links to the shared library are created with the proper ABI suffix.</li> <li><a class="reference external" href="http://bugs.python.org/14330">Issue #14330</a>: For cross builds, don’t use host python, use host search paths for host compiler.</li> <li><a class="reference external" href="http://bugs.python.org/15235">Issue #15235</a>: Allow Berkley DB versions up to 5.3 to build the dbm module.</li> <li><a class="reference external" href="http://bugs.python.org/15268">Issue #15268</a>: Search curses.h in /usr/include/ncursesw.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-beta-1"> <h2>Python 3.3.0 Beta 1<a class="headerlink" href="#python-3-3-0-beta-1" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 27-Jun-2012</em></p> <div class="section" id="id32"> <h3>Core and Builtins<a class="headerlink" href="#id32" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>Fix a (most likely) very rare memory leak when calling main() and not being able to decode a command-line argument.</li> <li><a class="reference external" href="http://bugs.python.org/14815">Issue #14815</a>: Use Py_ssize_t instead of long for the object hash, to preserve all 64 bits of hash on Win64.</li> <li><a class="reference external" href="http://bugs.python.org/12268">Issue #12268</a>: File readline, readlines and read() or readall() methods no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods.</li> <li><a class="reference external" href="http://bugs.python.org/11626">Issue #11626</a>: Add _SizeT functions to stable ABI.</li> <li><a class="reference external" href="http://bugs.python.org/15142">Issue #15142</a>: Fix reference leak when deallocating instances of types created using PyType_FromSpec().</li> <li><a class="reference external" href="http://bugs.python.org/10053">Issue #10053</a>: Don’t close FDs when FileIO.__init__ fails. Loosely based on the work by Hirokazu Yamamoto.</li> <li><a class="reference external" href="http://bugs.python.org/15096">Issue #15096</a>: Removed support for ur’’ as the raw notation isn’t compatible with Python 2.x’s raw unicode strings.</li> <li><a class="reference external" href="http://bugs.python.org/13783">Issue #13783</a>: Generator objects now use the identifier APIs internally</li> <li><a class="reference external" href="http://bugs.python.org/14874">Issue #14874</a>: Restore charmap decoding speed to pre-PEP 393 levels. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15026">Issue #15026</a>: utf-16 encoding is now significantly faster (up to 10x). Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/11022">Issue #11022</a>: open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False) instead of locale.getpreferredencoding() in text mode if the encoding is not specified. Don’t change temporary the locale encoding using locale.setlocale(), use the current locale encoding instead of the user preferred encoding.</li> <li><a class="reference external" href="http://bugs.python.org/14673">Issue #14673</a>: Add Eric Snow’s sys.implementation implementation.</li> <li><a class="reference external" href="http://bugs.python.org/15038">Issue #15038</a>: Optimize python Locks on Windows.</li> </ul> </div> <div class="section" id="id33"> <h3>Library<a class="headerlink" href="#id33" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/16305">Issue #16305</a>: Fix a segmentation fault occurring when interrupting math.factorial.</li> <li><a class="reference external" href="http://bugs.python.org/12288">Issue #12288</a>: Consider ‘0’ and ‘0.0’ as valid initialvalue for tkinter SimpleDialog.</li> <li><a class="reference external" href="http://bugs.python.org/15512">Issue #15512</a>: Add a __sizeof__ implementation for parser. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15469">Issue #15469</a>: Add a __sizeof__ implementation for deque objects. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15489">Issue #15489</a>: Add a __sizeof__ implementation for BytesIO objects. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15487">Issue #15487</a>: Add a __sizeof__ implementation for buffered I/O objects. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15514">Issue #15514</a>: Correct __sizeof__ support for cpu_set. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15177">Issue #15177</a>: Added dir_fd parameter to os.fwalk().</li> <li><a class="reference external" href="http://bugs.python.org/15061">Issue #15061</a>: Re-implemented hmac.compare_digest() in C to prevent further timing analysis and to support all buffer protocol aware objects as well as ASCII only str instances safely.</li> <li><a class="reference external" href="http://bugs.python.org/15164">Issue #15164</a>: Change return value of platform.uname() from a plain tuple to a collections.namedtuple.</li> <li>Support Mageia Linux in the platform module.</li> <li><a class="reference external" href="http://bugs.python.org/11678">Issue #11678</a>: Support Arch linux in the platform module.</li> <li><a class="reference external" href="http://bugs.python.org/15118">Issue #15118</a>: Change return value of os.uname() and os.times() from plain tuples to immutable iterable objects with named attributes (structseq objects).</li> <li>Speed up _decimal by another 10-15% by caching the thread local context that was last accessed. In the pi benchmark (64-bit platform, prec=9), _decimal is now only 1.5x slower than float.</li> <li>Remove the packaging module, which is not ready for prime time.</li> <li><a class="reference external" href="http://bugs.python.org/15154">Issue #15154</a>: Add “dir_fd” parameter to os.rmdir, remove “rmdir” parameter from os.remove / os.unlink.</li> <li><a class="reference external" href="http://bugs.python.org/4489">Issue #4489</a>: Add a shutil.rmtree that isn’t susceptible to symlink attacks. It is used automatically on platforms supporting the necessary os.openat() and os.unlinkat() functions. Main code by Martin von Löwis.</li> <li><a class="reference external" href="http://bugs.python.org/15156">Issue #15156</a>: HTMLParser now uses the new “html.entities.html5” dictionary.</li> <li><a class="reference external" href="http://bugs.python.org/11113">Issue #11113</a>: add a new “html5” dictionary containing the named character references defined by the HTML5 standard and the equivalent Unicode character(s) to the html.entities module.</li> <li><a class="reference external" href="http://bugs.python.org/15114">Issue #15114</a>: the strict mode of HTMLParser and the HTMLParseError exception are deprecated now that the parser is able to parse invalid markup.</li> <li><a class="reference external" href="http://bugs.python.org/3665">Issue #3665</a>: u and U escapes are now supported in unicode regular expressions. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15153">Issue #15153</a>: Added inspect.getgeneratorlocals to simplify white box testing of generator state updates</li> <li><a class="reference external" href="http://bugs.python.org/13062">Issue #13062</a>: Added inspect.getclosurevars to simplify testing stateful closures</li> <li><a class="reference external" href="http://bugs.python.org/11024">Issue #11024</a>: Fixes and additional tests for Time2Internaldate.</li> <li><a class="reference external" href="http://bugs.python.org/14626">Issue #14626</a>: Large refactoring of functions / parameters in the os module. Many functions now support “dir_fd” and “follow_symlinks” parameters; some also support accepting an open file descriptor in place of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with “f” or “l”, or ending with “at”). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.</li> <li><a class="reference external" href="http://bugs.python.org/15008">Issue #15008</a>: Implement PEP 362 “Signature Objects”. Patch by Yury Selivanov.</li> <li>Issue: #15138: base64.urlsafe_{en,de}code() are now 3-4x faster.</li> <li><a class="reference external" href="http://bugs.python.org/444582">Issue #444582</a>: Add shutil.which, for finding programs on the system path. Original patch by Erik Demaine, with later iterations by Jan Killian and Brian Curtin.</li> <li><a class="reference external" href="http://bugs.python.org/14837">Issue #14837</a>: SSL errors now have <tt class="docutils literal"><span class="pre">library</span></tt> and <tt class="docutils literal"><span class="pre">reason</span></tt> attributes describing precisely what happened and in which OpenSSL submodule. The str() of a SSLError is also enhanced accordingly.</li> <li><a class="reference external" href="http://bugs.python.org/9527">Issue #9527</a>: datetime.astimezone() method will now supply a class timezone instance corresponding to the system local timezone when called with no arguments.</li> <li><a class="reference external" href="http://bugs.python.org/14653">Issue #14653</a>: email.utils.mktime_tz() no longer relies on system mktime() when timezone offest is supplied.</li> <li><a class="reference external" href="http://bugs.python.org/14684">Issue #14684</a>: zlib.compressobj() and zlib.decompressobj() now support the use of predefined compression dictionaries. Original patch by Sam Rushing.</li> <li>Fix GzipFile’s handling of filenames given as bytes objects.</li> <li><a class="reference external" href="http://bugs.python.org/14772">Issue #14772</a>: Return destination values from some shutil functions.</li> <li><a class="reference external" href="http://bugs.python.org/15064">Issue #15064</a>: Implement context manager protocol for multiprocessing types</li> <li><a class="reference external" href="http://bugs.python.org/15101">Issue #15101</a>: Make pool finalizer avoid joining current thread.</li> <li><a class="reference external" href="http://bugs.python.org/14657">Issue #14657</a>: The frozen instance of importlib used for bootstrap is now also the module imported as importlib._bootstrap.</li> <li><a class="reference external" href="http://bugs.python.org/14055">Issue #14055</a>: Add __sizeof__ support to _elementtree.</li> <li><a class="reference external" href="http://bugs.python.org/15054">Issue #15054</a>: A bug in tokenize.tokenize that caused string literals with ‘b’ prefixes to be incorrectly tokenized has been fixed. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/15006">Issue #15006</a>: Allow equality comparison between naive and aware time or datetime objects.</li> <li><a class="reference external" href="http://bugs.python.org/15036">Issue #15036</a>: Mailbox no longer throws an error if a flush is done between operations when removing or changing multiple items in mbox, MMDF, or Babyl mailboxes.</li> <li><a class="reference external" href="http://bugs.python.org/14059">Issue #14059</a>: Implement multiprocessing.Barrier.</li> <li><a class="reference external" href="http://bugs.python.org/15061">Issue #15061</a>: The inappropriately named hmac.secure_compare has been renamed to hmac.compare_digest, restricted to operating on bytes inputs only and had its documentation updated to more accurately reflect both its intent and its limitations</li> <li><a class="reference external" href="http://bugs.python.org/13841">Issue #13841</a>: Make child processes exit using sys.exit() on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/14936">Issue #14936</a>: curses_panel was converted to PEP 3121 and PEP 384 API. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/1667546">Issue #1667546</a>: On platforms supporting tm_zone and tm_gmtoff fields in struct tm, time.struct_time objects returned by time.gmtime(), time.localtime() and time.strptime() functions now have tm_zone and tm_gmtoff attributes. Original patch by Paul Boddie.</li> <li>Rename adjusted attribute to adjustable in time.get_clock_info() result.</li> <li><a class="reference external" href="http://bugs.python.org/3518">Issue #3518</a>: Remove references to non-existent BaseManager.from_address() method.</li> <li><a class="reference external" href="http://bugs.python.org/13857">Issue #13857</a>: Added textwrap.indent() function (initial patch by Ezra Berch)</li> <li><a class="reference external" href="http://bugs.python.org/2736">Issue #2736</a>: Added datetime.timestamp() method.</li> <li><a class="reference external" href="http://bugs.python.org/13854">Issue #13854</a>: Make multiprocessing properly handle non-integer non-string argument to SystemExit.</li> <li><a class="reference external" href="http://bugs.python.org/12157">Issue #12157</a>: Make pool.map() empty iterables correctly. Initial patch by mouad.</li> <li><a class="reference external" href="http://bugs.python.org/11823">Issue #11823</a>: disassembly now shows argument counts on calls with keyword args.</li> <li><a class="reference external" href="http://bugs.python.org/14711">Issue #14711</a>: os.stat_float_times() has been deprecated.</li> <li>LZMAFile now accepts the modes “rb”/”wb”/”ab” as synonyms of “r”/”w”/”a”.</li> <li>The bz2 and lzma modules now each contain an open() function, allowing compressed files to readily be opened in text mode as well as binary mode.</li> <li>BZ2File.__init__() and LZMAFile.__init__() now accept a file object as their first argument, rather than requiring a separate “fileobj” argument.</li> <li>gzip.open() now accepts file objects as well as filenames.</li> <li><a class="reference external" href="http://bugs.python.org/14992">Issue #14992</a>: os.makedirs(path, exist_ok=True) would raise an OSError when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.</li> <li><a class="reference external" href="http://bugs.python.org/14989">Issue #14989</a>: Make the CGI enable option to http.server available via command line.</li> <li><a class="reference external" href="http://bugs.python.org/14987">Issue #14987</a>: Add a missing import statement to inspect.</li> <li><a class="reference external" href="http://bugs.python.org/1079">Issue #1079</a>: email.header.decode_header now correctly parses all the examples in RFC2047. There is a necessary visible behavior change: the leading and/or trailing whitespace on ASCII parts is now preserved.</li> <li><a class="reference external" href="http://bugs.python.org/14969">Issue #14969</a>: Better handling of exception chaining in contextlib.ExitStack</li> <li><a class="reference external" href="http://bugs.python.org/14963">Issue #14963</a>: Convert contextlib.ExitStack.__exit__ to use an iterative algorithm (Patch by Alon Horev)</li> <li><a class="reference external" href="http://bugs.python.org/14785">Issue #14785</a>: Add sys._debugmallocstats() to help debug low-level memory allocation issues</li> <li><a class="reference external" href="http://bugs.python.org/14443">Issue #14443</a>: Ensure that .py files are byte-compiled with the correct Python executable within bdist_rpm even on older versions of RPM</li> </ul> </div> <div class="section" id="id34"> <h3>C-API<a class="headerlink" href="#id34" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15146">Issue #15146</a>: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/15042">Issue #15042</a>: Add PyState_AddModule and PyState_RemoveModule. Add version guard for Py_LIMITED_API additions. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/13783">Issue #13783</a>: Inadvertent additions to the public C API in the PEP 380 implementation have either been removed or marked as private interfaces.</li> </ul> </div> <div class="section" id="id35"> <h3>Extension Modules<a class="headerlink" href="#id35" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15000">Issue #15000</a>: Support the “unique” x32 architecture in _posixsubprocess.c.</li> </ul> </div> <div class="section" id="id36"> <h3>IDLE<a class="headerlink" href="#id36" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/9803">Issue #9803</a>: Don’t close IDLE on saving if breakpoint is open. Patch by Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/14962">Issue #14962</a>: Update text coloring in IDLE shell window after changing options. Patch by Roger Serwy.</li> </ul> </div> <div class="section" id="id37"> <h3>Documentation<a class="headerlink" href="#id37" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15176">Issue #15176</a>: Clarified behavior, documentation, and implementation of os.listdir().</li> <li><a class="reference external" href="http://bugs.python.org/14982">Issue #14982</a>: Document that pkgutil’s iteration functions require the non-standard iter_modules() method to be defined by an importer (something the importlib importers do not define).</li> <li><a class="reference external" href="http://bugs.python.org/15081">Issue #15081</a>: Document PyState_FindModule. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/14814">Issue #14814</a>: Added first draft of ipaddress module API reference</li> </ul> </div> <div class="section" id="id38"> <h3>Tests<a class="headerlink" href="#id38" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/15187">Issue #15187</a>: Bugfix: remove temporary directories test_shutil was leaving behind.</li> <li><a class="reference external" href="http://bugs.python.org/14769">Issue #14769</a>: test_capi now has SkipitemTest, which cleverly checks for “parity” between PyArg_ParseTuple() and the Python/getargs.c static function skipitem() for all possible “format units”.</li> <li>test_nntplib now tolerates being run from behind NNTP gateways that add “X-Antivirus” headers to articles</li> <li><a class="reference external" href="http://bugs.python.org/15043">Issue #15043</a>: test_gdb is now skipped entirely if gdb security settings block loading of the gdb hooks</li> <li><a class="reference external" href="http://bugs.python.org/14963">Issue #14963</a>: Add test cases for exception handling behaviour in contextlib.ExitStack (Initial patch by Alon Horev)</li> </ul> </div> <div class="section" id="id39"> <h3>Build<a class="headerlink" href="#id39" title="Permalink to this headline">¶</a></h3> <ul> <li><dl class="first docutils"> <dt><a class="reference external" href="http://bugs.python.org/13590">Issue #13590</a>: Improve support for OS X Xcode 4:</dt> <dd><ul class="first last simple"> <li>Try to avoid building Python or extension modules with problematic llvm-gcc compiler.</li> <li>Since Xcode 4 removes ppc support, extension module builds now check for ppc compiler support and automatically remove ppc and ppc64 archs when not available.</li> <li>Since Xcode 4 no longer install SDKs in default locations, extension module builds now revert to using installed headers and libs if the SDK used to build the interpreter is not available.</li> <li>Update ./configure to use better defaults for universal builds; in particular, –enable-universalsdk=yes uses the Xcode default SDK and –with-universal-archs now defaults to “intel” if ppc not available.</li> </ul> </dd> </dl> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14225">Issue #14225</a>: Fix Unicode support for curses (#12567) on OS X</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14928">Issue #14928</a>: Fix importlib bootstrap issues by using a custom executable (Modules/_freeze_importlib) to build Python/importlib.h.</p> </li> </ul> </div> </div> <div class="section" id="python-3-3-0-alpha-4"> <h2>Python 3.3.0 Alpha 4<a class="headerlink" href="#python-3-3-0-alpha-4" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 31-May-2012</em></p> <div class="section" id="id40"> <h3>Core and Builtins<a class="headerlink" href="#id40" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14835">Issue #14835</a>: Make plistlib output empty arrays & dicts like OS X. Patch by Sidney San Martín.</li> <li><a class="reference external" href="http://bugs.python.org/14744">Issue #14744</a>: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args).</li> <li><a class="reference external" href="http://bugs.python.org/14930">Issue #14930</a>: Make memoryview objects weakrefable.</li> <li><a class="reference external" href="http://bugs.python.org/14775">Issue #14775</a>: Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.</li> <li><a class="reference external" href="http://bugs.python.org/14857">Issue #14857</a>: fix regression in references to PEP 3135 implicit __class__ closure variable (Reopens <a class="reference external" href="http://bugs.python.org/12370">issue #12370</a>)</li> <li><a class="reference external" href="http://bugs.python.org/14712">Issue #14712</a> (PEP 405): Virtual environments. Implemented by Vinay Sajip.</li> <li><a class="reference external" href="http://bugs.python.org/14660">Issue #14660</a> (PEP 420): Namespace packages. Implemented by Eric Smith.</li> <li><a class="reference external" href="http://bugs.python.org/14494">Issue #14494</a>: Fix __future__.py and its documentation to note that absolute imports are the default behavior in 3.0 instead of 2.7. Patch by Sven Marnach.</li> <li><a class="reference external" href="http://bugs.python.org/9260">Issue #9260</a>: A finer-grained import lock. Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.</li> <li><a class="reference external" href="http://bugs.python.org/14624">Issue #14624</a>: UTF-16 decoding is now 3x to 4x faster on various inputs. Patch by Serhiy Storchaka.</li> <li>asdl_seq and asdl_int_seq are now Py_ssize_t sized.</li> <li><a class="reference external" href="http://bugs.python.org/14133">Issue #14133</a> (PEP 415): Implement suppression of __context__ display with an attribute on BaseException. This replaces the original mechanism of PEP 409.</li> <li><a class="reference external" href="http://bugs.python.org/14417">Issue #14417</a>: Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes <a class="reference external" href="http://bugs.python.org/14205">issue #14205</a>).</li> <li><a class="reference external" href="http://bugs.python.org/14738">Issue #14738</a>: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/14700">Issue #14700</a>: Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting.</li> </ul> </div> <div class="section" id="id41"> <h3>Library<a class="headerlink" href="#id41" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14690">Issue #14690</a>: Use monotonic clock instead of system clock in the sched, subprocess and trace modules.</li> <li><a class="reference external" href="http://bugs.python.org/14443">Issue #14443</a>: Tell rpmbuild to use the correct version of Python in bdist_rpm. Initial patch by Ross Lagerwall.</li> <li><a class="reference external" href="http://bugs.python.org/12515">Issue #12515</a>: email now registers a defect if it gets to EOF while parsing a MIME part without seeing the closing MIME boundary.</li> <li><a class="reference external" href="http://bugs.python.org/1672568">Issue #1672568</a>: email now always decodes base64 payloads, adding padding and ignoring non-base64-alphabet characters if needed, and registering defects for any such problems.</li> <li><a class="reference external" href="http://bugs.python.org/14925">Issue #14925</a>: email now registers a defect when the parser decides that there is a missing header/body separator line. MalformedHeaderDefect, which the existing code would never actually generate, is deprecated.</li> <li><a class="reference external" href="http://bugs.python.org/10365">Issue #10365</a>: File open dialog now works instead of crashing even when the parent window is closed before the dialog. Patch by Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/8739">Issue #8739</a>: Updated smtpd to support RFC 5321, and added support for the RFC 1870 SIZE extension.</li> <li><a class="reference external" href="http://bugs.python.org/665194">Issue #665194</a>: Added a localtime function to email.utils to provide an aware local datetime for use in setting Date headers.</li> <li><a class="reference external" href="http://bugs.python.org/12586">Issue #12586</a>: Added new provisional policies that implement convenient unicode support for email headers. See What’s New for details.</li> <li><a class="reference external" href="http://bugs.python.org/14731">Issue #14731</a>: Refactored email Policy framework to support full backward compatibility with Python 3.2 by default yet allow for the introduction of new features through new policies. Note that Policy.must_be_7bit is renamed to cte_type.</li> <li><a class="reference external" href="http://bugs.python.org/14876">Issue #14876</a>: Use user-selected font for highlight configuration.</li> <li><a class="reference external" href="http://bugs.python.org/14920">Issue #14920</a>: Fix the help(urllib.parse) failure on locale C on terminals. Have ascii characters in help.</li> <li><a class="reference external" href="http://bugs.python.org/14548">Issue #14548</a>: Make multiprocessing finalizers check pid before running to cope with possibility of gc running just after fork.</li> <li><a class="reference external" href="http://bugs.python.org/14036">Issue #14036</a>: Add an additional check to validate that port in urlparse does not go in illegal range and returns None.</li> <li><a class="reference external" href="http://bugs.python.org/14862">Issue #14862</a>: Add missing names to os.__all__</li> <li><a class="reference external" href="http://bugs.python.org/14875">Issue #14875</a>: Use float(‘inf’) instead of float(‘1e66666’) in the json module.</li> <li><a class="reference external" href="http://bugs.python.org/13585">Issue #13585</a>: Added contextlib.ExitStack</li> <li>PEP 3144, <a class="reference external" href="http://bugs.python.org/14814">Issue #14814</a>: Added the ipaddress module</li> <li><a class="reference external" href="http://bugs.python.org/14426">Issue #14426</a>: Correct the Date format in Expires attribute of Set-Cookie Header in Cookie.py.</li> <li><a class="reference external" href="http://bugs.python.org/14588">Issue #14588</a>: The types module now provide new_class() and prepare_class() functions to support PEP 3115 compliant dynamic class creation. Patch by Daniel Urban and Nick Coghlan.</li> <li><a class="reference external" href="http://bugs.python.org/13152">Issue #13152</a>: Allow to specify a custom tabsize for expanding tabs in textwrap. Patch by John Feuerstein.</li> <li><a class="reference external" href="http://bugs.python.org/14721">Issue #14721</a>: Send the correct ‘Content-length: 0’ header when the body is an empty string ‘’. Initial Patch contributed by Arve Knudsen.</li> <li><a class="reference external" href="http://bugs.python.org/14072">Issue #14072</a>: Fix parsing of ‘tel’ URIs in urlparse by making the check for ports stricter.</li> <li><a class="reference external" href="http://bugs.python.org/9374">Issue #9374</a>: Generic parsing of query and fragment portions of url for any scheme. Supported both by RFC3986 and RFC2396.</li> <li><a class="reference external" href="http://bugs.python.org/14798">Issue #14798</a>: Fix the functions in pyclbr to raise an ImportError when the first part of a dotted name is not a package. Patch by Xavier de Gaye.</li> <li><a class="reference external" href="http://bugs.python.org/12098">Issue #12098</a>: multiprocessing on Windows now starts child processes using the same sys.flags as the current process. Initial patch by Sergey Mezentsev.</li> <li><a class="reference external" href="http://bugs.python.org/13031">Issue #13031</a>: Small speed-up for tarfile when unzipping tarfiles. Patch by Justin Peel.</li> <li><a class="reference external" href="http://bugs.python.org/14780">Issue #14780</a>: urllib.request.urlopen() now has a <tt class="docutils literal"><span class="pre">cadefault</span></tt> argument to use the default certificate store. Initial patch by James Oakley.</li> <li><a class="reference external" href="http://bugs.python.org/14829">Issue #14829</a>: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.</li> <li><a class="reference external" href="http://bugs.python.org/14732">Issue #14732</a>: The _csv module now uses PEP 3121 module initialization. Patch by Robin Schreiber.</li> <li><a class="reference external" href="http://bugs.python.org/14809">Issue #14809</a>: Add HTTP status codes introduced by RFC 6585 to http.server and http.client. Patch by EungJun Yi.</li> <li><a class="reference external" href="http://bugs.python.org/14777">Issue #14777</a>: tkinter may return undecoded UTF-8 bytes as a string when accessing the Tk clipboard. Modify clipboad_get() to first request type UTF8_STRING when no specific type is requested in an X11 windowing environment, falling back to the current default type STRING if that fails. Original patch by Thomas Kluyver.</li> <li><a class="reference external" href="http://bugs.python.org/14773">Issue #14773</a>: Fix os.fwalk() failing on dangling symlinks.</li> <li><a class="reference external" href="http://bugs.python.org/12541">Issue #12541</a>: Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.</li> <li><a class="reference external" href="http://bugs.python.org/14807">Issue #14807</a>: move undocumented tarfile.filemode() to stat.filemode() and add doc entry. Add tarfile.filemode alias with deprecation warning.</li> <li><a class="reference external" href="http://bugs.python.org/13815">Issue #13815</a>: TarFile.extractfile() now returns io.BufferedReader objects.</li> <li><a class="reference external" href="http://bugs.python.org/14532">Issue #14532</a>: Add a secure_compare() helper to the hmac module, to mitigate timing attacks. Patch by Jon Oberheide.</li> <li>Add importlib.util.resolve_name().</li> <li><a class="reference external" href="http://bugs.python.org/14366">Issue #14366</a>: Support lzma compression in zip files. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: Introduce importlib.find_loader() and document imp.find_module/load_module as deprecated.</li> <li><a class="reference external" href="http://bugs.python.org/14082">Issue #14082</a>: shutil.copy2() now copies extended attributes, if possible. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: Make importlib.abc.FileLoader.load_module()/get_filename() and importlib.machinery.ExtensionFileLoader.load_module() have their single argument be optional. Allows for the replacement (and thus deprecation) of imp.load_source()/load_package()/load_compiled().</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: imp.get_suffixes() has been deprecated in favour of the new attributes on importlib.machinery: SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES, OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES, and EXTENSION_SUFFIXES. This led to an indirect deprecation of inspect.getmoduleinfo().</li> <li><a class="reference external" href="http://bugs.python.org/14662">Issue #14662</a>: Prevent shutil failures on OS X when destination does not support chflag operations. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/14157">Issue #14157</a>: Fix time.strptime failing without a year on February 29th. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/14753">Issue #14753</a>: Make multiprocessing’s handling of negative timeouts the same as it was in Python 3.2.</li> <li><a class="reference external" href="http://bugs.python.org/14583">Issue #14583</a>: Fix importlib bug when a package’s __init__.py would first import one of its modules then raise an error.</li> <li><a class="reference external" href="http://bugs.python.org/14741">Issue #14741</a>: Fix missing support for Ellipsis (‘...’) in parser module.</li> <li><a class="reference external" href="http://bugs.python.org/14697">Issue #14697</a>: Fix missing support for set displays and set comprehensions in parser module.</li> <li><a class="reference external" href="http://bugs.python.org/14701">Issue #14701</a>: Fix missing support for ‘raise ... from’ in parser module.</li> <li>Add support for timeouts to the acquire() methods of multiprocessing’s lock/semaphore/condition proxies.</li> <li><a class="reference external" href="http://bugs.python.org/13989">Issue #13989</a>: Add support for text mode to gzip.open().</li> <li><a class="reference external" href="http://bugs.python.org/14127">Issue #14127</a>: The os.stat() result object now provides three additional fields: st_ctime_ns, st_mtime_ns, and st_atime_ns, providing those times as an integer with nanosecond resolution. The functions os.utime(), os.lutimes(), and os.futimes() now accept a new parameter, ns, which accepts mtime and atime as integers with nanosecond resolution.</li> <li><a class="reference external" href="http://bugs.python.org/14127">Issue #14127</a> and #10148: shutil.copystat now preserves exact mtime and atime on filesystems providing nanosecond resolution.</li> </ul> </div> <div class="section" id="id42"> <h3>IDLE<a class="headerlink" href="#id42" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14958">Issue #14958</a>: Change IDLE systax highlighting to recognize all string and byte literals supported in Python 3.3.</li> <li><a class="reference external" href="http://bugs.python.org/10997">Issue #10997</a>: Prevent a duplicate entry in IDLE’s “Recent Files” menu.</li> <li><a class="reference external" href="http://bugs.python.org/14929">Issue #14929</a>: Stop IDLE 3.x from closing on Unicode decode errors when grepping. Patch by Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/12510">Issue #12510</a>: Attempting to get invalid tooltip no longer closes IDLE. Other tooltipss have been corrected or improved and the number of tests has been tripled. Original patch by Roger Serwy.</li> </ul> </div> <div class="section" id="id43"> <h3>Tools/Demos<a class="headerlink" href="#id43" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14695">Issue #14695</a>: Bring Tools/parser/unparse.py support up to date with the Python 3.3 Grammar.</li> </ul> </div> <div class="section" id="id44"> <h3>Build<a class="headerlink" href="#id44" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14472">Issue #14472</a>: Update .gitignore. Patch by Matej Cepl.</li> <li>Upgrade Windows library versions: bzip 1.0.6, OpenSSL 1.0.1c.</li> <li><a class="reference external" href="http://bugs.python.org/14693">Issue #14693</a>: Under non-Windows platforms, hashlib’s fallback modules are always compiled, even if OpenSSL is present at build time.</li> <li><a class="reference external" href="http://bugs.python.org/13210">Issue #13210</a>: Windows build now uses VS2010, ported from VS2008.</li> </ul> </div> <div class="section" id="id45"> <h3>C-API<a class="headerlink" href="#id45" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14705">Issue #14705</a>: The PyArg_Parse() family of functions now support the ‘p’ format unit, which accepts a “boolean predicate” argument. It converts any Python value into an integer–0 if it is “false”, and 1 otherwise.</li> </ul> </div> <div class="section" id="id46"> <h3>Documentation<a class="headerlink" href="#id46" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14863">Issue #14863</a>: Update the documentation of os.fdopen() to reflect the fact that it’s only a thin wrapper around open() anymore.</li> <li><a class="reference external" href="http://bugs.python.org/14588">Issue #14588</a>: The language reference now accurately documents the Python 3 class definition process. Patch by Nick Coghlan.</li> <li><a class="reference external" href="http://bugs.python.org/14943">Issue #14943</a>: Correct a default argument value for winreg.OpenKey and correctly list the argument names in the function’s explanation.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-alpha-3"> <h2>Python 3.3.0 Alpha 3<a class="headerlink" href="#python-3-3-0-alpha-3" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 01-May-2012</em></p> <div class="section" id="id47"> <h3>Core and Builtins<a class="headerlink" href="#id47" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14699">Issue #14699</a>: Fix calling the classmethod descriptor directly.</li> <li><a class="reference external" href="http://bugs.python.org/14433">Issue #14433</a>: Prevent msvcrt crash in interactive prompt when stdin is closed.</li> <li><a class="reference external" href="http://bugs.python.org/14521">Issue #14521</a>: Make result of float(‘nan’) and float(‘-nan’) more consistent across platforms.</li> <li><a class="reference external" href="http://bugs.python.org/14646">Issue #14646</a>: __import__() sets __loader__ if the loader did not.</li> <li><a class="reference external" href="http://bugs.python.org/14605">Issue #14605</a>: No longer have implicit entries in sys.meta_path. If sys.meta_path is found to be empty, raise ImportWarning.</li> <li><a class="reference external" href="http://bugs.python.org/14605">Issue #14605</a>: No longer have implicit entries in sys.path_hooks. If sys.path_hooks is found to be empty, a warning will be raised. None is now inserted into sys.path_importer_cache if no finder was discovered. This also means imp.NullImporter is no longer implicitly used.</li> <li><a class="reference external" href="http://bugs.python.org/13903">Issue #13903</a>: Implement PEP 412. Individual dictionary instances can now share their keys with other dictionaries. Classes take advantage of this to share their instance dictionary keys for improved memory and performance.</li> <li><a class="reference external" href="http://bugs.python.org/11603">Issue #11603</a> (again): Setting __repr__ to __str__ now raises a RuntimeError when repr() or str() is called on such an object.</li> <li><a class="reference external" href="http://bugs.python.org/14658">Issue #14658</a>: Fix binding a special method to a builtin implementation of a special method with a different name.</li> <li><a class="reference external" href="http://bugs.python.org/14630">Issue #14630</a>: Fix a memory access bug for instances of a subclass of int with value 0.</li> <li><a class="reference external" href="http://bugs.python.org/14339">Issue #14339</a>: Speed improvements to bin, oct and hex functions. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/14385">Issue #14385</a>: It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.</li> <li><a class="reference external" href="http://bugs.python.org/12599">Issue #12599</a>: Be more strict in accepting None compared to a false-like object for importlib.util.module_for_loader and importlib.machinery.PathFinder.</li> <li><a class="reference external" href="http://bugs.python.org/14612">Issue #14612</a>: Fix jumping around with blocks by setting f_lineno.</li> <li><a class="reference external" href="http://bugs.python.org/14592">Issue #14592</a>: Attempting a relative import w/o __package__ or __name__ set in globals raises a KeyError.</li> <li><a class="reference external" href="http://bugs.python.org/14607">Issue #14607</a>: Fix keyword-only arguments which started with <tt class="docutils literal"><span class="pre">__</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/10854">Issue #10854</a>: The ImportError raised when an extension module on Windows fails to import now uses the new path and name attributes from <a class="reference external" href="http://bugs.python.org/1559549">Issue #1559549</a>.</li> <li><a class="reference external" href="http://bugs.python.org/13889">Issue #13889</a>: Check and (if necessary) set FPU control word before calling any of the dtoa.c string <-> float conversion functions, on MSVC builds of Python. This fixes issues when embedding Python in a Delphi app.</li> <li>__import__() now matches PEP 328 and documentation by defaulting ‘index’ to 0 instead of -1 and removing support for negative values.</li> <li><a class="reference external" href="http://bugs.python.org/2377">Issue #2377</a>: Make importlib the implementation of __import__().</li> <li><a class="reference external" href="http://bugs.python.org/1559549">Issue #1559549</a>: ImportError now has ‘name’ and ‘path’ attributes that are set using keyword arguments to its constructor. They are currently not set by import as they are meant for use by importlib.</li> <li><a class="reference external" href="http://bugs.python.org/14474">Issue #14474</a>: Save and restore exception state in thread.start_new_thread() while writing error message if the thread leaves a unhandled exception.</li> <li><a class="reference external" href="http://bugs.python.org/13019">Issue #13019</a>: Fix potential reference leaks in bytearray.extend(). Patch by Suman Saha.</li> </ul> </div> <div class="section" id="id48"> <h3>Library<a class="headerlink" href="#id48" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14768">Issue #14768</a>: os.path.expanduser(‘~/a’) doesn’t works correctly when HOME is ‘/’.</li> <li><a class="reference external" href="http://bugs.python.org/14371">Issue #14371</a>: Support bzip2 in zipfile module. Patch by Serhiy Storchaka.</li> <li><a class="reference external" href="http://bugs.python.org/13183">Issue #13183</a>: Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye.</li> <li><a class="reference external" href="http://bugs.python.org/14696">Issue #14696</a>: Fix parser module to understand ‘nonlocal’ declarations.</li> <li><a class="reference external" href="http://bugs.python.org/10941">Issue #10941</a>: Fix imaplib.Internaldate2tuple to produce correct result near the DST transition. Patch by Joe Peterson.</li> <li><a class="reference external" href="http://bugs.python.org/9154">Issue #9154</a>: Fix parser module to understand function annotations.</li> <li><a class="reference external" href="http://bugs.python.org/6085">Issue #6085</a>: In http.server.py SimpleHTTPServer.address_string returns the client ip address instead client hostname. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/14309">Issue #14309</a>: Deprecate time.clock(), use time.perf_counter() or time.process_time() instead.</li> <li><a class="reference external" href="http://bugs.python.org/14428">Issue #14428</a>: Implement the PEP 418. Add time.get_clock_info(), time.perf_counter() and time.process_time() functions, and rename time.steady() to time.monotonic().</li> <li><a class="reference external" href="http://bugs.python.org/14646">Issue #14646</a>: importlib.util.module_for_loader() now sets __loader__ and __package__ (when possible).</li> <li><a class="reference external" href="http://bugs.python.org/14664">Issue #14664</a>: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn’t inherit from TestCase (i.e. a mixin).</li> <li><a class="reference external" href="http://bugs.python.org/4892">Issue #4892</a>: multiprocessing Connections can now be transferred over multiprocessing Connections. Patch by Richard Oudkerk (sbt).</li> <li><a class="reference external" href="http://bugs.python.org/14160">Issue #14160</a>: TarFile.extractfile() failed to resolve symbolic links when the links were not located in an archive subdirectory.</li> <li><a class="reference external" href="http://bugs.python.org/14638">Issue #14638</a>: pydoc now treats non-string __name__ values as if they were missing, instead of raising an error.</li> <li><a class="reference external" href="http://bugs.python.org/13684">Issue #13684</a>: Fix httplib tunnel issue of infinite loops for certain sites which send EOF without trailing rn.</li> <li><a class="reference external" href="http://bugs.python.org/14605">Issue #14605</a>: Add importlib.abc.FileLoader, importlib.machinery.(FileFinder, SourceFileLoader, SourcelessFileLoader, ExtensionFileLoader).</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: imp.cache_from_source()/source_from_cache() now follow os.path.join()/split() semantics for path manipulation instead of its prior, custom semantics of caring the right-most path separator forward in path joining.</li> <li><a class="reference external" href="http://bugs.python.org/2193">Issue #2193</a>: Allow ”:” character in Cookie NAME values.</li> <li><a class="reference external" href="http://bugs.python.org/14629">Issue #14629</a>: tokenizer.detect_encoding will specify the filename in the SyntaxError exception if found at readline.__self__.name.</li> <li><a class="reference external" href="http://bugs.python.org/14629">Issue #14629</a>: Raise SyntaxError in tokenizer.detect_encoding if the first two lines have non-UTF-8 characters without an encoding declaration.</li> <li><a class="reference external" href="http://bugs.python.org/14308">Issue #14308</a>: Fix an exception when a “dummy” thread is in the threading module’s active list after a fork().</li> <li><a class="reference external" href="http://bugs.python.org/11750">Issue #11750</a>: The Windows API functions scattered in the _subprocess and _multiprocessing.win32 modules now live in a single module “_winapi”. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/14087">Issue #14087</a>: multiprocessing: add Condition.wait_for(). Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/14538">Issue #14538</a>: HTMLParser can now parse correctly start tags that contain a bare ‘/’.</li> <li><a class="reference external" href="http://bugs.python.org/14452">Issue #14452</a>: SysLogHandler no longer inserts a UTF-8 BOM into the message.</li> <li><a class="reference external" href="http://bugs.python.org/14386">Issue #14386</a>: Expose the dict_proxy internal type as types.MappingProxyType.</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: Make imp.reload() always use a module’s __loader__ to perform the reload.</li> <li><a class="reference external" href="http://bugs.python.org/13959">Issue #13959</a>: Add imp.py and rename the built-in module to _imp, allowing for re-implementing parts of the module in pure Python.</li> <li><a class="reference external" href="http://bugs.python.org/13496">Issue #13496</a>: Fix potential overflow in bisect.bisect algorithm when applied to a collection of size > sys.maxsize / 2.</li> <li>Have importlib take advantage of ImportError’s new ‘name’ and ‘path’ attributes.</li> <li><a class="reference external" href="http://bugs.python.org/14399">Issue #14399</a>: zipfile now recognizes that the archive has been modified even if only the comment is changed. In addition, the TypeError that results from trying to set a non-binary value as a comment is now raised at the time the comment is set rather than at the time the zipfile is written.</li> <li>trace.CoverageResults.is_ignored_filename() now ignores any name that starts with “<” and ends with “>” instead of special-casing “<string>” and “<doctest ”.</li> <li><a class="reference external" href="http://bugs.python.org/12537">Issue #12537</a>: The mailbox module no longer depends on knowledge of internal implementation details of the email package Message object.</li> <li><a class="reference external" href="http://bugs.python.org/7978">Issue #7978</a>: socketserver now restarts the select() call when EINTR is returned. This avoids crashing the server loop when a signal is received. Patch by Jerzy Kozera.</li> <li><a class="reference external" href="http://bugs.python.org/14522">Issue #14522</a>: Avoid duplicating socket handles in multiprocessing.connection. Patch by sbt.</li> <li>Don’t Py_DECREF NULL variable in io.IncrementalNewlineDecoder.</li> <li><a class="reference external" href="http://bugs.python.org/3033">Issue #3033</a>: Add displayof parameter to tkinter font. Patch by Guilherme Polo.</li> <li><a class="reference external" href="http://bugs.python.org/14482">Issue #14482</a>: Raise a ValueError, not a NameError, when trying to create a multiprocessing Client or Listener with an AF_UNIX type address under Windows. Patch by Popa Claudiu.</li> <li><a class="reference external" href="http://bugs.python.org/802310">Issue #802310</a>: Generate always unique tkinter font names if not directly passed.</li> <li><a class="reference external" href="http://bugs.python.org/14151">Issue #14151</a>: Raise a ValueError, not a NameError, when trying to create a multiprocessing Client or Listener with an AF_PIPE type address under non-Windows platforms. Patch by Popa Claudiu.</li> <li><a class="reference external" href="http://bugs.python.org/14493">Issue #14493</a>: Use gvfs-open or xdg-open in webbrowser.</li> </ul> </div> <div class="section" id="id49"> <h3>Build<a class="headerlink" href="#id49" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li>“make touch” will now touch generated files that are checked into Mercurial, after a “hg update” which failed to bring the timestamps into the right order.</li> </ul> </div> <div class="section" id="id50"> <h3>Tests<a class="headerlink" href="#id50" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14026">Issue #14026</a>: In test_cmd_line_script, check that sys.argv is populated correctly for the various invocation approaches (Patch by Jason Yeo)</li> <li><a class="reference external" href="http://bugs.python.org/14032">Issue #14032</a>: Fix incorrect variable name in test_cmd_line_script debugging message (Patch by Jason Yeo)</li> <li><a class="reference external" href="http://bugs.python.org/14589">Issue #14589</a>: Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.</li> <li><a class="reference external" href="http://bugs.python.org/14355">Issue #14355</a>: Regrtest now supports the standard unittest test loading, and will use it if a test file contains no <tt class="xref py py-obj docutils literal"><span class="pre">test_main</span></tt> method.</li> </ul> </div> <div class="section" id="id51"> <h3>IDLE<a class="headerlink" href="#id51" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/8515">Issue #8515</a>: Set __file__ when run file in IDLE. Initial patch by Bruce Frederiksen.</li> <li><a class="reference external" href="http://bugs.python.org/14496">Issue #14496</a>: Fix wrong name in idlelib/tabbedpages.py. Patch by Popa Claudiu.</li> </ul> </div> <div class="section" id="id52"> <h3>Tools / Demos<a class="headerlink" href="#id52" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/3561">Issue #3561</a>: The Windows installer now has an option, off by default, for placing the Python installation into the system “Path” environment variable.</li> <li><a class="reference external" href="http://bugs.python.org/13165">Issue #13165</a>: stringbench is now available in the Tools/stringbench folder. It used to live in its own SVN project.</li> </ul> </div> <div class="section" id="id53"> <h3>C-API<a class="headerlink" href="#id53" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14098">Issue #14098</a>: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. Patch by Stefan Behnel.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-alpha-2"> <h2>Python 3.3.0 Alpha 2<a class="headerlink" href="#python-3-3-0-alpha-2" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 01-Apr-2012</em></p> <div class="section" id="id54"> <h3>Core and Builtins<a class="headerlink" href="#id54" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/1683368">Issue #1683368</a>: object.__new__ and object.__init__ raise a TypeError if they are passed arguments and their complementary method is not overridden.</li> <li><a class="reference external" href="http://bugs.python.org/14378">Issue #14378</a>: Fix compiling ast.ImportFrom nodes with a “__future__” string as the module name that was not interned.</li> <li><a class="reference external" href="http://bugs.python.org/14331">Issue #14331</a>: Use significantly less stack space when importing modules by allocating path buffers on the heap instead of the stack.</li> <li><a class="reference external" href="http://bugs.python.org/14334">Issue #14334</a>: Prevent in a segfault in type.__getattribute__ when it was not passed strings.</li> <li><a class="reference external" href="http://bugs.python.org/1469629">Issue #1469629</a>: Allow cycles through an object’s __dict__ slot to be collected. (For example if <tt class="docutils literal"><span class="pre">x.__dict__</span> <span class="pre">is</span> <span class="pre">x</span></tt>).</li> <li><a class="reference external" href="http://bugs.python.org/14205">Issue #14205</a>: dict lookup raises a RuntimeError if the dict is modified during a lookup.</li> <li><a class="reference external" href="http://bugs.python.org/14220">Issue #14220</a>: When a generator is delegating to another iterator with the yield from syntax, it needs to have its <tt class="docutils literal"><span class="pre">gi_running</span></tt> flag set to True.</li> <li><a class="reference external" href="http://bugs.python.org/14435">Issue #14435</a>: Remove dedicated block allocator from floatobject.c and rely on the PyObject_Malloc() api like all other objects.</li> <li><a class="reference external" href="http://bugs.python.org/14471">Issue #14471</a>: Fix a possible buffer overrun in the winreg module.</li> <li><a class="reference external" href="http://bugs.python.org/14288">Issue #14288</a>: Allow the serialization of builtin iterators</li> </ul> </div> <div class="section" id="id55"> <h3>Library<a class="headerlink" href="#id55" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14300">Issue #14300</a>: Under Windows, sockets created using socket.dup() now allow overlapped I/O. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/13872">Issue #13872</a>: socket.detach() now marks the socket closed (as mirrored in the socket repr()). Patch by Matt Joiner.</li> <li><a class="reference external" href="http://bugs.python.org/14406">Issue #14406</a>: Fix a race condition when using <tt class="docutils literal"><span class="pre">concurrent.futures.wait(</span> <span class="pre">return_when=ALL_COMPLETED)</span></tt>. Patch by Matt Joiner.</li> <li><a class="reference external" href="http://bugs.python.org/5136">Issue #5136</a>: deprecate old, unused functions from tkinter.</li> <li><a class="reference external" href="http://bugs.python.org/14416">Issue #14416</a>: syslog now defines the LOG_ODELAY and LOG_AUTHPRIV constants if they are defined in <syslog.h>.</li> <li><a class="reference external" href="http://bugs.python.org/14295">Issue #14295</a>: Add unittest.mock</li> <li><a class="reference external" href="http://bugs.python.org/7652">Issue #7652</a>: Add –with-system-libmpdec option to configure for linking the _decimal module against an installed libmpdec.</li> <li><a class="reference external" href="http://bugs.python.org/14380">Issue #14380</a>: MIMEText now defaults to utf-8 when passed non-ASCII unicode with no charset specified.</li> <li><a class="reference external" href="http://bugs.python.org/10340">Issue #10340</a>: asyncore - properly handle EINVAL in dispatcher constructor on OSX; avoid to call handle_connect in case of a disconnected socket which was not meant to connect.</li> <li><a class="reference external" href="http://bugs.python.org/14204">Issue #14204</a>: The ssl module now has support for the Next Protocol Negotiation extension, if available in the underlying OpenSSL library. Patch by Colin Marc.</li> <li><a class="reference external" href="http://bugs.python.org/3035">Issue #3035</a>: Unused functions from tkinter are marked as pending deprecated.</li> <li><a class="reference external" href="http://bugs.python.org/12757">Issue #12757</a>: Fix the skipping of doctests when python is run with -OO so that it works in unittest’s verbose mode as well as non-verbose mode.</li> <li><a class="reference external" href="http://bugs.python.org/7652">Issue #7652</a>: Integrate the decimal floating point libmpdec library to speed up the decimal module. Performance gains of the new C implementation are between 10x and 100x, depending on the application.</li> <li><a class="reference external" href="http://bugs.python.org/14269">Issue #14269</a>: SMTPD now conforms to the RFC and requires a HELO command before MAIL, RCPT, or DATA.</li> <li><a class="reference external" href="http://bugs.python.org/13694">Issue #13694</a>: asynchronous connect in asyncore.dispatcher does not set addr attribute.</li> <li><a class="reference external" href="http://bugs.python.org/14344">Issue #14344</a>: fixed the repr of email.policy objects.</li> <li><a class="reference external" href="http://bugs.python.org/11686">Issue #11686</a>: Added missing entries to email package __all__ lists (mostly the new Bytes classes).</li> <li><a class="reference external" href="http://bugs.python.org/14335">Issue #14335</a>: multiprocessing’s custom Pickler subclass now inherits from the C-accelerated implementation. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/10484">Issue #10484</a>: Fix the CGIHTTPServer’s PATH_INFO handling problem.</li> <li><a class="reference external" href="http://bugs.python.org/11199">Issue #11199</a>: Fix the with urllib which hangs on particular ftp urls.</li> <li>Improve the memory utilization and speed of functools.lru_cache.</li> <li><a class="reference external" href="http://bugs.python.org/14222">Issue #14222</a>: Use the new time.steady() function instead of time.time() for timeout in queue and threading modules to not be affected of system time update.</li> <li><a class="reference external" href="http://bugs.python.org/13248">Issue #13248</a>: Remove lib2to3.pytree.Base.get_prefix/set_prefix.</li> <li><a class="reference external" href="http://bugs.python.org/14234">Issue #14234</a>: CVE-2012-0876: Randomize hashes of xml attributes in the hash table internal to the pyexpat module’s copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project.</li> <li><a class="reference external" href="http://bugs.python.org/12818">Issue #12818</a>: format address no longer needlessly escapes ()s in names when the name ends up being quoted.</li> <li><a class="reference external" href="http://bugs.python.org/14062">Issue #14062</a>: BytesGenerator now correctly folds Header objects, including using linesep when folding.</li> <li><a class="reference external" href="http://bugs.python.org/13839">Issue #13839</a>: When invoked on the command-line, the pstats module now accepts several filenames of profile stat files and merges them all. Patch by Matt Joiner.</li> <li><a class="reference external" href="http://bugs.python.org/14291">Issue #14291</a>: Email now defaults to utf-8 for non-ASCII unicode headers instead of raising an error. This fixes a regression relative to 2.7.</li> <li><a class="reference external" href="http://bugs.python.org/989712">Issue #989712</a>: Support using Tk without a mainloop.</li> <li><a class="reference external" href="http://bugs.python.org/3835">Issue #3835</a>: Refuse to use unthreaded Tcl in threaded Python.</li> <li><a class="reference external" href="http://bugs.python.org/2843">Issue #2843</a>: Add new Tk API to Tkinter.</li> <li><a class="reference external" href="http://bugs.python.org/14184">Issue #14184</a>: Increase the default stack size for secondary threads on Mac OS X to avoid interpreter crashes when using threads on 10.7.</li> <li><a class="reference external" href="http://bugs.python.org/14180">Issue #14180</a>: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed.</li> <li><a class="reference external" href="http://bugs.python.org/14180">Issue #14180</a>: time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t.</li> <li><a class="reference external" href="http://bugs.python.org/14180">Issue #14180</a>: datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero.</li> <li><a class="reference external" href="http://bugs.python.org/10543">Issue #10543</a>: Fix unittest test discovery with Jython bytecode files.</li> <li><a class="reference external" href="http://bugs.python.org/1178863">Issue #1178863</a>: Separate initialisation from setting when initializing Tkinter.Variables; harmonize exceptions to ValueError; only delete variables that have not been deleted; assert that variable names are strings.</li> <li><a class="reference external" href="http://bugs.python.org/14104">Issue #14104</a>: Implement time.monotonic() on Mac OS X, patch written by Nicholas Riley.</li> <li><a class="reference external" href="http://bugs.python.org/13394">Issue #13394</a>: the aifc module now uses warnings.warn() to signal warnings.</li> <li><a class="reference external" href="http://bugs.python.org/14252">Issue #14252</a>: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.</li> <li><a class="reference external" href="http://bugs.python.org/14223">Issue #14223</a>: curses.addch() is no more limited to the range 0-255 when the Python curses is not linked to libncursesw. It was a regression introduced in Python 3.3a1.</li> <li><a class="reference external" href="http://bugs.python.org/14168">Issue #14168</a>: Check for presence of Element._attrs in minidom before accessing it.</li> <li><a class="reference external" href="http://bugs.python.org/12328">Issue #12328</a>: Fix multiprocessing’s use of overlapped I/O on Windows. Also, add a multiprocessing.connection.wait(rlist, timeout=None) function for polling multiple objects at once. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/14007">Issue #14007</a>: Accept incomplete TreeBuilder objects (missing start, end, data or close method) for the Python implementation as well. Drop the no-op TreeBuilder().xml() method from the C implementation.</li> <li><a class="reference external" href="http://bugs.python.org/14210">Issue #14210</a>: pdb now has tab-completion not only for command names, but also for their arguments, wherever possible.</li> <li><a class="reference external" href="http://bugs.python.org/14310">Issue #14310</a>: Sockets can now be with other processes on Windows using the api socket.socket.share() and socket.fromshare().</li> <li><a class="reference external" href="http://bugs.python.org/10576">Issue #10576</a>: The gc module now has a ‘callbacks’ member that will get called when garbage collection takes place.</li> </ul> </div> <div class="section" id="id56"> <h3>Build<a class="headerlink" href="#id56" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14557">Issue #14557</a>: Fix extensions build on HP-UX. Patch by Adi Roiban.</li> <li><a class="reference external" href="http://bugs.python.org/14387">Issue #14387</a>: Do not include accu.h from Python.h.</li> <li><a class="reference external" href="http://bugs.python.org/14359">Issue #14359</a>: Only use O_CLOEXEC in _posixmodule.c if it is defined. Based on patch from Hervé Coatanhay.</li> <li><a class="reference external" href="http://bugs.python.org/14321">Issue #14321</a>: Do not run pgen during the build if files are up to date.</li> </ul> </div> <div class="section" id="id57"> <h3>Documentation<a class="headerlink" href="#id57" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14034">Issue #14034</a>: added the argparse tutorial.</li> <li><a class="reference external" href="http://bugs.python.org/14324">Issue #14324</a>: Fix configure tests for cross builds.</li> <li><a class="reference external" href="http://bugs.python.org/14327">Issue #14327</a>: Call AC_CANONICAL_HOST in configure.ac and check in config.{guess,sub}. Don’t use uname calls for cross builds.</li> </ul> </div> <div class="section" id="id58"> <h3>Extension Modules<a class="headerlink" href="#id58" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/9041">Issue #9041</a>: An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that caused an incorrect exception to be returned in the case of overflow has been fixed.</li> <li><a class="reference external" href="http://bugs.python.org/14212">Issue #14212</a>: The re module didn’t retain a reference to buffers it was scanning, resulting in segfaults.</li> <li><a class="reference external" href="http://bugs.python.org/14259">Issue #14259</a>: The finditer() method of re objects did not take any keyword arguments, contrary to the documentation.</li> <li><a class="reference external" href="http://bugs.python.org/10142">Issue #10142</a>: Support for SEEK_HOLE/SEEK_DATA (for example, under ZFS).</li> </ul> </div> <div class="section" id="id59"> <h3>Tests<a class="headerlink" href="#id59" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14442">Issue #14442</a>: Add missing errno import in test_smtplib.</li> <li><a class="reference external" href="http://bugs.python.org/8315">Issue #8315</a>: (partial fix) python -m unittest test.test_email now works.</li> </ul> </div> </div> <div class="section" id="python-3-3-0-alpha-1"> <h2>Python 3.3.0 Alpha 1<a class="headerlink" href="#python-3-3-0-alpha-1" title="Permalink to this headline">¶</a></h2> <p><em>Release date: 05-Mar-2012</em></p> <div class="section" id="id60"> <h3>Core and Builtins<a class="headerlink" href="#id60" title="Permalink to this headline">¶</a></h3> <ul> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14172">Issue #14172</a>: Fix reference leak when marshalling a buffer-like object (other than a bytes object).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13521">Issue #13521</a>: dict.setdefault() now does only one lookup for the given key, making it “atomic” for many purposes. Patch by Filip Gruszczyński.</p> </li> <li><p class="first">PEP 409, <a class="reference external" href="http://bugs.python.org/6210">Issue #6210</a>: “raise X from None” is now supported as a means of suppressing the display of the chained exception context. The chained context still remains available as the __context__ attribute.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10181">Issue #10181</a>: New memoryview implementation fixes multiple ownership and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner.</p> <p>Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12834">Issue #12834</a>: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/5231">Issue #5231</a>: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14084">Issue #14084</a>: Fix a file descriptor leak when importing a module with a bad encoding.</p> </li> <li><p class="first">Upgrade Unicode data to Unicode 6.1.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14040">Issue #14040</a>: Remove rarely used file name suffixes for C extensions (under POSIX mainly).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14051">Issue #14051</a>: Allow arbitrary attributes to be set of classmethod and staticmethod.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13703">Issue #13703</a>: oCERT-2011-003: Randomize hashes of str and bytes to protect against denial of service attacks due to hash collisions within the dict and set types. Patch by David Malcolm, based on work by Victor Stinner.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13020">Issue #13020</a>: Fix a reference leak when allocating a structsequence object fails. Patch by Suman Saha.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13908">Issue #13908</a>: Ready types returned from PyType_FromSpec.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11235">Issue #11235</a>: Fix OverflowError when trying to import a source file whose modification time doesn’t fit in a 32-bit timestamp.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12705">Issue #12705</a>: A SyntaxError exception is now raised when attempting to compile multiple statements as a single interactive statement.</p> </li> <li><p class="first">Fix the builtin module initialization code to store the init function for future reinitialization.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/8052">Issue #8052</a>: The posix subprocess module would take a long time closing all possible file descriptors in the child process rather than just open file descriptors. It now closes only the open fds if possible for the default close_fds=True behavior.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13629">Issue #13629</a>: Renumber the tokens in token.h so that they match the indexes into _PyParser_TokenNames.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13752">Issue #13752</a>: Add a casefold() method to str.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13761">Issue #13761</a>: Add a “flush” keyword argument to the print() function, used to ensure flushing the output stream.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13645">Issue #13645</a>: pyc files now contain the size of the corresponding source code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.</p> </li> <li><p class="first">PEP 380, <a class="reference external" href="http://bugs.python.org/11682">Issue #11682</a>: Add “yield from <x>” to support easy delegation to subgenerators (initial patch by Greg Ewing, integration into 3.3 by Renaud Blanch, Ryan Kelly, Zbigniew Jędrzejewski-Szmek and Nick Coghlan)</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13748">Issue #13748</a>: Raw bytes literals can now be written with the <tt class="docutils literal"><span class="pre">rb</span></tt> prefix as well as <tt class="docutils literal"><span class="pre">br</span></tt>.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12736">Issue #12736</a>: Use full unicode case mappings for upper, lower, and title case.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12760">Issue #12760</a>: Add a create mode to open(). Patch by David Townshend.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13738">Issue #13738</a>: Simplify implementation of bytes.lower() and bytes.upper().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13577">Issue #13577</a>: Built-in methods and functions now have a __qualname__. Patch by sbt.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/6695">Issue #6695</a>: Full garbage collection runs now clear the freelist of set objects. Initial patch by Matthias Troffaes.</p> </li> <li><p class="first">Fix OSError.__init__ and OSError.__new__ so that each of them can be overriden and take additional arguments (followup to <a class="reference external" href="http://bugs.python.org/12555">issue #12555</a>).</p> </li> <li><p class="first">Fix the fix for <a class="reference external" href="http://bugs.python.org/12149">issue #12149</a>: it was incorrect, although it had the side effect of appearing to resolve the issue. Thanks to Mark Shannon for noticing.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13505">Issue #13505</a>: Pickle bytes objects in a way that is compatible with Python 2 when using protocols <= 2.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11147">Issue #11147</a>: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER. (Fix given by Campbell Barton).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13503">Issue #13503</a>: Use a more efficient reduction format for bytearrays with pickle protocol >= 3. The old reduction format is kept with older protocols in order to allow unpickling under Python 2. Patch by Irmen de Jong.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/7111">Issue #7111</a>: Python can now be run without a stdin, stdout or stderr stream. It was already the case with Python 2. However, the corresponding sys module entries are now set to None (instead of an unusable file object).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11849">Issue #11849</a>: Ensure that free()d memory arenas are really released on POSIX systems supporting anonymous memory mappings. Patch by Charles-François Natali.</p> </li> <li><p class="first">PEP 3155 / <a class="reference external" href="http://bugs.python.org/13448">issue #13448</a>: Qualified name for classes and functions.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13436">Issue #13436</a>: Fix a bogus error message when an AST object was passed an invalid integer value.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13411">Issue #13411</a>: memoryview objects are now hashable when the underlying object is hashable.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13338">Issue #13338</a>: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER to allow compiling extension modules with -Wswitch-enum on gcc. Initial patch by Floris Bruynooghe.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10227">Issue #10227</a>: Add an allocation cache for a single slice object. Patch by Stefan Behnel.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13393">Issue #13393</a>: BufferedReader.read1() now asks the full requested size to the raw stream instead of limiting itself to the buffer size.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13392">Issue #13392</a>: Writing a pyc file should now be atomic under Windows as well.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13333">Issue #13333</a>: The UTF-7 decoder now accepts lone surrogates (the encoder already accepts them).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13389">Issue #13389</a>: Full garbage collection passes now clear the freelists for list and dict objects. They already cleared other freelists in the interpreter.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13327">Issue #13327</a>: Remove the need for an explicit None as the second argument to os.utime, os.lutimes, os.futimes, os.futimens, os.futimesat, in order to update to the current time. Also added keyword argument handling to os.utimensat in order to remove the need for explicit None.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13350">Issue #13350</a>: Simplify some C code by replacing most usages of PyUnicode_Format by PyUnicode_FromFormat.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13342">Issue #13342</a>: input() used to ignore sys.stdin’s and sys.stdout’s unicode error handler in interactive mode (when calling into PyOS_Readline()).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9896">Issue #9896</a>: Add start, stop, and step attributes to range objects.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13343">Issue #13343</a>: Fix a SystemError when a lambda expression uses a global variable in the default value of a keyword-only argument: <tt class="docutils literal"><span class="pre">lambda</span> <span class="pre">*,</span> <span class="pre">arg=GLOBAL_NAME:</span> <span class="pre">None</span></tt></p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12797">Issue #12797</a>: Added custom opener parameter to builtin open() and FileIO.open().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10519">Issue #10519</a>: Avoid unnecessary recursive function calls in setobject.c.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10363">Issue #10363</a>: Deallocate global locks in Py_Finalize().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13018">Issue #13018</a>: Fix reference leaks in error paths in dictobject.c. Patch by Suman Saha.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13201">Issue #13201</a>: Define ‘==’ and ‘!=’ to compare range objects based on the sequence of values they define (instead of comparing based on object identity).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/1294232">Issue #1294232</a>: In a few cases involving metaclass inheritance, the interpreter would sometimes invoke the wrong metaclass when building a new class object. These cases now behave correctly. Patch by Daniel Urban.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12753">Issue #12753</a>: Add support for Unicode name aliases and named sequences. Both <tt class="docutils literal"><span class="pre">unicodedata.lookup()</span></tt> and ‘N{...}’ now resolve aliases, and <tt class="docutils literal"><span class="pre">unicodedata.lookup()</span></tt> resolves named sequences too.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12170">Issue #12170</a>: The count(), find(), rfind(), index() and rindex() methods of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12604">Issue #12604</a>: VTRACE macro expanded to no-op in _sre.c to avoid compiler warnings. Patch by Josh Triplett and Petri Lehtinen.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12281">Issue #12281</a>: Rewrite the MBCS codec to handle correctly replace and ignore error handlers on all Windows versions. The MBCS codec is now supporting all error handlers, instead of only replace to encode and ignore to decode.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13188">Issue #13188</a>: When called without an explicit traceback argument, generator.throw() now gets the traceback from the passed exception’s <tt class="docutils literal"><span class="pre">__traceback__</span></tt> attribute. Patch by Petri Lehtinen.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13146">Issue #13146</a>: Writing a pyc file is now atomic under POSIX.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/7833">Issue #7833</a>: Extension modules built using distutils on Windows will no longer include a “manifest” to prevent them failing at import time in some embedded situations.</p> </li> <li><p class="first">PEP 3151 / <a class="reference external" href="http://bugs.python.org/12555">issue #12555</a>: reworking the OS and IO exception hierarchy.</p> </li> <li><p class="first">Add internal API for static strings (_Py_identifier et al.).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13063">Issue #13063</a>: the Windows error ERROR_NO_DATA (numbered 232 and described as “The pipe is being closed”) is now mapped to POSIX errno EPIPE (previously EINVAL).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12911">Issue #12911</a>: Fix memory consumption when calculating the repr() of huge tuples or lists.</p> </li> <li><p class="first">PEP 393: flexible string representation. Thanks to Torsten Becker for the initial implementation, and Victor Stinner for various bug fixes.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/14081">Issue #14081</a>: The ‘sep’ and ‘maxsplit’ parameter to str.split, bytes.split, and bytearray.split may now be passed as keyword arguments.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13012">Issue #13012</a>: The ‘keepends’ parameter to str.splitlines may now be passed as a keyword argument: “my_string.splitlines(keepends=True)”. The same change also applies to bytes.splitlines and bytearray.splitlines.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/7732">Issue #7732</a>: Don’t open a directory as a file anymore while importing a module. Ignore the direcotry if its name matchs the module name (e.g. “__init__.py”) and raise a ImportError instead.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13021">Issue #13021</a>: Missing decref on an error path. Thanks to Suman Saha for finding the bug and providing a patch.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12973">Issue #12973</a>: Fix overflow checks that relied on undefined behaviour in list_repeat (listobject.c) and islice_next (itertoolsmodule.c). These bugs caused test failures with recent versions of Clang.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12904">Issue #12904</a>: os.utime, os.futimes, os.lutimes, and os.futimesat now write atime and mtime with nanosecond precision on modern POSIX platforms.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12802">Issue #12802</a>: the Windows error ERROR_DIRECTORY (numbered 267) is now mapped to POSIX errno ENOTDIR (previously EINVAL).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9200">Issue #9200</a>: The str.is* methods now work with strings that contain non-BMP characters even in narrow Unicode builds.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12791">Issue #12791</a>: Break reference cycles early when a generator exits with an exception.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12773">Issue #12773</a>: Make __doc__ mutable on user-defined classes.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12766">Issue #12766</a>: Raise a ValueError when creating a class with a class variable that conflicts with a name in __slots__.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12266">Issue #12266</a>: Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12732">Issue #12732</a>: In narrow unicode builds, allow Unicode identifiers which fall outside the BMP.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12575">Issue #12575</a>: Validate user-generated AST before it is compiled.</p> </li> <li><p class="first">Make type(None), type(Ellipsis), and type(NotImplemented) callable. They return the respective singleton instances.</p> </li> <li><p class="first">Forbid summing bytes with sum().</p> </li> <li><p class="first">Verify the types of AST strings and identifiers provided by the user before compiling them.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12647">Issue #12647</a>: The None object now has a __bool__() method that returns False. Formerly, bool(None) returned False only because of special case logic in PyObject_IsTrue().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12579">Issue #12579</a>: str.format_map() now raises a ValueError if used on a format string that contains positional fields. Initial patch by Julian Berman.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10271">Issue #10271</a>: Allow warnings.showwarning() be any callable.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11627">Issue #11627</a>: Fix segfault when __new__ on a exception returns a non-exception class.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12149">Issue #12149</a>: Update the method cache after a type’s dictionary gets cleared by the garbage collector. This fixes a segfault when an instance and its type get caught in a reference cycle, and the instance’s deallocator calls one of the methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by Davide Rizzo.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9611">Issue #9611</a>, #9015: FileIO.read() clamps the length to INT_MAX on Windows.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9642">Issue #9642</a>: Uniformize the tests on the availability of the mbcs codec, add a new HAVE_MBCS define.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9642">Issue #9642</a>: Fix filesystem encoding initialization: use the ANSI code page on Windows if the mbcs codec is not available, and fail with a fatal error if we cannot get the locale encoding (if nl_langinfo(CODESET) is not available) instead of using UTF-8.</p> </li> <li><p class="first">When a generator yields, do not retain the caller’s exception state on the generator.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12475">Issue #12475</a>: Prevent generators from leaking their exception state into the caller’s frame as they return for the last time.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12291">Issue #12291</a>: You can now load multiple marshalled objects from a stream, with other data interleaved between marshalled objects.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12356">Issue #12356</a>: When required positional or keyword-only arguments are not given, produce a informative error message which includes the name(s) of the missing arguments.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12370">Issue #12370</a>: Fix super with no arguments when __class__ is overriden in the class body.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12084">Issue #12084</a>: os.stat on Windows now works properly with relative symbolic links when called from any directory.</p> </li> <li><p class="first">Loosen type restrictions on the __dir__ method. __dir__ can now return any sequence, which will be converted to a list and sorted by dir().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12265">Issue #12265</a>: Make error messages produced by passing an invalid set of arguments to a function more informative.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12225">Issue #12225</a>: Still allow Python to build if Python is not in its hg repo or mercurial is not installed.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/1195">Issue #1195</a>: my_fgets() now always clears errors before calling fgets(). Fix the following case: sys.stdin.read() stopped with CTRL+d (end of file), raw_input() interrupted by CTRL+c.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12216">Issue #12216</a>: Allow unexpected EOF errors to happen on any line of the file.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12199">Issue #12199</a>: The TryExcept and TryFinally and AST nodes have been unified into a Try node.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9670">Issue #9670</a>: Increase the default stack size for secondary threads on Mac OS X and FreeBSD to reduce the chances of a crash instead of a “maximum recursion depth” RuntimeError exception. (patch by Ronald Oussoren)</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12106">Issue #12106</a>: The use of the multiple-with shorthand syntax is now reflected in the AST.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12190">Issue #12190</a>: Try to use the same filename object when compiling unmarshalling a code objects in the same file.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12166">Issue #12166</a>: Move implementations of dir() specialized for various types into the __dir__() methods of those types.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/5715">Issue #5715</a>: In socketserver, close the server socket in the child process.</p> </li> <li><p class="first">Correct lookup of __dir__ on objects. Among other things, this causes errors besides AttributeError found on lookup to be propagated.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12060">Issue #12060</a>: Use sig_atomic_t type and volatile keyword in the signal module. Patch written by Charles-François Natali.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/1746656">Issue #1746656</a>: Added the if_nameindex, if_indextoname, if_nametoindex methods to the socket module.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12044">Issue #12044</a>: Fixed subprocess.Popen when used as a context manager to wait for the process to end when exiting the context to avoid unintentionally leaving zombie processes around.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/1195">Issue #1195</a>: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear the end-of-file indicator after CTRL+d.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/1856">Issue #1856</a>: Avoid crashes and lockups when daemon threads run while the interpreter is shutting down; instead, these threads are now killed when they try to take the GIL.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9756">Issue #9756</a>: When calling a method descriptor or a slot wrapper descriptor, the check of the object type doesn’t read the __class__ attribute anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy of the str type). Patch written by Andreas Stührk.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10517">Issue #10517</a>: After fork(), reinitialize the TLS used by the PyGILState_* APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10914">Issue #10914</a>: Initialize correctly the filesystem codec when creating a new subinterpreter to fix a bootstrap issue with codecs implemented in Python, as the ISO-8859-15 codec.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11918">Issue #11918</a>: OS/2 and VMS are no more supported because of the lack of maintainer.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/6780">Issue #6780</a>: fix starts/endswith error message to mention that tuples are accepted too.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/5057">Issue #5057</a>: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. “U00012345”[0]).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11845">Issue #11845</a>: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/5673">Issue #5673</a>: Added a <tt class="xref py py-obj docutils literal"><span class="pre">timeout</span></tt> keyword argument to subprocess.Popen.wait, subprocess.Popen.communicated, subprocess.call, subprocess.check_call, and subprocess.check_output. If the blocking operation takes more than <tt class="xref py py-obj docutils literal"><span class="pre">timeout</span></tt> seconds, the <a class="reference internal" href="../library/subprocess.html#subprocess.TimeoutExpired" title="subprocess.TimeoutExpired"><tt class="xref py py-obj docutils literal"><span class="pre">subprocess.TimeoutExpired</span></tt></a> exception is raised.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11650">Issue #11650</a>: PyOS_StdioReadline() retries fgets() if it was interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch written by Charles-Francois Natali.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9319">Issue #9319</a>: Include the filename in “Non-UTF8 code ...” syntax error.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10785">Issue #10785</a>: Store the filename as Unicode in the Python parser.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11619">Issue #11619</a>: _PyImport_LoadDynamicModule() doesn’t encode the path to bytes on Windows.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10998">Issue #10998</a>: Remove mentions of -Q, sys.flags.division_warning and Py_DivisionWarningFlag left over from Python 2.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11244">Issue #11244</a>: Remove an unnecessary peepholer check that was preventing negative zeros from being constant-folded properly.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11395">Issue #11395</a>: io.FileIO().write() clamps the data length to 32,767 bytes on Windows if the file is a TTY to workaround a Windows bug. The Windows console returns an error (12: not enough space error) on writing into stdout if stdout mode is binary and the length is greater than 66,000 bytes (or less, depending on heap usage).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11320">Issue #11320</a>: fix bogus memory management in Modules/getpath.c, leading to a possible crash when calling Py_SetPath().</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11432">Issue #11432</a>: A bug was introduced in subprocess.Popen on posix systems with 3.2.0 where the stdout or stderr file descriptor being the same as the stdin file descriptor would raise an exception. webbrowser.open would fail. fixed.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/9856">Issue #9856</a>: Change object.__format__ with a non-empty format string to be a DeprecationWarning. In 3.2 it was a PendingDeprecationWarning. In 3.4 it will be a TypeError.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11244">Issue #11244</a>: The peephole optimizer is now able to constant-fold arbitrarily complex expressions. This also fixes a 3.2 regression where operations involving negative numbers were not constant-folded.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11450">Issue #11450</a>: Don’t truncate hg version info in Py_GetBuildInfo() when there are many tags (e.g. when using mq). Patch by Nadeem Vawda.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11335">Issue #11335</a>: Fixed a memory leak in list.sort when the key function throws an exception.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/8923">Issue #8923</a>: When a string is encoded to UTF-8 in strict mode, the result is cached into the object. Examples: str.encode(), str.encode(‘utf-8’), PyUnicode_AsUTF8String() and PyUnicode_AsEncodedString(unicode, “utf-8”, NULL).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10829">Issue #10829</a>: Refactor PyUnicode_FromFormat(), use the same function to parse the format string in the 3 steps, fix crashs on invalid format strings.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/13007">Issue #13007</a>: whichdb should recognize gdbm 1.9 magic numbers.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11286">Issue #11286</a>: Raise a ValueError from calling PyMemoryView_FromBuffer with a buffer struct having a NULL data pointer.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11272">Issue #11272</a>: On Windows, input() strips ‘r’ (and not only ‘n’), and sys.stdin uses universal newline (replace ‘rn’ by ‘n’).</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11828">Issue #11828</a>: startswith and endswith now accept None as slice index. Patch by Torsten Becker.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11168">Issue #11168</a>: Remove filename debug variable from PyEval_EvalFrameEx(). It encoded the Unicode filename to UTF-8, but the encoding fails on undecodable filename (on surrogate characters) which raises an unexpected UnicodeEncodeError on recursion limit.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11187">Issue #11187</a>: Remove bootstrap code (use ASCII) of PyUnicode_AsEncodedString(), it was replaced by a better fallback (use the locale encoding) in PyUnicode_EncodeFSDefault().</p> </li> <li><p class="first">Check for NULL result in PyType_FromSpec.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/10516">Issue #10516</a>: New copy() and clear() methods for lists and bytearrays.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/11386">Issue #11386</a>: bytearray.pop() now throws IndexError when the bytearray is empty, instead of OverflowError.</p> </li> <li><p class="first"><a class="reference external" href="http://bugs.python.org/12380">Issue #12380</a>: The rjust, ljust and center methods of bytes and bytearray now accept a bytearray argument.</p> </li> </ul> </div> <div class="section" id="id61"> <h3>Library<a class="headerlink" href="#id61" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14195">Issue #14195</a>: An issue that caused weakref.WeakSet instances to incorrectly return True for a WeakSet instance ‘a’ in both ‘a < a’ and ‘a > a’ has been fixed.</li> <li><a class="reference external" href="http://bugs.python.org/14166">Issue #14166</a>: Pickler objects now have an optional <tt class="docutils literal"><span class="pre">dispatch_table</span></tt> attribute which allows to set custom per-pickler reduction functions. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/14177">Issue #14177</a>: marshal.loads() now raises TypeError when given an unicode string. Patch by Guilherme Gonçalves.</li> <li><a class="reference external" href="http://bugs.python.org/13550">Issue #13550</a>: Remove the debug machinery from the threading module: remove verbose arguments from all threading classes and functions.</li> <li><a class="reference external" href="http://bugs.python.org/14159">Issue #14159</a>: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying. Moreover, the implementation is now O(1) rather than O(n).</li> <li><a class="reference external" href="http://bugs.python.org/11841">Issue #11841</a>: Fix comparison bug with ‘rc’ versions in packaging.version. Patch by Filip Gruszczyński.</li> <li><a class="reference external" href="http://bugs.python.org/6884">Issue #6884</a>: Fix long-standing bugs with MANIFEST.in parsing in distutils on Windows. Also fixed in packaging.</li> <li><a class="reference external" href="http://bugs.python.org/8033">Issue #8033</a>: sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures. Initial patch by Philippe Devalkeneer.</li> <li>HTMLParser is now able to handle slashes in the start tag.</li> <li><a class="reference external" href="http://bugs.python.org/13641">Issue #13641</a>: Decoding functions in the base64 module now accept ASCII-only unicode strings. Patch by Catalin Iacob.</li> <li><a class="reference external" href="http://bugs.python.org/14043">Issue #14043</a>: Speed up importlib’s _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.</li> <li><a class="reference external" href="http://bugs.python.org/14001">Issue #14001</a>: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer upon malformed POST request.</li> <li><a class="reference external" href="http://bugs.python.org/13961">Issue #13961</a>: Move importlib over to using os.replace() for atomic renaming.</li> <li>Do away with ambiguous level values (as suggested by PEP 328) in importlib.__import__() by raising ValueError when level < 0.</li> <li><a class="reference external" href="http://bugs.python.org/2489">Issue #2489</a>: pty.spawn could consume 100% cpu when it encountered an EOF.</li> <li><a class="reference external" href="http://bugs.python.org/13014">Issue #13014</a>: Fix a possible reference leak in SSLSocket.getpeercert().</li> <li><a class="reference external" href="http://bugs.python.org/13777">Issue #13777</a>: Add PF_SYSTEM sockets on OS X. Patch by Michael Goderbauer.</li> <li><a class="reference external" href="http://bugs.python.org/13015">Issue #13015</a>: Fix a possible reference leak in defaultdict.__repr__. Patch by Suman Saha.</li> <li><a class="reference external" href="http://bugs.python.org/1326113">Issue #1326113</a>: distutils’ and packaging’s build_ext commands option now correctly parses multiple values (separated by whitespace or commas) given to their –libraries option.</li> <li><a class="reference external" href="http://bugs.python.org/10287">Issue #10287</a>: nntplib now queries the server’s CAPABILITIES first before sending MODE READER, and only sends it if not already in READER mode. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/13993">Issue #13993</a>: HTMLParser is now able to handle broken end tags when strict=False.</li> <li><a class="reference external" href="http://bugs.python.org/13930">Issue #13930</a>: lib2to3 now supports writing converted output files to another directory tree as well as copying unchanged files and altering the file suffix.</li> <li><a class="reference external" href="http://bugs.python.org/9750">Issue #9750</a>: Fix sqlite3.Connection.iterdump on tables and fields with a name that is a keyword or contains quotes. Patch by Marko Kohtala.</li> <li><a class="reference external" href="http://bugs.python.org/10287">Issue #10287</a>: nntplib now queries the server’s CAPABILITIES again after authenticating (since the result may change, according to RFC 4643). Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/13590">Issue #13590</a>: On OS X 10.7 and 10.6 with Xcode 4.2, building Distutils-based packages with C extension modules may fail because Apple has removed gcc-4.2, the version used to build python.org 64-bit/32-bit Pythons. If the user does not explicitly override the default C compiler by setting the CC environment variable, Distutils will now attempt to compile extension modules with clang if gcc-4.2 is required but not found. Also as a convenience, if the user does explicitly set CC, substitute its value as the default compiler in the Distutils LDSHARED configuration variable for OS X. (Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u SDK, neither of which are available in Xcode 4. This change does not attempt to override settings to support their use with Xcode 4.)</li> <li><a class="reference external" href="http://bugs.python.org/13960">Issue #13960</a>: HTMLParser is now able to handle broken comments when strict=False.</li> <li>When ‘’ is a path (e.g. in sys.path), make sure __file__ uses the current working directory instead of ‘’ in importlib.</li> <li><a class="reference external" href="http://bugs.python.org/13609">Issue #13609</a>: Add two functions to query the terminal size: os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek.</li> <li><a class="reference external" href="http://bugs.python.org/13845">Issue #13845</a>: On Windows, time.time() now uses GetSystemTimeAsFileTime() instead of ftime() to have a resolution of 100 ns instead of 1 ms (the clock accuracy is between 0.5 ms and 15 ms).</li> <li><a class="reference external" href="http://bugs.python.org/13846">Issue #13846</a>: Add time.monotonic(), monotonic clock.</li> <li><a class="reference external" href="http://bugs.python.org/8184">Issue #8184</a>: multiprocessing: On Windows, don’t set SO_REUSEADDR on Connection sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two listeners can’t bind to the same socket/pipe (or any existing socket/pipe).</li> <li><a class="reference external" href="http://bugs.python.org/10811">Issue #10811</a>: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.</li> <li><a class="reference external" href="http://bugs.python.org/13734">Issue #13734</a>: Add os.fwalk(), a directory walking function yielding file descriptors.</li> <li><a class="reference external" href="http://bugs.python.org/2945">Issue #2945</a>: Make the distutils upload command aware of bdist_rpm products.</li> <li><a class="reference external" href="http://bugs.python.org/13712">Issue #13712</a>: pysetup create should not convert package_data to extra_files.</li> <li><a class="reference external" href="http://bugs.python.org/11805">Issue #11805</a>: package_data in setup.cfg should allow more than one value.</li> <li><a class="reference external" href="http://bugs.python.org/13676">Issue #13676</a>: Handle strings with embedded zeros correctly in sqlite3.</li> <li><a class="reference external" href="http://bugs.python.org/8828">Issue #8828</a>: Add new function os.replace(), for cross-platform renaming with overwriting.</li> <li><a class="reference external" href="http://bugs.python.org/13848">Issue #13848</a>: open() and the FileIO constructor now check for NUL characters in the file name. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/13806">Issue #13806</a>: The size check in audioop decompression functions was too strict and could reject valid compressed data. Patch by Oleg Plakhotnyuk.</li> <li><a class="reference external" href="http://bugs.python.org/13812">Issue #13812</a>: When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback.</li> <li><a class="reference external" href="http://bugs.python.org/13885">Issue #13885</a>: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.</li> <li><a class="reference external" href="http://bugs.python.org/13847">Issue #13847</a>: time.localtime() and time.gmtime() now raise an OSError instead of ValueError on failure. time.ctime() and time.asctime() now raises an OSError if localtime() failed. time.clock() now raises a RuntimeError if the processor time used is not available or its value cannot be represented</li> <li><a class="reference external" href="http://bugs.python.org/13772">Issue #13772</a>: In os.symlink() under Windows, do not try to guess the link target’s type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions).</li> <li><a class="reference external" href="http://bugs.python.org/6631">Issue #6631</a>: Disallow relative file paths in urllib urlopen methods.</li> <li><a class="reference external" href="http://bugs.python.org/13722">Issue #13722</a>: Avoid silencing ImportErrors when initializing the codecs registry.</li> <li><a class="reference external" href="http://bugs.python.org/13781">Issue #13781</a>: Fix GzipFile bug that caused an exception to be raised when opening for writing using a fileobj returned by os.fdopen().</li> <li><a class="reference external" href="http://bugs.python.org/13803">Issue #13803</a>: Under Solaris, distutils doesn’t include bitness in the directory name.</li> <li><a class="reference external" href="http://bugs.python.org/10278">Issue #10278</a>: Add time.wallclock() function, monotonic clock.</li> <li><a class="reference external" href="http://bugs.python.org/13809">Issue #13809</a>: Fix regression where bz2 module wouldn’t work when threads are disabled. Original patch by Amaury Forgeot d’Arc.</li> <li><a class="reference external" href="http://bugs.python.org/13589">Issue #13589</a>: Fix some serialization primitives in the aifc module. Patch by Oleg Plakhotnyuk.</li> <li><a class="reference external" href="http://bugs.python.org/13642">Issue #13642</a>: Unquote before b64encoding <tt class="docutils literal"><span class="pre">user:password</span></tt> during Basic Authentication. Patch contributed by Joonas Kuorilehto.</li> <li><a class="reference external" href="http://bugs.python.org/12364">Issue #12364</a>: Fix a hang in concurrent.futures.ProcessPoolExecutor. The hang would occur when retrieving the result of a scheduled future after the executor had been shut down.</li> <li><a class="reference external" href="http://bugs.python.org/13502">Issue #13502</a>: threading: Fix a race condition in Event.wait() that made it return False when the event was set and cleared right after.</li> <li><a class="reference external" href="http://bugs.python.org/9993">Issue #9993</a>: When the source and destination are on different filesystems, and the source is a symlink, shutil.move() now recreates a symlink on the destination instead of copying the file contents. Patch by Jonathan Niehof and Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/12926">Issue #12926</a>: Fix a bug in tarfile’s link extraction.</li> <li><a class="reference external" href="http://bugs.python.org/13696">Issue #13696</a>: Fix the 302 Relative URL Redirection problem.</li> <li><a class="reference external" href="http://bugs.python.org/13636">Issue #13636</a>: Weak ciphers are now disabled by default in the ssl module (except when SSLv2 is explicitly asked for).</li> <li><a class="reference external" href="http://bugs.python.org/12715">Issue #12715</a>: Add an optional symlinks argument to shutil functions (copyfile, copymode, copystat, copy, copy2). When that parameter is true, symlinks aren’t dereferenced and the operation instead acts on the symlink itself (or creates one, if relevant). Patch by Hynek Schlawack.</li> <li>Add a flags parameter to select.epoll.</li> <li><a class="reference external" href="http://bugs.python.org/13626">Issue #13626</a>: Add support for SSL Diffie-Hellman key exchange, through the SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.</li> <li><a class="reference external" href="http://bugs.python.org/11006">Issue #11006</a>: Don’t issue low level warning in subprocess when pipe2() fails.</li> <li><a class="reference external" href="http://bugs.python.org/13620">Issue #13620</a>: Support for Chrome browser in webbrowser. Patch contributed by Arnaud Calmettes.</li> <li><a class="reference external" href="http://bugs.python.org/11829">Issue #11829</a>: Fix code execution holes in inspect.getattr_static for metaclasses with metaclasses. Patch by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/12708">Issue #12708</a>: Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool. Patch by Hynek Schlawack.</li> <li><a class="reference external" href="http://bugs.python.org/1785">Issue #1785</a>: Fix inspect and pydoc with misbehaving descriptors.</li> <li><a class="reference external" href="http://bugs.python.org/13637">Issue #13637</a>: “a2b” functions in the binascii module now accept ASCII-only unicode strings.</li> <li><a class="reference external" href="http://bugs.python.org/13634">Issue #13634</a>: Add support for querying and disabling SSL compression.</li> <li><a class="reference external" href="http://bugs.python.org/13627">Issue #13627</a>: Add support for SSL Elliptic Curve-based Diffie-Hellman key exchange, through the SSLContext.set_ecdh_curve() method and the ssl.OP_SINGLE_ECDH_USE option.</li> <li><a class="reference external" href="http://bugs.python.org/13635">Issue #13635</a>: Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers choose the cipher based on their own preferences, rather than on the client’s.</li> <li><a class="reference external" href="http://bugs.python.org/11813">Issue #11813</a>: Fix inspect.getattr_static for modules. Patch by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/7502">Issue #7502</a>: Fix equality comparison for DocTestCase instances. Patch by Cédric Krier.</li> <li><a class="reference external" href="http://bugs.python.org/11870">Issue #11870</a>: threading: Properly reinitialize threads internal locks and condition variables to avoid deadlocks in child processes.</li> <li><a class="reference external" href="http://bugs.python.org/8035">Issue #8035</a>: urllib: Fix a bug where the client could remain stuck after a redirection or an error.</li> <li><a class="reference external" href="http://bugs.python.org/13560">Issue #13560</a>: os.strerror() now uses the current locale encoding instead of UTF-8.</li> <li><a class="reference external" href="http://bugs.python.org/8373">Issue #8373</a>: The filesystem path of AF_UNIX sockets now uses the filesystem encoding and the surrogateescape error handler, rather than UTF-8. Patch by David Watson.</li> <li><a class="reference external" href="http://bugs.python.org/10350">Issue #10350</a>: Read and save errno before calling a function which might overwrite it. Original patch by Hallvard B Furuseth.</li> <li><a class="reference external" href="http://bugs.python.org/11610">Issue #11610</a>: Introduce a more general way to declare abstract properties.</li> <li><a class="reference external" href="http://bugs.python.org/13591">Issue #13591</a>: A bug in importlib has been fixed that caused import_module to load a module twice.</li> <li><a class="reference external" href="http://bugs.python.org/13449">Issue #13449</a> sched.scheduler.run() method has a new “blocking” parameter which when set to False makes run() execute the scheduled events due to expire soonest (if any) and then return. Patch by Giampaolo Rodolà.</li> <li><a class="reference external" href="http://bugs.python.org/8684">Issue #8684</a> sched.scheduler class can be safely used in multi-threaded environments. Patch by Josiah Carlson and Giampaolo Rodolà.</li> <li>Alias resource.error to OSError ala PEP 3151.</li> <li><a class="reference external" href="http://bugs.python.org/5689">Issue #5689</a>: Add support for lzma compression to the tarfile module.</li> <li><a class="reference external" href="http://bugs.python.org/13248">Issue #13248</a>: Turn 3.2’s PendingDeprecationWarning into 3.3’s DeprecationWarning. It covers ‘cgi.escape’, ‘importlib.abc.PyLoader’, ‘importlib.abc.PyPycLoader’, ‘nntplib.NNTP.xgtitle’, ‘nntplib.NNTP.xpath’, and private attributes of ‘smtpd.SMTPChannel’.</li> <li><a class="reference external" href="http://bugs.python.org/5905">Issue #5905</a>, #13560: time.strftime() is now using the current locale encoding, instead of UTF-8, if the wcsftime() function is not available.</li> <li><a class="reference external" href="http://bugs.python.org/13464">Issue #13464</a>: Add a readinto() method to http.client.HTTPResponse. Patch by Jon Kuhn.</li> <li>tarfile.py: Correctly detect bzip2 compressed streams with blocksizes other than 900k.</li> <li><a class="reference external" href="http://bugs.python.org/13439">Issue #13439</a>: Fix many errors in turtle docstrings.</li> <li><a class="reference external" href="http://bugs.python.org/6715">Issue #6715</a>: Add a module ‘lzma’ for compression using the LZMA algorithm. Thanks to Per Øyvind Karlsen for the initial implementation.</li> <li><a class="reference external" href="http://bugs.python.org/13487">Issue #13487</a>: Make inspect.getmodule robust against changes done to sys.modules while it is iterating over it.</li> <li><a class="reference external" href="http://bugs.python.org/12618">Issue #12618</a>: Fix a bug that prevented py_compile from creating byte compiled files in the current directory. Initial patch by Sjoerd de Vries.</li> <li><a class="reference external" href="http://bugs.python.org/13444">Issue #13444</a>: When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.</li> <li><a class="reference external" href="http://bugs.python.org/12567">Issue #12567</a>: The curses module uses Unicode functions for Unicode arguments when it is linked to the ncurses library. It encodes also Unicode strings to the locale encoding instead of UTF-8.</li> <li><a class="reference external" href="http://bugs.python.org/12856">Issue #12856</a>: Ensure child processes do not inherit the parent’s random seed for filename generation in the tempfile module. Patch by Brian Harring.</li> <li><a class="reference external" href="http://bugs.python.org/9957">Issue #9957</a>: SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects. Patch by Ryan Kelly.</li> <li><a class="reference external" href="http://bugs.python.org/13458">Issue #13458</a>: Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName. Patch by Robert Xiao.</li> <li><a class="reference external" href="http://bugs.python.org/13415">Issue #13415</a>: os.unsetenv() doesn’t ignore errors anymore.</li> <li><a class="reference external" href="http://bugs.python.org/13245">Issue #13245</a>: sched.scheduler class constructor’s timefunc and delayfunct parameters are now optional. scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter. Patch contributed by Chris Clark.</li> <li><a class="reference external" href="http://bugs.python.org/12328">Issue #12328</a>: Under Windows, refactor handling of Ctrl-C events and make _multiprocessing.win32.WaitForMultipleObjects interruptible when the wait_flag parameter is false. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/13322">Issue #13322</a>: Fix BufferedWriter.write() to ensure that BlockingIOError is raised when the wrapped raw file is non-blocking and the write would block. Previous code assumed that the raw write() would raise BlockingIOError, but RawIOBase.write() is defined to returned None when the call would block. Patch by sbt.</li> <li><a class="reference external" href="http://bugs.python.org/13358">Issue #13358</a>: HTMLParser now calls handle_data only once for each CDATA.</li> <li><a class="reference external" href="http://bugs.python.org/4147">Issue #4147</a>: minidom’s toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.</li> <li><a class="reference external" href="http://bugs.python.org/13374">Issue #13374</a>: The Windows bytes API has been deprecated in the os module. Use Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any filename.</li> <li><a class="reference external" href="http://bugs.python.org/13297">Issue #13297</a>: Use bytes type to send and receive binary data through XMLRPC.</li> <li><a class="reference external" href="http://bugs.python.org/6397">Issue #6397</a>: Support “/dev/poll” polling objects in select module, under Solaris & derivatives.</li> <li>Issues #1745761, #755670, #13357, #12629, #1200313: HTMLParser now correctly handles non-valid attributes, including adjacent and unquoted attributes.</li> <li><a class="reference external" href="http://bugs.python.org/13193">Issue #13193</a>: Fix distutils.filelist.FileList and packaging.manifest.Manifest under Windows.</li> <li><a class="reference external" href="http://bugs.python.org/13384">Issue #13384</a>: Remove unnecessary __future__ import in Lib/random.py</li> <li><a class="reference external" href="http://bugs.python.org/13149">Issue #13149</a>: Speed up append-only StringIO objects.</li> <li><a class="reference external" href="http://bugs.python.org/13373">Issue #13373</a>: multiprocessing.Queue.get() could sometimes block indefinitely when called with a timeout. Patch by Arnaud Ysmal.</li> <li><a class="reference external" href="http://bugs.python.org/13254">Issue #13254</a>: Fix Maildir initialization so that maildir contents are read correctly.</li> <li><a class="reference external" href="http://bugs.python.org/3067">Issue #3067</a>: locale.setlocale() now raises TypeError if the second argument is an invalid iterable. Its documentation and docstring were also updated. Initial patch by Jyrki Pulliainen.</li> <li><a class="reference external" href="http://bugs.python.org/13140">Issue #13140</a>: Fix the daemon_threads attribute of ThreadingMixIn.</li> <li><a class="reference external" href="http://bugs.python.org/13339">Issue #13339</a>: Fix compile error in posixmodule.c due to missing semicolon. Thanks to Robert Xiao.</li> <li>Byte compilation in packaging is now isolated from the calling Python -B or -O options, instead of being disallowed under -B or buggy under -O.</li> <li><a class="reference external" href="http://bugs.python.org/10570">Issue #10570</a>: curses.putp() and curses.tparm() are now expecting a byte string, instead of a Unicode string.</li> <li><a class="reference external" href="http://bugs.python.org/13295">Issue #13295</a>: http.server now produces valid HTML 4.01 strict.</li> <li><a class="reference external" href="http://bugs.python.org/2892">Issue #2892</a>: preserve iterparse events in case of SyntaxError.</li> <li><a class="reference external" href="http://bugs.python.org/13287">Issue #13287</a>: urllib.request and urllib.error now contains an __all__ attribute to expose only relevant classes and functions. Patch by Florent Xicluna.</li> <li><a class="reference external" href="http://bugs.python.org/670664">Issue #670664</a>: Fix HTMLParser to correctly handle the content of <tt class="docutils literal"><span class="pre"><script>...</script></span></tt> and <tt class="docutils literal"><span class="pre"><style>...</style></span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/10817">Issue #10817</a>: Fix urlretrieve function to raise ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.</li> <li>Fix the xmlrpc.client user agent to return something similar to urllib.request user agent: “Python-xmlrpc/3.3”.</li> <li><a class="reference external" href="http://bugs.python.org/13293">Issue #13293</a>: Better error message when trying to marshal bytes using xmlrpc.client.</li> <li><a class="reference external" href="http://bugs.python.org/13291">Issue #13291</a>: NameError in xmlrpc package.</li> <li><a class="reference external" href="http://bugs.python.org/13258">Issue #13258</a>: Use callable() built-in in the standard library.</li> <li><a class="reference external" href="http://bugs.python.org/13273">Issue #13273</a>: fix a bug that prevented HTMLParser to properly detect some tags when strict=False.</li> <li><a class="reference external" href="http://bugs.python.org/11183">Issue #11183</a>: Add finer-grained exceptions to the ssl module, so that you don’t have to inspect the exception’s attributes in the common case.</li> <li><a class="reference external" href="http://bugs.python.org/13216">Issue #13216</a>: Add cp65001 codec, the Windows UTF-8 (CP_UTF8).</li> <li><a class="reference external" href="http://bugs.python.org/13226">Issue #13226</a>: Add RTLD_xxx constants to the os module. These constants can be used with sys.setdlopenflags().</li> <li><a class="reference external" href="http://bugs.python.org/10278">Issue #10278</a>: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic clock</li> <li><a class="reference external" href="http://bugs.python.org/10332">Issue #10332</a>: multiprocessing: fix a race condition when a Pool is closed before all tasks have completed.</li> <li><a class="reference external" href="http://bugs.python.org/13255">Issue #13255</a>: wrong docstrings in array module.</li> <li><a class="reference external" href="http://bugs.python.org/8540">Issue #8540</a>: Remove deprecated Context._clamp attribute in Decimal module.</li> <li><a class="reference external" href="http://bugs.python.org/13235">Issue #13235</a>: Added DeprecationWarning to logging.warn() method and function.</li> <li><a class="reference external" href="http://bugs.python.org/9168">Issue #9168</a>: now smtpd is able to bind privileged port.</li> <li><a class="reference external" href="http://bugs.python.org/12529">Issue #12529</a>: fix cgi.parse_header issue on strings with double-quotes and semicolons together. Patch by Ben Darnell and Petri Lehtinen.</li> <li><a class="reference external" href="http://bugs.python.org/13227">Issue #13227</a>: functools.lru_cache() now has a option to distinguish calls with different argument types.</li> <li><a class="reference external" href="http://bugs.python.org/6090">Issue #6090</a>: zipfile raises a ValueError when a document with a timestamp earlier than 1980 is provided. Patch contributed by Petri Lehtinen.</li> <li><a class="reference external" href="http://bugs.python.org/13150">Issue #13150</a>: sysconfig no longer parses the Makefile and config.h files when imported, instead doing it at build time. This makes importing sysconfig faster and reduces Python startup time by 20%.</li> <li><a class="reference external" href="http://bugs.python.org/12448">Issue #12448</a>: smtplib now flushes stdout while running <tt class="docutils literal"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">smtplib</span></tt> in order to display the prompt correctly.</li> <li><a class="reference external" href="http://bugs.python.org/12454">Issue #12454</a>: The mailbox module is now using ASCII, instead of the locale encoding, to read and write .mh_sequences files.</li> <li><a class="reference external" href="http://bugs.python.org/13194">Issue #13194</a>: zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.</li> <li><a class="reference external" href="http://bugs.python.org/1673007">Issue #1673007</a>: urllib.request now supports HEAD request via new method argument. Patch contributions by David Stanek, Patrick Westerhoff and Ezio Melotti.</li> <li><a class="reference external" href="http://bugs.python.org/12386">Issue #12386</a>: packaging does not fail anymore when writing the RESOURCES file.</li> <li><a class="reference external" href="http://bugs.python.org/13158">Issue #13158</a>: Fix decoding and encoding of GNU tar specific base-256 number fields in tarfile.</li> <li><a class="reference external" href="http://bugs.python.org/13025">Issue #13025</a>: mimetypes is now reading MIME types using the UTF-8 encoding, instead of the locale encoding.</li> <li><a class="reference external" href="http://bugs.python.org/10653">Issue #10653</a>: On Windows, use strftime() instead of wcsftime() because wcsftime() doesn’t format time zone correctly.</li> <li><a class="reference external" href="http://bugs.python.org/13150">Issue #13150</a>: The tokenize module doesn’t compile large regular expressions at startup anymore.</li> <li><a class="reference external" href="http://bugs.python.org/11171">Issue #11171</a>: Fix distutils.sysconfig.get_makefile_filename when Python was configured with different prefix and exec-prefix.</li> <li><a class="reference external" href="http://bugs.python.org/11254">Issue #11254</a>: Teach distutils and packaging to compile .pyc and .pyo files in PEP 3147-compliant __pycache__ directories.</li> <li><a class="reference external" href="http://bugs.python.org/7367">Issue #7367</a>: Fix pkgutil.walk_paths to skip directories whose contents cannot be read.</li> <li><a class="reference external" href="http://bugs.python.org/3163">Issue #3163</a>: The struct module gets new format characters ‘n’ and ‘N’ supporting C integer types <tt class="docutils literal"><span class="pre">ssize_t</span></tt> and <tt class="docutils literal"><span class="pre">size_t</span></tt>, respectively.</li> <li><a class="reference external" href="http://bugs.python.org/13099">Issue #13099</a>: Fix sqlite3.Cursor.lastrowid under a Turkish locale. Reported and diagnosed by Thomas Kluyver.</li> <li><a class="reference external" href="http://bugs.python.org/13087">Issue #13087</a>: BufferedReader.seek() now always raises UnsupportedOperation if the underlying raw stream is unseekable, even if the seek could be satisfied using the internal buffer. Patch by John O’Connor.</li> <li><a class="reference external" href="http://bugs.python.org/7689">Issue #7689</a>: Allow pickling of dynamically created classes when their metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.</li> <li><a class="reference external" href="http://bugs.python.org/13034">Issue #13034</a>: When decoding some SSL certificates, the subjectAltName extension could be unreported.</li> <li><a class="reference external" href="http://bugs.python.org/12306">Issue #12306</a>: Expose the runtime version of the zlib C library as a constant, ZLIB_RUNTIME_VERSION, in the zlib module. Patch by Torsten Landschoff.</li> <li><a class="reference external" href="http://bugs.python.org/12959">Issue #12959</a>: Add collections.ChainMap to collections.__all__.</li> <li><a class="reference external" href="http://bugs.python.org/8933">Issue #8933</a>: distutils’ PKG-INFO files and packaging’s METADATA files will now correctly report Metadata-Version: 1.1 instead of 1.0 if a Classifier or Download-URL field is present.</li> <li><a class="reference external" href="http://bugs.python.org/12567">Issue #12567</a>: Add curses.unget_wch() function. Push a character so the next get_wch() will return it.</li> <li><a class="reference external" href="http://bugs.python.org/9561">Issue #9561</a>: distutils and packaging now writes egg-info files using UTF-8, instead of the locale encoding.</li> <li><a class="reference external" href="http://bugs.python.org/8286">Issue #8286</a>: The distutils command sdist will print a warning message instead of crashing when an invalid path is given in the manifest template.</li> <li><a class="reference external" href="http://bugs.python.org/12841">Issue #12841</a>: tarfile unnecessarily checked the existence of numerical user and group ids on extraction. If one of them did not exist the respective id of the current user (i.e. root) was used for the file and ownership information was lost.</li> <li><a class="reference external" href="http://bugs.python.org/12888">Issue #12888</a>: Fix a bug in HTMLParser.unescape that prevented it to escape more than 128 entities. Patch by Peter Otten.</li> <li><a class="reference external" href="http://bugs.python.org/12878">Issue #12878</a>: Expose a __dict__ attribute on io.IOBase and its subclasses.</li> <li><a class="reference external" href="http://bugs.python.org/12494">Issue #12494</a>: On error, call(), check_call(), check_output() and getstatusoutput() functions of the subprocess module now kill the process, read its status (to avoid zombis) and close pipes.</li> <li><a class="reference external" href="http://bugs.python.org/12720">Issue #12720</a>: Expose low-level Linux extended file attribute functions in os.</li> <li><a class="reference external" href="http://bugs.python.org/10946">Issue #10946</a>: The distutils commands bdist_dumb, bdist_wininst and bdist_msi now respect a –skip-build option given to bdist. The packaging commands were fixed too.</li> <li><a class="reference external" href="http://bugs.python.org/12847">Issue #12847</a>: Fix a crash with negative PUT and LONG_BINPUT arguments in the C pickle implementation.</li> <li><a class="reference external" href="http://bugs.python.org/11564">Issue #11564</a>: Avoid crashes when trying to pickle huge objects or containers (more than 2**31 items). Instead, in most cases, an OverflowError is raised.</li> <li><a class="reference external" href="http://bugs.python.org/12287">Issue #12287</a>: Fix a stack corruption in ossaudiodev module when the FD is greater than FD_SETSIZE.</li> <li><a class="reference external" href="http://bugs.python.org/12839">Issue #12839</a>: Fix crash in zlib module due to version mismatch. Fix by Richard M. Tew.</li> <li><a class="reference external" href="http://bugs.python.org/9923">Issue #9923</a>: The mailcap module now correctly uses the platform path separator for the MAILCAP environment variable on non-POSIX platforms.</li> <li><a class="reference external" href="http://bugs.python.org/12835">Issue #12835</a>: Follow up to #6560 that unconditionally prevents use of the unencrypted sendmsg/recvmsg APIs on SSL wrapped sockets. Patch by David Watson.</li> <li><a class="reference external" href="http://bugs.python.org/12803">Issue #12803</a>: SSLContext.load_cert_chain() now accepts a password argument to be used if the private key is encrypted. Patch by Adam Simpkins.</li> <li><a class="reference external" href="http://bugs.python.org/11657">Issue #11657</a>: Fix sending file descriptors over 255 over a multiprocessing Pipe.</li> <li><a class="reference external" href="http://bugs.python.org/12811">Issue #12811</a>: tabnanny.check() now promptly closes checked files. Patch by Anthony Briggs.</li> <li><a class="reference external" href="http://bugs.python.org/6560">Issue #6560</a>: The sendmsg/recvmsg API is now exposed by the socket module when provided by the underlying platform, supporting processing of ancillary data in pure Python code. Patch by David Watson and Heiko Wundram.</li> <li><a class="reference external" href="http://bugs.python.org/12326">Issue #12326</a>: On Linux, sys.platform doesn’t contain the major version anymore. It is now always ‘linux’, instead of ‘linux2’ or ‘linux3’ depending on the Linux version used to build Python.</li> <li><a class="reference external" href="http://bugs.python.org/12213">Issue #12213</a>: Fix a buffering bug with interleaved reads and writes that could appear on BufferedRandom streams.</li> <li><a class="reference external" href="http://bugs.python.org/12778">Issue #12778</a>: Reduce memory consumption when JSON-encoding a large container of many small objects.</li> <li><a class="reference external" href="http://bugs.python.org/12650">Issue #12650</a>: Fix a race condition where a subprocess.Popen could leak resources (FD/zombie) when killed at the wrong time.</li> <li><a class="reference external" href="http://bugs.python.org/12744">Issue #12744</a>: Fix inefficient representation of integers between 2**31 and 2**63 on systems with a 64-bit C “long”.</li> <li><a class="reference external" href="http://bugs.python.org/12646">Issue #12646</a>: Add an ‘eof’ attribute to zlib.Decompress, to make it easier to detect truncated input streams.</li> <li><a class="reference external" href="http://bugs.python.org/11513">Issue #11513</a>: Fix exception handling <tt class="docutils literal"><span class="pre">tarfile.TarFile.gzopen()</span></tt> when the file cannot be opened.</li> <li><a class="reference external" href="http://bugs.python.org/12687">Issue #12687</a>: Fix a possible buffering bug when unpickling text mode (protocol 0, mostly) pickles.</li> <li><a class="reference external" href="http://bugs.python.org/10087">Issue #10087</a>: Fix the html output format of the calendar module.</li> <li><a class="reference external" href="http://bugs.python.org/13121">Issue #13121</a>: add support for inplace math operators to collections.Counter.</li> <li>Add support for unary plus and unary minus to collections.Counter.</li> <li><a class="reference external" href="http://bugs.python.org/12683">Issue #12683</a>: urlparse updated to include svn as schemes that uses relative paths. (svn from 1.5 onwards support relative path).</li> <li><a class="reference external" href="http://bugs.python.org/12655">Issue #12655</a>: Expose functions from sched.h in the os module: sched_yield(), sched_setscheduler(), sched_getscheduler(), sched_setparam(), sched_get_min_priority(), sched_get_max_priority(), sched_rr_get_interval(), sched_getaffinity(), sched_setaffinity().</li> <li>Add ThreadError to threading.__all__.</li> <li>Issues #11104, #8688: Fix the behavior of distutils’ sdist command with manually-maintained MANIFEST files.</li> <li><a class="reference external" href="http://bugs.python.org/11281">Issue #11281</a>: smtplib.STMP gets source_address parameter, which adds the ability to bind to specific source address on a machine with multiple interfaces. Patch by Paulo Scardine.</li> <li><a class="reference external" href="http://bugs.python.org/12464">Issue #12464</a>: tempfile.TemporaryDirectory.cleanup() should not follow symlinks: fix it. Patch by Petri Lehtinen.</li> <li><a class="reference external" href="http://bugs.python.org/8887">Issue #8887</a>: “pydoc somebuiltin.somemethod” (or help(‘somebuiltin.somemethod’) in Python code) now finds the doc of the method.</li> <li><a class="reference external" href="http://bugs.python.org/10968">Issue #10968</a>: Remove indirection in threading. The public names (Event, Condition, etc.) used to be factory functions returning instances of hidden classes (_Event, _Condition, etc.), because (if Guido recalls correctly) this code pre-dates the ability to subclass extension types. It is now possible to inherit from these classes, without having to import the private underscored names like multiprocessing did.</li> <li><a class="reference external" href="http://bugs.python.org/9723">Issue #9723</a>: Add shlex.quote functions, to escape filenames and command lines.</li> <li><a class="reference external" href="http://bugs.python.org/12603">Issue #12603</a>: Fix pydoc.synopsis() on files with non-negative st_mtime.</li> <li><a class="reference external" href="http://bugs.python.org/12514">Issue #12514</a>: Use try/finally to assure the timeit module restores garbage collections when it is done.</li> <li><a class="reference external" href="http://bugs.python.org/12607">Issue #12607</a>: In subprocess, fix issue where if stdin, stdout or stderr is given as a low fd, it gets overwritten.</li> <li><a class="reference external" href="http://bugs.python.org/12576">Issue #12576</a>: Fix urlopen behavior on sites which do not send (or obfuscate) a <tt class="docutils literal"><span class="pre">Connection:</span> <span class="pre">close</span></tt> header.</li> <li><a class="reference external" href="http://bugs.python.org/12560">Issue #12560</a>: Build libpython.so on OpenBSD. Patch by Stefan Sperling.</li> <li><a class="reference external" href="http://bugs.python.org/1813">Issue #1813</a>: Fix codec lookup under Turkish locales.</li> <li><a class="reference external" href="http://bugs.python.org/12591">Issue #12591</a>: Improve support of “universal newlines” in the subprocess module: the piped streams can now be properly read from or written to.</li> <li><a class="reference external" href="http://bugs.python.org/12591">Issue #12591</a>: Allow io.TextIOWrapper to work with raw IO objects (without a read1() method), and add a <em>write_through</em> parameter to mandate unbuffered writes.</li> <li><a class="reference external" href="http://bugs.python.org/10883">Issue #10883</a>: Fix socket leaks in urllib.request when using FTP.</li> <li><a class="reference external" href="http://bugs.python.org/12592">Issue #12592</a>: Make Python build on OpenBSD 5 (and future major releases).</li> <li><a class="reference external" href="http://bugs.python.org/12372">Issue #12372</a>: POSIX semaphores are broken on AIX: don’t use them.</li> <li><a class="reference external" href="http://bugs.python.org/12551">Issue #12551</a>: Provide a get_channel_binding() method on SSL sockets so as to get channel binding data for the current SSL session (only the “tls-unique” channel binding is implemented). This allows the implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS. Patch by Jacek Konieczny.</li> <li><a class="reference external" href="http://bugs.python.org/665194">Issue #665194</a>: email.utils now has format_datetime and parsedate_to_datetime functions, allowing for round tripping of RFC2822 format dates.</li> <li><a class="reference external" href="http://bugs.python.org/12571">Issue #12571</a>: Add a plat-linux3 directory mirroring the plat-linux2 directory, so that “import DLFCN” and other similar imports work on Linux 3.0.</li> <li><a class="reference external" href="http://bugs.python.org/7484">Issue #7484</a>: smtplib no longer puts <> around addresses in VRFY and EXPN commands; they aren’t required and in fact postfix doesn’t support that form.</li> <li><a class="reference external" href="http://bugs.python.org/12273">Issue #12273</a>: Remove ast.__version__. AST changes can be accounted for by checking sys.version_info or sys._mercurial.</li> <li>Silence spurious “broken pipe” tracebacks when shutting down a ProcessPoolExecutor.</li> <li>Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor by joining all queues and processes when shutdown() is called.</li> <li><a class="reference external" href="http://bugs.python.org/11603">Issue #11603</a>: Fix a crash when __str__ is rebound as __repr__. Patch by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/11321">Issue #11321</a>: Fix a crash with multiple imports of the _pickle module when embedding Python. Patch by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/6755">Issue #6755</a>: Add get_wch() method to curses.window class. Patch by Iñigo Serna.</li> <li>Add cgi.closelog() function to close the log file.</li> <li><a class="reference external" href="http://bugs.python.org/12502">Issue #12502</a>: asyncore: fix polling loop with AF_UNIX sockets.</li> <li><a class="reference external" href="http://bugs.python.org/4376">Issue #4376</a>: ctypes now supports nested structures in a endian different than the parent structure. Patch by Vlad Riscutia.</li> <li>Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper to a huge value, not TypeError.</li> <li><a class="reference external" href="http://bugs.python.org/12504">Issue #12504</a>: Close file handles in a timely manner in packaging.database. This fixes a bug with the remove (uninstall) feature on Windows.</li> <li>Issues #12169 and #10510: Factor out code used by various packaging commands to make HTTP POST requests, and make sure it uses CRLF.</li> <li><a class="reference external" href="http://bugs.python.org/12016">Issue #12016</a>: Multibyte CJK decoders now resynchronize faster. They only ignore the first byte of an invalid byte sequence. For example, b’xffn’.decode(‘gb2312’, ‘replace’) gives ‘ufffdn’ instead of ‘ufffd’.</li> <li><a class="reference external" href="http://bugs.python.org/12459">Issue #12459</a>: time.sleep() now raises a ValueError if the sleep length is negative, instead of an infinite sleep on Windows or raising an IOError on Linux for example, to have the same behaviour on all platforms.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: pydoc: html_getfile() now uses tokenize.open() to support Python scripts using a encoding different than UTF-8 (read the coding cookie of the script).</li> <li><a class="reference external" href="http://bugs.python.org/12493">Issue #12493</a>: subprocess: Popen.communicate() now also handles EINTR errors if the process has only one pipe.</li> <li><a class="reference external" href="http://bugs.python.org/12467">Issue #12467</a>: warnings: fix a race condition if a warning is emitted at shutdown, if globals()[‘__file__’] is None.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: pydoc: importfile() now opens the Python script in binary mode, instead of text mode using the locale encoding, to avoid encoding issues.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: runpy: run_path() now opens the Python script in binary mode, instead of text mode using the locale encoding, to support other encodings than UTF-8 (scripts using the coding cookie).</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: xml.dom.pulldom: parse() now opens files in binary mode instead of the text mode (using the locale encoding) to avoid encoding issues.</li> <li><a class="reference external" href="http://bugs.python.org/12147">Issue #12147</a>: Adjust the new-in-3.2 smtplib.send_message method for better conformance to the RFCs: correctly handle Sender and Resent- headers.</li> <li><a class="reference external" href="http://bugs.python.org/12352">Issue #12352</a>: Fix a deadlock in multiprocessing.Heap when a block is freed by the garbage collector while the Heap lock is held.</li> <li><a class="reference external" href="http://bugs.python.org/12462">Issue #12462</a>: time.sleep() now immediately calls the (Python) signal handler if it is interrupted by a signal, instead of having to wait until the next instruction.</li> <li><a class="reference external" href="http://bugs.python.org/12442">Issue #12442</a>: new shutil.disk_usage function, providing total, used and free disk space statistics.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: The XInclude default loader of xml.etree now decodes files from UTF-8 instead of the locale encoding if the encoding is not specified. It now also opens XML files for the parser in binary mode instead of the text mode to avoid encoding issues.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: doctest.debug_script() doesn’t create a temporary file anymore to avoid encoding issues.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: pydoc.synopsis() now reads the encoding cookie if available, to read the Python script from the right encoding.</li> <li><a class="reference external" href="http://bugs.python.org/12451">Issue #12451</a>: distutils now opens the setup script in binary mode to read the encoding cookie, instead of opening it in UTF-8.</li> <li><a class="reference external" href="http://bugs.python.org/9516">Issue #9516</a>: On Mac OS X, change Distutils to no longer globally attempt to check or set the MACOSX_DEPLOYMENT_TARGET environment variable for the interpreter process. This could cause failures in non-Distutils subprocesses and was unreliable since tests or user programs could modify the interpreter environment after Distutils set it. Instead, have Distutils set the deployment target only in the environment of each build subprocess. It is still possible to globally override the default by setting MACOSX_DEPLOYMENT_TARGET before launching the interpreter; its value must be greater or equal to the default value, the value with which the interpreter was built. Also, implement the same handling in packaging.</li> <li><a class="reference external" href="http://bugs.python.org/12422">Issue #12422</a>: In the copy module, don’t store objects that are their own copy in the memo dict.</li> <li><a class="reference external" href="http://bugs.python.org/12303">Issue #12303</a>: Add sigwaitinfo() and sigtimedwait() to the signal module.</li> <li><a class="reference external" href="http://bugs.python.org/12404">Issue #12404</a>: Remove C89 incompatible code from mmap module. Patch by Akira Kitada.</li> <li><a class="reference external" href="http://bugs.python.org/1874">Issue #1874</a>: email now detects and reports as a defect the presence of any CTE other than 7bit, 8bit, or binary on a multipart.</li> <li><a class="reference external" href="http://bugs.python.org/12383">Issue #12383</a>: Fix subprocess module with env={}: don’t copy the environment variables, start with an empty environment.</li> <li><a class="reference external" href="http://bugs.python.org/11637">Issue #11637</a>: Fix support for importing packaging setup hooks from the project directory.</li> <li><a class="reference external" href="http://bugs.python.org/6771">Issue #6771</a>: Moved the curses.wrapper function from the single-function wrapper module into __init__, eliminating the module. Since __init__ was already importing the function to curses.wrapper, there is no API change.</li> <li><a class="reference external" href="http://bugs.python.org/11584">Issue #11584</a>: email.header.decode_header no longer fails if the header passed to it is a Header object, and Header/make_header no longer fail if given binary unknown-8bit input.</li> <li><a class="reference external" href="http://bugs.python.org/11700">Issue #11700</a>: mailbox proxy object close methods can now be called multiple times without error.</li> <li><a class="reference external" href="http://bugs.python.org/11767">Issue #11767</a>: Correct file descriptor leak in mailbox’s __getitem__ method.</li> <li><a class="reference external" href="http://bugs.python.org/12133">Issue #12133</a>: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.</li> <li><a class="reference external" href="http://bugs.python.org/12240">Issue #12240</a>: Allow multiple setup hooks in packaging’s setup.cfg files. Original patch by Erik Bray.</li> <li><a class="reference external" href="http://bugs.python.org/9284">Issue #9284</a>: Allow inspect.findsource() to find the source of doctest functions.</li> <li><a class="reference external" href="http://bugs.python.org/11595">Issue #11595</a>: Fix assorted bugs in packaging.util.cfg_to_args, a compatibility helper for the distutils-packaging transition. Original patch by Erik Bray.</li> <li><a class="reference external" href="http://bugs.python.org/12287">Issue #12287</a>: In ossaudiodev, check that the device isn’t closed in several methods.</li> <li><a class="reference external" href="http://bugs.python.org/12009">Issue #12009</a>: Fixed regression in netrc file comment handling.</li> <li><a class="reference external" href="http://bugs.python.org/12246">Issue #12246</a>: Warn and fail when trying to install a third-party project from an uninstalled Python (built in a source checkout). Original patch by Tshepang Lekhonkhobe.</li> <li><a class="reference external" href="http://bugs.python.org/10694">Issue #10694</a>: zipfile now ignores garbage at the end of a zipfile.</li> <li><a class="reference external" href="http://bugs.python.org/12283">Issue #12283</a>: Fixed regression in smtplib quoting of leading dots in DATA.</li> <li><a class="reference external" href="http://bugs.python.org/10424">Issue #10424</a>: Argparse now includes the names of the missing required arguments in the missing arguments error message.</li> <li><a class="reference external" href="http://bugs.python.org/12168">Issue #12168</a>: SysLogHandler now allows NUL termination to be controlled using a new ‘append_nul’ attribute on the handler.</li> <li><a class="reference external" href="http://bugs.python.org/11583">Issue #11583</a>: Speed up os.path.isdir on Windows by using GetFileAttributes instead of os.stat.</li> <li><a class="reference external" href="http://bugs.python.org/12021">Issue #12021</a>: Make mmap’s read() method argument optional. Patch by Petri Lehtinen.</li> <li><a class="reference external" href="http://bugs.python.org/9205">Issue #9205</a>: concurrent.futures.ProcessPoolExecutor now detects killed children and raises BrokenProcessPool in such a situation. Previously it would reliably freeze/deadlock.</li> <li><a class="reference external" href="http://bugs.python.org/12040">Issue #12040</a>: Expose a new attribute <tt class="docutils literal"><span class="pre">sentinel</span></tt> on instances of <tt class="docutils literal"><span class="pre">multiprocessing.Process</span></tt>. Also, fix Process.join() to not use polling anymore, when given a timeout.</li> <li><a class="reference external" href="http://bugs.python.org/11893">Issue #11893</a>: Remove obsolete internal wrapper class <tt class="docutils literal"><span class="pre">SSLFakeFile</span></tt> in the smtplib module. Patch by Catalin Iacob.</li> <li><a class="reference external" href="http://bugs.python.org/12080">Issue #12080</a>: Fix a Decimal.power() case that took an unreasonably long time to compute.</li> <li><a class="reference external" href="http://bugs.python.org/12221">Issue #12221</a>: Remove __version__ attributes from pyexpat, pickle, tarfile, pydoc, tkinter, and xml.parsers.expat. This were useless version constants left over from the Mercurial transition</li> <li>Named tuples now work correctly with vars().</li> <li><a class="reference external" href="http://bugs.python.org/12085">Issue #12085</a>: Fix an attribute error in subprocess.Popen destructor if the constructor has failed, e.g. because of an undeclared keyword argument. Patch written by Oleg Oshmyan.</li> <li><a class="reference external" href="http://bugs.python.org/12028">Issue #12028</a>: Make threading._get_ident() public, rename it to threading.get_ident() and document it. This function was already used using _thread.get_ident().</li> <li><a class="reference external" href="http://bugs.python.org/12171">Issue #12171</a>: IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls encreset() instead of decreset().</li> <li><a class="reference external" href="http://bugs.python.org/12218">Issue #12218</a>: Removed wsgiref.egg-info.</li> <li><a class="reference external" href="http://bugs.python.org/12196">Issue #12196</a>: Add pipe2() to the os module.</li> <li><a class="reference external" href="http://bugs.python.org/985064">Issue #985064</a>: Make plistlib more resilient to faulty input plists. Patch by Mher Movsisyan.</li> <li><a class="reference external" href="http://bugs.python.org/1625">Issue #1625</a>: BZ2File and bz2.decompress() now support multi-stream files. Initial patch by Nir Aides.</li> <li><a class="reference external" href="http://bugs.python.org/12175">Issue #12175</a>: BufferedReader.read(-1) now calls raw.readall() if available.</li> <li><a class="reference external" href="http://bugs.python.org/12175">Issue #12175</a>: FileIO.readall() now only reads the file position and size once.</li> <li><a class="reference external" href="http://bugs.python.org/12175">Issue #12175</a>: RawIOBase.readall() now returns None if read() returns None.</li> <li><a class="reference external" href="http://bugs.python.org/12175">Issue #12175</a>: FileIO.readall() now raises a ValueError instead of an IOError if the file is closed.</li> <li><a class="reference external" href="http://bugs.python.org/11109">Issue #11109</a>: New service_action method for BaseServer, used by ForkingMixin class for cleanup. Initial Patch by Justin Warkentin.</li> <li><a class="reference external" href="http://bugs.python.org/12045">Issue #12045</a>: Avoid duplicate execution of command in ctypes.util._get_soname(). Patch by Sijin Joseph.</li> <li><a class="reference external" href="http://bugs.python.org/10818">Issue #10818</a>: Remove the Tk GUI and the serve() function of the pydoc module, pydoc -g has been deprecated in Python 3.2 and it has a new enhanced web server.</li> <li><a class="reference external" href="http://bugs.python.org/1441530">Issue #1441530</a>: In imaplib, read the data in one chunk to speed up large reads and simplify code.</li> <li><a class="reference external" href="http://bugs.python.org/12070">Issue #12070</a>: Fix the Makefile parser of the sysconfig module to handle correctly references to “bogus variable” (e.g. “prefix=$/opt/python”).</li> <li><a class="reference external" href="http://bugs.python.org/12100">Issue #12100</a>: Don’t reset incremental encoders of CJK codecs at each call to their encode() method anymore, but continue to call the reset() method if the final argument is True.</li> <li><a class="reference external" href="http://bugs.python.org/12049">Issue #12049</a>: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl module.</li> <li><a class="reference external" href="http://bugs.python.org/6501">Issue #6501</a>: os.device_encoding() returns None on Windows if the application has no console.</li> <li><a class="reference external" href="http://bugs.python.org/12105">Issue #12105</a>: Add O_CLOEXEC to the os module.</li> <li><a class="reference external" href="http://bugs.python.org/12079">Issue #12079</a>: Decimal(‘Infinity’).fma(Decimal(‘0’), (3.91224318126786e+19+0j)) now raises TypeError (reflecting the invalid type of the 3rd argument) rather than Decimal.InvalidOperation.</li> <li><a class="reference external" href="http://bugs.python.org/12124">Issue #12124</a>: zipimport doesn’t keep a reference to zlib.decompress() anymore to be able to unload the module.</li> <li>Add the packaging module, an improved fork of distutils (also known as distutils2).</li> <li><a class="reference external" href="http://bugs.python.org/12065">Issue #12065</a>: connect_ex() on an SSL socket now returns the original errno when the socket’s timeout expires (it used to return None).</li> <li><a class="reference external" href="http://bugs.python.org/8809">Issue #8809</a>: The SMTP_SSL constructor and SMTP.starttls() now support passing a <tt class="docutils literal"><span class="pre">context</span></tt> argument pointing to an ssl.SSLContext instance. Patch by Kasun Herath.</li> <li><a class="reference external" href="http://bugs.python.org/9516">Issue #9516</a>: <a class="reference external" href="http://bugs.python.org/9516">Issue #9516</a>: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.</li> <li><a class="reference external" href="http://bugs.python.org/8650">Issue #8650</a>: Make zlib module 64-bit clean. compress(), decompress() and their incremental counterparts now raise OverflowError if given an input larger than 4GB, instead of silently truncating the input and returning an incorrect result.</li> <li><a class="reference external" href="http://bugs.python.org/12050">Issue #12050</a>: zlib.decompressobj().decompress() now clears the unconsumed_tail attribute when called without a max_length argument.</li> <li><a class="reference external" href="http://bugs.python.org/12062">Issue #12062</a>: Fix a flushing bug when doing a certain type of I/O sequence on a file opened in read+write mode (namely: reading, seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again).</li> <li><a class="reference external" href="http://bugs.python.org/9971">Issue #9971</a>: Write an optimized implementation of BufferedReader.readinto(). Patch by John O’Connor.</li> <li><a class="reference external" href="http://bugs.python.org/11799">Issue #11799</a>: urllib.request Authentication Handlers will raise a ValueError when presented with an unsupported Authentication Scheme. Patch contributed by Yuval Greenfield.</li> <li><a class="reference external" href="http://bugs.python.org/10419">Issue #10419</a>, #6011: build_scripts command of distutils handles correctly non-ASCII path (path to the Python executable). Open and write the script in binary mode, but ensure that the shebang is decodable from UTF-8 and from the encoding of the script.</li> <li><a class="reference external" href="http://bugs.python.org/8498">Issue #8498</a>: In socket.accept(), allow to specify 0 as a backlog value in order to accept exactly one connection. Patch by Daniel Evers.</li> <li><a class="reference external" href="http://bugs.python.org/12011">Issue #12011</a>: signal.signal() and signal.siginterrupt() raise an OSError, instead of a RuntimeError: OSError has an errno attribute.</li> <li><a class="reference external" href="http://bugs.python.org/3709">Issue #3709</a>: add a flush_headers method to BaseHTTPRequestHandler, which manages the sending of headers to output stream and flushing the internal headers buffer. Patch contribution by Andrew Schaaf</li> <li><a class="reference external" href="http://bugs.python.org/11743">Issue #11743</a>: Rewrite multiprocessing connection classes in pure Python.</li> <li><a class="reference external" href="http://bugs.python.org/11164">Issue #11164</a>: Stop trying to use _xmlplus in the xml module.</li> <li><a class="reference external" href="http://bugs.python.org/11888">Issue #11888</a>: Add log2 function to math module. Patch written by Mark Dickinson.</li> <li><a class="reference external" href="http://bugs.python.org/12012">Issue #12012</a>: ssl.PROTOCOL_SSLv2 becomes optional.</li> <li><a class="reference external" href="http://bugs.python.org/8407">Issue #8407</a>: The signal handler writes the signal number as a single byte instead of a nul byte into the wakeup file descriptor. So it is possible to wait more than one signal and know which signals were raised.</li> <li><a class="reference external" href="http://bugs.python.org/8407">Issue #8407</a>: Add pthread_kill(), sigpending() and sigwait() functions to the signal module.</li> <li><a class="reference external" href="http://bugs.python.org/11927">Issue #11927</a>: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.</li> <li><a class="reference external" href="http://bugs.python.org/12002">Issue #12002</a>: ftplib’s abort() method raises TypeError.</li> <li><a class="reference external" href="http://bugs.python.org/11916">Issue #11916</a>: Add a number of MacOSX specific definitions to the errno module. Patch by Pierre Carrier.</li> <li><a class="reference external" href="http://bugs.python.org/11999">Issue #11999</a>: fixed sporadic sync failure mailbox.Maildir due to its trying to detect mtime changes by comparing to the system clock instead of to the previous value of the mtime.</li> <li><a class="reference external" href="http://bugs.python.org/11072">Issue #11072</a>: added MLSD command (RFC-3659) support to ftplib.</li> <li><a class="reference external" href="http://bugs.python.org/8808">Issue #8808</a>: The IMAP4_SSL constructor now allows passing an SSLContext parameter to control parameters of the secure channel. Patch by Sijin Joseph.</li> <li>ntpath.samefile failed to notice that “a.txt” and “A.TXT” refer to the same file on Windows XP. As noticed in <a class="reference external" href="http://bugs.python.org/10684">issue #10684</a>.</li> <li><a class="reference external" href="http://bugs.python.org/12000">Issue #12000</a>: When a SSL certificate has a subjectAltName without any dNSName entry, ssl.match_hostname() should use the subject’s commonName. Patch by Nicolas Bareil.</li> <li><a class="reference external" href="http://bugs.python.org/10775">Issue #10775</a>: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument ‘msg’ when used as context managers. Initial patch by Winston Ewert.</li> <li><a class="reference external" href="http://bugs.python.org/10684">Issue #10684</a>: shutil.move used to delete a folder on case insensitive filesystems when the source and destination name where the same except for the case.</li> <li><a class="reference external" href="http://bugs.python.org/11647">Issue #11647</a>: objects created using contextlib.contextmanager now support more than one call to the function when used as a decorator. Initial patch by Ysj Ray.</li> <li><a class="reference external" href="http://bugs.python.org/11930">Issue #11930</a>: Removed deprecated time.accept2dyear variable. Removed year >= 1000 restriction from datetime.strftime.</li> <li>logging: don’t define QueueListener if Python has no thread support.</li> <li>functools.cmp_to_key() now works with collections.Hashable().</li> <li><a class="reference external" href="http://bugs.python.org/11277">Issue #11277</a>: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.</li> <li><a class="reference external" href="http://bugs.python.org/8407">Issue #8407</a>: Add signal.pthread_sigmask() function to fetch and/or change the signal mask of the calling thread.</li> <li><a class="reference external" href="http://bugs.python.org/11858">Issue #11858</a>: configparser.ExtendedInterpolation expected lower-case section names.</li> <li><a class="reference external" href="http://bugs.python.org/11324">Issue #11324</a>: ConfigParser(interpolation=None) now works correctly.</li> <li><a class="reference external" href="http://bugs.python.org/11811">Issue #11811</a>: ssl.get_server_certificate() is now IPv6-compatible. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/11763">Issue #11763</a>: don’t use difflib in TestCase.assertMultiLineEqual if the strings are too long.</li> <li><a class="reference external" href="http://bugs.python.org/11236">Issue #11236</a>: getpass.getpass responds to ctrl-c or ctrl-z on terminal.</li> <li><a class="reference external" href="http://bugs.python.org/11856">Issue #11856</a>: Speed up parsing of JSON numbers.</li> <li><a class="reference external" href="http://bugs.python.org/11005">Issue #11005</a>: threading.RLock()._release_save() raises a RuntimeError if the lock was not acquired.</li> <li><a class="reference external" href="http://bugs.python.org/11258">Issue #11258</a>: Speed up ctypes.util.find_library() under Linux by a factor of 5 to 10. Initial patch by Jonas H.</li> <li><a class="reference external" href="http://bugs.python.org/11382">Issue #11382</a>: Trivial system calls, such as dup() or pipe(), needn’t release the GIL. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/11223">Issue #11223</a>: Add threading._info() function providing informations about the thread implementation.</li> <li><a class="reference external" href="http://bugs.python.org/11731">Issue #11731</a>: simplify/enhance email parser/generator API by introducing policy objects.</li> <li><a class="reference external" href="http://bugs.python.org/11768">Issue #11768</a>: The signal handler of the signal module only calls Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.</li> <li><a class="reference external" href="http://bugs.python.org/11492">Issue #11492</a>: fix several issues with header folding in the email package.</li> <li><a class="reference external" href="http://bugs.python.org/11852">Issue #11852</a>: Add missing imports and update tests.</li> <li><a class="reference external" href="http://bugs.python.org/11875">Issue #11875</a>: collections.OrderedDict’s __reduce__ was temporarily mutating the object instead of just working on a copy.</li> <li><a class="reference external" href="http://bugs.python.org/11467">Issue #11467</a>: Fix urlparse behavior when handling urls which contains scheme specific part only digits. Patch by Santoso Wijaya.</li> <li>collections.Counter().copy() now works correctly for subclasses.</li> <li><a class="reference external" href="http://bugs.python.org/11474">Issue #11474</a>: Fix the bug with url2pathname() handling of ‘/C|/’ on Windows. Patch by Santoso Wijaya.</li> <li><a class="reference external" href="http://bugs.python.org/11684">Issue #11684</a>: complete email.parser bytes API by adding BytesHeaderParser.</li> <li>The bz2 module now handles 4GiB+ input buffers correctly.</li> <li><a class="reference external" href="http://bugs.python.org/9233">Issue #9233</a>: Fix json.loads(‘{}’) to return a dict (instead of a list), when _json is not available.</li> <li><a class="reference external" href="http://bugs.python.org/11830">Issue #11830</a>: Remove unnecessary introspection code in the decimal module.</li> <li><a class="reference external" href="http://bugs.python.org/11703">Issue #11703</a>: urllib2.geturl() does not return correct url when the original url contains #fragment.</li> <li><a class="reference external" href="http://bugs.python.org/10019">Issue #10019</a>: Fixed regression in json module where an indent of 0 stopped adding newlines and acted instead like ‘None’.</li> <li><a class="reference external" href="http://bugs.python.org/11186">Issue #11186</a>: pydoc ignores a module if its name contains a surrogate character in the index of modules.</li> <li><a class="reference external" href="http://bugs.python.org/11815">Issue #11815</a>: Use a light-weight SimpleQueue for the result queue in concurrent.futures.ProcessPoolExecutor.</li> <li><a class="reference external" href="http://bugs.python.org/5162">Issue #5162</a>: Treat services like frozen executables to allow child spawning from multiprocessing.forking on Windows.</li> <li>logging.basicConfig now supports an optional ‘handlers’ argument taking an iterable of handlers to be added to the root logger. Additional parameter checks were also added to basicConfig.</li> <li><a class="reference external" href="http://bugs.python.org/11814">Issue #11814</a>: Fix likely typo in multiprocessing.Pool._terminate().</li> <li><a class="reference external" href="http://bugs.python.org/11747">Issue #11747</a>: Fix range formatting in difflib.context_diff() and difflib.unified_diff().</li> <li><a class="reference external" href="http://bugs.python.org/8428">Issue #8428</a>: Fix a race condition in multiprocessing.Pool when terminating worker processes: new processes would be spawned while the pool is being shut down. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/2650">Issue #2650</a>: re.escape() no longer escapes the ‘_’.</li> <li><a class="reference external" href="http://bugs.python.org/11757">Issue #11757</a>: select.select() now raises ValueError when a negative timeout is passed (previously, a select.error with EINVAL would be raised). Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/7311">Issue #7311</a>: fix html.parser to accept non-ASCII attribute values.</li> <li><a class="reference external" href="http://bugs.python.org/11605">Issue #11605</a>: email.parser.BytesFeedParser was incorrectly converting multipart subparts with an 8-bit CTE into unicode instead of preserving the bytes.</li> <li><a class="reference external" href="http://bugs.python.org/1690608">Issue #1690608</a>: email.util.formataddr is now RFC 2047 aware: it now has a charset parameter that defaults to utf-8 and is used as the charset for RFC 2047 encoding when the realname contains non-ASCII characters.</li> <li><a class="reference external" href="http://bugs.python.org/10963">Issue #10963</a>: Ensure that subprocess.communicate() never raises EPIPE.</li> <li><a class="reference external" href="http://bugs.python.org/10791">Issue #10791</a>: Implement missing method GzipFile.read1(), allowing GzipFile to be wrapped in a TextIOWrapper. Patch by Nadeem Vawda.</li> <li><a class="reference external" href="http://bugs.python.org/11707">Issue #11707</a>: Added a fast C version of functools.cmp_to_key(). Patch by Filip Gruszczyński.</li> <li><a class="reference external" href="http://bugs.python.org/11688">Issue #11688</a>: Add sqlite3.Connection.set_trace_callback(). Patch by Torsten Landschoff.</li> <li><a class="reference external" href="http://bugs.python.org/11746">Issue #11746</a>: Fix SSLContext.load_cert_chain() to accept elliptic curve private keys.</li> <li><a class="reference external" href="http://bugs.python.org/5863">Issue #5863</a>: Rewrite BZ2File in pure Python, and allow it to accept file-like objects using a new <tt class="docutils literal"><span class="pre">fileobj</span></tt> constructor argument. Patch by Nadeem Vawda.</li> <li>unittest.TestCase.assertSameElements has been removed.</li> <li>sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not called yet: detect bootstrap (startup) issues earlier.</li> <li><a class="reference external" href="http://bugs.python.org/11393">Issue #11393</a>: Add the new faulthandler module.</li> <li><a class="reference external" href="http://bugs.python.org/11618">Issue #11618</a>: Fix the timeout logic in threading.Lock.acquire() under Windows.</li> <li>Removed the ‘strict’ argument to email.parser.Parser, which has been deprecated since Python 2.4.</li> <li><a class="reference external" href="http://bugs.python.org/11256">Issue #11256</a>: Fix inspect.getcallargs on functions that take only keyword arguments.</li> <li><a class="reference external" href="http://bugs.python.org/11696">Issue #11696</a>: Fix ID generation in msilib.</li> <li>itertools.accumulate now supports an optional <em>func</em> argument for a user-supplied binary function.</li> <li><a class="reference external" href="http://bugs.python.org/11692">Issue #11692</a>: Remove unnecessary demo functions in subprocess module.</li> <li><a class="reference external" href="http://bugs.python.org/9696">Issue #9696</a>: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.</li> <li><a class="reference external" href="http://bugs.python.org/11675">Issue #11675</a>: multiprocessing.[Raw]Array objects created from an integer size are now zeroed on creation. This matches the behaviour specified by the documentation.</li> <li><a class="reference external" href="http://bugs.python.org/7639">Issue #7639</a>: Fix short file name generation in bdist_msi</li> <li><a class="reference external" href="http://bugs.python.org/11635">Issue #11635</a>: Don’t use polling in worker threads and processes launched by concurrent.futures.</li> <li><a class="reference external" href="http://bugs.python.org/6811">Issue #6811</a>: Allow importlib to change a code object’s co_filename attribute to match the path to where the source code currently is, not where the code object originally came from.</li> <li><a class="reference external" href="http://bugs.python.org/8754">Issue #8754</a>: Have importlib use the repr of a module name in error messages.</li> <li><a class="reference external" href="http://bugs.python.org/11591">Issue #11591</a>: Prevent “import site” from modifying sys.path when python was started with -S.</li> <li>collections.namedtuple() now adds a _source attribute to the generated class. This make the source more accessible than the outdated “verbose” option which prints to stdout but doesn’t make the source string available.</li> <li><a class="reference external" href="http://bugs.python.org/11371">Issue #11371</a>: Mark getopt error messages as localizable. Patch by Filip Gruszczyński.</li> <li><a class="reference external" href="http://bugs.python.org/11333">Issue #11333</a>: Add __slots__ to collections ABCs.</li> <li><a class="reference external" href="http://bugs.python.org/11628">Issue #11628</a>: cmp_to_key generated class should use __slots__.</li> <li><a class="reference external" href="http://bugs.python.org/11666">Issue #11666</a>: let help() display named tuple attributes and methods that start with a leading underscore.</li> <li><a class="reference external" href="http://bugs.python.org/11662">Issue #11662</a>: Make urllib and urllib2 ignore redirections if the scheme is not HTTP, HTTPS or FTP (CVE-2011-1521).</li> <li><a class="reference external" href="http://bugs.python.org/5537">Issue #5537</a>: Fix time2isoz() and time2netscape() functions of httplib.cookiejar for expiration year greater than 2038 on 32-bit systems.</li> <li><a class="reference external" href="http://bugs.python.org/4391">Issue #4391</a>: Use proper gettext plural forms in optparse.</li> <li><a class="reference external" href="http://bugs.python.org/11127">Issue #11127</a>: Raise a TypeError when trying to pickle a socket object.</li> <li><a class="reference external" href="http://bugs.python.org/11563">Issue #11563</a>: <tt class="docutils literal"><span class="pre">Connection:</span> <span class="pre">close</span></tt> header is sent by requests using URLOpener class which helps in closing of sockets after connection is over. Patch contributions by Jeff McNeil and Nadeem Vawda.</li> <li><a class="reference external" href="http://bugs.python.org/11459">Issue #11459</a>: A <tt class="docutils literal"><span class="pre">bufsize</span></tt> value of 0 in subprocess.Popen() really creates unbuffered pipes, such that select() works properly on them.</li> <li><a class="reference external" href="http://bugs.python.org/5421">Issue #5421</a>: Fix misleading error message when one of socket.sendto()’s arguments has the wrong type. Patch by Nikita Vetoshkin.</li> <li><a class="reference external" href="http://bugs.python.org/10812">Issue #10812</a>: Add some extra posix functions to the os module.</li> <li><a class="reference external" href="http://bugs.python.org/10979">Issue #10979</a>: unittest stdout buffering now works with class and module setup and teardown.</li> <li><a class="reference external" href="http://bugs.python.org/11243">Issue #11243</a>: fix the parameter querying methods of Message to work if the headers contain un-encoded non-ASCII data.</li> <li><a class="reference external" href="http://bugs.python.org/11401">Issue #11401</a>: fix handling of headers with no value; this fixes a regression relative to Python2 and the result is now the same as it was in Python2.</li> <li><a class="reference external" href="http://bugs.python.org/9298">Issue #9298</a>: base64 bodies weren’t being folded to line lengths less than 78, which was a regression relative to Python2. Unlike Python2, the last line of the folded body now ends with a carriage return.</li> <li><a class="reference external" href="http://bugs.python.org/11560">Issue #11560</a>: shutil.unpack_archive now correctly handles the format parameter. Patch by Evan Dandrea.</li> <li><a class="reference external" href="http://bugs.python.org/5870">Issue #5870</a>: Add <a class="reference internal" href="../library/subprocess.html#subprocess.DEVNULL" title="subprocess.DEVNULL"><tt class="xref py py-obj docutils literal"><span class="pre">subprocess.DEVNULL</span></tt></a> constant.</li> <li><a class="reference external" href="http://bugs.python.org/11133">Issue #11133</a>: fix two cases where inspect.getattr_static can trigger code execution. Patch by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/11569">Issue #11569</a>: use absolute path to the sysctl command in multiprocessing to ensure that it will be found regardless of the shell PATH. This ensures that multiprocessing.cpu_count works on default installs of MacOSX.</li> <li><a class="reference external" href="http://bugs.python.org/11501">Issue #11501</a>: disutils.archive_utils.make_zipfile no longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED compression is used to create the ZipFile. Patch by Natalia B. Bidart.</li> <li><a class="reference external" href="http://bugs.python.org/11289">Issue #11289</a>: <tt class="xref py py-obj docutils literal"><span class="pre">smtp.SMTP</span></tt> class is now a context manager so it can be used in a <tt class="xref py py-obj docutils literal"><span class="pre">with</span></tt> statement. Contributed by Giampaolo Rodola.</li> <li><a class="reference external" href="http://bugs.python.org/11554">Issue #11554</a>: Fixed support for Japanese codecs; previously the body output encoding was not done if euc-jp or shift-jis was specified as the charset.</li> <li><a class="reference external" href="http://bugs.python.org/11407">Issue #11407</a>: <tt class="xref py py-obj docutils literal"><span class="pre">TestCase.run</span></tt> returns the result object used or created. Contributed by Janathan Hartley.</li> <li><a class="reference external" href="http://bugs.python.org/11500">Issue #11500</a>: Fixed a bug in the OS X proxy bypass code for fully qualified IP addresses in the proxy exception list.</li> <li><a class="reference external" href="http://bugs.python.org/11491">Issue #11491</a>: dbm.error is no longer raised when dbm.open is called with the “n” as the flag argument and the file exists. The behavior matches the documentation and general logic.</li> <li><a class="reference external" href="http://bugs.python.org/1162477">Issue #1162477</a>: Postel Principle adjustment to email date parsing: handle the fact that some non-compliant MUAs use ‘.’ instead of ‘:’ in time specs.</li> <li><a class="reference external" href="http://bugs.python.org/11131">Issue #11131</a>: Fix sign of zero in decimal.Decimal plus and minus operations when the rounding mode is ROUND_FLOOR.</li> <li><a class="reference external" href="http://bugs.python.org/9935">Issue #9935</a>: Speed up pickling of instances of user-defined classes.</li> <li><a class="reference external" href="http://bugs.python.org/5622">Issue #5622</a>: Fix curses.wrapper to raise correct exception if curses initialization fails.</li> <li><a class="reference external" href="http://bugs.python.org/11408">Issue #11408</a>: In threading.Lock.acquire(), only call gettimeofday() when really necessary. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/11391">Issue #11391</a>: Writing to a mmap object created with <tt class="docutils literal"><span class="pre">mmap.PROT_READ|mmap.PROT_EXEC</span></tt> would segfault instead of raising a TypeError. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/9795">Issue #9795</a>: add context manager protocol support for nntplib.NNTP class.</li> <li><a class="reference external" href="http://bugs.python.org/11306">Issue #11306</a>: mailbox in certain cases adapts to an inability to open certain files in read-write mode. Previously it detected this by checking for EACCES, now it also checks for EROFS.</li> <li><a class="reference external" href="http://bugs.python.org/11265">Issue #11265</a>: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), send() and recv().</li> <li><a class="reference external" href="http://bugs.python.org/11377">Issue #11377</a>: Deprecate platform.popen() and reimplement it with os.popen().</li> <li><a class="reference external" href="http://bugs.python.org/8513">Issue #8513</a>: On UNIX, subprocess supports bytes command string.</li> <li><a class="reference external" href="http://bugs.python.org/10866">Issue #10866</a>: Add socket.sethostname(). Initial patch by Ross Lagerwall.</li> <li><a class="reference external" href="http://bugs.python.org/11140">Issue #11140</a>: Lock.release() now raises a RuntimeError when attempting to release an unacquired lock, as claimed in the threading documentation. The _thread.error exception is now an alias of RuntimeError. Patch by Filip Gruszczyński. Patch for _dummy_thread by Aymeric Augustin.</li> <li><a class="reference external" href="http://bugs.python.org/8594">Issue #8594</a>: ftplib now provides a source_address parameter to specify which (address, port) to bind to before connecting.</li> <li><a class="reference external" href="http://bugs.python.org/11326">Issue #11326</a>: Add the missing connect_ex() implementation for SSL sockets, and make it work for non-blocking connects.</li> <li><a class="reference external" href="http://bugs.python.org/11297">Issue #11297</a>: Add collections.ChainMap().</li> <li><a class="reference external" href="http://bugs.python.org/10755">Issue #10755</a>: Add the posix.flistdir() function. Patch by Ross Lagerwall.</li> <li><a class="reference external" href="http://bugs.python.org/4761">Issue #4761</a>: Add the <tt class="docutils literal"><span class="pre">*at()</span></tt> family of functions (openat(), etc.) to the posix module. Patch by Ross Lagerwall.</li> <li><a class="reference external" href="http://bugs.python.org/7322">Issue #7322</a>: Trying to read from a socket’s file-like object after a timeout occurred now raises an error instead of silently losing data.</li> <li><a class="reference external" href="http://bugs.python.org/11291">Issue #11291</a>: poplib.POP no longer suppresses errors on quit().</li> <li><a class="reference external" href="http://bugs.python.org/11177">Issue #11177</a>: asyncore’s create_socket() arguments can now be omitted.</li> <li><a class="reference external" href="http://bugs.python.org/6064">Issue #6064</a>: Add a <tt class="docutils literal"><span class="pre">daemon</span></tt> keyword argument to the threading.Thread and multiprocessing.Process constructors in order to override the default behaviour of inheriting the daemonic property from the current thread/process.</li> <li><a class="reference external" href="http://bugs.python.org/10956">Issue #10956</a>: Buffered I/O classes retry reading or writing after a signal has arrived and the handler returned successfully.</li> <li><a class="reference external" href="http://bugs.python.org/10784">Issue #10784</a>: New os.getpriority() and os.setpriority() functions.</li> <li><a class="reference external" href="http://bugs.python.org/11114">Issue #11114</a>: Fix catastrophic performance of tell() on text files (up to 1000x faster in some cases). It is still one to two order of magnitudes slower than binary tell().</li> <li><a class="reference external" href="http://bugs.python.org/10882">Issue #10882</a>: Add os.sendfile function.</li> <li><a class="reference external" href="http://bugs.python.org/10868">Issue #10868</a>: Allow usage of the register method of an ABC as a class decorator.</li> <li><a class="reference external" href="http://bugs.python.org/11224">Issue #11224</a>: Fixed a regression in tarfile that affected the file-like objects returned by TarFile.extractfile() regarding performance, memory consumption and failures with the stream interface.</li> <li><a class="reference external" href="http://bugs.python.org/10924">Issue #10924</a>: Adding salt and Modular Crypt Format to crypt library. Moved old C wrapper to _crypt, and added a Python wrapper with enhanced salt generation and simpler API for password generation.</li> <li><a class="reference external" href="http://bugs.python.org/11074">Issue #11074</a>: Make ‘tokenize’ so it can be reloaded.</li> <li><a class="reference external" href="http://bugs.python.org/11085">Issue #11085</a>: Moved collections abstract base classes into a separate module called collections.abc, following the pattern used by importlib.abc. For backwards compatibility, the names are imported into the collections module.</li> <li><a class="reference external" href="http://bugs.python.org/4681">Issue #4681</a>: Allow mmap() to work on file sizes and offsets larger than 4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows.</li> <li><a class="reference external" href="http://bugs.python.org/11169">Issue #11169</a>: compileall module uses repr() to format filenames and paths to escape surrogate characters and show spaces.</li> <li><a class="reference external" href="http://bugs.python.org/11089">Issue #11089</a>: Fix performance issue limiting the use of ConfigParser() with large config files.</li> <li><a class="reference external" href="http://bugs.python.org/10276">Issue #10276</a>: Fix the results of zlib.crc32() and zlib.adler32() on buffers larger than 4GB. Patch by Nadeem Vawda.</li> <li><a class="reference external" href="http://bugs.python.org/11388">Issue #11388</a>: Added a clear() method to MutableSequence</li> <li><a class="reference external" href="http://bugs.python.org/11174">Issue #11174</a>: Add argparse.MetavarTypeHelpFormatter, which uses type names for the names of optional and positional arguments in help messages.</li> <li><a class="reference external" href="http://bugs.python.org/9348">Issue #9348</a>: Raise an early error if argparse nargs and metavar don’t match.</li> <li><a class="reference external" href="http://bugs.python.org/9026">Issue #9026</a>: Fix order of argparse sub-commands in help messages.</li> <li><a class="reference external" href="http://bugs.python.org/9347">Issue #9347</a>: Fix formatting for tuples in argparse type= error messages.</li> <li><a class="reference external" href="http://bugs.python.org/12191">Issue #12191</a>: Added shutil.chown() to change user and/or group owner of a given path also specifying their names.</li> <li><a class="reference external" href="http://bugs.python.org/13988">Issue #13988</a>: The _elementtree accelerator is used whenever available. Now xml.etree.cElementTree becomes a deprecated alias to ElementTree.</li> </ul> </div> <div class="section" id="id62"> <h3>Build<a class="headerlink" href="#id62" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/6807">Issue #6807</a>: Run msisupport.mak earlier.</li> <li><a class="reference external" href="http://bugs.python.org/10580">Issue #10580</a>: Minor grammar change in Windows installer.</li> <li><a class="reference external" href="http://bugs.python.org/13326">Issue #13326</a>: Clean __pycache__ directories correctly on OpenBSD.</li> <li>PEP 393: the configure option –with-wide-unicode is removed.</li> <li><a class="reference external" href="http://bugs.python.org/12852">Issue #12852</a>: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008 functions on OpenBSD (e.g. fdopendir).</li> <li><a class="reference external" href="http://bugs.python.org/11863">Issue #11863</a>: Remove support for legacy systems deprecated in Python 3.2 (following PEP 11). These systems are systems using Mach C Threads, SunOS lightweight processes, GNU pth threads and IRIX threads.</li> <li><a class="reference external" href="http://bugs.python.org/8746">Issue #8746</a>: Correct faulty configure checks so that os.chflags() and os.lchflags() are once again built on systems that support these functions (BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED).</li> <li><a class="reference external" href="http://bugs.python.org/10645">Issue #10645</a>: Installing Python no longer creates a Python-X.Y.Z-pyX.Y.egg-info file in the lib-dynload directory.</li> <li>Do not accidentally include the directory containing sqlite.h twice when building sqlite3.</li> <li><a class="reference external" href="http://bugs.python.org/11217">Issue #11217</a>: For 64-bit/32-bit Mac OS X universal framework builds, ensure “make install” creates symlinks in –prefix bin for the “-32” files in the framework bin directory like the installer does.</li> <li><a class="reference external" href="http://bugs.python.org/11347">Issue #11347</a>: Use –no-as-needed when linking libpython3.so.</li> <li><a class="reference external" href="http://bugs.python.org/11411">Issue #11411</a>: Fix ‘make DESTDIR=’ with a relative destination.</li> <li><a class="reference external" href="http://bugs.python.org/11268">Issue #11268</a>: Prevent Mac OS X Installer failure if Documentation package had previously been installed.</li> <li><a class="reference external" href="http://bugs.python.org/11495">Issue #11495</a>: OSF support is eliminated. It was deprecated in Python 3.2.</li> </ul> </div> <div class="section" id="id63"> <h3>IDLE<a class="headerlink" href="#id63" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14409">Issue #14409</a>: IDLE now properly executes commands in the Shell window when it cannot read the normal config files on startup and has to use the built-in default key bindings. There was previously a bug in one of the defaults.</li> <li>IDLE can be launched as python -m idlelib</li> <li><a class="reference external" href="http://bugs.python.org/3573">Issue #3573</a>: IDLE hangs when passing invalid command line args (directory(ies) instead of file(s)) (Patch by Guilherme Polo)</li> <li><a class="reference external" href="http://bugs.python.org/14200">Issue #14200</a>: IDLE shell crash on printing non-BMP unicode character.</li> <li><a class="reference external" href="http://bugs.python.org/5219">Issue #5219</a>: Prevent event handler cascade in IDLE.</li> <li><a class="reference external" href="http://bugs.python.org/964437">Issue #964437</a>: Make IDLE help window non-modal. Patch by Guilherme Polo and Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/13933">Issue #13933</a>: IDLE auto-complete did not work with some imported module, like hashlib. (Patch by Roger Serwy)</li> <li><a class="reference external" href="http://bugs.python.org/13506">Issue #13506</a>: Add ‘’ to path for IDLE Shell when started and restarted with Restart Shell. Original patches by Marco Scataglini and Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/4625">Issue #4625</a>: If IDLE cannot write to its recent file or breakpoint files, display a message popup and continue rather than crash. Original patch by Roger Serwy.</li> <li><a class="reference external" href="http://bugs.python.org/8641">Issue #8641</a>: Update IDLE 3 syntax coloring to recognize b”..” and not u”..”. Patch by Tal Einat.</li> <li><a class="reference external" href="http://bugs.python.org/13296">Issue #13296</a>: Fix IDLE to clear compile __future__ flags on shell restart. (Patch by Roger Serwy)</li> <li><a class="reference external" href="http://bugs.python.org/9871">Issue #9871</a>: Prevent IDLE 3 crash when given byte stings with invalid hex escape sequences, like b’x0’. (Original patch by Claudiu Popa.)</li> <li><a class="reference external" href="http://bugs.python.org/12636">Issue #12636</a>: IDLE reads the coding cookie when executing a Python script.</li> <li><a class="reference external" href="http://bugs.python.org/12540">Issue #12540</a>: Prevent zombie IDLE processes on Windows due to changes in os.kill().</li> <li><a class="reference external" href="http://bugs.python.org/12590">Issue #12590</a>: IDLE editor window now always displays the first line when opening a long file. With Tk 8.5, the first line was hidden.</li> <li><a class="reference external" href="http://bugs.python.org/11088">Issue #11088</a>: don’t crash when using F5 to run a script in IDLE on MacOSX with Tk 8.5.</li> <li><a class="reference external" href="http://bugs.python.org/1028">Issue #1028</a>: Tk returns invalid Unicode null in %A: UnicodeDecodeError. With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to exit. Converted to valid Unicode null in PythonCmd().</li> <li><a class="reference external" href="http://bugs.python.org/11718">Issue #11718</a>: IDLE’s open module dialog couldn’t find the __init__.py file in a package.</li> </ul> </div> <div class="section" id="id64"> <h3>Tools/Demos<a class="headerlink" href="#id64" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/14053">Issue #14053</a>: patchcheck.py (“make patchcheck”) now works with MQ patches. Patch by Francisco Martín Brugué.</li> <li><a class="reference external" href="http://bugs.python.org/13930">Issue #13930</a>: 2to3 is now able to write its converted output files to another directory tree as well as copying unchanged files and altering the file suffix. See its new -o, -W and –add-suffix options. This makes it more useful in many automated code translation workflows.</li> <li><a class="reference external" href="http://bugs.python.org/13628">Issue #13628</a>: python-gdb.py is now able to retrieve more frames in the Python traceback if Python is optimized.</li> <li><a class="reference external" href="http://bugs.python.org/11996">Issue #11996</a>: libpython (gdb), replace “py-bt” command by “py-bt-full” and add a smarter “py-bt” command printing a classic Python traceback.</li> <li><a class="reference external" href="http://bugs.python.org/11179">Issue #11179</a>: Make ccbench work under Python 3.1 and 2.7 again.</li> <li><a class="reference external" href="http://bugs.python.org/10639">Issue #10639</a>: reindent.py no longer converts newlines and will raise an error if attempting to convert a file with mixed newlines. “–newline” option added to specify new line character.</li> </ul> </div> <div class="section" id="id65"> <h3>Extension Modules<a class="headerlink" href="#id65" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/16847">Issue #16847</a>: Fixed improper use of _PyUnicode_CheckConsistency() in non-pydebug builds. Several extension modules now compile cleanly when assert()s are enabled in standard builds (-DDEBUG flag).</li> <li><a class="reference external" href="http://bugs.python.org/13840">Issue #13840</a>: The error message produced by ctypes.create_string_buffer when given a Unicode string has been fixed.</li> <li><a class="reference external" href="http://bugs.python.org/9975">Issue #9975</a>: socket: Fix incorrect use of flowinfo and scope_id. Patch by Vilmos Nebehaj.</li> <li><a class="reference external" href="http://bugs.python.org/7777">Issue #7777</a>: socket: Add Reliable Datagram Sockets (PF_RDS) support.</li> <li><a class="reference external" href="http://bugs.python.org/13159">Issue #13159</a>: FileIO and BZ2Compressor/BZ2Decompressor now use a linear-time buffer growth strategy instead of a quadratic-time one.</li> <li><a class="reference external" href="http://bugs.python.org/10141">Issue #10141</a>: socket: Add SocketCAN (PF_CAN) support. Initial patch by Matthias Fuchs, updated by Tiago Gonçalves.</li> <li><a class="reference external" href="http://bugs.python.org/13070">Issue #13070</a>: Fix a crash when a TextIOWrapper caught in a reference cycle would be finalized after the reference to its underlying BufferedRWPair’s writer got cleared by the GC.</li> <li><a class="reference external" href="http://bugs.python.org/12881">Issue #12881</a>: ctypes: Fix segfault with large structure field names.</li> <li><a class="reference external" href="http://bugs.python.org/13058">Issue #13058</a>: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas Jarosch.</li> <li><a class="reference external" href="http://bugs.python.org/13013">Issue #13013</a>: ctypes: Fix a reference leak in PyCArrayType_from_ctype. Thanks to Suman Saha for finding the bug and providing a patch.</li> <li><a class="reference external" href="http://bugs.python.org/13022">Issue #13022</a>: Fix: _multiprocessing.recvfd() doesn’t check that file descriptor was actually received.</li> <li><a class="reference external" href="http://bugs.python.org/1172711">Issue #1172711</a>: Add ‘long long’ support to the array module. Initial patch by Oren Tirosh and Hirokazu Yamamoto.</li> <li><a class="reference external" href="http://bugs.python.org/12483">Issue #12483</a>: ctypes: Fix a crash when the destruction of a callback object triggers the garbage collector.</li> <li><a class="reference external" href="http://bugs.python.org/12950">Issue #12950</a>: Fix passing file descriptors in multiprocessing, under OpenIndiana/Illumos.</li> <li><a class="reference external" href="http://bugs.python.org/12764">Issue #12764</a>: Fix a crash in ctypes when the name of a Structure field is not a string.</li> <li><a class="reference external" href="http://bugs.python.org/11241">Issue #11241</a>: subclasses of ctypes.Array can now be subclassed.</li> <li><a class="reference external" href="http://bugs.python.org/9651">Issue #9651</a>: Fix a crash when ctypes.create_string_buffer(0) was passed to some functions like file.write().</li> <li><a class="reference external" href="http://bugs.python.org/10309">Issue #10309</a>: Define _GNU_SOURCE so that mremap() gets the proper signature. Without this, architectures where sizeof void* != sizeof int are broken. Patch given by Hallvard B Furuseth.</li> <li><a class="reference external" href="http://bugs.python.org/12051">Issue #12051</a>: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.</li> <li><a class="reference external" href="http://bugs.python.org/12017">Issue #12017</a>: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.</li> <li><a class="reference external" href="http://bugs.python.org/1838">Issue #1838</a>: Prevent segfault in ctypes, when _as_parameter_ on a class is set to an instance of the class.</li> </ul> </div> <div class="section" id="id66"> <h3>Tests<a class="headerlink" href="#id66" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13125">Issue #13125</a>: Silence spurious test_lib2to3 output when in non-verbose mode. Patch by Mikhail Novikov.</li> <li><a class="reference external" href="http://bugs.python.org/13447">Issue #13447</a>: Add a test file to host regression tests for bugs in the scripts found in the Tools directory.</li> <li><a class="reference external" href="http://bugs.python.org/10881">Issue #10881</a>: Fix test_site failure with OS X framework builds.</li> <li><a class="reference external" href="http://bugs.python.org/13901">Issue #13901</a>: Prevent test_distutils failures on OS X with –enable-shared.</li> <li><a class="reference external" href="http://bugs.python.org/13862">Issue #13862</a>: Fix spurious failure in test_zlib due to runtime/compile time minor versions not matching.</li> <li><a class="reference external" href="http://bugs.python.org/12804">Issue #12804</a>: Fix test_socket and test_urllib2net failures when running tests on a system without internet access.</li> <li><a class="reference external" href="http://bugs.python.org/13726">Issue #13726</a>: Fix the ambiguous -S flag in regrtest. It is -o/–slow for slow tests.</li> <li><a class="reference external" href="http://bugs.python.org/11659">Issue #11659</a>: Fix ResourceWarning in test_subprocess introduced by #11459. Patch by Ben Hayden.</li> <li><a class="reference external" href="http://bugs.python.org/11577">Issue #11577</a>: fix ResourceWarning triggered by improved binhex test coverage</li> <li><a class="reference external" href="http://bugs.python.org/11509">Issue #11509</a>: Significantly increase test coverage of fileinput. Patch by Denver Coneybeare at PyCon 2011 Sprints.</li> <li><a class="reference external" href="http://bugs.python.org/11689">Issue #11689</a>: Fix a variable scoping error in an sqlite3 test</li> <li><a class="reference external" href="http://bugs.python.org/13786">Issue #13786</a>: Remove unimplemented ‘trace’ long option from regrtest.py.</li> <li><a class="reference external" href="http://bugs.python.org/13725">Issue #13725</a>: Fix regrtest to recognize the documented -d flag. Patch by Erno Tukia.</li> <li><a class="reference external" href="http://bugs.python.org/13304">Issue #13304</a>: Skip test case if user site-packages disabled (-s or PYTHONNOUSERSITE). (Patch by Carl Meyer)</li> <li><a class="reference external" href="http://bugs.python.org/5661">Issue #5661</a>: Add a test for ECONNRESET/EPIPE handling to test_asyncore. Patch by Xavier de Gaye.</li> <li><a class="reference external" href="http://bugs.python.org/13218">Issue #13218</a>: Fix test_ssl failures on Debian/Ubuntu.</li> <li>Re-enable lib2to3’s test_parser.py tests, though with an expected failure (see issue 13125).</li> <li><a class="reference external" href="http://bugs.python.org/12656">Issue #12656</a>: Add tests for IPv6 and Unix sockets to test_asyncore.</li> <li><a class="reference external" href="http://bugs.python.org/6484">Issue #6484</a>: Add unit tests for mailcap module (patch by Gregory Nofi)</li> <li><a class="reference external" href="http://bugs.python.org/11651">Issue #11651</a>: Improve the Makefile test targets to run more of the test suite more quickly. The –multiprocess option is now enabled by default, reducing the amount of time needed to run the tests. “make test” and “make quicktest” now include some resource-intensive tests, but no longer run the test suite twice to check for bugs in .pyc generation. Tools/scripts/run_test.py provides an easy platform-independent way to run test suite with sensible defaults.</li> <li><a class="reference external" href="http://bugs.python.org/12331">Issue #12331</a>: The test suite for the packaging module can now run from an installed Python.</li> <li><a class="reference external" href="http://bugs.python.org/12331">Issue #12331</a>: The test suite for lib2to3 can now run from an installed Python.</li> <li><a class="reference external" href="http://bugs.python.org/12626">Issue #12626</a>: In regrtest, allow to filter tests using a glob filter with the <tt class="docutils literal"><span class="pre">-m</span></tt> (or <tt class="docutils literal"><span class="pre">--match</span></tt>) option. This works with all test cases using the unittest module. This is useful with long test suites such as test_io or test_subprocess.</li> <li><a class="reference external" href="http://bugs.python.org/12624">Issue #12624</a>: It is now possible to fail after the first failure when running in verbose mode (<tt class="docutils literal"><span class="pre">-v</span></tt> or <tt class="docutils literal"><span class="pre">-W</span></tt>), by using the <tt class="docutils literal"><span class="pre">--failfast</span></tt> (or <tt class="docutils literal"><span class="pre">-G</span></tt>) option to regrtest. This is useful with long test suites such as test_io or test_subprocess.</li> <li><a class="reference external" href="http://bugs.python.org/12587">Issue #12587</a>: Correct faulty test file and reference in test_tokenize. (Patch by Robert Xiao)</li> <li><a class="reference external" href="http://bugs.python.org/12573">Issue #12573</a>: Add resource checks for dangling Thread and Process objects.</li> <li><a class="reference external" href="http://bugs.python.org/12549">Issue #12549</a>: Correct test_platform to not fail when OS X returns ‘x86_64’ as the processor type on some Mac systems.</li> <li>Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary failure in name resolution.</li> <li><a class="reference external" href="http://bugs.python.org/11812">Issue #11812</a>: Solve transient socket failure to connect to ‘localhost’ in test_telnetlib.py.</li> <li>Solved a potential deadlock in test_telnetlib.py. Related to <a class="reference external" href="http://bugs.python.org/11812">issue #11812</a>.</li> <li>Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder Web site.</li> <li>Avoid failing in test_urllibnet.test_bad_address when some overzealous DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test is now skipped instead.</li> <li><a class="reference external" href="http://bugs.python.org/12440">Issue #12440</a>: When testing whether some bits in SSLContext.options can be reset, check the version of the OpenSSL headers Python was compiled against, rather than the runtime version of the OpenSSL library.</li> <li><a class="reference external" href="http://bugs.python.org/11512">Issue #11512</a>: Add a test suite for the cgitb module. Patch by Robbie Clemons.</li> <li><a class="reference external" href="http://bugs.python.org/12497">Issue #12497</a>: Install test/data to prevent failures of the various codecmaps tests.</li> <li><a class="reference external" href="http://bugs.python.org/12496">Issue #12496</a>: Install test/capath directory to prevent test_connect_capath testcase failure in test_ssl.</li> <li><a class="reference external" href="http://bugs.python.org/12469">Issue #12469</a>: Run wakeup and pending signal tests in a subprocess to run the test in a fresh process with only one thread and to not change signal handling of the parent process.</li> <li><a class="reference external" href="http://bugs.python.org/8716">Issue #8716</a>: Avoid crashes caused by Aqua Tk on OSX when attempting to run test_tk or test_ttk_guionly under a username that is not currently logged in to the console windowserver (as may be the case under buildbot or ssh).</li> <li><a class="reference external" href="http://bugs.python.org/12407">Issue #12407</a>: Explicitly skip test_capi.EmbeddingTest under Windows.</li> <li><a class="reference external" href="http://bugs.python.org/12400">Issue #12400</a>: regrtest -W doesn’t rerun the tests twice anymore, but captures the output and displays it on failure instead. regrtest -v doesn’t print the error twice anymore if there is only one error.</li> <li><a class="reference external" href="http://bugs.python.org/12141">Issue #12141</a>: Install copies of template C module file so that test_build_ext of test_distutils and test_command_build_ext of test_packaging are no longer silently skipped when run outside of a build directory.</li> <li><a class="reference external" href="http://bugs.python.org/8746">Issue #8746</a>: Add additional tests for os.chflags() and os.lchflags(). Patch by Garrett Cooper.</li> <li><a class="reference external" href="http://bugs.python.org/10736">Issue #10736</a>: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 2.8 + on Mac OS X. (Patch by Ronald Oussoren)</li> <li><a class="reference external" href="http://bugs.python.org/12057">Issue #12057</a>: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2, iso2022_kr).</li> <li><a class="reference external" href="http://bugs.python.org/12096">Issue #12096</a>: Fix a race condition in test_threading.test_waitfor(). Patch written by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/11614">Issue #11614</a>: import __hello__ prints “Hello World!”. Patch written by Andreas Stührk.</li> <li><a class="reference external" href="http://bugs.python.org/5723">Issue #5723</a>: Improve json tests to be executed with and without accelerations.</li> <li><a class="reference external" href="http://bugs.python.org/12041">Issue #12041</a>: Make test_wait3 more robust.</li> <li><a class="reference external" href="http://bugs.python.org/11873">Issue #11873</a>: Change regex in test_compileall to fix occasional failures when when the randomly generated temporary path happened to match the regex.</li> <li><a class="reference external" href="http://bugs.python.org/11958">Issue #11958</a>: Fix FTP tests for IPv6, bind to ”::1” instead of “localhost”. Patch written by Charles-Francois Natali.</li> <li><a class="reference external" href="http://bugs.python.org/8407">Issue #8407</a>, #11859: Fix tests of test_io using threads and an alarm: use pthread_sigmask() to ensure that the SIGALRM signal is received by the main thread.</li> <li><a class="reference external" href="http://bugs.python.org/11811">Issue #11811</a>: Factor out detection of IPv6 support on the current host and make it available as <tt class="docutils literal"><span class="pre">test.support.IPV6_ENABLED</span></tt>. Patch by Charles-François Natali.</li> <li><a class="reference external" href="http://bugs.python.org/10914">Issue #10914</a>: Add a minimal embedding test to test_capi.</li> <li><a class="reference external" href="http://bugs.python.org/11223">Issue #11223</a>: Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of test_threadsignals if a thread lock is implemented using a POSIX mutex and a POSIX condition variable. A POSIX condition variable cannot be interrupted by a signal (e.g. on Linux, the futex system call is restarted).</li> <li><a class="reference external" href="http://bugs.python.org/11790">Issue #11790</a>: Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.</li> <li>Fix possible “file already exists” error when running the tests in parallel.</li> <li><a class="reference external" href="http://bugs.python.org/11719">Issue #11719</a>: Fix message about unexpected test_msilib skip on non-Windows platforms. Patch by Nadeem Vawda.</li> <li><a class="reference external" href="http://bugs.python.org/11727">Issue #11727</a>: Add a –timeout option to regrtest: if a test takes more than TIMEOUT seconds, dumps the traceback of all threads and exits.</li> <li><a class="reference external" href="http://bugs.python.org/11653">Issue #11653</a>: fix -W with -j in regrtest.</li> <li>The email test suite now lives in the Lib/test/test_email package. The test harness code has also been modernized to allow use of new unittest features.</li> <li>regrtest now discovers test packages as well as test modules.</li> <li><a class="reference external" href="http://bugs.python.org/11577">Issue #11577</a>: improve test coverage of binhex.py. Patch by Arkady Koplyarov.</li> <li>New test_crashers added to exercise the scripts in the Lib/test/crashers directory and confirm they fail as expected</li> <li><a class="reference external" href="http://bugs.python.org/11578">Issue #11578</a>: added test for the timeit module. Patch by Michael Henry.</li> <li><a class="reference external" href="http://bugs.python.org/11503">Issue #11503</a>: improve test coverage of posixpath.py. Patch by Evan Dandrea.</li> <li><a class="reference external" href="http://bugs.python.org/11505">Issue #11505</a>: improves test coverage of string.py, increases granularity of string.Formatter tests. Initial patch by Alicia Arlen.</li> <li><a class="reference external" href="http://bugs.python.org/11548">Issue #11548</a>: Improve test coverage of the shutil module. Patch by Evan Dandrea.</li> <li><a class="reference external" href="http://bugs.python.org/11554">Issue #11554</a>: Reactivated test_email_codecs.</li> <li><a class="reference external" href="http://bugs.python.org/11505">Issue #11505</a>: improves test coverage of string.py. Patch by Alicia Arlen</li> <li><a class="reference external" href="http://bugs.python.org/11490">Issue #11490</a>: test_subprocess.test_leaking_fds_on_error no longer gives a false positive if the last directory in the path is inaccessible.</li> <li><a class="reference external" href="http://bugs.python.org/11223">Issue #11223</a>: Fix test_threadsignals to fail, not hang, when the non-semaphore implementation of locks is used under POSIX.</li> <li><a class="reference external" href="http://bugs.python.org/10911">Issue #10911</a>: Add tests on CGI with non-ASCII characters. Patch written by Pierre Quentel.</li> <li><a class="reference external" href="http://bugs.python.org/9931">Issue #9931</a>: Fix hangs in GUI tests under Windows in certain conditions. Patch by Hirokazu Yamamoto.</li> <li><a class="reference external" href="http://bugs.python.org/10512">Issue #10512</a>: Properly close sockets under test.test_cgi.</li> <li><a class="reference external" href="http://bugs.python.org/10992">Issue #10992</a>: Make tests pass under coverage.</li> <li><a class="reference external" href="http://bugs.python.org/10826">Issue #10826</a>: Prevent sporadic failure in test_subprocess on Solaris due to open door files.</li> <li><a class="reference external" href="http://bugs.python.org/10990">Issue #10990</a>: Prevent tests from clobbering a set trace function.</li> </ul> </div> <div class="section" id="id67"> <h3>C-API<a class="headerlink" href="#id67" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13452">Issue #13452</a>: PyUnicode_EncodeDecimal() doesn’t support error handlers different than “strict” anymore. The caller was unable to compute the size of the output buffer: it depends on the error handler.</li> <li><a class="reference external" href="http://bugs.python.org/13560">Issue #13560</a>: Add PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize() and PyUnicode_EncodeLocale() functions to the C API to decode/encode from/to the current locale encoding.</li> <li><a class="reference external" href="http://bugs.python.org/10831">Issue #10831</a>: PyUnicode_FromFormat() supports %li, %lli and %zi formats.</li> <li><a class="reference external" href="http://bugs.python.org/11246">Issue #11246</a>: Fix PyUnicode_FromFormat(“%V”) to decode the byte string from UTF-8 (with replace error handler) instead of ISO-8859-1 (in strict mode). Patch written by Ray Allen.</li> <li><a class="reference external" href="http://bugs.python.org/10830">Issue #10830</a>: Fix PyUnicode_FromFormatV(“%c”) for non-BMP characters on narrow build.</li> <li>Add PyObject_GenericGetDict and PyObject_GeneriSetDict. They are generic implementations for the getter and setter of a <tt class="docutils literal"><span class="pre">__dict__</span></tt> descriptor of C types.</li> <li><a class="reference external" href="http://bugs.python.org/13727">Issue #13727</a>: Add 3 macros to access PyDateTime_Delta members: PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_SECONDS, PyDateTime_DELTA_GET_MICROSECONDS.</li> <li><a class="reference external" href="http://bugs.python.org/10542">Issue #10542</a>: Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES.</li> <li><a class="reference external" href="http://bugs.python.org/12724">Issue #12724</a>: Add Py_RETURN_NOTIMPLEMENTED macro for returning NotImplemented.</li> <li>PY_PATCHLEVEL_REVISION has been removed, since it’s meaningless with Mercurial.</li> <li><a class="reference external" href="http://bugs.python.org/12173">Issue #12173</a>: The first argument of PyImport_ImportModuleLevel is now <tt class="xref py py-obj docutils literal"><span class="pre">const</span> <span class="pre">char</span> <span class="pre">*</span></tt> instead of <tt class="xref py py-obj docutils literal"><span class="pre">char</span> <span class="pre">*</span></tt>.</li> <li><a class="reference external" href="http://bugs.python.org/12380">Issue #12380</a>: PyArg_ParseTuple now accepts a bytearray for the ‘c’ format.</li> </ul> </div> <div class="section" id="id68"> <h3>Documentation<a class="headerlink" href="#id68" title="Permalink to this headline">¶</a></h3> <ul class="simple"> <li><a class="reference external" href="http://bugs.python.org/13989">Issue #13989</a>: Document that GzipFile does not support text mode, and give a more helpful error message when opened with an invalid mode string.</li> <li><a class="reference external" href="http://bugs.python.org/13921">Issue #13921</a>: Undocument and clean up sqlite3.OptimizedUnicode, which is obsolete in Python 3.x. It’s now aliased to str for backwards compatibility.</li> <li><a class="reference external" href="http://bugs.python.org/12102">Issue #12102</a>: Document that buffered files must be flushed before being used with mmap. Patch by Steffen Daode Nurpmeso.</li> <li><a class="reference external" href="http://bugs.python.org/8982">Issue #8982</a>: Improve the documentation for the argparse Namespace object.</li> <li><a class="reference external" href="http://bugs.python.org/9343">Issue #9343</a>: Document that argparse parent parsers must be configured before their children.</li> <li><a class="reference external" href="http://bugs.python.org/13498">Issue #13498</a>: Clarify docs of os.makedirs()’s exist_ok argument. Done with great native-speaker help from R. David Murray.</li> <li>Issues #13491 and #13995: Fix many errors in sqlite3 documentation. Initial patch for #13491 by Johannes Vogel.</li> <li><a class="reference external" href="http://bugs.python.org/13402">Issue #13402</a>: Document absoluteness of sys.executable.</li> <li><a class="reference external" href="http://bugs.python.org/13883">Issue #13883</a>: PYTHONCASEOK also works on OS X.</li> <li><a class="reference external" href="http://bugs.python.org/9021">Issue #9021</a>: Add an introduction to the copy module documentation.</li> <li><a class="reference external" href="http://bugs.python.org/6005">Issue #6005</a>: Examples in the socket library documentation use sendall, where relevant, instead send method.</li> <li><a class="reference external" href="http://bugs.python.org/12798">Issue #12798</a>: Updated the mimetypes documentation.</li> <li><a class="reference external" href="http://bugs.python.org/12949">Issue #12949</a>: Document the kwonlyargcount argument for the PyCode_New C API function.</li> <li><a class="reference external" href="http://bugs.python.org/13513">Issue #13513</a>: Fix io.IOBase documentation to correctly link to the io.IOBase.readline method instead of the readline module.</li> <li><a class="reference external" href="http://bugs.python.org/13237">Issue #13237</a>: Reorganise subprocess documentation to emphasise convenience functions and the most commonly needed arguments to Popen.</li> <li><a class="reference external" href="http://bugs.python.org/13141">Issue #13141</a>: Demonstrate recommended style for socketserver examples.</li> <li><a class="reference external" href="http://bugs.python.org/11818">Issue #11818</a>: Fix tempfile examples for Python 3.</li> </ul> <p><strong>(For information about older versions, consult the HISTORY file.)</strong></p> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../contents.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Changelog</a><ul> <li><a class="reference internal" href="#python-3-3-2">Python 3.3.2</a><ul> <li><a class="reference internal" href="#core-and-builtins">Core and Builtins</a></li> <li><a class="reference internal" href="#library">Library</a></li> <li><a class="reference internal" href="#idle">IDLE</a></li> <li><a class="reference internal" href="#tests">Tests</a></li> <li><a class="reference internal" href="#documentation">Documentation</a></li> <li><a class="reference internal" href="#build">Build</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-1">Python 3.3.1</a><ul> <li><a class="reference internal" href="#id1">Build</a></li> <li><a class="reference internal" href="#id2">IDLE</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-1-release-candidate-1">Python 3.3.1 release candidate 1</a><ul> <li><a class="reference internal" href="#id3">Core and Builtins</a></li> <li><a class="reference internal" href="#id4">Library</a></li> <li><a class="reference internal" href="#id5">IDLE</a></li> <li><a class="reference internal" href="#id6">Tests</a></li> <li><a class="reference internal" href="#id7">Build</a></li> <li><a class="reference internal" href="#c-api">C-API</a></li> <li><a class="reference internal" href="#id8">Documentation</a></li> <li><a class="reference internal" href="#tools-demos">Tools/Demos</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0">Python 3.3.0</a><ul> <li><a class="reference internal" href="#id9">Core and Builtins</a></li> <li><a class="reference internal" href="#extension-modules">Extension Modules</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-release-candidate-3">Python 3.3.0 Release Candidate 3</a><ul> <li><a class="reference internal" href="#id10">Core and Builtins</a></li> <li><a class="reference internal" href="#id11">Library</a></li> <li><a class="reference internal" href="#id12">Extension Modules</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-release-candidate-2">Python 3.3.0 Release Candidate 2</a><ul> <li><a class="reference internal" href="#id13">Core and Builtins</a></li> <li><a class="reference internal" href="#id14">Library</a></li> <li><a class="reference internal" href="#id15">Build</a></li> <li><a class="reference internal" href="#id16">Documentation</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-release-candidate-1">Python 3.3.0 Release Candidate 1</a><ul> <li><a class="reference internal" href="#id17">Core and Builtins</a></li> <li><a class="reference internal" href="#id18">Library</a></li> <li><a class="reference internal" href="#id19">IDLE</a></li> <li><a class="reference internal" href="#id20">Documentation</a></li> <li><a class="reference internal" href="#id21">Tests</a></li> <li><a class="reference internal" href="#id22">Build</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-beta-2">Python 3.3.0 Beta 2</a><ul> <li><a class="reference internal" href="#id23">Core and Builtins</a></li> <li><a class="reference internal" href="#id24">Library</a></li> <li><a class="reference internal" href="#id25">C API</a></li> <li><a class="reference internal" href="#id26">Extension Modules</a></li> <li><a class="reference internal" href="#id27">IDLE</a></li> <li><a class="reference internal" href="#id28">Tools/Demos</a></li> <li><a class="reference internal" href="#id29">Documentation</a></li> <li><a class="reference internal" href="#id30">Tests</a></li> <li><a class="reference internal" href="#id31">Build</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-beta-1">Python 3.3.0 Beta 1</a><ul> <li><a class="reference internal" href="#id32">Core and Builtins</a></li> <li><a class="reference internal" href="#id33">Library</a></li> <li><a class="reference internal" href="#id34">C-API</a></li> <li><a class="reference internal" href="#id35">Extension Modules</a></li> <li><a class="reference internal" href="#id36">IDLE</a></li> <li><a class="reference internal" href="#id37">Documentation</a></li> <li><a class="reference internal" href="#id38">Tests</a></li> <li><a class="reference internal" href="#id39">Build</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-alpha-4">Python 3.3.0 Alpha 4</a><ul> <li><a class="reference internal" href="#id40">Core and Builtins</a></li> <li><a class="reference internal" href="#id41">Library</a></li> <li><a class="reference internal" href="#id42">IDLE</a></li> <li><a class="reference internal" href="#id43">Tools/Demos</a></li> <li><a class="reference internal" href="#id44">Build</a></li> <li><a class="reference internal" href="#id45">C-API</a></li> <li><a class="reference internal" href="#id46">Documentation</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-alpha-3">Python 3.3.0 Alpha 3</a><ul> <li><a class="reference internal" href="#id47">Core and Builtins</a></li> <li><a class="reference internal" href="#id48">Library</a></li> <li><a class="reference internal" href="#id49">Build</a></li> <li><a class="reference internal" href="#id50">Tests</a></li> <li><a class="reference internal" href="#id51">IDLE</a></li> <li><a class="reference internal" href="#id52">Tools / Demos</a></li> <li><a class="reference internal" href="#id53">C-API</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-alpha-2">Python 3.3.0 Alpha 2</a><ul> <li><a class="reference internal" href="#id54">Core and Builtins</a></li> <li><a class="reference internal" href="#id55">Library</a></li> <li><a class="reference internal" href="#id56">Build</a></li> <li><a class="reference internal" href="#id57">Documentation</a></li> <li><a class="reference internal" href="#id58">Extension Modules</a></li> <li><a class="reference internal" href="#id59">Tests</a></li> </ul> </li> <li><a class="reference internal" href="#python-3-3-0-alpha-1">Python 3.3.0 Alpha 1</a><ul> <li><a class="reference internal" href="#id60">Core and Builtins</a></li> <li><a class="reference internal" href="#id61">Library</a></li> <li><a class="reference internal" href="#id62">Build</a></li> <li><a class="reference internal" href="#id63">IDLE</a></li> <li><a class="reference internal" href="#id64">Tools/Demos</a></li> <li><a class="reference internal" href="#id65">Extension Modules</a></li> <li><a class="reference internal" href="#id66">Tests</a></li> <li><a class="reference internal" href="#id67">C-API</a></li> <li><a class="reference internal" href="#id68">Documentation</a></li> </ul> </li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="2.0.html" title="previous chapter">What’s New in Python 2.0</a></p> <h4>Next topic</h4> <p class="topless"><a href="../tutorial/index.html" title="next chapter">The Python Tutorial</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../bugs.html">Report a Bug</a></li> <li><a href="../_sources/whatsnew/changelog.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="../py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="../tutorial/index.html" title="The Python Tutorial" >next</a> |</li> <li class="right" > <a href="2.0.html" title="What’s New in Python 2.0" >previous</a> |</li> <li><img src="../_static/py.png" alt="" style="vertical-align: middle; margin-top: -1px"/></li> <li><a href="http://www.python.org/">Python</a> »</li> <li> <a href="../index.html">3.3.2 Documentation</a> » </li> <li><a href="index.html" >What’s New in Python</a> »</li> </ul> </div> <div class="footer"> © <a href="../copyright.html">Copyright</a> 1990-2013, Python Software Foundation. <br /> The Python Software Foundation is a non-profit corporation. <a href="http://www.python.org/psf/donations/">Please donate.</a> <br /> Last updated on May 15, 2013. <a href="../bugs.html">Found a bug</a>? <br /> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. </div> </body> </html>