I would like to know if there is a better way to print all objects in a Python list than this :
myList = [Person(\"Foo\"), Person(\"Bar\")] print(\"\\n\".joi
I think this is the most convenient if you just want to see the content in the list:
myList = ['foo', 'bar'] print('myList is %s' % str(myList))
Simple, easy to read and can be used together with format string.