Eric V. Smith added the comment:
Perhaps we could improve that error message. If Ronald hand't pointed out the
actual problem, it would have taken me a while to figure it out, too.
Maybe "bad character range +-* at position 2: starting character is after
ending character"? Although I'll admi
Ronald Oussoren added the comment:
This is not a bug. You are searching for the character range from "+" to "*",
which is an invalid range because "+" > "*".
--
nosy: +ronaldoussoren
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: crash -> behavior
New submission from Bnaya :
I was writing the following:
re.search('([+-*])', "54 * 83")
And I got the following runtime error:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\bnaya\AppData\Local\Programs\Python\Python37-32\lib\re.py",
line 183, in search
retur