[issue45735] Promise the long-time truth that `args=list` works

2022-01-26 Thread Yu Zhao
Yu Zhao added the comment: I'd like to work on this issue recently if it's still needed. According to suggestions in PR:https://github.com/python/cpython/pull/29437, I will: * Add doc example for Thread function; * Add some test cases for checking the validity of list args; *

[issue40077] Convert static types to heap types: use PyType_FromSpec()

2022-01-25 Thread Yu Zhao
Change by Yu Zhao : -- nosy: +CharlieZhao nosy_count: 14.0 -> 15.0 pull_requests: +29065 pull_request: https://github.com/python/cpython/pull/30884 ___ Python tracker <https://bugs.python.org/issu

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2022-01-10 Thread Yu Zhao
Change by Yu Zhao : -- nosy: +CharlieZhao nosy_count: 24.0 -> 25.0 pull_requests: +28723 pull_request: https://github.com/python/cpython/pull/30522 ___ Python tracker <https://bugs.python.org/issue1

[issue14645] Generator does not translate linesep characters in certain circumstances

2014-10-02 Thread Yu Zhao
Yu Zhao added the comment: Ack (Per rfc2046 4.1.1). Since the _writeBody is set to _handle_text when no proper handler exists, the problem should be fixed by adding a binary body handler to BytesGenerator. Will create a separate issue to track the problem

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2014-10-02 Thread Yu Zhao
Yu Zhao added the comment: BytesParser.parse uses TextIOWrapper which by default translates universal newlines to '\n'. This breaks binary payload. Fix the problem by disabling the translation. -- components: +email -Library (Lib) nosy: +yu.z...@getcwd.com Added

[issue14645] Generator does not translate linesep characters in certain circumstances

2014-10-02 Thread Yu Zhao
Yu Zhao added the comment: This at least shouldn't be done for the BytesGenerator - it breaks binary data integrity. IMO, doing it for the string Generator is not necessary either. The linesep is a policy regarding to MIME syntax. It shouldn't be applied to the payload. Imagine