Bug with raw literals?
On cloud.sagemath, the following is interpreted as an empty string
r"""\
"""
According to the python docs, Section 2.4.1 of the language specification:: "Note also that a single backslash followed by a newline is interpreted as those two characters as part of the literal, not as a line continuation."
Is this a bug? Or am I missing something?
Apparently it only happens on the first line. The following works fine.
On cloud.sagemath the output for me is:
'\\\n'
, however on my local sage and sagecell the output is''
. That is a bit strange.I'm on cloud.sagemath.com, running a Jupyter notebook, running the Python 2 kernel. I tried changing to Python 3, but to no avail.
On cloud.sagemath it works in a sage worksheet, but not a Jupyter notebook.