A python IDE for teaching that supports cyrillic i/o

Kirill Simonov xi at gamma.dn.ua
Sun Nov 19 09:38:03 EST 2006


On Sun, Nov 19, 2006 at 03:13:30PM +0100, Alan Franzoni wrote:
> Kirill Simonov  si è divertito a scrivere:
> 
> > On Sun, Nov 19, 2006 at 12:33:39PM +0100, Alan Franzoni wrote:
>  
> > No, I would prefer the editor to save the .py files with non-ASCII
> > characters in UTF-8 encoding adding the BOM at the beginning of the
> > file. This will allow the interpreted to detect the file encoding
> > correctly and would save a teacher from explaining what an encoding is
> > and why it is needed.
> 
> You'll run into encoding problems anyway in your programmer's life. I don't
> think it's a workaround, try this article:
> 
> http://www.joelonsoftware.com/articles/Unicode.html
> 
> I think it's highly useful, you could tell that to your students.

Please remember that most of the students will not become professional
programmers.  Personally I think that encoding problems are nightmare in
general, and in Python in particular, and would like to avoid explaining
it as longer as possible.  Besides, it won't be me, it will be a teacher
who will explain it, and the teacher themself might have a vague notion
about this topic.

> Eclipse+Pydev seems to work with that. I'm not able to check with other
> editors right now, but it seems you're experiencing a simple encoding
> problem; your editor doesn't know which encoding you'd like to use, so it
> defaults to ascii or iso-8859-1 leading to such problems.

No, my problem is that the emulation of sys.stdin/sys.stdout under
an IDE's interactive console doesn't work like the real
sys.stdin/sys.stdout under a real terminal.


Thanks,
Kirill.



More information about the Python-list mailing list