"casting" Python objects

Brian Quinlan brian at sweetapp.com
Wed May 22 20:52:30 EDT 2002


David LeBlanc wrote:
> Unlike a typed language like C++, containers like arry or dictionary
are
> containers of any object, not just some particular type.

Python is a typed language. In fact, it is strongly typed. However, type
checking is done at runtime, unlike languages like Java and C++, where
it is done at compile time. 

So Python is strongly dynamically typed, Java is strongly statically
typed and Perl is weakly (dynamically) typed.

Cheers,
Brian






More information about the Python-list mailing list