[issue20895] Add bytes.empty_buffer and deprecate bytes(17) for the same purpose

Serhiy Storchaka report at bugs.python.org
Sat Mar 15 07:01:44 CET 2014


Serhiy Storchaka added the comment:

AFAIK, bytes(int) is a remnant from times when bytes was mutable. Then bytes was split to non-mutable bytes and mutable bytearray and this constructor was forgotten. I'm +0 for deprecation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20895>
_______________________________________


More information about the Python-bugs-list mailing list