'Straße' ('Strasse') and Python 2

Stefan Behnel stefan_ml at behnel.de
Sun Jan 12 04:00:58 EST 2014


Peter Otten, 12.01.2014 09:31:
> wxjmfauth at gmail.com wrote:
> 
>> >>> sys.version
>> 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
>> >>> s = 'Straße'
>> >>> assert len(s) == 6
>> >>> assert s[5] == 'e'
>> >>>
>>
>> jmf
> 
> Signifying nothing. (Macbeth)
> 
> Python 2.7.2+ (default, Jul 20 2012, 22:15:08) 
> [GCC 4.6.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> s = "Straße"
> >>> assert len(s) == 6
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AssertionError
> >>> assert s[5] == "e"
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AssertionError

The point I think he was trying to make is that Linux is better than
Windows, because the latter fails to fail on these assertions for some reason.

Stefan :o)





More information about the Python-list mailing list