[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the patch, Daniel. Fixed in all versions. -- nosy: +orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4d5ac78a76b by Senthil Kumaran in branch '2.7': Issue #15630: Add an example for "continue" statement in the tutorial. Patch by http://hg.python.org/cpython/rev/a4d5ac78a76b New changeset e855e6c26dfb by Senthil Kumaran in branch '3.2': Issue #1563

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Please remove the "... " prompt from the example so that the code is > cut-and-pasteable by people who want to experiment with the example. That is the usual format for docstring examples. See, for example-- http://docs.python.org/dev/library/doctest.html#h

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Daniel Ellis
Daniel Ellis added the comment: Oh, I was keeping with the format of the other examples in the tutorial. Should I remove the prompts from all of them? -- ___ Python tracker ___

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: This looks good. Please remove the "... " prompt from the example so that the code is cut-and-pasteable by people who want to experiment with the example. -- nosy: +rhettinger ___ Python tracker

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Daniel Ellis
Daniel Ellis added the comment: Added basic example for "continue". -- keywords: +patch Added file: http://bugs.python.org/file26775/for_continue_doc.patch ___ Python tracker ___

[issue15630] Missing "continue" example for "for" loop tutorial

2012-08-12 Thread Daniel Ellis
New submission from Daniel Ellis: Found by Jesse Bikman: On this page, http://docs.python.org/tutorial/controlflow.html there is no example in the code of a "continue" statement (section 4.4). It is explained, but not actually used in code. -- assignee: docs@python components: Documen