[Python-Dev] Re: adding a bytes sequence type to Python
Guido van Rossum
gvanrossum at gmail.com
Sat Aug 28 23:17:01 CEST 2004
> I must admit I'm having a bit of trouble getting past this point with a more
> traditional subclass (can array objects not be subclassed?) in part I think
> because I don't understand new-style classes very well. In particular, I
> couldn't find a description of __new__, and once I fumbled past that, I
> didn't seem to be able to override append() or extend().
Alas, the array type doesn't seem completely fit for subclassing; I
tried similar things and couldn't gt it to work! Even more mysterious
is that the array implementation appears to support the buffer API and
yet it can't be used as an argument to write(). What's going on?
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list