<div dir="ltr">On 13 February 2013 12:51, Tim Delaney <span dir="ltr"><<a href="mailto:timothy.c.delaney@gmail.com" target="_blank">timothy.c.delaney@gmail.com</a>></span> wrote:<div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>And more ...</div></div></div></div></blockquote><div><br></div><div style>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.</div>
<div style><br></div><div style>None is no longer valid.</div><div style><br></div><div style> Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>
<div>>>> from enum import Enum</div><div>>>> class MyEnum(Enum):</div><div>... A</div><div>... B, C, D = ..., 5, ...</div><div>... E = ...</div><div>... F(..., 'f')</div><div>...</div>
<div>>>> MyEnum</div><div><enum __main__.MyEnum {<EnumValue 'A': 0>, <EnumValue 'B': 1>, <EnumValue 'C': 5>, <EnumValue 'D': 6>, <EnumValue 'E': 7>, <EnumValue 'F': 8>}></div>
<div><br></div><div style>I'm stopping now.</div><div><br></div><div style>Tim Delaney</div></div></div></div>