![](https://secure.gravatar.com/avatar/2240a37aad5f5834a92809a5e5f01fe1.jpg?s=120&d=mm&r=g)
On 1 February 2013 18:09, Eric Snow <ericsnowcurrently@gmail.com> wrote:
On Fri, Feb 1, 2013 at 7:36 AM, Barry Warsaw <barry@python.org> wrote:
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. :)
I would actually prefer a place where it's easy to see the code, comment on it and fork it like Bitbucket or Github. PyPI is good for other
On Fri, Feb 1, 2013 at 12:30 PM, Eli Bendersky <eliben@gmail.com> wrote: purposes...
+1
And put it on PyPI to make it more accessible.
As soon as there are some more goodies in there beyond the enumerator and constants themselves. I can see that a namedtuple - like utility function could be interesting to create the enums - and a way to import the generated constatnts to the current global namespace that does not violate good pratices. I think that something like: class MyEnum(Enum): RED, GREEN, BLUE load_constants(MyEnum, globals() ) is a good solution that could respect both DRY and "explicit is better than implicit" and "Special cases aren't special enough to break the rules." js -><-
-eric _______________________________________________ Python-ideas mailing list Python-ideas@python.org http://mail.python.org/mailman/listinfo/python-ideas