So knowing what an iterator is, I'm assumign a string is an iterable object because the following is possible:
for c in str:
print c
I am subclassing str and overriding __hash__ and __eq__. In __hash__, I am trying to iterate over the string as follows:
for c in self.__str__:
The following error however returns: TypeError: 'method-wrapper' object is not iterable. This means that __str__ is not iterable. How do I get an iterable version of the string? I tried looking up some sort of str object API on Python but Python's documentation only shows you how to use a string, and not what the internals are, and which object in str is iterable.
How can I iterate through my subclassed string, within my string object?
__str__