On 04/27/2013 02:57 PM, Guido van Rossum wrote: > On Sat, Apr 27, 2013 at 1:01 PM, Ethan Furman <ethan at stoneleaf.us> wrote: >> It seems to me that the *most* common case will be a simple name mapping, in >> which case one can do: >> >> Planet = Enum._make('Planet', 'MERCURY VENUS EARTH') >> >> and be done with it. > > That looks horrible. I believe that's one of the current methods in flufl.enum. -- ~Ethan~
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4