Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Christopher Reimer Newsgroups: comp.lang.python Subject: Re: I'm wrong or Will we fix the ducks limp? Date: Fri, 03 Jun 2016 19:50:47 -0700 Lines: 20 Message-ID: References: <87mvn22veg.fsf@rudin.co.uk> <13108bea-6750-443b-bee8-0532aba8b338@googlegroups.com> <66e791bf-9ea2-499a-8490-db67a0d3ba61@googlegroups.com> <57523d93$0$1587$c3e8da3$5496439d@news.astraweb.com> <448b41e0-9719-e31f-e5b8-9bd81ef87e63@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de zloi5OokwHGmeR8qnNSEWgwzw2gmtPxEe5k+NNlCPJlA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'append': 0.07; 'correct.': 0.07; 'python': 0.10; '"hello': 0.16; '2016': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'uppercase': 0.16; 'wrote:': 0.16; 'string': 0.17; '>>>': 0.20; 'meant': 0.22; 'exists.': 0.22; 'am,': 0.23; 'sat,': 0.23; 'header:User-Agent:1': 0.26; 'example': 0.26; 'chris': 0.26; 'received:17': 0.27; 'received:10.0.0': 0.32; 'language.': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'received:10.0': 0.34; 'list': 0.34; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'method': 0.37; 'sure': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'header:MIME-version:1': 0.60; 'charset:windows-1252': 0.62; 'different': 0.63; 'world': 0.64; 'header:In-reply-to:1': 0.84 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-06-03_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1606040027 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-reply-to: <57523d93$0$1587$c3e8da3$5496439d@news.astraweb.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1465008644; bh=uV7LFyrUSc7zEltzrevg3sB0RHVuh+d/6mTbQqDj0OA=; h=Subject:To:From:Message-id:Date:MIME-version:Content-type; b=WI4pEiCXp60lavJs4FYvWLjKGkTgkWuUUgvI9IA8+NIC2JTNndNKHDO0s6FGHhP6J lGCm1OUHb2cVEaOuMgjf9FjSrwygfCdYOyvqAT1EYgDJ1xpJ4Pz/lSA+zrj3SzvR/s IqRCTqXVb5fu6fswildDyBbjhpNmZ1NPJXxxEcQONIlvXVRELT/XuAs6zeJrgqDBa4 gKLWcjtBAzlBlT+DzR25OkMPyzmk0UNeVEtQdBsywP/fzEMqkkSCriklO9MRoIZrGW LmiMR+CxO4lQ/tYJ608V2qudNtkn15TKda6SO9cMzuo7rSqWFENmU7Ra5LruZdRUcu sXTVbO1JdfMgg== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <448b41e0-9719-e31f-e5b8-9bd81ef87e63@icloud.com> X-Mailman-Original-References: <87mvn22veg.fsf@rudin.co.uk> <13108bea-6750-443b-bee8-0532aba8b338@googlegroups.com> <66e791bf-9ea2-499a-8490-db67a0d3ba61@googlegroups.com> <57523d93$0$1587$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:109464 On 6/3/2016 7:31 PM, Steven D'Aprano wrote: > On Sat, 4 Jun 2016 09:06 am, Sayth Renshaw wrote: > >> I cant create a list with an append method pf.append(thing) in one go . > Correct. You cannot append to a list until the list exists. > > Nor can you uppercase a string until the string exists: > > s = "hello world" > s = s.uppercase() >>> s = "hello world".upper() >>> print(s) HELLO WORLD This works in Python 3. Not sure if s.uppercase() was meant as an example for a different language. Chris R.