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

All Samples(1395)  |  Call(1395)  |  Derive(0)  |  Import(0)
x.__init__(...) initializes x; see help(type(x)) for signature

src/n/l/nltk-2.0.4/nltk/tree.py   nltk(Download)
                                "or a single string" % type(self).__name__)
            tree = type(self).parse(node_or_str)
            list.__init__(self, tree)
            self.node = tree.node
        elif isinstance(children, basestring):
            raise TypeError("%s() argument 2 should be a list, not a "
                            "string" % type(self).__name__)
        else:
            list.__init__(self, children)

src/s/a/sage-HEAD/src/sage/structure/sequence.py   sage(Download)
        if isinstance(x, Sequence_generic):
            if universe is None or universe == x.__universe:
                list.__init__(self, x)
                self.__universe = x.__universe
                self._is_immutable = immutable
        if check:
            x = [universe(t) for t in x]
        list.__init__(self, x)
        self._is_immutable = immutable
 

src/b/r/Brill-POS-Tagger-for-Turkish-HEAD/TirilBrillTagger/lib/nltk/tree.py   Brill-POS-Tagger-for-Turkish(Download)
        if children is None: return
 
        list.__init__(self, children)
        self.node = node_or_str
 

src/c/r/crate-0.9.0/src/crate/client/sqlalchemy/types.py   crate(Download)
    def __init__(self, initval=None):
        list.__init__(self, initval or [])
 
    def __setitem__(self, key, value):
        list.__setitem__(self, key, value)

src/c/r/crate-python-HEAD/src/crate/client/sqlalchemy/types.py   crate-python(Download)
    def __init__(self, initval=None):
        list.__init__(self, initval or [])
 
    def __setitem__(self, key, value):
        list.__setitem__(self, key, value)

src/n/o/nodebox-opengl-1.6.1/nodebox/graphics/context.py   nodebox-opengl(Download)
            if colorspace == XYZ: r, g, b = xyz_to_rgb(r, g, b)
            if colorspace == LAB: r, g, b = lab_to_rgb(r, g, b)
        list.__init__(self, [r, g, b, a])
        self._dirty = False
 
            have a straight angle (i.e. the corners can be distorted).
        """
        list.__init__(self, (dx1, dy1, dx2, dy2, dx3, dy3, dx4, dy4))
        self._dirty = True # Image objects poll Quad._dirty to check if the image cache is outdated.
 
    def copy(self):
        return Quad(*self)
 
    def reset(self):
        list.__init__(self, (0,0,0,0,0,0,0,0))
            that have for example been prepared in an offscreen buffer.
        """
        list.__init__(self, list(images))
        self.duration = duration # Duration of the entire animation.
        self.loop     = loop     # Loop from last frame to first frame?

src/m/u/music21-old-HEAD/music21/common.py   music21-old(Download)
    def __init__(self, value = None, default = None, callDefault = False):
        if value:
            list.__init__(self, value)
        else:
            list.__init__(self)

src/d/i/disco-dop-0.4/discodop/tree.py   disco-dop(Download)
		if children is None:
			return
		list.__init__(self, children)
		self.label = label_or_str
		self.source = self.bitset = None

src/b/o/bolinas-HEAD/lib/tree.py   bolinas(Download)
        if children is None: return
 
        list.__init__(self, children)
        self.node = node_or_str
 

src/k/i/kitsune-HEAD/vendor/packages/Werkzeug/werkzeug/datastructures.py   kitsune(Download)
    def __init__(self, values=()):
        if values is None:
            list.__init__(self)
            self.provided = False
        elif isinstance(values, Accept):
            self.provided = values.provided
            list.__init__(self, values)
            values.sort()
            values.reverse()
            list.__init__(self, [(a, b) for b, a in values])
 
    def _value_matches(self, value, item):

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next