[New-bugs-announce] [issue44538] ast.Slice 3.9.6 documentation bug
Tim
report at bugs.python.org
Tue Jun 29 19:41:33 EDT 2021
New submission from Tim <tim.baer at 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 at python
components: Documentation
messages: 396765
nosy: c3-timjbaer, docs at python
priority: normal
severity: normal
status: open
title: ast.Slice 3.9.6 documentation bug
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44538>
_______________________________________
More information about the New-bugs-announce
mailing list