Semantics of statement sequencing not in doc?

Martin v. Löwis martin at v.loewis.de
Fri Jan 10 05:43:11 EST 2003


Tom Verhoeff <Tom.Verhoeff at acm.org> writes:

> OK, it is trivial: execute the statements in the order
> of appearance, one by one.  But I would think that this
> needs to be stated somewhere.

Only if you expect a truly formal language specification, to the
casual reader, it is obvious what the meaning of sequencing is.

> Am I missing something?

The sequencing semantics is more involved, but you knew that:
exceptions, and the break, return, and continue statements can all
interfere with the sequencing.

Regardless, if you can provide some wording, please submit a patch to
sf.net/projects/python. I'd put words into the explanation of <suite>,
and of <file_input>.

Regards,
Martin





More information about the Python-list mailing list