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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
type(object) -> the object's type
type(name, bases, dict) -> a new type

src/p/y/pydna-0.6.1/pydna/dsdna.py   pydna(Download)
        if self.linear:
            raise TypeError("DNA is not circular.\n")
        return self.__class__(self.watson, self.crick, ovhg=0, linear=True)
 
    def five_prime_end(self):
    def __mul__(self, number):
        if not isinstance(number, int):
            raise TypeError("TypeError: can't multiply Dseq by non-int of type {}".format(type(number)))
        if number<=0:
            return self.__class__("")

src/p/y/python-dna-0.1.2/pydna/dsdna.py   python-dna(Download)
        if self.linear:
            raise TypeError("DNA is not circular.\n")
        return self.__class__(self.watson, self.crick, ovhg=0, linear=True)
 
    def five_prime_end(self):
    def __mul__(self, number):
        if not isinstance(number, int):
            raise TypeError("TypeError: can't multiply Dseq by non-int of type {}".format(type(number)))
        if number<=0:
            return self.__class__("")

src/b/i/biopython-1.63/BioSQL/BioSeq.py   biopython(Download)
        elif index.step is None or index.step == 1:
            #Easy case - can return a DBSeq with the start and end adjusted
            return self.__class__(self.primary_id, self.adaptor, self.alphabet,
                                  self.start + i, j - i)
        else:

src/b/i/biopython-HEAD/BioSQL/BioSeq.py   biopython(Download)
        elif index.step is None or index.step == 1:
            #Easy case - can return a DBSeq with the start and end adjusted
            return self.__class__(self.primary_id, self.adaptor, self.alphabet,
                                  self.start + i, j - i)
        else: