syntax difference

Chris Angelico rosuav at gmail.com
Tue Jun 19 07:43:11 EDT 2018


On Tue, Jun 19, 2018 at 9:33 PM, Rhodri James <rhodri at kynesim.co.uk> wrote:
> On 18/06/18 21:39, Chris Angelico wrote:
>>
>> On Tue, Jun 19, 2018 at 6:25 AM, Rick Johnson
>> <rantingrickjohnson at gmail.com> wrote:
>>>
>>> Chris Angelico wrote:
>>> [...]
>>>>
>>>> assert """
>>>> """", ", ";print('Will I print?');\
>>>> "';print("Or will I?");\
>>>> ';print("What about me?");'''\
>>>> print("And me? Where endeth");"""\
>>>> print('the assertion?');\''''
>>>
>>>
>>> Chris, that's not code...
>>>
>>> That's a syntactical representation of some random flea circus.
>>
>>
>> Fortunately, my Python interpreter is able to execute flea circuses.
>
>
> It has little flea executioners running around with little flea axes
> chopping off little flea heads?
>

Nah, it doesn't decapitate. It hangs them. It's a Python, after all.
But yeah, you have the right idea.

ChrisA



More information about the Python-list mailing list