FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-125420: implement `Sequence.index` API on `memoryview` objects by picnixz · Pull Request #125446 · python/cpython · GitHub

Repository navigation

gh-125420: implement Sequence.index API on memoryview objects - #125446

Merged
JelleZijlstra merged 11 commits into
python:mainfrom
picnixz:fix/memoryview-sequence-api-index-125420
Dec 10, 2024
Merged

JelleZijlstra merged 11 commits into
python:mainfrom
picnixz:fix/memoryview-sequence-api-index-125420

Conversation

picnixz commented Oct 14, 2024 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

I went for the simplest implementation. I could unroll the memory_item call to save some operations but I felt that it would only add noise and make maintenance harder so I went for a cleaner but probably a bit slower option.


📚 Documentation preview 📚: https://cpython-previews--125446.org.readthedocs.build/

Comment thread Objects/memoryobject.c

picnixz commented Nov 6, 2024

Copy link
Copy Markdown
Member Author

Since you've approved the .count() PR, I think you want to have a look at this one as well @JelleZijlstra.

JelleZijlstra merged commit 58c7538 into python:main Dec 10, 2024
picnixz deleted the fix/memoryview-sequence-api-index-125420 branch December 10, 2024 08:25
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL