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 rhettinger
Recipients Tomáš Petříček, jbakker, r.david.murray, rhettinger, tim.peters
Date 2017-11-19.17:01:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511110861.46.0.213398074469.issue32042@psf.upfronthosting.co.za>
In-reply-to
Content
I recommend not going down this path.  The intended purpose of doctest is to test examples in documentation.  In particular, those examples should match what a user would *see* when running the examples.  In essence, the proposal is to allow tests to pass even when the examples *don't* match what the user sees.

ISTM, the str_fun() example *should* fail.  It does not show *any* real interactive prompt session than can be reproduced by a user or anything that a user would ever see.   IMO, that would be a documentation anti-pattern.
History
Date User Action Args
2017-11-19 17:01:01rhettingersetrecipients: + rhettinger, tim.peters, r.david.murray, jbakker, Tomáš Petříček
2017-11-19 17:01:01rhettingersetmessageid: <1511110861.46.0.213398074469.issue32042@psf.upfronthosting.co.za>
2017-11-19 17:01:01rhettingerlinkissue32042 messages
2017-11-19 17:01:01rhettingercreate