[issue34315] Regex not evalauated correctly

noah report at bugs.python.org
Sat Feb 23 00:40:36 EST 2019


noah <ngwood111 at gmail.com> added the comment:

I was able to recreate the 'bad' output on Linux using 'bad' input.

The issue is caused when you misspell WHERE, regex is looking for the exact word "WHERE", any lowercase (where), multicase (WHeRe), or misspelling (WERE) is going to cause it to return None because regex didn't find a matching substring.

I also on a whim tested out a bunch of encodings before realizing it didn't run on bytes objects anyways, so really the only way to get this output is to misspell the input. I think this problem should probably be closed as it's not a bug with the python core.

----------
nosy: +ngwood111
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34315>
_______________________________________


More information about the Python-bugs-list mailing list