The Voidspace Techie Blog

Gravatar You should look at the enthought.traits module. It does this and much more (and this is coded in C, so it is fast !)


Gravatar take a look at this recipe (and especially Ian Bicking comment):
http://aspn.activestate.com/ASPN...n/Recipe/ 410698


Gravatar Hmmm... I think I prefer the approach of inheriting from 'WithProperties' (a class that uses the '__properties__' metaclass) and then having proeprties created automatically from getter / setter methods.

I think this is much more readable than inline classes and avoids the settrace hacks.


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan