Python - copy by reference

Posted by qba on Stack Overflow See other posts from Stack Overflow or by qba
Published on 2010-05-06T18:33:14Z Indexed on 2010/05/06 18:38 UTC
Read the original article Hit count: 135

Filed under:
|

Is there any possibility to copy variable by reference no matter if its int or class instance?

My goal is to have two lists of the same objects and when one changes, change is visible in second.

In other words i need pointers:/

© Stack Overflow or respective owner

Related posts about python

Related posts about reference