index d13b5c230678a365f71c9b1f76b2b9aa3d756252..b6c7a6fe441050b227e7dc1152ea5c9067830e80 100644 (file)
iterator. The next() method fetches the next item, and returns
true if it succeeds.
-$Id: Iterator.py,v 1.1 2002-09-05 00:37:09 richard Exp $'''
-__version__='$Revision: 1.1 $'[11:-2]
+$Id: Iterator.py,v 1.2 2002-09-26 21:54:17 richard Exp $'''
+__version__='$Revision: 1.2 $'[11:-2]
import string
def _supports(self, ob):
try: ob[0]
- except TypeError: return 0
+ except (TypeError, AttributeError): return 0
except: pass
return 1