On 02/10/2013 11:15, Oscar Benjamin wrote:
On 2 October 2013 00:45, Rotwang <sg...@hotmail.co.uk> wrote:

So the upside of duck-typing is clear. But as you've already discovered, so
is the downside: Python's dynamic nature means that there's no way for the
interpreter to know what kind of arguments a function will accept, and so a
user of any function relies on the function having clear documentation.

It is still necessary to document the arguments of functions in
explicitly typed languages. Knowing that you need a list of strings
does not mean that you know what the function expects of the values of
the strings and what it will try to do with them.

[...]

Well, yes. I didn't intend to suggest otherwise.

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to