underscore.py icon indicating copy to clipboard operation
underscore.py copied to clipboard

_.without fails on unicode string equality

Open richard-engineering opened this issue 8 years ago • 0 comments

>>> from underscore import _ as _underscore
>>> filter_fields = ['id', 'keyword']
>>> test_fields = [u'id', 'keyword', 'other']
>>> len(_underscore.without(test_fields, *filter_fields))
2
>>> len(_underscore.difference(test_fields, filter_fields)
1

Difference is behaving correctly in this case.

richard-engineering avatar Sep 16 '15 21:09 richard-engineering