You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a bit frustrating not to be able to catch
exceptions raised by re.compile with just the re
module. The fact that sre_constants.error is
raised is a bit too much implementation showing
through, IMO.
Anyway, I suggest a exception be added to the re
module that subclasses sre_constants.error for
backwards compatibility. So users can simply
import re and catch re.error instead of having to
import re and sre_constants and catch
sre_constants.error.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: