[issue17530] pprint could use line continuation for long bytes literals
Antoine Pitrou
report at bugs.python.org
Mon Apr 15 16:11:03 CEST 2013
Antoine Pitrou added the comment:
I don't understand why you say that "bytes literals require a continuation character":
>>> (b"x"
... b"y")
b'xy'
>>> [b"x"
... b"y"]
[b'xy']
I think the "len caching" is a misoptimization, it's useless here (most CPU time will be sent creating and wrapping the representation).
Also perhaps it would be nice to refactor things a bit, since we have both _str_parts and _bytes_parts used in exactly the same way (but that can also be done later).
As for the doc, the example would probably deserve to be a bit more "meaningful" :-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17530>
_______________________________________
More information about the Python-bugs-list
mailing list