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
struct.unpack doens't support buffer protocol objects #44012
Comments
If you pass an object which supports the buffer You should use PyObject_AsReadBuffer instead. If this code is performance critical, you could add an |
Logged In: YES Why is this a bug? |
Logged In: YES Well, because it broke previously working code and there is In the mean-time, I've found out about pack_into and |
Logged In: YES Ah, so you say that was working previously? It's a bug, |
Logged In: YES The actual code which broke used a Pointer extension class I reproduced the problem using array.array. Using array in |
Logged In: YES test_struct_run.py works in 2.4, throws exception in 2.5 |
This was due to Bob Ippolito's commit in revision 46184. |
Fixed. See revision 54690. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: