home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1264014472

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/7111#issuecomment-1264014472 https://api.github.com/repos/pydata/xarray/issues/7111 1264014472 IC_kwDOAMm_X85LV1SI 32801740 2022-09-30T20:52:28Z 2022-09-30T20:54:25Z CONTRIBUTOR

Is there some feature that python uses to check whether a data structure is recursive when it's copying, which we're not taking advantage of? I can look more later.

yes, def __deepcopy__(self, memo=None) has the memo argument exactly for the purpose of dealing with recursion, see https://docs.python.org/3/library/copy.html. Currently, xarray's __deepcopy__ methods do not pass on the memo argument when deepcopying its components.

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