11 Apr
2003
11 Apr
'03
6:11 p.m.
On Thu, Apr 10, 2003 at 08:48:19PM -0400, Guido van Rossum wrote:
[Greg Ewing]
But since it is an os-dependent feature, the implementation of it probably does belong in the os module.
So how about providing a file.fromfd() which calls os.fdopen()?
I've never seen anyone code a file subclass yet, let alone one that needed this. YAGNI?
codecs.EncodedFile seems almost like it should (but it's just a factory function). Other than that I can't think of anything that does or that would benefit from doing so. Jp -- Lowery's Law: If it jams -- force it. If it breaks, it needed replacing anyway. -- up 22 days, 15:01, 3 users, load average: 1.05, 1.11, 1.16