From: simon s. <re...@bu...> - 2009-09-29 11:03:58
|
New submission from simon steiner <ext...@no...>: myfile is a 1MB text file. This takes few seconds on python or jep. <script language="jython" setbeans="false"> <![CDATA[ t = '' f = open(r'myfile') for l in f: t = t + l f.close() ]]> </script> ---------- components: Core messages: 5202 nosy: ssteiner severity: normal status: open title: Loop through file is slow type: behaviour versions: 2.5.0 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1480> _______________________________________ |