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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'method,': 0.07; 'subject:based': 0.07; 'weak': 0.09; 'am,': 0.12; 'float': 0.13; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'typing': 0.15; 'drawn': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mistake.': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'syntax': 0.16; 'language': 0.17; 'wrote:': 0.18; 'int': 0.18; 'perl': 0.18; 'dec': 0.22; '(or': 0.22; 'header:In-Reply-To:1': 0.22; 'string': 0.24; 'there.': 0.24; '(and': 0.28; 'message- id:@mail.gmail.com': 0.28; 'usual': 0.29; 'stronger': 0.30; 'sun,': 0.30; 'usually': 0.31; 'rather': 0.33; 'object': 0.33; 'to:addr:python-list': 0.34; 'anything': 0.34; 'subject:/': 0.35; 'test': 0.35; 'convenient': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'steven': 0.38; 'received:209.85': 0.38; "i'd": 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'results': 0.63; 'believe': 0.65 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; bh=vbNZdMlHbauOPSmFw+Hjdy/JWJkwn+hazTOnrnrc3Q0=; b=SoP28FfezmZq2Ne7GFwoWw6uPxq5rg91TOVnly3eIms9x2wRZ3i07PoaT/M8hUQ6mV KQcSfw7eo1OL9Tl0MsgBSyjWvIQt+Ym7w9H/QbvtPxpp1VFLLjH/i26r5DyG9SCCoLBV lhx4VnlZ/GF4hLgaqpkhaiJaDJ7W6A02JM3V0= MIME-Version: 1.0 In-Reply-To: <4eed3b00$0$29979$c3e8da3$5496439d@news.astraweb.com> References: <841f4d29-f50b-4b0b-912b-b497fb6e60ec@t16g2000vba.googlegroups.com> <4eed3b00$0$29979$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 18 Dec 2011 13:45:35 +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 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324176337 news.xs4all.nl 6850 [2001:888:2000:d::a6]:36956 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17424 On Sun, Dec 18, 2011 at 11:59 AM, Steven D'Aprano wrote: > The usual test of a weakly-typed language is that "1"+1 succeeds (and > usually gives 2), as in Perl but not Python. I believe you are confusing > weak typing with dynamic typing, a common mistake. I'd go stronger than "usually" there. If "1"+1 results in "11", then that's not weak typing but rather a convenient syntax for stringification - if every object can (or must) provide a to-string method, and concatenating anything to a string causes it to be stringified, then it's still strongly typed. Or is a rich set of automated type-conversion functions evidence of weak typing? And if so, then where is the line drawn - is upcasting of int to float weak? ChrisA