summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12599: Be more strict in accepting None vs. a false-like objectBrett Cannon2012-04-185-1205/+1233
| | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug.
* Issue #13959: Re-implement imp.load_compiled() in imp.py.Brett Cannon2012-04-172-81/+20
|
* Issue #14592: A relative import will raise a KeyError if __package__Brett Cannon2012-04-173-1/+10
| | | | | | or __name__ are not set in globals. Thanks to Stefan Behnel for the bug report.
* Fix #14600. Correct reference handling and naming of ImportError convenience ↵Brian Curtin2012-04-175-53/+31
| | | | function
* Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
|\ | | | | | | chown() to root under certain circumstances.
| * Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
| | | | | | | | chown() to root under certain circumstances.
* | Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.Charles-François Natali2012-04-175-0/+113
| |
* | Speed up reading of small files. This avoids multiple C read() calls on pyc ↵Antoine Pitrou2012-04-171-3/+11
| | | | | | | | files.
* | #14603: use a listcomp in ZipFile.namelist.Ezio Melotti2012-04-171-4/+1
| |
* | Properly guard against special-casing.Brett Cannon2012-04-171-1/+1
| |
* | Issue #13959: Re-implement imp.load_source() in imp.py.Brett Cannon2012-04-172-391/+28
| |
* | Issue #14599: Fix an import caching race condition.Brett Cannon2012-04-171-0/+1
| |
* | Issue #14599: Make test_reprlib robust against import cache raceBrett Cannon2012-04-171-0/+7
| | | | | | | | conditions when regrtest is run with its -j option.
* | Issue #13959: Fix a logic bug.Brett Cannon2012-04-171-1/+1
| |
* | Merged cookbook corrections from 3.2.Vinay Sajip2012-04-161-2/+2
|\ \ | |/
| * Corrected version numbers in cookbook example.Vinay Sajip2012-04-161-2/+2
| |
* | Add versionadded tags to newly added ImportError convenience functions.Brian Curtin2012-04-161-0/+5
| |
* | Correct warnings when building the docs for the nonexistet :arg: role. ↵Brian Curtin2012-04-161-5/+5
| | | | | | | | Changed to asterisks.
* | Add documentation for the new PyErr_SetFromImport* functionsBrian Curtin2012-04-161-0/+18
| |
* | Fix another refleakAntoine Pitrou2012-04-161-3/+7
| |
* | Fix a refleakAntoine Pitrou2012-04-161-2/+3
| |
* | pep8-ize test namesAntoine Pitrou2012-04-161-3/+3
| |
* | Fix refleak in test_gcAntoine Pitrou2012-04-161-1/+2
| |
* | Fix reference loss on Py_None when None is encountered in sys.modules.Antoine Pitrou2012-04-161-0/+1
| |
* | Avoid compiler warning due to stray \x00Antoine Pitrou2012-04-162-3/+3
| |
* | Avoid rebuilding all C files when importlib.h is updated.Antoine Pitrou2012-04-161-1/+2
| |
* | Add an explicit mention of a backwards-incompatible fix that importlib ↵Brett Cannon2012-04-161-0/+3
| | | | | | | | implicitly fixed.
* | Closes #14452: brought tests in line with removal of BOM insertion code.Vinay Sajip2012-04-161-3/+3
| |
* | Merged tweaks to cookbook example from 3.2.Vinay Sajip2012-04-161-5/+5
|\ \ | |/
| * Tweaked format of cookbook example.Vinay Sajip2012-04-161-5/+5
| |
* | Merged cookbook update from 3.2.Vinay Sajip2012-04-161-0/+44
|\ \ | |/
| * Added cookbook example for BOM insertion.Vinay Sajip2012-04-161-0/+44
| |
* | Closes #14452: remove BOM insertion code.Vinay Sajip2012-04-162-1/+3
|\ \ | |/
| * Closes #14452: remove BOM insertion code.Vinay Sajip2012-04-162-2/+2
| |
* | Fix #10854. Make use of the new path and name attributes on ImportErrorBrian Curtin2012-04-163-2/+25
| | | | | | | | for extension modules on Windows.
* | mergeBrett Cannon2012-04-162-112/+114
|\ \
| * \ Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵Antoine Pitrou2012-04-162-112/+114
| |\ \ | | |/ | | | | | | test failure in test_ssl.
| | * Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵Antoine Pitrou2012-04-162-112/+117
| | | | | | | | | | | | test failure in test_ssl.
* | | Issue #13959: Re-implement imp.load_package() in imp.py.Brett Cannon2012-04-162-173/+17
|/ / | | | | | | | | Thanks to Eric Snow for helping with imp.load_module() (previous commit) which led to the removal of a bunch of C code.
* | Issue #13959: Re-implement imp.load_module() in imp.py.Brett Cannon2012-04-162-54/+28
| |
* | mergeBrett Cannon2012-04-159-75/+369
|\ \
| * | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyTypeVictor Stinner2012-04-159-75/+369
| | |
* | | Consider load_dynamic() something to keep in _imp.Brett Cannon2012-04-151-3/+4
| | |
* | | Try to get hg to treat importlib.h as binary.Brett Cannon2012-04-152-0/+2
|/ /
* | Issue #13959: Simplify imp.reload() by relying on a module'sBrett Cannon2012-04-152-34/+13
| | | | | | | | | | | | | | | | | | | | __loader__. Since import now sets __loader__ on all modules it creates and imp.reload() already relied on the attribute for modules that import didn't create, the only potential compatibility issue is if people were deleting the attribute on modules and expecting imp.reload() to continue to work.
* | Update importlib.hBrett Cannon2012-04-151-2616/+2616
| |
* | Issue #13959: Rename imp to _imp and add Lib/imp.py and beginBrett Cannon2012-04-1510-2808/+2844
| | | | | | | | | | | | | | rewriting functionality in pure Python. To start, imp.new_module() has been rewritten in pure Python, put into importlib (privately) and then publicly exposed in imp.
* | mergeBrett Cannon2012-04-151-2/+2
|\ \
| * | utilize startswith(tuple)Philip Jenvey2012-04-151-2/+2
| | |
* | | Issue #14582: Import returns the module returned by a loader insteadBrett Cannon2012-04-155-500/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of sys.modules when possible. This is being done for two reasons. One is to gain a little bit of performance by skipping an unnecessary dict lookup in sys.modules. But the other (and main) reason is to be a little bit more clear in how things should work from the perspective of import's interactions with loaders. Otherwise loaders can easily forget to return the module even though PEP 302 explicitly states they are expected to return the module they loaded.