Message396765
Based off the ast 3.9.6 documentation (https://docs.python.org/3/library/ast.html), we would expect `Slice` to inherit from `expr`. However, looking at `ast.Slice.__mro__` produces the following output: `(<class '_ast.Slice'>, <class '_ast.slice'>, <class '_ast.AST'>, <class 'object'>)`.
It appears that instead of inheriting from `expr`, `Slice` inherits from `slice` which appears to be a deprecated type. |
|
Date |
User |
Action |
Args |
2021-06-29 23:41:33 | c3-timjbaer | set | recipients:
+ c3-timjbaer, docs@python |
2021-06-29 23:41:33 | c3-timjbaer | set | messageid: <1625010093.71.0.0337806588286.issue44538@roundup.psfhosted.org> |
2021-06-29 23:41:33 | c3-timjbaer | link | issue44538 messages |
2021-06-29 23:41:33 | c3-timjbaer | create | |
|