I think the @fork decorator might do what you want. I've never used it though.
@fork(timeout=5.0)
def f(...):
...
- Alex
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more
I just recently got a patch into codemirror (the syntax highlighting that
data files use) so that it resizes just like sage input cell textarea's. We
should be able to replace input cells with codemirror soon.
- Alex
--
To post to this group, send email to sage-support@googlegroups.com
To unsu
sage: g1 = var('g1')
sage: g1
g1
sage: g1.full_simplify()
(-1)^k*k/(4*k^2 - 1)
Where is the k coming from?!!
- Alex
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options,
In python, assignment is a statement, not an expression (it has no
return value).
This is unlike many other programming languages, such as C:
if ( (r = result()) == 3) {
// do something with r
}
In python:
>>> (a = 10) + 2
File "", line 1
(a = 10) + 2
^
SyntaxError: invalid syntax