]>
granicus.if.org Git - python/log
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.
Stefan Krah [Sun, 24 Nov 2013 18:56:23 +0000 (19:56 +0100)]
Merge from 3.3.
Stefan Krah [Sun, 24 Nov 2013 18:44:57 +0000 (19:44 +0100)]
1) Prepare libmpdec for the 2.4.0 release. None of the following changes affects
_decimal:
o Make all "mpd_t to C integer" conversion functions available in both the
64-bit and the 32-bit versions.
o Make all mixed mpd_t/C integer arithmetic functions available in the
32-bit version.
o Better handling of __STDC_LIMIT_MACROS for C++ users.
o Add struct tags (at the request of C++ users).
2) Check for libmpdec.so.2 if --with-system-libmpdec is used.
Victor Stinner [Sun, 24 Nov 2013 18:23:25 +0000 (19:23 +0100)]
Issue #19636: Fix usage of MAX_PATH in posixmodule.c
Victor Stinner [Sun, 24 Nov 2013 18:22:57 +0000 (19:22 +0100)]
Issue #19636: Fix posix__getvolumepathname(), raise an OverflowError if
the length doesn't fit in an DWORD
Victor Stinner [Sun, 24 Nov 2013 17:55:25 +0000 (18:55 +0100)]
Issue #19753: Try to fix test_gdb on SystemZ buildbot
Richard Oudkerk [Sun, 24 Nov 2013 17:50:40 +0000 (17:50 +0000)]
Issue #19740: Use WaitForSingleObject() instead of trusting TimerOrWaitFired.
Serhiy Storchaka [Sun, 24 Nov 2013 16:17:11 +0000 (18:17 +0200)]
Issue #19545: Avoid chained exceptions while passing stray % to
time.strptime(). Initial patch by Claudiu Popa.
Serhiy Storchaka [Sun, 24 Nov 2013 16:15:37 +0000 (18:15 +0200)]
Issue #19545: Avoid chained exceptions while passing stray % to
time.strptime(). Initial patch by Claudiu Popa.
Georg Brandl [Sun, 24 Nov 2013 15:18:23 +0000 (16:18 +0100)]
merge with 3.3
Georg Brandl [Sun, 24 Nov 2013 15:17:54 +0000 (16:17 +0100)]
Doc/Makefile: also do "make suspicious" during daily autobuild
Georg Brandl [Sun, 24 Nov 2013 15:09:26 +0000 (16:09 +0100)]
Fix suspicious markup in the docs.
Larry Hastings [Sun, 24 Nov 2013 15:01:59 +0000 (07:01 -0800)]
Added tag v3.4.0b1 for changeset
3405dc9a6afa
Larry Hastings [Sun, 24 Nov 2013 14:59:35 +0000 (06:59 -0800)]
Bump version number to 3.4.0b1.
Eli Bendersky [Sun, 24 Nov 2013 14:55:04 +0000 (06:55 -0800)]
Cosmetic fixes
Larry Hastings [Sun, 24 Nov 2013 14:53:15 +0000 (06:53 -0800)]
Updated pydoc topics for 3.4.0b1.
Antoine Pitrou [Sun, 24 Nov 2013 14:01:39 +0000 (15:01 +0100)]
Null merge
Antoine Pitrou [Sun, 24 Nov 2013 13:58:17 +0000 (14:58 +0100)]
Issue #19743: fix test_gdb on some optimized Python builds
Antoine Pitrou [Sun, 24 Nov 2013 13:58:17 +0000 (14:58 +0100)]
Issue #19743: fix test_gdb on some optimized Python builds
Antoine Pitrou [Sun, 24 Nov 2013 13:33:37 +0000 (14:33 +0100)]
Selectively re-enable framing tests
Larry Hastings [Sun, 24 Nov 2013 12:41:57 +0000 (04:41 -0800)]
Clinic: fix "self converters" with METH_NOARGS functions.
Larry Hastings [Sun, 24 Nov 2013 12:23:35 +0000 (04:23 -0800)]
Clinic: Add warning for untested (and unused in CPython!) format units.
Georg Brandl [Sun, 24 Nov 2013 11:39:56 +0000 (12:39 +0100)]
Fix a few markup problems in the new import doc.
Victor Stinner [Sun, 24 Nov 2013 11:27:59 +0000 (12:27 +0100)]
Issue #19741: cleanup tracemalloc_realloc()
Explain that unhandled error case is very unlikely
Alexandre Vassalotti [Sun, 24 Nov 2013 11:07:35 +0000 (03:07 -0800)]
Remove code path in cpickle that does not exist in pickle.
Victor Stinner [Sun, 24 Nov 2013 10:37:15 +0000 (11:37 +0100)]
Issue #19741: tracemalloc: report tracemalloc_log_alloc() failure to the caller
for new allocations, but not when a memory block was already resized
Alexandre Vassalotti [Sun, 24 Nov 2013 10:53:45 +0000 (02:53 -0800)]
Make Ellipsis and NotImplemented picklable through the reduce protocol.
Alexandre Vassalotti [Sun, 24 Nov 2013 10:41:05 +0000 (02:41 -0800)]
Make built-in methods picklable through the reduce protocol.
Victor Stinner [Sun, 24 Nov 2013 10:28:20 +0000 (11:28 +0100)]
Issue #19741: fix tracemalloc_log_alloc(), handle _Py_HASHTABLE_SET() failure
Zachary Ware [Sun, 24 Nov 2013 08:21:57 +0000 (02:21 -0600)]
Issue #3158: Relax new doctests a bit.
Apparently, the number of objects with docstrings in builtins varies
with --with-pydebug (non-debug has one fewer).
Also, skip the new tests entirely if built --without-doc-strings.
Zachary Ware [Sun, 24 Nov 2013 07:20:14 +0000 (01:20 -0600)]
Merge heads
Zachary Ware [Sun, 24 Nov 2013 07:19:09 +0000 (01:19 -0600)]
Issue #3158: doctest can now find doctests in functions and methods
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
Nick Coghlan [Sun, 24 Nov 2013 06:49:20 +0000 (16:49 +1000)]
Issue #19734: Also run pip version check in isolated mode
Nick Coghlan [Sun, 24 Nov 2013 04:58:31 +0000 (14:58 +1000)]
Issue #19734: Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
Alexandre Vassalotti [Sun, 24 Nov 2013 04:58:24 +0000 (20:58 -0800)]
Disable annoying tests which doesn't work optimized pickles.
Alexandre Vassalotti [Sun, 24 Nov 2013 04:30:03 +0000 (20:30 -0800)]
Make framing optional in pickle protocol 4.
This will allow us to control in the future whether to use framing or not.
For example, we may want to turn it off for tiny pickle where it doesn't
help.
The change also improves performance slightly:
### fastpickle ###
Min: 0.608517 -> 0.557358: 1.09x faster
Avg: 0.798892 -> 0.694738: 1.15x faster
Significant (t=3.45)
Stddev: 0.17145 -> 0.12704: 1.3496x smaller
Timeline: http://goo.gl/3xQE1J
### pickle_dict ###
Min: 0.669920 -> 0.615271: 1.09x faster
Avg: 0.733633 -> 0.645058: 1.14x faster
Significant (t=5.05)
Stddev: 0.12041 -> 0.02961: 4.0662x smaller
Timeline: http://goo.gl/LpLSXI
### pickle_list ###
Min: 0.397583 -> 0.368112: 1.08x faster
Avg: 0.412784 -> 0.397223: 1.04x faster
Significant (t=2.78)
Stddev: 0.01518 -> 0.03653: 2.4068x larger
Timeline: http://goo.gl/v39E59
### unpickle_list ###
Min: 0.692935 -> 0.594870: 1.16x faster
Avg: 0.730012 -> 0.628395: 1.16x faster
Significant (t=17.76)
Stddev: 0.02720 -> 0.02995: 1.1012x larger
Timeline: http://goo.gl/2P9AEt
The following not significant results are hidden, use -v to show them:
fastunpickle.
Nick Coghlan [Sun, 24 Nov 2013 02:53:50 +0000 (12:53 +1000)]
Issue #19734: ctypes resource management fixes
Nick Coghlan [Sun, 24 Nov 2013 02:45:25 +0000 (12:45 +1000)]
Issue #19744 (temp workaround): without ssl, skip pip test
Ned Deily [Sun, 24 Nov 2013 02:40:41 +0000 (18:40 -0800)]
Fix typo in and reformat OS X Installer ReadMe
Christian Heimes [Sun, 24 Nov 2013 02:32:51 +0000 (03:32 +0100)]
Fix make distclean for out-of-tree builds
Christian Heimes [Sun, 24 Nov 2013 02:32:40 +0000 (03:32 +0100)]
Fix make distclean for out-of-tree builds
Nick Coghlan [Sun, 24 Nov 2013 01:53:03 +0000 (11:53 +1000)]
Issue #19734: venv still needs isolated mode
Nick Coghlan [Sun, 24 Nov 2013 01:36:31 +0000 (11:36 +1000)]
Issue 19734: better diagnostics for test_venv failures
Larry Hastings [Sun, 24 Nov 2013 01:35:48 +0000 (17:35 -0800)]
Fix inspect.signature tests for builtins when docstrings are compiled out.
Antoine Pitrou [Sun, 24 Nov 2013 00:55:05 +0000 (01:55 +0100)]
Try to fix test_tarfile under Windows
Serhiy Storchaka [Sun, 24 Nov 2013 00:30:59 +0000 (02:30 +0200)]
Build a list of supported test tarfiles dynamically for CLI "test" command
tests (issue13477).
Christian Heimes [Sun, 24 Nov 2013 00:12:22 +0000 (01:12 +0100)]
merge
Christian Heimes [Sun, 24 Nov 2013 00:11:57 +0000 (01:11 +0100)]
Add _opcode to Windows build env
Larry Hastings [Sun, 24 Nov 2013 00:11:17 +0000 (16:11 -0800)]
Don't attempt to run the _opcode test if it wasn't built.
Serhiy Storchaka [Sat, 23 Nov 2013 23:53:29 +0000 (01:53 +0200)]
Issue #13477: Added command line interface to the tarfile module.
Original patch by Berker Peksag.
Larry Hastings [Sat, 23 Nov 2013 23:37:55 +0000 (15:37 -0800)]
Issue #19674: inspect.signature() now produces a correct signature
for some builtins.
Guido van Rossum [Sat, 23 Nov 2013 23:36:43 +0000 (15:36 -0800)]
Keep asyncio working with Python 3.3 too.