Comments requested: brief summary of Python
Cameron Laird
claird at lairds.com
Tue Feb 24 13:16:57 EST 2004
In article <mailman.50.1077643494.8594.python-list at python.org>,
Brian Quinlan <brian at sweetapp.com> wrote:
.
.
.
>! Python figures out which type a variable should be the first time it
>! is used.
>
>No. In Python the concept of a variable is completely divorced from the
>concept of type. A type is NEVER associated with a variable so no figuring
>out is needed.
>
>| i = "Hello"
>| will make i a string.
>
>Same. i is a variable, not a string.
.
[other errors noted and
astutely corrected]
.
.
The approach I like is to discard any language that
encourages newcomers to regard
i = "Hello"
as an "assignment", and to identify it instead as
what it is for Python: a *binding* to the name
'i'.
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list