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/4798#issuecomment-759456390,https://api.github.com/repos/pydata/xarray/issues/4798,759456390,MDEyOklzc3VlQ29tbWVudDc1OTQ1NjM5MA==,7226087,2021-01-13T13:43:20Z,2021-01-13T13:43:20Z,NONE,"@kmuehlbauer thanks for finding that out!
Now I'm wondering if that should be documented or some other solution; certainly, for me it was surprising, but maybe also my expectations were just wrong.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,784484810
https://github.com/pydata/xarray/issues/4798#issuecomment-759397199,https://api.github.com/repos/pydata/xarray/issues/4798,759397199,MDEyOklzc3VlQ29tbWVudDc1OTM5NzE5OQ==,7226087,2021-01-13T11:47:39Z,2021-01-13T11:47:39Z,NONE,"Actually, this is a problem which is specific to the netcdf4 backend, using `h5netcdf`, this works:
```python
import xarray as xr
ds = xr.Dataset(attrs={""foo"": [""bar""]},)
ds.to_netcdf(""ds.nc"", engine=""h5netcdf"")
rd = xr.open_dataset(""ds.nc"", engine=""h5netcdf"")
assert ds.attrs[""foo""] == rd.attrs[""foo""]
```
and runs without problems.
As soon as I involve netcdf4 in reading or writing, this fails.
I don't know enough about netcdf's on-disk format to really debug what is going on. The `ncdump` output looks identical to me for both engines.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,784484810