diff options
author | Raymond Hettinger <python@rcn.com> | 2015-01-18 16:06:18 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-01-18 16:06:18 -0800 |
commit | 6bb9c148c9b893a8503ff7f0e92ac09e8e91de32 (patch) | |
tree | 05b0c213d5b0cb42548df2b7431eaa85b48e4c52 /Python/errors.c | |
parent | dbf72b90f5ccfb388161815d84d3e1991c750180 (diff) | |
download | cpython-6bb9c148c9b893a8503ff7f0e92ac09e8e91de32.tar.gz |
Clean-up, simplify, and slightly speed-up bounds logic in set_pop().
Elsewhere in the setobject.c code we do a bitwise-and with the mask
instead of using a conditional to reset to zero on wrap-around.
Using that same technique here use gives cleaner, faster, and more
consistent code.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions