Python introspection and namespace weird question

Rayene Ben Rayana rayene.benrayana at
Mon Dec 1 15:04:33 CET 2008

Hello everybody,

Is there an easy way to do something like this in python ?

>>> red_car = MyVehicleClass()
>>> car = red_car
>>> car.labels()
['red_car' , 'car' ]

In other words, does an instance has access to its name pointers ?

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list