I'm sorry, name of instance inside its methods

Steve Holden sholden at bellatlantic.net
Mon Feb 28 00:24:55 EST 2000


In that case, previous posts would seem to indicate there is a technical
name for your position: you are "screwed".  Sorry.

regards
 Steve

adrian lee vega wrote:
> 
> 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

--
"If computing ever stops being fun, I'll stop doing it"



More information about the Python-list mailing list