Idiosyncratic python

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Sep 24 16:05:09 EDT 2015


On 24/09/2015 18:50, Laurent Pointal wrote:
> wxjmfauth at gmail.com wrote:
>
>> Le jeudi 24 septembre 2015 08:02:38 UTC+2, Steven D'Aprano a écrit :
>>>
>>>
>>> What are your favorite not-wrong-just-weird Python moments?
>>>
>>>
>> Showing how to make Python 3.5.0 crash by
>> just using an "é", U+00E9.

Would you like to show us all how, or do you think you'd be far too 
embarassed by once again showing that you haven't got the faintest idea 
what you're talking about?

>
> Like this ?
>
>
> Python 3.5.0 (default, Sep 24 2015, 19:47:57)
> [GCC 4.9.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> s = "\u00E9"
>>>> print(s)
> é
>

Your test must be wrong as the RUE knows everything.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list