PEP 308: Alternative conditional operator forms
Nick Vargish
nav at adams.patriot.net
Tue Feb 11 17:30:52 EST 2003
Evan Simpson <evan at 4-am.com> writes:
> print now or then then then then then else now else "never"
I refuse to be baited by that. :^)
> C then print x else print y
This would be a syntax error. Try this:
>>> x = print 'Hello.'
See?
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