Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '34,': 0.09; 'def': 0.12; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'wrote:': 0.18; 'print': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'am,': 0.29; 'subject:?': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Sat, 29 Jun 2013 12:36:40 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Closures in leu of pointers? References: <2a2072e3-4b12-4ada-872c-1240d2379928@googlegroups.com> <2603336f-e9d2-441a-8535-957d8fec2002@googlegroups.com> <51CEE78F.8030502@gmail.com> In-Reply-To: <51CEE78F.8030502@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372531006 news.xs4all.nl 15925 [2001:888:2000:d::a6]:39291 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49440 On 06/29/2013 07:56 AM, Michael Torrie wrote: > x = [ 34, ] > > def test_func( out ): > out[0] += 12 > > test_func(x) > > print (x) Well, actually print (x[0])