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


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

Re: Writing a blog post on the new Enum.

Started byChris Angelico <rosuav@gmail.com>
First post2013-05-15 01:36 +1000
Last post2013-05-15 01:36 +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-15 01:36 +1000

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

FromChris Angelico <rosuav@gmail.com>
Date2013-05-15 01:36 +1000
SubjectRe: Writing a blog post on the new Enum.
Message-ID<mailman.1673.1368545802.3114.python-list@python.org>
On Wed, May 15, 2013 at 1:07 AM, Terry Jan Reedy <tjreedy@udel.edu> wrote:
> On 5/14/2013 3:52 AM, Chris Angelico wrote:
>>
>> On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <fabiosantosart@gmail.com>
>> 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

[toc] | [standalone]


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


csiph-web