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 taleinat
Recipients Zero, epaine, gvanrossum, rhettinger, taleinat, terry.reedy
Date 2021-05-26.09:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622020285.25.0.523352655742.issue37903@roundup.psfhosted.org>
In-reply-to
Content
> Another desirable feature is the ability to cut and paste snippets into docstrings.  This is essential not just for doctest, but even for untested examples in docstrings.
> Those examples, need to be recognizable to humans as interactive sessions with outputs clearly distinguished from inputs.  When I tried out the new sidebar in prep for a class, it was impossible to include the ps1 prompts in a cut and paste selection.  They had to be manually typed back in.

This is no longer the case.  In a quick followup PR, which has been merged for some time now, we added a context-menu option "Copy with prompts" which results in code samples directly usable for doctests and code samples.
History
Date User Action Args
2021-05-26 09:11:25taleinatsetrecipients: + taleinat, gvanrossum, rhettinger, terry.reedy, Zero, epaine
2021-05-26 09:11:25taleinatsetmessageid: <1622020285.25.0.523352655742.issue37903@roundup.psfhosted.org>
2021-05-26 09:11:25taleinatlinkissue37903 messages
2021-05-26 09:11:25taleinatcreate