recv_into(bytearray) complains about a "pinned buffer"

Antoine Pitrou solipsis at pitrou.net
Mon Feb 1 07:06:25 EST 2010


Le Mon, 01 Feb 2010 03:30:56 +0100, Martin v. Loewis a écrit :
> 
>> Is this a bug in Python 2.6 or a deliberate choice regarding
>> implementation concerns I don't know about?
> 
> It's actually a bug also that you pass an array; doing so *should* give
> the very same error.

Well, if you can give neither an array nor a bytearray to recv_into(), 
what *could* you give it?

recv_into() should simply be fixed to use the new buffer API, as it does 
in 3.x.




More information about the Python-list mailing list