Message295793
To expand on what Mark said: If the proposed format code implicitly
gives these results ...
>>> format(12 % 2**8, '08b')
'00001100'
>>> format(-12 % 2**8, '08b')
'11110100'
..., would students not expect that these two operations have the same
result?
>>> 0b11110100 | 0b00001100
252
>>>
>>> -12 | 12
-4 |
|
Date |
User |
Action |
Args |
2017-06-12 14:54:44 | skrah | set | recipients:
+ skrah, rhettinger, talin, eric.smith, serhiy.storchaka, lisroach, cheryl.sabella |
2017-06-12 14:54:44 | skrah | set | messageid: <1497279284.62.0.0125191427586.issue30571@psf.upfronthosting.co.za> |
2017-06-12 14:54:44 | skrah | link | issue30571 messages |
2017-06-12 14:54:44 | skrah | create | |
|