We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2c9826 + 1da0f69 commit 3728463Copy full SHA for 3728463
mypyc/irbuild/for_helpers.py
@@ -1211,7 +1211,10 @@ def get_expr_length(expr: Expression) -> int | None:
1211
and expr.node.has_explicit_value
1212
):
1213
return len(expr.node.final_value)
1214
- # TODO: extend this, unrolling should come with a good performance boost
+ # TODO: extend this, passing length of listcomp and genexp should have worthwhile
1215
+ # performance boost and can be (sometimes) figured out pretty easily. set and dict
1216
+ # comps *can* be done as well but will need special logic to consider the possibility
1217
+ # of key conflicts
1218
return None
1219
1220
mypyc/test-data/irbuild-lists.test
@@ -901,4 +901,3 @@ L9:
901
L10:
902
a = r3
903
return 1
904
-
0 commit comments