[SciPy-dev] integrate.ode: dop, zvode accessibility
josef.pktd at gmail.com
josef.pktd at gmail.com
Sat Apr 11 14:28:07 EDT 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