]> granicus.if.org Git - python/log
python
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

12 years agoonly incref when using borrowing functions
Benjamin Peterson [Thu, 26 Apr 2012 04:26:37 +0000 (00:26 -0400)]
only incref when using borrowing functions

12 years agoIssue #14605: Make explicit the entries on sys.path_hooks that used to
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.

12 years agoSilence DeprecationWarning for cgi.escape() usage in test_cgi.
Brett Cannon [Thu, 26 Apr 2012 00:49:19 +0000 (20:49 -0400)]
Silence DeprecationWarning for cgi.escape() usage in test_cgi.

12 years agoUpdate importlib.h
Brett Cannon [Thu, 26 Apr 2012 00:18:55 +0000 (20:18 -0400)]
Update importlib.h

12 years agoMerge
Brett Cannon [Thu, 26 Apr 2012 00:18:24 +0000 (20:18 -0400)]
Merge

12 years ago_PyUnicode_CheckConsistency() ensures that the unicode string ends with a
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

12 years agolong_to_decimal_string() and _PyLong_Format() check the consistency of newly
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

12 years agoIssue #14605 and #14642: Issue a warning in case Python\importlib.h needs to
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.

12 years agoFix #3561. Add an option to place the Python installation into the Windows Path envir...
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.

12 years agoIssue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class...
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).

12 years agoIssue #14664: It is now possible to use @unittest.skip{If,Unless} on a test class...
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).

12 years agoStart a shared utility script for poking around at the import internals
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

12 years agoMerged fixed test from 3.2.
Vinay Sajip [Wed, 25 Apr 2012 09:51:35 +0000 (10:51 +0100)]
Merged fixed test from 3.2.

12 years agoFixed test to work on Windows.
Vinay Sajip [Wed, 25 Apr 2012 09:47:00 +0000 (10:47 +0100)]
Fixed test to work on Windows.

12 years agoIssue #14605 and #14642:
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.

12 years agoIssue #14605: Insert to the front of sys.path_hooks instead of appending.
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.

12 years agoIssue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.
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.

12 years agoIssue #14605: Revert renaming of _SourcelessFileLoader, since it caused
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.

12 years agoIssue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader
Marc-Andre Lemburg [Tue, 24 Apr 2012 23:36:48 +0000 (01:36 +0200)]
Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader

12 years agoIssue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John...
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.

12 years agoIssue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John...
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.

12 years agoIssue #4892: multiprocessing Connections can now be transferred over multiprocessing...
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).

12 years agoMerge with 3.2: Issue #14160: TarFile.extractfile() failed to resolve symbolic
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.

12 years agoIssue #14160: TarFile.extractfile() failed to resolve symbolic links
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.

12 years agoCloses Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add some Solar...
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)

12 years agoIssue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT
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

12 years agodistiguish between refusing to creating shared keys and error (#13903)
Benjamin Peterson [Tue, 24 Apr 2012 18:44:18 +0000 (14:44 -0400)]
distiguish between refusing to creating shared keys and error (#13903)

12 years agoIssue #14448: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 17:46:29 +0000 (19:46 +0200)]
Issue #14448: merge with 3.2

12 years agoIssue #14448: mention pytz; patch by Andrew Svetlov
Sandro Tosi [Tue, 24 Apr 2012 17:46:06 +0000 (19:46 +0200)]
Issue #14448: mention pytz; patch by Andrew Svetlov

12 years agoFix location of versionaddeds and empty lines.
Georg Brandl [Tue, 24 Apr 2012 17:16:24 +0000 (19:16 +0200)]
Fix location of versionaddeds and empty lines.

12 years agoAccount for shared keys in type's __sizeof__ (#13903).
Martin v. Loewis [Tue, 24 Apr 2012 17:13:57 +0000 (19:13 +0200)]
Account for shared keys in type's __sizeof__ (#13903).

12 years agoIssue #14554: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 16:39:53 +0000 (18:39 +0200)]
Issue #14554: merge with 3.2

12 years agoIssue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe
Sandro Tosi [Tue, 24 Apr 2012 16:39:24 +0000 (18:39 +0200)]
Issue #14554: correct example for captured_stdout(); patch by Tshepang Lekhonkhobe

12 years agoIssue #13478: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 16:12:13 +0000 (18:12 +0200)]
Issue #13478: merge with 3.2

12 years agoIssue #13478: document timeit.default_timer()
Sandro Tosi [Tue, 24 Apr 2012 16:11:46 +0000 (18:11 +0200)]
Issue #13478: document timeit.default_timer()

12 years agoIssue #13587: merge with 3.2
Sandro Tosi [Tue, 24 Apr 2012 15:37:02 +0000 (17:37 +0200)]
Issue #13587: merge with 3.2

12 years agoIssue #13587: use the right RFC2617 name for WWW-Authenticate; patch by Aaron Maenpaa
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

12 years agomerge 3.2 (#14658)
Benjamin Peterson [Tue, 24 Apr 2012 15:09:20 +0000 (11:09 -0400)]
merge 3.2 (#14658)

12 years agodon't use a slot wrapper from a different special method (closes #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.

12 years agofix dict gc tracking (#13903)
Benjamin Peterson [Tue, 24 Apr 2012 14:32:57 +0000 (10:32 -0400)]
fix dict gc tracking (#13903)

12 years agoSkip long repr tests when the cached pyc file's path length would exceed the maximum...
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.

12 years agomake pointer arith c89
Benjamin Peterson [Tue, 24 Apr 2012 01:45:40 +0000 (21:45 -0400)]
make pointer arith c89

12 years agouse correct base ptr
Benjamin Peterson [Mon, 23 Apr 2012 22:07:01 +0000 (18:07 -0400)]
use correct base ptr

12 years agosimplify and reformat
Benjamin Peterson [Mon, 23 Apr 2012 22:00:25 +0000 (18:00 -0400)]
simplify and reformat

12 years agoClose #14648: Compute correctly maxchar in str.format() for substrin
Victor Stinner [Mon, 23 Apr 2012 21:36:38 +0000 (23:36 +0200)]
Close #14648: Compute correctly maxchar in str.format() for substrin

12 years agoMerge #14640: Fix typos/syntax in pyporting.rst.
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.

12 years ago#14640: Fix typos/syntax in pyporting.rst.
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.

12 years agoIssue #14650: fix typo in shutil.disk_usage() docstring; patch by Hobson Lane
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

12 years agomerge heads
Benjamin Peterson [Mon, 23 Apr 2012 17:50:05 +0000 (13:50 -0400)]
merge heads

12 years agoIssue #14641: merge with 3.2
Sandro Tosi [Mon, 23 Apr 2012 17:45:45 +0000 (19:45 +0200)]
Issue #14641: merge with 3.2

12 years agoIssue #14641: minor fixes to sockets Howto; patch by Dionysios Kalofonos
Sandro Tosi [Mon, 23 Apr 2012 17:45:07 +0000 (19:45 +0200)]
Issue #14641: minor fixes to sockets Howto; patch by Dionysios Kalofonos

12 years agofix instance dicts with str subclasses (#13903)
Benjamin Peterson [Mon, 23 Apr 2012 17:44:32 +0000 (13:44 -0400)]
fix instance dicts with str subclasses (#13903)

12 years agomerge #14638: pydoc now treats non-str __name__ as None instead of raising
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.

12 years ago#14638: pydoc now treats non-str __name__ as None instead of raising
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.

12 years agomerge heads
Senthil Kumaran [Mon, 23 Apr 2012 15:56:36 +0000 (23:56 +0800)]
merge heads

12 years agonews for issue13684
Senthil Kumaran [Mon, 23 Apr 2012 15:55:50 +0000 (23:55 +0800)]
news for issue13684

12 years ago 3.2 - Fix for Issue13684 - httplib tunnel infinite loop
Senthil Kumaran [Mon, 23 Apr 2012 15:53:51 +0000 (23:53 +0800)]
 3.2 - Fix for Issue13684 - httplib tunnel infinite loop

12 years agonews for issue13684
Senthil Kumaran [Mon, 23 Apr 2012 15:53:16 +0000 (23:53 +0800)]
news for issue13684

12 years agodon't make shared keys with dict subclasses
Benjamin Peterson [Mon, 23 Apr 2012 15:50:47 +0000 (11:50 -0400)]
don't make shared keys with dict subclasses

12 years ago 3.2 - Fix for Issue13684 - httplib tunnel infinite loop
Senthil Kumaran [Mon, 23 Apr 2012 15:50:07 +0000 (23:50 +0800)]
 3.2 - Fix for Issue13684 - httplib tunnel infinite loop

12 years agomerge 3.2
Benjamin Peterson [Mon, 23 Apr 2012 15:25:49 +0000 (11:25 -0400)]
merge 3.2

12 years agoadd Mark Shannon
Benjamin Peterson [Mon, 23 Apr 2012 15:25:32 +0000 (11:25 -0400)]
add Mark Shannon

12 years agoImplement PEP 412: Key-sharing dictionaries (closes #13903)
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.

12 years agoinherit maxchar of field value where needed (closes #14648)
Benjamin Peterson [Mon, 23 Apr 2012 14:55:29 +0000 (10:55 -0400)]
inherit maxchar of field value where needed (closes #14648)

12 years agomerge 3.2
Benjamin Peterson [Mon, 23 Apr 2012 14:08:20 +0000 (10:08 -0400)]
merge 3.2

12 years agosleep here
Benjamin Peterson [Mon, 23 Apr 2012 14:08:14 +0000 (10:08 -0400)]
sleep here

12 years agoIssue #14605: Expose importlib.abc.FileLoader and
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.

12 years agomerge
Brett Cannon [Sun, 22 Apr 2012 17:30:07 +0000 (13:30 -0400)]
merge

12 years agoChange tests for imp.cache_from_source() to follow os.path.join/split
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.

12 years agoIssue #14644: Increased default timeout for SMTPHandler. Note: last commit message...
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.

12 years agoIssue #14622: Increased default timeout for SMTPHandler.
Vinay Sajip [Sun, 22 Apr 2012 17:16:14 +0000 (18:16 +0100)]
Issue #14622: Increased default timeout for SMTPHandler.

12 years agomerge
Brett Cannon [Sun, 22 Apr 2012 17:02:31 +0000 (13:02 -0400)]
merge

12 years agoIssue #13959: Continue to try to accomodate altsep in importlib by not
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.

12 years agoUse os.path.samestat() instead of reinventing the wheel.
Charles-François Natali [Sun, 22 Apr 2012 13:55:43 +0000 (15:55 +0200)]
Use os.path.samestat() instead of reinventing the wheel.

12 years agoResolve #14026 (Merge from 3.2)
Nick Coghlan [Sun, 22 Apr 2012 07:16:39 +0000 (17:16 +1000)]
Resolve #14026 (Merge from 3.2)

12 years agoClose issue #14026 by better testing sys.argv handling in test_cmd_line_script (patch...
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)

12 years agoMention the backwards-incompatible change to imp.cache_from_source()/source_from_cache().
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().

12 years agomerge
Brett Cannon [Sun, 22 Apr 2012 06:06:48 +0000 (02:06 -0400)]
merge

12 years agoRevert to os.path.join() semantics for path manipulation in importlib
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.

12 years agoissue2193 - Update docs about the legal characters allowed in Cookie name
Senthil Kumaran [Sun, 22 Apr 2012 02:31:52 +0000 (10:31 +0800)]
issue2193 - Update docs about the legal characters allowed in Cookie name

12 years agoissue2193 - Update 3.2 docs about 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

12 years agoUpdate importlib.h
Brett Cannon [Sun, 22 Apr 2012 01:47:08 +0000 (21:47 -0400)]
Update importlib.h

12 years agoContinue the good fight to get Windows to like importlib by fixing a
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.

12 years agomerge
Brett Cannon [Sun, 22 Apr 2012 01:21:54 +0000 (21:21 -0400)]
merge

12 years agoHave importlib look for pre-existing path separators when joining
Brett Cannon [Sun, 22 Apr 2012 01:21:27 +0000 (21:21 -0400)]
Have importlib look for pre-existing path separators when joining
paths.

12 years agomerge heads
Senthil Kumaran [Sun, 22 Apr 2012 01:19:49 +0000 (09:19 +0800)]
merge heads

12 years agoFix Issue2193 - Allow ":" character in Cookie NAME values
Senthil Kumaran [Sun, 22 Apr 2012 01:19:04 +0000 (09:19 +0800)]
Fix Issue2193 - Allow ":" character in Cookie NAME values

12 years agoFix whitespace.
Brett Cannon [Sun, 22 Apr 2012 01:15:28 +0000 (21:15 -0400)]
Fix whitespace.

12 years agoIssue #13959: Re-implement imp.find_module() in Lib/imp.py.
Brett Cannon [Sun, 22 Apr 2012 01:09:46 +0000 (21:09 -0400)]
Issue #13959: Re-implement imp.find_module() in Lib/imp.py.

Thanks to Eric Snow for taking an initial stab at the implementation.

12 years agoIssue #14637: Fix the UNC import test under Windows to actually use
Brett Cannon [Sat, 21 Apr 2012 23:11:58 +0000 (19:11 -0400)]
Issue #14637: Fix the UNC import test under Windows to actually use
the UNC path. Also clean up sys.path and invalidate finder caches.

Thanks to Vinay Sajip for spotting the use of the wrong path.

12 years agoDon't worry about moving imp.get_tag() over to Lib/imp.py.
Brett Cannon [Sat, 21 Apr 2012 22:55:51 +0000 (18:55 -0400)]
Don't worry about moving imp.get_tag() over to Lib/imp.py.

12 years agomerge
Brett Cannon [Sat, 21 Apr 2012 22:53:14 +0000 (18:53 -0400)]
merge

12 years agoIssue #13959: Re-implement imp.source_from_cache() in Lib/imp.py.
Brett Cannon [Sat, 21 Apr 2012 22:52:52 +0000 (18:52 -0400)]
Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py.

12 years agoRemove incorrect comment
Michael Foord [Sat, 21 Apr 2012 17:32:56 +0000 (18:32 +0100)]
Remove incorrect comment

12 years agoCloses issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
Michael Foord [Sat, 21 Apr 2012 17:22:28 +0000 (18:22 +0100)]
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.

12 years agoCloses issue 14636. mock objects raise exceptions from an iterable side_effect
Michael Foord [Sat, 21 Apr 2012 14:52:11 +0000 (15:52 +0100)]
Closes issue 14636. mock objects raise exceptions from an iterable side_effect

12 years agoIssue #13959: Re-implement imp.cache_from_source() in Lib/imp.py.
Brett Cannon [Sat, 21 Apr 2012 01:44:46 +0000 (21:44 -0400)]
Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py.