This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients christian.heimes, serhiy.storchaka, tzickel
Date 2020-04-30.06:48:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588229320.08.0.282804252216.issue40262@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-30 06:48:40serhiy.storchakasetrecipients: + serhiy.storchaka, christian.heimes, tzickel
2020-04-30 06:48:40serhiy.storchakasetmessageid: <1588229320.08.0.282804252216.issue40262@roundup.psfhosted.org>
2020-04-30 06:48:40serhiy.storchakalinkissue40262 messages
2020-04-30 06:48:40serhiy.storchakacreate