py3.11¶
Build the docs with Python 3.11.
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=11, micro=0, releaselevel='final', serial=0)
>>> sys.version
'3.11.0 (main, Oct 26 2022, 10:47:23) [GCC 11.2.0]'
>>> # Use Structural Pattern Matching
>>> # https://www.python.org/dev/peps/pep-0636
>>> import random
>>> match random.choice(['test', 'quit', 'welcome']):
... case 'test':
... print('TEST')
... case 'quit':
... print('QUIT')
... case 'welcome':
... print('WELCOME')
...
QUIT
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 11, 8, 17, 36, 19, 138792)