How do I access the property info in this example ?

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Wed Oct 26 09:27:19 EDT 2005


David Poundall enlightened us with:
> class C(object):
>     def getx(self): return self.__x
>     def setx(self, value): self.__x = value
>     def delx(self): del self.__x
>     x = property(getx, setx, delx, "I'm the 'x' property.")
>
> I would like to get at ...
>
> "I'm the 'x' property."

As usual: C.x.__doc__

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list