[issue42469] Space in re's {min, max} should raise an error, rather than fail silently

2020-11-25 Thread Reuven Lerner
New submission from Reuven Lerner : I just discovered that having whitespace inside of {min,max} causes the regexp to report no matches, rather than an error: >>> import re >>> s = 'abbccce' >>> re.findall('d{1, 4}', s) [] >>> re.findall('d{1,4}', s

[issue39225] Python should warn when a global/local has the same name as a builtin

2020-01-05 Thread Reuven Lerner
New submission from Reuven Lerner : Newcomers to Python are often frustrated and surprised when they define variables such as "sum" and "list", only to discover that they've masked access builtins of the same name. External code checkers do help, but those don't work in J