[SciPy-dev] integrate.ode: dop, zvode accessibility

josef.pktd@gmai... josef.pktd@gmai...
Sat Apr 11 13:28:07 CDT 2009


I was looking at the import structure in integrate.

in integrate __init__ there is   `from ode import *`
since ode has a class ode, the module ode is shadowed and not
available for access anymore

So, it seems that there is now way to access zvode and dopri5 and dop853
unless I am mistaken. integrate.dop refers to the fortran library

>>> dir(integrate.dop)
['__doc__', '__file__', '__name__', '__version__', 'dop853', 'dopri5']
>>> integrate.dop.dop853
<fortran object at 0x01B3B8A8>

(In general, I don't like modules and classes or functions that have
the same names when combined with, from ... import *, since it
prevents direct module access of the shadowed module.)

Josef


More information about the Scipy-dev mailing list