mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
2.0 KiB
2.0 KiB
6.0.0
Breaking Changes
- All modules that depend on the points-to analysis have now been removed from the top level
python.qllmodule. To access the points-to functionality, import the newLegacyPointsTomodule. This also means that some predicates have been removed from various classes, for instanceFunction.getFunctionObject(). To access these predicates, import theLegacyPointsTomodule and use theFunctionWithPointsToclass instead. Most cases follow this pattern, but there are a few exceptions:- The
getLiteralObjectmethod onImmutableLiteralsubclasses has been replaced with a predicategetLiteralObject(ImmutableLiteral l)in theLegacyPointsTomodule. - The
getMetricsmethod onFunction,Class, andModulehas been removed. To access metrics, importLegacyPointsToand use the classesFunctionMetrics, etc. instead.
- The
New Features
- The extractor now supports the new, relaxed syntax
except A, B, C: ...(which would previously have to be written asexcept (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. - The Python extractor now supports template strings as defined in PEP-750, through the classes
TemplateStringandJoinedTemplateString.
Minor Analysis Improvements
- When a code-scanning configuration specifies the
paths:and/orpaths-ignore:settings, these are now taken into account by the Python extractor's search for YAML files. - The
compression.zstdlibrary (added in Python 3.14) is now supported by thepy/decompression-bombquery. - Added taint flow model and type model for
urllib.parse. - Remote flow sources for the
python-socketiopackage have been modeled. - Additional models for remote flow sources for
tornado.websocket.WebSocketHandlerhave been added.