Hacker News new | ask | show | jobs
by barosl 952 days ago
> states.intersection({'VALID'} | {'IN_PROGRESS'})

Does this Python code count? Haha.

1 comments

No, that’s the explicit conjunction of two explicit sets.

    ‘VALID’ or ‘IN_PROGRESS’ in states
Does not work and I’ve seen it around or SO. Or more commonly it’s variation

    a == b or c