name of 'name'
Larry Bates
lbates at swamisoft.com
Mon Mar 22 17:18:00 EST 2004
Not exactly sure I understand the question, but here
goes:
If you are talking about a class, you can get the
classname from :
self.__class__.__name__
Hope info helps.
-Larry
"Elaine Jackson" <elainejackson7355 at home.com> 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?
That
> 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