Gmail eats Python

Laura Creighton lac at openend.se
Sat Jul 25 13:04:15 EDT 2015


In a message of Sat, 25 Jul 2015 11:51:49 -0500, Zachary Ware writes:
>On Jul 25, 2015 11:35 AM, "Laura Creighton" <lac at openend.se> wrote:
>>
>> Gmail eats Python.
>>
>> We just saw this mail back from Sebastian Luque which says in part:
>>
>> >>> try: all_your_code_which_is_happy_with_non_scalars except
>> >>> WhateverErrorPythonGivesYouWhenYouTryThisWithScalars:
>> >>> whatever_you_want_to_do_when_this_happens
>>
>> Ow!  Gmail is understanding the >>> I stuck in as 'this is from the
>> python console as a quoting marker and thinks it can reflow that.
>>
>> I think that splunqe must already have gmail set for plain text or
>> else even worse mangling must show up.
>>
>> How do you teach gmail not to reflow what it thinks of as
>> 'other people's quoted text'?
>
>Add same whitespace in front of the >'s, in plain text mode:
>
>   >>> def test(): pass
>   ...
>   >>> print('Hi world')
>   Hi world
>   >>>
>
>(Hopefully that will work from my phone)
>
>--
>Zach
>(On a phone)


Worked great.

So it was my fault by sending him a reply with >>> to the far left.
I need to indent my text by some whitespace after I paste
in the results from a Python console?

Thank you Zach, I had no idea.  I will change my behaviour.

Laura



More information about the Python-list mailing list