JuliaPy / JuliaPy/PythonCall.jl
How to bypass automatic conversion to Float64?
Đang mở
question
- Ngôn ngữ chính
- Julia
- Star
- 1.1k
- Fork
- 86
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
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}
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- julia, python
- Lĩnh vực
- backend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100