Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(267) | Call(266) | Derive(1) | Import(0)
type(object) -> the object's type type(name, bases, dict) -> a new type
src/g/a/gaupol-HEAD/aeidon/mutables.py gaupol(Download)
def __copy__(self): lst = list(copy.copy(x) for x in self) return self.__class__(lst, self.master, self.name) def __deepcopy__(self, memo): lst = [copy.deepcopy(x) for x in self] return self.__class__(lst, self.master, self.name)
src/f/j/fjord-HEAD/vendor/packages/pyquery/pyquery/pyquery.py fjord(Download)
raise ValueError('You must provide at least a selector') if args[0] == '': return self.__class__([]) if len(args) == 1 and \ isinstance(args[0], str) and \ not args[0].startswith('<'): args += (self,) result = self.__class__(*args, parent=self, **kwargs)
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
if current is not None: result.append(current) return self.__class__(result, **dict(parent=self)) def filter(self, selector):
src/g/p/GPGTools_Core-HEAD/python/vendor/pyquery/pyquery.py GPGTools_Core(Download)
raise ValueError('You must provide at least a selector') if args[0] == '': return self.__class__([]) if len(args) == 1 and \ isinstance(args[0], str) and \ not args[0].startswith('<'): args += (self,) result = self.__class__(*args, parent=self, **kwargs)
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
elems = selector and self(selector) or self for elem in elems: yield self.__class__(elem) def xhtml_to_html(self):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
src/y/o/yoyo-migrations-4.2.4/yoyo/migrations.py yoyo-migrations(Download)
""" return self.__class__( self.conn, self.paramstyle, self.migration_table,
""" return self.__class__( self.conn, self.paramstyle, self.migration_table,
def filter(self, predicate): return self.__class__( self.conn, self.paramstyle, self.migration_table,
def replace(self, newmigrations): return self.__class__(self.conn, self.paramstyle, self.migration_table, newmigrations, self.post_apply) def apply(self, force=False):
def __getslice__(self, i, j): return self.__class__( self.conn, self.paramstyle, self.migration_table,
src/s/n/SNAKES-0.9.17/snakes/hashables.py SNAKES(Download)
def __add__ (self, other) : return self.__class__(list.__add__(self, other)) def __delitem__ (self, item) : self.__mutable__() list.__delitem__(self, item) def __delslice__ (self, *l, **d) : self.__mutable__() list.__delslice__(self, *l, **d) def __getslice__ (self, first, last) : return self.__class__(list.__getslice__(self, first, last))
def __getitem__ (self, item) : ret = list.__getitem__(self, item) if ret.__class__ is list : return self.__class__(ret) return ret def __hash__ (self) : return hash(tuple(self)) def __iadd__ (self, other) : return self.__class__(list.__iadd__(self, other))
def __imul__ (self, n) : return self.__class__(list.__imul__(self, n)) def __mul__ (self, n) : return self.__class__(list.__mul__(self, n)) def __repr__ (self) :
src/p/y/pyquery-HEAD/pyquery/pyquery.py pyquery(Download)
raise ValueError('You must provide at least a selector') if args[0] == '': return self.__class__([]) if (len(args) == 1 and (not PY3k and isinstance(args[0], basestring) or (PY3k and isinstance(args[0], str))) and not args[0].startswith('<')): args += (self,) result = self.__class__(*args, parent=self, **kwargs)
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
elems = self for elem in elems: yield self.__class__(elem) def xhtml_to_html(self):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
src/p/y/pyquery-1.2.8/pyquery/pyquery.py pyquery(Download)
raise ValueError('You must provide at least a selector') if args[0] == '': return self.__class__([]) if (len(args) == 1 and (not PY3k and isinstance(args[0], basestring) or (PY3k and isinstance(args[0], str))) and not args[0].startswith('<')): args += (self,) result = self.__class__(*args, parent=self, **kwargs)
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
elems = self for elem in elems: yield self.__class__(elem) def xhtml_to_html(self):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
src/l/a/Lalf-Forumactif-HEAD/pyquery/pyquery.py Lalf-Forumactif(Download)
raise ValueError('You must provide at least a selector') if args[0] == '': return self.__class__([]) if (len(args) == 1 and (not PY3k and isinstance(args[0], basestring) or (PY3k and isinstance(args[0], str))) and not args[0].startswith('<')): args += (self,) result = self.__class__(*args, parent=self, **kwargs)
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
elems = selector and self(selector) or self for elem in elems: yield self.__class__(elem) def xhtml_to_html(self):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
src/k/i/kitsune-HEAD/vendor/packages/pyquery/pyquery/pyquery.py kitsune(Download)
if len(args) == 1 and not args[0].startswith('<'): args += (self,) result = self.__class__(*args, **dict(parent=self)) return result
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
while current is not None and not self.__class__(current).is_(selector): current = current.getparent() return self.__class__(current, **dict(parent=self)) def filter(self, selector):
finally: del selector.func_globals['this'] return self.__class__(elements, **dict(parent=self)) def not_(self, selector):
src/k/u/kuma-lib-HEAD/packages/pyquery/pyquery/pyquery.py kuma-lib(Download)
if len(args) == 1 and not args[0].startswith('<'): args += (self,) result = self.__class__(*args, **dict(parent=self)) return result
def __add__(self, other): assert isinstance(other, self.__class__) return self.__class__(self[:] + other[:]) def extend(self, other):
if not item in results: results.append(item) return self.__class__(results, **dict(parent=self)) def parent(self, selector=None):
while current is not None and not self.__class__(current).is_(selector): current = current.getparent() return self.__class__(current, **dict(parent=self)) def filter(self, selector):
finally: del selector.func_globals['this'] return self.__class__(elements, **dict(parent=self)) def not_(self, selector):
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next