astunparse
astunparse copied to clipboard
An AST unparser for Python
Re: https://github.com/simonpercivall/astunparse/pull/63 Closes: https://github.com/simonpercivall/astunparse/issues/61
Fixes https://github.com/simonpercivall/astunparse/issues/56
License file clearly states, "PSF-2.0" but https://pypi.org/project/astunparse/ lists "BSD"
The `kind` attribute was added to the Constant expression in AST in Python 3.8. See https://bugs.python.org/issue36280. That means that in Python 3.7's `ast` module, `Constants` _never_ have a kind, so...
Hey @simonpercivall, sorry to come bother you here with that, but maybe you'll have an idea on why it's happening? Basically, upon running `mkdocs serve` in a manually created virtualenv...
Repro: ``` Python 3.9.2 (default, Mar 3 2021, 20:02:32) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import astunparse >>> import...
The unparser for formatted values incorrectly referred to `_fstring_JoinedStr`, which expects a `values` property that `FormattedValue`s don't have. This PR updates to the correct call.
create a file with following contents and name it `target.py`: ```python3 phys_vol_name = "test123" raise RuntimeError(f'Can\'t find the volume group "{phys_vol_name}"') ``` then use this script to parse & unparse...
Hello. In Fedora development version, we have recently updated to Python 3.9.0b1. Here are some test failures we get w/astunparse: ``` $ tox -e py39 py39 develop-inst-noop: .../astunparse py39 installed:...