Re: Strange behavior of the Eclipse embedded console

2008-03-20 Thread Preston Landers
On Mar 20, 9:09 am, hellt <[EMAIL PROTECTED]> wrote: > "The eclipse console is not an exact copy of a shell... one of the > changes is that when you press in a shell, it may give you a > \r, \n or \r\n as an end-line char, depending on your platform. Python > does not expect this -- from the docs

Re: Strange behavior of the Eclipse embedded console

2008-03-20 Thread hellt
On 20 мар, 14:31, hellt <[EMAIL PROTECTED]> wrote: > i've faced with some strangeness while executing this sample: > > choice = raw_input("your choice: ") > print len(choice) > > when i run this sample in my eclipse console with CPython and print > Yes, i have this output > 4 #trailing \t is the fo

Strange behavior of the Eclipse embedded console

2008-03-20 Thread hellt
i've faced with some strangeness while executing this sample: choice = raw_input("your choice: ") print len(choice) when i run this sample in my eclipse console with CPython and print Yes, i have this output 4 #trailing \t is the fourth element but when i use command line method python sample.py