home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 894461697

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/pull/5667#issuecomment-894461697 https://api.github.com/repos/pydata/xarray/issues/5667 894461697 IC_kwDOAMm_X841UGcB 14371165 2021-08-06T19:06:12Z 2021-08-06T19:06:12Z MEMBER

I'm surprised about the deepcopy being so slow too, I thought it would be similar in speed in this case and just increase if dealing with mutable objects.

But using .copy is 100% compatible with how attrs has behaved before. So we come back to the question what type attrs should be? The options I see is going with dict or MutableMapping.

I'm starting to lean towards mutablemapping because subclassing dict has been rather difficult compared to mutablemapping.

And if we go with mutablemapping then we should use copy.copy.

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