tools/cwrap/plugins/__init__.py
def process_single_unpack(self, code, arg, arg_accessor):
        """Used to postprocess a type unpack.

        Same as process_single_check above, but for type unpacking. E.g. an
        example code could be:

        PyLong_FromLong(PyTuple_GET_ITEM(args, 0))

        And this code could modify that as it sees fit. For example, if the
        result of accessing the argument is None, we would not want to call the
        unpacking code.

        Args:
            code: The string code representing a type unpack for a specific
            argument being accessed.
            arg: dictionary containing properties of that specific argument
            arg_accessor: the arg_accessor string for that specific argument.
            Note that this is likely also embedded in code, but if you want to
            be able to access this arg and throw away the other code, you can
            do so.

        Returns:
            A string representing the processed unpack/access string for this
            arg. If the plugin does not know how to modify a specific input, it
            should return the original code.

        """
        return code
Used to postprocess a type unpack.

        Same as process_single_check above, but for type unpacking. E.g. an
        example code could be:

        PyLong_FromLong(PyTuple_GET_ITEM(args, 0))

        And this code could modify that as it sees fit. For example, if the
        result of accessing the argument is None, we would not want to call the
        unpacking code.

        Args:
            code: The string code representing a type unpack for a specific
            argument being accessed.
            arg: dictionary containing properties of that specific argument
            arg_accessor: the arg_accessor string for that specific argument.
            Note that this is likely also embedded in code, but if you want to
            be able to access this arg and throw away the other code, you can
            do so.

        Returns:
            A string representing the processed unpack/access string for this
            arg. If the plugin does not know how to modify a specific input, it
            should return the original code.

        
Used to postprocess a type unpack.
Same as process_single_check above, but for type unpacking.



And this code could modify that as it sees fit. For example, if the
result of accessing the argument is None, we would not want to call the
unpacking code.

The string code representing a type unpack for a specific
argument being accessed.
arg: dictionary containing properties of that specific argument
arg_accessor: the arg_accessor string for that specific argument.
Note that this is likely also embedded in code, but if you want to
be able to access this arg and throw away the other code, you can
do so.

A string representing the processed unpack/access string for this
arg. If the plugin does not know how to modify a specific input, it
should return the original code.
Used to postprocess a type unpack . Same as process_single_check above but for type unpacking . And this code could modify that as it sees fit . For example if the result of accessing the argument is None we would not want to call the unpacking code . The string code representing a type unpack for a specific argument being accessed . arg : dictionary containing properties of that specific argument arg_accessor : the arg_accessor string for that specific argument . Note that this is likely also embedded in code but if you want to be able to access this arg and throw away the other code you can do so . A string representing the processed unpack / access string for this arg . If the plugin does not know how to modify a specific input it should return the original code .
def process_single_unpack(self, code, arg, arg_accessor):
        return code
def process_single_unpack ( self , code , arg , arg_accessor ) : return code
Used to postprocess a type unpack.
Used to postprocess a type unpack .
"""Used to postprocess a type unpack.

        Same as process_single_check above, but for type unpacking. E.g. an
        example code could be:

        PyLong_FromLong(PyTuple_GET_ITEM(args, 0))

        And this code could modify that as it sees fit. For example, if the
        result of accessing the argument is None, we would not want to call the
        unpacking code.

        Args:
            code: The string code representing a type unpack for a specific
            argument being accessed.
            arg: dictionary containing properties of that specific argument
            arg_accessor: the arg_accessor string for that specific argument.
            Note that this is likely also embedded in code, but if you want to
            be able to access this arg and throw away the other code, you can
            do so.

        Returns:
            A string representing the processed unpack/access string for this
            arg. If the plugin does not know how to modify a specific input, it
            should return the original code.

        """
self
code
arg
arg_accessor