JuliaPy / JuliaPy/PyPlot.jl

implement object[Integer...]

Open
#150 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
488
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Maybe make `object[i,j,...]` in Julia sugar for `get(object, (i,j,...))`, equivalent to `object[i,j,...]` in Python, for the common case of integer indexing (e.g. #149).

I would prefer to just make `object[...]` equivalent to `object[...]` in Python regardless of the index type, but then I wouldn't have a good syntax for Python's `object.attribute` (until some future Nirvana when dot overloading arrives in Julia).

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the proposed object[i,j,...] behavior and the referenced issue #149. Determine whether integer indexing should map to get(object, (i,j,...)) and how the proposal relates to Python-style indexing and attribute access. Done means the desired syntax and its scope are agreed and implemented consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.