def get_c_init(r, name, sub):
    """
    Wrapper around c_init that initializes py_name to Py_None.

    """
    pre = (
        """
    py_%(name)s = Py_None;
    {Py_XINCREF(py_%(name)s);}
    """ %
        locals())
    return pre + r.type.c_init(name, sub)
