OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Strong versus (weak|runtime) typing

[ Lists Home | Date Index | Thread Index ]

At 13:07 12/02/2003 -0800, Dare Obasanjo wrote:
>Static Typing - Type of variables must be declared at compile time (e.g.
>Dynamic Typing - Type of variables determined from usage at runtime
>(e.g. JavaScript)
>Strong Typing - Variables cannot be coerced to unrelated types. (e.g.
>Weak Typing -  Variables can be coerced to unrelated types. (e.g. C)


         x = 1
         y = "Hello"
         y = y + x

         TypeError: cannot concatenate 'str' and 'int' objects

So Python is dynamically typed. i.e. at runtime. Not weakly typed. Just as
Guido said and not what you said.




News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS