Re: [sage-support] Any way to call a sage function with a time limit?

2010-11-19 Thread Alex Leone
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

Re: [sage-support] Re: Notebook appearance: change font and syntax highlighting?

2010-07-08 Thread Alex Leone
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-support] Weird Behavior with var('g1') and full_simplify()

2010-04-20 Thread Alex Leone
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,

Re: [sage-support] allocation in a list?

2010-04-19 Thread Alex Leone
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