Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got a SyntaxError when runing dataklasses.py #8

Closed
zhaoblake opened this issue Jan 4, 2022 · 3 comments
Closed

I got a SyntaxError when runing dataklasses.py #8

zhaoblake opened this issue Jan 4, 2022 · 3 comments

Comments

@zhaoblake
Copy link

zhaoblake commented Jan 4, 2022

exec(func(names), globals(), d := {}
SyntaxError: invalid syntax

My Python interpreter version is 3.72, is ":=" a new syntax featrue of later version?

@dabeaz
Copy link
Owner

dabeaz commented Jan 4, 2022

:= is a feature of Python 3.8.

@zhaoblake
Copy link
Author

:= is a feature of Python 3.8.

got it, many thanks!

@davidlatwe
Copy link

I have made my fork to work with Python 3.6+, if you're interested :)
https://github.com/davidlatwe/dataklasses

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

No branches or pull requests

3 participants