Le Wed, 8 May 2013 01:03:38 +1000,
Nick Coghlan <ncogh...@gmail.com> a écrit :
> 
> What if there was a variant of the class statement that bound the
> result of a function call rather than using the normal syntax:
> 
>     class Animal from enum.Enum(members="dog cat bear")

Apparently you're trying hard to invent syntaxes just to avoid
subclassing.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to