[issue1106] Error in random.shuffle

2007-09-04 Thread Vizcaynot
New submission from Vizcaynot: In python 3.0a1 under Win XP SP2: Typing next code: import random s=range(10) random.shuffle(s) I have next error: Traceback (most recent call last): File "", line 1, in File "C:\python30\lib\random.py", line 262, in shuffle x[

[issue1092] Unexpected results in Tutorial about Unicode

2007-09-04 Thread Vizcaynot
Vizcaynot added the comment: Thanks about the fixing info. In relation to the second issue, I am afraid it is my fault, the value of variable "a" was asigned and filled with a previous valid operation. Please forgive me for the time you spent unnecessarily. I will attempt to be care

[issue1092] Unexpected results in Tutorial about Unicode

2007-09-02 Thread Vizcaynot
New submission from Vizcaynot: When trying the tutorial example about unicode I have: >>> "Äpfel".encode('utf-8') File "", line 1 SyntaxError: (unicode error) unexpected code byte I live in a latin american country so I need to do: >>> "Äp