This is one of the things I love about Python

Hold on a sec folks!

I really don’t understand why we are trying to build a taxonomy of container classes. There are some languages which have rather elaborate taxonomys of container classes. The STL comes to mind, Smalltalk (I think), even Java’s collection classes are somewhat elaborate. But this is NOT how things have been done in the Python world. We believe that flat is better than nested. We believe in one simple-and-obvious way to do things. For goodness sakes, we don’t even have a basic linked-list type because we figure it’s simpler to make people just use the single well-tuned array-list implementation.

Yes, indeed. I couldn’t agree more.

And duck typing is also great.

Leave a Reply