JuliaPy / JuliaPy/PyCall.jl

Missing Colon method

Đang mở
#372 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Julia
Star
1.5k
Fork
186
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

This code used to work in 0.5, but fails in 0.6. I'm assuming that this is PyCall's responsibility, and not PyPlot's.
```julia
julia> using PyPlot
Fontconfig warning: line 146: blank doesn't take any effect anymore. please remove it from your fonts.conf

julia> fig, ax = plt[:subplots](2, 2)
PyObject (, array([[,
],
[,
]], dtype=object))

julia> ax[:]
ERROR: MethodError: no method matching getindex(::PyCall.PyObject, ::Colon)
```

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

Start by tracing PyCall's PyObject getindex path for the ax[:] call and the Julia 0.5/0.6 difference described here. Reproduce the shown PyPlot example and confirm that Colon indexing no longer raises MethodError.

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
api
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.