We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When reviewing #5595, I tried typing this:
sage: import re sage: dep_regex = re.compile(r'^ *(?:(?:cimport +([\w\. ,]+))|(?:from +(\w+) +cimport)|(?:include *[\'"]([^\'"]+)[\'"])|(?:cdef *extern *from *[\'"]([^\'"]+)[\'"]))', re.M) ------------------------------------------------------------ File "<ipython console>", line 1 dep_regex = re.compile(r'^ *(?:(?:cimport +([\w\. ,]+))|(?:from +(\w+) +cimport)|(?:include *[\'"]([^\'"]+)[ * BackslashOperator() * '"])|(?:cdef *extern *from *[\'"]([^\'"]+)[\'"]))', re.M) ^ SyntaxError: invalid syntax
Note that the preparser has turned a backslash from the middle of the regular expression into " * BackslashOperator() * ".
" * BackslashOperator() * "
CC: @robertwb
Component: user interface
Keywords: preparser
Issue created by migration from https://trac.sagemath.org/ticket/5821
The text was updated successfully, but these errors were encountered:
It appears that even in raw strings the backslash escapes a potential end quote...
http://docs.python.org/reference/lexical_analysis.html
Sorry, something went wrong.
Attachment: 5821-preparse-raw.patch.gz
Code looks good (and fixes the problem); doctests pass.
Positive review.
Merged in Sage 3.4.2.alpha0.
Cheers,
Michael
williamstein
No branches or pull requests
When reviewing #5595, I tried typing this:
Note that the preparser has turned a backslash from the middle of the regular expression into
" * BackslashOperator() * "
.CC: @robertwb
Component: user interface
Keywords: preparser
Issue created by migration from https://trac.sagemath.org/ticket/5821
The text was updated successfully, but these errors were encountered: