On Wed, Jun 17, 2020 at 11:42 AM Emily Bowman <[email protected]> wrote: > So most likely there wouldn't be any way to share something like a bytearray > or another > buffer interface-compatible type for some time. That's too bad, I was hoping > to have > shared arrays that I could put a memoryview on in each thread/interpreter and > deal with > locking if I need to,
Earlier versions of PEP 554 did have a "SendChannel.send_buffer()" method for this but we tabled it in the interest of simplifying. That said, I expect we'll add something like that separately later. > but I suppose I can work through an extension once the changes stabilize. Yep. This should be totally doable in an extension and hopefully without much effort. > Packages like NumPy have had their own opaque C types and C-only routines to > handle all the big threading outside of Python as a workaround for a long > time now. As a workaround for what? This sounds interesting. :) -eric _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/D2APLOLR4UL7VXLNRFGFWOUN5MPIO2BV/ Code of Conduct: http://python.org/psf/codeofconduct/
