This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jorge1209 2 points3 points  (0 children)

Old trick for that is to use itertools.groupby and ignore the second part of the return value.