Type error
Closed this issue · 2 comments
dirkk0 commented
Hi,
first of all - thanks for this library!
Then - the example in the readme works only partially for me.
This example works:
firebase.get('/users', None)
and this doesn't:
firebase.get('/users', None, {'print': 'pretty'})
This gives me:
Traceback (most recent call last):
File "test.py", line 8, in <module>
print firebase.get('/users', None, {'print': 'pretty'})
File "/Library/Python/2.7/site-packages/firebase/decorators.py", line 19, in wrapped
return f(*args, **kwargs)
TypeError: get() got multiple values for keyword argument 'connection'
Also, in the the last example I needed to change this line:
firebase.get_async('/users', None, {'print': 'pretty'}, callback=log_user)
to
firebase.get_async(url='/users', name=None, params=None, callback=log_user)
to get it working, but - the callback doesn't seem to work.
I tried this on Python 2.7.1 and 2.7.3.
It seems to be related to http://docs.python.org/2/tutorial/controlflow.html#keyword-arguments .
What version are you using?
Best,
Dirk
ozgur commented
Sorry for the very late response. Do you have any solutions to patch this bug? If not, I'll dig it up and fix this asap.