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.
1 parent 84be7fa commit 1dafc6bCopy full SHA for 1dafc6b
cstruct/c_expr.py
@@ -126,6 +126,7 @@ def eval_call(node) -> Union[int, float]:
126
ast.Name: eval_get,
127
ast.Call: eval_call,
128
Constant: lambda node: node.value,
129
+ ast.Str: lambda node: node.s, # python < 3.8
130
# and/or
131
ast.BoolOp: lambda node: OPS[type(node.op)](node), # and/or operator
132
ast.And: lambda node: all(eval_node(x) for x in node.values), # && operator
0 commit comments