Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loss of ** function calling in 0.7.7 #11

Closed
jdavisp3 opened this issue Oct 21, 2016 · 2 comments
Closed

Loss of ** function calling in 0.7.7 #11

jdavisp3 opened this issue Oct 21, 2016 · 2 comments

Comments

@jdavisp3
Copy link

The use of orderedmultidicts in ** kwargs function invocations seems to have stopped working with 0.7.7. This code now prints out an empty dict:

def print_kwargs(**kwargs): print kwargs

import orderedmultidict

d = orderedmultidict.omdict({'a': 1, 'b': 2})

print_kwargs(**d)

With 0.7.6 it prints {'a': 1, 'b': 2}.

@gruns
Copy link
Owner

gruns commented Oct 23, 2016

Fix now live in orderedmultidict v0.7.8.

>>> import orderedmultidict
>>> orderedmultidict.__version__
0.7.8
>>> o = orderedmultidict.omdict([('a', 'a'), ('b', 'b')])
>>> splat = lambda *args, **kwargs: (args, kwargs)
>>> splat(*o, **o)
(('a', 'b'), {'a': 'a', 'b': 'b'})

If you use orderedmultidict via furl, the latest furl v0.5.6 depends on the
newly minted orderedmultidict v0.7.8. Upgrade with
pip install orderedmultidict -upgrade or pip install furl --upgrade.

Thank you for bringing this issue to my attention Dave. Don't hesitate to let me
know if there's anything else I can do for you.

@gruns gruns closed this as completed Oct 23, 2016
@jdavisp3
Copy link
Author

Thanks so much @gruns !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants