Re: [Tutor] ipython / readline problem

2007-12-14 Thread Thorsten Kampe
* Tiago Saboga (Thu, 13 Dec 2007 17:05:55 -0200) > On Thu, Dec 13, 2007 at 07:41:08AM -0500, Kent Johnson wrote: > > Tiago Saboga wrote: > >> : 'ascii' codec can't encode > >> character u'\xe7' in position 2: ordinal not in range(128) > >> > >> === > >> > >> What

Re: [Tutor] ipython / readline problem

2007-12-13 Thread Kent Johnson
Alan Gauld wrote: > But I think Python itself is pretty safe with unicode v ascii in most > cases. I was actually holding my tongue on that one. My guess is it varies from one module to the next depending on how well maintained they are, but I don't really know. > I'm sure Kent will be able

Re: [Tutor] ipython / readline problem

2007-12-13 Thread Alan Gauld
"Tiago Saboga" <[EMAIL PROTECTED]> wrote > But in general, in the python libraries, I thought it would be safe > to > assume that one can equally send a string or a unicode object, and > that otherwise there would be a warning in the docs. Is this > assumption plain wrong, is this info really mis

Re: [Tutor] ipython / readline problem

2007-12-13 Thread Tiago Saboga
On Thu, Dec 13, 2007 at 07:41:08AM -0500, Kent Johnson wrote: > Tiago Saboga wrote: >> : 'ascii' codec can't encode >> character u'\xe7' in position 2: ordinal not in range(128) >> >> === >> >> What's happening? Why do the readline methods accept a multibyte >> s

Re: [Tutor] ipython / readline problem

2007-12-13 Thread Kent Johnson
Tiago Saboga wrote: > : 'ascii' codec can't encode > character u'\xe7' in position 2: ordinal not in range(128) > > === > > What's happening? Why do the readline methods accept a multibyte > string ('ação') but not a unicode (u'ação')? I don't know what is hap

[Tutor] ipython / readline problem

2007-12-13 Thread Tiago Saboga
Hi, I am facing what seems like a bug, and the docs are not enough to tell me where the bug lies. In ipython, I can't type a multiline unicode string. The bug is reported here [1], and the output is like that (except that the commented out lines are modifications I have done): ===