summaryrefslogtreecommitdiffstats
path: root/Python/importlib.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | Touch up exception messagingBrett Cannon2013-01-251-2921/+2923
| |
* | Issue #15031: Refactor some code in importlib pertaining to validatingBrett Cannon2013-01-111-4226/+4262
| | | | | | | | | | | | | | and compiling bytecode. Thanks to Ronan Lamy for pointing the redundancy and taking an initial stab at the refactor (as did Nick Coghlan).
* | Merge from 3.3 for fix for issue #16730Brett Cannon2013-01-111-938/+941
|\ \ | |/
| * Issue #16730: Don't raise an exception inBrett Cannon2013-01-111-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.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
| |
* | update importlib.hBenjamin Peterson2012-12-191-2633/+2632
| |
* | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-4034/+3999
| |
* | Issue #15627: This is simply an update to the name of a new method recently ↵Eric Snow2012-12-051-8/+8
| | | | | | | | | | | | added to importlib.abc.SourceLoader.
* | - Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw2012-11-201-63/+67
|\ \ | |/ | | | | (actually, any non-string or non-bytes type).
| * - Issue #16514: Fix regression causing a traceback when sys.path[0] is NoneBarry Warsaw2012-11-201-63/+67
| | | | | | | | (actually, any non-string or non-bytes type).
* | Regen importlib.hBrett Cannon2012-11-181-2170/+2173
| |
* | Issue #15627: Add the compile_source() method toBrett Cannon2012-11-181-2327/+2347
| | | | | | | | | | | | | | importlib.abc.SourceLoader. This provides an easy hook into the import system to allow for source transformations, AST optimizations, etc.
* | merge 3.3 (sort of)Benjamin Peterson2012-11-121-1532/+1532
|\ \ | |/
| * recompile importlib.hBenjamin Peterson2012-11-121-1543/+1543
| |
* | Merge fix from #6074 from 3.3Nick Coghlan2012-10-191-1876/+1877
|\ \ | |/
| * Issue #6074: Apply an appropriate fix for importlib based importsNick Coghlan2012-10-191-1884/+1885
| |
* | Merge issue #15833: don't raise an exception if importlib can't writeTrent Nelson2012-10-161-1833/+1840
|\ \ | |/ | | | | | | | | | | | | byte-compiled files. This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
| * Issue #15833: don't raise an exception if importlib can't write byte-compiledTrent Nelson2012-10-161-1839/+1845
| | | | | | | | | | | | files. This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
* | Remove uses of % with str.format.Brett Cannon2012-10-121-3746/+3748
| |
* | Merge fix for issue #15111.Brett Cannon2012-10-101-460/+464
|\ \ | |/
| * Closes issue #15111: Calling __import__ with a module specified inBrett Cannon2012-10-101-467/+471
| | | | | | | | | | fromlist which causes its own ImportError (e.g. the module tries to import a non-existent module) should have that exception propagate.
* | Closes #16135: Removal of OS/2 supportJesus Cea2012-10-051-108/+102
|/
* Add some comments.Brett Cannon2012-09-281-3476/+3475
|
* don't depend on __debug__ because it's baked in at freeze time (issue #16046)Benjamin Peterson2012-09-251-4221/+4230
|
* Issue #15781: Fix two small race conditions in import's module locking.Antoine Pitrou2012-08-271-3631/+3633
|
* Issue #15316: Let exceptions raised during imports triggered by theBrett Cannon2012-08-241-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.
* Issue #2051: Tweak last commit for this issue to pass in mode insteadBrett Cannon2012-08-241-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.
* Close #2501: Permission bits are once again correctly copied from the source ↵Nick Coghlan2012-08-241-4180/+4243
| | | | file to the cached bytecode file. Test by Eric Snow.
* Close #14846: Handle a sys.path entry going awayNick Coghlan2012-08-201-929/+933
|
* Issue #15715: Ignore failed imports triggered by the use of fromlist.Brett Cannon2012-08-171-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.
* Don't overwrite a __path__ value from extension modules if alreadyBrett Cannon2012-08-111-1658/+1661
| | | | set.
* fix docstring wordingPhilip Jenvey2012-08-101-2612/+2613
|
* Issue #15502: Refactor some code.Brett Cannon2012-08-101-4152/+4153
|
* update docstring per the extension package fix, refactorPhilip Jenvey2012-08-101-1647/+1658
|
* Issue #15576: Allow extension modules to be a package's __init__Brett Cannon2012-08-101-3615/+3616
| | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public.
* Issue #15502: Finish bringing importlib.abc in line with the currentBrett Cannon2012-08-101-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.
* Issue #15471: Don't use mutable object as default values for theBrett Cannon2012-08-061-69/+72
| | | | parameters of importlib.__import__().
* Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵Nick Coghlan2012-08-021-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
* Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵Nick Coghlan2012-08-021-2491/+2489
| | | | the name into line with normal import terminology. Original patch by Eric Snow
* Close #15486: Simplify the mechanism used to remove importlib frames from ↵Nick Coghlan2012-07-311-3529/+3451
| | | | tracebacks when they just introduce irrelevant noise
* Close #15425: Eliminate more importlib related traceback noiseNick Coghlan2012-07-291-4103/+4128
|
* Issue #14578: Support modules registered in the Windows registry again.Martin v. Löwis2012-07-281-3943/+4128
| | | | Patch by Amaury Forgeot d'Arc.
* Issue #15466: Stop using TYPE_INT64 in marshal,Martin v. Löwis2012-07-281-2321/+2321
| | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems.
* Issue #15343: A lot more than just unicode decoding can go wrong when ↵Nick Coghlan2012-07-151-2102/+2121
| | | | retrieving a source file
* Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() useBrett Cannon2012-07-131-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.
* Issue #15111: When a module was imported using a 'from import'Brett Cannon2012-07-101-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).
* Issue #15167 (as part of #13959): imp.get_magic() is no implemented inBrett Cannon2012-07-091-3774/+3792
| | | | Lib/imp.py.
* Issue #15056: imp.cache_from_source() and source_from_cache() raiseBrett Cannon2012-07-091-3759/+3784
| | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch.
* Issue #15110: Also hide importlib frames when importing a builtin module fails.Amaury Forgeot d'Arc2012-07-081-2701/+2716
|
* Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵Antoine Pitrou2012-07-081-2460/+2537
| | | | importlib stack frames.