[issue18812] PyImport_Import redundant calls to find module

Rob Bairos report at bugs.python.org
Fri Aug 23 15:36:02 CEST 2013


Rob Bairos added the comment:

However, if it fails __import()__  it doesn't get to the sys.modules[] call anyways.

The only case affected by this are:

  PASS the __import()__ call, 
  then FAIL the sys.modules[] lookup afterwards.

Why will that effect anything currently out there?

As it stands now, it suppresses development of some types of dynamic hierarchies of modules such as we've implemented, that don't register themselves in sys.modules[]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18812>
_______________________________________


More information about the Python-bugs-list mailing list