On 11 May 2018 at 07:15, Nick Coghlan <ncoghlan@gmail.com> wrote:
* *maybe* discover that even the above expansion isn't quite accurate, and that the underlying semantic equivalent is actually this (one way to discover this by accident is to have a name error in the outermost iterable expression):

    def _genexp(_outermost_iter):
        for x in _outermost_iter:
            yield x

    _result = _genexp(_outermost_iter)

Typo here: the call argument should be "data", not a repeat of the parameter name,


Nick Coghlan   |   ncoghlan@gmail.com   |   Brisbane, Australia