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

gh-132713: Simplify list_repr_impl() by vstinner · Pull Request #132811 · python/cpython · GitHub

Repository navigation

gh-132713: Simplify list_repr_impl() - #132811

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:list_repr2
Apr 23, 2025
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:list_repr2

Conversation

vstinner commented Apr 22, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member Author

cc @kumaraditya303

Comment thread Objects/listobject.c
break;
}
/* Hold a strong reference since repr(item) can mutate the list */
item = Py_NewRef(v->ob_item[i]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

+1 from me. I like this pattern better

vstinner merged commit de9deb7 into python:main Apr 23, 2025
vstinner deleted the list_repr2 branch April 23, 2025 06:59

Copy link
Copy Markdown
Member Author

Ok, merged. If later the code evolves and the safer list_get_item_ref() is needed, we can come back to list_get_item_ref() later.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL