[Python-ideas] Add an attribute spec descriptor.

Nick Coghlan ncoghlan at gmail.com
Tue Jan 21 12:59:34 CET 2014


In selling this idea, I would focus on the immediate impact it could have
on "help(cls)", as well as the automated testing possibilities (checking
all attributes are set on an instance).

There's also the class-only descriptor behaviour we added for enums to
consider, where retrieval via an instance throws AttributeError.

Essentially - interesting idea, but one you can experiment with outside the
stdlib :)

Cheers,
Nick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140121/76b92b50/attachment.html>


More information about the Python-ideas mailing list