Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45289
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.053 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'pep': 0.09; 'subject:blog': 0.09; 'python': 0.11; 'enum': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Writing': 0.16; 'subject:post': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'looks': 0.24; '---': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'thus': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:05': 0.31; 'class': 0.32; 'core': 0.34; 'subject:the': 0.34; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'two': 0.37; 'received:209': 0.37; 'subject:new': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'url:blogspot': 0.65; 'world': 0.66; 'here': 0.66; '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=0JYyeTfbbGltnKjE1/yUhMwh3L5lmkQB47EGL1uhGgo=; b=T9JP7JvmH9f5WMDdnapn76RIy2xqSiv3LNHGUYduw6DiQ0wGMA05sT97V+CfVgX/1E U+ajiwcTV6LiNApn05fTNNMA38/tTRXpHL7OwdxWjz8Kmb6d5hNBVctSu3ISAbQ9ujpI MAZuEw3+pUeAfTiIsY2s2pPlldhzMXvqoZlOn0cbKZVOInq8oGGnIhTbZC6mtnD2XnQw Ka67nsOsQrp7lgaPLE1/d0q9MwYvXjdp1PIaKPLrxQ+qHKHOIs6ce7UNh4i8E+hRclJa 4NlXy9pljYtgHE3w+zW3r83vboM3pI0v8PkHC7STpnV8rIYibhDFZkGOup1NYuY+rbPa D4lA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.37.109 with SMTP id x13mr18041760vdj.10.1368517963559; Tue, 14 May 2013 00:52:43 -0700 (PDT) |
| In-Reply-To | <CAA=1kxSHKjoTYZZ7Gs_Tpo+h3hRVQRb0p8aeEnnKuXf9jWA4cA@mail.gmail.com> |
| References | <CAA=1kxQxcGpDzR6VDEb1urjjn4bnRvi4aoXKKa5+vgG186hzOg@mail.gmail.com> <519172C3.4030108@stoneleaf.us> <CAA=1kxSHKjoTYZZ7Gs_Tpo+h3hRVQRb0p8aeEnnKuXf9jWA4cA@mail.gmail.com> |
| Date | Tue, 14 May 2013 17:52:43 +1000 |
| Subject | Re: Writing a blog post on the new Enum. |
| From | Chris Angelico <rosuav@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1663.1368517966.3114.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1368517966 news.xs4all.nl 15880 [2001:888:2000:d::a6]:34950 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45289 |
Show key headers only | View raw
On Tue, May 14, 2013 at 9:40 AM, Fábio Santos <fabiosantosart@gmail.com> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Writing a blog post on the new Enum. Chris Angelico <rosuav@gmail.com> - 2013-05-14 17:52 +1000
csiph-web