Re: n00b formatting

2011-02-24 Thread Tim Chase
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

Re: n00b formatting

2011-02-24 Thread Verde Denim
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

Re: n00b formatting

2011-02-24 Thread Verde Denim
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 = '

Re: n00b formatting

2011-02-24 Thread MRAB
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

Re: n00b formatting

2011-02-24 Thread Chris Rebert
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

n00b formatting

2011-02-24 Thread Verde Denim
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