]> granicus.if.org Git - python/commit
More bug 460020: lots of string optimizations inhibited for string
authorTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 02:18:30 +0000 (02:18 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 12 Sep 2001 02:18:30 +0000 (02:18 +0000)
commit8fa5dd0601ed48c534be96e6f1f3fe54d023d0a0
tree1cbc102532b6b71ed909390912cd806741a0444b
parentee0fe0b7433a20ab52d033363179d966ef789aef
More bug 460020:  lots of string optimizations inhibited for string
subclasses, all "the usual" ones (slicing etc), plus replace, translate,
ljust, rjust, center and strip.  I don't know how to be sure they've all
been caught.

Question:  Should we complain if someone tries to intern an instance of
a string subclass?  I hate to slow any code on those paths.
Lib/test/test_descr.py
Objects/stringobject.c