Re: How to do multi-dimensional arrays?

Guido.van.Rossum@cwi.nl
Thu, 19 Jan 1995 16:48:51 +0100

I agree wholeheartedly with Ken's observations. Two nits:

> assignment capability, a la djikstra:

Ehh, the poor old man's name is Dijkstra. I should know, "ij" is a
well known digraph in the Dutch language. And before someone asks the
obvious: his famous "P and V" names for semaphores are derived for the
Dutch words "Passeer" and "Verlaat", or "Pass" and "Leave". And no, I
haven't met him (although he did work at CWI back in the fifties when
it was called, as it should still be today, Mathematical Centre). he
currently lives in Austin, Texas I believe. (While we're at
it... does anybody remember the Dijkstra font for Macintoshes? It was
a scanned version of his handwriting. I believe Luca Cardelli scanned
it -- the author of Obliq, a somewhat Python-like distributed language
built on Modula-3. I could go on forever... :-)

Second nit:

> xxx[:1] = []

Or, without even having to create an empty list in the first place:

del xxx[0]

The only difference is that del xxx[0] will actually fail when xxx is
empty, while Ken's version silently does nothing. There are
situations where this is better...

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>