On 11 May 2018 at 07:15, Nick Coghlan <ncogh...@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, Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/