Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Erik Newsgroups: comp.lang.python Subject: Re: Weird list conversion Date: Sun, 13 Dec 2015 20:31:32 +0000 Lines: 9 Message-ID: References: <5926ced0-5b86-41f2-81e8-55cc6f71b78c@googlegroups.com> <3193bf38-82c3-4538-b500-5e23158898e6@googlegroups.com> <566DD4E0.50804@lucidity.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de p1NkOcwLwSEv1b5nYHNkOwIQwhpuKkvdgewWs3eoXb6w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'method,': 0.07; 'erik': 0.16; 'from:addr:python': 0.16; "objects'": 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'to:2**1': 0.21; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'subject:list': 0.26; 'list': 0.34; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'turn': 0.37; 'mean': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'called': 0.40; 'charset:windows-1252': 0.62; "class's": 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=LpJvsSpc c=1 sm=1 tr=0 a=Ypmeq7T0cKALDUsRPCToMg==:117 a=Ypmeq7T0cKALDUsRPCToMg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=N659UExz7-8A:10 a=C3qhboyITkQQRvOFFIgA:9 a=pILNOxqGKmIA:10 a=zNZ1Hbr-CasA:10 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <566DD4E0.50804@lucidity.plus.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100393 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.