]>
granicus.if.org Git - python/log
Raymond Hettinger [Sun, 29 Apr 2012 16:35:39 +0000 (09:35 -0700)]
merge
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').
Ezio Melotti [Sun, 29 Apr 2012 10:37:13 +0000 (13:37 +0300)]
#14236: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 10:35:55 +0000 (13:35 +0300)]
#14236: fix docs for \S.
Ezio Melotti [Sun, 29 Apr 2012 08:48:54 +0000 (11:48 +0300)]
#14519: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 08:47:28 +0000 (11:47 +0300)]
#14519: fix the regex used in the scanf example.
Nick Coghlan [Sun, 29 Apr 2012 07:58:24 +0000 (17:58 +1000)]
Better control when dumping import state
Ezio Melotti [Sun, 29 Apr 2012 07:53:31 +0000 (10:53 +0300)]
Merge markup fix in unittest doc from 3.2.
Ezio Melotti [Sun, 29 Apr 2012 07:52:18 +0000 (10:52 +0300)]
Fix markup in unittest doc.
Senthil Kumaran [Sun, 29 Apr 2012 05:44:14 +0000 (13:44 +0800)]
issue6085 - update docs in default branch
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
Ezio Melotti [Sun, 29 Apr 2012 05:24:02 +0000 (08:24 +0300)]
#14236: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 05:23:25 +0000 (08:23 +0300)]
#14236: mention Unicode whitespace in \s documentation.
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
Ezio Melotti [Sun, 29 Apr 2012 04:35:22 +0000 (07:35 +0300)]
#14461: merge with 3.2.
Ezio Melotti [Sun, 29 Apr 2012 04:34:46 +0000 (07:34 +0300)]
#14461: fix wording.
Senthil Kumaran [Sun, 29 Apr 2012 03:51:56 +0000 (11:51 +0800)]
issue14427 - 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
Senthil Kumaran [Sun, 29 Apr 2012 02:40:23 +0000 (10:40 +0800)]
httplib - 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
Senthil Kumaran [Sun, 29 Apr 2012 02:21:26 +0000 (10:21 +0800)]
httplib 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
Ezio Melotti [Sun, 29 Apr 2012 01:53:20 +0000 (04:53 +0300)]
#14155: merge note about \b from 3.2.
Ezio Melotti [Sun, 29 Apr 2012 01:52:30 +0000 (04:52 +0300)]
#14155: add a note about \b.
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.
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.
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
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.
Sandro Tosi [Sat, 28 Apr 2012 09:19:59 +0000 (11:19 +0200)]
Issue #14448: merge with 3.2
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
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
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.
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()
Brett Cannon [Fri, 27 Apr 2012 21:27:33 +0000 (17:27 -0400)]
merge
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.
Victor Stinner [Fri, 27 Apr 2012 20:26:58 +0000 (22:26 +0200)]
Optimize _PyUnicode_FindMaxChar() find pure ASCII strings
Brett Cannon [Fri, 27 Apr 2012 19:45:15 +0000 (15:45 -0400)]
Issue #14605: Don't error out if get_importer() returns None.
Brett Cannon [Fri, 27 Apr 2012 19:31:45 +0000 (15:31 -0400)]
merge
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.
Benjamin Peterson [Fri, 27 Apr 2012 19:07:36 +0000 (15:07 -0400)]
decref cached keys on type deallocation (#13903)
Brett Cannon [Fri, 27 Apr 2012 18:02:33 +0000 (14:02 -0400)]
merge
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.
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.
Brett Cannon [Fri, 27 Apr 2012 17:52:03 +0000 (13:52 -0400)]
Invalidate finder caches after creating a new script.
Benjamin Peterson [Fri, 27 Apr 2012 15:56:30 +0000 (11:56 -0400)]
use wfile api
Martin v. Loewis [Fri, 27 Apr 2012 14:10:21 +0000 (16:10 +0200)]
Issue #14642: Add "hg touch" extension, and "make touch" target.
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()
Jesus Cea [Thu, 26 Apr 2012 15:05:31 +0000 (17:05 +0200)]
Backing out
86dc014cdd74 . Not ready yet
Jesus Cea [Thu, 26 Apr 2012 14:39:35 +0000 (16:39 +0200)]
Close #10142: Support for SEEK_HOLE/SEEK_DATA
Brian Curtin [Thu, 26 Apr 2012 04:38:05 +0000 (23:38 -0500)]
Add a missing close paren
Benjamin Peterson [Thu, 26 Apr 2012 04:27:06 +0000 (00:27 -0400)]
merge heads
Benjamin Peterson [Thu, 26 Apr 2012 04:26:37 +0000 (00:26 -0400)]
only incref when using borrowing functions
Brett Cannon [Thu, 26 Apr 2012 00:54:04 +0000 (20:54 -0400)]
Issue #14605: Make explicit the entries on sys.path_hooks that used to
be implicit.
Added a warning for when sys.path_hooks is found to be empty. Also
changed the meaning of None in sys.path_importer_cache to represent
trying sys.path_hooks again (an interpretation of previous semantics).
Also added a warning for when None was found.
The long-term goal is for None in sys.path_importer_cache to represent
the same as imp.NullImporter: no finder found for that sys.path entry.
Brett Cannon [Thu, 26 Apr 2012 00:49:19 +0000 (20:49 -0400)]
Silence DeprecationWarning for cgi.escape() usage in test_cgi.
Brett Cannon [Thu, 26 Apr 2012 00:18:55 +0000 (20:18 -0400)]
Update importlib.h
Brett Cannon [Thu, 26 Apr 2012 00:18:24 +0000 (20:18 -0400)]
Merge
Victor Stinner [Wed, 25 Apr 2012 22:39:37 +0000 (00:39 +0200)]
_PyUnicode_CheckConsistency() ensures that the unicode string ends with a
null character
Victor Stinner [Wed, 25 Apr 2012 22:37:21 +0000 (00:37 +0200)]
long_to_decimal_string() and _PyLong_Format() check the consistency of newly
created strings using _PyUnicode_CheckConsistency() in debug mode
Marc-Andre Lemburg [Wed, 25 Apr 2012 17:45:11 +0000 (19:45 +0200)]
Issue #14605 and #14642: Issue a warning in case Python\importlib.h needs to
be rebuilt, but there's no Python interpreter around to freeze the bootstrap
script.
Forgot to include Makefile.pre.in in changeset 76549:
acfdf46b8de1 .
Brian Curtin [Wed, 25 Apr 2012 13:12:37 +0000 (08:12 -0500)]
Fix #3561. Add an option to place the Python installation into the Windows Path environment variable.
Antoine Pitrou [Wed, 25 Apr 2012 12:58:17 +0000 (14:58 +0200)]
Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
Antoine Pitrou [Wed, 25 Apr 2012 12:56:46 +0000 (14:56 +0200)]
Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
Nick Coghlan [Wed, 25 Apr 2012 12:17:54 +0000 (22:17 +1000)]
Start a shared utility script for poking around at the import internals
Vinay Sajip [Wed, 25 Apr 2012 09:51:35 +0000 (10:51 +0100)]
Merged fixed test from 3.2.
Vinay Sajip [Wed, 25 Apr 2012 09:47:00 +0000 (10:47 +0100)]
Fixed test to work on Windows.
Marc-Andre Lemburg [Wed, 25 Apr 2012 08:54:48 +0000 (10:54 +0200)]
Issue #14605 and #14642:
Issue a warning in case Python\importlib.h needs to be rebuilt,
but there's no Python interpreter around to freeze the bootstrap
script.
Brett Cannon [Wed, 25 Apr 2012 02:03:46 +0000 (22:03 -0400)]
Issue #14605: Insert to the front of sys.path_hooks instead of appending.
Marc-Andre Lemburg [Wed, 25 Apr 2012 00:31:37 +0000 (02:31 +0200)]
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.
This time also recreating the Python/importlib.h file to make
make happy. See the ticket for details.
Marc-Andre Lemburg [Wed, 25 Apr 2012 00:11:07 +0000 (02:11 +0200)]
Issue #14605: Revert renaming of _SourcelessFileLoader, since it caused
the buildbots to fail.
Marc-Andre Lemburg [Tue, 24 Apr 2012 23:36:48 +0000 (01:36 +0200)]
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader
Vinay Sajip [Tue, 24 Apr 2012 22:33:33 +0000 (23:33 +0100)]
Issue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch.
Vinay Sajip [Tue, 24 Apr 2012 22:25:30 +0000 (23:25 +0100)]
Issue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch.
Antoine Pitrou [Tue, 24 Apr 2012 20:56:57 +0000 (22:56 +0200)]
Issue #4892: multiprocessing Connections can now be transferred over multiprocessing Connections.
Patch by Richard Oudkerk (sbt).
Lars Gustäbel [Tue, 24 Apr 2012 19:09:17 +0000 (21:09 +0200)]
Merge with 3.2: Issue #14160: TarFile.extractfile() failed to resolve symbolic
links when the links were not located in an archive subdirectory.
Lars Gustäbel [Tue, 24 Apr 2012 19:04:40 +0000 (21:04 +0200)]
Issue #14160: TarFile.extractfile() failed to resolve symbolic links
when the links were not located in an archive subdirectory.
Jesus Cea [Tue, 24 Apr 2012 18:59:17 +0000 (20:59 +0200)]
Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add some Solaris constants too)
Jesus Cea [Tue, 24 Apr 2012 18:44:40 +0000 (20:44 +0200)]
Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT
Benjamin Peterson [Tue, 24 Apr 2012 18:44:18 +0000 (14:44 -0400)]
distiguish between refusing to creating shared keys and error (#13903)
Sandro Tosi [Tue, 24 Apr 2012 17:46:29 +0000 (19:46 +0200)]
Issue #14448: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 17:46:06 +0000 (19:46 +0200)]
Issue #14448: mention pytz; patch by Andrew Svetlov
Georg Brandl [Tue, 24 Apr 2012 17:16:24 +0000 (19:16 +0200)]
Fix location of versionaddeds and empty lines.
Martin v. Loewis [Tue, 24 Apr 2012 17:13:57 +0000 (19:13 +0200)]
Account for shared keys in type's __sizeof__ (#13903).
Sandro Tosi [Tue, 24 Apr 2012 16:39:53 +0000 (18:39 +0200)]
Issue #14554: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 16:39:24 +0000 (18:39 +0200)]
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
Sandro Tosi [Tue, 24 Apr 2012 16:12:13 +0000 (18:12 +0200)]
Issue #13478: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 16:11:46 +0000 (18:11 +0200)]
Issue #13478: document timeit.default_timer()
Sandro Tosi [Tue, 24 Apr 2012 15:37:02 +0000 (17:37 +0200)]
Issue #13587: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 15:36:41 +0000 (17:36 +0200)]
Issue #13587: use the right RFC2617 name for WWW-Authenticate; patch by Aaron Maenpaa
Benjamin Peterson [Tue, 24 Apr 2012 15:09:20 +0000 (11:09 -0400)]
merge 3.2 (#14658)
Benjamin Peterson [Tue, 24 Apr 2012 15:06:25 +0000 (11:06 -0400)]
don't use a slot wrapper from a different special method (closes #14658)
This also alters the fix to #11603. Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
Benjamin Peterson [Tue, 24 Apr 2012 14:32:57 +0000 (10:32 -0400)]
fix dict gc tracking (#13903)
Antoine Pitrou [Tue, 24 Apr 2012 11:55:35 +0000 (13:55 +0200)]
Skip long repr tests when the cached pyc file's path length would exceed the maximum Win32 path length.
This should fix a failure on one of the XP buildbots.
Benjamin Peterson [Tue, 24 Apr 2012 01:45:40 +0000 (21:45 -0400)]
make pointer arith c89
Benjamin Peterson [Mon, 23 Apr 2012 22:07:01 +0000 (18:07 -0400)]
use correct base ptr
Benjamin Peterson [Mon, 23 Apr 2012 22:00:25 +0000 (18:00 -0400)]
simplify and reformat
Victor Stinner [Mon, 23 Apr 2012 21:36:38 +0000 (23:36 +0200)]
Close #14648: Compute correctly maxchar in str.format() for substrin
R David Murray [Mon, 23 Apr 2012 18:45:45 +0000 (14:45 -0400)]
Merge #14640: Fix typos/syntax in pyporting.rst.
Patch by Dionysios Kalofonos.
R David Murray [Mon, 23 Apr 2012 18:44:00 +0000 (14:44 -0400)]
#14640: Fix typos/syntax in pyporting.rst.
Patch by Dionysios Kalofonos.
Sandro Tosi [Mon, 23 Apr 2012 18:07:15 +0000 (20:07 +0200)]
Issue #14650: fix typo in shutil.disk_usage() docstring; patch by Hobson Lane
Benjamin Peterson [Mon, 23 Apr 2012 17:50:05 +0000 (13:50 -0400)]
merge heads