Created
August 9, 2014 20:47
-
-
Save terrycojones/a09eafe3b073c7d004b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def filter(self, **kwargs): | |
""" | |
Update self so that __iter__ returns a generator that yields a filtered | |
set of C{ReadAlignments}. | |
See self._filter for details of arguments. | |
@return: C{self}. | |
""" | |
iterator = self._filter(selfIterator=self.__iter__, **kwargs) | |
self.__iter__ = lambda _: iterator | |
return self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment