PyDoc strings provide documentation for modules, classes, properties, methods, and functions.

In pure Python, this is provided as the first string in an object, ie;

def foo() :
    '''This function returns "Foo".'''
    return 'Foo'

PySoy is written in C, so instead we provide a NUL-terminated C string, ie;

static char
foo_doc[] = "This function returns \"Foo\".\n";

In C, multi-line strings are done as follows:

foo_doc[] = "Line 1\n"
"Line 2\n"
"\n"
"Line 4\n";