Message416538
| Author | malin |
|---|---|
| Recipients | malin |
| Date | 2022-04-02.06:28:23 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1648880903.17.0.104458885779.issue47199@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
`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 = len(m)
https://github.com/python/cpython/blob/v3.11.0a6/Lib/multiprocessing/connection.py#L190-L194 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-02 06:28:23 | malin | set | recipients: + malin |
| 2022-04-02 06:28:23 | malin | set | messageid: <1648880903.17.0.104458885779.issue47199@roundup.psfhosted.org> |
| 2022-04-02 06:28:23 | malin | link | issue47199 messages |
| 2022-04-02 06:28:23 | malin | create | |