Pyrex - pass/return by value or reference

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Tue May 6 00:16:42 EDT 2003


Haris Bogdanovic wrote:
> What is the default for passing/returning extension types in functions:
> by value or by reference ?

Extension types are Python objects, so they're passed
around just like any other Python object -- i.e. as
references.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list