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

Hendrik van Rooyen mail at microcorp.co.za
Tue Feb 13 07:39:36 EST 2007


"John Machin" <sjmac... at lexicon.net> wrote:

> 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 ...
> """
> 

I find this unsatisfactory - I was hoping for a five commandment
style of thing, setting out proper prohibitions against evil stuff.

It seems that I am a closet fundamentalist.

A sixth, btw is:

Thou shallt not use globals.

- Hendrik






More information about the Python-list mailing list