Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-20 Thread Rurpy
On 04/20/2013 10:55 PM, Rurpy wrote: >[...] > But it is not true that unique values are *required* for > storing enumeration values in a database. I should have added that allowing mixed types for values (e.g. as discussed in http://mail.python.org/pipermail/python-dev/2013-April/12

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-20 Thread Rurpy
On 04/20/2013 01:42 PM, Barry Warsaw wrote:> On Apr 13, 2013, at 12:51 PM, Steven D'Aprano wrote: >[...] >>What's the justification for this [unique values] restriction? I have >>looked in the PEP, and didn't see one. > > If you allowed this, there would be no way to look up an enumeration item b