Greg Ewing a écrit : > Why not just support bitwise operations directly > on the bytes object? >
Sure, what counts is that all the nice features that Python has for editing binary data are usable with the bytes object. These include bitwise operations, hex() and oct() representation functions and litterals, the struct module (as Paul Svensson kindly reminded me). Do I forget something ? _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com