>> if endpos: >> m = self.grouped_re.search(buffer(seq.data), pos, endpos) >> else: >> m = self.grouped_re.search(buffer(seq.data), pos) Oops. Just realized this code contains a bug when endpos == 0. The test should instead be for if endpos is not None: ... Fixed in CVS. Andrew