class MyClass(object): def __init__(self, junk, data): self.junk = junk self.data = data obj = MyClass("junk", "data") l = [obj, obj] " ".join(l) // "data data"
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 9, in <module> TypeError: sequence item 0: expected str instance, MyClass found