[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: PEP 354: Enumerations in Python
From: Ben Finney <bignose+hates-spam () benfinney ! id ! au>
Date: 2006-03-02 3:00:09
Message-ID: 87k6bdsg91.fsf () rose ! polar ! local
[Download RAW message or body]
Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
> I don't know about this. It makes athlon64_instructions a
> completely separate enum from pentium_instructions. It could be
> that athlon64_instructions.add should be the same as
> pentium_instructions.add .
If you want the members of two distinct collections to have a
meaningful relationship, you don't want enumerations. The basic
promise of the specified enumeration interface is that every member of
an enumeration is a unique value.
--
\ "A society that will trade a little liberty for a little order |
`\ will lose both, and deserve neither." -- Thomas Jefferson, in |
_o__) a letter to Madison |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic