g, just do
f = open(filename, "r")
and then read from using using .read(), .readline() or by looping over it.
best,
Torsten
--
Torsten Marek <[EMAIL PROTECTED]>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net
signatur
ng code ...
> except ExceptionsOnOpening :
> ... exception handling
> except :
> ... exceptions inside the for
Hi Ricardo,
don't forget the "f.close()" call after the for loop, in a finally block
[0]. Context managers are all about generalizing non-adjace
ng how to treat this in the
> most Pythonesque way.
>
IMHO it would be better to hand in the board instance into the counter
instances. Globals add hidden dependencies, make code harder to test
etcetc. (Swallowing down didn't work ;-)
best regards,
Torsten
--
Torsten Marek <[EMAIL