Skip to content

Commit 76c0113

Browse files
committed
Python: Update change note for 1.22.
1 parent fc59dd6 commit 76c0113

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

change-notes/1.22/analysis-python.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,26 @@
66
### Points-to
77
Tracking of "unknown" values from modules that are absent from the database has been improved. Particularly when an "unknown" value is used as a decorator, the decorated function is tracked.
88

9+
### Loop unrolling
10+
The extractor now unrolls a single iteration of loops that are known to run at least once. This improves analysis in cases like the following
911

10-
### Impact on existing queries.
12+
```python
13+
if seq:
14+
for x in seq:
15+
y = x
16+
y # y is defined here
17+
```
1118

19+
### Better API for function parameter annotations
20+
Instances of the `Parameter` and `ParameterDefinition` class now have a `getAnnotation` method that returns the corresponding parameter annotation, if one exists.
21+
22+
### Improvements to the Value API
23+
The Value API has been extended with classes representing functions, classes, tuples, and other types.
24+
25+
### Other improvements
26+
27+
- Short flags for regexes (e.g. `re.M` for multiline regexes) are now handled correctly.
28+
- Modules with multiple import roots no longer get multiple names.
1229

1330
## New queries
1431

0 commit comments

Comments
 (0)