n00b formatting

Verde Denim tdldev at gmail.com
Thu Feb 24 17:41:28 CET 2011


hi, all
i can't believe i don't see this, but
python from the command line:
>>> x = '0D'
>>> y = '0x' + x
>>> print "%d" % int(y,0)
13

content of testme.py:
x = '0D'
y = '0x' + x
print "%d" % int(y,0)
TypeError: 'int' object is not callable

what am i not seeing here??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110224/2cd80b59/attachment.html>


More information about the Python-list mailing list