From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: type access Parent'Class
Date: Tue, 22 Nov 2011 17:13:04 +0100
Date: 2011-11-22T17:13:05+01:00 [thread overview]
Message-ID: <4ecbca10$0$6574$9b4e6d93@newsspool3.arcor-online.net> (raw)
In-Reply-To: <m2zkfo8ey1.fsf@pushface.org>
On 22.11.11 14:27, Simon Wright wrote:
> Georg Bauhaus <rm.dash-bauhaus@futureapps.de> 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 <module>
newline(count=2)
TypeError: newline() got an unexpected keyword argument 'count'
next prev parent reply other threads:[~2011-11-22 16:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 19:03 type access Parent'Class Yukicanis
2011-11-21 19:25 ` Adam Beneschan
2011-11-21 19:40 ` Yukicanis
2011-11-21 19:45 ` Robert A Duff
2011-11-21 19:46 ` Yukicanis
2011-11-21 23:45 ` Gene
2011-11-22 8:42 ` Dmitry A. Kazakov
2011-11-22 10:07 ` Georg Bauhaus
2011-11-22 13:27 ` Simon Wright
2011-11-22 16:13 ` Georg Bauhaus [this message]
2011-11-21 19:33 ` Robert A Duff
2011-11-21 19:44 ` Yukicanis
2011-11-24 10:33 ` Yannick Duchêne (Hibou57)
2011-11-24 11:18 ` Yukicanis
2011-11-21 21:09 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox