[Python-3000] Traits/roles instead of ABCs

Greg Ewing greg.ewing at canterbury.ac.nz
Tue May 1 02:59:17 CEST 2007


Bill Janssen wrote:
>>On 30/04/07, Bill Janssen <janssen at parc.com> wrote:

>>After 15 years not being able to clearly state what "file-like" or
>>"mapping-like" means to different people, perhaps we should accept
>>that there is no clear-cut answer...?
> 
> And that's a problem -- people are confused.  Instead of throwing up
> our hands, I think we should define what "file-like" means.

That assumes there exists a single definition of
file-like that suits most purposes, and the only
reason for confusion is just that this definition
hasn't thus far been elucidated.

But I don't think there is any such definition, and
the confusion arises because people lazily use the
vague term "file-like" instead of spelling out what
they really mean ("has a read() method", etc.)

Hopefully the new I/O system will help by breaking
the API into more digestible pieces.

--
Greg


More information about the Python-3000 mailing list