PEP on path module for standard library
Thomas Heller
theller at python.net
Fri Jul 22 06:36:40 EDT 2005
mkent at webmd.net writes:
> I really love Jason's 'path' module. Sadly, I've encountered a serious
> problem with using it. When you try to 'freeze' an application module,
> and Jason's 'path' module is present in any of the directories that are
> looked at by freeze's module finder (your app doesn't have to import
> it), freeze goes into an infinite loop of imports, eventually getting a
> 'maximum recursion depth' exception. This seems to be related to
> freeze getting confused between 'os.path' and Jason's 'path'.
>
> I encountered this using Jason's latest 'path' module and Python 2.3.2.
> I was able to solve it for my use by renaming path.py to newpath.py
> and using 'from newpath import path' in my modules.
>
> I've just notified Jason about this. I presume a solution like mine
> will be used, and look forward to seeing Jason's module in stdlib.
That was a bug in modulefinder, which was fixed in Python 2.4 and 2.3.4.
See http://www.python.org/sf/876278.
Thomas
More information about the Python-list
mailing list