converting reference name to string ?

tleduc thibaut.leduc at ac-lille.fr
Fri Mar 15 05:54:38 EST 2002


example:

def a():
  print 'hello'

==> string is   a.__name__

but for instances:

class myclass:
  ....etc....

b = myclass()
c = myclass()

in execution of this script, how do i get reference string 'a' 'b' or 'c' ?

Thanks in advance.

Thibaut



More information about the Python-list mailing list