Benjamin Peterson
2c1414661d
improve
2012-04-18 11:25:12 -04:00
Benjamin Peterson
6e3358a1d5
merge 3.2 ( #14612 )
2012-04-18 11:19:00 -04:00
Benjamin Peterson
e42fb307ed
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ( closes #14612 )
2012-04-18 11:14:31 -04:00
Antoine Pitrou
eca851815d
Merge heads
2012-04-18 16:59:52 +02:00
Antoine Pitrou
ec9bac4226
Fix it for good :-)
2012-04-18 16:57:54 +02:00
Benjamin Peterson
d76bc7abac
rollback 005fd1fe31ab (see #14609 and #14582 )
...
Being able to overload a sys.module entry during import of a module was broken
by this changeset.
2012-04-18 10:55:43 -04:00
Benjamin Peterson
da20cd2b6b
fix refcnt/style/debuging oversights
2012-04-18 10:48:00 -04:00
Brian Curtin
94c001b503
Fix email post-commit review comments.
...
Add INCREFs, fix args->kwargs, and a second args==NULL check was removed,
left over from a merger with another function. Instead, checking msg==NULL
does what that used to do in a roundabout way.
2012-04-18 08:30:51 -05:00
Brett Cannon
03c7ed1580
Merge
2012-04-17 21:42:07 -04:00
Brett Cannon
7bd329d800
Issue #12599 : Be more strict in accepting None vs. a false-like object
...
in importlib.
Thanks to PJE for pointing out the issue and Nick Coghlan for filing
the bug.
2012-04-17 21:41:35 -04:00
Benjamin Peterson
2a1fdc4c76
merge 3.2 ( #14607 )
2012-04-17 19:54:35 -04:00
Benjamin Peterson
32c59b6fc1
mangle keyword-only argname when loading defaults ( closes #14607 )
2012-04-17 19:53:21 -04:00
Brett Cannon
64befe939c
Issue #13959 : Re-implement imp.load_compiled() in imp.py.
2012-04-17 19:14:26 -04:00
Brett Cannon
273323cf68
Issue #14592 : A relative import will raise a KeyError if __package__
...
or __name__ are not set in globals.
Thanks to Stefan Behnel for the bug report.
2012-04-17 19:05:11 -04:00
Brian Curtin
09b86d1196
Fix #14600 . Correct reference handling and naming of ImportError convenience function
2012-04-17 16:57:09 -05:00
Charles-François Natali
fba807ac44
Issue #5113 : Fix a test_posix failure on HP-UX, where non-root users can
...
chown() to root under certain circumstances.
2012-04-17 19:58:50 +02:00
Charles-François Natali
ab2d58eefa
Issue #5113 : Fix a test_posix failure on HP-UX, where non-root users can
...
chown() to root under certain circumstances.
2012-04-17 19:48:35 +02:00
Charles-François Natali
c8ce715a82
Issue #14087 : multiprocessing: add Condition.wait_for(). Patch by sbt.
2012-04-17 18:45:57 +02:00
Antoine Pitrou
a3f4457b17
Speed up reading of small files. This avoids multiple C read() calls on pyc files.
2012-04-17 13:50:58 +02:00
Ezio Melotti
006917ec7f
#14603 : use a listcomp in ZipFile.namelist.
2012-04-16 21:34:24 -06:00
Brett Cannon
578393b286
Properly guard against special-casing.
2012-04-16 23:11:28 -04:00
Brett Cannon
16475adcbb
Issue #13959 : Re-implement imp.load_source() in imp.py.
2012-04-16 22:11:25 -04:00
Brett Cannon
4132368d0a
Issue #14599 : Fix an import caching race condition.
2012-04-16 20:50:33 -04:00
Brett Cannon
ceffda822f
Issue #14599 : Make test_reprlib robust against import cache race
...
conditions when regrtest is run with its -j option.
2012-04-16 20:48:50 -04:00
Brett Cannon
de10bf4f4d
Issue #13959 : Fix a logic bug.
2012-04-16 20:44:21 -04:00
Vinay Sajip
f138f8c1ab
Merged cookbook corrections from 3.2.
2012-04-17 00:41:39 +01:00
Vinay Sajip
62930e1cc5
Corrected version numbers in cookbook example.
2012-04-17 00:40:48 +01:00
Brian Curtin
bded894499
Add versionadded tags to newly added ImportError convenience functions.
2012-04-16 18:14:09 -05:00
Brian Curtin
c07bda0a5a
Correct warnings when building the docs for the nonexistet :arg: role. Changed to asterisks.
2012-04-16 15:24:02 -05:00
Brian Curtin
bd43974037
Add documentation for the new PyErr_SetFromImport* functions
2012-04-16 15:14:36 -05:00
Antoine Pitrou
22a1d17bb5
Fix another refleak
2012-04-16 22:06:21 +02:00
Antoine Pitrou
538ba2afb5
Fix a refleak
2012-04-16 21:52:45 +02:00
Antoine Pitrou
de3c73b57c
pep8-ize test names
2012-04-16 21:29:58 +02:00
Antoine Pitrou
6b64fc6bff
Fix refleak in test_gc
2012-04-16 21:29:02 +02:00
Antoine Pitrou
71382cb64b
Fix reference loss on Py_None when None is encountered in sys.modules.
2012-04-16 18:48:49 +02:00
Antoine Pitrou
a938c74751
Avoid compiler warning due to stray \x00
2012-04-16 18:30:54 +02:00
Antoine Pitrou
a49323537b
Avoid rebuilding all C files when importlib.h is updated.
2012-04-16 18:29:28 +02:00
Brett Cannon
75babfa886
Add an explicit mention of a backwards-incompatible fix that importlib implicitly fixed.
2012-04-16 11:35:55 -04:00
Vinay Sajip
7706d9ae4f
Closes #14452 : brought tests in line with removal of BOM insertion code.
2012-04-16 16:22:38 +01:00
Vinay Sajip
e8a463d791
Merged tweaks to cookbook example from 3.2.
2012-04-16 15:47:05 +01:00
Vinay Sajip
59b9a79a5a
Tweaked format of cookbook example.
2012-04-16 15:46:18 +01:00
Vinay Sajip
1b7101968a
Merged cookbook update from 3.2.
2012-04-16 15:29:28 +01:00
Vinay Sajip
b00e8f108d
Added cookbook example for BOM insertion.
2012-04-16 15:28:50 +01:00
Vinay Sajip
b4e59e9dc1
Closes #14452 : remove BOM insertion code.
2012-04-16 14:44:31 +01:00
Vinay Sajip
ee9e485c21
Closes #14452 : remove BOM insertion code.
2012-04-16 14:39:53 +01:00
Brian Curtin
b206a80dab
Fix #10854 . Make use of the new path and name attributes on ImportError
...
for extension modules on Windows.
2012-04-16 00:10:17 -05:00
Brett Cannon
15439817bf
merge
2012-04-15 22:28:45 -04:00
Brett Cannon
2ee61422ed
Issue #13959 : Re-implement imp.load_package() in imp.py.
...
Thanks to Eric Snow for helping with imp.load_module() (previous
commit) which led to the removal of a bunch of C code.
2012-04-15 22:28:28 -04:00
Antoine Pitrou
d15e6a32c4
Issue #14589 : Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.
2012-04-16 03:37:35 +02:00
Antoine Pitrou
aa292f91bb
Issue #14589 : Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.
2012-04-16 03:34:44 +02:00