Files
codeql/python/ql/lib/change-notes/2025-12-09-python-support-relaxed-except-syntax.md

433 B

category
category
feature
  • The extractor now supports the new, relaxed syntax except A, B, C: ... (which would previously have to be written as except (A, B, C): ...) as defined in PEP-758. This may cause changes in results for code that uses Python 2-style exception binding (except Foo, e: ...). The more modern format, except Foo as e: ... (available since Python 2.6) is unaffected.