]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport Tim's checkin 2.104:
authorThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:30:59 +0000 (12:30 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 23 May 2001 12:30:59 +0000 (12:30 +0000)
commit4a11bb3f86a5d5ca975f800cf1740b9253794ab7
treec2dbb4e31b75eaf1a478a687856dd9a6f8405caa
parented53d874d5a24ae8ff4be2f9b8c9059da8d84429
Backport Tim's checkin 2.104:

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.
Objects/stringobject.c