<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">
</head>
<body bgcolor="#ffffff" text="#000000">
When write<br>
>>>i for i in range(16)<br>
I get "SyntaxError: invalid syntax"<br>
<br>
but When I use it like this:<br>
>>>def f(x):\<br>
... pass<br>
>>>f(i for i in range(16))<br>
<br>
all is right<br>
I think it maybe f(<font color="#ff0000">(i for i in range(16))</font>)<br>
<br>
<pre class="moz-signature" cols="72">--
Li Hui
<a class="moz-txt-link-freetext" href="http://www.lihui.org">http://www.lihui.org</a></pre>
</body>
</html>