Update QuantConnect.pythonnet to 2.0.66 - #9772
Merged
jhonabreul merged 1 commit intoSep 3, 2026
Merged
Conversation
Martin-Molinero
approved these changes
Sep 3, 2026
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
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.
Description
Updates the
QuantConnect.pythonnetpackage reference to 2.0.66 in the 11 csproj files that consume it.2.0.66 fixes
del obj[key]on reflected .NET types crashing the process: QuantConnect/pythonnet#149. Deletion now works onIDictionary<K,V>andIList<T>implementers (Remove/RemoveAt,KeyErroron a missing dictionary key) and raisesTypeErroron every other type, including arrays. Example that used to abort a Python algorithm:del self.runtime_statistics["MyKey"].Companions: QuantConnect/LeanCloud.Services#257, QuantConnect/LeanCloud#1486.
Related Issue
N/A
Motivation and Context
Keeps LEAN on the latest QuantConnect.pythonnet and removes a process crash reachable from user Python algorithms.
Requires Documentation Change
No
How Has This Been Tested?
Python.Runtime.dllfrom the published package injected over Lean's test output (mirroring pythonnet's Lean CI workflows): Python regression algorithms 324/324 passed; Python unit tests 16600 passed / 0 failed / 9 skipped.del self.runtime_statistics[key]completes and removes the key.Types of changes
Checklist:
bug-<issue#>-<description>orfeature-<issue#>-<description>