You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An iterator is created by the clause "simple_dict.iteritems()". Afterwards, the filter creates a second iterator with the restriction specified in the filtering clause "key0>5".
The text was updated successfully, but these errors were encountered:
In python, iteritems() and filter() create an iterator, so I think this is the way it should be. It will work using only simple_dict without iteritems(), the hecuba filter support both ways.
Anyway, how could simple_dict know that it will be the input of a filter? We could check the source code of the line, but I don't think it's necessary.
Given the following code:
An iterator is created by the clause "simple_dict.iteritems()". Afterwards, the filter creates a second iterator with the restriction specified in the filtering clause "key0>5".
The text was updated successfully, but these errors were encountered: