fileinput.input('test.txt') => ERROR: input() already active

cyberco cyberco at gmail.com
Mon Nov 20 03:26:14 EST 2006


Using fileinput.input('test.txt') I probably forgot to process all
lines or so, since I get the error 'input() already active' when i try
to call fileinput.input('test.txt') again. But how can I 'close' the
previous version I opened? I have no handle to it or so...




More information about the Python-list mailing list