[issue47199] multiprocessing: micro-optimize Connection.send_bytes() method

2022-04-01 Thread Ma Lin
New submission from Ma Lin : `bytes(m)` can be replaced by memoryview.cast('B'), then no need for data copying. m = memoryview(buf) # HACK for byte-indexing of non-bytewise buffers (e.g. array.array) if m.itemsize > 1: m = memoryview(bytes(m)) n = le

[issue47199] multiprocessing: micro-optimize Connection.send_bytes() method

2022-04-01 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +30318 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32247 ___ Python tracker ___ _

[issue47195] importlib lock race issue in deadlock handling code

2022-04-01 Thread Richard Purdie
Richard Purdie added the comment: This is a production backtrace after I inserted code to traceback if tid was already in _blocking_on. It is being triggered by a warning about an unclosed asyncio event loop and confirms my theory about nested imports, in the production case I'd guess being

<    1   2