]> granicus.if.org Git - python/log
python
11 years agonull merge
Łukasz Langa [Tue, 23 Apr 2013 23:30:20 +0000 (01:30 +0200)]
null merge

11 years agobackported rev 79713 from 3.4, test_recursion_limit skipped for -O0
Łukasz Langa [Tue, 23 Apr 2013 23:29:26 +0000 (01:29 +0200)]
backported rev 79713 from 3.4, test_recursion_limit skipped for -O0

11 years agofix character index in ExtendedInterpolation's exception message
Łukasz Langa [Tue, 23 Apr 2013 23:25:55 +0000 (01:25 +0200)]
fix character index in ExtendedInterpolation's exception message

11 years agofix character index in ExtendedInterpolation's exception message
Łukasz Langa [Tue, 23 Apr 2013 23:25:18 +0000 (01:25 +0200)]
fix character index in ExtendedInterpolation's exception message

11 years ago(3.3->default) Ensure that plistlib doesn't corrupt deeply nested datastructures
Ronald Oussoren [Tue, 23 Apr 2013 11:48:29 +0000 (13:48 +0200)]
(3.3->default) Ensure that plistlib doesn't corrupt deeply nested datastructures

Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.

Fixes #17353

11 years agoEnsure that plistlib doesn't corrupt deeply nested datastructures
Ronald Oussoren [Tue, 23 Apr 2013 11:47:22 +0000 (13:47 +0200)]
Ensure that plistlib doesn't corrupt deeply nested datastructures

Without this changeset plistlib would write empty tags for plistlib.Data
objects in deeply nested datastructures.

Fixes #17353

11 years ago#17729: merge with 3.3.
Ezio Melotti [Tue, 23 Apr 2013 06:58:04 +0000 (09:58 +0300)]
#17729: merge with 3.3.

11 years ago#17729: remove the Advocacy HOWTO from the index.
Ezio Melotti [Tue, 23 Apr 2013 06:56:30 +0000 (09:56 +0300)]
#17729: remove the Advocacy HOWTO from the index.

11 years ago#17729: merge with 3.3.
Ezio Melotti [Tue, 23 Apr 2013 06:25:45 +0000 (09:25 +0300)]
#17729: merge with 3.3.

11 years ago#17729: remove the outdated Advocacy HOWTO, as suggested by the author.
Ezio Melotti [Tue, 23 Apr 2013 06:24:51 +0000 (09:24 +0300)]
#17729: remove the outdated Advocacy HOWTO, as suggested by the author.

11 years agoIssue #11714: Use 'with' statements to assure a Semaphore releases a
Serhiy Storchaka [Mon, 22 Apr 2013 19:54:16 +0000 (22:54 +0300)]
Issue #11714: Use 'with' statements to assure a Semaphore releases a
condition variable.  Original patch by Thomas Rachel.

11 years agoIssue #11714: Use 'with' statements to assure a Semaphore releases a
Serhiy Storchaka [Mon, 22 Apr 2013 19:51:43 +0000 (22:51 +0300)]
Issue #11714: Use 'with' statements to assure a Semaphore releases a
condition variable.  Original patch by Thomas Rachel.

11 years agoIssue #16624: `subprocess.check_output` now accepts an `input` argument,
Serhiy Storchaka [Mon, 22 Apr 2013 17:20:54 +0000 (20:20 +0300)]
Issue #16624: `subprocess.check_output` now accepts an `input` argument,
allowing the subprocess's stdin to be provided as a (byte) string.
Patch by Zack Weinberg.

11 years agoSimplify the code of get_attrib_from_keywords somewhat.
Eli Bendersky [Mon, 22 Apr 2013 12:52:16 +0000 (05:52 -0700)]
Simplify the code of get_attrib_from_keywords somewhat.

11 years agoIssue #17736: fix misleading comment in _elementtree.c
Eli Bendersky [Mon, 22 Apr 2013 12:29:09 +0000 (05:29 -0700)]
Issue #17736: fix misleading comment in _elementtree.c
Patch by Jonas Wagner

11 years agoIssue #17736: fix misleading comment in _elementtree.c
Eli Bendersky [Mon, 22 Apr 2013 12:25:25 +0000 (05:25 -0700)]
Issue #17736: fix misleading comment in _elementtree.c
Patch by Jonas Wagner

11 years agoCloses #17795: Reverted backwards-incompatible change in SysLogHandler with Unix...
Vinay Sajip [Mon, 22 Apr 2013 09:14:12 +0000 (10:14 +0100)]
Closes #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets.

11 years agoIssue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domai...
Vinay Sajip [Mon, 22 Apr 2013 09:07:40 +0000 (10:07 +0100)]
Issue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets.

11 years ago#15575: Clarify tutorial description of when modules are executed.
R David Murray [Sun, 21 Apr 2013 20:59:04 +0000 (16:59 -0400)]
#15575: Clarify tutorial description of when modules are executed.

11 years ago#15575: Clarify tutorial description of when modules are executed.
R David Murray [Sun, 21 Apr 2013 20:58:36 +0000 (16:58 -0400)]
#15575: Clarify tutorial description of when modules are executed.

11 years agoIssue #17670: merge from 3.3
Ned Deily [Sun, 21 Apr 2013 20:07:27 +0000 (13:07 -0700)]
Issue #17670: merge from 3.3

11 years agoIssue #17670: Provide an example of expandtabs() usage.
Ned Deily [Sun, 21 Apr 2013 20:05:21 +0000 (13:05 -0700)]
Issue #17670: Provide an example of expandtabs() usage.

11 years agoMerge #17065: Use process-unique key for winreg test.
R David Murray [Sun, 21 Apr 2013 14:10:50 +0000 (10:10 -0400)]
Merge #17065: Use process-unique key for winreg test.

Patch by Jeremy Kloth.

11 years ago#17065: Use process-unique key for winreg test.
R David Murray [Sun, 21 Apr 2013 14:08:02 +0000 (10:08 -0400)]
#17065: Use process-unique key for winreg test.

Patch by Jeremy Kloth.

11 years agoMerge 3.3
Alexandre Vassalotti [Sun, 21 Apr 2013 04:28:49 +0000 (21:28 -0700)]
Merge 3.3

11 years agoFix reference leak in _pickle.
Alexandre Vassalotti [Sun, 21 Apr 2013 04:28:21 +0000 (21:28 -0700)]
Fix reference leak in _pickle.

11 years agoMerge removal of trailing whitespace from 3.3.
Ezio Melotti [Sun, 21 Apr 2013 01:08:18 +0000 (04:08 +0300)]
Merge removal of trailing whitespace from 3.3.

11 years agoRemove trailing whitespace.
Ezio Melotti [Sun, 21 Apr 2013 01:07:51 +0000 (04:07 +0300)]
Remove trailing whitespace.

11 years agoMerge removal of duplicated tests from 3.3.
Ezio Melotti [Sun, 21 Apr 2013 00:55:49 +0000 (03:55 +0300)]
Merge removal of duplicated tests from 3.3.

11 years agoRemove duplicated tests.
Ezio Melotti [Sun, 21 Apr 2013 00:55:17 +0000 (03:55 +0300)]
Remove duplicated tests.

11 years agoIssue #17801: fix shebang line of gprof2html.py
Ned Deily [Sat, 20 Apr 2013 21:08:16 +0000 (14:08 -0700)]
Issue #17801: fix shebang line of gprof2html.py

11 years agoIssue #17801: fix shebang line of gprof2html.py
Ned Deily [Sat, 20 Apr 2013 21:07:43 +0000 (14:07 -0700)]
Issue #17801: fix shebang line of gprof2html.py

11 years agoMerge 3.3
Alexandre Vassalotti [Sat, 20 Apr 2013 20:25:55 +0000 (13:25 -0700)]
Merge 3.3

11 years agoIsuse #17720: Fix APPENDS handling in the Python implementation of Unpickler
Alexandre Vassalotti [Sat, 20 Apr 2013 20:19:46 +0000 (13:19 -0700)]
Isuse #17720: Fix APPENDS handling in the Python implementation of Unpickler
to correctly process the opcode when it is used on non-list objects.

11 years agoMerge #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs.
R David Murray [Sat, 20 Apr 2013 17:40:33 +0000 (13:40 -0400)]
Merge #17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs.

11 years ago#17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs.
R David Murray [Sat, 20 Apr 2013 17:37:34 +0000 (13:37 -0400)]
#17409: Document RLIM_INFINITY and use it to clarify the setrlimit docs.

11 years agoIssue #16694: Add a pure Python implementation of the operator module.
Antoine Pitrou [Sat, 20 Apr 2013 17:21:44 +0000 (19:21 +0200)]
Issue #16694: Add a pure Python implementation of the operator module.
Patch by Zachary Ware.

11 years agoRemove superfluous try/except
Eli Bendersky [Sat, 20 Apr 2013 16:11:37 +0000 (09:11 -0700)]
Remove superfluous try/except

11 years agoAdd some documentation for IncrementalParesr
Eli Bendersky [Sat, 20 Apr 2013 16:06:27 +0000 (09:06 -0700)]
Add some documentation for IncrementalParesr

11 years agoRemove useless #define and #ifdefs
Eli Bendersky [Sat, 20 Apr 2013 13:36:43 +0000 (06:36 -0700)]
Remove useless #define and #ifdefs

11 years agoFix trailing whitespace
Eli Bendersky [Sat, 20 Apr 2013 12:54:29 +0000 (05:54 -0700)]
Fix trailing whitespace

11 years agoUpdate ET documentation reprhasing the mention of the new IncrementalParser in
Eli Bendersky [Sat, 20 Apr 2013 12:53:50 +0000 (05:53 -0700)]
Update ET documentation reprhasing the mention of the new IncrementalParser in
the doc for iterparse.

11 years agoMake license notices more consistent and remove old changelog.
Eli Bendersky [Sat, 20 Apr 2013 12:44:01 +0000 (05:44 -0700)]
Make license notices more consistent and remove old changelog.
Also remove unused macro.

11 years ago#9607: restore keywords.kwlist after testing it.
R David Murray [Sat, 20 Apr 2013 02:38:58 +0000 (22:38 -0400)]
#9607: restore keywords.kwlist after testing it.

11 years ago#9607: Add tests for the keyword module.
R David Murray [Sat, 20 Apr 2013 02:15:26 +0000 (22:15 -0400)]
#9607: Add tests for the keyword module.

Based on the testing ideas in a patch written by Greg Malcolm.

11 years agoMerge #17413: make sure settrace funcs get passed exception instances for 'value'.
R David Murray [Fri, 19 Apr 2013 16:57:54 +0000 (12:57 -0400)]
Merge #17413: make sure settrace funcs get passed exception instances for 'value'.

Patch by Ingrid Cheung and Brendan McLoughlin.

11 years ago#17413: make sure settrace funcs get passed exception instances for 'value'.
R David Murray [Fri, 19 Apr 2013 16:56:57 +0000 (12:56 -0400)]
#17413: make sure settrace funcs get passed exception instances for 'value'.

Patch by Ingrid Cheung and Brendan McLoughlin.

11 years agoMerge 3.3
Barry Warsaw [Fri, 19 Apr 2013 15:32:54 +0000 (11:32 -0400)]
Merge 3.3

11 years agoMinor typo in example.
Barry Warsaw [Fri, 19 Apr 2013 15:32:25 +0000 (11:32 -0400)]
Minor typo in example.

11 years agoMerge indentation fix from 3.3.
Ezio Melotti [Fri, 19 Apr 2013 04:10:45 +0000 (07:10 +0300)]
Merge indentation fix from 3.3.

11 years agoFix indentation.
Ezio Melotti [Fri, 19 Apr 2013 04:10:09 +0000 (07:10 +0300)]
Fix indentation.

11 years ago#17790: merge with 3.3.
Ezio Melotti [Fri, 19 Apr 2013 02:59:17 +0000 (05:59 +0300)]
#17790: merge with 3.3.

11 years ago#17790: test_set now works with unittest test discovery. Patch by Zachary Ware.
Ezio Melotti [Fri, 19 Apr 2013 02:58:44 +0000 (05:58 +0300)]
#17790: test_set now works with unittest test discovery.  Patch by Zachary Ware.

11 years ago#17789: merge with 3.3.
Ezio Melotti [Fri, 19 Apr 2013 02:46:08 +0000 (05:46 +0300)]
#17789: merge with 3.3.

11 years ago#17789: test_random now works with unittest test discovery. Patch by Zachary Ware.
Ezio Melotti [Fri, 19 Apr 2013 02:45:27 +0000 (05:45 +0300)]
#17789: test_random now works with unittest test discovery.  Patch by Zachary Ware.

11 years ago#17779: merge with 3.3.
Ezio Melotti [Fri, 19 Apr 2013 02:38:48 +0000 (05:38 +0300)]
#17779: merge with 3.3.

11 years ago#17779: test_osx_env now works with unittest test discovery. Patch by Zachary Ware.
Ezio Melotti [Fri, 19 Apr 2013 02:38:18 +0000 (05:38 +0300)]
#17779: test_osx_env now works with unittest test discovery.  Patch by Zachary Ware.

11 years agoFix uploadTestCase to work even when HTTPSConnection is not available.
Ezio Melotti [Fri, 19 Apr 2013 01:23:09 +0000 (04:23 +0300)]
Fix uploadTestCase to work even when HTTPSConnection is not available.

11 years ago#11182: remove the unused and undocumented pydoc.Scanner class. Patch by Martin...
Ezio Melotti [Thu, 18 Apr 2013 23:53:12 +0000 (02:53 +0300)]
#11182: remove the unused and undocumented pydoc.Scanner class.  Patch by Martin Morrison.

11 years agofix typo in a comment
Victor Stinner [Thu, 18 Apr 2013 21:21:19 +0000 (23:21 +0200)]
fix typo in a comment

11 years agoIssue #17741: Add ElementTree.IncrementalParser, an event-driven parser for non-block...
Antoine Pitrou [Thu, 18 Apr 2013 17:37:06 +0000 (19:37 +0200)]
Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications.

11 years agoNull merge.
R David Murray [Thu, 18 Apr 2013 13:53:30 +0000 (09:53 -0400)]
Null merge.

11 years ago#17135: Add note in imp to use importlib for new programs.
R David Murray [Thu, 18 Apr 2013 13:51:17 +0000 (09:51 -0400)]
#17135: Add note in imp to use importlib for new programs.

11 years agoPartial revert of changeset 9744b2df134c
Victor Stinner [Thu, 18 Apr 2013 07:41:34 +0000 (09:41 +0200)]
Partial revert of changeset 9744b2df134c

PyUnicode_Append() cannot call directly resize_compact(): I forgot that a
string can be ready *and* not compact (a legacy string can also be ready).

11 years agoSplit PyUnicode_DecodeCharmap() into subfunction for readability
Victor Stinner [Wed, 17 Apr 2013 23:44:27 +0000 (01:44 +0200)]
Split PyUnicode_DecodeCharmap() into subfunction for readability

11 years ago#17135: mark imp as deprecated as of 3.4.
R David Murray [Wed, 17 Apr 2013 22:50:12 +0000 (18:50 -0400)]
#17135: mark imp as deprecated as of 3.4.

11 years agoFix bug in Unicode decoders related to _PyUnicodeWriter
Victor Stinner [Wed, 17 Apr 2013 22:25:28 +0000 (00:25 +0200)]
Fix bug in Unicode decoders related to _PyUnicodeWriter

Bug introduced by changesets 7ed9993d53b4 and edf029fc9591.

11 years agoFix typo in unicode_decode_call_errorhandler_writer()
Victor Stinner [Wed, 17 Apr 2013 21:58:16 +0000 (23:58 +0200)]
Fix typo in unicode_decode_call_errorhandler_writer()

Bug introduced by changeset 7ed9993d53b4.

11 years agoClose #17694: Add minimum length to _PyUnicodeWriter
Victor Stinner [Wed, 17 Apr 2013 21:02:17 +0000 (23:02 +0200)]
Close #17694: Add minimum length to _PyUnicodeWriter

 * Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
 * _PyUnicodeWriter_Init() has no more argument (except the writer itself):
   min_length and overallocate must be set explicitly
 * In error handlers, only enable overallocation if the replacement string
   is longer than 1 character
 * CJK decoders don't use overallocation anymore
 * Set min_length, instead of preallocating memory using
   _PyUnicodeWriter_Prepare(), in many decoders
 * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow

11 years agoMerge.
Richard Oudkerk [Wed, 17 Apr 2013 20:27:17 +0000 (21:27 +0100)]
Merge.

11 years agoMerge.
Richard Oudkerk [Wed, 17 Apr 2013 20:24:58 +0000 (21:24 +0100)]
Merge.

11 years agoMerge.
Richard Oudkerk [Wed, 17 Apr 2013 20:16:52 +0000 (21:16 +0100)]
Merge.

11 years agoIssue #17555: Fix ForkAwareThreadLock so that size of after fork
Richard Oudkerk [Wed, 17 Apr 2013 20:09:38 +0000 (21:09 +0100)]
Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.

11 years agoIssue #17782: Fix undefined behaviour on platforms where ``struct timespec``'s "tv_ns...
Antoine Pitrou [Wed, 17 Apr 2013 20:07:51 +0000 (22:07 +0200)]
Issue #17782: Fix undefined behaviour on platforms where ``struct timespec``'s "tv_nsec" member is not a C long.

11 years ago- Issue #17782: Fix undefined behaviour on platforms where ``struct timespec``'s...
Antoine Pitrou [Wed, 17 Apr 2013 20:06:44 +0000 (22:06 +0200)]
- Issue #17782: Fix undefined behaviour on platforms where ``struct timespec``'s "tv_nsec" member is not a C long.

11 years agoIssue #17555: Fix ForkAwareThreadLock so that size of after fork
Richard Oudkerk [Wed, 17 Apr 2013 19:58:00 +0000 (20:58 +0100)]
Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.

11 years agomerge 3.3
Benjamin Peterson [Wed, 17 Apr 2013 14:24:58 +0000 (10:24 -0400)]
merge 3.3

11 years agoFix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.
Giampaolo Rodola' [Wed, 17 Apr 2013 11:12:27 +0000 (13:12 +0200)]
Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.

11 years agoFix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.
Giampaolo Rodola' [Wed, 17 Apr 2013 11:08:59 +0000 (13:08 +0200)]
Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts.

11 years ago#14735: merge with 3.3.
Roger Serwy [Wed, 17 Apr 2013 05:27:31 +0000 (00:27 -0500)]
#14735: merge with 3.3.

11 years ago#14735: Update IDLE docs to omit "Control-z on Windows".
Roger Serwy [Wed, 17 Apr 2013 05:22:50 +0000 (00:22 -0500)]
#14735: Update IDLE docs to omit "Control-z on Windows".

11 years ago#17771: merge with 3.3.
Ezio Melotti [Wed, 17 Apr 2013 04:34:31 +0000 (07:34 +0300)]
#17771: merge with 3.3.

11 years ago#17771: fix typo. Patch by Andriy Mysyk.
Ezio Melotti [Wed, 17 Apr 2013 04:34:13 +0000 (07:34 +0300)]
#17771: fix typo.  Patch by Andriy Mysyk.

11 years ago#17766: merge with 3.3.
Ezio Melotti [Wed, 17 Apr 2013 01:36:45 +0000 (04:36 +0300)]
#17766: merge with 3.3.

11 years ago#17766: test_iterlen now works with unittest test discovery. Patch by Zachary Ware.
Ezio Melotti [Wed, 17 Apr 2013 01:34:05 +0000 (04:34 +0300)]
#17766: test_iterlen now works with unittest test discovery.  Patch by Zachary Ware.

11 years ago#17740: merge with 3.3.
Ezio Melotti [Wed, 17 Apr 2013 01:10:51 +0000 (04:10 +0300)]
#17740: merge with 3.3.

11 years ago#17740: fix links to the socket function. Initial patch by Zachary Ware.
Ezio Melotti [Wed, 17 Apr 2013 01:10:26 +0000 (04:10 +0300)]
#17740: fix links to the socket function.  Initial patch by Zachary Ware.

11 years agoIssue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for...
Antoine Pitrou [Tue, 16 Apr 2013 18:28:15 +0000 (20:28 +0200)]
Issue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
Thanks to David D Lowe for reporting.

11 years agoIssue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for...
Antoine Pitrou [Tue, 16 Apr 2013 18:27:17 +0000 (20:27 +0200)]
Issue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
Thanks to David D Lowe for reporting.

11 years agoRemove unused import
Barry Warsaw [Tue, 16 Apr 2013 15:19:11 +0000 (11:19 -0400)]
Remove unused import

11 years agoRemove unused import.
Barry Warsaw [Tue, 16 Apr 2013 15:18:53 +0000 (11:18 -0400)]
Remove unused import.

11 years ago- Issue #17012: shutil.which() no longer fallbacks to the PATH environment
Barry Warsaw [Tue, 16 Apr 2013 15:18:18 +0000 (11:18 -0400)]
- Issue #17012: shutil.which() no longer fallbacks to the PATH environment
  variable if empty path argument is specified.  Patch by Serhiy Storchaka.

11 years ago- Issue #17012: shutil.which() no longer fallbacks to the PATH environment
Barry Warsaw [Tue, 16 Apr 2013 15:05:03 +0000 (11:05 -0400)]
- Issue #17012: shutil.which() no longer fallbacks to the PATH environment
  variable if empty path argument is specified.  Patch by Serhiy Storchaka.

11 years agoMake C and Python implementations of pickle load STRING opcodes the same way.
Alexandre Vassalotti [Tue, 16 Apr 2013 06:14:55 +0000 (23:14 -0700)]
Make C and Python implementations of pickle load STRING opcodes the same way.

The C version tried to remove trailing whitespace between the last quote and
the newline character. I am not sure why it had this because pickle never
generated such pickles---for this to happen repr(some_string) would need to
return trailing whitespace. It was maybe there to make it easier for people
to write pickles in text editors. Anyhow, the Python version doesn't do this
so there is no point keeping this around anymore.

Also, I've changed the exception raised when a bad pickle is encountered.
Again this unlikely to make much difference to anyone though it does make
testing slightly nicer for us.

11 years agomerge 3.3
Benjamin Peterson [Tue, 16 Apr 2013 01:38:33 +0000 (21:38 -0400)]
merge 3.3

11 years agoremove pointless code (closes #17738)
Benjamin Peterson [Tue, 16 Apr 2013 01:38:25 +0000 (21:38 -0400)]
remove pointless code (closes #17738)

11 years agoIssue #17710: Fix pickle raising a SystemError on bogus input.
Antoine Pitrou [Mon, 15 Apr 2013 19:55:14 +0000 (21:55 +0200)]
Issue #17710: Fix pickle raising a SystemError on bogus input.

11 years agoIssue #17710: Fix pickle raising a SystemError on bogus input.
Antoine Pitrou [Mon, 15 Apr 2013 19:51:09 +0000 (21:51 +0200)]
Issue #17710: Fix pickle raising a SystemError on bogus input.

11 years ago#13510: merge with 3.3.
Ezio Melotti [Mon, 15 Apr 2013 16:09:29 +0000 (19:09 +0300)]
#13510: merge with 3.3.

11 years ago#13510: clarify that f.readlines() is note necessary to iterate over a file. Patch...
Ezio Melotti [Mon, 15 Apr 2013 16:08:31 +0000 (19:08 +0300)]
#13510: clarify that f.readlines() is note necessary to iterate over a file.  Patch by Dan Riti.