[Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
Ethan Furman
ethan at stoneleaf.us
Mon May 20 06:08:13 CEST 2013
More information about the Python-Dev mailing list
Mon May 20 06:08:13 CEST 2013
- Previous message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Next message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/19/2013 05:24 PM, Nick Coghlan wrote: > > This is the point I was trying to make: once you use IntEnum (as you > would in any case where you need bitwise operators), Enum gets out of > the way for everything other than __str__, __repr__, and one other > slot (that escapes me for the moment...). __getnewargs__ and __new__ But if you do math, the result is no longer an Enum of any type. -- ~Ethan~
- Previous message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Next message: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list