Honor added the comment:

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 <rep...@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 <rep...@bugs.python.org>
> <http://bugs.python.org/issue28633>
> _______________________________________
>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28633>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to