[Python-ideas] Bitwise operations on bytes class

Guido van Rossum guido at python.org
Mon Jun 16 22:21:51 CEST 2014


As additional input to thsi discussion I would like to remind you all that
it's not a good idea to have every operator apply to every data type, as
this increases the chances that bugs percolate up to a point where it's
hard to figure out where an unexpected value was generated. IOW, just
because there's no current meaning for e.g. b^b, that doesn't necessarily
make it a good idea to add one. (There are other arguments from language
usability against adding new operations indiscriminately, but this in
particular jumped out at me.)

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140616/673a3c80/attachment.html>


More information about the Python-ideas mailing list