def get_c_init(r, name, sub):
 pre = ('\n    py_%(name)s = Py_None;\n    {Py_XINCREF(py_%(name)s);}\n    ' % locals())
 return (pre + r.type.c_init(name, sub))

def get_c_init ( r , name , sub ) : pre = ( '\n    py_%(name)s = Py_None;\n    {Py_XINCREF(py_%(name)s);}\n    ' % locals ( ) ) return ( pre + r . type . c_init ( name , sub ) )
wrapper around c_init that initializes py_name to py_none .