[Python] Non dovreste perdervi questo domanda su SO

Balan Victor balan.victor0 a gmail.com
Ven 17 Maggio 2013 22:32:32 CEST


spiegate anche a me?


Il giorno 17 maggio 2013 14:27, Manlio Perillo
<manlio.perillo a gmail.com>ha scritto:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Il 14/05/2013 22:54, Gianni ha scritto:
> >
> http://stackoverflow.com/questions/16522111/python-syntax-for-if-a-or-b-or-c-but-not-all-of-them
> >
> > soprattutto la risposta:
> >
> > conditions = [a, b, c]
> > if any(conditions) and not all(conditions)
> >
> > quando l'ho letta mi son tolto il cappello. :)
> > OK, lo ammetto, è la reazione di chi non ha mai usato i moduli any() e
> > all(), ma è di una chiarezza disarmante. Non trovate?
> >
>
> Bello, fino a quando realizzi che nel 95% dei casi la condizione è nota
> a compile-time e provi un senso di frustazione perchè solo un paio di
> lunguaggi (non Python, ma Lisp) ti permettono agevolmente di
> implementare questa funzionalità con delle macro.
>
>
>
> Ciao  Manlio
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlGWIjkACgkQscQJ24LbaUTxzQCeNHCE2bR/pyGcLwCN2QpxCvR1
> s48AnjAmhBsCVbiPaMEp2tVHVn2r4C0j
> =1V8Z
> -----END PGP SIGNATURE-----
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20130517/1da10a87/attachment.html>


Maggiori informazioni sulla lista Python