doing tricks with refcounts

Glenn C. Rhoads gcrhoads at yahoo.com
Wed Sep 26 16:26:48 EDT 2001


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:<Xns912864B30E85Bduncanrcpcouk at 127.0.0.1>...
>
>int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
>"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?

Brilliant!  I love wonderfully obscure "elegant" code like this.



More information about the Python-list mailing list