Modifying Class Object

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Sun Feb 7 23:01:05 EST 2010


On Mon, 08 Feb 2010 02:51:05 +0100, Alf P. Steinbach wrote:

> Python passes pointers by value, just as e.g. Java does.

How do I get a pointer in pure Python code (no ctypes)? I tried both 
Pascal and C syntax (^x and *x), but both give syntax errors.

For that matter, how do I get a pointer in Java code?

If Python doesn't have pointers, then why are you talking about Python 
passing pointers? It's a vacuous truth, like saying that Python passes 
dinosaurs by name.



-- 
Steven



More information about the Python-list mailing list