Weird list conversion

Erik python at lucidity.plus.com
Sun Dec 13 15:31:32 EST 2015


On 13/12/15 20:28, Erik wrote:
> When you call "print", then the list class's __repr__() method is called
> which in turn calls the contained objects' __repr__() methods in turn

I mean the __str__() method, not __repr__() in this case - however, the 
answer is otherwise the same.

E.




More information about the Python-list mailing list