New submission from Ethan Furman: `bytes` is a list of integers. Passing a single integer to `bytes()`, as in:
--> bytes(7) b'\x00\x00\x00\x00\x00\x00\x00' results in a bytes object containing that many zeroes. I propose that this behavior be deprecated for eventual removal, and a class method be created to take its place. ---------- components: Interpreter Core messages: 213242 nosy: ethan.furman priority: normal severity: normal status: open title: Add bytes.empty_buffer and deprecate bytes(17) for the same purpose type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20895> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com