Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/ExternDefTransform.py   CythonCTypesBackend(Download)
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CFuncDeclaratorNode, CVarDefNode, SingleAssignmentNode, CStructOrUnionDefNode, PyClassDefNode, StatListNode, PassStatNode, CPtrDeclaratorNode, DecoratorNode, FuncDefNode
from Cython.Compiler.ExprNodes import NameNode, AttributeNode, ListNode, NoneNode, TupleNode, StringNode, SimpleCallNode, ImportNode, CallNode
from Cython.Compiler.TreeFragment import TreeFragment
import ctypes
    def _CFuncToFunc(self, declarator, restype):
        libname = self._find_libname(declarator.base.name)
 
        rhs=SimpleCallNode(0,
                         child_attrs=[],
            return SingleAssignmentNode(0,
                                        lhs=NameNode(0, name=node.name),
                                        rhs=SimpleCallNode(0,
                                                           child_attrs=[],
                                                           function=AttributeNode(0, obj=NameNode(0, name=u"cython"), attribute=u"ctypes_struct"),
            return SingleAssignmentNode(0,
                                        lhs=NameNode(0, name=node.name),
                                        rhs=SimpleCallNode(0,
                                                           child_attrs=[],
                                                           function=AttributeNode(0, obj=NameNode(0, name=u"cython"), attribute=u"ctypes_union"),

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/CDefVarTransform.py   CythonCTypesBackend(Download)
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.TreeFragment import TreeFragment
from Cython.Compiler.Nodes import CPtrDeclaratorNode, CArrayDeclaratorNode
from Cython.Compiler.ExprNodes import NameNode, AttributeNode, SimpleCallNode
 
 
        if isinstance(decl, CPtrDeclaratorNode):            
            subType = SimpleCallNode(0,
                         child_attrs=[],
                         function=AttributeNode(0, obj=NameNode(0, name=u"ctypes"), attribute=u"POINTER"),
                         args=[self._get_type_node(decl.base, base_type, is_sub_call=True)])
 
            if not is_sub_call:
                subType = SimpleCallNode(0,

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/CDefVarManipulationTransform.py   CythonCTypesBackend(Download)
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import SingleAssignmentNode, CascadedAssignmentNode, InPlaceAssignmentNode, ParallelAssignmentNode
from Cython.Compiler.ExprNodes import AttributeNode, NameNode, SimpleCallNode
from Cython.Compiler.PyrexTypes import CStructOrUnionType
from Cython.Compiler.TreeFragment import TreeFragment