David M. Beazley <[EMAIL PROTECTED]> added the comment: Just as one other followup, if you change the code in the last example to use binary mode like this:
for line in open("BIG","rb"): pass You get the following results: Python 2.6: 0.64s Python 3.0: 42.26s (66 times slower) _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4561> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com