Message240671
While taking a look on the import mechanisms I've seen in the documentation that find_module has been deprecated for find_spec, but on different parts of the documentation there are still references to find_module, as in the definition of sys.meta_path (https://docs.python.org/3/library/sys.html#sys.meta_path).
Shouldn't it be (example on this case) a list of finder objects that have their find_spec() methods called, instead of find_module method?
I've been taking a look on _bootstrap.py and I can see we call find_spec:
for finder in sys.meta_path:
with _ImportLockContext():
try:
find_spec = finder.find_spec
If you agree with me that this is wrong I'll submit a patch to fix it. |
|
Date |
User |
Action |
Args |
2015-04-13 17:22:55 | raulcd | set | recipients:
+ raulcd, brett.cannon, docs@python, eric.snow |
2015-04-13 17:22:55 | raulcd | set | messageid: <1428945775.22.0.0538000929194.issue23936@psf.upfronthosting.co.za> |
2015-04-13 17:22:55 | raulcd | link | issue23936 messages |
2015-04-13 17:22:55 | raulcd | create | |
|