Python 2.3 True = False

Nick Vargish nav at adams.patriot.net
Mon Mar 24 21:18:16 CET 2003


Rene Pijlman <reply.in 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.

Nick

-- 
#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