Eric V. Smith added the comment: Right, they're the same because it's a single bit. You 'and' with a mask to get the bits you want, and you 'or' together the values. It's an old habit left over from my bit-twiddling days.
I guess the test could really be: have_fmt_spec = (oparg & FVS_MASK) == FVS_HAVE_SPEC; to make it more clear what I'm doing. It's easier to see the same thing with the FVC_MASK and FVC_* values, since that field is multiple bits. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25483> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com