Graceful detection of EOF

MickeyBob hineses at
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

Thanks for any assistance.

More information about the Python-list mailing list