Printing the name of a variable
Stephen Boulet
stephen.boulet at gmail.com
Thu Sep 9 15:43:43 EDT 2010
More information about the Python-list mailing list
Thu Sep 9 15:43:43 EDT 2010
- Previous message (by thread): Difference between queues and pipes in multiprocessing
- Next message (by thread): Printing the name of a variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Does an arbitrary variable carry an attribute describing the text in its name? I'm looking for something along the lines of: x = 10 print x.name >>> 'x' Perhaps the x.__getattribute__ method? Thanks.
- Previous message (by thread): Difference between queues and pipes in multiprocessing
- Next message (by thread): Printing the name of a variable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list