Serhiy Storchaka added the comment:

It looks to me that there is two opposite ways to resolve this issue.

1. Document the requirement for write() and raise an exception if write() 
returned not the size of full data. But I think it would be more user-friendly 
first emit a warning and continue calling write() until full data is written.

2. Don't document any requirement, but just silently handle partial writing.

wsgiref-only.patch contains parts from both ways. It documents new requirement, 
but doesn't deprecate partial writing. What way is chosen?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24291>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to