I'm wrong or Will we fix the ducks limp?
paul.nospam at rudin.co.uk
Fri Jun 3 10:34:47 EDT 2016
Sayth Renshaw <flebber.crue at gmail.com> writes:
> Very briefly because I hope to shot down eloquently.
> Python is beautiful and is supposed to be a duck typed language, Yes?
> Then if I create and assign to a new variable with a list action why
> does the duck not quack?
> It feels wrong to spend a line writing what is already obvious
The problem is that you think that *variables* have a type. This isn't
the case. Objects have a type. A variable is a name by which you can
refer to an object. There are various ways in which you can associate a
object with a variable, the most obvious being an assignment statement.
More information about the Python-list