Modifying Class Object
python at mrabarnett.plus.com
Mon Feb 8 18:31:13 CET 2010
Steven D'Aprano wrote:
> 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.
In Pascal it's x^.
> 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.
More information about the Python-list