Re: Python's sad, unimaginative Enum

2013-05-14 Thread rusi
On May 14, 2:24 pm, Jean-Michel Pichavant wrote: > - Original Message - > > On Mon, 13 May 2013 13:00:36 +0200, Jean-Michel Pichavant wrote: > > > > - Original Message - > > >> That's the title of this little beast > > >>http://www.acooke.org/cute/Pythonssad0.htmlif anybody's > > >

Re: Python's sad, unimaginative Enum

2013-05-14 Thread 88888 Dihedral
Chris Angelico於 2013年5月14日星期二UTC+8上午1時36分34秒寫道: > On Mon, May 13, 2013 at 8:17 PM, Steven D'Aprano > > wrote: > > > Let's look at his major criticisms: > > > > > > 1) values aren't automatically generated. > > > > > > True. So what? That is the *least* important part of enums. > > > > I s

Re: Python's sad, unimaginative Enum

2013-05-14 Thread Fábio Santos
On 13 May 2013 12:05, "Jean-Michel Pichavant" wrote: > > class Enum: > class __metaclass__(type): That's some cool metaclass fu! I didn't know that to be possible -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's sad, unimaginative Enum

2013-05-14 Thread Jean-Michel Pichavant
- Original Message - > On Mon, 13 May 2013 13:00:36 +0200, Jean-Michel Pichavant wrote: > > > - Original Message - > >> That's the title of this little beast > >> http://www.acooke.org/cute/Pythonssad0.html if anybody's > >> interested. > >> > >> -- > >> If you're using GoogleCrap

Re: Python's sad, unimaginative Enum

2013-05-13 Thread Steven D'Aprano
On Mon, 13 May 2013 13:00:36 +0200, Jean-Michel Pichavant wrote: > - Original Message - >> That's the title of this little beast >> http://www.acooke.org/cute/Pythonssad0.html if anybody's interested. >> >> -- >> If you're using GoogleCrap™ please read this >> http://wiki.python.org/moin/

Re: Python's sad, unimaginative Enum

2013-05-13 Thread Chris Angelico
On Mon, May 13, 2013 at 8:17 PM, Steven D'Aprano wrote: > Let's look at his major criticisms: > > 1) values aren't automatically generated. > > True. So what? That is the *least* important part of enums. I stopped following the -ideas threads about enums, but IIRC autogeneration of values was in

Re: Python's sad, unimaginative Enum

2013-05-13 Thread Jean-Michel Pichavant
- Original Message - > That's the title of this little beast > http://www.acooke.org/cute/Pythonssad0.html if anybody's interested. > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPython. > > Mark Lawrence > > -- > http://mail.python.org/ma

Re: Python's sad, unimaginative Enum

2013-05-13 Thread Steven D'Aprano
On Mon, 13 May 2013 10:24:40 +0100, Mark Lawrence wrote: > That's the title of this little beast > http://www.acooke.org/cute/Pythonssad0.html if anybody's interested. Well, that's one way of looking at it. And I can't exactly *disagree*. But... but... In many ways, it's a dull language, b