[issue27492] Enhance bytearray_repr with bytes_repr's logic
Serhiy Storchaka
report at bugs.python.org
Tue Jul 12 08:59:00 EDT 2016
Serhiy Storchaka added the comment:
Bytes and bytearray share a much of code. I think it is possible to share the implementation of reprs. Just add two functions in bytes_methods.c: one counts the size of the repr and determines the quote, and other writes the content of the repr in preallocated buffer.
----------
versions: -Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27492>
_______________________________________
More information about the Python-bugs-list
mailing list