Did I find the right examples for you? yes no

All Samples(1527)  |  Call(1446)  |  Derive(0)  |  Import(81)

src/c/y/Cython-0.20.1/Cython/Compiler/PyrexTypes.py   Cython(Download)
        specs.
        """
        import MemoryView
 
        self.dtype = base_dtype
        assert not pyrex
        assert not dll_linkage
        import MemoryView
        return self.base_declaration_code(
                MemoryView.memviewslice_cname,
    def declare_attribute(self, attribute, env, pos):
        import MemoryView, Options
 
        scope = self.scope
 
    def create_from_py_utility_code(self, env):
        import MemoryView, Buffer
 
        # We don't have 'code', so use a LazyUtilityCode with a callback.
        def lazy_utility_callback(code):
    def axes_to_code(self):
        """Return a list of code constants for each axis"""
        import MemoryView
        d = MemoryView._spec_to_const
        return ["(%s | %s)" % (d[a], d[p]) for a, p in self.axes]

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/PyrexTypes.py   CythonCTypesBackend(Download)
        specs.
        '''
        import MemoryView
 
        self.dtype = base_dtype
        assert not pyrex
        assert not dll_linkage
        import MemoryView
        return self.base_declaration_code(
                MemoryView.memviewslice_cname,
    def declare_attribute(self, attribute, env, pos):
        import MemoryView, Options
 
        scope = self.scope
 
    def create_from_py_utility_code(self, env):
        import MemoryView, Buffer
 
        # We don't have 'code', so use a LazyUtilityCode with a callback.
        def lazy_utility_callback(code):
    def dtype_object_conversion_funcs(self, env):
        import MemoryView, Code
 
        get_function = "__pyx_memview_get_%s" % self.dtype_name
        set_function = "__pyx_memview_set_%s" % self.dtype_name

src/c/y/cython-HEAD/Cython/Compiler/PyrexTypes.py   cython(Download)
        specs.
        """
        import MemoryView
 
        self.dtype = base_dtype
        assert not pyrex
        assert not dll_linkage
        import MemoryView
        return self.base_declaration_code(
                MemoryView.memviewslice_cname,
    def declare_attribute(self, attribute, env, pos):
        import MemoryView, Options
 
        scope = self.scope
 
    def create_from_py_utility_code(self, env):
        import MemoryView, Buffer
 
        # We don't have 'code', so use a LazyUtilityCode with a callback.
        def lazy_utility_callback(code):
    def axes_to_code(self):
        """Return a list of code constants for each axis"""
        import MemoryView
        d = MemoryView._spec_to_const
        return ["(%s | %s)" % (d[a], d[p]) for a, p in self.axes]

src/c/y/Cython-0.20.1/Cython/Compiler/ExprNodes.py   Cython(Download)
 
        if dst_type.is_memoryviewslice:
            import MemoryView
            if not src.type.is_memoryviewslice:
                if src.type.is_pyobject:
            elif self.entry.type.is_memoryviewslice:
                if self.cf_is_null or self.cf_maybe_null:
                    import MemoryView
                    MemoryView.err_if_nogil_initialized_check(self.pos, env)
 
        We have a borrowed reference in case of dst = src
        """
        import MemoryView
 
        MemoryView.put_acquire_memoryviewslice(
        elif is_memslice:
            # memoryviewslice indexing or slicing
            import MemoryView
 
            skip_child_analysis = True
    def buffer_entry(self):
        import Buffer, MemoryView
 
        base = self.base
        if self.base.is_nonecheck:

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/ExprNodes.py   CythonCTypesBackend(Download)
 
        if dst_type.is_memoryviewslice:
            import MemoryView
            if not src.type.is_memoryviewslice:
                if src.type.is_pyobject:
            elif self.entry.type.is_memoryviewslice:
                if self.cf_is_null or self.cf_maybe_null:
                    import MemoryView
                    MemoryView.err_if_nogil_initialized_check(self.pos, env)
 
        We have a borrowed reference in case of dst = src
        """
        import MemoryView
 
        MemoryView.put_acquire_memoryviewslice(
        elif is_memslice:
            # memoryviewslice indexing or slicing
            import MemoryView
 
            skip_child_analysis = True
    def buffer_entry(self):
        import Buffer, MemoryView
 
        if self.base.is_name:
            entry = self.base.entry

src/c/y/cython-HEAD/Cython/Compiler/ExprNodes.py   cython(Download)
 
        if dst_type.is_memoryviewslice:
            import MemoryView
            if not src.type.is_memoryviewslice:
                if src.type.is_pyobject:
            elif self.entry.type.is_memoryviewslice:
                if self.cf_is_null or self.cf_maybe_null:
                    import MemoryView
                    MemoryView.err_if_nogil_initialized_check(self.pos, env)
 
        We have a borrowed reference in case of dst = src
        """
        import MemoryView
 
        MemoryView.put_acquire_memoryviewslice(
        elif is_memslice:
            # memoryviewslice indexing or slicing
            import MemoryView
 
            skip_child_analysis = True
    def buffer_entry(self):
        import Buffer, MemoryView
 
        base = self.base
        if self.base.is_nonecheck:

src/c/y/Cython-0.20.1/Cython/Compiler/Nodes.py   Cython(Download)
        if base_type.is_error: return base_type
 
        import MemoryView
 
        try:
    def use_memview_utilities(self, env):
        import MemoryView
        env.use_utility_code(MemoryView.view_utility_code)
 
 
    def generate_function_definitions(self, env, code):
        import Buffer
        if self.return_type.is_memoryviewslice:
            import MemoryView
 
            self.value.generate_evaluation_code(code)
            if self.return_type.is_memoryviewslice:
                import MemoryView
                MemoryView.put_acquire_memoryviewslice(
                        lhs_cname=Naming.retval_cname,

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Nodes.py   CythonCTypesBackend(Download)
        if base_type.is_error: return base_type
 
        import MemoryView
 
        try:
    def use_memview_utilities(self, env):
        import MemoryView
        env.use_utility_code(MemoryView.view_utility_code)
 
 
    def generate_function_definitions(self, env, code):
        import Buffer
        if self.return_type.is_memoryviewslice:
            import MemoryView
 
    def _specialize_function_args(self, args, fused_to_specific):
        import MemoryView
        for arg in args:
            if arg.type.is_fused:
                arg.type = arg.type.specialize(fused_to_specific)
            self.value.generate_evaluation_code(code)
            if self.return_type.is_memoryviewslice:
                import MemoryView
                MemoryView.put_acquire_memoryviewslice(
                        lhs_cname=Naming.retval_cname,

src/c/y/cython-HEAD/Cython/Compiler/Nodes.py   cython(Download)
        if base_type.is_error: return base_type
 
        import MemoryView
 
        try:
    def use_memview_utilities(self, env):
        import MemoryView
        env.use_utility_code(MemoryView.view_utility_code)
 
 
    def generate_function_definitions(self, env, code):
        import Buffer
        if self.return_type.is_memoryviewslice:
            import MemoryView
 
            self.value.generate_evaluation_code(code)
            if self.return_type.is_memoryviewslice:
                import MemoryView
                MemoryView.put_acquire_memoryviewslice(
                        lhs_cname=Naming.retval_cname,

src/c/y/Cython-0.20.1/Cython/Compiler/Code.py   Cython(Download)
                self.putln("%s = NULL;" % decl)
            elif type.is_memoryviewslice:
                import MemoryView
                self.putln("%s = %s;" % (decl, MemoryView.memslice_entry_init))
            else:
    def put_incref_memoryviewslice(self, slice_cname, have_gil=False):
        import MemoryView
        self.globalstate.use_utility_code(MemoryView.memviewslice_init_code)
        self.putln("__PYX_INC_MEMVIEW(&%s, %d);" % (slice_cname, int(have_gil)))
 
    def put_xdecref_memoryviewslice(self, slice_cname, have_gil=False):
        import MemoryView

  1 | 2  Next