issues: 683649612
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 683649612 | MDU6SXNzdWU2ODM2NDk2MTI= | 4362 | Surprising deepcopy semantics with dtype='object' | 6875882 | closed | 0 | 4 | 2020-08-21T15:40:59Z | 2020-08-27T14:56:48Z | 2020-08-27T14:56:48Z | CONTRIBUTOR | ```python from copy import deepcopy import numpy as np import xarray as xr class Dummy: pass a0 = np.array([Dummy()]) a1 = deepcopy(a0) print(a0[0] is a1[0]) # False, as expected x0 = xr.DataArray(a0, dims='dummy') x1 = deepcopy(x0) print(x0.values[0] is x1.values[0]) # unexpectedly True ``` I think this is a bug, and would be fixed with an extra deepcopy around here |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/4362/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |