From what I understand I can compare strings with is and ==. Is there a way I can partially apply these functions?
For example:
xs = ["hello", "world"]
functools.filter(functools.partial(is, "hello"), xs)
Gives me:
functools.filter(functools.partial(is, "hello"), xs)
^
SyntaxError: invalid syntax