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 BTaskaya
Recipients BTaskaya, pablogsal, serhiy.storchaka
Date 2020-06-18.09:38:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592473081.05.0.347184745832.issue41022@roundup.psfhosted.org>
In-reply-to
Content
Previously (before ast.Constant became a base class for deprecated node classes), Sum types were identifiable with this rule;

len(node_class.__subclasses__()) > 0

Now, this is also valid for the ast.Constant itself because of ast.Str, ast.Num etc. bases it. The bad side is, it makes (complex) sum classes unidentifiable.
History
Date User Action Args
2020-06-18 09:38:01BTaskayasetrecipients: + BTaskaya, serhiy.storchaka, pablogsal
2020-06-18 09:38:01BTaskayasetmessageid: <1592473081.05.0.347184745832.issue41022@roundup.psfhosted.org>
2020-06-18 09:38:01BTaskayalinkissue41022 messages
2020-06-18 09:38:00BTaskayacreate