Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1653416] print >> f, "Hello" produces no error: normal?

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 24, 2009, 8:55 AM

Post #1 of 1 (167 views)
Permalink
[issue1653416] print >> f, "Hello" produces no error: normal?

Ronald Oussoren <ronaldoussoren [at] mac> added the comment:

<http://www.opengroup.org/onlinepubs/9699919799/functions/printf.html>
claims fprintf should return a negative value when there is an output
error (the same claims is in the manpage of fprintf on OSX 10.6).

Neither document refers to the error indicator. I'm afraid Martin is right
that that the return value of all calls to fprintf (and fwrite) need to be
explicitly checked, which is a very large patch.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue1653416>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.