[IPython-User] very strange ipython behavior

John Hunter jdh2358@gmail....
Wed Oct 12 15:56:07 CDT 2011

Where are the parentheses coming from??

In [229]: companycode
Out[229]: 47103

In [230]: type(companycode)
Out[230]: <type 'int'>

In [231]: query = """\
            select startdate, enddate, icbcode
            from ds2icbchg
            where dscmpycode=%d
            order by startdate
--------> select(startdate, enddate, icbcode)
--------> where(dscmpycode=%d)

In [237]: print query
select(startdate, enddate, icbcode)
            from ds2icbchg
            order by startdate

In [238]: import IPython

In [239]: IPython.__version__
Out[239]: '0.10.1'

In [241]: !uname -a
SunOS us251 5.10 Generic_141445-09 i86pc i386 i86pc

More information about the IPython-User mailing list