Skip to content
New issue

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

DEP: Fix escaped string characters deprecated in Python 3.6. #8382

Merged
merged 1 commit into from
Dec 17, 2016

Conversation

charris
Copy link
Member

@charris charris commented Dec 14, 2016

In Python 3.6 a number of escape sequences that were previously accepted -- for instance "\(" that was translated to "\\(" -- are deprecated. To retain the previous behavior either raw strings must be used or the backslash must be properly escaped itself.

@charris
Copy link
Member Author

charris commented Dec 14, 2016

@pv, @rgommers You may want to also check SciPy for this. It is a bit of a PITA.

@charris
Copy link
Member Author

charris commented Dec 14, 2016

Ideally, pyflakes would test for this.

In Python 3.6 a number of escape sequences that were previously accepted
-- for instance "\(" that was translated to "\\(" -- are deprecated. To
retain the previous behavior either raw strings must be used or the
backslash must be properly escaped itself.
@charris charris merged commit eb8d76e into numpy:master Dec 17, 2016
@charris charris deleted the fix-python-3.6-compat branch December 17, 2016 23:50
@charris charris removed this from the 1.12.0 release milestone Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants