[Python-Dev] ',' precedence in documentation]

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 16 02:33:20 CEST 2008


Joel Bender wrote:

> As for the assert syntax, I would reuse the 'raise' keyword rather than 
> 'else':
> 
>     assert_stmt ::= "assert" <expression> [ "raise" <expression> ]
> 
> Which emphasizes that the expression is raised as an exception.

However, it doesn't take the same kind of argument
as the "raise" statement, whereas this syntax might
suggest that it does.

-- 
Greg


More information about the Python-Dev mailing list