Closed GoogleCodeExporter closed 9 years ago
I've never really enforced any kind of semantics on the file object returned by
open, since for most implementations the file-like object isn't defined in
PyFilesystem. I wouldn't be surprised if some of the other implementations were
similarly lax in their handling of this.
I concur it should throw an exception though. But what kind? An IOError would
be consistent with Python file objects, but seems misnamed for memory files. If
we define an exception hierarchy for file like objects, we have the problem of
retro-fitting other file-like objects with the new exceptions -- and that might
require hacking it in with some kind of proxy object...
I'm open to suggestions. Might be worth bringing it up on the mailing list.
Original comment by willmcgugan
on 10 Apr 2012 at 1:23
This issue was closed by revision r762.
Original comment by gc...@loowis.durge.org
on 10 Apr 2012 at 5:42
Original issue reported on code.google.com by
gc...@loowis.durge.org
on 10 Apr 2012 at 12:55