var or inout parm?

mh at mh at
Wed Dec 10 22:47:18 CET 2008

Chris Rebert <clp at> wrote:
> Not directly possible or encouraged. You can emulate it by sticking
> the value in a container object (e.g. list) though:

Thanks, that's just what I needed.  I'm using this to monkeypatch
a test driver into some code that I can't touch, otherwise 
I would just have the function return a tuple with the replacement


Mark Harrison
Pixar Animation Studios

More information about the Python-list mailing list