[issue45975] Simplify some while-loops with walrus operator

2022-02-02 Thread Nick Drozd
Change by Nick Drozd : -- keywords: +patch pull_requests: +29267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31083 ___ Python tracker <https://bugs.python.org/issu

[issue45975] Simplify some while-loops with walrus operator

2021-12-04 Thread Nick Drozd
Nick Drozd added the comment: > Is there any measurable performance benefit from this? I wouldn't expect any performance changes either way. If it worked out to be slower, that would an unpleasant surprise and a good reason to reject this change. If it worked out to be faster, w

[issue45975] Simplify some while-loops with walrus operator

2021-12-03 Thread Nick Drozd
New submission from Nick Drozd : The following pattern occurs a few times in the codebase: while 1: data = conn.recv(blocksize) if not data: break ... There is an unbounded while loop in which some kind of input is read. If the input is there, it is processed

[issue34214] Pylint recusion stack overflow abort

2018-07-24 Thread Nick Drozd
New submission from Nick Drozd : In certain very, very specific circumstances, Pylint can cause the interpreter to abort with a stack overflow error. I've seen this issue on 3.5, 3.6, and 3.8 (I assume it affects 3.7 as well) and on both Mac and Ubuntu. It requires: * 1.7 <= Pyl