On 6/28/2010 10:49 AM, Stephen Hansen wrote:

Now, if you are entering a generator where its not 'on its own' and its
not ambiguous-- such as inside a function call-- you don't have to
surround it by its own parens. So you don't have to do f((i for i in
range(4)).

You need another ) on the end. That illustrates why the devs allowed one () to be omitted ;-)
--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to