Hi,

Please provide both the bpython version and Python version you are running this
with.

For me, this code works fine in bpython:

>>> sum(i*i for i in range(10))
285



On Sat, May 08, 2010 at 10:05:37AM -0700, romankrv wrote:
> Try this (in bpython):
> >>> sum(i*i for i in range(10))
> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
> TypeError: sum() takes exactly 2 arguments (1 given)
> 
> but in ipython:
> 
> In [1]: sum(i*i for i in range(10))
> Out[1]: 285
> 
> In [2]:
> 
> 
> thankns
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "bpython" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/bpython?hl=en.
> 

-- 
Bob Farrell

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/bpython?hl=en.

Reply via email to