Skip to content

bpo-38870: Extend subject of ast.unparse warnings#21053

Merged
pablogsal merged 1 commit intopython:masterfrom
isidentical:bpo-38870-doc-warns
Jun 28, 2020
Merged

bpo-38870: Extend subject of ast.unparse warnings#21053
pablogsal merged 1 commit intopython:masterfrom
isidentical:bpo-38870-doc-warns

Conversation

@isidentical
Copy link
Copy Markdown
Member

@isidentical isidentical commented Jun 22, 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

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
@pablogsal pablogsal merged commit 8df1016 into python:master Jun 28, 2020
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @isidentical for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Copy Markdown
Contributor

Sorry @isidentical and @pablogsal, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 8df1016e2ef8c0a9f4d15bf7894c284295c99d9f 3.9

pablogsal pushed a commit to pablogsal/cpython that referenced this pull request 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]>
@bedevere-bot
Copy link
Copy Markdown

GH-21191 is a backport of this pull request to the 3.9 branch.

pablogsal added a commit that referenced this pull request Jun 28, 2020
…H-21191)

- 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 the recursive unparsing aspect of ast.unparse
(cherry picked from commit 8df1016)
fasih pushed a commit to fasih/cpython that referenced this pull request Jun 29, 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
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.

5 participants