recv_into(bytearray) complains about a "pinned buffer"

Martin v. Loewis martin at v.loewis.de
Tue Feb 2 20:01:21 CET 2010


> Clearly it was added to work with an array, and it's
> being used with an array. Why shouldn't people use it
> with Python 2.x?

Because it's not thread-safe; it may crash the interpreter if used
incorrectly.

Of course, if you don't share the array across threads, it can be safe
to use.

Regards,
Martin



More information about the Python-list mailing list