JuliaPy / JuliaPy/PyCall.jl

Missing Colon method

Open
#372 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.