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

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

Merged
pablogsal merged 1 commit into
python:3.9python/cpython:3.9from
pablogsal:backport-8df1016-3.9pablogsal/cpython:backport-8df1016-3.9Copy head branch name to clipboard
Jun 28, 2020
Merged

[3.9] bpo-38870: Extend subject of ast.unparse warnings (GH-21053)#21191
pablogsal merged 1 commit into
python:3.9python/cpython:3.9from
pablogsal:backport-8df1016-3.9pablogsal/cpython:backport-8df1016-3.9Copy head branch name to clipboard

Conversation

@pablogsal

@pablogsal pablogsal commented Jun 28, 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
    (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

isidentical commented Jun 28, 2020

Copy link
Copy Markdown
Member

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

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