Re: What happened with python? messed strings?

2008-04-24 Thread gagsl-py2
(top posting fixed; please keep discussion on this list) --- [EMAIL PROTECTED] escribió: In article [EMAIL PROTECTED] you wrote: En Sun, 20 Apr 2008 15:54:20 -0300, [EMAIL PROTECTED] escribi?: I used extensively python and now I find this mess with strings, I can't even reproduce

What happened with python? messed strings?

2008-04-20 Thread algaba
Hi, I used extensively python and now I find this mess with strings, I can't even reproduce tutorial examples: apfel.encode('utf-8') (it was with umlaut) File stdin, line 0 ^ SyntaxError: 'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128) Is there any

Re: What happened with python? messed strings?

2008-04-20 Thread Arnaud Delobelle
On Apr 20, 7:54 pm, [EMAIL PROTECTED] wrote: [...] python should have stayed at version 1.5, every single 'improvement' has been a mess. But this is the definitive hell. You can still download Python 1.5.2 from python.org: http://www.python.org/download/releases/1.5/ HTH -- Arnaud --

Re: What happened with python? messed strings?

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 15:54:20 -0300, [EMAIL PROTECTED] escribió: I used extensively python and now I find this mess with strings, I can't even reproduce tutorial examples: apfel.encode('utf-8') (it was with umlaut) File stdin, line 0 ^ SyntaxError: 'ascii' codec can't decode byte 0xc4

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
[EMAIL PROTECTED] wrote: Hi, I used extensively python and now I find this mess with strings, I can't even reproduce tutorial examples: apfel.encode('utf-8') (it was with umlaut) File stdin, line 0 ^ SyntaxError: 'ascii' codec can't decode byte 0xc4 in position 1: ordinal

Re: What happened with python? messed strings?

2008-04-20 Thread Jason Scheirer
On Apr 20, 11:54 am, [EMAIL PROTECTED] wrote: Hi, I used extensively python and now I find this mess with strings, I can't even reproduce tutorial examples: apfel.encode('utf-8')  (it was with umlaut)   File stdin, line 0     ^ SyntaxError: 'ascii' codec can't decode byte 0xc4 in

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
Juergen Perlinger wrote: [EMAIL PROTECTED] wrote: [snip] Basically you're not using ASCII encoding in your source text... You need to define an encoding for your source if you're using german umlauts or other fancy stuff. See chapter 2.1.4 of the reference manual, and add e.g. # -*-

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
Jason Scheirer wrote: [snip] It's true -- decorators, the class/type cleanup, properties, -= and +=, list comprehensions, generators, distutils, and all the new modules in the standard library are completely, entirely useless. Python SHOULD have stayed at 1.5. totally OT, but just a few