home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 525253967

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/3250#issuecomment-525253967 https://api.github.com/repos/pydata/xarray/issues/3250 525253967 MDEyOklzc3VlQ29tbWVudDUyNTI1Mzk2Nw== 6213168 2019-08-27T11:09:02Z 2019-08-27T11:13:37Z MEMBER

Python 3.7: ```python

In [1]: class A(xarray.DataArray): ...: pass ...:
miniconda3/envs/xarray-py37/bin/ipython:1: FutureWarning: xarray subclass A should explicitly define slots

In [2]: a = A()

In [3]: a.x = 1
miniconda3/envs/xarray-py37/bin/ipython:1: FutureWarning: Setting attribute 'x' on a 'A' object. Explicitly define slots to suppress this warning for legitimate custom attributes and raise an error when attempting variables assignments.

In [4]: a.x
Out[4]: 1

In [5]: a.dict
Out[5]: {'x': 1} ```

Python 3.5: Same, but without the first FutureWarning.

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