Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'float': 0.07; 'skip:u 30': 0.07; 'statically': 0.07; 'tries': 0.07; 'string': 0.09; 'conversions': 0.09; 'falls': 0.09; 'received:internal': 0.09; 'runtime': 0.09; 'typed': 0.09; 'python': 0.11; 'jan': 0.12; 'language,': 0.12; 'language.': 0.14; 'coerced': 0.16; 'coercion': 0.16; 'expect,': 0.16; 'function?': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'rules.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'rules': 0.22; 'mathematical': 0.24; 'math': 0.24; 'define': 0.26; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'converting': 0.30; 'see,': 0.30; 'closer': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'languages': 0.32; 'received:66': 0.35; 'agree': 0.35; 'definition': 0.35; 'usual': 0.35; 'but': 0.35; 'there': 0.35; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'according': 0.40; 'ensure': 0.60; 'even': 0.60; 'most': 0.60; 'from:no real name:2**0': 0.61; 'matter': 0.61; 'header:Message-Id:1': 0.63; 'personal': 0.63; 'subject:! ': 0.74; 'end.': 0.84; 'hand,': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=9rwEuOkHjYVNG3ekP2raVsZ+taM=; b=aKxO 6Vq7arzHS46WrDrtRkVERZsrtJ++DZdcSugkFScwOAru51aqNwYxboDAoxAYgt/s pLo/SXYxJYaaPNtodmOot5CAqzIvN+X7u93DyA37kj9YgX1kwiHJ6OKO/8MUL0Mr coKWjAdNaPBh3Qh6PI/pnyOE16MYvYw9W0B77Tc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=9rwEuOkHjYVNG3ekP2raVsZ+ taM=; b=UxXEMHBwRWH0NHj1SMWSG8tf4IbAFPUFGytRV5HxIYC0U0+LZBQAZbyc +fPn2wbz/StKxTHM55ubrhDBCjryZD3TeUhBvmeYICLD5z+KLUFc+IQQlI49eO4W xKoNyM+pH2cDt4Wl/KVG1TORD0f8go4jh7yy0Jr5hA13FIbJsDQ= X-Sasl-Enc: 268N5IwecoSD8mH2LJV6NZICl1Qr+QnRAar4vC2uBypI 1422555828 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-46f3f2c7 In-Reply-To: <54ca583e$0$13005$c3e8da3$5496439d@news.astraweb.com> References: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> <1939680766443642112.878725sturla.molden-gmail.com@news.gmane.org> <6eb91c4b-92ff-44a8-b5a9-6ef04c71f4cb@googlegroups.com> <35a40ec6-3763-448b-9ea4-4a233a04979b@googlegroups.com> <54c1ccc8$0$13005$c3e8da3$5496439d@news.astraweb.com> <54c6d7c2$0$12992$c3e8da3$5496439d@news.astraweb.com> <54c83ab4$0$12982$c3e8da3$5496439d@news.astraweb.com> <54ca583e$0$13005$c3e8da3$5496439d@news.astraweb.com> Subject: Re: Python is DOOMED! Again! Date: Thu, 29 Jan 2015 13:23:48 -0500 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422555831 news.xs4all.nl 2866 [2001:888:2000:d::a6]:55096 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84833 On Thu, Jan 29, 2015, at 10:56, Steven D'Aprano wrote: > Bar language, on the other hand, tries extremely hard to ensure that > every > type is automatically able to be coerced into every other type. The > coercion might not do what you expect, but it will do *something*: See, this is where the concept falls apart. Many people will define a dynamically-typed language as weakly-typed *only if* the result of the automatic type coercion is unexpected/distasteful/fattening, even if it is well-defined and predictable according to the rules of the language. Which makes it a matter of personal taste. > Bar will never give you a TypeError. I think we can agree that Bar is a > *very weakly typed* language. Statically typed lanugages by definition can never give you a TypeError - there are no runtime conversions that can succeed or fail based on the type of the arguments. What makes a statically typed language strong or weak? Are statically typed languages always weak? > > There are degrees of strength, and I think that Python comes closer to > the > Foo end than the Bar end. There are few automatic coercions, and most of > those are in the numeric tower according to the usual mathematical rules. Why is converting an int to a float when passed to a math function better than converting any object to a string when passed to a string function?