| Reply | « Previous Thread | Next Thread » |
|
This script works perfectly on the PC and on the Emulator:
Code:
while True:
s = raw_input('Enter something : ')
if s == 'quit':
break
if len(s) < 3:
continue
print(u'Length is at least 3!')
Code:
Enter something : Test
Traceback (most recent call last):
File "E:\System\Apps\Python\default.py", line 60, in menu_action
f()
File "E:\System\Apps\Python\default.py", line 44, in query_and_exec
execfile(os.path.join(this_dir, script_list[index]), globals())
File "E:\System\Apps\Python\continue.py", line 2, in ?
s = raw_input('Enter something : ')
TypeError: object.readline() returned non-string
Thanks in advance! |
| nokiameister |
| View Public Profile |
| Find all posts by nokiameister |
|
I can reproduce the problem on my E70. Unfortunately I have no ideea why it does this
![]() |
|
Sorry for you
But in my phone your code works perfectly (no error !) Except where I enter no character in the input prompt I have following error Code:
n=raw_input('>')
print n
Traceback (most recent call last): File "<console>", Line 1 , in ? EOFError: EOF when reading a line pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Quote:
Filed as bug: https://sourceforge.net/tracker/inde...55&atid=790646 |
|
Hello to everyone from a newbie of the forum and python
Is there any solution / workaround for this bug? I've a 6680 and I've the same problem! I need an input box to enter an sms message first to send it to recipients... Thanks in advance... See ya! P.s. sorry for wrong english and greetings from Italy! |
| aSaSSin0000 |
| View Public Profile |
| Find all posts by aSaSSin0000 |
|
hello,
i have the same problem on the e70. is there a solution to this? What's the correct way to read from stdin? cheers, flo |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |