You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning. Although this will eventually become a SyntaxError, that will not be for several Python releases. (Contributed by Emanuel Barry in bpo-27364.)
While not critical at the moment, it would be good to avoid this so that warnings don't pop up. And this will later become a SyntaxError.
A quick google search shows there were similar issues in other libraries: pallets/flask#3056
The text was updated successfully, but these errors were encountered:
I was surprised at first, but it makes sense that the interpreter is actually interpreting these strings (available through doc). I also learned that there is such a thing as a raw docstring (r"""..."""), which may be easier on the eye in this case.
When I run pytest on some Spark (2.4.3) application, I get a warning from py4j which says:
On digging into the zip file, i found this is happening due to the
\*
in the docstring at:https://github.com/bartdag/py4j/blob/7d931a9c41d122ea9cfdc76a322f6706c45eedda/py4j-python/src/py4j/java_gateway.py#L2062
This happens with Python 3.6 as mentioned in the deprecated behavior release notes:
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
While not critical at the moment, it would be good to avoid this so that warnings don't pop up. And this will later become a SyntaxError.
A quick google search shows there were similar issues in other libraries:
pallets/flask#3056
The text was updated successfully, but these errors were encountered: