online.com:
"Bengt Richter" <bokr at oz.net> schrieb im Newsbeitrag
news:bhomem$jg8$0 at 216.39.172.122...
__main__:1: FutureWarning: hex()/oct() of negative int will return asigned string in Python 2.4 and up '0xfffffffb'
[...]
There is a thread from this morning ("bitwise not ...") - this should be an
excellent contribution!
I have no mercy with someone writing hex(-5)
Kindly
Michael P
What about crazy people like myself? If you generate a crc32 value with zib,news:bhomem$jg8$0 at 216.39.172.122...
hex(-5)
[...]
There is a thread from this morning ("bitwise not ...") - this should be an
excellent contribution!
I have no mercy with someone writing hex(-5)
Kindly
Michael P
you occasionally get a negative number returned. If you try to convert that
to hex (to test against a stored CRC32 value), it spits out a FutureWarning
at me. So you end up with silly things like this in your code:
# Disable FutureWarning, since it whinges about us making bad hex values :(
import warnings
try:
warnings.filterwarnings(action='ignore', category=FutureWarning)
except NameError:
del warnings
--
Remove the oinks!