Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Schema metaclass with descriptors #54

Open
dnephin opened this issue Nov 29, 2013 · 0 comments
Open

Replace Schema metaclass with descriptors #54

dnephin opened this issue Nov 29, 2013 · 0 comments

Comments

@dnephin
Copy link
Owner

dnephin commented Nov 29, 2013

Currently staticconf.schema is implemented using a metaclass. Although this works, it requires a schema to be instantiated, and it's not really obvious what is going.

Descriptors are probably a better fit here. They would remove the need for any base class or metaclass (they could be attached to any class with a namespace attribute), and would allow them to work as accessors on the class instance as well as an instance of the object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant