def nl_object_alloc(ops):
new = nl_object()<EOL>nl_init_list_head(new.ce_list)<EOL>new.ce_ops = ops<EOL>if ops.oo_constructor:<EOL><INDENT>ops.oo_constructor(new)<EOL><DEDENT>_LOGGER.debug('<STR_LIT>', id(new))<EOL>return new<EOL>
Allocate a new object of kind specified by the operations handle.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/object.c#L54

    Positional arguments:
    ops -- cache operations handle (nl_object_ops class instance).

    Returns:
    New nl_object class instance or None.