[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-09 Thread JIanqiu Tao
Change by JIanqiu Tao : -- nosy: +zkonge ___ Python tracker <https://bugs.python.org/issue43438> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-09 Thread JIanqiu Tao
Change by JIanqiu Tao : -- nosy: +zkonge ___ Python tracker <https://bugs.python.org/issue43439> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41497] Potential UnicodeDecodeError in dis

2020-08-06 Thread JIanqiu Tao
JIanqiu Tao added the comment: I searched the whole Lib folder and find a lot of code uses "open(filename, 'r')" without handling default encoding. Should we open another issue for these problem? -- ___ Python tracker <https://bu

[issue41497] Potential UnicodeDecodeError in dis

2020-08-06 Thread JIanqiu Tao
Change by JIanqiu Tao : -- keywords: +patch pull_requests: +20902 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21757 ___ Python tracker <https://bugs.python.org/issu

[issue41497] Potential UnicodeDecodeError in dis

2020-08-06 Thread JIanqiu Tao
New submission from JIanqiu Tao : A potential UnicodeDecodeError could be raised when run "python -m dis" on non-utf8 encoding environment. Assume there is a file named "a.py", and contains "print('喵')", then save with UTF8 encoding. Run "python -

[issue41229] Asynchronous generator memory leak

2020-07-07 Thread JIanqiu Tao
New submission from JIanqiu Tao : The resource used by asynchronous generator can't be released properly when works with "asend" method. Besides, in Python 3.7-, a RuntimeError was raised when asyncio.run complete, but the message is puzzling: RuntimeError: can't send non-

[issue41162] Clear audit hooks after destructors

2020-06-29 Thread JIanqiu Tao
Change by JIanqiu Tao : -- pull_requests: +20374 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21222 ___ Python tracker <https://bugs.python.org/issu

[issue41162] Clear audit hooks after destructors

2020-06-29 Thread JIanqiu Tao
JIanqiu Tao added the comment: Patch attached below works well, but with less functionality for users' audit hook. Pure Python audit hook implement looks safe enough. Should we need call _PySys_ClearAuditHooks earlier for more functionality? -- keywords: +patch nosy: +zkonge Added

[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-25 Thread JIanqiu Tao
Change by JIanqiu Tao : -- keywords: +patch pull_requests: +16860 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17378 ___ Python tracker <https://bugs.python.org/issu

[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-24 Thread JIanqiu Tao
JIanqiu Tao added the comment: "--no-dual-stack" seems to be a better argument name. "--ipv6-only" lead to ambiguity in a IPv4 only environment. -- ___ Python tracker <https://bug

[issue38907] Add IPv6 Dual-Stack control for http.server

2019-11-24 Thread JIanqiu Tao
New submission from JIanqiu Tao : In Python 3.8+, when we run the http.server in a PC that support IPv6, it will bind IPv6 socket normally. On Linux or some other platforms, it also bind IPv4, that's pretty good, but on Windows, it doesn't work and "--bind 0.0.0.0" have to b