]>
granicus.if.org Git - python/log
Brett Cannon [Fri, 29 Nov 2013 21:17:05 +0000 (16:17 -0500)]
Issue #19712: Port test.test_importlib.import_ tests to use PEP 451
that don't require changing test.test_importlib.util.mock_modules().
Charles-François Natali [Fri, 29 Nov 2013 17:57:47 +0000 (18:57 +0100)]
Remove trailing blanks.
Charles-François Natali [Fri, 29 Nov 2013 17:52:51 +0000 (18:52 +0100)]
Set the FDs non-blocking in the selectors example.
Guido van Rossum [Fri, 29 Nov 2013 17:29:00 +0000 (09:29 -0800)]
asyncio: Add 'shield' to __all__.
Brett Cannon [Fri, 29 Nov 2013 16:00:11 +0000 (11:00 -0500)]
Issue #19698: Remove exec_module() from the built-in and extension
module loaders.
Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
Serhiy Storchaka [Fri, 29 Nov 2013 10:19:53 +0000 (12:19 +0200)]
Issue #19795: Improved markup of True/False constants.
Serhiy Storchaka [Fri, 29 Nov 2013 10:17:13 +0000 (12:17 +0200)]
Issue #19795: Improved markup of True/False constants.
Alexandre Vassalotti [Fri, 29 Nov 2013 01:09:16 +0000 (17:09 -0800)]
Use PyDict_GetItemWithError instead of PyDict_GetItem in cpickle.
Alexandre Vassalotti [Thu, 28 Nov 2013 23:17:29 +0000 (15:17 -0800)]
Remove explicit empty tuple reuse in cpickle.
PyTuple_New(0) always returns the same empty tuple from its free list anyway,
so we are not saving much here. Plus, the code where this was used is on
uncommon run paths.
Alexandre Vassalotti [Thu, 28 Nov 2013 22:56:09 +0000 (14:56 -0800)]
Remove the tuple reuse optimization in _Pickle_FastCall.
I have noticed a race-condition occurring on one of the buildbots because of
this optimization. The function called may release the GIL which means
multiple threads may end up accessing the shared tuple. I could fix it up by
storing the tuple to the Pickler and Unipickler object again, but honestly it
really not worth the trouble.
I ran many benchmarks and the only time the optimization helps is when using a
fin-memory file, like io.BytesIO on which reads are super cheap, combined with
pickle protocol less than 4. Even in this contrived case, the speedup is a
about 5%. For everything else, this optimization does not provide any
noticable improvements.
Eli Bendersky [Thu, 28 Nov 2013 14:53:05 +0000 (06:53 -0800)]
Some minor clarifications in the documentation of pathlib + inheritance diagram
Eli Bendersky [Thu, 28 Nov 2013 14:35:40 +0000 (06:35 -0800)]
Issue #19815: Fix segfault when parsing empty namespace declaration.
Based on patches by Christian Heimes and Vajrasky Kok
Eli Bendersky [Thu, 28 Nov 2013 14:33:21 +0000 (06:33 -0800)]
Fix indentation from previous commit
Eli Bendersky [Thu, 28 Nov 2013 14:31:58 +0000 (06:31 -0800)]
Issue #19815: Fix segfault when parsing empty namespace declaration.
Based on patches by Christian Heimes and Vajrasky Kok
Christian Heimes [Thu, 28 Nov 2013 14:12:15 +0000 (15:12 +0100)]
SNI was added in OpenSSL 0.9.8f [11 Oct 2007], too
Christian Heimes [Thu, 28 Nov 2013 07:06:54 +0000 (08:06 +0100)]
ssl.create_default_context() sets OP_NO_COMPRESSION to prevent CRIME
Zachary Ware [Thu, 28 Nov 2013 05:56:04 +0000 (23:56 -0600)]
Issue #19595: Re-enable a long-disabled test in test_winsound
Alexandre Vassalotti [Thu, 28 Nov 2013 03:36:52 +0000 (19:36 -0800)]
Encapsulate cpickle global state in a dedicated object.
This implements PEP 3121 module finalization as well. This change does not
cause any significant impact on performance.
Ned Deily [Wed, 27 Nov 2013 22:42:55 +0000 (14:42 -0800)]
Change pathlib documentation to use "raise" instead of "throw".
Victor Stinner [Wed, 27 Nov 2013 22:39:55 +0000 (23:39 +0100)]
Issue #19818: tracemalloc, the number of frame limit cannot be zero anymore
Guido van Rossum [Wed, 27 Nov 2013 22:12:48 +0000 (14:12 -0800)]
asyncio: Change write buffer use to avoid O(N**2). Make write()/sendto() accept bytearray/memoryview too. Change some asserts with proper exceptions.
Victor Stinner [Wed, 27 Nov 2013 21:27:13 +0000 (22:27 +0100)]
Closes #19786: tracemalloc, remove the arbitrary limit of 100 frames
The limit is now 178,956,969 on 64 bit (it is greater on 32 bit because
structures are smaller).
Use int instead of Py_ssize_t to store the number of frames to have smaller
traceback_t objects.
Victor Stinner [Wed, 27 Nov 2013 20:39:49 +0000 (21:39 +0100)]
Close #19798: replace "maximum" term with "peak" in get_traced_memory()
documentation. Use also the term "current" for the current size.
Guido van Rossum [Wed, 27 Nov 2013 18:37:13 +0000 (10:37 -0800)]
asyncio: Fix get_event_loop() to call set_event_loop() when setting the loop. By Anthony Baire.
Benjamin Peterson [Wed, 27 Nov 2013 15:18:54 +0000 (09:18 -0600)]
add SO_PRIORITY (closes #19802)
Patch by Claudiu Popa.
Alexandre Vassalotti [Wed, 27 Nov 2013 10:26:54 +0000 (02:26 -0800)]
Combine the FastCall functions in cpickle.
I fixed the bug that was in my previous attempt of this cleanup. I ran
the full test suite to verify I didn't introduce any obvious bugs.
Serhiy Storchaka [Wed, 27 Nov 2013 06:58:13 +0000 (08:58 +0200)]
Skip test_find_mac on Windows (issue #19804).
This test requires the ifconfig executable on $PATH, /sbin/, or /usr/sbin.
Serhiy Storchaka [Wed, 27 Nov 2013 06:57:51 +0000 (08:57 +0200)]
Skip test_find_mac on Windows (issue #19804).
This test requires the ifconfig executable on $PATH, /sbin/, or /usr/sbin.
Benjamin Peterson [Wed, 27 Nov 2013 05:05:37 +0000 (23:05 -0600)]
merge 3.3 (#19805)
Benjamin Peterson [Wed, 27 Nov 2013 05:05:25 +0000 (23:05 -0600)]
recommend OrderedDict for this FAQ (closes #19805)
Benjamin Peterson [Wed, 27 Nov 2013 01:24:01 +0000 (19:24 -0600)]
merge 3.3 (#19729)
Benjamin Peterson [Wed, 27 Nov 2013 01:22:36 +0000 (19:22 -0600)]
fix format spec recursive expansion (closes #19729)
Zachary Ware [Tue, 26 Nov 2013 22:34:45 +0000 (16:34 -0600)]
Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on the
pythoncore sub-project. This should prevent build errors due a previous
build's python(_d).exe still running.
Zachary Ware [Tue, 26 Nov 2013 22:32:59 +0000 (16:32 -0600)]
Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on the
pythoncore sub-project. This should prevent build errors due a previous
build's python(_d).exe still running.
Zachary Ware [Tue, 26 Nov 2013 20:58:10 +0000 (14:58 -0600)]
Merge with 3.3
Zachary Ware [Tue, 26 Nov 2013 20:57:45 +0000 (14:57 -0600)]
Merge heads
Zachary Ware [Tue, 26 Nov 2013 20:57:10 +0000 (14:57 -0600)]
Merge heads
Zachary Ware [Tue, 26 Nov 2013 20:54:21 +0000 (14:54 -0600)]
Issue #19588: Merge with 3.3
Zachary Ware [Tue, 26 Nov 2013 20:50:10 +0000 (14:50 -0600)]
Issue #19588: Fixed tests in test_random that were silently skipped most
of the time. Patch by Julian Gindi.
Serhiy Storchaka [Tue, 26 Nov 2013 20:49:36 +0000 (22:49 +0200)]
Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface. Original patch by Kent Frazier.
Serhiy Storchaka [Tue, 26 Nov 2013 20:47:16 +0000 (22:47 +0200)]
Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with
virtual interface. Original patch by Kent Frazier.
Mark Dickinson [Tue, 26 Nov 2013 20:29:06 +0000 (20:29 +0000)]
Use @bigmemtest more accurately.
Mark Dickinson [Tue, 26 Nov 2013 20:28:29 +0000 (20:28 +0000)]
Use @bigmemtest more accurately.
Serhiy Storchaka [Tue, 26 Nov 2013 19:37:12 +0000 (21:37 +0200)]
Issue #19793: Improved markup for True/False constants in pathlib documentation.
Serhiy Storchaka [Tue, 26 Nov 2013 19:27:11 +0000 (21:27 +0200)]
Issue #11489: JSON decoder now accepts lone surrogates.
Serhiy Storchaka [Tue, 26 Nov 2013 19:25:28 +0000 (21:25 +0200)]
Issue #11489: JSON decoder now accepts lone surrogates.
Mark Dickinson [Tue, 26 Nov 2013 16:19:38 +0000 (16:19 +0000)]
Issue #19638: Merge from 3.3
Mark Dickinson [Tue, 26 Nov 2013 16:19:13 +0000 (16:19 +0000)]
Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float.
Serhiy Storchaka [Tue, 26 Nov 2013 15:33:13 +0000 (17:33 +0200)]
Issue #19794: Improved markup for True/False constants.
Serhiy Storchaka [Tue, 26 Nov 2013 15:32:16 +0000 (17:32 +0200)]
Issue #19794: Improved markup for True/False constants.
Serhiy Storchaka [Tue, 26 Nov 2013 15:08:24 +0000 (17:08 +0200)]
Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests.
Change stacklevel in warnings.warn() for 'SO' key to 2.
Victor Stinner [Tue, 26 Nov 2013 09:46:06 +0000 (10:46 +0100)]
tracemalloc: fix get_traced_memory() docstring for result type
Victor Stinner [Tue, 26 Nov 2013 09:16:25 +0000 (10:16 +0100)]
tracemalloc: Fix hash methods of Statistic and StatisticDiff
Georg Brandl [Tue, 26 Nov 2013 07:25:45 +0000 (08:25 +0100)]
merge with 3.3
Georg Brandl [Tue, 26 Nov 2013 07:25:24 +0000 (08:25 +0100)]
Markup fix.
Christian Heimes [Tue, 26 Nov 2013 00:32:15 +0000 (01:32 +0100)]
Fix suspicious test case
Victor Stinner [Tue, 26 Nov 2013 00:18:52 +0000 (01:18 +0100)]
Issue #18874: Fix typo
Victor Stinner [Tue, 26 Nov 2013 00:08:53 +0000 (01:08 +0100)]
Issue #18874: make it more explicit than set_reentrant() only accept 0 or 1
Victor Stinner [Tue, 26 Nov 2013 00:06:02 +0000 (01:06 +0100)]
Issue #18874: tracemalloc: Comment the trace_t structure
Victor Stinner [Mon, 25 Nov 2013 23:45:47 +0000 (00:45 +0100)]
Issue #18874: allow to call tracemalloc.Snapshot.statistics(cumulative=True)
with traceback_limit=1
Victor Stinner [Mon, 25 Nov 2013 23:40:10 +0000 (00:40 +0100)]
Issue #18874: apply Jim Jewett's patch on tracemalloc doc
Victor Stinner [Mon, 25 Nov 2013 23:26:23 +0000 (00:26 +0100)]
Issue #18874: tracemalloc: explain the purpose of get_traces.tracebacks in a comment
Guido van Rossum [Mon, 25 Nov 2013 23:07:18 +0000 (15:07 -0800)]
asyncio: Add StreamReaderProtocol to __all__.
Victor Stinner [Mon, 25 Nov 2013 22:19:58 +0000 (23:19 +0100)]
Issue #19752: Fix "HAVE_DEV_PTMX" implementation of os.openpty()
Regression introduced by the implementation of the PEP 446 (non-inheritable
file descriptors by default).
master_fd must be set non-inheritable after the creation of the slave_fd,
otherwise grantpt(master_fd) fails with EPERM (errno 13).
Alexandre Vassalotti [Mon, 25 Nov 2013 21:25:12 +0000 (13:25 -0800)]
Reverting
e39db21df580 eagerly due to buildbot failures.
Ezio Melotti [Mon, 25 Nov 2013 21:20:20 +0000 (23:20 +0200)]
#13592, #17087: add whatsnew entry about regex/match object repr improvements.
Alexandre Vassalotti [Mon, 25 Nov 2013 21:03:32 +0000 (13:03 -0800)]
Combine _Pickler_FastCall and _Unpickler_FastCall in cpickle.
Ezio Melotti [Mon, 25 Nov 2013 20:47:01 +0000 (22:47 +0200)]
#19778: fix a couple of re reprs in the documentation.
Alexandre Vassalotti [Mon, 25 Nov 2013 19:35:46 +0000 (11:35 -0800)]
Issue #19739: Try to fix compiler warnings on 32-bit Windows.
Antoine Pitrou [Mon, 25 Nov 2013 18:51:53 +0000 (19:51 +0100)]
Issue #19742: fix a test_pathlib failure when a file owner or group isn't in the system database
Antoine Pitrou [Mon, 25 Nov 2013 18:11:07 +0000 (19:11 +0100)]
Issue #19691: remove outdated mention about RuntimeError
Antoine Pitrou [Mon, 25 Nov 2013 18:08:32 +0000 (19:08 +0100)]
Issue #19691: remove outdated mention about RuntimeError
Guido van Rossum [Mon, 25 Nov 2013 18:06:34 +0000 (10:06 -0800)]
asyncio: Hopeful fix for issue 19765.
Guido van Rossum [Mon, 25 Nov 2013 17:43:52 +0000 (09:43 -0800)]
asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.
Victor Stinner [Mon, 25 Nov 2013 09:43:59 +0000 (10:43 +0100)]
Issue #19753: New try to fix test_gdb on System Z buildbot
Victor Stinner [Mon, 25 Nov 2013 08:40:27 +0000 (09:40 +0100)]
Mention the new tracemalloc module in the What's New in Python 3.4 document
Victor Stinner [Mon, 25 Nov 2013 08:33:18 +0000 (09:33 +0100)]
Close #19762: Fix name of _get_traces() and _get_object_traceback() function
name in their docstring. Patch written by Vajrasky Kok.
Gregory P. Smith [Mon, 25 Nov 2013 08:32:20 +0000 (00:32 -0800)]
merge heads
Gregory P. Smith [Mon, 25 Nov 2013 08:31:31 +0000 (00:31 -0800)]
Remove an errant extra \ within a docstring.
Gregory P. Smith [Mon, 25 Nov 2013 08:30:56 +0000 (00:30 -0800)]
Remove an errant extra \ within a docstring.
Victor Stinner [Mon, 25 Nov 2013 08:29:45 +0000 (09:29 +0100)]
Cleanup test_tracemalloc.py. Patch written by Vajrasky Kok.
Georg Brandl [Mon, 25 Nov 2013 07:52:24 +0000 (08:52 +0100)]
merge with 3.3
Georg Brandl [Mon, 25 Nov 2013 07:48:37 +0000 (08:48 +0100)]
Closes #19622: clarify message about bufsize changes in 3.2.4 and 3.3.1.
Georg Brandl [Mon, 25 Nov 2013 07:29:54 +0000 (08:29 +0100)]
merge with 3.3
Georg Brandl [Mon, 25 Nov 2013 07:29:44 +0000 (08:29 +0100)]
Fix doc markup error.
Guido van Rossum [Mon, 25 Nov 2013 06:41:35 +0000 (22:41 -0800)]
asyncio: Fix docstring of get_nowait().
Alexandre Vassalotti [Mon, 25 Nov 2013 06:41:13 +0000 (22:41 -0800)]
Merge save_int into save_long in cpickle to remove redundant code.
Also, replace unnessary uses of the #if preprocessor directive.
Guido van Rossum [Mon, 25 Nov 2013 06:32:09 +0000 (22:32 -0800)]
asyncio: Add BoundedSemaphore to export list in locks.__all__.
Alexandre Vassalotti [Mon, 25 Nov 2013 05:40:18 +0000 (21:40 -0800)]
Simplify save_bool in cpickle.
Ezio Melotti [Mon, 25 Nov 2013 04:41:00 +0000 (06:41 +0200)]
Merge broken link fix from 3.3.
Ezio Melotti [Mon, 25 Nov 2013 04:40:12 +0000 (06:40 +0200)]
Fix broken link in html.entities docs.
Ezio Melotti [Mon, 25 Nov 2013 04:18:47 +0000 (06:18 +0200)]
Add whatsnew section about the html package.
Ezio Melotti [Mon, 25 Nov 2013 03:16:09 +0000 (05:16 +0200)]
#19620: merge with 3.3.
Ezio Melotti [Mon, 25 Nov 2013 03:14:51 +0000 (05:14 +0200)]
#19620: Fix typo in docstring (noticed by Christopher Welborn).
Raymond Hettinger [Sun, 24 Nov 2013 22:53:54 +0000 (14:53 -0800)]
merge
Raymond Hettinger [Sun, 24 Nov 2013 22:53:29 +0000 (14:53 -0800)]
Document that @property can incorporate a docstring from the getter method. Improve readabilty with additional whitespace.
Christian Heimes [Sun, 24 Nov 2013 22:14:16 +0000 (23:14 +0100)]
Issue #19758: silence PendingDeprecationWarnings in test_hmac
I also removed some bare excepts from the tests.
Larry Hastings [Sun, 24 Nov 2013 22:05:57 +0000 (14:05 -0800)]
Merged 3.4.0b1 release head back into trunk.
Serhiy Storchaka [Sun, 24 Nov 2013 21:13:26 +0000 (23:13 +0200)]
Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.
Changed deprecation message in the fileinput module.
Alexandre Vassalotti [Sun, 24 Nov 2013 20:25:48 +0000 (12:25 -0800)]
Use Clinic to process arguments in cpickle.
This doesn't make any functional changes to the exisiting implementation. The
conversion did help however uncover documentation bugs. The best thing about
this conversion is less C code to maintain by hand.