Ethan Furman added the comment:

Here's a crazy idea.  :)

The only reason the patch is tied to Enum is because of Enum's use of the 
_RouteClassAttributeToGetattr descriptor.

If we had a module similar to functools, say classtools, we could flesh out 
_RouteClassAttributeToGetattr, rename it to VirtualAttribute, and then it would 
no longer be Enum specific.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19030>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to