[issue35968] lib2to3 cannot parse rf''

2019-02-11 Thread Ned Deily
Ned Deily added the comment: @xtreak, I concur. While it would have better to originally fix this in the release where f strings first appeared, the window to do that has closed. Sorry! -- nosy: +ned.deily resolution: -> duplicate stage: -> resolved status: open -> closed superse

[issue35968] lib2to3 cannot parse rf''

2019-02-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The reported example works fine on master and 3.7 . The related issue's fix was not backported to 3.6 . 3.6 is in security fixes only mode. So upgrading to 3.7 will help and I propose closing this as a duplicate of issue33266 . ➜ cpython git:(maste

[issue35968] lib2to3 cannot parse rf''

2019-02-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems related : issue33266 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue35968] lib2to3 cannot parse rf''

2019-02-11 Thread Dylan Lloyd
New submission from Dylan Lloyd : ``` #!/usr/bin/env python # -*- coding: utf-8 -*- regex_format = rf'' ``` ``` yapf poc.py ``` ``` Traceback (most recent call last): File "lib/python3.6/site-packages/yapf/yapflib/pytree_utils.py", line 115, in ParseCodeToTree tree = parser_driver.pars