Oct 25, 2010

Weird in

Just discoverd that "" in "abc" evaluates as True, which is on my opinion counter-intuitive. It's quite strange that I can't find it listed as a common Python newbies' error. Does everybody read manual then? :)

1 comment:

  1. More suprises today! I've just checked that in my beloved C strstr("abc", "") points right at the beginning of "abc".

    ReplyDelete