Skip to content

gh-160724: Add list.discard() method - #160726

Draft
StanFromIreland wants to merge 3 commits into
python:mainfrom
StanFromIreland:list-discard
Draft

StanFromIreland wants to merge 3 commits into
python:mainfrom
StanFromIreland:list-discard

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

@read-the-docs-community

read-the-docs-community Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35420637 | 📁 Comparing 687d42d against main (862d5e5)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

Comment thread Objects/listobject.c
}
return 1;
}
else if (cmp < 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This must be checked first as otherwise you may call the C API with an exception set. This error seems to br already present on main though (and not just here).

@StanFromIreland
StanFromIreland marked this pull request as draft October 27, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants