On 6 June 2011 15:03, Marie Rognes <[email protected]> wrote: > Public bug reported: > > > Python classes are indexed (at least) twice in the Python Programmer's > Reference, for instance the index points to the class FunctionSpace in both > dolfin.functions and dolfin.functions.functionspace: > > FunctionSpace (class in dolfin.cpp) > > (class in dolfin.functions) > (class in dolfin.functions.functionspace) > > Is this intended? If so, it is confusing.
Not all classes are indexed twice, e.g., the FiniteElement is only defined in dolfin.cpp. What part is it that you find confusing? The dolfin.cpp.FunctionSpace and dolfin.functions.functionspace.FunctionSpace are two different classes so there should be two entries. The FunctionSpace class from dolfin.functions is picked up because FunctionSpace is included in the __all__ variable in dolfin.functions.__init__.py. So perhaps we could skip extracting functions and classes from __init__.py files, and just hope that no one actually defines a class or a function in these files? Kristian > ** Affects: dolfin > Importance: Undecided > Status: New > > -- > You received this bug notification because you are a member of DOLFIN > Core Team, which is subscribed to DOLFIN. > https://bugs.launchpad.net/bugs/793512 > > Title: > Classes are indexed twice in Python Programmer's Reference > > Status in DOLFIN: > New > > Bug description: > > Python classes are indexed (at least) twice in the Python Programmer's > Reference, for instance the index points to the class FunctionSpace in both > dolfin.functions and dolfin.functions.functionspace: > > FunctionSpace (class in dolfin.cpp) > > (class in dolfin.functions) > (class in dolfin.functions.functionspace) > > Is this intended? If so, it is confusing. > -- You received this bug notification because you are a member of DOLFIN Team, which is subscribed to DOLFIN. https://bugs.launchpad.net/bugs/793512 Title: Classes are indexed twice in Python Programmer's Reference Status in DOLFIN: New Bug description: Python classes are indexed (at least) twice in the Python Programmer's Reference, for instance the index points to the class FunctionSpace in both dolfin.functions and dolfin.functions.functionspace: FunctionSpace (class in dolfin.cpp) (class in dolfin.functions) (class in dolfin.functions.functionspace) Is this intended? If so, it is confusing. _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

