[Python-ideas] IntFlags

Cameron Simpson cs at zip.com.au
Wed Mar 4 04:42:47 CET 2015


On 04Mar2015 09:16, Chris Angelico <rosuav at gmail.com> wrote:
>On Wed, Mar 4, 2015 at 9:04 AM, Cameron Simpson <cs at zip.com.au> wrote:
>> I agree. I presume IntEnum|IntEnum might return an IntFlags? Or would that
>> make for a TypeError or ValueError and one be expected to start with
>> IntFlags?
>
>That should be a sanity error, but since an IntEnum devolves to an
>int, it just produces a nonsensical integer. It definitely shouldn't
>become an IntFlags.

Yes, agreed. Brain fade. Sorry,
Cameron Simpson <cs at zip.com.au>


More information about the Python-ideas mailing list