home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 154918112

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/642#issuecomment-154918112 https://api.github.com/repos/pydata/xarray/issues/642 154918112 MDEyOklzc3VlQ29tbWVudDE1NDkxODExMg== 1217238 2015-11-09T04:31:55Z 2015-11-09T04:31:55Z MEMBER

I just mean practically, how do you tell the difference between 0 and False in Python code?

Use is: False is 0 is False, even on Python 2:

``` In [7]: False is 0 Out[7]: False

In [8]: 0 is 0 Out[8]: True

In [9]: False is False Out[9]: True ```

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