On Sat, Jun 28, 2008 at 8:33 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Seems to make sense. Do you see many places where it would make
> existing code shorter?
>

If it could be used to get the bytes from a file object, then
marshal.c could use it; the code calls the "read" method on file
objects and then has to check if it got a bytearray or bytes instance
in order to get the raw string to do its work. Otherwise the
conversion to bytes would help by eliminating the separate bytearray
check.

-Brett

> On Sat, Jun 28, 2008 at 6:46 AM, Benjamin Peterson
> <[EMAIL PROTECTED]> wrote:
>> It seems PyBytes is missing the parallel call for
>> PyByteArray_FromObject. Should I add it?
>
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> _______________________________________________
> Python-3000 mailing list
> Python-3000@python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-3000/brett%40python.org
>
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to