[Python-Dev] long formatting

Fred L. Drake, Jr. fdrake@acm.org
Wed, 29 Nov 2000 16:49:53 -0500 (EST)


Finn Bock writes:
 > >>> print '%030o' % -10L
 > 000000000000000000037777777766
...
 > -00000000000000000000000000012
...
 > The CPython behaviour looks as if the number have been through a C long
 > before it is formatted. It that intended? Would jython be wrong if it
 > used the result above?

  It doesn't look like either of them is doing the right thing!


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations