Idioms combining 'next(items)' and 'for item in items:'

Ian Kelly ian.g.kelly at gmail.com
Mon Sep 12 12:58:05 EDT 2011


On Mon, Sep 12, 2011 at 10:55 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> But you can't write the function under the assumption that it will
> only be called from the function body.  The following is a slight
> reorganization of your example that does exhibit the problem:

s/function body/for-loop body/



More information about the Python-list mailing list