Author gvanrossum
Recipients aroberge, christian.heimes, georg.brandl, gvanrossum, mark_t_russell
Date 2008-01-09.15:09:58
SpamBayes Score 0.00857022
Marked as misclassified No
Message-id <1199891400.15.0.594102025328.issue1775@psf.upfronthosting.co.za>
In-reply-to
Content
The intention was that the lowest-level (unbuffered) stream object can
write fewer bytes than given to it, as it is a direct interface to the
underlying system call, which has this property (especially when the
file is in non-blocking mode).

I think it's fine to return None from the higher-level classes' write()
method (buffered and text).  Though this makes it a bit harder to switch
between buffered and unbuffered binary output.  Perhaps text I/O should
return None and bytes I/O should return a byte count?
History
Date User Action Args
2008-01-09 15:10:00gvanrossumsetspambayes_score: 0.00857022 -> 0.00857022
recipients: + gvanrossum, georg.brandl, christian.heimes, mark_t_russell, aroberge
2008-01-09 15:10:00gvanrossumsetspambayes_score: 0.00857022 -> 0.00857022
messageid: <1199891400.15.0.594102025328.issue1775@psf.upfronthosting.co.za>
2008-01-09 15:09:59gvanrossumlinkissue1775 messages
2008-01-09 15:09:58gvanrossumcreate