Re: EOFError not getting raised
See http://docs.python.org/lib/module-exceptions.html: EOFError gets raised when input() or raw_input() hit an EOF condition without reading data. -- http://mail.python.org/mailman/listinfo/python-list
EOFError not getting raised
I have been trying to do something like this: f = open('someDocs.str', 'r') try: while True: ln = f.readline() except EOFError: print 'reached eof' f.close() sys.exit(1) However, EOFError is never raised. What am I missing? -- http://mail.python.org/mailman/listinfo/pyt