Python 3.8 introduces assignment expressions, described in PEP 572. Is there a way to test this new feature in Python 3.7.x?
In the past, new language features have been backported to earlier Python versions using __future__
imports.
- Is there a
__future__
import for assignment expressions? - If yes, what is the feature name?
- If no, are there plans to add it? (3.7 is going to be around for a while)