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

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:02 +0000 (16:27 -0700)]
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.

14 years agoIssue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:57:03 +0000 (15:57 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.

14 years agoIssue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:56:41 +0000 (15:56 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.

14 years agoIssue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:55:51 +0000 (15:55 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.

14 years agoIssue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 22:33:40 +0000 (15:33 -0700)]
Issue 10988: fix description of super's descriptor call.

14 years agoIssue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 22:33:02 +0000 (15:33 -0700)]
Issue 10988: fix description of super's descriptor call.

14 years agoIssue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)]
Issue 10988: fix description of super's descriptor call.

14 years agoClean-up whitespace.
Raymond Hettinger [Tue, 22 Mar 2011 21:22:52 +0000 (14:22 -0700)]
Clean-up whitespace.

14 years agoReplace **locals() with explicit field names.
Raymond Hettinger [Tue, 22 Mar 2011 21:21:38 +0000 (14:21 -0700)]
Replace **locals() with explicit field names.

14 years agoSimplify the named tuple template by using the new string format syntax.
Raymond Hettinger [Tue, 22 Mar 2011 21:07:23 +0000 (14:07 -0700)]
Simplify the named tuple template by using the new string format syntax.

14 years agoImprove readability by replacing '\n' in template with real newlines.
Raymond Hettinger [Tue, 22 Mar 2011 20:34:03 +0000 (13:34 -0700)]
Improve readability by replacing '\n' in template with real newlines.

14 years agoIssue #11333: Add __slots__ to the collections ABCs.
Raymond Hettinger [Tue, 22 Mar 2011 18:46:25 +0000 (11:46 -0700)]
Issue #11333: Add __slots__ to the collections ABCs.

14 years agoMerge
Antoine Pitrou [Tue, 22 Mar 2011 17:34:21 +0000 (18:34 +0100)]
Merge

14 years agoMerge
Antoine Pitrou [Tue, 22 Mar 2011 17:33:33 +0000 (18:33 +0100)]
Merge

14 years agoUse shorter timings in test_concurrent_futures to make it a bit faster
Antoine Pitrou [Tue, 22 Mar 2011 17:30:30 +0000 (18:30 +0100)]
Use shorter timings in test_concurrent_futures to make it a bit faster
(it's still very slow)

14 years agoIssue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:19:02 +0000 (09:19 -0700)]
Issue #11625: Fix Typo

14 years agoIssue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:12:18 +0000 (09:12 -0700)]
Issue #11625: Fix Typo

14 years agoIssue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:11:39 +0000 (09:11 -0700)]
Issue #11625: Fix Typo

14 years agoIssue #11630, issue #3080: Fix refleak introduced by ef2b6305d395
Victor Stinner [Tue, 22 Mar 2011 09:46:35 +0000 (10:46 +0100)]
Issue #11630, issue #3080: Fix refleak introduced by ef2b6305d395

14 years agoIssue #11628: cmp_to_key should use __slots__.
Raymond Hettinger [Tue, 22 Mar 2011 00:54:04 +0000 (17:54 -0700)]
Issue #11628: cmp_to_key should use __slots__.

14 years agoIssue #11628: cmp_to_key should use __slots__.
Raymond Hettinger [Tue, 22 Mar 2011 00:50:28 +0000 (17:50 -0700)]
Issue #11628: cmp_to_key should use __slots__.

14 years agoIssue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
Victor Stinner [Tue, 22 Mar 2011 00:22:27 +0000 (01:22 +0100)]
Issue #3080: On DJGPP, case_bytes() returns -1 to signal an error if the file
cannot be found.

14 years agoIssue #7330, #10833: Replace %100s by %.100s and %200s by %.200s
Victor Stinner [Tue, 22 Mar 2011 00:09:21 +0000 (01:09 +0100)]
Issue #7330, #10833: Replace %100s by %.100s and %200s by %.200s

I suppose that the author would like to truncate the type name, not get a
string of 100/200 characters.

14 years agoFix rename spelling error.
R David Murray [Mon, 21 Mar 2011 21:36:15 +0000 (17:36 -0400)]
Fix rename spelling error.

14 years agoDummy merge to overlay fixed email.test move on top of borked move.
R David Murray [Mon, 21 Mar 2011 21:27:51 +0000 (17:27 -0400)]
Dummy merge to overlay fixed email.test move on top of borked move.

14 years agoCorrectly move email package tests to Lib/test.
R David Murray [Mon, 21 Mar 2011 21:17:06 +0000 (17:17 -0400)]
Correctly move email package tests to Lib/test.

14 years agoPrepare for move of email tests.
R David Murray [Mon, 21 Mar 2011 20:01:23 +0000 (16:01 -0400)]
Prepare for move of email tests.

14 years agoMove email tests to Lib/test package and modernize test runner machinery
R David Murray [Mon, 21 Mar 2011 19:46:55 +0000 (15:46 -0400)]
Move email tests to Lib/test package and modernize test runner machinery

14 years agoMake regrtest recognize test packages as well as test modules.
R David Murray [Mon, 21 Mar 2011 19:14:34 +0000 (15:14 -0400)]
Make regrtest recognize test packages as well as test modules.

14 years agoAlways print out the traceback when a test "crashed"
Antoine Pitrou [Mon, 21 Mar 2011 18:55:58 +0000 (19:55 +0100)]
Always print out the traceback when a test "crashed"

14 years agoAlways print out the traceback when a test "crashed"
Antoine Pitrou [Mon, 21 Mar 2011 18:55:16 +0000 (19:55 +0100)]
Always print out the traceback when a test "crashed"

14 years agoTry to make test_import a bit more robust
Antoine Pitrou [Mon, 21 Mar 2011 18:05:18 +0000 (19:05 +0100)]
Try to make test_import a bit more robust

14 years agoTry to make test_import a bit more robust
Antoine Pitrou [Mon, 21 Mar 2011 18:05:02 +0000 (19:05 +0100)]
Try to make test_import a bit more robust

14 years agoRelax timing check (seen a buildbot failure on this)
Antoine Pitrou [Mon, 21 Mar 2011 17:43:40 +0000 (18:43 +0100)]
Relax timing check (seen a buildbot failure on this)

14 years agoRelax timing check (seen a buildbot failure on this)
Antoine Pitrou [Mon, 21 Mar 2011 17:43:01 +0000 (18:43 +0100)]
Relax timing check (seen a buildbot failure on this)

14 years agoIssue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of
Victor Stinner [Mon, 21 Mar 2011 17:15:42 +0000 (18:15 +0100)]
Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of
PyOS_snprintf() to avoid temporary buffer allocated on the stack and a
conversion from bytes to Unicode.

14 years agoIssue #10833: Remove the buffer allocated on the stack, it isn't used anymore
Victor Stinner [Mon, 21 Mar 2011 17:10:02 +0000 (18:10 +0100)]
Issue #10833: Remove the buffer allocated on the stack, it isn't used anymore

14 years agoFix timeout error message on windows to not be in milliseconds.
Reid Kleckner [Mon, 21 Mar 2011 17:06:10 +0000 (10:06 -0700)]
Fix timeout error message on windows to not be in milliseconds.

14 years agoIssue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9)
Antoine Pitrou [Mon, 21 Mar 2011 15:04:06 +0000 (16:04 +0100)]
Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9)

14 years agoIssue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of
Victor Stinner [Mon, 21 Mar 2011 12:26:24 +0000 (13:26 +0100)]
Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of
PyOS_snprintf().

14 years ago_elementtree.c: remove trailing spaces
Victor Stinner [Mon, 21 Mar 2011 12:23:42 +0000 (13:23 +0100)]
_elementtree.c: remove trailing spaces

14 years agoMerge to default.
Georg Brandl [Mon, 21 Mar 2011 07:55:42 +0000 (08:55 +0100)]
Merge to default.

14 years agoMerge to 3.2.
Georg Brandl [Mon, 21 Mar 2011 07:55:31 +0000 (08:55 +0100)]
Merge to 3.2.

14 years agoFix duplicate word.
Georg Brandl [Mon, 21 Mar 2011 07:55:16 +0000 (08:55 +0100)]
Fix duplicate word.

14 years agomerge 3.2 (already commited before)
Victor Stinner [Mon, 21 Mar 2011 02:28:59 +0000 (03:28 +0100)]
merge 3.2 (already commited before)

14 years agomerge 3.1 (already commited before)
Victor Stinner [Mon, 21 Mar 2011 02:28:10 +0000 (03:28 +0100)]
merge 3.1 (already commited before)

14 years agoIssue #8651: PyArg_Parse*() functions raise an OverflowError if the file
Victor Stinner [Mon, 21 Mar 2011 02:22:50 +0000 (03:22 +0100)]
Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1 bytes).

14 years agoFix some issue references in NEWS
Éric Araujo [Mon, 21 Mar 2011 02:18:58 +0000 (03:18 +0100)]
Fix some issue references in NEWS

14 years agoBranch merge
Éric Araujo [Mon, 21 Mar 2011 02:17:12 +0000 (03:17 +0100)]
Branch merge

14 years agoFix some issue references in NEWS
Éric Araujo [Mon, 21 Mar 2011 02:15:22 +0000 (03:15 +0100)]
Fix some issue references in NEWS

14 years agomerge 3.2
Victor Stinner [Mon, 21 Mar 2011 01:53:04 +0000 (02:53 +0100)]
merge 3.2