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 brett.cannon
Recipients Mark.Shannon, brett.cannon
Date 2015-05-04.14:15:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430748913.53.0.556111371158.issue24119@psf.upfronthosting.co.za>
In-reply-to
Content
Normally I would agree comments don't belong there, but if we are going to start giving them semantic meaning then I don't think it's not so clear to me anymore.

As to where to attach, simple place is off of the Module node. Another is to have it be fundamental like lineno and only attach it when it is a line-trailing comment.

Yes, the tokenize module will give you the comments as well, but it is unfortunate you have to parse the code twice in order to get the comments and the AST.
History
Date User Action Args
2015-05-04 14:15:13brett.cannonsetrecipients: + brett.cannon, Mark.Shannon
2015-05-04 14:15:13brett.cannonsetmessageid: <1430748913.53.0.556111371158.issue24119@psf.upfronthosting.co.za>
2015-05-04 14:15:13brett.cannonlinkissue24119 messages
2015-05-04 14:15:13brett.cannoncreate