[New-bugs-announce] [issue2253] "continue" documentation internally inconsistent

Ben Pfaff report at bugs.python.org
Fri Mar 7 19:12:29 CET 2008


New submission from Ben Pfaff:

The "continue" documentation says: "continue may only occur
syntactically nested in a for or while loop, but not nested in a
function or class definition or finally statement within that loop."

In a footnote to that documentation, it says: "The restriction on
occurring in the try clause is implementor's laziness and will
eventually be lifted."

But the documentation doesn't say that continue may not occur in the try
clause.  So there is an internal inconsistency here.  Either the
sentence in the footnote is wrong and should be removed, or the main
documentation for continue should say that continue may not occur in a
try clause.

----------
assignee: georg.brandl
components: Documentation
messages: 63358
nosy: blp, georg.brandl
severity: minor
status: open
title: "continue" documentation internally inconsistent
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2253>
__________________________________


More information about the New-bugs-announce mailing list