]> granicus.if.org Git - python/log
python
12 years agoMerged upstream changes.
Vinay Sajip [Mon, 9 Jul 2012 08:25:46 +0000 (09:25 +0100)]
Merged upstream changes.

12 years agoIssue #15283: Updated pyvenv documentation to expand on activation.
Vinay Sajip [Mon, 9 Jul 2012 08:24:59 +0000 (09:24 +0100)]
Issue #15283: Updated pyvenv documentation to expand on activation.

12 years agoAdd verbose option for diagnostics
Raymond Hettinger [Mon, 9 Jul 2012 08:17:22 +0000 (01:17 -0700)]
Add verbose option for diagnostics

12 years agoMerge with 3.2 Issue 12510
Terry Jan Reedy [Mon, 9 Jul 2012 04:15:14 +0000 (00:15 -0400)]
Merge with 3.2 Issue 12510

12 years agoIssue 12510: Delete actual first param name for all methods; revise tests.
Terry Jan Reedy [Mon, 9 Jul 2012 04:13:21 +0000 (00:13 -0400)]
Issue 12510: Delete actual first param name for all methods; revise tests.

12 years agorevert the changes done for issue14826 - quoting witin Request is not desirable.
Senthil Kumaran [Mon, 9 Jul 2012 01:00:47 +0000 (18:00 -0700)]
revert the changes done for issue14826 - quoting witin Request is not desirable.

12 years agorevert the changes done for issue14826 - quoting witin Request is not desirable.
Senthil Kumaran [Mon, 9 Jul 2012 00:47:25 +0000 (17:47 -0700)]
revert the changes done for issue14826 - quoting witin Request is not desirable.

12 years agoMake it easier to search for the grouper() recipe.
Raymond Hettinger [Sun, 8 Jul 2012 23:04:03 +0000 (16:04 -0700)]
Make it easier to search for the grouper() recipe.

12 years agoIssue 15265: document the exception raised for invalid sample sizes.
Raymond Hettinger [Sun, 8 Jul 2012 23:01:53 +0000 (16:01 -0700)]
Issue 15265: document the exception raised for invalid sample sizes.

12 years agoMinor algorithmic tweaks, better factoring, improved docstrings and variable names
Raymond Hettinger [Sun, 8 Jul 2012 22:42:54 +0000 (15:42 -0700)]
Minor algorithmic tweaks, better factoring, improved docstrings and variable names

12 years agoMerge 3.2 closes issue 13557
Terry Jan Reedy [Sun, 8 Jul 2012 21:52:58 +0000 (17:52 -0400)]
Merge 3.2 closes issue 13557

12 years agoIssue #13557: Clarify effect of giving two different namespaces to exec or
Terry Jan Reedy [Sun, 8 Jul 2012 21:36:14 +0000 (17:36 -0400)]
Issue #13557: Clarify effect of giving two different namespaces to exec or
execfile().

12 years agoIssue #15110: Copy same docstring as other '_exec_module' methods.
Amaury Forgeot d'Arc [Sun, 8 Jul 2012 19:03:01 +0000 (21:03 +0200)]
Issue #15110: Copy same docstring as other '_exec_module' methods.

12 years agoIssue #15110: Also hide importlib frames when importing a builtin module fails.
Amaury Forgeot d'Arc [Sun, 8 Jul 2012 18:52:38 +0000 (20:52 +0200)]
Issue #15110: Also hide importlib frames when importing a builtin module fails.

12 years agotest AST base type garbage collection
Benjamin Peterson [Sun, 8 Jul 2012 18:13:36 +0000 (11:13 -0700)]
test AST base type garbage collection

12 years agoadd news note for 85cccc38d01c
Benjamin Peterson [Sun, 8 Jul 2012 18:06:04 +0000 (11:06 -0700)]
add news note for 85cccc38d01c

12 years agoadd gc support to the AST base type (closes #15293)
Benjamin Peterson [Sun, 8 Jul 2012 18:03:46 +0000 (11:03 -0700)]
add gc support to the AST base type (closes #15293)

12 years agoCloses #15281, #15283: Don't make venv scripts executable, but copy source mode inste...
Vinay Sajip [Sun, 8 Jul 2012 16:50:42 +0000 (17:50 +0100)]
Closes #15281, #15283: Don't make venv scripts executable, but copy source mode instead, and provide better help for pyvenv.

12 years agoIssue 14814: The new systematic tests aren't just about error reporting any more...
Nick Coghlan [Sun, 8 Jul 2012 13:06:45 +0000 (23:06 +1000)]
Issue 14814: The new systematic tests aren't just about error reporting any more - change names accordingly. Added and tweaked some example to ensure they were covering the intended code paths

12 years agoMerge
Antoine Pitrou [Sun, 8 Jul 2012 12:00:06 +0000 (14:00 +0200)]
Merge

12 years agoFix test_inspect messing up with linecache.cache.
Antoine Pitrou [Sun, 8 Jul 2012 11:48:46 +0000 (13:48 +0200)]
Fix test_inspect messing up with linecache.cache.

12 years agoIssue 14814: Remove dead function (noticed by Serhiy Storchaka)
Nick Coghlan [Sun, 8 Jul 2012 11:38:12 +0000 (21:38 +1000)]
Issue 14814: Remove dead function (noticed by Serhiy Storchaka)

12 years agoFix test failure under Windows
Antoine Pitrou [Sun, 8 Jul 2012 11:16:15 +0000 (13:16 +0200)]
Fix test failure under Windows

12 years agoMerge
Antoine Pitrou [Sun, 8 Jul 2012 10:43:59 +0000 (12:43 +0200)]
Merge

12 years agoIssue #15291: Fix a memory leak where AST nodes where not properly deallocated.
Antoine Pitrou [Sun, 8 Jul 2012 10:43:32 +0000 (12:43 +0200)]
Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.

12 years agoIssue #11022 and #15287: correctly remove the TESTFN file in test_builtin.
Florent Xicluna [Sun, 8 Jul 2012 10:08:45 +0000 (12:08 +0200)]
Issue #11022 and #15287: correctly remove the TESTFN file in test_builtin.

12 years agoIssue #15110: Fix the tracebacks generated by "import xxx" to not show the importlib...
Antoine Pitrou [Sun, 8 Jul 2012 10:01:27 +0000 (12:01 +0200)]
Issue #15110: Fix the tracebacks generated by "import xxx" to not show the importlib stack frames.

12 years agoissue 14826 - Address the buildbot failure quote of url is the required change (...
Senthil Kumaran [Sun, 8 Jul 2012 09:16:08 +0000 (02:16 -0700)]
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973)

12 years agoissue 14826 - Address the buildbot failure ( explanation msg164973)
Senthil Kumaran [Sun, 8 Jul 2012 09:08:48 +0000 (02:08 -0700)]
issue 14826 - Address the buildbot failure ( explanation msg164973)

12 years agomerge heads
Senthil Kumaran [Sun, 8 Jul 2012 08:33:19 +0000 (01:33 -0700)]
merge heads

12 years agoFix markup for versionchanged sphinx directive.
Senthil Kumaran [Sun, 8 Jul 2012 08:32:57 +0000 (01:32 -0700)]
Fix markup for versionchanged sphinx directive.

12 years ago#15284: Skip {send,recv}msg tests with disabled IPv6
Ross Lagerwall [Sun, 8 Jul 2012 07:53:57 +0000 (09:53 +0200)]
#15284: Skip {send,recv}msg tests with disabled IPv6

Patch by Brian Brazil.

12 years agoIssue 14814: Further error case testing coverage and cleanups
Nick Coghlan [Sun, 8 Jul 2012 07:11:04 +0000 (17:11 +1000)]
Issue 14814: Further error case testing coverage and cleanups

12 years agoFix issue14826 - make urllib.request.Request quoted url consistent with URLOpener...
Senthil Kumaran [Sun, 8 Jul 2012 00:15:52 +0000 (17:15 -0700)]
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
Patch contributed by Stephen Thorne.

12 years agoFix issue14826 - make urllib.request.Request quoted url consistent with URLOpener...
Senthil Kumaran [Sun, 8 Jul 2012 00:11:44 +0000 (17:11 -0700)]
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
Patch contributed by Stephen Thorne.

12 years agoFix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it specifies an...
Senthil Kumaran [Sat, 7 Jul 2012 21:29:58 +0000 (14:29 -0700)]
Fix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it specifies an implementation specific term.

12 years agoCheck-in compiled importlib changes (you must run "make" after modifying the importli...
Antoine Pitrou [Sat, 7 Jul 2012 17:49:44 +0000 (19:49 +0200)]
Check-in compiled importlib changes (you must run "make" after modifying the importlib sources).

12 years agoMerge remote
Łukasz Langa [Sat, 7 Jul 2012 16:58:44 +0000 (18:58 +0200)]
Merge remote

12 years agoFixes #14590: ConfigParser doesn't strip inline comment when delimiter occurs
Łukasz Langa [Sat, 7 Jul 2012 16:54:08 +0000 (18:54 +0200)]
Fixes #14590: ConfigParser doesn't strip inline comment when delimiter occurs
earlier without preceding space.

12 years agoMerge with remote.
Ross Lagerwall [Sat, 7 Jul 2012 16:42:57 +0000 (18:42 +0200)]
Merge with remote.

12 years ago#15277: Fix a resource leak in support.py when IPv6 is disabled.
Ross Lagerwall [Sat, 7 Jul 2012 16:40:32 +0000 (18:40 +0200)]
#15277: Fix a resource leak in support.py when IPv6 is disabled.

The leak occurred by setting:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
before running test_support.

Patch by Brian Brazil.

12 years agoAdd a blurb about PEP 412
Antoine Pitrou [Sat, 7 Jul 2012 15:33:42 +0000 (17:33 +0200)]
Add a blurb about PEP 412

12 years agoSome cleanup in the Tools directory.
Florent Xicluna [Sat, 7 Jul 2012 15:03:54 +0000 (17:03 +0200)]
Some cleanup in the Tools directory.

12 years agotrace: remove unused imports.
Florent Xicluna [Sat, 7 Jul 2012 15:03:52 +0000 (17:03 +0200)]
trace: remove unused imports.

12 years agoAdd tests to marshall double with xmlrpc.client.
Florent Xicluna [Sat, 7 Jul 2012 15:03:25 +0000 (17:03 +0200)]
Add tests to marshall double with xmlrpc.client.

12 years agoIssue #13248: io: Remove obsolete argument "max_buffer_size" of BufferedWriter and...
Florent Xicluna [Sat, 7 Jul 2012 15:03:22 +0000 (17:03 +0200)]
Issue #13248: io: Remove obsolete argument "max_buffer_size" of BufferedWriter and BufferedRWPair.

12 years agoIssue #13248: argparse: Remove obsolete argument "version" of ArgumentParser.
Florent Xicluna [Sat, 7 Jul 2012 15:02:22 +0000 (17:02 +0200)]
Issue #13248: argparse: Remove obsolete argument "version" of ArgumentParser.

12 years agoIssue 14814: Ensure ordering semantics across all 3 entity types in ipaddress are...
Nick Coghlan [Sat, 7 Jul 2012 14:45:33 +0000 (00:45 +1000)]
Issue 14814: Ensure ordering semantics across all 3 entity types in ipaddress are consistent and well-defined

12 years agoIssue 14814: Correctly return NotImplemented from ipaddress._BaseNetwork.__eq__
Nick Coghlan [Sat, 7 Jul 2012 13:05:59 +0000 (23:05 +1000)]
Issue 14814: Correctly return NotImplemented from ipaddress._BaseNetwork.__eq__

12 years agoCope with OSs lying - #10142: Support for SEEK_HOLE/SEEK_DATA
Jesus Cea [Sat, 7 Jul 2012 12:56:04 +0000 (14:56 +0200)]
Cope with OSs lying - #10142: Support for SEEK_HOLE/SEEK_DATA

12 years agoIssue 14814: Further clean ups to the ipaddress tutorial
Nick Coghlan [Sat, 7 Jul 2012 12:53:46 +0000 (22:53 +1000)]
Issue 14814: Further clean ups to the ipaddress tutorial

12 years agoIssue 14814: Explain how to get more error detail in the ipaddress tutorial, and...
Nick Coghlan [Sat, 7 Jul 2012 12:15:22 +0000 (22:15 +1000)]
Issue 14814: Explain how to get more error detail in the ipaddress tutorial, and tweak the display for octet errors in IPv4 (noticed the formatting problem when adding to the docs)

12 years agoUse correct types for ASCII_CHAR_MASK integer constants.
Mark Dickinson [Sat, 7 Jul 2012 12:08:48 +0000 (14:08 +0200)]
Use correct types for ASCII_CHAR_MASK integer constants.

12 years agoIssue 14814: Make the ipaddress code easier to follow by using newer language feature...
Nick Coghlan [Sat, 7 Jul 2012 11:43:30 +0000 (21:43 +1000)]
Issue 14814: Make the ipaddress code easier to follow by using newer language features (patch by Serhiy Storchaka)

12 years agoMinor refactoring in importlib._bootstrap, and fix the '_wrap' docstring.
Florent Xicluna [Sat, 7 Jul 2012 11:16:44 +0000 (13:16 +0200)]
Minor refactoring in importlib._bootstrap, and fix the '_wrap' docstring.

12 years agoMinor refactoring in xml.etree.ElementTree doctype parser.
Florent Xicluna [Sat, 7 Jul 2012 11:16:44 +0000 (13:16 +0200)]
Minor refactoring in xml.etree.ElementTree doctype parser.

12 years agoMerge branch
Florent Xicluna [Sat, 7 Jul 2012 10:26:56 +0000 (12:26 +0200)]
Merge branch

12 years agoIssue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration.
Florent Xicluna [Sat, 7 Jul 2012 10:13:35 +0000 (12:13 +0200)]
Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding declaration.

12 years agoIssue 14814: Provide more informative error messages in ipaddress, and ensure that...
Nick Coghlan [Sat, 7 Jul 2012 09:23:53 +0000 (19:23 +1000)]
Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected

12 years agoIssue 14814: %s implies coercion with str() - remove a lot of redundant str() calls...
Nick Coghlan [Sat, 7 Jul 2012 03:34:50 +0000 (13:34 +1000)]
Issue 14814: %s implies coercion with str() - remove a lot of redundant str() calls from the ipaddress implementation

12 years ago- Issue #15268: Search curses.h in /usr/include/ncursesw.
doko@ubuntu.com [Sat, 7 Jul 2012 01:06:42 +0000 (03:06 +0200)]
- Issue #15268: Search curses.h in /usr/include/ncursesw.

12 years agoIssue #15247: FileIO now raises an error when given a file descriptor pointing to...
Antoine Pitrou [Fri, 6 Jul 2012 16:52:58 +0000 (18:52 +0200)]
Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory.

12 years agoIssue #15247: FileIO now raises an error when given a file descriptor pointing to...
Antoine Pitrou [Fri, 6 Jul 2012 16:48:24 +0000 (18:48 +0200)]
Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory.

12 years agoIssue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an excepti...
Nick Coghlan [Fri, 6 Jul 2012 15:43:31 +0000 (01:43 +1000)]
Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an exception early when given bytes data of the wrong length. Also removes 2.x backwards compatibility code from associated tests.

12 years agoIssue 14814: Better handling of cases where octet/hextet parsing fails, including...
Nick Coghlan [Fri, 6 Jul 2012 15:13:55 +0000 (01:13 +1000)]
Issue 14814: Better handling of cases where octet/hextet parsing fails, including ensuring that tracebacks are still clean even when calling class constructors directly

12 years agoIssue #15261: Stop os.stat(fd) crashing on Windows when fd not open.
Richard Oudkerk [Fri, 6 Jul 2012 11:05:32 +0000 (12:05 +0100)]
Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open.

12 years agoIssue #15020: The program name used to search for Python's path is now python3 under...
Antoine Pitrou [Thu, 5 Jul 2012 18:57:33 +0000 (20:57 +0200)]
Issue #15020: The program name used to search for Python's path is now python3 under Unix, not python.

12 years agoIssue #15020: The program name used to search for Python's path is now "python3"...
Antoine Pitrou [Thu, 5 Jul 2012 18:56:30 +0000 (20:56 +0200)]
Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python".

12 years agoFix issue # 15033 - Return the proper exitcode for failure when modules are invoked...
Senthil Kumaran [Thu, 5 Jul 2012 02:33:45 +0000 (19:33 -0700)]
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp

12 years agoFix issue # 15033 - Return the proper exitcode for failure when modules are invoked...
Senthil Kumaran [Thu, 5 Jul 2012 02:28:16 +0000 (19:28 -0700)]
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp

12 years agoIssue #15210: Greatly simplify the test for supporting importlib
Brett Cannon [Wed, 4 Jul 2012 18:03:40 +0000 (14:03 -0400)]
Issue #15210: Greatly simplify the test for supporting importlib
working without _frozen_importlib by moving to an import over a direct
access in sys.modules.

12 years agoFix undefined names in __all__.
Mark Dickinson [Wed, 4 Jul 2012 09:07:06 +0000 (11:07 +0200)]
Fix undefined names in __all__.

12 years agoMake ANSI the default output style
Raymond Hettinger [Wed, 4 Jul 2012 00:55:23 +0000 (17:55 -0700)]
Make ANSI the default output style

12 years agoAdd examples to the module docstring
Raymond Hettinger [Tue, 3 Jul 2012 21:42:33 +0000 (14:42 -0700)]
Add examples to the module docstring

12 years agoFix spelling.
Raymond Hettinger [Tue, 3 Jul 2012 21:25:16 +0000 (14:25 -0700)]
Fix spelling.

12 years agoAdd support for ANSI escape sequences
Raymond Hettinger [Tue, 3 Jul 2012 21:11:40 +0000 (14:11 -0700)]
Add support for ANSI escape sequences

12 years agoCloses #14902: Fixed timezone conversion of a date/time in the past. Thanks to Yuriy...
Vinay Sajip [Tue, 3 Jul 2012 20:36:36 +0000 (21:36 +0100)]
Closes #14902: Fixed timezone conversion of a date/time in the past. Thanks to Yuriy Syrovetskiy for the report and Juancarlo Añez for the patch on which this fix is based.

12 years agoRefactor to isolate HTML encoding step from the parsing step.
Raymond Hettinger [Tue, 3 Jul 2012 20:13:52 +0000 (13:13 -0700)]
Refactor to isolate HTML encoding step from the parsing step.

12 years agoCloses #15241: Added information on venv prefixes to pyvenv section.
Vinay Sajip [Tue, 3 Jul 2012 16:26:55 +0000 (17:26 +0100)]
Closes #15241: Added information on venv prefixes to pyvenv section.

12 years agoIssue #15241: Added test for venv prefixes.
Vinay Sajip [Tue, 3 Jul 2012 15:56:40 +0000 (16:56 +0100)]
Issue #15241: Added test for venv prefixes.

12 years agoIssue 15241: Improved site.py documentation relating to venvs.
Vinay Sajip [Tue, 3 Jul 2012 15:33:57 +0000 (16:33 +0100)]
Issue 15241: Improved site.py documentation relating to venvs.

12 years agoNULL MERGE: Issue #1677: Unused variable warning in Non-Windows
Jesus Cea [Tue, 3 Jul 2012 11:18:30 +0000 (13:18 +0200)]
NULL MERGE: Issue #1677: Unused variable warning in Non-Windows

12 years agoIssue #1677: Unused variable warning in Non-Windows
Jesus Cea [Tue, 3 Jul 2012 11:15:03 +0000 (13:15 +0200)]
Issue #1677: Unused variable warning in Non-Windows

12 years agoFix keyword argument
Raymond Hettinger [Tue, 3 Jul 2012 07:15:59 +0000 (00:15 -0700)]
Fix keyword argument

12 years agoMinor cleanups
Raymond Hettinger [Tue, 3 Jul 2012 07:12:27 +0000 (00:12 -0700)]
Minor cleanups

12 years agoUse new-style string formatting for the HTML template
Raymond Hettinger [Tue, 3 Jul 2012 00:17:16 +0000 (17:17 -0700)]
Use new-style string formatting for the HTML template

12 years agoClean-up unused variable
Raymond Hettinger [Mon, 2 Jul 2012 20:54:33 +0000 (13:54 -0700)]
Clean-up unused variable

12 years agoDo HTML escaping after the tokenization step.
Raymond Hettinger [Mon, 2 Jul 2012 20:29:57 +0000 (13:29 -0700)]
Do HTML escaping after the tokenization step.

12 years agoIssue #15166: Re-implement imp.get_tag() using sys.implementation.
Brett Cannon [Mon, 2 Jul 2012 19:13:11 +0000 (15:13 -0400)]
Issue #15166: Re-implement imp.get_tag() using sys.implementation.
Also eliminates some C code in Python/import.c as well.

Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.

12 years agoIssue #15210: If _frozen_importlib is not found in sys.modules by
Brett Cannon [Mon, 2 Jul 2012 18:53:10 +0000 (14:53 -0400)]
Issue #15210: If _frozen_importlib is not found in sys.modules by
importlib.__init__, then catch the KeyError raised, not ImportError.

12 years agoCloses #15030: Make importlib.abc.PyPycLoader respect the new .pyc
Brett Cannon [Mon, 2 Jul 2012 18:35:34 +0000 (14:35 -0400)]
Closes #15030: Make importlib.abc.PyPycLoader respect the new .pyc
file size header field.

Thanks to Marc Abramowitz and Ronan Lamy for helping out with various
parts of the patch.

12 years agoRemove ISSUES.txt.
Stefan Krah [Sun, 1 Jul 2012 10:24:20 +0000 (12:24 +0200)]
Remove ISSUES.txt.

12 years ago- Issue #15235: Allow Berkley DB versions up to 5.3 to build the dbm module.
doko@ubuntu.com [Sun, 1 Jul 2012 08:35:54 +0000 (10:35 +0200)]
- Issue #15235: Allow Berkley DB versions up to 5.3 to build the dbm module.

12 years agoFix filename.
Georg Brandl [Sun, 1 Jul 2012 08:04:35 +0000 (10:04 +0200)]
Fix filename.

12 years agoMerge with 3.2.
Georg Brandl [Sun, 1 Jul 2012 07:56:07 +0000 (09:56 +0200)]
Merge with 3.2.

12 years agoMake call of os.getppid() conditional: it is not available on Windows.
Georg Brandl [Sun, 1 Jul 2012 07:47:54 +0000 (09:47 +0200)]
Make call of os.getppid() conditional: it is not available on Windows.

12 years agoFix inconsistent function name in embedding howto.
Georg Brandl [Sun, 1 Jul 2012 07:43:20 +0000 (09:43 +0200)]
Fix inconsistent function name in embedding howto.

12 years agoLimit which operators get colorized
Raymond Hettinger [Sun, 1 Jul 2012 07:37:05 +0000 (00:37 -0700)]
Limit which operators get colorized

12 years agoSet title to the source filename
Raymond Hettinger [Sun, 1 Jul 2012 06:19:30 +0000 (23:19 -0700)]
Set title to the source filename

12 years agoSmall cleanups
Raymond Hettinger [Sun, 1 Jul 2012 05:19:04 +0000 (22:19 -0700)]
Small cleanups