Stefan Krah <ste...@bytereef.org> added the comment:
> So it's clear that something has to change. IMO, preserving (2) and relaxing > (1) is the more useful choice. But not in this issue I think. GH-18969 is a minimal change that *removes* UB for the standard sizes. UB for the native type is a direct consequence of using _Bool. Native types should be left as is because that's what array libraries expect. The docs could need a change (in another issue). Also, UB can only happen in a constructed example --- correctly packed arrays don't have any incorrect values. So I think any fear of UB here is not warranted. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com