[Python-Dev] ',' precedence in documentation] (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 16 02:33:20 CEST 2008
- Previous message: [Python-Dev] ',' precedence in documentation]
- Next message: [Python-Dev] ',' precedence in documentation]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Joel Bender wrote:
As for the assert syntax, I would reuse the 'raise' keyword rather than 'else':
assertstmt ::= "assert" [ "raise" ] 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
- Previous message: [Python-Dev] ',' precedence in documentation]
- Next message: [Python-Dev] ',' precedence in documentation]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]