Ian Bicking: the old part of his blog

Re ruby and python compared comment 000

"This nonsense really has no place in such a high-level language. But Python makes things worse: empty lists, empty dictionaries, and empty tuples are false. "

This is one of my favorite python features, the fact that "if something:" will always do the right thing. Isn't this the whole point of using a high level language in the first place? :-)

I don't want to write "if lst.is_empty?" or "if len(lst)" - oh wait, 0 shouldn't be False so this should be "if len(lst)==0", right?

Comment on Re: Ruby and Python Compared
by Justin