I have a problem with StmtCommentNode... When I have a Stmt of the following structure:
Expr1
Expr2 ## doc comment
repr prints it as above. But treeRepr prints the following:
StmtList
(Expr1 ...)
(Expr2 ...)
What's more, s.last.repr prints:
Expr2
All these things suggests me that this kind of construct has it's last element, doc comment node, hidden from the user but still accessible (as repr shows it). I guess it's a bug BUT I don't know what the intended behavior was: should the CommentStmtNode be there or not?