Victor Stinner [Thu, 18 Dec 2014 22:47:27 +0000 (23:47 +0100)]
asyncio: sync with Tulip
* Fix a race condition in BaseSubprocessTransport._try_finish().
If the process exited before the _post_init() method was called, scheduling
the call to _call_connection_lost() with call_soon() is wrong:
connection_made() must be called before connection_lost().
Reuse the BaseSubprocessTransport._call() method to schedule the call to
_call_connection_lost() to ensure that connection_made() and
connection_lost() are called in the correct order.
Serhiy Storchaka [Tue, 16 Dec 2014 16:00:56 +0000 (18:00 +0200)]
Issue #19858: pickletools.optimize() now aware of the MEMOIZE opcode, can
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
Ned Deily [Sat, 13 Dec 2014 08:17:46 +0000 (00:17 -0800)]
Issue #17128: Use private version of OpenSSL for 3.x OS X 10.5+ installers.
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot
verify newer SHA-256 certs as now used by python.org services. Document
in the installer ReadMe some of the certificate management issues that
users now need to be more concerned with due to PEP 476's enabling cert
verification by default. For now, continue to use the Apple-supplied
0.9.8 libs for the 10.6+ installer since they use Apple private APIs to
verify certificates using the system- and user-managed CA keychain stores.
Victor Stinner [Fri, 12 Dec 2014 12:17:41 +0000 (13:17 +0100)]
Issue #18028: Fix aliasing issue in READ_TIMESTAMP() of ceval.c on x86_64,
when Python is configure with --with-tsc. Patch written by Christian Heimes.
Terry Jan Reedy [Wed, 10 Dec 2014 23:38:19 +0000 (18:38 -0500)]
Issue #23006: Improve the documentation and indexing of dict.__missing__.
Add an entry in the language datamodel special methods section.
Revise and index its discussion in the stdtypes mapping/dict section.
Berker Peksag [Wed, 10 Dec 2014 00:50:32 +0000 (02:50 +0200)]
Issue #21775: shutil.copytree(): fix crash when copying to VFAT
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).
Victor Stinner [Fri, 5 Dec 2014 09:17:10 +0000 (10:17 +0100)]
Issue #22599: Enhance tokenize.open() to be able to call it during Python
finalization.
Before the module kept a reference to the builtins module, but the module
attributes are cleared during Python finalization. Instead, keep directly a
reference to the open() function.
This enhancement is not perfect, calling tokenize.open() can still fail if
called very late during Python finalization. Usually, the function is called
by the linecache module which is called to display a traceback or emit a
warning.
Terry Jan Reedy [Fri, 5 Dec 2014 07:43:07 +0000 (02:43 -0500)]
Edit Menus section of Idle doc. Make menu entries match current Idle in order
and case. Edit some of the explanatory sentences and end all with a period.
Victor Stinner [Fri, 5 Dec 2014 00:44:10 +0000 (01:44 +0100)]
Closes #22429, asyncio: Fix EventLoop.run_until_complete(), don't stop the
event loop if a BaseException is raised, because the event loop is already
stopped.
Terry Jan Reedy [Thu, 4 Dec 2014 05:54:59 +0000 (00:54 -0500)]
Issue #16893: For Idle doc, move index entries, copy no-subprocess section
from idlelib/help.txt, add 'C' comment, and remove obsolete ^Z comment
Original patch by Zach Ware.
Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
Barry Warsaw [Mon, 1 Dec 2014 22:23:55 +0000 (17:23 -0500)]
- Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is
asked to compile a source file containing multiple dots in the source file
name.
Barry Warsaw [Mon, 1 Dec 2014 22:10:10 +0000 (17:10 -0500)]
- Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is
asked to compile a source file containing multiple dots in the source file
name.