We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This means you can't override Iterator.ifilter like this:
Iterator.ifilter
class FooIterator(Iterator): def ifilter(self, o): return True
because ifilter gets set to None when the instance is created, the __init__ method needs to do this:
ifilter
__init__
if ifilter: self.ifilter = ifilter
Or just remove:
self.ifilter = None
And modify the _filtered method to try/catch and AttributeError
_filtered
try/catch
AttributeError
The text was updated successfully, but these errors were encountered:
ecd41a3
No branches or pull requests
This means you can't override
Iterator.ifilter
like this:because
ifilter
gets set to None when the instance is created, the__init__
method needs to do this:Or just remove:
And modify the
_filtered
method totry/catch
andAttributeError
The text was updated successfully, but these errors were encountered: