8000 Reopen #345 : unpackb documentation isn't clear · Issue #634 · msgpack/msgpack-python · GitHub
[go: up one dir, main page]

Skip to content

Reopen #345 : unpackb documentation isn't clear #634

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

Open
massimosala opened this issue May 22, 2025 · 0 comments
Open

Reopen #345 : unpackb documentation isn't clear #634

massimosala opened this issue May 22, 2025 · 0 comments

Comments

@massimosala
Copy link

Last version, using unpackb:

unpackb() got an unexpected keyword argument 'max_buffer_size'

From the docs:

msgpack.unpackb
See Unpacker for options.

The reader follow the docs and goes to read Unpacker ...

max_str_len, max_bin_len : Deprecated, use max_buffer_size instead

Yes, max_buffer_size doesn't exist in the unpackb declaration.
However, the documentation is confusing.

Solution

unpack should have its own argument description, without referring to another function with a different signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0