- 01 Haz, 2013 1 kayıt (commit)
-
-
Brett Cannon yazdı
Previously __path__ was set to [__name__], but that could lead to bad results if someone managed to circumvent the frozen importer and somehow ended up with a finder that thought __name__ was a legit directory/location.
-
- 31 May, 2013 12 kayıt (commit)
-
-
Brett Cannon yazdı
-
Brett Cannon yazdı
importlib.abc.Loader.init_module_attrs() and implement importlib.abc.InspectLoader.load_module(). The importlib.abc.Loader.init_module_attrs() method sets the various attributes on the module being loaded. It is done unconditionally to support reloading. Typically people used importlib.util.module_for_loader, but since that's a decorator there was no way to override it's actions, so init_module_attrs() came into existence to allow for overriding. This is also why module_for_loader is now pending deprecation (having its other use replaced by importlib.util.module_to_load). All of this allowed for importlib.abc.InspectLoader.load_module() to be implemented. At this point you can now implement a loader with nothing more than get_code() (which only requires get_source(); package support requires is_package()). Thanks to init_module_attrs() the implementation of load_module() is basically a context manager containing 2 methods calls, a call to exec(), and a return statement.
-
Brett Cannon yazdı
-
Brett Cannon yazdı
-
Brett Cannon yazdı
control whether to reset the module's __name__ attribute in case a reload is being done.
-
Brett Cannon yazdı
-
Brett Cannon yazdı
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-
Terry Jan Reedy yazdı
-
Terry Jan Reedy yazdı
-
Terry Jan Reedy yazdı
-
- 30 May, 2013 2 kayıt (commit)
-
-
Brett Cannon yazdı
explains better what the context manager is providing.
-
Łukasz Langa yazdı
Patch by Ronald Oussoren
-
- 29 May, 2013 16 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
Original patch by Hideaki Takahashi.
-
Stefan Krah yazdı
-
Stefan Krah yazdı
-
Stefan Krah yazdı
-
Stefan Krah yazdı
-
Stefan Krah yazdı
-
Stefan Krah yazdı
-
Serhiy Storchaka yazdı
PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck.
-
Stefan Krah yazdı
-
Stefan Krah yazdı
character in _decimal.c.
-
Senthil Kumaran yazdı
#17403: urllib.parse.robotparser normalizes the urls before adding to ruleline. This helps in handling certain types invalid urls in a conservative manner. Patch contributed by Mher Movsisyan.
-
Senthil Kumaran yazdı
This helps in handling certain types invalid urls in a conservative manner.
-
Terry Jan Reedy yazdı
-
Terry Jan Reedy yazdı
touchup test_idle. Rename README.txt.
-
Andrew Kuchling yazdı
-
- 28 May, 2013 9 kayıt (commit)
-
-
Ned Deily yazdı
-
Ned Deily yazdı
is overriden with the CC environment variable, use the new compiler as the default for linking if LDSHARED is not also overriden. This restores Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
-
Brett Cannon yazdı
-
Brett Cannon yazdı
and __package__ unconditionally in order to do the right thing for reloading.
-
Brett Cannon yazdı
-
Brett Cannon yazdı
-
Brett Cannon yazdı
handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-