Staging
v0.8.1
v0.8.1
3.3.0b2.rst
.. bpo: 15568
.. date: 9096
.. nonce: 5EtMDi
.. release date: 12-Aug-2012
.. section: Core and Builtins
Fix the return value of ``yield from`` when StopIteration is raised by a
custom iterator.
..
.. bpo: 13119
.. date: 9095
.. nonce: aseW65
.. section: Core and Builtins
`sys.stdout` and `sys.stderr` are now using "\r\n" newline on Windows, as
Python 2.
..
.. bpo: 15534
.. date: 9094
.. nonce: 4Pyohe
.. section: Core and Builtins
Fix the fast-search function for non-ASCII Unicode strings.
..
.. bpo: 15508
.. date: 9093
.. nonce: KU2qVb
.. section: Core and Builtins
Fix the docstring for `__import__()` to have the proper default value of 0
for 'level' and to not mention negative levels since they are not supported.
..
.. bpo: 15425
.. date: 9092
.. nonce: zCIhUA
.. section: Core and Builtins
Eliminated traceback noise from more situations involving importlib.
..
.. bpo: 14578
.. date: 9091
.. nonce: h-xy3r
.. section: Core and Builtins
Support modules registered in the Windows registry again.
..
.. bpo: 15466
.. date: 9090
.. nonce: 1DQAG_
.. section: Core and Builtins
Stop using TYPE_INT64 in marshal, to make importlib.h (and other byte code
files) equal between 32-bit and 64-bit systems.
..
.. bpo: 1692335
.. date: 9089
.. nonce: BrUd_4
.. section: Core and Builtins
Move initial exception args assignment to `BaseException.__new__()` to help
pickling of naive subclasses.
..
.. bpo: 12834
.. date: 9088
.. nonce: 2LoP3_
.. section: Core and Builtins
Fix `PyBuffer_ToContiguous()` for non-contiguous arrays.
..
.. bpo: 15456
.. date: 9087
.. nonce: bOiKDB
.. section: Core and Builtins
Fix code `__sizeof__()` after #12399 change. Patch by Serhiy Storchaka.
..
.. bpo: 15404
.. date: 9086
.. nonce: KGT7_K
.. section: Core and Builtins
Refleak in PyMethodObject repr.
..
.. bpo: 15394
.. date: 9085
.. nonce: polWKA
.. section: Core and Builtins
An issue in `PyModule_Create()` that caused references to be leaked on some
error paths has been fixed. Patch by Julia Lawall.
..
.. bpo: 15368
.. date: 9084
.. nonce: l0rbQ4
.. section: Core and Builtins
An issue that caused bytecode generation to be non-deterministic has been
fixed.
..
.. bpo: 15202
.. date: 9083
.. nonce: K02yPx
.. section: Core and Builtins
Consistently use the name "follow_symlinks" for new parameters in os and
shutil functions.
..
.. bpo: 15314
.. date: 9082
.. nonce: T3keLz
.. section: Core and Builtins
``__main__.__loader__`` is now set correctly during interpreter startup.
..
.. bpo: 15111
.. date: 9081
.. nonce: 1YYX9k
.. section: Core and Builtins
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.
..
.. bpo: 15293
.. date: 9080
.. nonce: V0da2s
.. section: Core and Builtins
Add GC support to the AST base node type.
..
.. bpo: 15291
.. date: 9079
.. nonce: EZLsML
.. section: Core and Builtins
Fix a memory leak where AST nodes where not properly deallocated.
..
.. bpo: 15110
.. date: 9078
.. nonce: bZ0pao
.. section: Core and Builtins
Fix the tracebacks generated by "import xxx" to not show the importlib stack
frames.
..
.. bpo: 16369
.. date: 9077
.. nonce: GtRTux
.. section: Core and Builtins
Global PyTypeObjects not initialized with PyType_Ready(...).
..
.. bpo: 15020
.. date: 9076
.. nonce: 6h6cc-
.. section: Core and Builtins
The program name used to search for Python's path is now "python3" under
Unix, not "python".
..
.. bpo: 15897
.. date: 9075
.. nonce: GQpoBE
.. section: Core and Builtins
zipimport.c doesn't check return value of fseek(). Patch by Felipe Cruz.
..
.. bpo: 15033
.. date: 9074
.. nonce: gKl1Eg
.. section: Core and Builtins
Fix the exit status bug when modules invoked using -m switch, return the
proper failure return value (1). Patch contributed by Jeff Knupp.
..
.. bpo: 15229
.. date: 9073
.. nonce: hUWTFh
.. section: Core and Builtins
An `OSError` subclass whose __init__ doesn't call back OSError.__init__
could produce incomplete instances, leading to crashes when calling str() on
them.
..
.. bpo: 15307
.. date: 9072
.. nonce: mFzbP4
.. section: Core and Builtins
Virtual environments now use symlinks with framework builds on Mac OS X,
like other POSIX builds.
..
.. bpo: 14590
.. date: 9071
.. nonce: RPPwGW
.. section: Library
configparser now correctly strips inline comments when delimiter occurs
earlier without preceding space.
..
.. bpo: 15424
.. date: 9070
.. nonce: w6orRE
.. section: Library
Add a `__sizeof__()` implementation for array objects. Patch by Ludwig
Hähne.
..
.. bpo: 15576
.. date: 9069
.. nonce: twIC1T
.. section: Library
Allow extension modules to act as a package's __init__ module.
..
.. bpo: 15502
.. date: 9068
.. nonce: GTqgJP
.. section: Library
Have `importlib.invalidate_caches()` work on `sys.meta_path` instead of
`sys.path_importer_cache`.
..
.. bpo: 15163
.. date: 9067
.. nonce: EbXsEd
.. section: Library
Pydoc shouldn't list __loader__ as module data.
..
.. bpo: 15471
.. date: 9066
.. nonce: v2y8Qp
.. section: Library
Do not use mutable objects as defaults for `importlib.__import__()`.
..
.. bpo: 15559
.. date: 9065
.. nonce: VHs94w
.. section: Library
To avoid a problematic failure mode when passed to the bytes constructor,
objects in the ipaddress module no longer implement `__index__()` (they
still implement `__int__()` as appropriate).
..
.. bpo: 15546
.. date: 9064
.. nonce: 7Rbh2v
.. section: Library
Fix handling of pathological input data in the peek() and read1() methods of
the BZ2File, GzipFile and LZMAFile classes.
..
.. bpo: 12655
.. date: 9063
.. nonce: ZAyp7B
.. section: Library
Instead of requiring a custom type, `os.sched_getaffinity()` and
`os.sched_setaffinity()` now use regular sets of integers to represent the
CPUs a process is restricted to.
..
.. bpo: 15538
.. date: 9062
.. nonce: gWWn3s
.. section: Library
Fix compilation of the `socket.getnameinfo()` / `socket.getaddrinfo()`
emulation code. Patch by Philipp Hagemeister.
..
.. bpo: 15519
.. date: 9061
.. nonce: 2yTG4N
.. section: Library
Properly expose WindowsRegistryFinder in importlib (and use the correct term
for it). Original patch by Eric Snow.
..
.. bpo: 15502
.. date: 9060
.. nonce: _ap4my
.. section: Library
Bring the importlib ABCs into line with the current state of the import
protocols given PEP 420. Original patch by Eric Snow.
..
.. bpo: 15499
.. date: 9059
.. nonce: TRAS0u
.. section: Library
Launching a webbrowser in Unix used to sleep for a few seconds. Original
patch by Anton Barkovsky.
..
.. bpo: 15463
.. date: 9058
.. nonce: _sPf0r
.. section: Library
The faulthandler module truncates strings to 500 characters, instead of 100,
to be able to display long file paths.
..
.. bpo: 6056
.. date: 9057
.. nonce: nOnpDY
.. section: Library
Make `multiprocessing` use setblocking(True) on the sockets it uses.
Original patch by J Derek Wilson.
..
.. bpo: 15364
.. date: 9056
.. nonce: OM4nfW
.. section: Library
Fix sysconfig.get_config_var('srcdir') to be an absolute path.
..
.. bpo: 15413
.. date: 9055
.. nonce: mADROy
.. section: Library
`os.times()` had disappeared under Windows.
..
.. bpo: 15402
.. date: 9054
.. nonce: RTpYl_
.. section: Library
An issue in the struct module that caused `sys.getsizeof()` to return
incorrect results for struct.Struct instances has been fixed. Initial patch
by Serhiy Storchaka.
..
.. bpo: 15232
.. date: 9053
.. nonce: AKjzKL
.. section: Library
When mangle_from is True, `email.Generator` now correctly mangles lines that
start with 'From ' that occur in a MIME preamble or epilogue.
..
.. bpo: 15094
.. date: 9052
.. nonce: _4f99s
.. section: Library
Incorrectly placed #endif in _tkinter.c. Patch by Serhiy Storchaka.
..
.. bpo: 13922
.. date: 9051
.. nonce: Bv_D0W
.. section: Library
`argparse` no longer incorrectly strips '--'s that appear after the first
one.
..
.. bpo: 12353
.. date: 9050
.. nonce: fYrcGJ
.. section: Library
`argparse` now correctly handles null argument values.
..
.. bpo: 10017
.. date: 9049
.. nonce: CswD6I
.. section: Library
Fix TypeError using pprint on dictionaries with user-defined types as keys
or other unorderable keys. (See also: bpo-14998)
..
.. bpo: 15397
.. date: 9048
.. nonce: xaA9nH
.. section: Library
`inspect.getmodulename()` is now based directly on importlib via a new
`importlib.machinery.all_suffixes()` API.
..
.. bpo: 14635
.. date: 9047
.. nonce: oyc5AR
.. section: Library
`telnetlib` will use poll() rather than select() when possible to avoid
failing due to the select() file descriptor limit.
..
.. bpo: 15180
.. date: 9046
.. nonce: CPeO5l
.. section: Library
Clarify posixpath.join() error message when mixing str & bytes.
..
.. bpo: 15343
.. date: 9045
.. nonce: zT5uuJ
.. section: Library
pkgutil now includes an iter_importer_modules implementation for
importlib.machinery.FileFinder (similar to the way it already handled
zipimport.zipimporter).
..
.. bpo: 15314
.. date: 9044
.. nonce: 1kHyrO
.. section: Library
runpy now sets __main__.__loader__ correctly.
..
.. bpo: 15357
.. date: 9043
.. nonce: fCWRb1
.. section: Library
The import emulation in pkgutil is now deprecated. pkgutil uses importlib
internally rather than the emulation.
..
.. bpo: 15233
.. date: 9042
.. nonce: 8YQW0-
.. section: Library
Python now guarantees that callables registered with the atexit module will
be called in a deterministic order.
..
.. bpo: 15238
.. date: 9041
.. nonce: hBKF6z
.. section: Library
`shutil.copystat()` now copies Linux "extended attributes".
..
.. bpo: 15230
.. date: 9040
.. nonce: hF8Df5
.. section: Library
runpy.run_path now correctly sets __package__ as described in the
documentation.
..
.. bpo: 15315
.. date: 9039
.. nonce: MDcIoC
.. section: Library
Support VS 2010 in distutils cygwincompiler.
..
.. bpo: 15294
.. date: 9038
.. nonce: s_sHkY
.. section: Library
Fix a regression in pkgutil.extend_path()'s handling of nested namespace
packages.
..
.. bpo: 15056
.. date: 9037
.. nonce: _hOdjz
.. section: Library
`imp.cache_from_source()` and `imp.source_from_cache()` raise
NotImplementedError when `sys.implementation.cache_tag` is set to None.
..
.. bpo: 15256
.. date: 9036
.. nonce: j5YTHm
.. section: Library
Grammatical mistake in exception raised by `imp.find_module()`.
..
.. bpo: 5931
.. date: 9035
.. nonce: VKqYde
.. section: Library
`wsgiref` environ variable SERVER_SOFTWARE will specify an implementation
specific term like CPython, Jython instead of generic "Python".
..
.. bpo: 13248
.. date: 9034
.. nonce: N0Q9xt
.. section: Library
Remove obsolete argument "max_buffer_size" of BufferedWriter and
BufferedRWPair, from the io module.
..
.. bpo: 13248
.. date: 9033
.. nonce: _3vbnO
.. section: Library
Remove obsolete argument "version" of `argparse.ArgumentParser`.
..
.. bpo: 14814
.. date: 9032
.. nonce: W1kVVL
.. section: Library
Implement more consistent ordering and sorting behaviour for ipaddress
objects.
..
.. bpo: 14814
.. date: 9031
.. nonce: I6pgMy
.. section: Library
`ipaddress` network objects correctly return NotImplemented when compared to
arbitrary objects instead of raising TypeError.
..
.. bpo: 14990
.. date: 9030
.. nonce: -Zc9sh
.. section: Library
Correctly fail with SyntaxError on invalid encoding declaration.
..
.. bpo: 14814
.. date: 9029
.. nonce: jojpI0
.. section: Library
`ipaddress` now provides more informative error messages when constructing
instances directly (changes permitted during beta due to provisional API
status).
..
.. bpo: 15247
.. date: 9028
.. nonce: LPO5XB
.. section: Library
`io.FileIO` now raises an error when given a file descriptor pointing to a
directory.
..
.. bpo: 15261
.. date: 9027
.. nonce: XiGTFG
.. section: Library
Stop os.stat(fd) crashing on Windows when fd not open.
..
.. bpo: 15166
.. date: 9026
.. nonce: R5xIH3
.. section: Library
Implement `imp.get_tag()` using `sys.implementation.cache_tag`.
..
.. bpo: 15210
.. date: 9025
.. nonce: SOwAHs
.. section: Library
Catch KeyError when `importlib.__init__()` can't find _frozen_importlib in
sys.modules, not ImportError.
..
.. bpo: 15030
.. date: 9024
.. nonce: x8Nujl
.. section: Library
`importlib.abc.PyPycLoader` now supports the new source size header field in
.pyc files.
..
.. bpo: 5346
.. date: 9023
.. nonce: pFwRO0
.. section: Library
Preserve permissions of mbox, MMDF and Babyl mailbox files on flush().
..
.. bpo: 10571
.. date: 9022
.. nonce: X5MB7m
.. section: Library
Fix the "--sign" option of distutils' upload command. Patch by Jakub Wilk.
..
.. bpo: 9559
.. date: 9021
.. nonce: j_O5FY
.. section: Library
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.
..
.. bpo: 10924
.. date: 9020
.. nonce: hzTAWl
.. section: Library
Fixed `crypt.mksalt()` to use a RNG that is suitable for cryptographic
purpose.
..
.. bpo: 15184
.. date: 9019
.. nonce: _o9qHk
.. section: Library
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.
..
.. bpo: 15610
.. date: 9018
.. nonce: 9i-ogW
.. section: C API
`PyImport_ImportModuleEx()` now uses a 'level' of 0 instead of -1.
..
.. bpo: 15169
.. date: 9017
.. nonce: TiQMCK
.. section: C API
Strip out the C implementation of `imp.source_from_cache()` 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. (See
also: bpo-14599)
..
.. bpo: 6493
.. date: 9016
.. nonce: TsfKuQ
.. section: Library
An issue in ctypes on Windows that caused structure bitfields of type
`ctypes.c_uint32` and width 32 to incorrectly be set has been fixed.
..
.. bpo: 15194
.. date: 9015
.. nonce: X7uUdw
.. section: Library
Update libffi to the 3.0.11 release.
..
.. bpo: 13052
.. date: 9014
.. nonce: uLYm16
.. section: IDLE
Fix IDLE crashing when replace string in Search/Replace dialog ended with
``\``. Patch by Roger Serwy.
..
.. bpo: 15458
.. date: 9013
.. nonce: yqKQVd
.. section: Tools/Demos
python-config gets a new option --configdir to print the $LIBPL value.
..
.. bpo: 0
.. date: 9012
.. nonce: GMHP1o
.. section: Tools/Demos
Move importlib.test.benchmark to Tools/importbench.
..
.. bpo: 12605
.. date: 9011
.. nonce: GsN07w
.. section: Tools/Demos
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:
* C frames that are waiting on the GIL
* C frames that are garbage-collecting
* C frames that are due to the invocation of a PyCFunction
..
.. bpo: 15041
.. date: 9010
.. nonce: nMyhwF
.. section: Documentation
Update "see also" list in tkinter documentation.
..
.. bpo: 15444
.. date: 9009
.. nonce: VpoVrT
.. section: Documentation
Use proper spelling for non-ASCII contributor names. Patch by Serhiy
Storchaka.
..
.. bpo: 15295
.. date: 9008
.. nonce: 74vVdW
.. section: Documentation
Reorganize and rewrite the documentation on the import system.
..
.. bpo: 15230
.. date: 9007
.. nonce: gSl9Ew
.. section: Documentation
Clearly document some of the limitations of the runpy module and nudge
readers towards importlib when appropriate.
..
.. bpo: 15053
.. date: 9006
.. nonce: Icoig1
.. section: Documentation
Copy Python 3.3 import lock change notice to all relevant functions in imp
instead of just at the top of the relevant section.
..
.. bpo: 15288
.. date: 9005
.. nonce: S9JauN
.. section: Documentation
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.
..
.. bpo: 13557
.. date: 9004
.. nonce: hxoRWL
.. section: Documentation
Clarify effect of giving two different namespaces to `exec()` or
`execfile()`.
..
.. bpo: 15250
.. date: 9003
.. nonce: 1UQaan
.. section: Documentation
Document that `filecmp.dircmp()` compares files shallowly. Patch contributed
by Chris Jerdonek.
..
.. bpo: 15467
.. date: 9002
.. nonce: 18o7uj
.. section: Tests
Move helpers for `__sizeof__()` tests into test_support. Patch by Serhiy
Storchaka.
..
.. bpo: 15320
.. date: 9001
.. nonce: D9sGMO
.. section: Tests
Make iterating the list of tests thread-safe when running tests in
multiprocess mode. Patch by Chris Jerdonek.
..
.. bpo: 15168
.. date: 9000
.. nonce: 5Wgbv5
.. section: Tests
Move `importlib.test` to `test.test_importlib`.
..
.. bpo: 15091
.. date: 8999
.. nonce: 66ZPS6
.. section: Tests
Reactivate a test on UNIX which was failing thanks to a forgotten
`importlib.invalidate_caches()` call.
..
.. bpo: 15230
.. date: 8998
.. nonce: WoWqyy
.. section: Tests
Adopted a more systematic approach in the runpy tests.
..
.. bpo: 15300
.. date: 8997
.. nonce: Gh3GXC
.. section: Tests
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.
..
.. bpo: 15284
.. date: 8996
.. nonce: eNb_mn
.. section: Tests
Skip {send,recv}msg tests in test_socket when IPv6 is not enabled. Patch by
Brian Brazil.
..
.. bpo: 15277
.. date: 8995
.. nonce: EIIXc8
.. section: Tests
Fix a resource leak in support.py when IPv6 is disabled. Patch by Brian
Brazil.
..
.. bpo: 11715
.. date: 8994
.. nonce: n-NQIf
.. section: Build
Fix multiarch detection without having Debian development tools (dpkg-dev)
installed.
..
.. bpo: 15037
.. date: 8993
.. nonce: SNQtrw
.. section: Build
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.
..
.. bpo: 15560
.. date: 8992
.. nonce: VpYY1z
.. section: Build
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.
..
.. bpo: 8847
.. date: 8991
.. nonce: lqI_r8
.. section: Build
Disable COMDAT folding in Windows PGO builds.
..
.. bpo: 14018
.. date: 8990
.. nonce: RHawO_
.. section: Build
Fix OS X Tcl/Tk framework checking when using OS X SDKs.
..
.. bpo: 16256
.. date: 8989
.. nonce: vrx66r
.. section: Build
OS X installer now sets correct permissions for doc directory.
..
.. bpo: 15431
.. date: 8988
.. nonce: veQwgP
.. section: Build
Add _freeze_importlib project to regenerate importlib.h on Windows. Patch by
Kristján Valur Jónsson.
..
.. bpo: 14197
.. date: 8987
.. nonce: Jyukle
.. section: Build
For OS X framework builds, ensure links to the shared library are created
with the proper ABI suffix.
..
.. bpo: 14330
.. date: 8986
.. nonce: DrQcsD
.. section: Build
For cross builds, don't use host python, use host search paths for host
compiler.
..
.. bpo: 15235
.. date: 8985
.. nonce: kDP-3-
.. section: Build
Allow Berkley DB versions up to 5.3 to build the dbm module.
..
.. bpo: 15268
.. date: 8984
.. nonce: xCKPyN
.. section: Build
Search curses.h in /usr/include/ncursesw.