[Tutor] List's name in a string

"Héctor Villafuerte D." hec.villafuerte at telgua.com.gt
Mon Sep 29 20:42:52 EDT 2003


Hi!
is there a way to get a list's (or any variable) name in a string?

For example:
 >>> list1 = [1, 2, 3]
I would like to do something like this:
 >>> var = list1.name()
So that  var  contains  'list1'.

Thanks in advance,
Hector




More information about the Tutor mailing list