* mercoledì 06 novembre 2002, alle 16:00, Davide Alberani scrive:
> Oh, al diavolo, solo per far diventare blu il Tanno [1] ecco a
> voi un po' di (not-so-)obfuscated-Python:
>
> #!/usr/bin/python
> import sys
> CHRN=4 # [2]
> sys.stdout.writelines(filter(lambda x: len(x) < CHRN, sys.stdin.readlines()))
fa schifo. check mine, fella.
> [1] PuffTanno, che visione agghiacciante...
io _ODIO_ il python... :)
> [2] per la cronaca: conta anche l'eventuale \n a fine riga, quindi
> andrebbe ritoccato.
bah.
--
Maurizio - Tannoiser - Lemmo
Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
Budget cuts forced us to sell all the power cords for the servers.
|