JuliaPy / JuliaPy/PythonCall.jl
How to bypass automatic conversion to Float64?
Open
question
- Dominant language
- Julia
- Stars
- 1.1k
- Forks
- 86
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 3
Description
I want to get my hands on a `Tuple{Float32, Float32}` in Python and there doesn't seem to be a good way of doing it
```pycon
>>> jl("typeof")(jl("Tuple{Float32, Float32}")((0.0, 1.0)))
Julia: Tuple{Float64, Float64}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the PythonCall expression shown in the issue and inspect the conversion path used when constructing Tuple{Float32, Float32} from Python. The work is done when a Python-side tuple can preserve Float32 elements and the resulting Julia type matches the requested tuple type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100