[Python-ideas] PEP 3156 feedback

Antoine Pitrou solipsis at pitrou.net
Tue Dec 18 21:44:22 CET 2012


On Tue, 18 Dec 2012 12:41:04 -0800
Guido van Rossum <guido at python.org> wrote:
> > So "if error is None: return" is all you have to do to filter out the
> > boring case.
> 
> But a clean close from the other end (as opposed to an unexpected
> disconnect e.g. due to a sudden network partition) also passes None. I
> guess this is okay because in that case eof_received() is first
> called. So I guess the PEP is already okay here. :-)

Only if the protocol supports EOF, though? Or do you "emulate" by
calling eof_received() in any case?

Regards

Antoine.





More information about the Python-ideas mailing list