Skip to content

functools.partial weirdness #1574

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

Closed
berdario opened this issue May 24, 2016 · 1 comment
Closed

functools.partial weirdness #1574

berdario opened this issue May 24, 2016 · 1 comment

Comments

@berdario
Copy link

Another weird error while using partial:

partial(dict, **{'foo': '1'})()['foo']

yields

 a.py:3: error: Invalid index type "str" for "dict"

Btw, this idiom might look weird, but it's just a workaround that I'm using until #704 will be fixed

@gvanrossum
Copy link
Member

I think this is just due to the general lack of support for partial, so closing in favor of #1484.

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