Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#276 similarly named files

open
nobody
5
2008-05-01
2008-05-01
Anonymous
No

Hi,

Suppose I there is a python module called module.py which comes with the distribution, and that it defines a class called TheClass.

Now suppose I have my own variant and I name it as follows:

mydir/module.py

So that I can refer to that module as

import mydir.module

Now suppose that inside mydir/module.py I have a definition that says:

class TheClass( module.TheClass ):
pass

meaning that my own mydir.module.TheClass is a subclass of the system's module.TheClass.

Then epydoc will spin into an infinite loop in the

is_newstyle_class

method of the class ClassDoc. In 3.0.1, this is about line 1289 of apidoc.py.

Thanks,

Ambrose

Discussion