New submission from Bikram Singh Mehra :
Hi Team,
I was parsing python file using AST module but ran into a situation where the
else statement is not found in the parsed data.
-
Module used is: ast
-
In the parsed data I can see "if" followe
Bikram Singh Mehra added the comment:
Hi Eric,
Thanks for the quick response here,
I have gone through your suggestion but following that I am able to print the
else node data i.e. "print("Negative number")" but unable to get the lineno of
that else child node.
Could y
Bikram Singh Mehra added the comment:
Hi Eric,
I have tried the action plan suggested by you in your last comment, but below
are my logs and still I am unable to get lineno for else statement.
The respective line no for each line are below
1
2 if num > 0:
3 print("