Comment 2 for bug 546054

Revision history for this message
Fernando Perez (fdo.perez) wrote :

I don't see the problem on my build of Python:

amirbar[IPython]> python2.5 `which ipython`
Python 2.5.4 (r254:67916, Jan 20 2010, 21:44:03)
Type "copyright", "credits" or "license" for more information.

IPython 0.11.alpha1.bzr.r1223 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: for i in range:
   ...: print 43
   ...:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/home/fperez/ipython/repo/trunk-lp/IPython/<ipython console> in <module>()

TypeError: 'builtin_function_or_method' object is not iterable

But in any case, this is a Python bug, not an ipython one. The crash is coming from inside Python itself, nothing done by IPython here plays a role (other than having imported readline, which appears in the traceback, but still it's a Python bug).

You may want to report it to Python itself, closing here.