[issue1234985] using some_re.sub() often imports sre.__doc__

Georg Brandl report at bugs.python.org
Mon May 12 01:15:31 CEST 2008


Georg Brandl <georg at python.org> added the comment:

pattern.sub() imports the SRE Python module (to call its subx()) with
PyImport_Import -- that C functions uses a dummy list ['__doc__'] to get
the correct module for dotted import paths.

The import of an additional module is gone now that re is really called re.

----------
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1234985>
_____________________________________


More information about the Python-bugs-list mailing list