[IPython-User] doctest_mode continuation change?

Fernando Perez fperez.net@gmail....
Thu Aug 4 15:41:19 CDT 2011


On Thu, Aug 4, 2011 at 1:39 PM, Fernando Perez <fperez.net@gmail.com> wrote:
>
> So lists and dicts fail, but interestingly, tuples work:
>
> In [7]: >>> a = (1,2,
>   ...: 3)
>
> In [8]: a
> Out[8]: (1, 2, 3)

Never mind, I failed to add the continuation prompt in my testing.
Tuples are also broken:

In [9]: >>> a = (1,2,
   ...: ... 3)
  File "<ipython-input-9-4ac29872d3db>", line 2
    ... 3)
    ^
SyntaxError: invalid syntax

Which in a sense is better, because it means our bug is simply that
our stripping logic isn't correctly handling open multiline structures
in-flight.

Cheers,

f


More information about the IPython-User mailing list