summaryrefslogtreecommitdiff
path: root/Python/importlib.h
AgeCommit message (Collapse)AuthorLines
2013-10-03[issue19152] Revert 832579dbafd6.Eric Snow-210/+192
2013-10-03[issue19152] Add ExtensionFileLoader.get_filename().Eric Snow-192/+210
2013-10-03[issue19151] Fix docstring and use of _get_suppported_file_loaders() to ↵Eric Snow-2613/+2611
reflect 2-tuples.
2013-09-03Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge-4206/+4201
2013-09-03Issue #16826: Don't check for PYTHONCASEOK when using -E.Meador Inge-4201/+4206
This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-07-06Issue #18351: Fix various issues withBrett Cannon-3369/+3367
importlib._bootstrap._get_sourcefile(). Thanks to its only use by the C API, it was never properly tested until now. Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
2013-06-16Fix a misnaming of a method and an argumentBrett Cannon-1071/+1071
2013-04-01Issue #17357: Add missing verbosity messages when running underBrett Cannon-4268/+4281
-v/-vv that were lost in the transition to importlib.
2013-02-20Rebuild importlib.h after the changes introduced in 0f65bf6063ca.Ezio Melotti-1092/+1089
2013-02-01Issue #17098: Be more stringent of setting __loader__ on early importedBrett Cannon-292/+299
modules. Also made test more rigorous.
2013-02-01Issue #17098: Make sure every module has __loader__ defined.Brett Cannon-283/+289
Thanks to Thomas Heller for the bug report.
2013-01-11Issue #16730: Don't raise an exception inBrett Cannon-943/+946
importlib.machinery.FileFinder when the directory has become unreadable or a file. This brings semantics in line with Python 3.2 import. Reported and diagnosed by David Pritchard.
2012-11-20- Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw-63/+67
(actually, any non-string or non-bytes type).
2012-11-12recompile importlib.hBenjamin Peterson-1543/+1543
2012-10-19Issue #6074: Apply an appropriate fix for importlib based importsNick Coghlan-1884/+1885
2012-10-16Issue #15833: don't raise an exception if importlib can't write byte-compiledTrent Nelson-1839/+1845
files. This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
2012-10-10Closes issue #15111: Calling __import__ with a module specified inBrett Cannon-467/+471
fromlist which causes its own ImportError (e.g. the module tries to import a non-existent module) should have that exception propagate.
2012-09-28Add some comments.Brett Cannon-3476/+3475
2012-09-25don't depend on __debug__ because it's baked in at freeze time (issue #16046)Benjamin Peterson-4221/+4230
2012-08-28Issue #15781: Fix two small race conditions in import's module locking.Antoine Pitrou-3631/+3633
2012-08-24Issue #15316: Let exceptions raised during imports triggered by theBrett Cannon-189/+198
fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised.
2012-08-24Issue #2051: Tweak last commit for this issue to pass in mode insteadBrett Cannon-1871/+1868
of source path to set_data() and make the new argument private until possible API changes can be discussed more thoroughly in Python 3.4.
2012-08-24Close #2501: Permission bits are once again correctly copied from the source ↵Nick Coghlan-4180/+4243
file to the cached bytecode file. Test by Eric Snow.
2012-08-20Close #14846: Handle a sys.path entry going awayNick Coghlan-929/+933
2012-08-17Issue #15715: Ignore failed imports triggered by the use of fromlist.Brett Cannon-454/+456
When the fromlist argument is specified for __import__() and the attribute doesn't already exist, an import is attempted. If that fails (e.g. module doesn't exist), the ImportError will now be silenced (for backwards-compatibility). This *does not* affect ``from ... import ...`` statements. Thanks to Eric Snow for the patch and Simon Feltman for reporting the regression.
2012-08-11Don't overwrite a __path__ value from extension modules if alreadyBrett Cannon-1658/+1661
set.
2012-08-10fix docstring wordingPhilip Jenvey-2612/+2613
2012-08-10Issue #15502: Refactor some code.Brett Cannon-4152/+4153
2012-08-10update docstring per the extension package fix, refactorPhilip Jenvey-1647/+1658
2012-08-10Issue #15576: Allow extension modules to be a package's __init__Brett Cannon-3615/+3616
module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public.
2012-08-10Issue #15502: Finish bringing importlib.abc in line with the currentBrett Cannon-1160/+1192
state of the import system. Also make importlib.invalidate_caches() work with sys.meta_path instead of sys.path_importer_cache to completely separate the path-based import system from the overall import system. Patch by Eric Snow.
2012-08-06Issue #15471: Don't use mutable object as default values for theBrett Cannon-69/+72
parameters of importlib.__import__().
2012-08-02Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵Nick Coghlan-1276/+1277
with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
2012-08-02Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵Nick Coghlan-2491/+2489
the name into line with normal import terminology. Original patch by Eric Snow
2012-07-31Close #15486: Simplify the mechanism used to remove importlib frames from ↵Nick Coghlan-3529/+3451
tracebacks when they just introduce irrelevant noise
2012-07-29Close #15425: Eliminate more importlib related traceback noiseNick Coghlan-4103/+4128
2012-07-28Issue #14578: Support modules registered in the Windows registry again.Martin v. Löwis-3943/+4128
Patch by Amaury Forgeot d'Arc.
2012-07-28Issue #15466: Stop using TYPE_INT64 in marshal,Martin v. Löwis-2321/+2321
to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems.
2012-07-15Issue #15343: A lot more than just unicode decoding can go wrong when ↵Nick Coghlan-2102/+2121
retrieving a source file
2012-07-13Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() useBrett Cannon-3820/+3943
Lib/imp.py for imp.source_from_cache() instead of its own C version. Also change PyImport_ExecCodeModuleObject() to not infer the source path from the bytecode path like PyImport_ExecCodeModuleWithPathnames() does. This makes the function less magical. This also has the side-effect of removing all uses of MAXPATHLEN in Python/import.c which can cause failures on really long filenames.
2012-07-10Issue #15111: When a module was imported using a 'from import'Brett Cannon-400/+397
statement (e.g. ``from distutils import msvc9compiler``) that triggers an ImportError of its own (e.g. the non-existence of winreg), let that exception propagate instead of raising a generic ImportError for the module being requested (e.g. msvc9compiler).
2012-07-09Issue #15167 (as part of #13959): imp.get_magic() is no implemented inBrett Cannon-3774/+3792
Lib/imp.py.
2012-07-09Issue #15056: imp.cache_from_source() and source_from_cache() raiseBrett Cannon-3759/+3784
NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch.
2012-07-08Issue #15110: Also hide importlib frames when importing a builtin module fails.Amaury Forgeot d'Arc-2701/+2716
2012-07-08Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵Antoine Pitrou-2460/+2537
importlib stack frames.
2012-07-07Check-in compiled importlib changes (you must run "make" after modifying the ↵Antoine Pitrou-3422/+3408
importlib sources).
2012-07-02Issue #15166: Re-implement imp.get_tag() using sys.implementation.Brett Cannon-169/+171
Also eliminates some C code in Python/import.c as well. Patch by Eric Snow with verification by comparing against another patch from Jeff Knupp.
2012-06-25Issue #15181: importlib bytecode is unsigned and shouldn't have negative ↵Antoine Pitrou-644/+644
numbers. This fixes a compiler warning with suncc.
2012-06-24Fixes issue 15039: namespace packages are no longer imported in preference ↵Eric V. Smith-954/+957
to modules of the same name.
2012-06-23A better repr() for FileFinderAntoine Pitrou-1072/+1086