2.2 features

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Fri Aug 10 03:11:38 EDT 2001


Fri, 10 Aug 2001 15:48:38 +1200, Greg Ewing <greg at cosc.canterbury.ac.nz> pisze:

>> 'except' varname 'in' 'class' ExceptionName[, ExceptionName]* ':'
> 
> The trouble is that if "x in class y" were also
> a valid expression, the new and old except
> syntaxes would conflict.

Technically yes, but nobody wants
    except 0:
or
    except 1:
which would be possible results of the above syntax interpreted
according to the old syntax, so there is no problem with letting
this syntactic rule win over the old one.

A problem appears only when someone slightly changes the syntax by
mistake and it's suddenly interpreted differently rather than causing
an error.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list