GeezerVison is showing github.com — `__delitem__` for `IList<T>` and `IDictionary<K,V>` by lostmsu · Pull Request #2533 · pythonnet/pythonnet
Conversation
lostmsu
commented
Dec 18, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What does this implement/fix? Explain your changes.
Implements __delitem__ for IList<T> and IDictionary<K,V>
Fixes memory leak on using indexer setter.
Fixes crash on attempting to do del o[...] on .NET objects apart from arrays.
Does this close any currently open issues?
Fixes #2530
Checklist
Check all those that are applicable and complete.
- Make sure to include one or more tests for your change
- If an enhancement PR, please create docs and at best an example
- Ensure you have signed the .NET Foundation CLA
- Add yourself to
AUTHORS
- Updated the
CHANGELOG
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fixed crash for all other types (now properly throws TypeError)
fixes pythonnet#2530
This was referenced May 24, 2026
Reviewers
filmor
filmor approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.