Serhiy Storchaka added the comment: Because it is simpler and more efficient. The buffer API requires the releasing of buffer. Correct tracking the ownership of the buffer requires larger and more complicated patch. Even if support for general buffers will be added, I suppose it will be worth to left specialized paths for bytes and bytearrays in some places.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10803> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com