From: Travis O. <oli...@ee...> - 2006-09-26 19:49:45
|
Fernando Perez wrote: >On 9/26/06, George Nurser <gn...@go...> wrote: > > >>I'm running Python 2.3.5 with recent SVN f2py. >> >>Suppose I import an extension I have built with f2py. Then, if I edit >>the fortran and recompile the extension, I cannot use reload to use >>the modified version within the same Python session. >> >>I believe this is an problem with Python, that reload doesn't work >>with externally compiled extensions. >> >> > >As far as I know, you are correct. > > On many systems there is an "unload" command similar to a shared-library load command which Python uses to load shared libraries. But, this is not performed by Python. I've wondered for awhile if a suitable use of such a command in an extension module would allow "reloading" of shared libraries. -Travis |