Static Typing in Python

JCM joshway_without_spam at myway.com
Mon Mar 15 14:29:57 EST 2004


Jacek Generowicz <jacek.generowicz at cern.ch> wrote:
> Ludovic Aubry <no_ludal_spam at logilab.com> writes:
...
>> > Try as you will, Python would not allow you to do any of these things,
>> > because it is _strongly typed_ with respect to these operations on these
>> > types.
>> Python will allow you to multiply string with integers for example ;)

> Yes, and in that respect it is weakly typed.

Here I disagree.  Python has a rule for multiplying a string and an
integer--this isn't an exmaple of weak typing.  No re-interpretation
of data representation is being done.



More information about the Python-list mailing list