Re: Writing a blog post on the new Enum.

Discussion in 'Python' started by Chris Angelico, May 14, 2013.

  1. On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <> 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
     
    Chris Angelico, May 14, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fábio Santos

    Writing a blog post on the new Enum.

    Fábio Santos, May 13, 2013, in forum: Python
    Replies:
    0
    Views:
    95
    Fábio Santos
    May 13, 2013
  2. Mark Lawrence

    Re: Writing a blog post on the new Enum.

    Mark Lawrence, May 13, 2013, in forum: Python
    Replies:
    0
    Views:
    91
    Mark Lawrence
    May 13, 2013
  3. Ethan Furman

    Re: Writing a blog post on the new Enum.

    Ethan Furman, May 14, 2013, in forum: Python
    Replies:
    0
    Views:
    83
    Ethan Furman
    May 14, 2013
  4. Fábio Santos

    Re: Writing a blog post on the new Enum.

    Fábio Santos, May 14, 2013, in forum: Python
    Replies:
    0
    Views:
    81
    Fábio Santos
    May 14, 2013
  5. Terry Jan Reedy

    Re: Writing a blog post on the new Enum.

    Terry Jan Reedy, May 14, 2013, in forum: Python
    Replies:
    0
    Views:
    94
    Terry Jan Reedy
    May 14, 2013
Loading...

Share This Page