from a
beginner, but I don't think I could implement a non-trivial
numerical algorithm. (Well, I could make it work, but I'm betting
it would be non-optimal or have corner cases of failure that an
expert could point out.)
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python
program.
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list
that it needs to be
solved using exec, try posting it here... the people on this newsgroup
are very good at solving challenges like that. But try it yourself
first... you may learn something.
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list
.
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list
that it doesn't handle file sizes larger
than MAXINT on your box... hardly any OS's allowed such a thing back
then. I recomend using a newer version... 2.4.1 is quite nice.
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list
by the file iterator is 8192 bytes, which clearly
might be too much.
Jp Calderone writes:
def iterread(fobj):
return iter(fobj.readline, '')
Thanks folks... that did it nicely!
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list
and testing will show you what to
fix. (Using a better algorithm is a different story... do that
whenever you need it.)
-- Michael Chermside
--
http://mail.python.org/mailman/listinfo/python-list