Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 28, 2020

Conversation

pablogsal
Copy link
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 batuhanosmantaskaya@gmail.com

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 <batuhanosmantaskaya@gmail.com>
@isidentical
Copy link
Member

isidentical commented Jun 28, 2020

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

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