Bugs item #1187437, was opened at 2005-04-21 14:58
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1187437&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 2
Private: No
Submitted By: Roy Smith (roysmith)
>Assigned to: Georg Brandl (gbrandl)
Summary: TypeError message on bad iteration is misleading

Initial Comment:
>>> for i in 5:
...     pass
...
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: iteration over non-sequence

I know this is kind of a trivial point, but the message
"iteration of non-sequence" should really be something
like "iteration of non-iterable object", since not all
iterable things are sequences.


----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-11-06 07:48

Message:
Logged In: YES 
user_id=849994

The message is "<type> object is not iterable" in Python 2.5.

----------------------------------------------------------------------

Comment By: Georg Brandl (birkenfeld)
Date: 2005-06-05 10:46

Message:
Logged In: YES 
user_id=1188172

Seems reasonable to me.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1187437&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to