Serhiy Storchaka added the comment:

Indeed, fwrite() can return expected number of items and set errno. Here is a 
simple example on C. An output is:

setvbuf 0 0
fwrite 5 0
fwrite 1 28
fwrite 1 28

On writing "\n" fwrite returns 1 and set errno to ENOSPC.

----------
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file30259/fullwrite.c

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

Reply via email to