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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue1741218> _____________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com