Possible File iteration bug
ethan at stoneleaf.us
Fri Jul 15 23:20:28 CEST 2011
Billy Mays wrote:
> A sentinel does provide a work around, but it also passes the problem
> onto the caller rather than the callee
The callee can easily take care of it -- just block until more is ready.
If blocking is not an option, then the caller has to deal with it no
matter how callee is implemented -- an exception, a sentinel, or some
signal that says "nope, nothing for ya! try back later!"
More information about the Python-list