Message395973
Oh, LZMAFile.write() should not use len() directly on input data because it does not always work correctly with memoryview and other objects supporting the buffer protocol. It should use memoryview(data).nbytes or data = memoryview(data).cast('B') if other byte-oriented operations (indexing, slicing) are used. See for example Lib/gzip.py, Lib/_pyio.py, Lib/_compression.py, Lib/ssl.py, Lib/socketserver.py, Lib/wave.py. |
|
Date |
User |
Action |
Args |
2021-06-17 05:36:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, nadeem.vawda, malin |
2021-06-17 05:36:11 | serhiy.storchaka | set | messageid: <1623908171.23.0.144706559847.issue44439@roundup.psfhosted.org> |
2021-06-17 05:36:11 | serhiy.storchaka | link | issue44439 messages |
2021-06-17 05:36:11 | serhiy.storchaka | create | |
|