How to handle python for loops #467
maximiliankaul
started this conversation in
General
Replies: 1 comment
-
Just discussed this with oxisto: I will look into extending the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure how to best map python for loops to CPG. Let us first consider the simple case:
The
item
can either be a previously defined Variable (and thus aDeclaredReferenceExpression
in the CPG or a new variable (and thus aVariableDeclaration
). Correct?Python for loops get a bit trickier than this (https://docs.python.org/3/library/ast.html#ast.For), but I'm right now stuck with how to model the simple case
item
as in the example above...Any ideas @oxisto @konradweiss
Beta Was this translation helpful? Give feedback.
All reactions