Skip to content

Conversation

@ambv
Copy link
Contributor

@ambv ambv commented Mar 10, 2017

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
Copy link
Contributor Author

ambv commented Mar 10, 2017

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
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
Copy link
Contributor Author

ambv commented Mar 11, 2017

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
Copy link
Contributor Author

ambv commented Mar 26, 2017

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
Copy link

Daenyth commented May 20, 2017

@ambv any update on this?

@ambv
Copy link
Contributor Author

ambv commented May 23, 2017

@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.

5 participants