470,815 Members | 1,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

bugs at iter file() ?

Python 2.3.4, winxp:

I have a large text file that unknowingly contains ascii
character 1A, or chr(26). And doing this:

for line in file(sys.argv[1]):
print line

would stop iteration at the specific line containing ascii
char 1A, without raising exception or warning, although
there were still remaining lines which has not been
iterated. I was wondering whether this was a bug in


dody wijaya

================================================== =========================================
"Gabung INSTANIA, dapatkan XENIA. Daftar di www.telkomnetinstan.com, langsung dapat akses Internet Gratis..
Dan ..ikuti "Instan Smile" berhadiah Xenia,Tour S'pore, Komputer,dll, info hub : TELKOM Jatim 0-800-1-467826 "
================================================== =========================================
Jul 18 '05 #1
0 1051

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by dw | last post: by
4 posts views Thread by Tuure Laurinolli | last post: by
3 posts views Thread by Will McGugan | last post: by
3 posts views Thread by gert | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.