Message280228
Another:
>>> 9,'''Ðؚ%''(r'''%b''''"r'''''
File "<stdin>", line 1
SyntaxError: cannot mix bytes and nonbytes literals
>>> 9,'B''Ðؚ%''(r'''%b''''"r'''
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: incomplete format key
>>> 9,'B''Ðؚ%''(r'''%b''''"r'''F
File "<stdin>", line 1
9,'B''Ðؚ%''(r'''%b''''"r'''F
^
SyntaxError: invalid syntax
>>> 9,'B''Ðؚ%''(r'''%b''''"r'''F'
File "<stdin>", line 1
9,'B''Ðؚ%''(r'''%b''''"r'''F'
^
SyntaxError: EOL while scanning string literal
>>>
On Mon, Nov 7, 2016 at 10:08 PM, Eric V. Smith <report@bugs.python.org>
wrote:
>
> Eric V. Smith added the comment:
>
> Works:
>
> >>> f'' b''
> File "<stdin>", line 1
> SyntaxError: cannot mix bytes and nonbytes literals
>
> Fails:
>
> >>> b'' f''
> Segmentation fault
> $
>
> Regular strings work:
> >>> '' b''
> File "<stdin>", line 1
> SyntaxError: cannot mix bytes and nonbytes literals
> >>> b'' ''
> File "<stdin>", line 1
> SyntaxError: cannot mix bytes and nonbytes literals
> >>>
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28633>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2016-11-07 19:45:28 | Stone | set | recipients:
+ Stone, eric.smith, ned.deily, zach.ware, serhiy.storchaka |
2016-11-07 19:45:27 | Stone | link | issue28633 messages |
2016-11-07 19:45:27 | Stone | create | |
|