home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1382233446

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/7348#issuecomment-1382233446 https://api.github.com/repos/pydata/xarray/issues/7348 1382233446 IC_kwDOAMm_X85SYzVm 35968931 2023-01-13T18:34:51Z 2023-01-13T18:34:51Z MEMBER

Thanks for the suggestion @nbren12 !

Whilst I agree that this would be a more "correct" way of providing accessor functionality, I think there is a big downside in that Entrypoints are quite a lot harder for users to use than the accessors are.

Whilst the way the accessors actually add the method is kind of black magic, all the user has to do is copy-paste the example from the docs and change the methods and accessor name to what they want, and it will immediately work.

Adding an entrypoint requires going into your setup.py (which you wouldn't even have if you're running a script or notebook), and it's conceptually complicated. The accessors stuff is useful even for relatively novice users, so I don't really want to make it harder to understand...

Interested in what other people think though?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1473152374
Powered by Datasette · Queries took 86.924ms · About: xarray-datasette