anything like C++ references?

Brian Quinlan brian at sweetapp.com
Sat Jul 12 18:45:03 EDT 2003


> void change(int& i)
> {
>    i++;
> }

The idiomatic way to write this code in python would be:

def change(val):
	return val + 1

If you don't want to write it this way for some reason, you will have to
explain why.

Cheers,
Brian






More information about the Python-list mailing list