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@hostname$ sed 's/^>>> /REPL> /' < text
> username@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@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.
|_|_) |                    |
| |   | h...@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment: signature.asc
Description: PGP signature

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to