name of 'name'

Larry Bates lbates at
Mon Mar 22 23:18:00 CET 2004

Not exactly sure I understand the question, but here

If you are talking about a class, you can get the
classname from :


Hope info helps.


"Elaine Jackson" <elainejackson7355 at> wrote in message
news:W5G7c.878632$ts4.740941 at pd7tw3no...
> Is there a built-in name for the function that returns an object's name?
> is, for
> "  lambda x: [y for y in globals().keys() if globals()[y]==x][0]   "  ?
> Muchas gracias.
> Peace

More information about the Python-list mailing list