Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3783
| Date | 2011-04-21 12:19 +0200 |
|---|---|
| From | Heiko Wundram <modelnine@modelnine.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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.694.1303381164.9059.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Re: is there a difference between one line and many lines vino19 <vinograd19@gmail.com> - 2011-04-21 02:55 -0700 Re: is there a difference between one line and many lines Heiko Wundram <modelnine@modelnine.org> - 2011-04-21 11:59 +0200 Re: is there a difference between one line and many lines Chris Angelico <rosuav@gmail.com> - 2011-04-21 20:02 +1000 Re: is there a difference between one line and many lines Heiko Wundram <modelnine@modelnine.org> - 2011-04-21 12:19 +0200 Re: is there a difference between one line and many lines Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-04-21 12:39 +0200
csiph-web