[Python-Dev] ',' precedence in documentation (original) (raw)

C. Titus Brown ctb at msu.edu
Sun Sep 14 22:52:27 CEST 2008


On Sun, Sep 14, 2008 at 10:45:39PM +0200, "Martin v. L?wis" wrote: -> > And replace it with what? -> -> I'm sure this will evolve into a long discussion on syntax, so -> I'll start: assert could become a function with one or two -> arguments. The arguments would always get evaluated; the actual -> exception-raising could still be conditional (perhaps through -> a context manager).

Doesn't this change the behavior in optimized code, for assert statements with side effects? If we don't have specialized syntax -- that is, if 'assert' just becomes another built-in function -- then it can't be special-cased in the translation to byte-code, can it?

--titus

C. Titus Brown, ctb at msu.edu



More information about the Python-Dev mailing list