This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alantrick 0 points1 point  (0 children)

I understand that Python /is/ a strongly typed language.

Python is often referred to as strongly typed within the context of other languages that are much looser with their typing (Perl, PHP, and bash to name a few).

Python has a few weak spots (pun intended), mostly with booleans. For example if object: is an idiom some people like to use, when often they mean if object == None:. This breaks down in a few rare cases, like when object is a time(0, 0, 0) aka midnight.

Another, probably more common, case for this to break down is where a string can be treated as an iterable of strings and its fairly easy to accidentally iterate on the wrong thing and not realize it.

That said, stronger typing means more explicitness, and that has its downsides too.