[issue20020] "modernize" the modulefinder module

2019-02-07 Thread Brandt Bucher


Change by Brandt Bucher :


--
keywords: +patch, patch
pull_requests: +11788, 11789
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] "modernize" the modulefinder module

2019-02-07 Thread Brandt Bucher


Change by Brandt Bucher :


--
keywords: +patch
pull_requests: +11788
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] "modernize" the modulefinder module

2015-10-03 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] modernize the modulefinder module

2014-10-14 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

The code of Thomas has not the same API than the modulefinder module.

If you want a patch, we need to rework the code of Thomas and provide an 
equivalent API with the existing one.

What do you suggest?

--
nosy: +matrixise

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20020
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] modernize the modulefinder module

2014-10-14 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20020
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] modernize the modulefinder module

2014-09-01 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20020
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] modernize the modulefinder module

2013-12-19 Thread Thomas Heller

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 rep...@bugs.python.org
http://bugs.python.org/issue20020
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20020] modernize the modulefinder module

2013-12-18 Thread Eric Snow

New submission from Eric Snow:

The modulefinder module (Lib/modulefinder.py) provides a ModuleFinder class 
(plus 2 helpers) you can use to see what modules a script imports (directly or 
indirectly).  The module's implementation is centered on the old 
imp.find_/load_module() API (which has been deprecated).  The implementation 
should be refactored to reflect/make use of the newer import-related APIs.

The documented API for ModuleFinder is very small.  However, it has quite a few 
methods that are public in the sense that their names do not start with an 
underscore.  This will make any kind of refactoring trickier.

--
components: Library (Lib)
messages: 206576
nosy: eric.snow
priority: low
severity: normal
status: open
title: modernize the modulefinder module
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20020
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com