(clsname, modname, methods)
return type(clsname, (BaseNetref,), ns)
Creates a netref class proxying the given class
    
    :param clsname: the class's name
    :param modname: the class's module name
    :param methods: a list of ``(method name, docstring)`` tuples, of the methods
                    that the class defines
    
    :returns: a netref class
Creates a netref class proxying the given class
    
    :param clsname: the class's name
    :param modname: the class's module name
    :param methods: a list of ``(method name, docstring)`` tuples, of the methods
                    that the class defines
    
    :returns: a netref class
Creates a netref class proxying the given class : param clsname : the class s name : param modname : the class s module name : param methods : a list of ( method name docstring ) tuples of the methods that the class defines : returns : a netref class
def class_factory(clsname, modname, methods):
    """Creates a netref class proxying the given class
    
    :param clsname: the class's name
    :param modname: the class's module name
    :param methods: a list of ``(method name, docstring)`` tuples, of the methods
                    that the class defines
    
    :returns: a netref class
    """
    clsname = str(clsname)                                # IronPython issue #10
    modname = str(modname)                                # IronPython issue #10
    ns = {"__slots__" : ()}
    for name, doc in methods:
        name = str(name)                                  # IronPython issue #10
        if name not in _local_netref_attrs:
            ns[name] = _make_method(name, doc)
    ns["__module__"] = modname
    if modname in sys.modules and hasattr(sys.modules[modname], clsname):
        ns["__class__"] = getattr(sys.modules[modname], clsname)
    elif (clsname, modname) in _normalized_builtin_types:
        ns["__class__"] = _normalized_builtin_types[clsname, modname]
    else:
        # to be resolved by the instance
        ns["__class__"] = None
    return type(clsname, (BaseNetref,), ns)
def class_factory ( clsname , modname , methods ) : clsname = str ( clsname ) # IronPython issue #10 modname = str ( modname ) # IronPython issue #10 ns = { "__slots__" : ( ) } for name , doc in methods : name = str ( name ) # IronPython issue #10 if name not in _local_netref_attrs : ns [ name ] = _make_method ( name , doc ) ns [ "__module__" ] = modname if modname in sys . modules and hasattr ( sys . modules [ modname ] , clsname ) : ns [ "__class__" ] = getattr ( sys . modules [ modname ] , clsname ) elif ( clsname , modname ) in _normalized_builtin_types : ns [ "__class__" ] = _normalized_builtin_types [ clsname , modname ] else : # to be resolved by the instance ns [ "__class__" ] = None return type ( clsname , ( BaseNetref , ) , ns )