strong/weak - dynamic/static [Was: Getting started]

Mark McEahern marklists at mceahern.com
Thu Sep 19 12:57:54 EDT 2002


[Skip Montanaro]
> That doesn't make Python weakly typed.  You have to be explicit about the
> change.

All true.  I should have been more explicit about the part of what I was
replying to that I thought wasn't true.  It was the tail end of this:

[sismex01 at hebmex.com]
> A variable, being only a "reference to *any* object"
> may refer to any object, but that object (see the difference?)
> may not change it's functionality or type during runtime.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The fact that I can change the instance's __class__ demonstrates pretty
clearly that that's not the case.

Cheers,

// mark

-





More information about the Python-list mailing list