[Python] Migrazione da 2 a 3.

Giampaolo Rodola' g.rodola a gmail.com
Gio 16 Lug 2015 18:05:53 CEST


2015-07-15 16:37 GMT+02:00 Nicola Larosa <nico a teknico.net>:

> > Gabriele Battaglia ha scritto:
> >> Ricevo un errore di sintassi su un confronto:
> >>
> >> if x <> 0:
>
> Riccardo Magliocchetti wrote:
> > E` la prima volta che vedo quella sintassi in Python :)
> >
> > The forms <> and != are equivalent; for consistency with C, != is
> > preferred; where != is mentioned below <> is also accepted. The <>
> > spelling is considered obsolescent.
> >
> > Questo dalla doc di python 2.4 che ha più di 10 anni. Quanto vecchia è
> > la tua codebase? ;)
>
> Magari sta lavorando su Mailman, le battaglie di Barry Warsaw su questo
> punto sono rimaste nella leggenda. :-)
>

Cioè? :D

-- 
Giampaolo - http://grodola.blogspot.com
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20150716/e755c84e/attachment.html>


Maggiori informazioni sulla lista Python