Skip to content

Commit

Permalink
Skip the dict example
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles committed Feb 3, 2019
1 parent 50783e4 commit 646c0a3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions more_itertools/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,6 @@ def unique_everseen(iterable, key=None):
Similary, you may want to convert unhashable ``dict`` objects using
the :func:`dict.items` method.
>>> iterable = ({'a': 'b'}, {'c': 'd', 'e': 'f'}, {'a': 'b'})
>>> list(unique_everseen(iterable)) # Slow
[{'a': 'b'}, {'c': 'd', 'e': 'f'}]
>>> list(unique_everseen(iterable, key=lambda x: tuple(x.items())))
[{'a': 'b'}, {'c': 'd', 'e': 'f'}]
"""
seenset = set()
seenset_add = seenset.add
Expand Down

0 comments on commit 646c0a3

Please sign in to comment.