Skip to content

simplify Python 3.7 bare string workaround - #11158

Closed
minrk wants to merge 2 commits into
ipython:masterfrom
minrk:370-resingle
Closed

minrk wants to merge 2 commits into
ipython:masterfrom
minrk:370-resingle

Conversation

@minrk

@minrk minrk commented May 25, 2018

Copy link
Copy Markdown
Member

recompile with 'single' instead of reaching in and modifying the AST

possibly simpler alternative to #11135 for #11133

recompile with 'single' instead of reaching in and modifying the AST
@Carreau

Carreau commented May 25, 2018

Copy link
Copy Markdown
Member

The problem with this is if we have any further downstream AST transformers looking at the first node then this won't work as the first node will be gone in multiline statements.

@takluyver

Copy link
Copy Markdown
Member

It looks like we'll be able to remove these workarounds, as the consensus seems to be in favour of CPython going back to how this worked in 3.6: https://bugs.python.org/issue32911 . We should keep an eye out for changes in 3.8, though.

@Carreau

Carreau commented Jul 28, 2018 •

Copy link
Copy Markdown
Member

Closing as CPython removed the change to AST.

@Carreau Carreau closed this Jul 28, 2018
@Carreau Carreau added this to the no action milestone Sep 7, 2018
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.

3 participants