Message367742
Yes, it is a bug. __len__ can return a value different from the amount of bytes (in array.array, memoryview).
len(buffer) can be replaced with memoryview(buffer).nbytes, but maybe we could keep None and let the lower level to handle it. |
|
Date |
User |
Action |
Args |
2020-04-30 06:48:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, christian.heimes, tzickel |
2020-04-30 06:48:40 | serhiy.storchaka | set | messageid: <1588229320.08.0.282804252216.issue40262@roundup.psfhosted.org> |
2020-04-30 06:48:40 | serhiy.storchaka | link | issue40262 messages |
2020-04-30 06:48:40 | serhiy.storchaka | create | |
|