[issue41227] minor typo in asyncio transport protocol

2020-07-07 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch nosy: +ys19991 nosy_count: 4.0 -> 5.0 pull_requests: +20529 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21384 ___ Python tracker <https://bugs.python.org/i

[issue41241] Unnecessary Type casting in 'if condition'

2020-07-08 Thread Wansoo Kim
New submission from Wansoo Kim : Hello! When using 'if syntax', casting condition to bool type is unnecessary. Rather, it only occurs overhead. https://github.com/python/cpython/blob/b26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68/Lib/asyncio/futures.py#L118 If you look at the link above

[issue41241] Unnecessary Type casting in 'if condition'

2020-07-08 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20544 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21396 ___ Python tracker <https://bugs.python.org/issu

[issue41242] When concating strings, I think it is better to use += than join the list

2020-07-08 Thread Wansoo Kim
New submission from Wansoo Kim : Hello I think it's better to use += than list.join() when concating strings. This is more intuitive than other methods. Also, I personally think it is not good for one variable to change to another type during runtime. https://github.com/python/cpython

[issue41242] When concating strings, I think it is better to use += than join the list

2020-07-08 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20545 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21397 ___ Python tracker <https://bugs.python.org/issu

[issue41244] Change to use str.join() instead of += when concatenating string

2020-07-08 Thread Wansoo Kim
New submission from Wansoo Kim : https://bugs.python.org/issue41242 According to BPO-41242, it is better to use join than += when concatenating multiple strings. https://github.com/python/cpython/blob/b26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68/Lib/asyncio/queues.py#L82 However, the link above

[issue41244] Change to use str.join() instead of += when concatenating string

2020-07-08 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20546 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21398 ___ Python tracker <https://bugs.python.org/issu

[issue41242] When concating strings, I think it is better to use += than join the list

2020-07-08 Thread Wansoo Kim
Wansoo Kim added the comment: Well... to be honest, I'm a little confused. bpo-41244 and this issue are completely opposite. I'm not used to Python community yet because it hasn't been long since I joined it. You're saying that if a particular method is not dramatically

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-08 Thread Wansoo Kim
Wansoo Kim added the comment: May I solve this issue? -- nosy: +ys19991 ___ Python tracker <https://bugs.python.org/issue41199> ___ ___ Python-bugs-list mailin

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-09 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20562 pull_request: https://github.com/python/cpython/pull/21413 ___ Python tracker <https://bugs.python.org/issue41

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2020-07-09 Thread Wansoo Kim
Wansoo Kim added the comment: Can I solve this problem? -- nosy: +ys19991 ___ Python tracker <https://bugs.python.org/issue37894> ___ ___ Python-bugs-list mailin

[issue37578] Change Glob: Allow Recursion for Hidden Files

2020-07-09 Thread Wansoo Kim
Wansoo Kim added the comment: Can you reproduce this bug? I was able to find the hidden file by recursive search by excuting the code below. ``` from glob import glob hidden = glob('**/.*') print(hidden) ``` -- nosy: +ys19991 ___ Pyth

[issue41264] Do not use the name of the built-in function as a variable.

2020-07-09 Thread Wansoo Kim
New submission from Wansoo Kim : Using the name of the built-in function as a variable can cause unexpected problems. ``` # example type = 'Hello' ... type('Happy') Traceback (most recent call last): File "", line 1, in TypeError: 'str' obje

[issue41264] Do not use the name of the built-in function as a variable.

2020-07-10 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20574 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21427 ___ Python tracker <https://bugs.python.org/issu

[issue41264] Do not use the name of the built-in function as a variable.

2020-07-10 Thread Wansoo Kim
Change by Wansoo Kim : -- pull_requests: +20575 pull_request: https://github.com/python/cpython/pull/21428 ___ Python tracker <https://bugs.python.org/issue41

[issue40982] copytree example in shutil

2020-07-10 Thread Wansoo Kim
Wansoo Kim added the comment: Can I solve this issue? -- nosy: +ys19991 ___ Python tracker <https://bugs.python.org/issue40982> ___ ___ Python-bugs-list mailin

[issue41284] High Level API for json file parsing

2020-07-12 Thread Wansoo Kim
New submission from Wansoo Kim : Many Python users use the following snippets to read Json File. ``` with oepn(filepath, 'r') as f: data = json.load(f) ``` I suggest providing this snippet as a function. ``` data = json.read(filepath) ``` Reading Json is very frequent task

[issue41284] High Level API for json file parsing

2020-07-12 Thread Wansoo Kim
Change by Wansoo Kim : -- keywords: +patch pull_requests: +20601 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21453 ___ Python tracker <https://bugs.python.org/issu