Skip to content

Expand C API coverage for Python bindings#471

Merged
adsharma merged 1 commit intomainfrom
ladybug-capi-pybind
May 8, 2026
Merged

Expand C API coverage for Python bindings#471
adsharma merged 1 commit intomainfrom
ladybug-capi-pybind

Conversation

@adsharma
Copy link
Copy Markdown
Contributor

@adsharma adsharma commented May 8, 2026

Add missing C API behavior needed by the ctypes Python backend:

  • make C API object destructors idempotent by clearing destroyed handles

  • support empty list/map values, null nested elements, and Python-style list/map type widening

  • add JSON value construction for JSON-typed parameters

  • expose a non-empty C API version fallback when the core version string is empty

  • extend C API value tests to cover empty/null/mixed nested values

Add missing C API behavior needed by the ctypes Python backend:

- make C API object destructors idempotent by clearing destroyed handles

- support empty list/map values, null nested elements, and Python-style list/map type widening

- add JSON value construction for JSON-typed parameters

- expose a non-empty C API version fallback when the core version string is empty

- extend C API value tests to cover empty/null/mixed nested values
@adsharma adsharma merged commit c27a34e into main May 8, 2026
25 of 40 checks passed
@adsharma adsharma deleted the ladybug-capi-pybind branch May 8, 2026 19:16
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