*blink* That's neat.

Moshe Zadka moshez at math.huji.ac.il
Tue May 30 12:02:34 CEST 2000

On Tue, 30 May 2000, Stephen Hansen wrote:

> While writing a function, I curiousely typed this into the Interpreter:
> >>> if Case is not 0 or 1:
>         ....
> etc..and it worked..

Well, here is a version that really works, correct semantics and all:

if Case in (0, 1):

Close enough to English, and quite readable.

Moshe Zadka <moshez at math.huji.ac.il>
http://www.linux.org.il -- we put the penguin in .com

More information about the Python-list mailing list