[issue1741218] string formatter %x problem with indirectly given long

Alexander Belopolsky report at bugs.python.org
Sat Mar 8 02:41:11 CET 2008


Alexander Belopolsky added the comment:

This issue has been resolved in issue1742669 .

$ ./python.exe 
Python 2.6a1+ (trunk:61230M, Mar  4 2008, 10:56:31) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class X:
...   def __int__(self): return 0x80000000
... 
>>> "%08x" % X()
'80000000'

----------
nosy: +belopolsky, facundobatista
title: string formatter %x problem with indirectly given long  -> string formatter %x problem with indirectly given long

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1741218>
_____________________________________


More information about the Python-bugs-list mailing list