[Python-Dev] PEP 435 - requesting pronouncement

Antoine Pitrou solipsis at pitrou.net
Sun May 5 13:06:12 CEST 2013


On Sun, 05 May 2013 20:59:03 +1000
Steven D'Aprano <steve at pearwood.info> wrote:
> On 05/05/13 20:05, Antoine Pitrou wrote:
> 
> > I still would like to see Nick's class-based API preferred over the
> > functional API:
> >
> >     class Season(Enum, members='spring summer autumn'):
> >        pass
> 
> -1
> 
> As already mentioned, this is no substitute for the functional API as it is a statement, not an expression.

So, can you explain why it would make a difference?

> As for pickling, the usual restrictions on pickling apply.

No. I'm sure pickling classes normally works on Cython and IronPython,
and with PEP 3154 pickling nested classes will also be supported.

Regards

Antoine.




More information about the Python-Dev mailing list