Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45298 > unrolled thread
| Started by | Terry Jan Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2013-05-14 11:07 -0400 |
| Last post | 2013-05-14 11:07 -0400 |
| 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.
Re: Writing a blog post on the new Enum. Terry Jan Reedy <tjreedy@udel.edu> - 2013-05-14 11:07 -0400
| From | Terry Jan Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2013-05-14 11:07 -0400 |
| Subject | Re: Writing a blog post on the new Enum. |
| Message-ID | <mailman.1671.1368544092.3114.python-list@python.org> |
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. > 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? As far as official CPython goes, Enum is 3.4+ only. I believe the module will continue to work on earlier 3.x and will remain externally available as a 3rd party module. Ethan said he plans to backport to 2.7 so 2 & 3 code can use enums.
Back to top | Article view | comp.lang.python
csiph-web