I found this while working to optimize the frozen files in the micropython stubs,
so I have not actully tried to use it , it is just that none of the Python linters or stubgens are able to condone or process this syntax.
"\Z" is not an allowed syntax, my assumption is that it should be "\Z"
|
# Original patterns is undefined, see http://bugs.python.org/issue21464 |
|
return "(?ms)" + res + "\Z" |
"
Also based on the referralsource : http://bugs.python.org/issue21464 which mentions : 'a\\ b\\Z(?ms)'
Another similar error is in :
|
punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" |
I found this while working to optimize the frozen files in the micropython stubs,
so I have not actully tried to use it , it is just that none of the Python linters or stubgens are able to condone or process this syntax.
"\Z" is not an allowed syntax, my assumption is that it should be "\Z"
micropython-lib/python-stdlib/fnmatch/fnmatch.py
Lines 133 to 134 in 0400c56
Also based on the referralsource : http://bugs.python.org/issue21464 which mentions :
'a\\ b\\Z(?ms)'Another similar error is in :
micropython-lib/python-stdlib/string/string/__init__.py
Line 9 in 0400c56