-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed
Labels
Description
Documentation URL
No response
Description
Apparently this is expected to fail:
import re
# this works
re.compile('^(?:a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v)$')
# this fails
re.compile('^(?:a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w)$')
but at least the error could hint that's because there are too many operations to handle, instead of:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: error in regex
'cause there is no error, strictly speaking, in that regex, it's a hard (default) limitation on MicroPython side.
Thanks.
Code of Conduct
Yes, I agree