urgent

Peter J. Holzer hjp-python at hjp.at
Sat Sep 4 06:24:32 EDT 2021


On 2021-09-02 09:56:38 -0500, Michael F. Stemper wrote:
> On 31/08/2021 18.02, Barry wrote:
> > The big problem with >>> is that it means a third level quote in
> > email clients. So when people cut-n-paste REPL output it’s formatted
> > badly by
some
> > email clients. A prompt that avoided that issue would be nice.
> 
> A little bit of piping fixes that:
[...]
> username at hostname$ sed 's/^>>> /REPL> /' < text
> username at hostname$ python3
> Python 3.5.2 (default, Jan 26 2021, 13:30:48)
> [GCC 5.4.0 20160609] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> REPL> import sys  # in the original, this line will be messed up
> REPL> sys.exit(0) # this one, too
> username at hostname$

Yes, but then it doesn't look like the Python prompt anymore which may
confuse the reader even more.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/python-list/attachments/20210904/43c6196d/attachment.sig>


More information about the Python-list mailing list