descriptors/massproduced.py
def make_class(clsname, func, attrs):
    """Turn a funcs list element into a class object."""
    clsdict = {"__set__": create_setter(func, attrs)}
    if len(attrs) > 0:
        clsdict["__init__"] = create_init(attrs)
    clsobj = type(str(clsname), (Descriptor, ), clsdict)
    clsobj.__doc__ = docstrings.get(clsname)
    return clsobj
def make_class(clsname, func, attrs):
    """Turn a funcs list element into a class object."""
    clsdict = {"__set__": create_setter(func, attrs)}
    if len(attrs) > 0:
        clsdict["__init__"] = create_init(attrs)
    clsobj = type(str(clsname), (Descriptor, ), clsdict)
    clsobj.__doc__ = docstrings.get(clsname)
    return clsobj
def make_class ( clsname , func , attrs ) : clsdict = { "__set__" : create_setter ( func , attrs ) } if len ( attrs ) > 0 : clsdict [ "__init__" ] = create_init ( attrs ) clsobj = type ( str ( clsname ) , ( Descriptor , ) , clsdict ) clsobj . __doc__ = docstrings . get ( clsname ) return clsobj
Turn a funcs list element into a class object.
Turn a funcs list element into a class object .