New submission from Tim <tim.b...@c3.ai>:
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. ---------- assignee: docs@python components: Documentation messages: 396765 nosy: c3-timjbaer, docs@python priority: normal severity: normal status: open title: ast.Slice 3.9.6 documentation bug type: behavior versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com