[issue37687] Invalid regexp should rise exception

2019-07-25 Thread Matthew Barnett
Matthew Barnett added the comment: For historical reasons, if it isn't valid as a repeat then it's a literal. This is true in other regex implementations, and is by no means unique to the re module. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue37687] Invalid regexp should rise exception

2019-07-25 Thread belegnar
New submission from belegnar : `re.error` should be rised on `re.compile("string{data}")` because manual says only numbers are valid within `{}` -- components: Regular Expressions messages: 348458 nosy: belegnar, ezio.melotti, mrabarnett priority: normal severity: normal status: open t