[issue39610] memoryview.__len__ should raise an exception for 0d buffers
Stefan Krah
report at bugs.python.org
Tue Feb 11 19:00:50 EST 2020
Stefan Krah <stefan at bytereef.org> added the comment:
The change looks reasonable, but unfortunately this is a long-standing
behavior that originates from before the Python-3.3 memoryview rewrite.
It is also present in 2.7 (the previous implementation) and documented
in 3.3:
https://docs.python.org/3/library/stdtypes.html#memoryview
I think I documented it because it looked strange back then, too.
So I've to think a bit what will be affected and how this behavior
came into place.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39610>
_______________________________________
More information about the Python-bugs-list
mailing list