[issue20020] "modernize" the modulefinder module

Thomas Heller report at bugs.python.org
Thu Dec 19 13:20:25 CET 2013


Thomas Heller added the comment:

I have written a new modulefinder based on importlib.  It is not a refactoring of the old one, so it is no plug-in replacement.  Instead it has some new features:

- Better logging output
- collects dependencies (self._depgraph maps module names to callers)
- when run as script, the command line syntax are easier to understand (although parsing is still done by getopt; argparse would be event better)
- The Module proxies that modulefinder collects give better access to the module's attributes, including the byte code

It is not yet tested in the wild but I will use it for the Python3 py2exe implementation.

If anyone wants to take a look the current version is here:

http://code.google.com/p/ctypes-stuff/source/browse/trunk/mf/py2exe/mf3.py

----------
nosy: +theller

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


More information about the Python-bugs-list mailing list