[Patches] [ python-Patches-829073 ] ref. manual talks of 'sequence' instead of 'iterable'

SourceForge.net noreply at sourceforge.net
Sun Dec 7 18:50:16 EST 2003


Patches item #829073, was opened at 2003-10-23 12:51
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=829073&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: ref. manual talks of 'sequence' instead of 'iterable'

Initial Comment:
The language reference of Python 2.3 and the one of
Python 2.4a0 says the expression_list in a for
statement should yield a sequence. However, it may
yield any iterable, so this is not really true. It is
correct earlier in the text, since it does say "or
other iterable object" earlier. This patch changes the
mention of "sequence" to "iterable" in two more
occurences of the language reference of the for statement.

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

Comment By: Brett Cannon (bcannon)
Date: 2003-10-23 19:44

Message:
Logged In: YES 
user_id=357491

This is slightly touchy wording.  It does accept an object that 
defines __getitem__ and not __iter__, and vice-versa.  And since 
iterables can be thought of as sequences it still basically works.

But I have no issue moving over to "iterable", personally.  I am 
going to let someone else weigh in on this.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=829073&group_id=5470



More information about the Patches mailing list