anything like C++ references?

Donn Cave donn at
Wed Jul 16 06:01:41 CEST 2003

Quoth Adam Ruth <owski at>:
| In Python, there is no situation where "you really can't avoid pointers".  

That's trivially true, no such situation can exist because that
Python can't be coded.  I'll repeat an example that I proposed
a couple days ago, though:  user implemented sequences could be
implemented with a single simple indexing function, returning
a pointer/target/whatever;  Python could assign directly to that,
making "seq[i] = x" the same kind of operation as and automatically
symmetrical with "x = seq[i]".

It can't be done without pointers, as far as I can see.  You may not
care if it can be done, but I think you'd agree that "there is no
situation that I care about where you really can't avoid pointers"
would be kind of a lame version of your assertion.

	Donn Cave, donn at

More information about the Python-list mailing list