Finding name of variable?
Gonzalo HIGUERA DÍAZ
gonhidi at gmail.com
Tue Sep 5 16:02:19 CEST 2006
2006-09-05 15:49 +0200, Gardner Pomper <gardner at networknow.org>:
> I am writing a specialized xml serialization function, and I would like to
> be able to serialize the value of a simple object with the object name as
> the tag. For example:
> first_name = 'Fred'
> sXML = my_xml_serializer(first_name)
> should result in sXML = '<first_name>Fred</first_name>'
> I can get class and field names, but how do I find the name of a simple
A recent thread might be a useful starting point.
 "how do you get the name of a dictionary?" URL:
Gonzalo HIGUERA DÍAZ <gonhidi at gmail.com>
More information about the Python-list