Thu, 29 Jun 2006 15:16:25 +0200 diff: add -b/-B options
Haakon Riiser <haakon.riiser@fys.uio.no> [Thu, 29 Jun 2006 15:16:25 +0200] rev 2580
diff: add -b/-B options
Sun, 09 Jul 2006 01:30:30 +0200 use __contains__, index or split instead of str.find
Benoit Boissinot <benoit.boissinot@ens-lyon.org> [Sun, 09 Jul 2006 01:30:30 +0200] rev 2579
use __contains__, index or split instead of str.find str.find return -1 when the substring is not found, -1 evaluate to True and is a valid index, which can lead to bugs. Using alternatives when possible makes the code clearer and less prone to bugs. (and __contains__ is faster in microbenchmarks)
(0) -1000 -300 -100 -30 -10 -2 +2 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip