hex and unsigned longs

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Mon Apr 14 02:05:13 EDT 2003


Dennis Lee Bieber wrote:
>         Since longs have an undefined length, -1L would, to be "unsigned", be 
> represented by an infinite number of FFFFs.

When ints and longs become fully unified, presumably
hex() will have to always return signed results?

Unless one of the earlier suggestions for representing
negative longs as unsigned is adopted, such as 1x...
or Fx.... :-)

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list