fork download
  1. class MyClass(object):
  2. def __init__(self, junk, data):
  3. self.junk = junk
  4. self.data = data
  5.  
  6. obj = MyClass("junk", "data")
  7. l = [obj, obj]
  8.  
  9. " ".join(l) // "data data"
Runtime error #stdin #stdout #stderr 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 9, in <module>
TypeError: sequence item 0: expected str instance, MyClass found