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

Peter Otten __peter__ at web.de
Sun Jan 12 03:31:28 EST 2014


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





More information about the Python-list mailing list