
Dec. 21, 2022
5:21 a.m.
Christopher Barker writes:
But collections.UserString does exist -- so if you want to subclass, and performance isn't critical, then use that. Steven A pointed out that UserStrings are not instances of str though. I think THAT is a bug.
I guess, although surely the authors of that class thought about it. Anyway, this could probably be improved with a StringLike ABC (and we get to bikeshed whether bytes and bytecode are StringLike -- see ya, I'm outttahere!)