Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'prefixes': 0.09; 'rewrite': 0.09; 'subject:blog': 0.09; 'jan': 0.12; "wouldn't": 0.14; 'posted': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; '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; '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; 'that.': 0.31; '3.x': 0.31; 'url:05': 0.31; 'class': 0.32; 'supposed': 0.32; 'subject:the': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'version': 0.36; '14,': 0.36; 'are,': 0.36; 'two': 0.37; 'subject:new': 0.38; 'to:addr:python-list': 0.38; 'quote': 0.39; 'to:addr:python.org': 0.39; 'url:blogspot': 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:content-type:content-transfer-encoding; bh=XAC6u4nIA24SM/FinMmKTIPBy7sxs/eEoMBlUHi+9pk=; b=g0Jl+LHq7bFgZFZJRAPHXp/uqzdcLT2eEdIZv7w+OwfJgZEod1Q+rKnhQBItqfuPN6 tuAOlJVFAMyw3lded2oJ1VRNTdoNltIfrLtWjooTq4o7+NgtQAQYSUnv+YIV5caYs+Us T4Z2AzNtUcIH86dvrJ/lpcDOP2FtAplwu0Ube7Dc7rOnl9n03S5QhqFV5pILPGXBruXh 91Bu7y9bIG8m89AjT01Iy7frct6//mxv0Kj2tBnj2JwR7DFaEyAqnCeMi9kq0iBDu1WM pqtFGNjdnuxlQ0zDPRldIBdXcrnpSSoLFLsIWef7dUWbcJz8Yum0M5iFD/LK9GaJ8X1n bAcQ== MIME-Version: 1.0 X-Received: by 10.52.122.109 with SMTP id lr13mr18977902vdb.91.1368545793037; Tue, 14 May 2013 08:36:33 -0700 (PDT) In-Reply-To: References: <519172C3.4030108@stoneleaf.us> Date: Wed, 15 May 2013 01:36:32 +1000 Subject: Re: Writing a blog post on the new Enum. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368545802 news.xs4all.nl 15889 [2001:888:2000:d::a6]:38290 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45301 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 af= ter > 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