Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105687
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Albert-Jan Roskam <sjeik_appie@hotmail.com> |
| Newsgroups | comp.lang.python |
| Subject | RE: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python |
| Date | Fri, 25 Mar 2016 13:03:05 +0000 |
| Lines | 18 |
| Message-ID | <mailman.2.1458911053.28225.python-list@python.org> (permalink) |
| References | <nb6aqh$dp5$1@ger.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="windows-1256" |
| Content-Transfer-Encoding | base64 |
| X-Trace | news.uni-berlin.de OxX9LHMPvAtYnpyMrh6DDghjzFL/KiBbtM2FZt66bE6g== |
| Return-Path | <sjeik_appie@hotmail.com> |
| 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; 'subject:Python': 0.05; 'one?': 0.05; 'objects,': 0.07; 'none.': 0.09; 'objects.': 0.09; 'variables,': 0.09; 'python': 0.10; 'wed,': 0.15; 'argument': 0.15; 'variables': 0.15; '"is"': 0.16; "(it's": 0.16; '2016': 0.16; ':))': 0.16; 'caching': 0.16; 'dio': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'to:addr:web.de': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; '>': 0.18; 'to:2**1': 0.21; 'names.': 0.22; 'header:In-Reply-To:1': 0.24; '+0100': 0.27; 'consistency': 0.29; 'expose': 0.29; 'party,': 0.29; 'objects': 0.29; 'date:': 0.31; 'false': 0.35; 'identity': 0.35; 'subject:': 0.35; 'according': 0.36; 'but': 0.36; 'should': 0.36; 'email addr:python.org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'late': 0.38; 'names': 0.38; 'someone': 0.38; 'does': 0.39; 'from:': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'hello,': 0.40; 'behavior': 0.61; 'subject: ': 0.61; 'mar': 0.65; 'email name:python-list': 0.67; 'charset:windows-1256': 0.67; 'salvatore': 0.84 |
| X-TMN | [K7ngWhh+7GLniLknVARXq5VEi4vz9kqc] |
| X-Originating-Email | [sjeik_appie@hotmail.com] |
| Importance | Normal |
| In-Reply-To | <nb6aqh$dp5$1@ger.gmane.org> |
| X-OriginalArrivalTime | 25 Mar 2016 13:03:06.0273 (UTC) FILETIME=[AC338910:01D18696] |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:105687 |
Show key headers only | View raw
> To: python-list@python.org > From: __peter__@web.de > Subject: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python > Date: Wed, 2 Mar 2016 10:12:48 +0100 > > Salvatore DI DIO wrote: > > > Hello, > > > > I know Python does not have variables, but names. > > Multiple names cant then be bound to the same objects. > > > > So this behavior > > > >>>> b = 234 > >>>> v = 234 > >>>> b is v > > True > > > > according to the above that is ok > > > > > > > > But where is the consistency ? if I try : > > > >>>> v = 890 > >>>> w = 890 > >>>> v is w > > False > > > > It is a little difficult to explain this behavior to a newcommer in Python > > > > Can someone give me the right argument to expose ? > > You should not bother with object identity for objects other than None. A little late to the party, but: how about Ellipsis? Shouldn't "is" also be used for that one? (It's rare, I know :)) Albert-Jan
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Explaining names vs variables in Python Salvatore DI DIO <salvatore.didio@gmail.com> - 2016-03-02 00:32 -0800
Re: Explaining names vs variables in Python Jesper K Brogaard <jesper@brogAAaard.eu> - 2016-03-02 10:03 +0100
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-02 21:32 +1100
Re: Explaining names vs variables in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-02 14:34 +0200
Re: Explaining names vs variables in Python Chris Angelico <rosuav@gmail.com> - 2016-03-02 23:50 +1100
Re: Explaining names vs variables in Python Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-02 15:11 +0200
Re: Explaining names vs variables in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-02 15:39 +0200
Re: Explaining names vs variables in Python Chris Angelico <rosuav@gmail.com> - 2016-03-03 00:48 +1100
Re: Explaining names vs variables in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-02 16:11 +0200
Re: Explaining names vs variables in Python Rustom Mody <rustompmody@gmail.com> - 2016-03-02 07:08 -0800
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-03 04:23 +1100
Re: Explaining names vs variables in Python Rustom Mody <rustompmody@gmail.com> - 2016-03-02 09:28 -0800
Re: Explaining names vs variables in Python Marko Rauhamaa <marko@pacujo.net> - 2016-03-02 20:12 +0200
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-03 12:52 +1100
Re: Explaining names vs variables in Python Rustom Mody <rustompmody@gmail.com> - 2016-03-03 09:03 -0800
Re: Explaining names vs variables in Python Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-03 12:53 -0700
Re: Explaining names vs variables in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-02 21:49 +0000
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-03 13:05 +1100
Re: Explaining names vs variables in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-03 16:09 +0000
Re: Explaining names vs variables in Python Chris Angelico <rosuav@gmail.com> - 2016-03-03 08:52 +1100
Re: Explaining names vs variables in Python Rustom Mody <rustompmody@gmail.com> - 2016-03-02 17:23 -0800
Re: Explaining names vs variables in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-02 22:51 +0000
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-03 04:10 +1100
Re: Explaining names vs variables in Python Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-03-02 10:08 +0100
Effects of caching frequently used objects, was Re: Explaining names vs variables in Python Peter Otten <__peter__@web.de> - 2016-03-02 10:12 +0100
Re: Explaining names vs variables in Python Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-02 11:35 +0200
Re: Explaining names vs variables in Python Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-02 08:13 -0700
Re: Explaining names vs variables in Python Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-02 17:37 +0200
Re: Explaining names vs variables in Python Steven D'Aprano <steve@pearwood.info> - 2016-03-02 21:16 +1100
Re: Explaining names vs variables in Python "ast" <nomail@invalid.com> - 2016-03-02 11:52 +0100
Re: Explaining names vs variables in Python Salvatore DI DIO <salvatore.didio@gmail.com> - 2016-03-02 02:58 -0800
Re: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-02 09:16 -0500
Re: Explaining names vs variables in Python Ben Finney <ben+python@benfinney.id.au> - 2016-03-03 04:53 +1100
RE: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2016-03-25 13:03 +0000
Re: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python Chris Angelico <rosuav@gmail.com> - 2016-03-26 00:22 +1100
Re: Effects of caching frequently used objects, was Re: Explaining names vs variables in Python Ethan Furman <ethan@stoneleaf.us> - 2016-03-25 09:45 -0700
csiph-web