Re: [f2py] incompatible parameter transfer between python and fortran?
Xavier Barthelemy <[email protected]> Tue, 2 Nov 2010 17:24:15 +1100
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
2010/11/2 Juergen Wieferink <[email protected]>: > Am Sonntag 31 Oktober 2010 22:32:28 schrieb Jon: >> and called by python code as >> >> import optim >> n=10 >> m=10 >> optim.hello(n,m) > > Please note that this cannot work because of how Python does things > You are passing an object of type integer to some function. And as > integers are immutable, the object cannot be changed. Python passes > by object, not by value. > hi Juergen What do you mean exactly? how is the correct form to pass these values? what kind have they to be? Cheers Xavier