Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast.Slice 3.9.6 documentation bug #88704

Closed
c3-timjbaer mannequin opened this issue Jun 29, 2021 · 3 comments
Closed

ast.Slice 3.9.6 documentation bug #88704

c3-timjbaer mannequin opened this issue Jun 29, 2021 · 3 comments
Labels
3.9 only security fixes docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@c3-timjbaer
Copy link
Mannequin

c3-timjbaer mannequin commented Jun 29, 2021

BPO 44538
Nosy @serhiy-storchaka, @c3-timjbaer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2021-06-30.16:09:04.618>
created_at = <Date 2021-06-29.23:41:33.697>
labels = ['type-bug', 'invalid', '3.9', 'docs']
title = 'ast.Slice 3.9.6 documentation bug'
updated_at = <Date 2021-06-30.16:09:04.617>
user = 'https://github.com/c3-timjbaer'

bugs.python.org fields:

activity = <Date 2021-06-30.16:09:04.617>
actor = 'c3-timjbaer'
assignee = 'docs@python'
closed = True
closed_date = <Date 2021-06-30.16:09:04.618>
closer = 'c3-timjbaer'
components = ['Documentation']
creation = <Date 2021-06-29.23:41:33.697>
creator = 'c3-timjbaer'
dependencies = []
files = []
hgrepos = []
issue_num = 44538
keywords = []
message_count = 3.0
messages = ['396765', '396769', '396781']
nosy_count = 3.0
nosy_names = ['docs@python', 'serhiy.storchaka', 'c3-timjbaer']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue44538'
versions = ['Python 3.9']

@c3-timjbaer
Copy link
Mannequin Author

c3-timjbaer mannequin commented Jun 29, 2021

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.

@c3-timjbaer c3-timjbaer mannequin added the 3.9 only security fixes label Jun 29, 2021
@c3-timjbaer c3-timjbaer mannequin assigned docspython Jun 29, 2021
@c3-timjbaer c3-timjbaer mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error 3.9 only security fixes labels Jun 29, 2021
@c3-timjbaer c3-timjbaer mannequin assigned docspython Jun 29, 2021
@c3-timjbaer c3-timjbaer mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Jun 29, 2021
@serhiy-storchaka
Copy link
Member

What Python version did you tried?

@c3-timjbaer
Copy link
Mannequin Author

c3-timjbaer mannequin commented Jun 30, 2021

I was using 3.8. I followed the same steps on 3.9 and confirmed it worked - closing now.

@c3-timjbaer c3-timjbaer mannequin closed this as completed Jun 30, 2021
@c3-timjbaer c3-timjbaer mannequin added the invalid label Jun 30, 2021
@c3-timjbaer c3-timjbaer mannequin closed this as completed Jun 30, 2021
@c3-timjbaer c3-timjbaer mannequin added the invalid label Jun 30, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant