Re: [Python-Dev] str(IntEnum)

2015-02-24 Thread Guido van Rossum
On Sat, Feb 21, 2015 at 8:39 AM, Demian Brecht demianbre...@gmail.com wrote: On Feb 20, 2015, at 7:03 PM, Ian Cordasco graffatcolmin...@gmail.com wrote: I hope this helps. It does, as do the other replies, thanks all. To be clear, my first gripe has stemmed into two related (but very

Re: [Python-Dev] str(IntEnum)

2015-02-24 Thread Demian Brecht
On Feb 24, 2015, at 10:56 AM, Guido van Rossum gu...@python.org wrote: It sure seems that way. Thanks for the additional feedback Guido. I’d spent some further time thinking about what it was that I was looking for and determined it was bollocks. The proposal was a poor solution to a

Re: [Python-Dev] str(IntEnum)

2015-02-21 Thread Demian Brecht
On Feb 20, 2015, at 7:03 PM, Ian Cordasco graffatcolmin...@gmail.com wrote: I hope this helps. It does, as do the other replies, thanks all. To be clear, my first gripe has stemmed into two related (but very minor) problems: 1. IntEnum.__str__. I understand the reasoning behind the current

[Python-Dev] str(IntEnum)

2015-02-20 Thread Demian Brecht
While working on a bug in the issue tracker, I came across something that I thought was a little odd around the behaviour of IntEnum. Should the behaviour of an instance of an IntEnum not be symmetric to an int where possible? For example: class MyEnum(IntEnum): ... FOO = 1 ...

Re: [Python-Dev] str(IntEnum)

2015-02-20 Thread Brett Cannon
On Fri Feb 20 2015 at 11:39:11 AM Demian Brecht demianbre...@gmail.com wrote: While working on a bug in the issue tracker, I came across something that I thought was a little odd around the behaviour of IntEnum. Should the behaviour of an instance of an IntEnum not be symmetric to an int where