Skip to content

Feat: Box Python scalars into Kotlin Any slots and unbox on read - #81

Merged
b-re-w merged 4 commits into
developfrom
work/any-slot-scalars
Oct 3, 2026
Merged

b-re-w merged 4 commits into
developfrom
work/any-slot-scalars

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

Closes #69

Feature added (SPEC U-10): bool/int(Int|Long by range)/float/str into an Any/Any? slot become Kotlin Boolean/Int/Long/Double/String; reading an Any that holds a Kotlin scalar returns the Python scalar; ints outside 64 bits refused. Explicit box/unbox entries in PythonCallables, so the object-handle path is unchanged.
Verification (coordinator): plugin 231/0, desktopTest 582/0, ksp artifact 35/0, app 70/0, compose 112/0 (incl. AnySlotScalarRenderTest: mutableStateOf(0) incremented from Python recomposes), androidNative OK. Red without the fix: 5 PythonxPropertyTest failures.

@b-re-w
b-re-w merged commit 0aa945b into develop Oct 3, 2026
7 checks passed
@b-re-w
b-re-w deleted the work/any-slot-scalars branch October 3, 2026 06:25
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.

1 participant