[issue38372] Undefined behavior when changing dict while iterating it

2019-10-04 Thread Беатрис Бонева
New submission from Беатрис Бонева : When changing a dict while iterating through it by removing one key and inserting other which is calculated based on the old one, the dict is changed unexpectedly. The following function: ``` def test(d: dict): for i in d: d[i+1] = d.pop(i

[issue31610] Use select.poll instead of select.select in SocketServer.BaseServer.serve_forever

2017-09-27 Thread Беатрис Бонева
New submission from Беатрис Бонева <beatrisvbon...@gmail.com>: The select function does not work for file descriptors with number >= 1024. It has FD_SETSIZE limit (see https://stackoverflow.com/questions/7976388/increasing-limit-of-fd-setsize-and-select#7977082). So, serve_forever w