[Cython] Declaring and using call-by-reference arguments

Jim Kleckner jek-gmane at kleckner.net
Wed Mar 19 23:55:46 CET 2008


Jim Kleckner wrote:
> Has anyone wrapped functions with call-by-reference syntax?
> What do you recommend?

One workaround is to declare to cython that the function requires
an object and then dereference a pointer with ptr[0].
Per this page:
  http://www.sagemath.org/doc/html/prog/node63.html



More information about the Cython-dev mailing list