Skip to content

Conversation

@cjdoris
Copy link
Member

@cjdoriscjdoris 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.
@cjdoriscjdoris merged commit eb771e1 into mainSep 17, 2025
16 checks passed
@cjdoriscjdoris deleted the relax-conversions branch September 17, 2025 18:07
Sign up for freeto 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

2 participants

@cjdoris