]> granicus.if.org Git - python/log
python
12 years agoRecognize unsupported feature "compressed patch data set" from zip 2.7.
Martin v. Löwis [Tue, 1 May 2012 06:44:08 +0000 (08:44 +0200)]
Recognize unsupported feature "compressed patch data set" from zip 2.7.

12 years agoDetect unsupported compression types.
Martin v. Löwis [Tue, 1 May 2012 06:38:01 +0000 (08:38 +0200)]
Detect unsupported compression types.

12 years agoIssue #14371: Support bzip2 in zipfile module.
Martin v. Löwis [Tue, 1 May 2012 05:58:44 +0000 (07:58 +0200)]
Issue #14371: Support bzip2 in zipfile module.
Patch by Serhiy Storchaka.

12 years agoMove make_key() out of the decorator body. Make keys that only need to be hashed...
Raymond Hettinger [Tue, 1 May 2012 05:32:16 +0000 (22:32 -0700)]
Move make_key() out of the decorator body. Make keys that only need to be hashed once.

12 years agoUse a flag to indicate when the circular queue is fully populated and stable.
Raymond Hettinger [Tue, 1 May 2012 03:48:55 +0000 (20:48 -0700)]
Use a flag to indicate when the circular queue is fully populated and stable.

12 years agoissue13183 - Fix pdb skipping frames after hitting a breakpoint and running step...
Senthil Kumaran [Tue, 1 May 2012 02:37:11 +0000 (10:37 +0800)]
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye

12 years agoissue13183 - Fix pdb skipping frames after hitting a breakpoint and running step...
Senthil Kumaran [Tue, 1 May 2012 02:07:49 +0000 (10:07 +0800)]
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye

12 years agoHandle a possible race condition
Raymond Hettinger [Mon, 30 Apr 2012 21:14:28 +0000 (14:14 -0700)]
Handle a possible race condition

12 years agoIssue #10433: merge
Ned Deily [Mon, 30 Apr 2012 18:15:38 +0000 (11:15 -0700)]
Issue #10433: merge

12 years agoIssue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.
Ned Deily [Mon, 30 Apr 2012 18:14:02 +0000 (11:14 -0700)]
Issue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.

12 years ago#14558: merge with 3.2.
Ezio Melotti [Mon, 30 Apr 2012 16:11:11 +0000 (19:11 +0300)]
#14558: merge with 3.2.

12 years ago#14558: document the module, argv, and testLoader args of unittest.main.
Ezio Melotti [Mon, 30 Apr 2012 16:10:28 +0000 (19:10 +0300)]
#14558: document the module, argv, and testLoader args of unittest.main.

12 years agoIssue11352 - Update cgi module docs
Senthil Kumaran [Mon, 30 Apr 2012 14:43:46 +0000 (22:43 +0800)]
Issue11352 - Update cgi module docs

12 years agoIssue11352 - Update cgi module docs
Senthil Kumaran [Mon, 30 Apr 2012 14:43:13 +0000 (22:43 +0800)]
Issue11352 - Update cgi module docs

12 years agochange insertdict to not steal references (#13903)
Benjamin Peterson [Mon, 30 Apr 2012 14:23:40 +0000 (10:23 -0400)]
change insertdict to not steal references (#13903)

12 years agoIssue #14669: Skip multiprocessing connection pickling test on MacOSX
Richard Oudkerk [Mon, 30 Apr 2012 13:48:51 +0000 (14:48 +0100)]
Issue #14669: Skip multiprocessing connection pickling test on MacOSX

Passing of fds is unreliable on MacOSX, compare issues #6560 and #12958.

12 years agoMinor fix for multiprocessing unit test
Richard Oudkerk [Mon, 30 Apr 2012 13:48:50 +0000 (14:48 +0100)]
Minor fix for multiprocessing unit test

Read from socket might have returned partial message.

12 years agoMark multiprocessing files with "Licensed to PSF under a Contributor Agreement"
Richard Oudkerk [Mon, 30 Apr 2012 11:13:55 +0000 (12:13 +0100)]
Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"
instead of BSD licence.

12 years agoReview of doc changes re PEP 418.
Georg Brandl [Mon, 30 Apr 2012 10:50:30 +0000 (12:50 +0200)]
Review of doc changes re PEP 418.

12 years agoMerge with 3.2: issue #14433
Martin v. Löwis [Mon, 30 Apr 2012 04:20:37 +0000 (06:20 +0200)]
Merge with 3.2: issue #14433

12 years agoIssue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.
Martin v. Löwis [Mon, 30 Apr 2012 04:10:41 +0000 (06:10 +0200)]
Issue #14433: Prevent msvcrt crash in interactive prompt when stdin is closed.

12 years agomerge
Victor Stinner [Mon, 30 Apr 2012 03:24:04 +0000 (05:24 +0200)]
merge

12 years agoIssue #14687: Avoid an useless duplicated string in PyUnicode_Format()
Victor Stinner [Mon, 30 Apr 2012 03:21:52 +0000 (05:21 +0200)]
Issue #14687: Avoid an useless duplicated string in PyUnicode_Format()

12 years agoIssue #14687: Cleanup PyUnicode_Format()
Victor Stinner [Mon, 30 Apr 2012 03:19:21 +0000 (05:19 +0200)]
Issue #14687: Cleanup PyUnicode_Format()

12 years agoTrack the cache size directly.
Raymond Hettinger [Mon, 30 Apr 2012 01:09:02 +0000 (18:09 -0700)]
Track the cache size directly.

12 years agoWrite the What's New for the importlib stuff.
Brett Cannon [Mon, 30 Apr 2012 00:59:41 +0000 (20:59 -0400)]
Write the What's New for the importlib stuff.

12 years agoIssue #14428: Remove test_process_time_threads() from test_time
Victor Stinner [Sun, 29 Apr 2012 23:39:57 +0000 (01:39 +0200)]
Issue #14428: Remove test_process_time_threads() from test_time

The test is unstable and it's not really interesting to test exactly how
threads are handled.

12 years agoIssue #14428: Make test_process_time_threads() less strict
Victor Stinner [Sun, 29 Apr 2012 22:51:31 +0000 (00:51 +0200)]
Issue #14428: Make test_process_time_threads() less strict

12 years agomerged
Alexander Belopolsky [Sun, 29 Apr 2012 22:20:05 +0000 (18:20 -0400)]
merged

12 years agofixed test_imaplib failure on Win
Alexander Belopolsky [Sun, 29 Apr 2012 22:16:46 +0000 (18:16 -0400)]
fixed test_imaplib failure on Win

12 years agomerge
Raymond Hettinger [Sun, 29 Apr 2012 21:57:05 +0000 (14:57 -0700)]
merge

12 years agoFactor out shared variables.
Raymond Hettinger [Sun, 29 Apr 2012 21:55:27 +0000 (14:55 -0700)]
Factor out shared variables.

12 years agoIssue #14696: Merge from 3.2
Mark Dickinson [Sun, 29 Apr 2012 21:20:01 +0000 (22:20 +0100)]
Issue #14696: Merge from 3.2

12 years agoIssue #14696: Fix parser module to understand 'nonlocal' declarations.
Mark Dickinson [Sun, 29 Apr 2012 21:18:31 +0000 (22:18 +0100)]
Issue #14696: Fix parser module to understand 'nonlocal' declarations.

12 years agomerge
Alexander Belopolsky [Sun, 29 Apr 2012 20:34:43 +0000 (16:34 -0400)]
merge

12 years agoIssue #10941: Fix imaplib.Internaldate2tuple to produce correct result near
Alexander Belopolsky [Sun, 29 Apr 2012 20:12:27 +0000 (16:12 -0400)]
Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result near
the DST transition.  Patch by Joe Peterson.

12 years agoIssue #10941: Fix imaplib.Internaldate2tuple to produce correct result near
Alexander Belopolsky [Sun, 29 Apr 2012 19:56:49 +0000 (15:56 -0400)]
Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result near
the DST transition.  Patch by Joe Peterson.

12 years agoFlatten the lru cache keyword args tuple for better memory utilization.
Raymond Hettinger [Sun, 29 Apr 2012 19:28:02 +0000 (12:28 -0700)]
Flatten the lru cache keyword args tuple for better memory utilization.

12 years agoRe-indent.
Brett Cannon [Sun, 29 Apr 2012 18:40:43 +0000 (14:40 -0400)]
Re-indent.

12 years agomerge
Brett Cannon [Sun, 29 Apr 2012 18:38:57 +0000 (14:38 -0400)]
merge

12 years agoIssues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.
Brett Cannon [Sun, 29 Apr 2012 18:38:11 +0000 (14:38 -0400)]
Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.

Thanks to Eric Snow for the patch.

12 years agoIssue #14691: indent the traceback so the example is highlighted
Sandro Tosi [Sun, 29 Apr 2012 18:33:28 +0000 (20:33 +0200)]
Issue #14691: indent the traceback so the example is highlighted

12 years agoRemove untests for non-existent functionality.
Mark Dickinson [Sun, 29 Apr 2012 18:17:05 +0000 (19:17 +0100)]
Remove untests for non-existent functionality.

12 years agoIssue #14428: Rewrite test_process_time_threads() test
Victor Stinner [Sun, 29 Apr 2012 17:46:19 +0000 (19:46 +0200)]
Issue #14428: Rewrite test_process_time_threads() test

time.process_time() is CPU time, not a number of seconds.

12 years agoIssue #9154: Merge fix from 3.2.
Mark Dickinson [Sun, 29 Apr 2012 17:35:56 +0000 (18:35 +0100)]
Issue #9154: Merge fix from 3.2.

12 years agoIssue #9154: Fix parser module to understand function annotations.
Mark Dickinson [Sun, 29 Apr 2012 17:34:40 +0000 (18:34 +0100)]
Issue #9154:  Fix parser module to understand function annotations.

12 years agomerge
Brett Cannon [Sun, 29 Apr 2012 16:50:32 +0000 (12:50 -0400)]
merge

12 years agoIssue #13959: Re-implement imp.NullImporter in Lib/imp.py.
Brett Cannon [Sun, 29 Apr 2012 16:50:03 +0000 (12:50 -0400)]
Issue #13959: Re-implement imp.NullImporter in Lib/imp.py.

12 years agomerge
Raymond Hettinger [Sun, 29 Apr 2012 16:35:39 +0000 (09:35 -0700)]
merge

12 years agoIssue 14688: Fix typo
Raymond Hettinger [Sun, 29 Apr 2012 16:32:30 +0000 (09:32 -0700)]
Issue 14688: Fix typo

12 years agoIssue #14521: Make result of float('nan') and float('-nan') more consistent across...
Mark Dickinson [Sun, 29 Apr 2012 14:31:56 +0000 (15:31 +0100)]
Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms.  Further, don't rely on Py_HUGE_VAL for float('inf').

12 years ago#14236: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 10:37:13 +0000 (13:37 +0300)]
#14236: merge with 3.2.

12 years ago#14236: fix docs for \S.
Ezio Melotti [Sun, 29 Apr 2012 10:35:55 +0000 (13:35 +0300)]
#14236: fix docs for \S.

12 years ago#14519: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 08:48:54 +0000 (11:48 +0300)]
#14519: merge with 3.2.

12 years ago#14519: fix the regex used in the scanf example.
Ezio Melotti [Sun, 29 Apr 2012 08:47:28 +0000 (11:47 +0300)]
#14519: fix the regex used in the scanf example.

12 years agoBetter control when dumping import state
Nick Coghlan [Sun, 29 Apr 2012 07:58:24 +0000 (17:58 +1000)]
Better control when dumping import state

12 years agoMerge markup fix in unittest doc from 3.2.
Ezio Melotti [Sun, 29 Apr 2012 07:53:31 +0000 (10:53 +0300)]
Merge markup fix in unittest doc from 3.2.

12 years agoFix markup in unittest doc.
Ezio Melotti [Sun, 29 Apr 2012 07:52:18 +0000 (10:52 +0300)]
Fix markup in unittest doc.

12 years agoissue6085 - update docs in default branch
Senthil Kumaran [Sun, 29 Apr 2012 05:44:14 +0000 (13:44 +0800)]
issue6085 - update docs in default branch

12 years agoFix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPReque...
Senthil Kumaran [Sun, 29 Apr 2012 05:41:03 +0000 (13:41 +0800)]
Fix issue6085 - Remove the delay caused by fqdn lookup while logging in BaseHTTPRequestHandler

12 years ago#14236: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 05:24:02 +0000 (08:24 +0300)]
#14236: merge with 3.2.

12 years ago#14236: mention Unicode whitespace in \s documentation.
Ezio Melotti [Sun, 29 Apr 2012 05:23:25 +0000 (08:23 +0300)]
#14236: mention Unicode whitespace in \s documentation.

12 years agoFix Issue6085 - SimpleHTTPServer address_string to return client ip instead of client...
Senthil Kumaran [Sun, 29 Apr 2012 04:51:54 +0000 (12:51 +0800)]
Fix Issue6085 - SimpleHTTPServer address_string to return client ip instead of client hostname

12 years ago#14461: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 04:35:22 +0000 (07:35 +0300)]
#14461: merge with 3.2.

12 years ago#14461: fix wording.
Ezio Melotti [Sun, 29 Apr 2012 04:34:46 +0000 (07:34 +0300)]
#14461: fix wording.

12 years agoissue14427 - Document Request.get_header and Request.header_items
Senthil Kumaran [Sun, 29 Apr 2012 03:51:56 +0000 (11:51 +0800)]
issue14427 - Document Request.get_header and Request.header_items

12 years agoissue14427 - Document Request.get_header and Request.header_items
Senthil Kumaran [Sun, 29 Apr 2012 03:50:39 +0000 (11:50 +0800)]
issue14427 - Document Request.get_header and Request.header_items

12 years agohttplib - minor update to check empty response
Senthil Kumaran [Sun, 29 Apr 2012 02:40:23 +0000 (10:40 +0800)]
httplib - minor update to check empty response

12 years agohttplib - minor update to check empty response
Senthil Kumaran [Sun, 29 Apr 2012 02:39:49 +0000 (10:39 +0800)]
httplib - minor update to check empty response

12 years agohttplib test for early eof response. related to Issue13684
Senthil Kumaran [Sun, 29 Apr 2012 02:21:26 +0000 (10:21 +0800)]
httplib test for early eof response. related to Issue13684

12 years agohttplib test for early eof response. related to Issue13684
Senthil Kumaran [Sun, 29 Apr 2012 02:20:46 +0000 (10:20 +0800)]
httplib test for early eof response. related to Issue13684

12 years ago#14155: merge note about \b from 3.2.
Ezio Melotti [Sun, 29 Apr 2012 01:53:20 +0000 (04:53 +0300)]
#14155: merge note about \b from 3.2.

12 years ago#14155: add a note about \b.
Ezio Melotti [Sun, 29 Apr 2012 01:52:30 +0000 (04:52 +0300)]
#14155: add a note about \b.

12 years agoIssue #14428: Use the new time.perf_counter() and time.process_time() functions
Victor Stinner [Sun, 29 Apr 2012 01:01:20 +0000 (03:01 +0200)]
Issue #14428: Use the new time.perf_counter() and time.process_time() functions

 * Replace "time.clock on windows, or time.time" with time.perf_counter()
 * profile module: only use time.process_time() instead of trying different
   functions providing the process time
 * timeit module: use time.perf_counter() by default, time.time() and
   time.clock() can still be used using --time and --clock options
 * pybench program: use time.perf_counter() by default, add support for
   the new time.process_time() and time.perf_counter() functions, but stay
   backward compatible. Use also time.get_clock_info() to display information
   of the timer.

12 years agoClose #14309: Deprecate time.clock()
Victor Stinner [Sun, 29 Apr 2012 00:52:39 +0000 (02:52 +0200)]
Close #14309: Deprecate time.clock()

Use time.perf_counter() or time.process_time() instead.

12 years agoIssue #14428, #14397: Implement the PEP 418
Victor Stinner [Sun, 29 Apr 2012 00:41:27 +0000 (02:41 +0200)]
Issue #14428, #14397: Implement the PEP 418

 * Rename time.steady() to time.monotonic()
 * On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
   QueryPerformanceCounter()
 * time.monotonic() uses CLOCK_HIGHRES if available
 * Add time.get_clock_info(), time.perf_counter() and time.process_time()
   functions

12 years agoTime doc: documentation that the CLOCK_* constants and clock_*() functions are
Victor Stinner [Sat, 28 Apr 2012 21:47:33 +0000 (23:47 +0200)]
Time doc: documentation that the CLOCK_* constants and clock_*() functions are
not always available.

12 years agoIssue #14448: merge with 3.2
Sandro Tosi [Sat, 28 Apr 2012 09:19:59 +0000 (11:19 +0200)]
Issue #14448: merge with 3.2

12 years agoIssue #14448: add reference to IANA timezone database; thanks to Georg/Nick suggestions
Sandro Tosi [Sat, 28 Apr 2012 09:19:37 +0000 (11:19 +0200)]
Issue #14448: add reference to IANA timezone database; thanks to Georg/Nick suggestions

12 years agoFix my previous commit: bool is a long, restore the specical case for bool
Victor Stinner [Fri, 27 Apr 2012 22:25:34 +0000 (00:25 +0200)]
Fix my previous commit: bool is a long, restore the specical case for bool

12 years agoIssue #14666: stop multiprocessing's resource-sharing thread after the tests are...
Antoine Pitrou [Fri, 27 Apr 2012 21:51:03 +0000 (23:51 +0200)]
Issue #14666: stop multiprocessing's resource-sharing thread after the tests are done.
Also, block delivery of signals to that thread. Patch by Richard Oudkerk.

This will hopefully fix sporadic freezes on the FreeBSD 9.0 buildbot.

12 years agoSimplify and optimize formatlong()
Victor Stinner [Fri, 27 Apr 2012 21:40:13 +0000 (23:40 +0200)]
Simplify and optimize formatlong()

 * Remove _PyBytes_FormatLong(): inline it into formatlong()
 * the input type is always a long, so remove the code for bool
 * don't duplicate the string if the length does not change
 * Use PyUnicode_DATA() instead of _PyUnicode_AsString()

12 years agomerge
Brett Cannon [Fri, 27 Apr 2012 21:27:33 +0000 (17:27 -0400)]
merge

12 years agoIssue #14646: __import__() now sets __loader__ if need be.
Brett Cannon [Fri, 27 Apr 2012 21:27:14 +0000 (17:27 -0400)]
Issue #14646: __import__() now sets __loader__ if need be.

importlib.util.module_for_loader also will set __loader__ along with
__package__. This is in conjunction to a forthcoming update to PEP 302
which will make these two attributes required for loaders to set.

12 years agoOptimize _PyUnicode_FindMaxChar() find pure ASCII strings
Victor Stinner [Fri, 27 Apr 2012 20:26:58 +0000 (22:26 +0200)]
Optimize _PyUnicode_FindMaxChar() find pure ASCII strings

12 years agoIssue #14605: Don't error out if get_importer() returns None.
Brett Cannon [Fri, 27 Apr 2012 19:45:15 +0000 (15:45 -0400)]
Issue #14605: Don't error out if get_importer() returns None.

12 years agomerge
Brett Cannon [Fri, 27 Apr 2012 19:31:45 +0000 (15:31 -0400)]
merge

12 years agoIssue #14605: Use None in sys.path_importer_cache to represent no
Brett Cannon [Fri, 27 Apr 2012 19:30:58 +0000 (15:30 -0400)]
Issue #14605: Use None in sys.path_importer_cache to represent no
finder instead of using some (now non-existent) implicit finder.

12 years agodecref cached keys on type deallocation (#13903)
Benjamin Peterson [Fri, 27 Apr 2012 19:07:36 +0000 (15:07 -0400)]
decref cached keys on type deallocation (#13903)

12 years agomerge
Brett Cannon [Fri, 27 Apr 2012 18:02:33 +0000 (14:02 -0400)]
merge

12 years agoIssue #14605: Stop having implicit entries for sys.meta_path.
Brett Cannon [Fri, 27 Apr 2012 18:01:58 +0000 (14:01 -0400)]
Issue #14605: Stop having implicit entries for sys.meta_path.

ImportWarning is raised if sys.meta_path is found to be empty.

12 years agoIssue #14605: Insert to the front of sys.meta_path, don't append.
Brett Cannon [Fri, 27 Apr 2012 17:52:55 +0000 (13:52 -0400)]
Issue #14605: Insert to the front of sys.meta_path, don't append.

12 years agoInvalidate finder caches after creating a new script.
Brett Cannon [Fri, 27 Apr 2012 17:52:03 +0000 (13:52 -0400)]
Invalidate finder caches after creating a new script.

12 years agouse wfile api
Benjamin Peterson [Fri, 27 Apr 2012 15:56:30 +0000 (11:56 -0400)]
use wfile api

12 years agoIssue #14642: Add "hg touch" extension, and "make touch" target.
Martin v. Loewis [Fri, 27 Apr 2012 14:10:21 +0000 (16:10 +0200)]
Issue #14642: Add "hg touch" extension, and "make touch" target.

12 years agoCheck newly created consistency using _PyUnicode_CheckConsistency(str, 1)
Victor Stinner [Fri, 27 Apr 2012 11:55:39 +0000 (13:55 +0200)]
Check newly created consistency using _PyUnicode_CheckConsistency(str, 1)

 * In debug mode, fill the string data with invalid characters
 * Simplify also reference counting in PyCodec_BackslashReplaceErrors()
   and PyCodec_XMLCharRefReplaceError()

12 years agoBacking out 86dc014cdd74. Not ready yet
Jesus Cea [Thu, 26 Apr 2012 15:05:31 +0000 (17:05 +0200)]
Backing out 86dc014cdd74. Not ready yet

12 years agoClose #10142: Support for SEEK_HOLE/SEEK_DATA
Jesus Cea [Thu, 26 Apr 2012 14:39:35 +0000 (16:39 +0200)]
Close #10142: Support for SEEK_HOLE/SEEK_DATA

12 years agoAdd a missing close paren
Brian Curtin [Thu, 26 Apr 2012 04:38:05 +0000 (23:38 -0500)]
Add a missing close paren

12 years agomerge heads
Benjamin Peterson [Thu, 26 Apr 2012 04:27:06 +0000 (00:27 -0400)]
merge heads