home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 368097912

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-368097912 https://api.github.com/repos/pydata/xarray/issues/1938 368097912 MDEyOklzc3VlQ29tbWVudDM2ODA5NzkxMg== 1217238 2018-02-23T18:32:04Z 2018-02-23T18:32:04Z MEMBER

@llllllllll very cool! Is there a special trick I need to use this? I tried: ```python

first: pip install https://github.com/blaze/blaze/archive/master.tar.gz

import blaze.compute from blaze.compute.varargs import VarArgs from multipledispatch import dispatch

@dispatch(VarArgs[float]) def f(args): print('floats')

@dispatch(VarArgs[str]) def f(args): print('strings')

@dispatch(VarArgs[str, float]) def f(args): print('mixed') This gives me an error when I try to use it:python

f(['foo'])


KeyError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/multipledispatch/dispatcher.py in call(self, args, *kwargs) 154 try: --> 155 func = self._cache[types] 156 except KeyError:

KeyError: (<class 'list'>,)

During handling of the above exception, another exception occurred:

NotImplementedError Traceback (most recent call last) <ipython-input-5-19f52a9a1dd6> in <module>() ----> 1 f(['foo'])

/usr/local/lib/python3.6/dist-packages/multipledispatch/dispatcher.py in call(self, args, *kwargs) 159 raise NotImplementedError( 160 'Could not find signature for %s: <%s>' % --> 161 (self.name, str_signature(types))) 162 self._cache[types] = func 163 try:

NotImplementedError: Could not find signature for f: <list> ```

{
    "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 0.809ms · About: xarray-datasette