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

zlib.compress level and wbits args are shown as keyword-only in the documentation #90458

Closed
akulakov opened this issue Jan 7, 2022 · 2 comments
Labels
3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@akulakov
Copy link
Contributor

akulakov commented Jan 7, 2022

BPO 46300
Nosy @akulakov

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 2022-01-08.02:11:38.454>
created_at = <Date 2022-01-07.22:41:04.654>
labels = ['invalid', 'type-bug', 'library', '3.11']
title = 'zlib.compress level and wbits args are shown as keyword-only in the documentation'
updated_at = <Date 2022-01-08.02:11:38.453>
user = 'https://github.com/akulakov'

bugs.python.org fields:

activity = <Date 2022-01-08.02:11:38.453>
actor = 'andrei.avk'
assignee = 'none'
closed = True
closed_date = <Date 2022-01-08.02:11:38.454>
closer = 'andrei.avk'
components = ['Library (Lib)']
creation = <Date 2022-01-07.22:41:04.654>
creator = 'andrei.avk'
dependencies = []
files = []
hgrepos = []
issue_num = 46300
keywords = []
message_count = 2.0
messages = ['410051', '410071']
nosy_count = 1.0
nosy_names = ['andrei.avk']
pr_nums = []
priority = 'low'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46300'
versions = ['Python 3.11']

@akulakov
Copy link
Contributor Author

akulakov commented Jan 7, 2022

zlib.compress level and wbits args are shown as keyword-only in the documentation, however they are accepted as positional without error.

Should the docs or the code be fixed?

@akulakov akulakov added 3.11 only security fixes type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir labels Jan 7, 2022
@akulakov
Copy link
Contributor Author

akulakov commented Jan 8, 2022

I forgot that '/' marks end of positional-only args, not keyword-only.

@akulakov akulakov closed this as completed Jan 8, 2022
@akulakov akulakov closed this as completed Jan 8, 2022
@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.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant