searching a list of lists as a two-dimensional array?

John Machin sjmachin at lexicon.net
Tue Feb 13 04:45:19 EST 2007


On Feb 13, 4:57 pm, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:
>  "John Machin" <sjmac... at lexicon.net> 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 :-)





More information about the Python-list mailing list