Re: OrderedEnum examples

2013-07-30 Thread Bas van der Wulp
On 30-7-2013 21:30, Ethan Furman wrote: On 07/30/2013 11:58 AM, Ian Kelly wrote: On Tue, Jul 30, 2013 at 12:18 PM, Bas van der Wulp wrote: Replacing each occurrence of self._value with either self._value_ or self.value in the examples seems to make them work as expected. Are both examples inc

Re: OrderedEnum examples

2013-07-30 Thread Ethan Furman
On 07/30/2013 11:58 AM, Ian Kelly wrote: On Tue, Jul 30, 2013 at 12:18 PM, Bas van der Wulp wrote: Replacing each occurrence of self._value with either self._value_ or self.value in the examples seems to make them work as expected. Are both examples incorrect, or not intended to work in Python

Re: OrderedEnum examples

2013-07-30 Thread Ethan Furman
On 07/30/2013 11:38 AM, Ethan Furman wrote: Thanks for catching that, I'll get it fixed asap. Latest code is on PyPI. -- ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: OrderedEnum examples

2013-07-30 Thread Ethan Furman
On 07/30/2013 11:18 AM, Bas van der Wulp wrote: Using the enum34 0.9.13 package from PyPi in Python 2.7.3, the examples for OrderedEnum seem to be broken. Thanks for catching that, I'll get it fixed asap. Also, in the example in the Python 3.4 library documentation (section 8.17.2) has the

Re: OrderedEnum examples

2013-07-30 Thread Ian Kelly
On Tue, Jul 30, 2013 at 12:18 PM, Bas van der Wulp wrote: > Replacing each occurrence of self._value with either self._value_ or > self.value in the examples seems to make them work as expected. > > Are both examples incorrect, or not intended to work in Python 2.x? The _value attribute was renam