Mark Dickinson added the comment:

Many of those applications are really for bitstrings (chess bitboards, hamming 
distance), which aren't really the same thing as integers.

Nice find for the mathmodule.c case. I'd forgotten about that one (though 
according to git blame, apparently I'm responsible for checking it in). It's a 
fairly obscure corner case, though.

Overall, I'm -1 on adding this: I don't think it meets the bar of being useful 
enough to justify the extra method. I'd suggest that people needing this kind 
of efficient bitstring operation use a 3rd-party bitstring library instead.

----------

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

Reply via email to