Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@fork decorator not recognized in script

I'm trying to run a test script with the @fork decorator, but it isn't being recognized. The script looks like this:


def f(a):
    return a;

print out;

When I run this, I get the following error message:

Traceback (most recent call last):
File "/home/raltman/test.sage", line 3, in <module>


NameError: name 'fork' is not defined

The same code works when I run it in the sage console, and the script itself works without the @fork decorator. I'd really appreciate any help on this!