Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3793
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: is there a difference between one line and many lines |
| Date | 2011-04-21 14:35 +0200 |
| Organization | None |
| References | <mailman.690.1303379762.9059.python-list@python.org> <4db01f72$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.699.1303389323.9059.python-list@python.org> (permalink) |
Steven D'Aprano wrote: > but: > >>>> a = 1001; b = 10001; a is b > False I would hope so ;) > The point is that Python is free to re-use immutable objects, or not re- > use them, as it sees fit. Indeed, and I even found a Python implementation on my harddisk that does what you intended to show: $ ipy IronPython 1.1.1 (1.1.1) on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. >>> a = 1001; b = 1001; a is b False
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 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-21 12:13 +0000
Re: is there a difference between one line and many lines Peter Otten <__peter__@web.de> - 2011-04-21 14:35 +0200
Re: is there a difference between one line and many lines Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-22 00:25 +0000
csiph-web