Skip to content

Conversation

cjdoris
Copy link
Collaborator

@cjdoris cjdoris commented Sep 17, 2025

Allow any string or integer to be converted to python

Specifically this adds methods Py(::AbstractString), Py(::AbstractChar), Py(::Integer), Py(::Rational{<:Integer}), Py(::AbstractRange{<:Integer}) whereas previously we only allowed the builtin Julia string, char and integer types.

Fixes #608

Christopher Doris added 3 commits September 17, 2025 18:51
Specifically this adds methods `Py(::AbstractString)`, `Py(::AbstractChar)`, `Py(::Integer)`, `Py(::Rational{<:Integer})`, `Py(::AbstractRange{<:Integer})` whereas previously we only allowed the builtin Julia string, char and integer types.
@cjdoris cjdoris merged commit eb771e1 into main Sep 17, 2025
16 checks passed
@cjdoris cjdoris deleted the relax-conversions branch September 17, 2025 18:07
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.

Support of InlineStrings and others
1 participant