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!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:based': 0.07; 'const': 0.09; 'prevents': 0.09; 'received:209.85.210.174': 0.13; 'received:mail-iy0-f174.google.com': 0.13; 'c++.': 0.16; 'compiler,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'int.': 0.16; 'roy': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'worth.': 0.16; 'language': 0.17; 'wrote:': 0.18; 'memory': 0.21; 'dec': 0.22; 'header:In-Reply- To:1': 0.22; 'literal': 0.23; 'string': 0.24; '(in': 0.26; 'compare': 0.28; 'message-id:@mail.gmail.com': 0.28; 'pm,': 0.29; 'sun,': 0.30; 'to:addr:python-list': 0.34; 'it.': 0.34; 'subject:/': 0.35; 'equal': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'think': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'type': 0.61; '2011': 0.61; 'happen': 0.61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=N6sh7Rci3VQXv7mA2GC6Gx4y2Gv0rPVk5wmS4c+y4VE=; b=USF3twcuWtEy0UVdLyk7lmCHhwxd+DVM/1QHapUkJKPhvwiEX7/HOeTPXgxG7ZsiDC JywbRsaTvHGdRb5DPsU+yPSUo9Kztld0WFOHjo4SqImjWDlFIcw81juY3q87COm+Ylxl 38LlBsRfqpELGJqT9iXtCy6oapQPvdmvhl1pc= MIME-Version: 1.0 In-Reply-To: References: <841f4d29-f50b-4b0b-912b-b497fb6e60ec@t16g2000vba.googlegroups.com> <4eed3b00$0$29979$c3e8da3$5496439d@news.astraweb.com> <4eed5eef$0$29979$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 18 Dec 2011 15:05:33 +1100 Subject: Re: Pythonification of the asterisk-based collection packing/unpacking syntax From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324181136 news.xs4all.nl 6979 [2001:888:2000:d::a6]:60166 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17431 On Sun, Dec 18, 2011 at 2:59 PM, Roy Smith wrote: > It is possible for 1 + "one" to be equal to 2 in C or C++. =A0All it take= s > is for the string literal to be located at memory location 1. =A0Not > likely, but nothing in the language prevents it. Not quite; 1 + "one" will be "ne", which might happen to be at memory location 2. The data type is going to be char* (or, in a modern compiler, const char*), not int. That said, though, I think that (in this obscure circumstance) it would compare equal with 2. For what that's worth. :) ChrisA