3 ms·
My initial comments: • Does not cover the “raise from” syntax¹. • Does not cover Structural Pattern Matching (the “match” and “case” keywords)². (EDIT: The F
by teddyh 3y ago
My initial comments:
• Does not cover the “raise from” syntax¹.
• Does not cover Structural Pattern Matching (the “match” and “case” keywords)². (EDIT: The FAQ states that it covers Python 3.8, and this feature was added in Python 3.10.)
• In my basic script template I have this, to show warnings by default:
if not sys.warnoptions:
import warnings
warnings.simplefilter("default")
• My basic script template also uses the “-bbI” switches to python on the shebang line.
1. <https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement https://docs.python.org/3/reference/simple_stmts.html#the-ra...>
2. <https://docs.python.org/3/reference/compound_stmts.html#the-match-statement https://docs.python.org/3/reference/compound_stmts.html#the-...>