Commit Graph

84916 Commits

Author SHA1 Message Date
Antoine Pitrou ffef2447ee Try to fix issue #21425 workaround for shared library builds 2014-05-11 19:13:43 +02:00
Antoine Pitrou 5006a56e39 Fix printing out error message when test fails and run with -bb 2014-05-11 19:05:50 +02:00
Antoine Pitrou dab4e8a02d Fix printing out error message when test fails and run with -bb 2014-05-11 19:05:23 +02:00
Antoine Pitrou 3a0cdd5c96 Null merge 2014-05-11 17:30:41 +02:00
Antoine Pitrou 4f23472fc2 Remove debugging output 2014-05-11 17:29:57 +02:00
Antoine Pitrou 6b4b8d0722 Try workaround for test issues in #21425 2014-05-11 16:59:16 +02:00
Antoine Pitrou bb62c18ec9 Try workaround for test issues in #21425 2014-05-11 16:59:16 +02:00
Antoine Pitrou ffd72737d3 Fix debugging output to work with -W 2014-05-11 16:36:22 +02:00
Antoine Pitrou c1b22d9c22 Fix debugging output to work with -bb 2014-05-11 16:24:45 +02:00
Antoine Pitrou 0a44a0b827 Add debugging output for #21425 2014-05-11 16:09:15 +02:00
Antoine Pitrou 1c33280c95 Issue #21425: Fix flushing of standard streams in the interactive interpreter. 2014-05-11 13:43:31 +02:00
Antoine Pitrou 9845c7ebc5 Issue #21425: Fix flushing of standard streams in the interactive interpreter. 2014-05-11 13:42:17 +02:00
Raymond Hettinger c89a451ae1 By popular demand, add back a security warning. 2014-05-11 02:26:23 -07:00
Raymond Hettinger 277842eff1 Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.
Consolidates the logic for nlargest() into a single function so that
decoration tuples (elem,order) or (key, order, elem) only need to
be formed when a new element is added to the heap.  Formerly, a tuple
was created for every element regardless of whether it was added to
the heap.

The change reduces the number of tuples created, the number of ordering
integers created, and total number of tuple comparisons.
2014-05-11 01:55:46 -07:00
Guido van Rossum d6a46ae705 Merge 3.4 -> default: asyncio: Upstream issue #167: remove dead code, by Marc Schlaich. 2014-05-10 15:48:03 -07:00
Guido van Rossum 3d1bc608a8 asyncio: Upstream issue #167: remove dead code, by Marc Schlaich. 2014-05-10 15:47:15 -07:00
Raymond Hettinger a7894f7f4c Remove the redundant and poorly worded warning message.
The paragraph above already says, clearly and correctly, that
"However, being completely deterministic, it is not suitable for
all purposes, and is completely unsuitable for cryptographic purposes."

Also we should make any promises about SystemRandom or os.urandom()
being cryptographically secure (they may be, but be can't validate
that promise).  Further, those are actual random number generators
not psuedo-random number generators.
2014-05-10 14:05:28 -07:00
Jason R. Coombs 09122f84fc Reindent long line 2014-05-10 13:24:58 -04:00
Jason R. Coombs 0375653371 Replace overly-aggressive comparison for type equality with an isinstance check. 2014-05-10 13:24:18 -04:00
Jason R. Coombs a384652d6d Drop support for Python 2.4 in upload command. 2014-05-10 13:22:43 -04:00
Jason R. Coombs 6f71726ecd Replace import * with explicit import 2014-05-10 13:21:02 -04:00
Jason R. Coombs 7ae0fde001 Clean up style in distutils upload command 2014-05-10 13:20:28 -04:00
Eli Bendersky f84866c9af Issue #19655: Add tests for the new asdl parser.
This unit test runs only for source builds of Python, similarly to test_tools.
2014-05-09 19:03:25 -07:00
Eli Bendersky 5e3d338a74 Issue #19655: Replace the ASDL parser carried with CPython
The new parser does not rely on Spark (which is now removed from our repo),
uses modern 3.x idioms and is significantly smaller and simpler.

It generates exactly the same AST files (.h and .c), so in practice no builds
should be affected.
2014-05-09 17:58:22 -07:00
Brett Cannon 732ac654c8 Issue #19721: Consolidate test_importlib utility code into a single
module.
2014-05-09 14:32:57 -04:00
Brett Cannon 91795c8e34 Issue #20776: Flesh out tests for importlib.machinery.PathFinder. 2014-05-09 13:38:11 -04:00
Tim Golden 4b8dd71d0a Issue21452 Add missing backslash to build path for make_buildinfo 2014-05-09 18:19:31 +01:00
Tim Golden 877013fe14 Merge 2014-05-09 18:19:13 +01:00
Tim Golden 55c2364561 Issue21452 Add missing backslash to build path for make_buildinfo 2014-05-09 18:18:11 +01:00
Tim Golden faf4d9ca8b Issue10752 Be more robust when finding a PERL interpreter to build OpenSSL. Initial patch by Gabi Davar 2014-05-09 18:01:44 +01:00
Tim Golden 9c18fcf161 Issue10752 Be more robust when finding a PERL interpreter to build OpenSSL. Initial patch by Gabi Davar 2014-05-09 18:01:19 +01:00
Brett Cannon 6eaac13c92 Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
staticmethod.
2014-05-09 12:28:22 -04:00
Brett Cannon a237a98753 Merge for issue #21438 2014-05-09 11:56:07 -04:00
Brett Cannon 062fcac9a4 Issue #21438: Document what loaders don't require a module name for
load_module().
2014-05-09 11:55:49 -04:00
Brett Cannon f25f25796b Merge for issue #21157 2014-05-09 10:37:55 -04:00
Brett Cannon f26702b86e Issue #21157: Touch up imp docs to be more explicit about importlib
alternatives.
2014-05-09 10:37:31 -04:00
Zachary Ware 10c2dba8b2 Issue #21141: The Windows build process no longer attempts to find Perl,
instead relying on OpenSSL source being configured and ready to build.  The
``PCbuild\build_ssl.py`` script has been re-written and re-named to
``PCbuild\prepare_ssl.py``, and takes care of configuring OpenSSL source
for both 32 and 64 bit platforms.  OpenSSL sources obtained from
svn.python.org will always be pre-configured and ready to build.
2014-05-09 09:07:50 -05:00
Tim Peters 983c1065fe Merge from 3.4.
Issue #21435: Segfault in gc with cyclic trash
Changed the iteration logic in finalize_garbage() to tolerate objects vanishing
from the list as a side effect of executing a finalizer.
2014-05-08 17:43:25 -05:00
Tim Peters 5fbc7b12f7 Issue #21435: Segfault in gc with cyclic trash
Changed the iteration logic in finalize_garbage() to tolerate objects vanishing
from the list as a side effect of executing a finalizer.
2014-05-08 17:42:19 -05:00
Antoine Pitrou 38ca5a7b6d Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a flush() on the underlying binary stream.
Patch by akira.
2014-05-09 00:31:32 +02:00
Antoine Pitrou c644e7c39f Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a flush() on the underlying binary stream.
Patch by akira.
2014-05-09 00:24:50 +02:00
Charles-François Natali d30b022b5e Issue #21037: Add a build option to enable AddressSanitizer support. 2014-05-08 23:08:51 +01:00
R David Murray ef8f7792f3 Merge #21300: fix typo 2014-05-08 10:06:17 -04:00
R David Murray a83ade1d60 #21300: fix typo 2014-05-08 10:05:47 -04:00
Kristján Valur Jónsson f3d90fb46b Merge with 3.4 2014-05-08 11:18:27 +00:00
Kristján Valur Jónsson 5b74badc8d Merging from 3.3: The PyCOND_TIMEDWAIT must use microseconds for the timeout argument
in order to have the same resolution as pthreads condition variables.
At the same time, it must be large enough to accept 31 bits of
milliseconds, which is the maximum timeout value in the windows API.
A PY_LONG_LONG of microseconds fullfills both requirements.
This closes issue #20737
2014-05-08 10:59:52 +00:00
Kristján Valur Jónsson 33096fe829 The PyCOND_TIMEDWAIT must use microseconds for the timeout argument
in order to have the same resolution as pthreads condition variables.
At the same time, it must be large enough to accept 31 bits of
milliseconds, which is the maximum timeout value in the windows API.
A PY_LONG_LONG of microseconds fullfills both requirements.
This closes issue #20737
2014-05-08 10:36:27 +00:00
Kristján Valur Jónsson ddf343855d The PyCOND_TIMEDWAIT must use microseconds for the timeout argument
in order to have the same resolution as pthreads condition variables.
At the same time, it must be large enough to accept 31 bits of
milliseconds, which is the maximum timeout value in the windows API.
A PY_LONG_LONG of microseconds fullfills both requirements.
This closes issue #20737
2014-05-08 10:36:27 +00:00
Tim Golden ba74885e0c Issue19643 Fix whitespace 2014-05-07 18:08:08 +01:00
Tim Golden 783377998a Issue19643 Add an example of shutil.rmtree which shows how to cope with readonly files on Windows 2014-05-07 18:05:45 +01:00