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!) _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/2M3UWBJDFOROYURIAWTIZ23WRVLIWHHG/ Code of Conduct: http://python.org/psf/codeofconduct/
