You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mypyc] feat: extend get_expr_len to try constant_fold_expr
get_expr_len currently support StrExpr, BytesExpr, and string-type Final values
constant_fold_expr already has the code to parse values from all of these, so we can deduplicate code by using it
It's able to parse a few more Expressions than our existing implementation, and allows get_expr_length to automatically benefit from future constant-folding enhancements
0 commit comments