Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Find method, like that of a python string.

This behaves like the python string method of the same name.

Returns an integer, the index of the first occurrence of substring
argument sub in the (sub)sequence given by [start:end].

 - sub - a string or another Seq object to look for
 - start - optional integer, slice start(more...)

src/p/y/pydna-0.6.1/pydna/dsdna.py   pydna(Download)
        if self.linear:
            return Seq.find(self, sub, start, end)
        sub_str = self._get_seq_str_and_check_alphabet(sub)