[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies
Nick Coghlan
report at bugs.python.org
Sun Aug 22 10:42:20 CEST 2010
Nick Coghlan <ncoghlan at gmail.com> added the comment:
The generalist in me is inclined to suggest a "depth" parameter (with depth=1 equivalent to direct dependencies only, and depth = None meaning all dependencies), but I must admit I don't have a concrete use case for the extra generality. So the simpler, recurse/don't recurse approach is probably a better option (building a depth-limited search on top of the recursion flag wouldn't be difficult anyway).
Aside from missing docs and unit test updates, the idea seems sound.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1284670>
_______________________________________
More information about the Python-bugs-list
mailing list