python regex does or does not give an error depending on which REPL is used Consider the following python code using the regex library re