[issue40430] ast.Slice is no longer a subclass of ast.slice

Serhiy Storchaka report at bugs.python.org
Mon Oct 5 12:54:12 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Even if make ast.Slice a (virtual) subclass of ast.slice it will not help much, because we cannot do it for ast.Index and ast.ExtSlice. ast.ExtSlice is not replaced with ast.Tuple, and any node type can now be used instead of ast.Index. The code that does isinstance() or issublass() check for ast.slice or one of its subcasses is now broken.

----------
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40430>
_______________________________________


More information about the Python-bugs-list mailing list