results of conditional tests (was Re: comparison of Python and Perl, line by line)

2002-02-09 Thread Kragen Sitaker
Dave Long writes: > class fillet: > "fillet is like let" > def __init__(self, val): > self.value = val > def __getitem__(self, n): > if self.value and n == 0: > return self.value > raise IndexError > import re > for

Re: cross-module procedure/function distinction (was Re: comparison of Python and Perl, line by line)

2002-02-09 Thread Kragen Sitaker
Dave Long writes: > I think this particular infelicity is rooted in a desire to separate > Church and state, by avoiding "statements" or "procedures" in what > is supposed to be a boolean expression. > > Euclid is a language that really does enforce this distinction, even > across modules, but Py

Re: more of the lattice gas automaton

2002-02-09 Thread Matthew O'Connor
Kragen Sitaker [[EMAIL PROTECTED]] said: > The lattice-gas automaton I posted yesterday has several interesting > characteristics: Yesterday was almost 3 years ago :/ I was bored so I wrote an SDL front end to this hack. It's prettier than the ASCII art version IMO. I used SDL1.2, earlier ver