- 07 Eyl, 2016 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 09 Ock, 2015 1 kayıt (commit)
-
-
Brett Cannon yazdı
importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).
-
- 16 May, 2014 1 kayıt (commit)
-
-
Eric Snow yazdı
-
- 09 May, 2014 1 kayıt (commit)
-
-
Brett Cannon yazdı
module.
-
- 29 Kas, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
that don't require changing test.test_importlib.util.mock_modules().
-
- 08 Kas, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
-
- 04 Tem, 2013 2 kayıt (commit)
-
-
Brett Cannon yazdı
ModuleNotFoundError.
-
Brett Cannon yazdı
-
- 16 Haz, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
To make sure there is no issue with code that is both Python 2 and 3 compatible, there are no plans to remove the module any sooner than Python 4 (unless the community moves to Python 3 solidly before then).
-
- 15 Haz, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
-
- 13 Haz, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
when None in sys.modules.
-
- 12 Haz, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem.
-
- 24 Agu, 2012 1 kayıt (commit)
-
-
Brett Cannon yazdı
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.
-
- 20 Tem, 2012 1 kayıt (commit)
-
-
Brett Cannon yazdı
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.
-
- 16 Şub, 2012 1 kayıt (commit)
-
-
Brett Cannon yazdı
This is to bring it more in line with what PEP 328 set out to do with removing ambiguous absolute/relative import semantics.
-
- 30 Agu, 2009 1 kayıt (commit)
-
-
Brett Cannon yazdı
attribute. Was throwing AttributeError before. Discovered when running test_builtin against importlib. This exception change is specific to importlib.__import__() and does not apply to import_module() as it is being done for compatibility reasons only.
-