Message394424
> 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. |
|
Date |
User |
Action |
Args |
2021-05-26 09:11:25 | taleinat | set | recipients:
+ taleinat, gvanrossum, rhettinger, terry.reedy, Zero, epaine |
2021-05-26 09:11:25 | taleinat | set | messageid: <1622020285.25.0.523352655742.issue37903@roundup.psfhosted.org> |
2021-05-26 09:11:25 | taleinat | link | issue37903 messages |
2021-05-26 09:11:25 | taleinat | create | |
|