home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 368105739

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/1938#issuecomment-368105739 https://api.github.com/repos/pydata/xarray/issues/1938 368105739 MDEyOklzc3VlQ29tbWVudDM2ODEwNTczOQ== 3064397 2018-02-23T18:57:59Z 2018-02-23T18:58:47Z NONE

We could make a particular list an instance of a particular TypedVarArgs; however, multiple dispatch uses the type() of arguments as well as issubclass to do dispatching. Multiple dispatch depends on being able to partially order types to make dispatching more efficient. The constructor of VarArgs scans for the types of the elements and constructs an instance of a new (but memoized) subclass of VarArgs which encodes the element types so that issubclass works as expected. The problem is that type([1.0, 'foo']) returns just list which erases all information about the elements.

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