On Feb 13, 4:57 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "John Machin" <[EMAIL PROTECTED]> wrote: > > > Now for the algorithm: all of that testing to see if you are about to > > sail off the end of the world is a bit ugly and slow. You can use bit- > > bashing, as Paul suggested, even though it's on Steven D'Aprano's list > > of 6 deadly sins :-) > > Thou shallt not bit - bash > > What are the other five?
""" ... regexes have their place, together with pointer arithmetic, bit manipulations, reverse polish notation and goto. The problem is when people use them inappropriately ... """ The sixth is never mentioned. Aliter: I can't count. Believe whichever hypothesis you like :-) -- http://mail.python.org/mailman/listinfo/python-list