Message272788
Serhiy's patch is only for IntFlags, and my patch hasn't yet fully incorporated his (many thanks for decompose!)
For IntFlags I do not expect to have very many instances alive at once, especially since not-bitwise operators will lose the IntFlag class and become plain ints.
Flags are closed. If the zero value is not specified the repr and str are:
>>> Hah(0)
<Hah: 0>
>>> str(Hah(0))
'Hah.0'
(An RGB class might be: <RGB.Black: 0>)
A question I have about IntFlags:
If a third-party lib specifies that certain bits are reserved and should always be zero (or at least not changed), do we want to add some easy support for that? |
|
Date |
User |
Action |
Args |
2016-08-15 17:57:11 | ethan.furman | set | recipients:
+ ethan.furman, barry, ezio.melotti, r.david.murray, eli.bendersky, martin.panter, serhiy.storchaka, veky |
2016-08-15 17:57:11 | ethan.furman | set | messageid: <1471283831.56.0.994937394332.issue23591@psf.upfronthosting.co.za> |
2016-08-15 17:57:11 | ethan.furman | link | issue23591 messages |
2016-08-15 17:57:11 | ethan.furman | create | |
|