[SciPy-user] interactive work with extension modules

Steve Schmerler elcorto@gmx....
Mon Aug 4 11:04:35 CDT 2008


On Aug 04 17:27, Alexandre Fayolle wrote:
> On Mon, Aug 04, 2008 at 05:04:56PM +0200, Steve Schmerler wrote:
> > Hi all
> > 
> > I've read in the scipy and IPython archives that Python cannot reload extension
> > modules (C and Fortran). So if I change and re-compile my extension and do
> >     
> >     >>> reload(foo) 
> >     >>> foo.some_function(args)
> > 
> > in the [i]python shell, there is no change to "foo". Even
> > 
> >     >>> del foo
> >     >>> import foo
> >     >>> foo.some_function(args)
> 
> I suspect that some_function is imported indirectly in foo.py (and not
> defined in that module), because I'm able to do the following:
> 
> 

Alexandre,

thank you, but I was talking about C and Fortran extensions compiled into a
*.so file. 

steve


More information about the SciPy-user mailing list