Again, works for me (switching from 3.11 branch to 3.10 branch):
(python39) cpython% ./python
Python 3.10.5+ (heads/3.10:9cc0afcb87, Jun 8 2022, 06:52:35) [Clang 10.0.0 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'3.10.5+ (heads/3.10:9cc0afcb87, Jun 8 2022, 06:52:35) [Clang 10.0.0 ]'
I suggest you open an issue on GitHub and provide as many details as you can (platform, configure flags, etc) to help the experts figure out what’s wrong.