Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.064 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'python': 0.07; 'etc...': 0.09; 'received:10.2': 0.16; 'semantically': 0.16; 'stands.': 0.16; 'subject:between': 0.16; 'subject:lines': 0.16; 'two.': 0.16; 'header:In-Reply-To:1': 0.22; 'memory': 0.24; 'chris': 0.27; 'sorry,': 0.29; '---': 0.31; 'does': 0.31; 'to:addr:python-list': 0.32; 'asking': 0.32; '...': 0.32; 'lines': 0.34; 'decide': 0.34; 'difference': 0.35; 'there': 0.35; 'header:User-Agent:1': 0.35; 'running': 0.36; 'two': 0.37; 'depend': 0.38; 'locate': 0.38; 'happens': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'subject:line': 0.73; 'subject:one': 0.73; 'schrieb': 0.84; 'so:': 0.84; 'subject:there': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=modelnine.org; s=modelnine1012; t=1303381162; bh=eRjmADBrKWEGGFjU90wuwSBY6/O7r+Whq25o3JWiHOs=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Pdyu2IThczg5W0PRrUgRscOPSHBfT1VxS7sG7FRwzRsxt2pveybkL0DghaOAxPRYT pVpQkjzbjLG9ugfaezsFtPdjswnO3FuuLpEjlUPy8+6u+foTX/n47Rtc8bMbL2a3aV LGXgSEJxAn7bqReCUif91QbGwk1TrGmgGbPlFbuE= Date: Thu, 21 Apr 2011 12:19:18 +0200 From: Heiko Wundram User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: python-list@python.org Subject: Re: is there a difference between one line and many lines References: <23a890a7-aef1-4d5b-8dab-6e09c2792d4a@glegroupsg2000goo.googlegroups.com> <4DB00008.5060103@modelnine.org> In-Reply-To: <4DB00008.5060103@modelnine.org> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 13 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303381164 news.xs4all.nl 81482 [::ffff:82.94.164.166]:41482 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3783 Am 21.04.2011 11:59, schrieb Heiko Wundram: > Am 21.04.2011 11:55, schrieb vino19: >> I am asking about what happens in Python interpreter? Why is there a difference between running one line like "a=1;b=1" and two lines like "a=1 \n b=1"? Does it decide to locate memory in different types depend on a code? > > There is no difference between the two. > ... Erm, sorry, forget my post. I misread a=-6 as a-=6, etc... So: what Chris said. Anyway, there is semantically no difference between the two, and that stands. -- --- Heiko.