]>
granicus.if.org Git - python/log
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).
Brett Cannon [Thu, 24 Mar 2011 01:12:24 +0000 (18:12 -0700)]
Remove a stale comment.
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.
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.
Antoine Pitrou [Wed, 23 Mar 2011 22:05:07 +0000 (23:05 +0100)]
Issue #11653: fix -W with -j in regrtest.
Antoine Pitrou [Wed, 23 Mar 2011 22:02:31 +0000 (23:02 +0100)]
Add NEWS entry for
9aa6097131ef
Antoine Pitrou [Wed, 23 Mar 2011 22:01:49 +0000 (23:01 +0100)]
Issue #11653: fix -W with -j in regrtest
Raymond Hettinger [Wed, 23 Mar 2011 21:38:39 +0000 (14:38 -0700)]
Minor clean-ups.
Raymond Hettinger [Wed, 23 Mar 2011 20:05:02 +0000 (13:05 -0700)]
Add news entry for the _source attribute created by namedtuple.
Raymond Hettinger [Wed, 23 Mar 2011 19:53:32 +0000 (12:53 -0700)]
Merge
Raymond Hettinger [Wed, 23 Mar 2011 19:52:23 +0000 (12:52 -0700)]
Expose the namedtuple source with a _source attribute.
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.
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.
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.
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.
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).
Raymond Hettinger [Wed, 23 Mar 2011 18:49:56 +0000 (11:49 -0700)]
Move namespace setup inside the template.
R David Murray [Wed, 23 Mar 2011 18:29:49 +0000 (14:29 -0400)]
Merge #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.
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.
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.
Raymond Hettinger [Wed, 23 Mar 2011 05:57:49 +0000 (22:57 -0700)]
Fix set representation in an example.
Raymond Hettinger [Wed, 23 Mar 2011 05:36:21 +0000 (22:36 -0700)]
Minor named tuple clean-ups.
Raymond Hettinger [Wed, 23 Mar 2011 04:14:41 +0000 (21:14 -0700)]
Factor-out named tuple class definition template strings.
Éric Araujo [Wed, 23 Mar 2011 03:53:10 +0000 (04:53 +0100)]
Branch merge
Éric Araujo [Wed, 23 Mar 2011 03:52:45 +0000 (04:52 +0100)]
Merge from 3.2
Éric Araujo [Wed, 23 Mar 2011 03:52:08 +0000 (04:52 +0100)]
Branch merge
É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.
É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.
Antoine Pitrou [Wed, 23 Mar 2011 02:11:21 +0000 (03:11 +0100)]
Use 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
Éric Araujo [Wed, 23 Mar 2011 01:08:07 +0000 (02:08 +0100)]
Fix obscure set crashers (#8420). Backport of
d56b3cafb1e6 , reviewed by Raymond.
É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.
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.
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.
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.
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.
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.
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.
Raymond Hettinger [Tue, 22 Mar 2011 22:57:03 +0000 (15:57 -0700)]
Issue 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.
Raymond Hettinger [Tue, 22 Mar 2011 22:55:51 +0000 (15:55 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:33:40 +0000 (15:33 -0700)]
Issue 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.
Raymond Hettinger [Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)]
Issue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 21:22:52 +0000 (14:22 -0700)]
Clean-up whitespace.
Raymond Hettinger [Tue, 22 Mar 2011 21:21:38 +0000 (14:21 -0700)]
Replace **locals() with explicit field names.
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.
Raymond Hettinger [Tue, 22 Mar 2011 20:34:03 +0000 (13:34 -0700)]
Improve readability by replacing '\n' in template with real newlines.
Raymond Hettinger [Tue, 22 Mar 2011 18:46:25 +0000 (11:46 -0700)]
Issue #11333: Add __slots__ to the collections ABCs.
Antoine Pitrou [Tue, 22 Mar 2011 17:34:21 +0000 (18:34 +0100)]
Merge
Antoine Pitrou [Tue, 22 Mar 2011 17:33:33 +0000 (18:33 +0100)]
Merge
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)
Raymond Hettinger [Tue, 22 Mar 2011 16:19:02 +0000 (09:19 -0700)]
Issue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:12:18 +0000 (09:12 -0700)]
Issue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:11:39 +0000 (09:11 -0700)]
Issue #11625: Fix Typo
Victor Stinner [Tue, 22 Mar 2011 09:46:35 +0000 (10:46 +0100)]
Issue #11630, issue #3080: Fix refleak introduced by
ef2b6305d395
Raymond Hettinger [Tue, 22 Mar 2011 00:54:04 +0000 (17:54 -0700)]
Issue #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__.
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.
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.
R David Murray [Mon, 21 Mar 2011 21:36:15 +0000 (17:36 -0400)]
Fix rename spelling error.
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.
R David Murray [Mon, 21 Mar 2011 21:17:06 +0000 (17:17 -0400)]
Correctly move email package tests to Lib/test.
R David Murray [Mon, 21 Mar 2011 20:01:23 +0000 (16:01 -0400)]
Prepare for move of email tests.
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
R David Murray [Mon, 21 Mar 2011 19:14:34 +0000 (15:14 -0400)]
Make regrtest recognize test packages as well as test modules.
Antoine Pitrou [Mon, 21 Mar 2011 18:55:58 +0000 (19:55 +0100)]
Always 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"
Antoine Pitrou [Mon, 21 Mar 2011 18:05:18 +0000 (19:05 +0100)]
Try 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
Antoine Pitrou [Mon, 21 Mar 2011 17:43:40 +0000 (18:43 +0100)]
Relax 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)
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.
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
Reid Kleckner [Mon, 21 Mar 2011 17:06:10 +0000 (10:06 -0700)]
Fix timeout error message on windows to not be in milliseconds.
Antoine Pitrou [Mon, 21 Mar 2011 15:04:06 +0000 (16:04 +0100)]
Issue #11621: fix bootstrap issue with getopt/gettext (following
d3e46930ffe9 )
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().
Victor Stinner [Mon, 21 Mar 2011 12:23:42 +0000 (13:23 +0100)]
_elementtree.c: remove trailing spaces
Georg Brandl [Mon, 21 Mar 2011 07:55:42 +0000 (08:55 +0100)]
Merge to default.
Georg Brandl [Mon, 21 Mar 2011 07:55:31 +0000 (08:55 +0100)]
Merge to 3.2.
Georg Brandl [Mon, 21 Mar 2011 07:55:16 +0000 (08:55 +0100)]
Fix duplicate word.
Victor Stinner [Mon, 21 Mar 2011 02:28:59 +0000 (03:28 +0100)]
merge 3.2 (already commited before)
Victor Stinner [Mon, 21 Mar 2011 02:28:10 +0000 (03:28 +0100)]
merge 3.1 (already commited before)
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).
Éric Araujo [Mon, 21 Mar 2011 02:18:58 +0000 (03:18 +0100)]
Fix some issue references in NEWS
Éric Araujo [Mon, 21 Mar 2011 02:17:12 +0000 (03:17 +0100)]
Branch merge
Éric Araujo [Mon, 21 Mar 2011 02:15:22 +0000 (03:15 +0100)]
Fix some issue references in NEWS
Victor Stinner [Mon, 21 Mar 2011 01:53:04 +0000 (02:53 +0100)]
merge 3.2
Victor Stinner [Mon, 21 Mar 2011 01:51:38 +0000 (02:51 +0100)]
merge 3.1
Victor Stinner [Mon, 21 Mar 2011 01:38:51 +0000 (02:38 +0100)]
Issue #5537: Fix time2isoz() and time2netscape() functions of httplib.cookiejar
for expiration year greater than 2038 on 32-bit systems.
Victor Stinner [Mon, 21 Mar 2011 01:15:18 +0000 (02:15 +0100)]
merge 3.2
Victor Stinner [Mon, 21 Mar 2011 01:14:53 +0000 (02:14 +0100)]
time.strftime(): replace PyErr_Format() by PyErr_SetString()
The argument was not used in the format string.
Victor Stinner [Mon, 21 Mar 2011 01:12:09 +0000 (02:12 +0100)]
merge
Victor Stinner [Mon, 21 Mar 2011 01:11:01 +0000 (02:11 +0100)]
Issue #10864 has been fixed: remove the workaround
Victor Stinner [Mon, 21 Mar 2011 00:58:55 +0000 (01:58 +0100)]
Closes #11210: Remove PyErr_SetFromWindowsErrWithFilenameObject() of pyerrors.h
PyErr_SetFromWindowsErrWithFilenameObject() was never implemented.
Antoine Pitrou [Sun, 20 Mar 2011 23:29:02 +0000 (00:29 +0100)]
Merge
Antoine Pitrou [Sun, 20 Mar 2011 23:28:52 +0000 (00:28 +0100)]
Merge
Antoine Pitrou [Sun, 20 Mar 2011 23:27:45 +0000 (00:27 +0100)]
Try to strengthen test_httpservers (issue #11617)
Antoine Pitrou [Sun, 20 Mar 2011 23:26:51 +0000 (00:26 +0100)]
Try to strengthen test_httpservers (issue #11617)