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

weird issue with dictionaries #30

Open
malkavian-librarian opened this issue Jan 17, 2021 · 0 comments
Open

weird issue with dictionaries #30

malkavian-librarian opened this issue Jan 17, 2021 · 0 comments

Comments

@malkavian-librarian
Copy link

In the original code there were 3 lines:

while any(results['domains'].values() + results['companies'].values() + results['emails'].values()):

The issue it ain't really working for me, as I am getting a parser error telling me it is not possible to use "+" with the dict keys and dict values.
I have resolved it in a 'noob' way (my Python ain't great) - I have just purged the second part as I am interested in domains more than emails:

while any(results['domains'].values())

But the way I understand it - it is not supposed to work this way. Did it change in Python 3.8 - I mean the work with dict values?
Thanks!

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

1 participant