2017-07-11 15:21 GMT+02:00 Daniele Zambelli <daniele.zambe...@gmail.com>:

> Il 11 luglio 2017 15:11, Marco Beri <marcob...@gmail.com> ha scritto:
>
> > [...]
> > Piuttosto è possibile fare questo:
> >
> > try:
> >     qualcosa()
> > except KeyError as exc:
> >     ommamma1()
> > except KeyError as exc:
> >     ommamma2()
>
> Dove il secondo "KeyError" va inteso come un errore diverso ad esempio:
>
> "NameError"
>
> se ho capito bene.
>

Ovviamente sì! Sono stordito :-)

Grazie Daniele.

Ciao.
Marco.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a