Il 21/dic/2013 07:51 "Nicola Larosa" <n...@teknico.net> ha scritto::
> Un'alternativa è l'operatore "<>" (caro a Barry Warsaw, vedi codebase di > Mailman). Però è stato deprecato in Python 3 perchè: > > $ python > >>> import this > The Zen of Python, by Tim Peters > > [...] > There should be one-- and preferably only one --obvious way to do it. > [...] a meno di mandare in pensione Guido con:: u0_a140@android:/ $ python Python 3.2.2 (default, Apr 19 2012, 12:16:58) [GCC 4.4.3] on linux-armv7l Type "help", "copyright", "credits" or "license" for more information. >>> 1 != 0 True >>> 1 <> 0 File "<stdin>", line 1 1 <> 0 ^ SyntaxError: invalid syntax >>> from __future__ import barry_as_FLUFL >>> 1 != 0 File "<stdin>", line 1 1 != 0 ^ SyntaxError: invalid syntax >>> 1 <> 0 True >>> ;-) [bambini non fate queste cose a casa]
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python