Skip to content

#13515 Fix comma-aware parsing of gRPC string values in Python#13700

Merged
kriben merged 1 commit intoOPM:devfrom
kriben:13515-rimc-data-container-string-split
Mar 6, 2026
Merged

#13515 Fix comma-aware parsing of gRPC string values in Python#13700
kriben merged 1 commit intoOPM:devfrom
kriben:13515-rimc-data-container-string-split

Conversation

@kriben
Copy link
Collaborator

@kriben kriben commented Mar 6, 2026

Replace naive split(", ") in __makelist() with a quote-aware state machine that respects quoted strings and nested brackets. Also add __unescape_string() to reverse C++ escaping, and fix strip('"') to only remove the outer quote pair.

Fixes #13515.

@kriben kriben force-pushed the 13515-rimc-data-container-string-split branch from f2cfaf6 to eacbda2 Compare March 6, 2026 18:35
Replace naive split(", ") in __makelist() with a quote-aware state
machine that respects quoted strings and nested brackets. Also add
__unescape_string() to reverse C++ escaping, and fix strip('"') to
only remove the outer quote pair.
@kriben kriben force-pushed the 13515-rimc-data-container-string-split branch from eacbda2 to 931dbd2 Compare March 6, 2026 18:36
@kriben kriben merged commit 00b4f18 into OPM:dev Mar 6, 2026
9 checks passed
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.

Python: RimcDataContainerString values incorrectly split at commas

2 participants