I'm sorry, name of instance inside its methods
adrian lee vega
alv50855 at sci.tamucc.edu
Sun Feb 27 19:44:05 EST 2000
actually you're correct, I want the name of the instance
not the name of the class
>
> > def classname(self):
> > <blank>
> >
> > -------------------------------
> >
> > >>>from hello import *
> > >>>clown = Hello(1)
> > >>>clown.classname()
> > clown
>
>
> hmmm.... looking at that again, "clown" is an instance name, not the
> name of the class.. which do you actually want?
>
> Cheers,
>
> - Michal
More information about the Python-list
mailing list