Author nikratio
Recipients benjamin.peterson, docs@python, eric.araujo, ezio.melotti, georg.brandl, hynek, ncoghlan, nikratio, pitrou, r.david.murray, stutzbach
Date 2014-06-15.18:50:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <539DEAF9.70407@rath.org>
In-reply-to <1402846174.41.0.68556802469.issue21763@psf.upfronthosting.co.za>
Content
On 06/15/2014 08:29 AM, R. David Murray wrote:
> I don't think that's true, though.  "file like" pretty much means "has the file attributes that I actually use".  That is, it is context dependent (duck typing).

Well, but when you pass your file-like object to some function from the
standard library, you don't know what file attributes will be used. So
to make sure that things work as expected, you have to make sure that
your file-like object behaves as prescribed by the IOBase* classes.

> I'm also not sure I see the point in the change.  It is inherent in the definition of what ABCs are. 

True. But not everyone reading the io documentation is familiar enough
with ABCs to immediately make that mental translation.
History
Date User Action Args
2014-06-15 18:50:41nikratiosetrecipients: + nikratio, georg.brandl, ncoghlan, pitrou, benjamin.peterson, stutzbach, ezio.melotti, eric.araujo, r.david.murray, docs@python, hynek
2014-06-15 18:50:41nikratiolinkissue21763 messages
2014-06-15 18:50:40nikratiocreate