Skip to content

weird issue with dictionaries #30

@malkavian-librarian

Description

@malkavian-librarian

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions