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
  • 918
  • 1338

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.

Spring Integration
Written by: Soby Chacko
Featured Refcardz: Top Refcardz:
  1. Search Patterns
  2. Python
  3. C++
  4. Design Patterns
  5. OO JS
  1. PhoneGap
  2. Spring Integration
  3. Regex
  4. Git
  5. Java