Skip to content

[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053)#21191

Merged
pablogsal merged 1 commit intopython:3.9from
pablogsal:backport-8df1016-3.9
Jun 28, 2020
Merged

[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053)#21191
pablogsal merged 1 commit intopython:3.9from
pablogsal:backport-8df1016-3.9

Conversation

@pablogsal
Copy link
Copy Markdown
Member

@pablogsal pablogsal commented Jun 28, 2020

  • Mention that some compiler optimizations might not roundtrip
    exactly (such as constant tuples and frozensets).

  • Add a warning about it might raise RecursionError on very
    complex expressions due to recursive unparsing aspect of ast.unparse
    (cherry picked from commit 8df1016)

Co-authored-by: Batuhan Taskaya [email protected]

https://bugs.python.org/issue38870

- Mention that some compiler optimizations might not roundtrip
exactly (such as constant tuples and frozensets).

- Add a warning about it might raise RecursionError on very
complex expressions due to recursive unparsing aspect of ast.unparse
(cherry picked from commit 8df1016)

Co-authored-by: Batuhan Taskaya <[email protected]>
@isidentical
Copy link
Copy Markdown
Member

isidentical commented Jun 28, 2020

I was about to backport but looks like you're way faster than me 😊

@pablogsal
Copy link
Copy Markdown
Member Author

I was about to backport but looks like you're way faster than me

😉

@pablogsal pablogsal merged commit 6e39999 into python:3.9 Jun 28, 2020
@pablogsal pablogsal deleted the backport-8df1016-3.9 branch June 28, 2020 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants