Closed lolo26130 closed 3 years ago
Thanks for reporting this.
The ability to specify an =
sign after a variable in an fstring is a Python 3.8 feature. See f-strings support = for self-documenting expressions and debugging. Pynsource will have to be running under Python 3.8 to handle this syntax.
Pynsource release binaries currently run under Python 3.7.
Running the latest master of Pynsource from source under Python 3.8 will allow you to parse this 3.8 syntax. I hope to update the Pynsource release binaries to Python 3.8 in the next release.
can't process python3.8 files containing f-strings with {var=} syntax i.e. :
!/usr/bin/env python3
variable = 'a' print(f'{variable=}')