On 5 May 2013 13:11, Tim Delaney <timothy.c.delaney@gmail.com> wrote:
">

(original) (raw)




On Sat, May 4, 2013 at 8:22 PM, Tim Delaney <timothy.c.delaney@gmail.com> wrote:
On 5 May 2013 13:11, Tim Delaney <timothy.c.delaney@gmail.com> wrote:
@@ -142,6 +152,7 @@
� � � � � � � � �if obj\_type in (object, Enum):
� � � � � � � � � � �enum\_item = object.\_\_new\_\_(enum\_class)
� � � � � � � � �else:
+ � � � � � � � � � �value = obj\_type.\_\_new\_\_(obj\_type, value)
� � � � � � � � � � �enum\_item = obj\_type.\_\_new\_\_(enum\_class, value)
� � � � � � � � �enum\_item.\_value = value
� � � � � � � � �enum\_item.\_name = e

Bugger - this is wrong (it didn't feel right to me) - I'm sure it's only working for me by accident. Need to think of something better.


Tim Delaney

Could you please split this off to a separate thread? I'd like to keep this one for raising issues with the actual contents of the PEP and discussing whether this version is good enough for pronouncement.


Thanks,
Eli