Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
pablogsal merged 1 commit into
python:masterpython/cpython:masterfrom
isidentical:bpo-38870-doc-warnsisidentical/cpython:bpo-38870-doc-warnsCopy head branch name to clipboard
Jun 28, 2020
Merged

bpo-38870: Extend subject of ast.unparse warnings#21053
pablogsal merged 1 commit into
python:masterpython/cpython:masterfrom
isidentical:bpo-38870-doc-warnsisidentical/cpython:bpo-38870-doc-warnsCopy head branch name to clipboard

Conversation

@isidentical

@isidentical isidentical commented Jun 22, 2020

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.