Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18455

Re: python philosophical question - strong vs duck typing

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'python.': 0.04; 'context': 0.04; 'definitions': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'typed': 0.07; 'python': 0.08; 'declarations': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'stating': 0.09; 'subject:python': 0.10; 'typing': 0.15; 'boils': 0.16; 'c++.': 0.16; 'ignores': 0.16; 'objects?': 0.16; 'reedy': 0.16; 'what?': 0.16; 'subject:question': 0.17; 'wrote:': 0.18; 'jan': 0.19; "haven't": 0.20; 'header:In-Reply-To:1': 0.22; 'statement': 0.23; 'static': 0.24; 'guess': 0.26; 'specifically': 0.27; 'problem': 0.29; 'pm,': 0.29; 'example': 0.29; 'definition': 0.30; 'confused': 0.30; 'context,': 0.30; 'words,': 0.32; 'actual': 0.32; 'objects': 0.32; 'header:User-Agent:1': 0.33; 'header:X -Complaints-To:1': 0.33; 'there': 0.33; 'to:addr:python-list': 0.34; 'it.': 0.34; 'question': 0.36; 'subject:skip:p 10': 0.37; 'but': 0.37; 'think': 0.37; 'could': 0.37; 'received:org': 0.38; 'hold': 0.38; 'strong': 0.39; 'to:addr:python.org': 0.40; 'might': 0.40; 'type': 0.61; 'claim': 0.76; 'continued': 0.80; 'opinion.': 0.84; 'preclude': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: python philosophical question - strong vs duck typing
Date Tue, 03 Jan 2012 16:42:47 -0500
References <CAOFf2a0dG1tR1-2sJnqCCGqVXocqvzGScGeDJXeXwKdfdvuT-Q@mail.gmail.com> <jdvovs$iri$1@dough.gmane.org> <CABicbJ+jQ7e7FD+2waKVS5F5-WwQCykTUh=h4Y=mE_0Pjep_2g@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <CABicbJ+jQ7e7FD+2waKVS5F5-WwQCykTUh=h4Y=mE_0Pjep_2g@mail.gmail.com>
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.4389.1325626995.27778.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1325626995 news.xs4all.nl 6901 [2001:888:2000:d::a6]:52010
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:18455

Show key headers only | View raw


On 1/3/2012 4:06 PM, Devin Jeanpierre wrote:
>> Python objects are strongly typed, in any sensible meaning of the term.
>
> There are people that hold definitions of strong typing that preclude
> Python. Those people think their definition is reasonable, but at the

Can you give an actual example of such a definition of 'strongly typed 
object' that excludes Python objects?

> same time haven't confused static typing with strong typing. I guess
> the problem is that this boils down to opinion, but you're stating it
> as incontrovertible fact.

This strikes me as petty hair-splitting.

1. By tacking on the qualification, I was acknowledging that someone, 
somewhere, might controvert it. If you allow for arbitrary redefinitions 
of words, you could claim that any statement is an opinion. So what?

2. It ignores the context established by the OP who began with 'Let's 
say we wanted to type strongly in Python' and continued with a question 
about declarations and compilation specifically to C or C++.

In that context, I think my statement qualifies as a fact.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python philosophical question - strong vs duck typing Terry Reedy <tjreedy@udel.edu> - 2012-01-03 16:42 -0500

csiph-web