470,613 Members | 2,344 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

attribute decorators

would it not be nice if you could assign decorators to attributes too ?
for example

class C:
@staticattribute
data='hello'

or

class C:
@privateattribute
data='hello'
Dec 22 '06 #1
0 748

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Michael Sparks | last post: by
17 posts views Thread by daishi | last post: by
8 posts views Thread by Michele Simionato | last post: by
11 posts views Thread by Arien Malec | last post: by
2 posts views Thread by Guido van Rossum | last post: by
reply views Thread by Michele Simionato | last post: by
2 posts views Thread by gert | last post: by
11 posts views Thread by Helmut Jarausch | last post: by
2 posts views Thread by Andrew West | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.