Python 3.10 came out last week.
The most interesting feature included is PEP 622 -- Structural Pattern Matching , similar to Scheme's
The most interesting feature *not* included was PEP 563 -- Postponed Evaluation of Annotations, which was slated for inclusion but was pushed to 3.11 to sort out some details regarding libraries like Pydantic that rely on reflection on declared types.
#python #python310 #python3100
The most interesting feature included is PEP 622 -- Structural Pattern Matching , similar to Scheme's
(match)
, but a bit less powerful and spelled in Python. That's worth an #HPREp.The most interesting feature *not* included was PEP 563 -- Postponed Evaluation of Annotations, which was slated for inclusion but was pushed to 3.11 to sort out some details regarding libraries like Pydantic that rely on reflection on declared types.
#python #python310 #python3100