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

How do I test if a combination of keys is in my multi_key_dict #14

Open
svenhornberg opened this issue Sep 30, 2015 · 1 comment
Open

Comments

@svenhornberg
Copy link

Hi,

how do I test if a combination of keys is in my multi_key_dict

e.g:

matrix = multi_key_dict()
matrix['1', '2'] = []

#my try ???

print(('1','2') in matrix)
print(matrix.has_key((key1,key2)))

How do I do this ? Or is this possible ?
Thanks

@formiaczek
Copy link
Owner

Hi, sure, that would be useful, let me have a look.

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