[python-win32] hex(-1) at python 2.4

Wang Charles betterwang at gmail.com
Fri Apr 22 11:32:01 CEST 2005


under phython
>>> hex(-1)
'-0x1'

but i want a 2.3 style output like

>>> hex(-1)
'0xffffffff'

what should i do?
-- 
http://mail.ustc.edu.cn/~better/gmail3.png


More information about the Python-win32 mailing list