[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I'm wrong or Will we fix the ducks limp?

Sayth Renshaw <flebber.crue at> 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.