Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'prefixes': 0.09; 'rewrite': 0.09; 'subject:blog': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; "wouldn't": 0.14; 'posted': 0.15; 'reedy': 0.16; 'subject:Writing': 0.16; 'subject:post': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'version.': 0.19; '(the': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'that.': 0.31; '3.x': 0.31; '>>>>': 0.31; 'url:05': 0.31; 'class': 0.32; 'supposed': 0.32; 'url:python': 0.33; 'subject:the': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'version': 0.36; '14,': 0.36; 'are,': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'two': 0.37; 'subject:new': 0.38; 'pm,': 0.38; 'quote': 0.39; 'url:mail': 0.40; 'url:blogspot': 0.65; 'to:addr:gmail.com': 0.65; 'presumably': 0.84; 'url:2013': 0.84; 'url:pt': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=aag9VlYyKxMsA7zYaKkcNTOlvpqMKwETxxDXlhnoDKE=; b=HA+NrYyD/mCmqxmYkQ8eGRwxRDa9SSU8LOk3NKumws2MAKcjWhVeJKB40J0/ySmfBw UahgJprgTL3FyKt0skC095L0ooRfb82kI7S3cP8R6O3BDMDmEhxc4dtTof2jt6FMydp4 ZnXMbTcRuwo4F9LWoL9LvEex86+wgE52twA8rci/fIpgKWhq0RVayQofg6dgEk6wAmkf k3u5NmSZsC5U2wMRNaziwc86BqkatSVZXL60urW+wtWrGbam7ppQg/4EOJLB+GvTSLqX shFoZLlhoot/7SBpdq8rcmvV7kkUez69VUsaEKSFMKYOZ314e7bKY7FJWcwqed7CTaF1 nYAQ== MIME-Version: 1.0 X-Received: by 10.49.26.198 with SMTP id n6mr15673776qeg.16.1368551348749; Tue, 14 May 2013 10:09:08 -0700 (PDT) In-Reply-To: References: <519172C3.4030108@stoneleaf.us> Date: Tue, 14 May 2013 18:09:08 +0100 Subject: Re: Writing a blog post on the new Enum. From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Chris Angelico Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368552903 news.xs4all.nl 16001 [2001:888:2000:d::a6]:40335 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45303 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=E1bio Santos >>> wrote: >> >>>> http://fabiosantoscode.blogspot.pt/2013/05/pythons-new-enum-class.html >>> >>> >>> class Text(unicode, Enum): >>> one =3D u'one' >>> two =3D u'two' >>> three =3D u'three' >> >> >> Is this supposed to be a quote? or your rewrite? or did Santos rewrite a= fter >> 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 =3D str".) > > ChrisA > -- > http://mail.python.org/mailman/listinfo/python-list --=20 F=E1bio Santos