Python 2.3 True = False

Nick Vargish nav at
Mon Mar 24 21:18:16 CET 2003

Rene Pijlman < at the.newsgroup> writes:

> What did it assign True and False to? And why?

Oh, oh, can I guess? Please?

True = 1
False = not True

Or the other way around, of course... :^) Before they were built in,
some people liked to define them in their code.


#include<stdio.h> /* SigMask 0.3 (sig.c) 19990429 PUBLIC DOMAIN "Compile Me" */
int main(c,v)char *v;{return !c?putchar(*v-1)&&main(0,v+ /* Tweaks welcomed. */
1):main(0,"Ojdl!Wbshjti!=obwAqbusjpu/ofu?\v\1");}  /* build: cc -o sig sig.c */

More information about the Python-list mailing list