On 3/30/17, Joshua Morton <[email protected]> wrote:

>    def repeat_for(func, iters):
>         return func() for _ in range(iters)
>
> does what you want without any required syntax changes.

I've got a "SyntaxError: invalid syntax"

PL.
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to