Skip to content

Conversation

@hroncok
Copy link
Contributor

@hroncok hroncok commented Jul 8, 2020

Fixes #56

hroncok added 2 commits July 8, 2020 20:15
In Python 3.9+, ast.dump() omits optional fields/attributes from the output if
their value is None. Such defaults are defined as class attributes.

See https://bugs.python.org/issue36287
And python/cpython#18843

This patch does not change the output on previous Python versions,
because the class attributes are missing there.

Fixes simonpercivall#56
@chombourger
Copy link

Tested on top of v1.6.3 using Debian 11 and it seems good. Any chance for this PR being looked at and merged into master for a 1.6.4 being rolled out in a near future?

Copy link

@chombourger chombourger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test issues with Python 3.9

3 participants