This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bskinn
Recipients bskinn
Date 2019-04-26.14:10:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556287822.36.0.216077863401.issue36714@roundup.psfhosted.org>
In-reply-to
Content
Ahh, this *will* break some doctests: any with blank PS2 lines in the 'source' portion without the explicit trailing space:

1] >>> def foo():
2] ...    print("bar")
3] ...
4] ...    print("baz")
5] >>> foo()
6] bar
7] baz

If line 3 contains exactly "..." instead of starting with "... ", it will not be recognized as a PS2 line and the example will be parsed as:

'source'
>>> def foo():
...    print("bar")

'want'
...
...    print("baz")

IMO this isn't a *terribly* unreasonable tradeoff, though -- it would enable the specific ellipsis use-case as in the OP, at the cost of breaking some doctests, which shouldn't(?) be in any critical paths?
History
Date User Action Args
2019-04-26 14:10:22bskinnsetrecipients: + bskinn
2019-04-26 14:10:22bskinnsetmessageid: <1556287822.36.0.216077863401.issue36714@roundup.psfhosted.org>
2019-04-26 14:10:22bskinnlinkissue36714 messages
2019-04-26 14:10:22bskinncreate