This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Stone
Recipients Stone, eric.smith, ned.deily, serhiy.storchaka, zach.ware
Date 2016-11-07.19:45:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAEEPhYb967cmuJtxX3ZxRRT2jDGADpOTreBUww_B+6Hjy21Tsw@mail.gmail.com>
In-reply-to <1478545697.37.0.207457401429.issue28633@psf.upfronthosting.co.za>
Content
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>
> _______________________________________
>
History
Date User Action Args
2016-11-07 19:45:28Stonesetrecipients: + Stone, eric.smith, ned.deily, zach.ware, serhiy.storchaka
2016-11-07 19:45:27Stonelinkissue28633 messages
2016-11-07 19:45:27Stonecreate