This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jayanthkoushik
Recipients docs@python, jayanthkoushik, mwilliamson, terry.reedy
Date 2014-08-23.05:30:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408771843.7.0.945861045826.issue22243@psf.upfronthosting.co.za>
In-reply-to
Content
The page on compound statements defines compound statements as:

compound_stmt ::=  if_stmt
                   | while_stmt
                   | for_stmt
                   | try_stmt
                   | with_stmt
                   | funcdef
                   | classdef

The full grammar specification on the other hand says:

compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated

This accordingly leads to different definitions of funcdef and classdef. This is not necessarily 'incorrect', but for the sake of clarity, it might be better if both pages followed the same conventions.
History
Date User Action Args
2014-08-23 05:30:43jayanthkoushiksetrecipients: + jayanthkoushik, terry.reedy, docs@python, mwilliamson
2014-08-23 05:30:43jayanthkoushiksetmessageid: <1408771843.7.0.945861045826.issue22243@psf.upfronthosting.co.za>
2014-08-23 05:30:43jayanthkoushiklinkissue22243 messages
2014-08-23 05:30:43jayanthkoushikcreate