Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #3793
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| 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; 'indeed,': 0.07; 'python': 0.07; '>>>>': 0.09; 'ironpython': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '>>>': 0.12; 'wrote:': 0.14; 'immutable': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:t-dialin.net': 0.16; 'sees': 0.16; 'subject:between': 0.16; 'subject:lines': 0.16; 'objects,': 0.23; '.net': 0.25; 'from:addr:web.de': 0.31; 'does': 0.31; 'to:addr:python-list': 0.32; 'header:X-Complaints-To:1': 0.34; 'point': 0.35; 'steven': 0.38; 'them,': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'skip:2 10': 0.61; 'free': 0.62; 'copyright': 0.63; 'rights': 0.68; 'fit.': 0.73; 'subject:line': 0.73; 'subject:one': 0.73; 'reserved.': 0.79; 'subject:there': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Peter Otten <__peter__@web.de> |
| Subject | Re: is there a difference between one line and many lines |
| Date | Thu, 21 Apr 2011 14:35:25 +0200 |
| Organization | None |
| References | <mailman.690.1303379762.9059.python-list@python.org> <4db01f72$0$29978$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | p5084ba47.dip.t-dialin.net |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.699.1303389323.9059.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303389323 news.xs4all.nl 41110 [::ffff:82.94.164.166]:43714 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:3793 |
Show key headers only | View raw
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