Does Python need a '>>>' operator?

Jon Ribbens jon+usenet at unequivocal.co.uk
Mon Apr 15 11:35:03 EDT 2002


In article <3cba62f8 at news.mhogaming.com>, Ken Peek wrote:
> This should be fixed so that decimal display of longs uses the '-'
> sign, but hex display does not (you would just get the number of hex
> digits in their raw "twos complement" form that the long object's
> hex display method "knows" there is...)

So you think that:

  long(hex(-1l), 16)

should not equal -1 but, err, some random choice of 15, 255, 4095,
65535, etc?



More information about the Python-list mailing list