Reference Variables In Python Like Those In PHP

Chaos psnim2000 at gmail.com
Tue Aug 15 10:17:51 EDT 2006


Is It possible to have reference variables like in PHP

ex.

<?php

$x = 1;
$y =& $x;

$y += 1;

echo $x;
echo "\n"
echo $y;

?>

This would show

2
2

Is this available in python?




More information about the Python-list mailing list