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/python-dna-0.1.2/pydna/dsdna.py   python-dna(Download)
        >>>
        '''
        new = self.__class__(self.seq.looped())
        new.features = self.features
        for fn, fo in zip(new.features, self.features):
        >>>
        '''
        new = self.__class__(self.seq.tolinear())
        new.features = [copy.copy(f) for f in self.features]
        return new
        if self.linear:
            last_pos=0
            template = self.__class__(self, linear=True)
        else:
            last_pos = [p.pop(0)-max(0,enzyme.ovhg)-1 for (p,e) in
 
        if number<=0:
            return self.__class__("")
 
        new_features = [copy.copy(f) for f in self.features if not len(self)-1 in f or not 0 in f]

src/p/y/pydna-0.6.1/pydna/dsdna.py   pydna(Download)
            return new
        else:
            return self.__class__("")
 
    def __getitem__(self, sl):
            raise TypeError("TypeError: can't multiply Dseq by non-int of type {}".format(type(multiplier)))
        if multiplier<=0:
            return self.__class__("")
 
        new_features = []