[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Saaket Prakash
Saaket Prakash added the comment: But on windows with the python.org installer, the behavior is same for both both a2 and a3. # With a3 installed > py -m venv venv_a3 > venv_a3/Scripts/python -c "import sys,os.path; print(e := > sys._base_executable); print(os.path.exists(e)

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-11 Thread Saaket Prakash
Saaket Prakash added the comment: I tried the same stuff as nedbat on WSL2, and I see similar change in the path of sys._base_executable (though I get a different "base" path on a3, so the path exists even there). $ ~/.pyenv/versions/3.11.0a2/bin/python -m venv venv_a2 $ ~/.pyen

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-09 Thread Saaket Prakash
Saaket Prakash added the comment: Treating Final as ClassVar by default may be fine, but it should not throw when using default_factory like ClassVar does. There are valid uses of Final with instance variable when one would want the value to be unchanged after the `__init__` runs