Author skrah
Recipients cheryl.sabella, eric.smith, lisroach, rhettinger, serhiy.storchaka, skrah, talin
Date 2017-06-12.14:54:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497279284.62.0.0125191427586.issue30571@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-06-12 14:54:44skrahsetrecipients: + skrah, rhettinger, talin, eric.smith, serhiy.storchaka, lisroach, cheryl.sabella
2017-06-12 14:54:44skrahsetmessageid: <1497279284.62.0.0125191427586.issue30571@psf.upfronthosting.co.za>
2017-06-12 14:54:44skrahlinkissue30571 messages
2017-06-12 14:54:44skrahcreate