12 Feb
2013
12 Feb
'13
6:20 p.m.
On 13 February 2013 12:51, Tim Delaney
And more ...
And inspired by the other thread, Ellipsis (...) is now used to indicate "use the next value". Ellipsis can either be assigned to an enum value, or passed as the first parameter to EnumParams or when calling the enum value during construction. None is no longer valid. Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
from enum import Enum class MyEnum(Enum): ... A ... B, C, D = ..., 5, ... ... E = ... ... F(..., 'f') ... MyEnum
, , , , , }>
I'm stopping now. Tim Delaney