This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bikrammehra97
Recipients bikrammehra97, eric.smith, lys.nikolaou, pablogsal
Date 2021-05-19.12:00:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621425632.0.0.685921657186.issue44177@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-05-19 12:00:32bikrammehra97setrecipients: + bikrammehra97, eric.smith, lys.nikolaou, pablogsal
2021-05-19 12:00:31bikrammehra97setmessageid: <1621425632.0.0.685921657186.issue44177@roundup.psfhosted.org>
2021-05-19 12:00:31bikrammehra97linkissue44177 messages
2021-05-19 12:00:31bikrammehra97create