[issue45235] argparse does not preserve namespace with subparser defaults

2021-12-21 Thread Frost Ming
Frost Ming added the comment: Per the review comments of @jiasli, I worked out a second PR to fix this issue. This fix has less side-effect and better backward compatibility. I will leave the two PRs open. Any feedback is welcome. - Frost

[issue45235] argparse does not preserve namespace with subparser defaults

2021-12-21 Thread Frost Ming
Change by Frost Ming : -- pull_requests: +28441 pull_request: https://github.com/python/cpython/pull/30219 ___ Python tracker <https://bugs.python.org/issue45

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-22 Thread Frost Ming
Frost Ming added the comment: Hi, I noticed this bug because of the regression of Python 3.9.8. And I proposed a better approach in PR 29574. Maybe the folks here can have a look. Thanks - Frost -- ___ Python tracker <https://bugs.python.

[issue45235] argparse does not preserve namespace with subparser defaults

2021-11-16 Thread Frost Ming
Change by Frost Ming : -- nosy: +Frost Ming nosy_count: 10.0 -> 11.0 pull_requests: +27818 pull_request: https://github.com/python/cpython/pull/29574 ___ Python tracker <https://bugs.python.org/issu

[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Frost Ming
Change by Frost Ming : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue41406> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Frost Ming
New submission from Frost Ming : The following snippet behaves differently between Windows and POSIX. import subprocess import time p = subprocess.Popen("ls -l", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print(p.stdout.read(1)) # read 1 byte print(p.c