On 02/24/2011 04:46 PM, Verde Denim wrote:
On Thu, Feb 24, 2011 at 12:49 PM, MRAB wrote:
On 24/02/2011 16:41, Verde Denim wrote:
x = '0D'
y = '0x' + x
print "%d" % int(y,0)
TypeError: 'int' object is not callable
what am i not seeing here??
I can only assume that at some point you assign
On Thu, Feb 24, 2011 at 12:23 PM, Chris Rebert wrote:
> On Thu, Feb 24, 2011 at 8:41 AM, Verde Denim wrote:
> > 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
On Thu, Feb 24, 2011 at 12:49 PM, MRAB wrote:
> On 24/02/2011 16:41, Verde Denim wrote:
>
>> 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 = '
On 24/02/2011 16:41, Verde Denim wrote:
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 n
On Thu, Feb 24, 2011 at 8:41 AM, Verde Denim wrote:
> 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:
Is this the *entire* contents of the file? I suspect not, and that
somewh
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??
--
http://mail.python.org/m