NAME ^

classes/pyfunc.pmc - Python Function

DESCRIPTION ^

This class implements a Python Function, i.e. a Parrot Closure.

Methods ^

void init()

Create an (empty) list of function arguments

PMC *find_method(STRING *method_name)

PMC *get_attr_str(STRING *name)

Return attribute named name.

PMC *get_class()

Return the class of this object.

STRING *get_string()

Return the representation of this object.

void *invoke(void *next)

Invoke a function. Defaults are filled in first.

void set_integer_keyed_int(INTVAL key, INTVAL *value)

Add an argument to the func_args list

void set_string_keyed_int(INTVAL key, STRING *value)

Add an argument to the func_args list

void set_string_native(STRING *value)

Set the function name.

void "__get__"()

Return a bound method object.


parrot