[Python-3000] Need help completing ABC pep

Talin talin at acm.org
Fri Apr 20 21:13:22 CEST 2007

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

More information about the Python-3000 mailing list