Demur Rumed added the comment:

Xiang: pause a moment to read the code being discussed. event before the |= is 
0. You're saying flag must READ xor WRITE xor neither. Then only one if can be 
taken. Therefore events |= EVENT_* will always happen with events == 0, 
therefore it can be events = EVENT_*

Further inspection of the code could move the flag/events calc into the 'if 
key' block

----------
nosy: +Demur Rumed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27436>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to