]> granicus.if.org Git - python/log
python
14 years agoMerge #11675
Mark Dickinson [Sat, 26 Mar 2011 10:22:56 +0000 (10:22 +0000)]
Merge #11675

14 years agoMerge #11675
Mark Dickinson [Sat, 26 Mar 2011 10:21:20 +0000 (10:21 +0000)]
Merge #11675

14 years agoIssue #11675: Zero-out newly-created multiprocessing.[Raw]Array objects.
Mark Dickinson [Sat, 26 Mar 2011 10:19:03 +0000 (10:19 +0000)]
Issue #11675:  Zero-out newly-created multiprocessing.[Raw]Array objects.

14 years agoMerge #10553 followup from 3.2
Éric Araujo [Sat, 26 Mar 2011 02:23:43 +0000 (03:23 +0100)]
Merge #10553 followup from 3.2

14 years ago#10553: Explain why compileall has no command-line argument to control optimization
Éric Araujo [Sat, 26 Mar 2011 02:22:55 +0000 (03:22 +0100)]
#10553: Explain why compileall has no command-line argument to control optimization

14 years agoBranch merge
Éric Araujo [Sat, 26 Mar 2011 01:01:33 +0000 (02:01 +0100)]
Branch merge

14 years agoMerge 3.2
Éric Araujo [Sat, 26 Mar 2011 01:00:51 +0000 (02:00 +0100)]
Merge 3.2

14 years agoBranch merge
Éric Araujo [Sat, 26 Mar 2011 01:00:08 +0000 (02:00 +0100)]
Branch merge

14 years agoMerge 3.1
Éric Araujo [Sat, 26 Mar 2011 00:59:47 +0000 (01:59 +0100)]
Merge 3.1

14 years agoBranch merge
Éric Araujo [Sat, 26 Mar 2011 00:55:56 +0000 (01:55 +0100)]
Branch merge

14 years agoRemove traces of division_warning left over from Python 2 (#10998)
Éric Araujo [Sat, 26 Mar 2011 00:55:15 +0000 (01:55 +0100)]
Remove traces of division_warning left over from Python 2 (#10998)

14 years agoMerge from 3.2
Kurt B. Kaiser [Sat, 26 Mar 2011 00:34:11 +0000 (20:34 -0400)]
Merge from 3.2

14 years agoMerge from 3.1
Kurt B. Kaiser [Sat, 26 Mar 2011 00:32:00 +0000 (20:32 -0400)]
Merge from 3.1

14 years ago<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue #4676
Kurt B. Kaiser [Sat, 26 Mar 2011 00:29:13 +0000 (20:29 -0400)]
<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue #4676

14 years agoMerge doc touchups from 3.1
Éric Araujo [Fri, 25 Mar 2011 23:50:16 +0000 (00:50 +0100)]
Merge doc touchups from 3.1

14 years agoBranch merge
Éric Araujo [Fri, 25 Mar 2011 23:47:47 +0000 (00:47 +0100)]
Branch merge

14 years agoTweaks to sys.flags description table.
Éric Araujo [Fri, 25 Mar 2011 23:47:04 +0000 (00:47 +0100)]
Tweaks to sys.flags description table.
The options listed in the table are now links to their documentation,
and the table uses compact markup to make it easier to read and edit.
First proposed in #10998.

14 years agoIssue #11666: Teach pydoc to display full help for named tuples
Raymond Hettinger [Fri, 25 Mar 2011 21:16:13 +0000 (14:16 -0700)]
Issue #11666: Teach pydoc to display full help for named tuples

14 years agoIssue #11666: Teach pydoc to display full help for named tuples
Raymond Hettinger [Fri, 25 Mar 2011 21:15:24 +0000 (14:15 -0700)]
Issue #11666: Teach pydoc to display full help for named tuples

14 years agoRemove untrue statement from tutorial
Éric Araujo [Fri, 25 Mar 2011 20:53:58 +0000 (21:53 +0100)]
Remove untrue statement from tutorial

14 years agoMerge #9557: eliminate 3 seconds of static overhead from test_mailbox.
R David Murray [Fri, 25 Mar 2011 20:20:16 +0000 (16:20 -0400)]
Merge #9557: eliminate 3 seconds of static overhead from test_mailbox.

14 years agoMerge #9557: eliminate 3 seconds of static overhead from test_mailbox.
R David Murray [Fri, 25 Mar 2011 20:16:54 +0000 (16:16 -0400)]
Merge #9557: eliminate 3 seconds of static overhead from test_mailbox.

14 years ago#9557: eliminate 3 seconds of static overhead from test_mailbox.
R David Murray [Fri, 25 Mar 2011 20:03:47 +0000 (16:03 -0400)]
#9557: eliminate 3 seconds of static overhead from test_mailbox.

This patch doesn't quite fix the 'run in a VM with Samba share'
timing problem, but it should at least make it better.

14 years agoIssue #11071: Fix whatsnew description of O/S access to raw bytes.
Raymond Hettinger [Fri, 25 Mar 2011 19:41:34 +0000 (12:41 -0700)]
Issue  #11071: Fix whatsnew description of O/S access to raw bytes.

14 years agoIssue #11071: Fix whatsnew description of O/S access to raw bytes.
Raymond Hettinger [Fri, 25 Mar 2011 19:41:07 +0000 (12:41 -0700)]
Issue  #11071: Fix whatsnew description of O/S access to raw bytes.

14 years agoMerge #11584: Since __getitem__ returns headers, make decode_header handle them.
R David Murray [Fri, 25 Mar 2011 19:31:52 +0000 (15:31 -0400)]
Merge #11584: Since __getitem__ returns headers, make decode_header handle them.

14 years agoUse universal construct os.path.expanduser('~') instead of os.environ['HOME']
Éric Araujo [Fri, 25 Mar 2011 19:31:50 +0000 (20:31 +0100)]
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']

14 years ago#11584: Since __getitem__ returns headers, make decode_header handle them.
R David Murray [Fri, 25 Mar 2011 19:10:55 +0000 (15:10 -0400)]
#11584: Since __getitem__ returns headers, make decode_header handle them.

Why I consider this a bug rather than an API change: the API change was
to Message, which didn't used to return Headers unless you added them
yourself.  Now it does (for 8bit binary header input), so decode_header
needs to be able to handle them.

14 years ago#2650: Merge with 3.2.
Ezio Melotti [Fri, 25 Mar 2011 12:26:56 +0000 (14:26 +0200)]
#2650: Merge with 3.2.

14 years ago#2650: Merge with 3.1.
Ezio Melotti [Fri, 25 Mar 2011 12:25:36 +0000 (14:25 +0200)]
#2650: Merge with 3.1.

14 years ago#2650: Refactor re.escape to use enumerate().
Ezio Melotti [Fri, 25 Mar 2011 12:19:30 +0000 (14:19 +0200)]
#2650: Refactor re.escape to use enumerate().

14 years ago#2650: Add tests with non-ascii chars for re.escape.
Ezio Melotti [Fri, 25 Mar 2011 12:09:33 +0000 (14:09 +0200)]
#2650: Add tests with non-ascii chars for re.escape.

14 years ago#2650: Refactor the tests for re.escape.
Ezio Melotti [Fri, 25 Mar 2011 12:08:44 +0000 (14:08 +0200)]
#2650: Refactor the tests for re.escape.

14 years agoRevert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
Thomas Wouters [Fri, 25 Mar 2011 10:42:37 +0000 (11:42 +0100)]
Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
few other assertEqual tests that snuck in), and expand the docstrings and
comments explaining why and how these tests are supposed to work.

14 years agoMerge from 3.2 again
Kurt B. Kaiser [Fri, 25 Mar 2011 04:32:23 +0000 (00:32 -0400)]
Merge from 3.2 again

14 years agoMerge from 3.1 again
Kurt B. Kaiser [Fri, 25 Mar 2011 04:30:40 +0000 (00:30 -0400)]
Merge from 3.1 again

14 years agoMerge from 3.2 again
Kurt B. Kaiser [Fri, 25 Mar 2011 04:26:11 +0000 (00:26 -0400)]
Merge from 3.2 again

14 years agoMerge 3.2 heads
Kurt B. Kaiser [Fri, 25 Mar 2011 04:22:09 +0000 (00:22 -0400)]
Merge 3.2 heads

14 years agoMerge default heads
Kurt B. Kaiser [Fri, 25 Mar 2011 03:41:20 +0000 (23:41 -0400)]
Merge default heads

14 years agoIssue #11634: Remove misleading paragraph from a comment
Eli Bendersky [Thu, 24 Mar 2011 20:32:56 +0000 (22:32 +0200)]
Issue #11634: Remove misleading paragraph from a comment

14 years agoMerge heads
Kurt B. Kaiser [Thu, 24 Mar 2011 19:10:28 +0000 (15:10 -0400)]
Merge heads

14 years agoMerge 3.2
Kurt B. Kaiser [Thu, 24 Mar 2011 19:03:14 +0000 (15:03 -0400)]
Merge 3.2

14 years ago#11093: make NOTTESTS empty by renaming confusingly named files in test dir.
R David Murray [Thu, 24 Mar 2011 18:57:05 +0000 (14:57 -0400)]
#11093: make NOTTESTS empty by renaming confusingly named files in test dir.

Patch by Sandro Tosi.

14 years ago#11031: Add --testdir to specify where to find tests
R David Murray [Thu, 24 Mar 2011 18:42:58 +0000 (14:42 -0400)]
#11031: Add --testdir to specify where to find tests

Patch by Sandro Tosi.  The main purpose of this option is to allow
an alternate set of tests files to be used when running tests
of the regrtest tool itself.

14 years ago#11030: make --coverdir work for relative directories again.
R David Murray [Thu, 24 Mar 2011 18:35:30 +0000 (14:35 -0400)]
#11030: make --coverdir work for relative directories again.

14 years agoRemove test_importable(). Couldn't see how to make this reliable across all platforms.
Raymond Hettinger [Thu, 24 Mar 2011 17:51:06 +0000 (10:51 -0700)]
Remove test_importable().  Couldn't see how to make this reliable across all platforms.

14 years agoMerge 3.1
Kurt B. Kaiser [Thu, 24 Mar 2011 17:19:35 +0000 (13:19 -0400)]
Merge 3.1

14 years agoMerge 3.2
Kurt B. Kaiser [Thu, 24 Mar 2011 16:51:10 +0000 (12:51 -0400)]
Merge 3.2

14 years agoIsolate the test_source() test in test_collections
Raymond Hettinger [Thu, 24 Mar 2011 16:45:43 +0000 (09:45 -0700)]
Isolate the test_source() test in test_collections

14 years agoMerge #11606: improved body_encode algorithm, no longer produces overlong lines
R David Murray [Thu, 24 Mar 2011 16:28:39 +0000 (12:28 -0400)]
Merge #11606: improved body_encode algorithm, no longer produces overlong lines

14 years agoMerge #11606: improved body_encode algorithm, no longer produces overlong lines
R David Murray [Thu, 24 Mar 2011 16:27:23 +0000 (12:27 -0400)]
Merge #11606: improved body_encode algorithm, no longer produces overlong lines

14 years ago#11606: improved body_encode algorithm, no longer produces overlong lines
R David Murray [Thu, 24 Mar 2011 16:19:26 +0000 (12:19 -0400)]
#11606: improved body_encode algorithm, no longer produces overlong lines

Algorithm and initial patch by Michael Henry.

14 years agoMerge 3.1
Kurt B. Kaiser [Thu, 24 Mar 2011 16:03:36 +0000 (12:03 -0400)]
Merge 3.1

14 years agoMerge 3.2
Victor Stinner [Thu, 24 Mar 2011 15:39:34 +0000 (16:39 +0100)]
Merge 3.2

14 years agoMerge 3.1
Victor Stinner [Thu, 24 Mar 2011 15:39:07 +0000 (16:39 +0100)]
Merge 3.1

14 years agotest_multiprocessing: use assertLess() to see the timeout on error
Victor Stinner [Thu, 24 Mar 2011 15:24:07 +0000 (16:24 +0100)]
test_multiprocessing: use assertLess() to see the timeout on error

14 years agoAdd tests for the atexit hook in concurrent.futures (part of #11635)
Antoine Pitrou [Thu, 24 Mar 2011 14:48:26 +0000 (15:48 +0100)]
Add tests for the atexit hook in concurrent.futures (part of #11635)

14 years agoAdd tests for the atexit hook in concurrent.futures (part of #11635)
Antoine Pitrou [Thu, 24 Mar 2011 14:47:39 +0000 (15:47 +0100)]
Add tests for the atexit hook in concurrent.futures (part of #11635)

14 years agoissue11236 getpass.getpass to respond ctrl-c or ctrl-z
Senthil Kumaran [Thu, 24 Mar 2011 14:27:01 +0000 (22:27 +0800)]
issue11236 getpass.getpass to respond ctrl-c or ctrl-z

14 years agoissue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch...
Senthil Kumaran [Thu, 24 Mar 2011 03:47:29 +0000 (11:47 +0800)]
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda

14 years agoissue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch...
Senthil Kumaran [Thu, 24 Mar 2011 03:46:19 +0000 (11:46 +0800)]
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda.

14 years agoAdd tests for _source to importable and exec'able.
Raymond Hettinger [Thu, 24 Mar 2011 03:33:30 +0000 (20:33 -0700)]
Add tests for _source to importable and exec'able.
Move __name__ back out of the template; the responsibility
for setting __name__ lies with the caller (which knows
something about the new namespace), not with the class
definition (which doesn't know about the namespace it is
being built in).

14 years agoRemove a stale comment.
Brett Cannon [Thu, 24 Mar 2011 01:12:24 +0000 (18:12 -0700)]
Remove a stale comment.

14 years agoMake importlib compatible with __import__ by "fixing" code.co_filename
Brett Cannon [Wed, 23 Mar 2011 23:14:42 +0000 (16:14 -0700)]
Make importlib compatible with __import__ by "fixing" code.co_filename
paths.

__import__ does a little trick when importing from bytecode by
back-patching the co_filename paths to point to the file location
where the code object was loaded from, *not* where the code object was
originally created. This allows co_filename to point to a valid path.
Problem is that co_filename is immutable from Python, so a private
function -- imp._fix_co_filename() -- had to be introduced in order to
get things working properly. Originally the plan was to add a file
argument to marshal.loads(), but that failed as the algorithm used by
__import__ is not fully recursive as one might expect, so to be fully
backwards-compatible the code used by __import__ needed to be exposed.

This closes issue #6811 by taking a different approach than outlined
in the issue.

14 years agoHave importlib use the repr of a module name in error messages.
Brett Cannon [Wed, 23 Mar 2011 23:06:00 +0000 (16:06 -0700)]
Have importlib use the repr of a module name in error messages.

This makes it obvious that an import failed because of some extraneous
whitespace (e.g., a newline).

This is a partial fix for issue #8754.

14 years agoIssue #11653: fix -W with -j in regrtest.
Antoine Pitrou [Wed, 23 Mar 2011 22:05:07 +0000 (23:05 +0100)]
Issue #11653: fix -W with -j in regrtest.

14 years agoAdd NEWS entry for 9aa6097131ef
Antoine Pitrou [Wed, 23 Mar 2011 22:02:31 +0000 (23:02 +0100)]
Add NEWS entry for 9aa6097131ef

14 years agoIssue #11653: fix -W with -j in regrtest
Antoine Pitrou [Wed, 23 Mar 2011 22:01:49 +0000 (23:01 +0100)]
Issue #11653: fix -W with -j in regrtest

14 years agoMinor clean-ups.
Raymond Hettinger [Wed, 23 Mar 2011 21:38:39 +0000 (14:38 -0700)]
Minor clean-ups.

14 years agoAdd news entry for the _source attribute created by namedtuple.
Raymond Hettinger [Wed, 23 Mar 2011 20:05:02 +0000 (13:05 -0700)]
Add news entry for the _source attribute created by namedtuple.

14 years agoMerge
Raymond Hettinger [Wed, 23 Mar 2011 19:53:32 +0000 (12:53 -0700)]
Merge

14 years agoExpose the namedtuple source with a _source attribute.
Raymond Hettinger [Wed, 23 Mar 2011 19:52:23 +0000 (12:52 -0700)]
Expose the namedtuple source with a _source attribute.

14 years agoMerge #11590: fix quoprimime decode handling of empty strings and line endings.
R David Murray [Wed, 23 Mar 2011 19:37:26 +0000 (15:37 -0400)]
Merge #11590: fix quoprimime decode handling of empty strings and line endings.

14 years agoMerge #11590: fix quoprimime decode handling of empty strings and line endings.
R David Murray [Wed, 23 Mar 2011 19:27:04 +0000 (15:27 -0400)]
Merge #11590: fix quoprimime decode handling of empty strings and line endings.

14 years ago#11590: fix quoprimime decode handling of empty strings and line endings.
R David Murray [Wed, 23 Mar 2011 19:25:55 +0000 (15:25 -0400)]
#11590: fix quoprimime decode handling of empty strings and line endings.

14 years agoAllow "-j0" as an argument to regrtest, to automatically select an
Antoine Pitrou [Wed, 23 Mar 2011 19:17:45 +0000 (20:17 +0100)]
Allow "-j0" as an argument to regrtest, to automatically select an
appropriate number of parallel workers.

14 years agoFix transmitting warning options to the children when running tests in
Antoine Pitrou [Wed, 23 Mar 2011 19:10:18 +0000 (20:10 +0100)]
Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).

14 years agoMove namespace setup inside the template.
Raymond Hettinger [Wed, 23 Mar 2011 18:49:56 +0000 (11:49 -0700)]
Move namespace setup inside the template.

14 years agoMerge #11589: add additional tests for the email quoprimime module.
R David Murray [Wed, 23 Mar 2011 18:29:49 +0000 (14:29 -0400)]
Merge #11589: add additional tests for the email quoprimime module.

14 years agoMerge #11589: add additional tests for the email quoprimime module.
R David Murray [Wed, 23 Mar 2011 18:27:18 +0000 (14:27 -0400)]
Merge #11589: add additional tests for the email quoprimime module.

14 years ago#11589: add additional tests for the email quoprimime module.
R David Murray [Wed, 23 Mar 2011 18:19:05 +0000 (14:19 -0400)]
#11589: add additional tests for the email quoprimime module.

Patch by Michael Henry.

14 years agoIssue #11244: Remove outdated peepholer check that was preventing the peepholer from...
Mark Dickinson [Wed, 23 Mar 2011 17:59:37 +0000 (17:59 +0000)]
Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0.  Thanks Eugene Toder for the patch.

14 years agoFix set representation in an example.
Raymond Hettinger [Wed, 23 Mar 2011 05:57:49 +0000 (22:57 -0700)]
Fix set representation in an example.

14 years agoMinor named tuple clean-ups.
Raymond Hettinger [Wed, 23 Mar 2011 05:36:21 +0000 (22:36 -0700)]
Minor named tuple clean-ups.

14 years agoFactor-out named tuple class definition template strings.
Raymond Hettinger [Wed, 23 Mar 2011 04:14:41 +0000 (21:14 -0700)]
Factor-out named tuple class definition template strings.

14 years agoBranch merge
Éric Araujo [Wed, 23 Mar 2011 03:53:10 +0000 (04:53 +0100)]
Branch merge

14 years agoMerge from 3.2
Éric Araujo [Wed, 23 Mar 2011 03:52:45 +0000 (04:52 +0100)]
Merge from 3.2

14 years agoBranch merge
Éric Araujo [Wed, 23 Mar 2011 03:52:08 +0000 (04:52 +0100)]
Branch merge

14 years agoMerge from 3.2.
Éric Araujo [Wed, 23 Mar 2011 03:40:51 +0000 (04:40 +0100)]
Merge from 3.2.

The fix was already present in 3.3, but I merged two small changes
recommended by Raymond while I was working on the 2.7 patch to ease
future merges.

14 years agoMerge from 3.1.
Éric Araujo [Wed, 23 Mar 2011 02:43:22 +0000 (03:43 +0100)]
Merge from 3.1.

The fix was already committed to 3.2, but I merged two small changes
recommended by Raymond while I was working on the 2.7 patch to ease
future merges.

14 years agoUse transient_internet() consistently in test_imaplib
Antoine Pitrou [Wed, 23 Mar 2011 02:11:21 +0000 (03:11 +0100)]
Use transient_internet() consistently in test_imaplib

14 years agoUse transient_internet() consistently in test_imaplib
Antoine Pitrou [Wed, 23 Mar 2011 02:10:14 +0000 (03:10 +0100)]
Use transient_internet() consistently in test_imaplib

14 years agoFix obscure set crashers (#8420). Backport of d56b3cafb1e6, reviewed by Raymond.
Éric Araujo [Wed, 23 Mar 2011 01:08:07 +0000 (02:08 +0100)]
Fix obscure set crashers (#8420).  Backport of d56b3cafb1e6, reviewed by Raymond.

14 years agoDo not touch sys.path when site is imported and python was started with -S.
Éric Araujo [Wed, 23 Mar 2011 01:06:24 +0000 (02:06 +0100)]
Do not touch sys.path when site is imported and python was started with -S.

Original patch by Carl Meyer, review by Brett Cannon, small doc editions by
yours truly.  Fixes #11591.

14 years agoIssue #10610: Document that int(), float(), and complex() accept numeric literals...
Raymond Hettinger [Wed, 23 Mar 2011 00:34:28 +0000 (17:34 -0700)]
Issue #10610: Document that int(), float(), and complex() accept numeric literals with the Nd property.

14 years agoIssue #10610: Document that int(), float(), and complex() accept numeric literals...
Raymond Hettinger [Wed, 23 Mar 2011 00:33:53 +0000 (17:33 -0700)]
Issue #10610: Document that int(), float(), and complex() accept numeric literals with the Nd property.

14 years agoIssue #10610: Document that int(), float(), and complex() accept numeric literals...
Raymond Hettinger [Wed, 23 Mar 2011 00:33:17 +0000 (17:33 -0700)]
Issue #10610: Document that int(), float(), and complex() accept numeric literals with the Nd property.

14 years agoMerge from 3.2
Kurt B. Kaiser [Wed, 23 Mar 2011 00:05:18 +0000 (20:05 -0400)]
Merge from 3.2

14 years agoIssue #10771: Clarify that descriptors get used in an *owner* class or one of its...
Raymond Hettinger [Tue, 22 Mar 2011 23:27:57 +0000 (16:27 -0700)]
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.

14 years agoIssue #10771: Clarify that descriptors get used in an *owner* class or one of its...
Raymond Hettinger [Tue, 22 Mar 2011 23:27:31 +0000 (16:27 -0700)]
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.