triple quote and %s at beginning of line #558

sbancal opened this Issue Jul 5, 2011 · 1 comment


None yet

2 participants

sbancal commented Jul 5, 2011

Using '%s' in the beginning of a line in a triple quote string is replaced by a '_ip.magic("s ")' which is not converted then in string substitution.

The problem :

In [3]: print """

_ip.magic("s ")

In [9]: print """
""" % "fooo"
TypeError                                 Traceback (most recent call last)

/home/bancal/<ipython console> in <module>()

TypeError: not all arguments converted during string formatting

What was expected :

>>> print """
... %s
... """


>>> print """
... %s
... """ % "fooo"


Thanks for the bug report. We're actually just days away from releasing IPython 0.11, which doesn't have this problem. So it's not going to get fixed in the 0.10 series.

@takluyver takluyver closed this Jul 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment