Re: know reference name in instance

2006-07-07 Thread pipehappy
Fredrik Lundh wrote: > pipehappy wrote: > > > Is it possible for an instance know its name used by other part of > > program. I mean like this: > > > > class test: > > def __init__(self): > > pass > > > > when some one writes > > > > x = test() > > > > then one of attribute of x cont

Re: know reference name in instance

2006-07-07 Thread Fredrik Lundh
pipehappy wrote: > Is it possible for an instance know its name used by other part of > program. I mean like this: > > class test: > def __init__(self): > pass > > when some one writes > > x = test() > > then one of attribute of x contain the name "x" > > Is it possible? not rea