0

Does Python have a concept of class properties (static properties if you may)? I know there are class attributes, but I can't just use one. It's very critical that I control what values can bet set as the class attribute, which I can use the property setter to do.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by Ene Uran
0

After some research, I determined that I'd have to use a metaclass, which is something I don't really want to get into. I was hoping that there was some other solution. I'm probably going to just mark the attribute with a _ to warn other programmers not to interfere with it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.