How to get an object's name as a string?

ShanMayne shangach at
Wed Oct 29 15:34:57 CET 2008

Indeed they do. My delighted thanks. You have most precisely addressed
the problem I intended to convey.

I should have given the case of module attributes a moments further
thought, an obvious answer. The locals() was unknown to me (rookie

Thank you for the elaborated illustration.

good stuff.

More information about the Python-list mailing list