home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 594688816

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
594688816 MDU6SXNzdWU1OTQ2ODg4MTY= 3939 Why don't we allow indexing with keyword args via __call__? 35968931 closed 0     4 2020-04-05T22:44:18Z 2020-04-09T05:14:46Z 2020-04-09T05:14:46Z MEMBER      

Reading about PEP472, which would have allowed indexing with keyword arguments like python da[x=10] made me wonder: why don't we use __call__ to get the same effect but just with curved brackets instead of square ones? i.e. python da(x=10) We don't currently use __call__ on DataArray or Dataset for anything else.

I presume there is some good reason why this design decision was taken, but I'm just wondering what it is.

(Also has the ship permanently sailed on PEP472 now?)

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3939/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.63ms · About: xarray-datasette