[issue27436] Strange code in selectors.KqueueSelector
David Beazley
report at bugs.python.org
Fri Jul 1 15:38:52 EDT 2016
David Beazley added the comment:
I don't see any possible way that you would ever get events = EVENT_READ | EVENT_WRITE if the flag is a single value (e.g., KQ_FILTER_READ) and the flag itself is not a bitmask. Only one of those == tests will ever be True. There is no need to use |=. Unless I'm missing something.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27436>
_______________________________________
More information about the Python-bugs-list
mailing list