Eric Snow
5c4b4c530f
[issue19152] Revert 832579dbafd6.
13 years ago
Eric Snow
af8566c847
[issue19152] Add ExtensionFileLoader.get_filename().
13 years ago
Eric Snow
efbc475278
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
13 years ago
Meador Inge
c9e1dcdd53
Issue #16826 : Revert fix while Windows issues are being worked out.
13 years ago
Meador Inge
d151da9ef7
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
13 years ago
Brett Cannon
a53cca3fea
Issue #18351 : Fix various issues with
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.
13 years ago
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
13 years ago
Brett Cannon
f8ffec0617
Issue #17357 : Add missing verbosity messages when running under
-v/-vv that were lost in the transition to importlib.
13 years ago
Ezio Melotti
c28f6fa505
#11420 : make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.
13 years ago
Eric Snow
5b49962f7e
Fixes a FileFinder docstring to reflect an old change.
That change was in 1db6553f3f8c.
14 years ago
Brett Cannon
da9cf0eef8
Issue #17098 : Be more stringent of setting __loader__ on early imported
modules. Also made test more rigorous.
14 years ago
Brett Cannon
0ecd30b4af
Issue #17098 : Make sure every module has __loader__ defined.
Thanks to Thomas Heller for the bug report.
14 years ago
Brett Cannon
a9976b3e32
Issue #16730 : Don't raise an exception in
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.
14 years ago
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
14 years ago
Barry Warsaw
82c1c781c7
- Issue #16514 : Fix regression causing a traceback when sys.path[0] is None
(actually, any non-string or non-bytes type).
14 years ago
Brett Cannon
56b4ca78d8
Issue #16489 : Make it clearer that importlib.find_loader() requires
the user to import any parent packages.
14 years ago
Benjamin Peterson
debf64ce2b
missing letter
14 years ago
Nick Coghlan
eb8d627bbd
Issue #6074 : Apply an appropriate fix for importlib based imports
14 years ago
Trent Nelson
d783c8ed00
Issue #15833 : don't raise an exception if importlib can't write byte-compiled
files.
This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
14 years ago
Brett Cannon
a6ce4fd426
Closes issue #15111 : Calling __import__ with a module specified in
fromlist which causes its own ImportError (e.g. the module tries to
import a non-existent module) should have that exception propagate.
14 years ago
Brett Cannon
8ed677db12
Add some comments.
14 years ago
Benjamin Peterson
52c62d8697
rephrase
14 years ago
Benjamin Peterson
0beb4d28d0
don't depend on __debug__ because it's baked in at freeze time (issue #16046 )
14 years ago
Benjamin Peterson
feaa54f537
don't depend on __debug__ because it's baked in at freeze time (issue #16046 )
14 years ago
Antoine Pitrou
0398985920
Issue #15781 : Fix two small race conditions in import's module locking.
14 years ago
Antoine Pitrou
4f0338cab7
Issue #15781 : Fix two small race conditions in import's module locking.
14 years ago
Brett Cannon
12c6bda4f0
Issue #15316 : Let exceptions raised during imports triggered by the
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.
14 years ago
Brett Cannon
ba0a3edd26
Issue #2051 : Tweak last commit for this issue to pass in mode instead
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.
14 years ago
Nick Coghlan
a508770e20
Close #2501 : Permission bits are once again correctly copied from the source file to the cached bytecode file. Test by Eric Snow.
14 years ago
Nick Coghlan
48fec05391
Close #14846 : Handle a sys.path entry going away
14 years ago
Brett Cannon
7385adc84c
Issue #15715 : Ignore failed imports triggered by the use of fromlist.
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.
14 years ago
Brett Cannon
b428f47cf6
Don't overwrite a __path__ value from extension modules if already
set.
14 years ago
Philip Jenvey
688a551ca0
fix docstring wording
14 years ago
Brett Cannon
f410ce8c09
Issue #15502 : Refactor some code.
14 years ago
Philip Jenvey
731d48a65f
update docstring per the extension package fix, refactor
14 years ago
Brett Cannon
ac9f2f3de3
Issue #15576 : Allow extension modules to be a package's __init__
module again. Also took the opportunity to stop accidentally exporting
_imp.extension_suffixes() as public.
14 years ago
Brett Cannon
f4dc9204cc
Issue #15502 : Finish bringing importlib.abc in line with the current
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.
14 years ago
Brett Cannon
cb4996afe4
Issue #15471 : Don't use mutable object as default values for the
parameters of importlib.__import__().
14 years ago
Nick Coghlan
4941774f59
Issue #15502 : Bring the importlib.PathFinder docs and docstring more in line 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
14 years ago
Nick Coghlan
ff79486bb5
Close #15519 : Properly expose WindowsRegistryFinder in importlib and bring the name into line with normal import terminology. Original patch by Eric Snow
14 years ago
Nick Coghlan
8a9080feff
Issue #15502 : Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow.
14 years ago
Barry Warsaw
38f75cbc00
Typo.
14 years ago
Nick Coghlan
42c0766a53
Close #15486 : Simplify the mechanism used to remove importlib frames from tracebacks when they just introduce irrelevant noise
14 years ago
Barry Warsaw
d7d2194ea1
Integration of importdocs from the features/pep-420 repo.
14 years ago
Nick Coghlan
5ee9892406
Close #15425 : Eliminate more importlib related traceback noise
14 years ago
Martin v. Löwis
e3010a8d12
Issue #14578 : Support modules registered in the Windows registry again.
Patch by Amaury Forgeot d'Arc.
14 years ago
Brett Cannon
45a5e3afe5
Issue #15168 : Move importlb.test to test.test_importlib.
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
14 years ago
Nick Coghlan
be7e49fd82
Close #15386 : There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
14 years ago
Nick Coghlan
76e077001d
Close #15387 : inspect.getmodulename() now uses a new importlib.machinery.all_suffixes() API rather than the deprecated inspect.getmoduleinfo()
14 years ago
Nick Coghlan
2824cb507d
Issue #15343 : A lot more than just unicode decoding can go wrong when retrieving a source file
14 years ago