Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.04; 'thread,': 0.04; 'suppose': 0.05; 'disagree': 0.07; 'subject:based': 0.07; 'const': 0.09; 'content- type:multipart/signed': 0.09; 'either.': 0.09; 'false,': 0.09; 'filename:fname piece:signature': 0.09; 'noted,': 0.09; 'pointer.': 0.09; 'weak': 0.09; 'thanks!': 0.14; 'typing': 0.15; 'compiler,': 0.16; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'int.': 0.16; 'list!': 0.16; 'mean,': 0.16; 'multiplies': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; "wouldn't": 0.17; 'language': 0.17; 'wrote:': 0.18; 'phrase': 0.18; 'that?': 0.18; 'convert': 0.19; 'seems': 0.20; 'memory': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; '(in': 0.26; "i'm": 0.26; 'function': 0.27; "wasn't": 0.28; 'bit': 0.28; 'keeps': 0.30; 'false.': 0.30; '(the': 0.30; 'chris': 0.30; 'least': 0.30; 'quite': 0.32; 'does': 0.32; 'from,': 0.32; 'list': 0.32; 'error.': 0.32; 'me?': 0.32; 'header:User-Agent:1': 0.33; 'there': 0.33; 'object': 0.33; 'to:addr:python-list': 0.34; 'curious': 0.34; 'sense,': 0.34; 'operations': 0.35; 'towards': 0.35; 'running': 0.35; 'subject:/': 0.35; 'moving': 0.35; 'especially': 0.35; 'url:python': 0.36; 'however,': 0.36; 'post': 0.36; 'archives:': 0.37; 'suddenly': 0.37; 'url:pipermail': 0.37; 'but': 0.37; 'received:192': 0.37; 'think': 0.37; 'received:128': 0.37; 'could': 0.37; 'received:192.168.0': 0.38; "i'd": 0.39; 'url:org': 0.39; 'should': 0.39; 'strong': 0.39; "it's": 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'received:192.168': 0.40; 'more': 0.61; 'type': 0.61; 'types': 0.61; 'your': 0.61; 'happen': 0.61; 'provided': 0.62; 'delivered': 0.69; 'become': 0.69; "'1'": 0.84; '[1,2]': 0.84; 'subjective': 0.84; 'this...': 0.84; 'subject:\t': 0.93 Date: Sat, 17 Dec 2011 22:43:16 -0600 From: Evan Driscoll User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Pythonification of the asterisk-based collection packing/unpacking syntax References: <841f4d29-f50b-4b0b-912b-b497fb6e60ec@t16g2000vba.googlegroups.com> <4eed3b00$0$29979$c3e8da3$5496439d@news.astraweb.com> <4EED57E5.2020900@wisc.edu> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig02C001BF30496CAE1DA15080" 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: 65 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324183485 news.xs4all.nl 6871 [2001:888:2000:d::a6]:33829 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17433 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig02C001BF30496CAE1DA15080 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/17/2011 21:42, Chris Angelico wrote: > Welcome to the list! If you're curious as to what's happened, check > the archives: > http://mail.python.org/pipermail/python-list/ Thanks! Incidentally, is there a good way to respond to the original post in this thread, considering it wasn't delivered to me? > But [1,2]*2 is operator overloading. The language doesn't quietly > convert [1,2] into a number and multiply that by 2, it keeps it as a > list and multiplies the list by 2. > > Allowing 1 < True is weaker typing. It should be noted, however, that > "1 < True" is False, and "1 > True" is also False. The comparison > doesn't make much sense, but it's not an error. I see where you're coming from, especially as I wouldn't consider overloading a function on types (in a language where that phrase makes sense) moving towards weak typing either. Or at least I wouldn't have before this discussion... At the same time, it seems a bit implementationy. I mean, suppose '1' were an object and implemented __lt__. Does it suddenly become not weak typing because of that? (The other thing is that I think strong vs weak is more subjective than many of the other measures. Is '1 < True' or '"1"+1' weaker? I think it has a lot to do with how the operations provided by the language play to your expectations.) On 12/17/2011 22:05, Chris Angelico wrote: > 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.=20 I'm not quite sure I'd say that it could be 2, exactly, but I definitely disagree with this... after running 'int x =3D 5, *p =3D &x' would you sa= y that "p is 5"? (Assume &x !=3D 5.) 1+"one" *points to* "ne", but it's still a pointer. Evan --------------enig02C001BF30496CAE1DA15080 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJO7W9kAAoJEAOzoR8eZTzgj6wH/0NGvt3ENA62bRVoA0hIeMm6 HQNcx8F5IvPIscLpD5pbUdLk3QHHNdZWk4RDTemDW16SIJfmxxyQG64Kt9uc8LHw kORW7AnUZl9x+zBsB8XBU8nfAJrKvGEoum1RBaq8MxAkBEkLqZoWK8+y67iAR4eI fg3iFwZ6UPJFt/8dUjC7rIKAVWtXuzI2WU4ojXNn7s4KIbktL5dJij5wdKAe0id2 ZKmh49WzocnY7saZTSrodW4mtfDppc+tyyd1BLnjXM5fIHaIYRTywdO/Rj7OfpN1 QdM56MdJgFMSO6SRfZHAToXhCmJKTJ80STz1yAqm80Y87klITe9K/gDNTPE3Fbc= =Ee7m -----END PGP SIGNATURE----- --------------enig02C001BF30496CAE1DA15080--