Bikram Singh Mehra <bikrammehr...@gmail.com> 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 you please confirm if there is a way in AST where I can get the lineno of the else child node. Thanks and Best Regards, Bikram ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44177> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com