Skip to content

Conversation

@ivaylo-matov
Copy link
Owner

Restore DSCore.List.Flatten functionality by ensuring non-generic Python list decodes produce nested CLR IList structures, addressing a breaking change in PythonNet 3.11.

The upgrade to PythonNet 3.11 introduced a breaking change where .NET collections and arrays are no longer automatically converted to Python collections. This meant that DSCore.List.Flatten was receiving opaque PyObjects instead of the expected CLR ILists, leading to incorrect flattening behavior. This change modifies the ListEncoderDecoder to explicitly convert nested Python lists and tuples into ArrayList structures when a non-generic IList is expected, thus restoring the pre-upgrade behavior.


Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Dec 3, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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