➜

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.

作者 brett.cannon
收信人 Mark.Shannon, brett.cannon
日期 2015-05-04.14:15:13
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1430748913.53.0.556111371158.issue24119@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2015-05-04 14:15:13brett.cannon修改recipients: + brett.cannon, Mark.Shannon
2015-05-04 14:15:13brett.cannon修改messageid: <1430748913.53.0.556111371158.issue24119@psf.upfronthosting.co.za>
2015-05-04 14:15:13brett.cannon链接issue24119 messages
2015-05-04 14:15:13brett.cannon创建