When write
>>>i for i in range(16)
I get "SyntaxError: invalid syntax"

but When I use it like this:
>>>def f(x):\
... pass
>>>f(i for i in range(16))

all is right
I think it maybe f((i for i in range(16)))

-- 
Li Hui
http://www.lihui.org

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

Reply via email to