Link Details

Link 967375 thumbnail
User 225256 avatar

By mswatcher
via eli.thegreenplace.net
Published: May 11 2013 / 19:45

After months of intensive discussion (more than a 1000 emails in dozens of threads spread over two mailing lists, and a couple of hundred additional private emails), PEP 435 has been accepted and Python will finally have an enumeration type in 3.4!
  • 18
  • 0
  • 1070
  • 1339

Comments

Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

Enums are coming for Pascal. I think I understand what an enum is, but I have never used it. With the Enum class, "Ordered comparisons between enumeration values are not supported" so you can't say Color.notrump greater than Color.spade.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java