[Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.103,2.104 unicodeobject.c,2.87,2.88

Guido van Rossum guido@digicool.com
Sat, 28 Apr 2001 12:06:12 -0500

> Modified Files:
> 	stringobject.c unicodeobject.c 
> Log Message:
> A different approach to the problem reported in
> Patch #419651: Metrowerks on Mac adds 0x itself
> C std says %#x and %#X conversion of 0 do not add the 0x/0X base marker.
> Metrowerks apparently does.  Mark Favas reported the same bug under a
> Compaq compiler on Tru64 Unix, but no other libc broken in this respect
> is known (known to be OK under MSVC and gcc).
> So just try the damn thing at runtime and see what the platform does.
> Note that we've always had bugs here, but never knew it before because
> a relevant test case didn't exist before 2.1.

Note that Tim apparently hit the "clean up whitespace" button in his
editor -- most of the diff has nothing to do with this problem.

--Guido van Rossum (home page: http://www.python.org/~guido/)