Writing a blog post on the new Enum.
Chris Angelico
rosuav at gmail.com
Tue May 14 03:52:43 EDT 2013
On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <fabiosantosart at gmail.com> wrote:
> Well I am thus defying the law and order of this world by publishing
> it on the internets!
>
> ---
>
> And here it is:
> http://fabiosantoscode.blogspot.pt/2013/05/pythons-new-enum-class.html
class Text(unicode, Enum):
one = u'one'
two = u'two'
three = u'three'
That looks like Python 2 code. Are you backporting Enum to Py2
manually? AIUI the Python core won't be adding features like that to
2.7, and there won't be a 2.8, so PEP 435 will be Py3.4+ only. Or have
I misunderstood it?
ChrisA
More information about the Python-list
mailing list