Re: Writing a blog post on the new Enum.

Discussion in 'Python' started by Fábio Santos, May 14, 2013.

  1. I corrected it indeed.

    On Tue, May 14, 2013 at 4:36 PM, Chris Angelico <> wrote:
    > On Wed, May 15, 2013 at 1:07 AM, Terry Jan Reedy <> wrote:
    >> On 5/14/2013 3:52 AM, Chris Angelico wrote:
    >>>
    >>> On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <>
    >>> wrote:

    >>
    >>>> http://fabiosantoscode.blogspot.pt/2013/05/pythons-new-enum-class.html
    >>>
    >>>
    >>> class Text(unicode, Enum):
    >>> one = u'one'
    >>> two = u'two'
    >>> three = u'three'

    >>
    >>
    >> Is this supposed to be a quote? or your rewrite? or did Santos rewrite after
    >> you posted? The blog currently has a 3.x version of that.

    >
    > It was a quote from the blog post as it had been when I posted it.
    > Presumably he edited the post subsequently, as I'm now seeing the same
    > thing you are, a 3.x-compat version. (The u'xx' prefixes wouldn't be a
    > problem, incidentally, so this could be dual-versionned just by going
    > "unicode = str".)
    >
    > ChrisA
    > --
    > http://mail.python.org/mailman/listinfo/python-list




    --
    Fábio Santos
     
    Fábio Santos, 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. Chris Angelico

    Re: Writing a blog post on the new Enum.

    Chris Angelico, May 14, 2013, in forum: Python
    Replies:
    0
    Views:
    100
    Chris Angelico
    May 14, 2013
Loading...

Share This Page