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 Sergey.Kirpichev
Recipients Sergey.Kirpichev
Date 2018-02-12.13:49:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The Python stdlib allows override of sys.ps1/ps2 (to make IPython-like dynamic prompts and so on).  I believe it would be a good idea to
support this in doctest too, to cover cases when given application
uses different from defaults settings for the interpreter.

Probably, we could add ps1/2 optional arguments for DoctestParser.__init__().

Some projects already patch doctest module for this, e.g. IPython:
It shouldn't be too hard to port this feature.
Date User Action Args
2018-02-12 13:49:39Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev
2018-02-12 13:49:39Sergey.Kirpichevsetmessageid: <>
2018-02-12 13:49:39Sergey.Kirpichevlinkissue32832 messages
2018-02-12 13:49:39Sergey.Kirpichevcreate