Looking for duplicate modules

Chris Angelico rosuav at gmail.com
Fri Aug 24 20:03:21 CEST 2012


On Fri, Aug 24, 2012 at 1:30 AM, Roy Smith <roy at panix.com> wrote:
> I'm working on a tool which scans all the directories in sys.path and finds any modules which appear multiple times in the path.  It'll also call out any .pyc's it finds without matching py's.
>

This is why I love high level languages. The core of your problem is
solved by a single dictionary object.

ChrisA


More information about the Python-list mailing list