Skip to content

bpo-23894: lib2to3 doesn't recognize rb'...' and f'...'#593

Closed
ambv wants to merge 1 commit into
3.6from
bpo-23894
Closed

bpo-23894: lib2to3 doesn't recognize rb'...' and f'...'#593
ambv wants to merge 1 commit into
3.6from
bpo-23894

Conversation

@ambv

@ambv ambv commented Mar 10, 2017

Copy link
Copy Markdown
Contributor

Note: this doesn't unpack f-strings into the underlying JOINEDSTR AST.

Ideally we'd fully implement JOINEDSTR here but given limited time for 3.6.1 I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings and rb''.

@ambv

ambv commented Mar 10, 2017

Copy link
Copy Markdown
Contributor Author

The AppVeyor failure is unrelated:

TypeError: CreateProcess() argument 8 must be str or None, not _PathLikeObj

Note: this doesn't unpack f-strings into the underlying JOINEDSTR AST.
@ned-deily

Copy link
Copy Markdown
Member

See my comments on http://bugs.python.org/issue23894. In particular, shouldn't there be some tests? Also, please do not push new branches directly to the python/cpython repo. The process as documented is to push proposed changes to your own fork and then make a PR from your fork to python/cpython. See http://cpython-devguide.readthedocs.io/committing.html#working-with-git.

@ned-deily ned-deily requested a review from benjaminp March 10, 2017 22:47
@ambv

ambv commented Mar 11, 2017

Copy link
Copy Markdown
Contributor Author

Alright, agreed this should wait for 3.6.2. In the mean time, I'll add tests. I'm on the fence whether it's worth splitting f'' into separate tokens in lib2to3. It'd make the change more invasive.

@ambv

ambv commented Mar 26, 2017

Copy link
Copy Markdown
Contributor Author

I'll reopen a fresh PR from my own clone.

@ambv ambv closed this Mar 26, 2017
@ambv ambv deleted the bpo-23894 branch March 26, 2017 23:28
@Daenyth

Daenyth commented May 20, 2017

Copy link
Copy Markdown

@ambv any update on this?

@ambv

ambv commented May 23, 2017

Copy link
Copy Markdown
Contributor Author

@Daenyth, done, will be part of 3.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants