Graceful detection of EOF

MickeyBob hineses at hotmail.com
Thu Oct 7 14:03:03 EDT 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