[issue27947] Bug of python interpreter

cfgbd report at bugs.python.org
Fri Sep 2 22:47:54 EDT 2016


New submission from cfgbd:

In python shell, I typed words and got result as follows. It seems that the use of 'r' before a literal string may cause an error that the an odd '\' at the end of literal string blocked the quote.

>>> rb'abc\\\'
SyntaxError: EOL while scanning string literal
>>> rb'abc\\'
b'abc\\\\'
>>> br'abc\\\ '
b'abc\\\\\\ '
>>> br'abc\\\'
SyntaxError: EOL while scanning string literal
>>> r'\\'
'\\\\'
>>> r'\\\'
SyntaxError: EOL while scanning string literal

----------
messages: 274282
nosy: cfgbd
priority: normal
severity: normal
status: open
title: Bug of python interpreter
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27947>
_______________________________________


More information about the Python-bugs-list mailing list