[Patches] [Patch #101175] Fix slight bug in the Ref manual docs on listcomprehensions
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 15 Aug 2000 10:46:39 -0700
Patch #101175 has been updated.
Project:
Category: documentation
Status: Open
Summary: Fix slight bug in the Ref manual docs on listcomprehensions
Follow-Ups:
Date: 2000-Aug-13 11:53
By: twouters
Comment:
This patch updates the reference manual documentation on list comprehensions to the fact that the first expression in a listcomprehension is a single expression, not a list (that is, if it's a tuple, it needs the parentheses.)
I'm not sure in what style the reference manual should be written; should it be as close to CPythons' Grammar/Grammar file as possible, or should it forgo the elaborate tricks that are sometimes necessary to work around the LL(1) parser's limitations ? The range-literals patch to the reference manual gets a lot more 'low-level', as a result of sticking close to the CPYthon grammar file. Should I keep it that way ?
-------------------------------------------------------
Date: 2000-Aug-15 10:46
By: tim_one
Comment:
Reassigned to Fred, because it's a simple doc change. Fred, accept this <wink> and check it in. Note that the grammar has a bug, though, so this will need to be changed again (and so will the implementation). That is, [x if 6] should not be a legal expression but the grammar allows it today.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=101175&group_id=5470