qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

qpython write broken #38

Open brokeit opened 9 years ago

brokeit commented 9 years ago

The following qpython prog only writes ~206 lines ( qpython 0.9.4 from google play):

f = open(fo,'w') so= "12345678901234567890123456789012345678901234567890\n"

ii= 0 while ii < 1000: ii += 1 f.write(so)

f.close() print ii," done"

brokeit commented 9 years ago

missing line above, correct program follows (except indentation lost):

fo = "test.txt" f= open(fo,'w') so= "12345678901234567890123456789012345678901234567890\n"

ii= 0 while ii < 1000: ii += 1 # indented f.write(so) # indented

f.close() print ii," done"

brokeit commented 9 years ago

turned out to be yet another problem with the qpython included editor. all 1000 lines were actually in the text.txt file when I looked at it with the 920 text editor.