Christian Heimes <[email protected]> added the comment:
I thought of a version field, too. In the end it is going to cause more work
and trouble than it would benefit us.
Stack-allocated Py_buffer's are typically initialized with
Py_buffer data = {NULL, NULL};
. The code initializes Py_buffer.buf and Py_buffer.obj as NULL. The remaining
fields are whatever random values happens to be on the C stack. If we would
append a version field to the struct, than every project would have to
initialize the field properly.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com