Metaclass v.s. Property function.
Jens Thiede
jensthiede at gmail.com
Sat Aug 11 08:33:33 EDT 2007
More information about the Python-list mailing list
Sat Aug 11 08:33:33 EDT 2007
- Previous message (by thread): Deleting objects on the fly
- Next message (by thread): Metaclass v.s. Property function.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I don't like the property function, usable in the new-style classes, because having to remember to manage a list of "foo = property(...)" assignments just plain sucks, so I wrote a metaclass that does things a little differently. Please have a look and tell me whether this is useful or impractical. The metaclass is here: http://pastebin.com/m5b06b571 and some simple testcode is here: http://pastebin.com/m382f2ae9. Notice the first line though. Thanks for any replies, Jens Thiede.
- Previous message (by thread): Deleting objects on the fly
- Next message (by thread): Metaclass v.s. Property function.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list