[Python-ideas] constant/enum type in stdlib

Joao S. O. Bueno jsbueno at python.org.br
Fri Feb 1 21:39:28 CET 2013


On 1 February 2013 18:28, Tim Delaney <timothy.c.delaney at gmail.com> wrote:

> On 2 February 2013 02:36, Barry Warsaw <barry at python.org> wrote:
>
>> On Feb 01, 2013, at 03:18 PM, Tim Delaney wrote:
>>
>> >Last version (for now). I'm really interested in people's opinions on
>> this.
>> >For this version I've taken some inspiration from flufl.enum (but there
>> >remains the major difference that these enums subclass int).
>>
>> Why not package it up and put it in PyPI?  Better there than sitting in an
>> email thread of some mailing list full of crazy people. :)
>>
>
> Yep - I intend to. Was just hacking away initially to see if what I wanted
> to achieve was feasible using Michael's metaclass as a base. It's in a
> Mercurial repo so I'll put it up on BitBucket in the next day or two and
> look at cleaning it up (documentation!) to put on PyPI.
>

Indeed . .as I said, we'd better put together a pre-PEP and making this
proof of concept impement most of it before going to Pypy -

There are other requisites that I think aren't taken care of that come form
the 2010 thread -
for example, pickle-ability.

  js
 -><-

>
> Tim Delaney
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130201/922a79f2/attachment.html>


More information about the Python-ideas mailing list