Graceful detection of EOF

MickeyBob hineses at hotmail.com
Thu Oct 7 20:03:03 CEST 2004


How does one detect the EOF gracefully? Assuming I have a pickle file
containing an unknown number of objects, how can I read (i.e.,
pickle.load()) until the EOF is encountered without generating an EOF
exception?

Thanks for any assistance.
MickeyBob




More information about the Python-list mailing list