]>
granicus.if.org Git - python/log
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
Sandro Tosi [Mon, 23 Apr 2012 17:45:45 +0000 (19:45 +0200)]
Issue #14641: merge with 3.2
Sandro Tosi [Mon, 23 Apr 2012 17:45:07 +0000 (19:45 +0200)]
Issue #14641: minor fixes to sockets Howto; patch by Dionysios Kalofonos
Benjamin Peterson [Mon, 23 Apr 2012 17:44:32 +0000 (13:44 -0400)]
fix instance dicts with str subclasses (#13903)
R David Murray [Mon, 23 Apr 2012 17:26:44 +0000 (13:26 -0400)]
merge #14638: pydoc now treats non-str __name__ as None instead of raising
Original patch by Peter Otten.
R David Murray [Mon, 23 Apr 2012 17:23:57 +0000 (13:23 -0400)]
#14638: pydoc now treats non-str __name__ as None instead of raising
Original patch by Peter Otten.
Senthil Kumaran [Mon, 23 Apr 2012 15:56:36 +0000 (23:56 +0800)]
merge heads
Senthil Kumaran [Mon, 23 Apr 2012 15:55:50 +0000 (23:55 +0800)]
news for issue13684
Senthil Kumaran [Mon, 23 Apr 2012 15:53:51 +0000 (23:53 +0800)]
3.2 - Fix for Issue13684 - httplib tunnel infinite loop
Senthil Kumaran [Mon, 23 Apr 2012 15:53:16 +0000 (23:53 +0800)]
news for issue13684
Benjamin Peterson [Mon, 23 Apr 2012 15:50:47 +0000 (11:50 -0400)]
don't make shared keys with dict subclasses
Senthil Kumaran [Mon, 23 Apr 2012 15:50:07 +0000 (23:50 +0800)]
3.2 - Fix for Issue13684 - httplib tunnel infinite loop
Benjamin Peterson [Mon, 23 Apr 2012 15:25:49 +0000 (11:25 -0400)]
merge 3.2
Benjamin Peterson [Mon, 23 Apr 2012 15:25:32 +0000 (11:25 -0400)]
add Mark Shannon
Benjamin Peterson [Mon, 23 Apr 2012 15:24:50 +0000 (11:24 -0400)]
Implement PEP 412: Key-sharing dictionaries (closes #13903)
Patch from Mark Shannon.
Benjamin Peterson [Mon, 23 Apr 2012 14:55:29 +0000 (10:55 -0400)]
inherit maxchar of field value where needed (closes #14648)
Benjamin Peterson [Mon, 23 Apr 2012 14:08:20 +0000 (10:08 -0400)]
merge 3.2
Benjamin Peterson [Mon, 23 Apr 2012 14:08:14 +0000 (10:08 -0400)]
sleep here
Brett Cannon [Sun, 22 Apr 2012 23:58:33 +0000 (19:58 -0400)]
Issue #14605: Expose importlib.abc.FileLoader and
importlib.machinery.(FileFinder, SourceFileLoader,
_SourcelessFileLoader, ExtensionFileLoader).
This exposes all of importlib's mechanisms that will become public on
the sys module.
Brett Cannon [Sun, 22 Apr 2012 17:30:07 +0000 (13:30 -0400)]
merge
Brett Cannon [Sun, 22 Apr 2012 17:29:47 +0000 (13:29 -0400)]
Change tests for imp.cache_from_source() to follow os.path.join/split
semantics.
Vinay Sajip [Sun, 22 Apr 2012 17:19:50 +0000 (18:19 +0100)]
Issue #14644: Increased default timeout for SMTPHandler. Note: last commit message referred to the wrong issue number.
Vinay Sajip [Sun, 22 Apr 2012 17:16:14 +0000 (18:16 +0100)]
Issue #14622: Increased default timeout for SMTPHandler.
Brett Cannon [Sun, 22 Apr 2012 17:02:31 +0000 (13:02 -0400)]
merge
Brett Cannon [Sun, 22 Apr 2012 15:45:07 +0000 (11:45 -0400)]
Issue #13959: Continue to try to accomodate altsep in importlib by not
ignoring altsep if it already exists on a path when doing a join.
Charles-François Natali [Sun, 22 Apr 2012 13:55:43 +0000 (15:55 +0200)]
Use os.path.samestat() instead of reinventing the wheel.
Nick Coghlan [Sun, 22 Apr 2012 07:16:39 +0000 (17:16 +1000)]
Resolve #14026 (Merge from 3.2)
Nick Coghlan [Sun, 22 Apr 2012 07:11:33 +0000 (17:11 +1000)]
Close issue #14026 by better testing sys.argv handling in test_cmd_line_script (patch by Jason Yeo)
Brett Cannon [Sun, 22 Apr 2012 06:08:59 +0000 (02:08 -0400)]
Mention the backwards-incompatible change to imp.cache_from_source()/source_from_cache().
Brett Cannon [Sun, 22 Apr 2012 06:06:48 +0000 (02:06 -0400)]
merge
Brett Cannon [Sun, 22 Apr 2012 06:06:23 +0000 (02:06 -0400)]
Revert to os.path.join() semantics for path manipulation in importlib
which is different than what imp.cache_from_source() operates on.
Senthil Kumaran [Sun, 22 Apr 2012 02:31:52 +0000 (10:31 +0800)]
issue2193 - Update docs about the legal characters allowed in Cookie name
Senthil Kumaran [Sun, 22 Apr 2012 02:30:17 +0000 (10:30 +0800)]
issue2193 - Update 3.2 docs about legal characters allowed in Cookie name
Brett Cannon [Sun, 22 Apr 2012 01:47:08 +0000 (21:47 -0400)]
Update importlib.h
Brett Cannon [Sun, 22 Apr 2012 01:46:32 +0000 (21:46 -0400)]
Continue the good fight to get Windows to like importlib by fixing a
variable name.
Brett Cannon [Sun, 22 Apr 2012 01:21:54 +0000 (21:21 -0400)]
merge
Brett Cannon [Sun, 22 Apr 2012 01:21:27 +0000 (21:21 -0400)]
Have importlib look for pre-existing path separators when joining
paths.