[Python-Dev] thoughts on the bytes/string discussion

Antoine Pitrou solipsis at pitrou.net
Thu Jun 24 23:50:56 CEST 2010


On Thu, 24 Jun 2010 20:07:41 +0100
Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> 
> Although it would require changes for builtin types like file to work 
> with a new string ABC, right?

There is no builtin file type in 3.x.
Besides, it is not an ABC-level problem; the IO layer is written in C
(although there's still the Python implementation to play with), which
would mandate an abstract C API to access unicode-like objects
(similarly as there's already the buffer API to access bytes-like
objects).

Regards

Antoine.




More information about the Python-Dev mailing list