Bill Janssen wrote: >> You will still be able to assign any "file-like" object to >> sys.stdout, as long as it has a write method. > > Well, yes, but... I think there should be an ABC for "file-like", > which the standard "file" and "StringIO" implementations inherit from. > This could even be a fourth PEP.
I suggest the ABCs for stream objects should be incorporated into the PEP for the new IO library, using this PEP as a prerequisite. The reason for this is that the stream ABCs will naturally follow the same class decomposition and methods as are defined by the new library (i.e. input stream, output stream, and so on.) -- Talin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
