-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed as not planned
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
from collections import UserString
class Str(UserString):
def __init__(self, s):
self.data = s
s = Str("abc")
s2 = Str("def")
print(s)
print(" ".join([s, s2]))Output:
abc
Traceback (most recent call last):
File "/tmp/s.py", line 11, in <module>
print(" ".join([s, s2]))
^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, Str foundCPython versions tested on:
3.12
Operating systems tested on:
Linux
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement