Frank,
I would imagine that you cannot get a much better performance in python
than this, which avoids string conversions:
c = []
count = 0
for line in open('foo'):
if line == '1 1\n':
c.append(count)
count = 0
else:
if '1' in line: count += 1
One could do some
On Thu, Mar 13, 2008 at 06:18:30PM -0400, Alan G Isaac wrote:
This is how I would hope ``fromfunction`` would work
and it matches the docs. (See below.) You can fix
the example ...
Interesting, i thought the output in the Example List page is
auto-generated...