Message 320616 - Python tracker

Message320616

Author jreese
Recipients jreese, lukasz.langa
Date 2018-06-27.20:38:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530131899.35.0.56676864532.issue33983@psf.upfronthosting.co.za>
In-reply-to
Content
When type checking applications using lib2to3, the difference in types for lib2to3.pytree.Base.children versus Node.children makes it difficult to accept both leaves and nodes and programatically work with child nodes/leaves.  Base/Leaf both have `children` defined as an empty Tuple, while Node defines it as an empty list.  It would be more useful for Base/Leaf to also use an empty list, so that the type is the same, regardless of which type of object you are given.
History
Date User Action Args
2018-06-27 20:38:19jreesesetrecipients: + jreese, lukasz.langa
2018-06-27 20:38:19jreesesetmessageid: <1530131899.35.0.56676864532.issue33983@psf.upfronthosting.co.za>
2018-06-27 20:38:19jreeselinkissue33983 messages
2018-06-27 20:38:19jreesecreate