From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dfdb3e9be36e818e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.101.175.36 with SMTP id c36mr6318525anp.5.1321978386295; Tue, 22 Nov 2011 08:13:06 -0800 (PST) Path: lh20ni5807pbb.0!nntp.google.com!news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 22 Nov 2011 17:13:04 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: type access Parent'Class References: <7fd768a4-f97b-4045-8bab-49d2a3897a61@p2g2000vbj.googlegroups.com> <558f254a-1ae9-4f22-9430-5f110ae595b1@f29g2000yqa.googlegroups.com> <7x8041w45wfm$.12ihj5s949bvb.dlg@40tude.net> <4ecb7463$0$6643$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Message-ID: <4ecbca10$0$6574$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 22 Nov 2011 17:13:05 CET NNTP-Posting-Host: dbc613da.newsspool3.arcor-online.net X-Trace: DXC=WKdPe6^ZP8F@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA8kFJLh>_cHTX3jMf32Som_a_UI X-Complaints-To: usenet-abuse@arcor.de Xref: news2.google.com comp.lang.ada:14519 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2011-11-22T17:13:05+01:00 List-Id: On 22.11.11 14:27, Simon Wright wrote: > Georg Bauhaus writes: > >> Right now I am seeing, again, what it means to rewrite portions of a >> program when there is no static type system (and no parameter naming). > > I can see your point if you mean no parameter _typing_ ... Yes, though both static typing and naming of parameters will have an effect, insofar as the Python interpreter will report a type error in case I mistype a parameter name. Pylint will catch the error at "compile time": $ cat catch.py def newline(times=1): for run in range(times): print newline() newline(count=2) $ pylint --errors-only catch.py No config file found, using default configuration ************* Module catch E: 7: Passing unexpected keyword argument 'count' in function call $ python catch.py Traceback (most recent call last): File "catch.py", line 7, in newline(count=2) TypeError: newline() got an unexpected keyword argument 'count'