[Python-ideas] constant/enum type in stdlib (original) (raw)
Bruce Leban bruce at leapyear.org
Wed Jan 30 18:38:10 CET 2013
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jan 30, 2013 at 9:19 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
Probably a dumb question, but why would you want to add non-enum to an enum class?
class Color(Enum): RED, WHITE, BLUE
def translate(language):
"""Get the name of an enum in the specified language."""
pass--- Bruce Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130130/9ac7fd9d/attachment.html>
- Previous message: [Python-ideas] constant/enum type in stdlib
- Next message: [Python-ideas] constant/enum type in stdlib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]