references ???

Thomas Weidner wolf359_ at gmx.net
Thu Nov 1 17:30:27 CET 2001


Hi,

I think anybody here knows what references,like in java,c++ or perl, are.
How can i use references in python ?

2.Question:
l=[1,2,3,4,5,6]
for i in l:i=0
print l

l is still [1,2,3,4,5,6]. How to make changes made to i also apply to l ?



More information about the Python-list mailing list