Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'value,': 0.03; 'modify': 0.04; 'subject:Python': 0.05; 'mutable': 0.09; 'received:internal': 0.09; 'python': 0.11; 'wed,': 0.15; 'java,': 0.15; 'happily': 0.16; 'list)': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'pointers,': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'sits': 0.16; 'wrote:': 0.16; 'passes': 0.18; 'lawrence': 0.22; 'pass': 0.22; 'passing': 0.23; "python's": 0.23; 'header:In-Reply- To:1': 0.24; '(such': 0.27; 'function': 0.30; 'allows': 0.30; 'values': 0.30; 'usually': 0.33; 'subject:?': 0.34; 'to:addr :python-list': 0.35; 'but': 0.36; 'received:10': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'space': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'mark': 0.40; 'back': 0.61; 'from:no real name:2**0': 0.61; 'high': 0.62; 'header :Message-Id:1': 0.62; 'technically': 0.91 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=3JqfrzpYDi205R+LTnI4GfZLBCs=; b=emVkgi 94dhLRkRFlbX4PadSZH8IU7T4y9nc/6WNuCa0j2VrIikQGVQL3+z7Ab808ufS+IF lanuveNPDnkoFMc9uVM6WF4I0v9H10a/q4TH8m1FxcBnqn7lhG6xLZQ80c6SSzLf eFTfzl1QSfpySUcm/PnxOkmYN04+3kAnsxXK0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=3JqfrzpYDi205R+ LTnI4GfZLBCs=; b=orpDhTyYlW1SVu43ertNIjDXqglpKgZ7e6dbDHAmRUyIFws +YsvSHpNJRU/e4IKHDzLG/3Ka2IUSJc5kDqbK5ZWHDgvE6AeTp63A2tj0aQ/gUvQ bx6uyQ6CFLeHNgdEaWZrA5zAaxK770njz+4kpcfn8d3aCaxToMmEivWPHQNA= X-Sasl-Enc: uJRrziuyrVJkHbIEjiKQ8qQi5SsZYi0Aq0La1P/8TfFH 1433394115 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-073992ec In-Reply-To: References: <3bbe49da-e989-4a8c-a8a9-75d3a786f508@googlegroups.com> Subject: Re: Can Python function return multiple data? Date: Thu, 04 Jun 2015 01:01:55 -0400 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433394118 news.xs4all.nl 2866 [2001:888:2000:d::a6]:57361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92027 On Wed, Jun 3, 2015, at 17:56, Mark Lawrence wrote: > Now does Python pass by value or by reference? Happily sits back and > waits for 10**6 emails to arrive as this is discussed for the 10**6th > time. Python's in that same awkward space as Java, where it technically passes by value, but the values are usually pointers, so passing a mutable object (such as a list) allows the function to modify the caller's state in a way that many people associate exclusively with by-reference. Have I hit all the high points?