Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16266
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <alex.kapps@web.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'cpython': 0.05; 'memory.': 0.05; 'function,': 0.07; 'message-id:@web.de': 0.09; 'of)': 0.09; 'operator,': 0.09; '"=="': 0.16; '"is"': 0.16; 'received:10.249': 0.16; 'subject:() ': 0.16; 'subject:function': 0.16; 'wrote:': 0.18; 'memory': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'from:addr:web.de': 0.23; 'function': 0.27; '(and': 0.28; 'addresses.': 0.31; 'cases': 0.32; 'objects': 0.32; 'implement': 0.32; 'header:User-Agent:1': 0.33; 'object': 0.33; 'to:addr :python-list': 0.34; 'vs.': 0.34; 'answers': 0.38; "i'd": 0.39; 'received:de': 0.39; 'should': 0.39; "it's": 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'candide': 0.84; 'difference.': 0.84; 'following.': 0.91 |
| Date | Sat, 26 Nov 2011 23:38:26 +0100 |
| From | Alexander Kapps <alex.kapps@web.de> |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Pragmatics of the standard is() function |
| References | <4ed15825$0$21841$426a34cc@news.free.fr> |
| In-Reply-To | <4ed15825$0$21841$426a34cc@news.free.fr> |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:ryshUn4xQsaIXU5jzaueuiHI3jH3LCp46rKWk+jhJ1p IaiNa5DnFrVY4k4ps8hNMfpFq2K2axyLdfOPCtp1ijTUwaBTF8 23GRK5oS5AOgFpKGYlithL6t2ytUjwYfCxX/DvMxskx4wkqQm5 c4zBKZSOyslWH47k9UinMwV1xJGfw22YVKNVxu25CPMePrs5lQ FwSnaqTc8Qhk7IOuXTH0Q== |
| 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.3061.1322347054.27778.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1322347054 news.xs4all.nl 6906 [2001:888:2000:d::a6]:34512 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:16266 |
Show key headers only | View raw
On 26.11.2011 22:20, candide wrote: You already got answers for the "is" vs. "==" difference. I'd like to add the following. > In which cases should we use the is() function ? "is" is not a function, It's an operator, just like == or +. > is() function makes comparaison of (abstract representation of) > adresses of objects in memory. That's an implementation detail. CPython (and maybe others) implement "is" in terms of memory addresses. Other implementations might use an object ID number or whatever else.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pragmatics of the standard is() function candide <candide@free.invalid> - 2011-11-26 22:20 +0100
Re: Pragmatics of the standard is() function Roy Smith <roy@panix.com> - 2011-11-26 16:32 -0500
Re: Pragmatics of the standard is() function Chris Angelico <rosuav@gmail.com> - 2011-11-27 09:22 +1100
Re: Pragmatics of the standard is() function Alexander Kapps <alex.kapps@web.de> - 2011-11-26 23:38 +0100
Re: Pragmatics of the standard is() function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-26 23:01 +0000
Re: Pragmatics of the is operator candide <candide@free.invalid> - 2011-11-27 02:42 +0100
Re: Pragmatics of the is operator Chris Angelico <rosuav@gmail.com> - 2011-11-27 12:50 +1100
Re: Pragmatics of the is operator Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-27 03:13 +0000
Re: Pragmatics of the standard is() function Den <patentsvnc@gmail.com> - 2011-11-28 11:22 -0800
Re: Pragmatics of the standard is() function Ethan Furman <ethan@stoneleaf.us> - 2011-11-28 12:05 -0800
Re: Pragmatics of the standard is() function alex23 <wuwei23@gmail.com> - 2011-11-28 19:58 -0800
Re: Pragmatics of the standard is() function Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-11-29 08:41 +0000
Re: Pragmatics of the standard is() function Den <patentsvnc@gmail.com> - 2011-11-29 09:11 -0800
Re: Pragmatics of the standard is() function Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-11-28 13:57 +0100
csiph-web