Steven D'Aprano <[EMAIL PROTECTED]> writes: > class Parrot(object): > def __iter__(self): > return self > def __init__(self): > self.next = self._next() > def _next(self): > for word in "Norwegian Blue's have beautiful plumage!".split(): > yield word
Clearly the problem is you've misused an apostrophe. Python doesn't like the plural getting an apostrophe. <URL:http://www.angryflower.com/bobsqu.gif> -- \ "Speech is conveniently located midway between thought and | `\ action, where it often substitutes for both." -- John Andrew | _o__) Holmes, _Wisdom in Small Doses_ | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list