[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pass by reference




On Jun 21, 2006, at 7:38 PM, spotter . wrote:

I am trying to optimise on loading images and I was wondering if
images as passed by reference or if a new copy is made.

*Everything* in Python is passed by reference (a PyObject* from C). The "value types" are still by reference (int, float, str, tuple, bool, etc.) but are immutable.


-bob