Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45289 > unrolled thread

Re: Writing a blog post on the new Enum.

Started byChris Angelico <rosuav@gmail.com>
First post2013-05-14 17:52 +1000
Last post2013-05-14 17:52 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Writing a blog post on the new Enum. Chris Angelico <rosuav@gmail.com> - 2013-05-14 17:52 +1000

#45289 — Re: Writing a blog post on the new Enum.

FromChris Angelico <rosuav@gmail.com>
Date2013-05-14 17:52 +1000
SubjectRe: Writing a blog post on the new Enum.
Message-ID<mailman.1663.1368517966.3114.python-list@python.org>
On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <fabiosantosart@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web