Skip to content

Conversation

@ztane
Copy link
Contributor

@ztane ztane commented Oct 18, 2025

#70546 reports that mmap object __iter__ behavior dffers from that of bytearray. This pr adds a notice that states that mmap objects have __iter__ that differs from that of bytearrays and that you can wrap the object inside a memoryview to work around the difference.

…tearray.

Propose a workaround with a memoryview wrapper.
@ztane ztane force-pushed the mmap-iterator-behavior-documented branch from 395b9e0 to 981c4e9 Compare October 18, 2025 09:11
@ztane
Copy link
Contributor Author

ztane commented Oct 18, 2025

If this PR is merged, I think the referenced issue could be also closed (I cannot do it because it still belongs to a mannequin ;)

@sergey-miryanov
Copy link
Contributor

I believe this shouldn't skip news, because it is a user-facing update.
Also, maybe it is worth to add an example of usage memoryview to the note?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants