[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-19 Thread Ma Lin
Ma Lin added the comment: `_Stream.write` method in tarfile.py also has this code: https://github.com/python/cpython/blob/v3.11.0a6/Lib/tarfile.py#L434 But this bug will not be triggered. When calling this method, always pass bytes data. `_ConnectionBase.send_bytes` method in

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-18 Thread Irit Katriel
Irit Katriel added the comment: Can this be closed now or is there anything else to do? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-08 Thread miss-islington
miss-islington added the comment: New changeset 0663ca17f5535178c083c6734fa52e40bd2db2de by Miss Islington (bot) in branch '3.9': bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468) https://github.com/python/cpython/commit/0663ca17f5535178c083c6734fa52e40bd2db2de

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-08 Thread miss-islington
miss-islington added the comment: New changeset 21c5b3f73fb11fb0d3239971f72e8f0574a07245 by Miss Islington (bot) in branch '3.10': bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468) https://github.com/python/cpython/commit/21c5b3f73fb11fb0d3239971f72e8f0574a07245

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +29868 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/31755 ___ Python tracker ___

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +29869 pull_request: https://github.com/python/cpython/pull/31756 ___ Python tracker ___

[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 36dd7396fcd26d8bf9919d536d05d7000becbe5b by Ma Lin in branch 'main': bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468) https://github.com/python/cpython/commit/36dd7396fcd26d8bf9919d536d05d7000becbe5b --

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-11-08 Thread Ma Lin
Ma Lin added the comment: Serhiy Storchaka: Sorry, I found `zipfile` module also has this bug, fixed in PR29468. This bug was reported & fixed by GitHub user `marcoffee` firstly, so I list him as a co-author, his work: https://github.com/animalize/pyzstd/issues/4 The second commit fixes an

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-11-08 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +27721 pull_request: https://github.com/python/cpython/pull/29468 ___ Python tracker ___ ___

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 01858fbe31e8e0185edfbd3f10172f7c61391c9d by Miss Islington (bot) in branch '3.10': bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) (GH-26845)

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Ma Lin. -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8bc26d8c9d092840054f57f9b4620de0d40d8423 by Ma Lin in branch '3.9': bpo-44439: BZ2File.write()/LZMAFile.write() handle length correctly (GH-26846) https://github.com/python/cpython/commit/8bc26d8c9d092840054f57f9b4620de0d40d8423 --

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +25427 pull_request: https://github.com/python/cpython/pull/26846 ___ Python tracker ___ ___

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bc6c12c72a9536acc96e7b9355fd69d1083a43c1 by Ma Lin in branch 'main': bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) https://github.com/python/cpython/commit/bc6c12c72a9536acc96e7b9355fd69d1083a43c1

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25426 pull_request: https://github.com/python/cpython/pull/26845 ___ Python tracker

[issue44439] stdlib wrongly uses len() for bytes-like object

2021-06-21 Thread Ma Lin
Ma Lin added the comment: I am checking all the .py files in `Lib` folder. hmac.py has two len() bugs: https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L212 https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L214 I think PR 26764 is prepared, it fixes the len() bugs in