[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block
Raymond Hettinger
report at bugs.python.org
Wed Jul 6 13:30:23 EDT 2016
Raymond Hettinger added the comment:
We really don't want to encourage any reliance on this optimization. It was put there only to help mitigate the performance impact of a common mistake.
I don't think subclasses warrant extended coverage. This was already a hack at the outer limits of how far we were willing to go. It doesn't make sense to propagate it further.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27458>
_______________________________________
More information about the Python-bugs-list
mailing list