Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.unit0.net!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'assignment': 0.07; 'assigning': 0.09; 'mutable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'itself.': 0.11; 'wed,': 0.15; 'box".': 0.16; 'message- id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'passes': 0.18; 'url:home': 0.18; 'changes': 0.20; '2015': 0.23; 'passing': 0.23; 'header:X -Complaints-To:1': 0.26; "doesn't": 0.28; 'argue': 0.29; 'function': 0.30; '-0700': 0.33; 'traditional': 0.33; 'changing': 0.34; 'definition': 0.34; 'subject:?': 0.34; 'wrong': 0.35; 'to:addr:python-list': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'rather': 0.38; 'received:org': 0.38; 'means': 0.39; 'to:addr:python.org': 0.39; 'easily': 0.39; 'some': 0.40; "you've": 0.61; 'within': 0.64; 'email addr:gmail.com': 0.64; 'box,': 0.67; 'proves': 0.84; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Can Python function return multiple data? Date: Wed, 03 Jun 2015 21:30:10 -0400 Organization: IISS Elusive Unicorn References: <3bbe49da-e989-4a8c-a8a9-75d3a786f508@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-73-119-127.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433381434 news.xs4all.nl 2952 [2001:888:2000:d::a6]:50339 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92017 On Wed, 3 Jun 2015 15:28:56 -0700 (PDT), sohcahtoa82@gmail.com declaimed the following: > >People actually argue that Python passes by value? This is easily proven wrong by passing a mutable object to a function and changing it within the function. Which only proves you passed a mutable object... Mutating the object means you've performed some operation that "goes inside the box". Try assigning a new object to it rather than mutating it... IE; don't go inside the box, but try to change the box itself. Doesn't carry out -- which is the traditional definition of pass-by-reference: assignment changes the passed-in-object. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/