On Fri, Nov 22, 2013 at 7:50 AM, John Cremona <john.crem...@gmail.com> wrote: > @William: that looks like the correct diagnosis. The return value is > a list of elliptic curve points, and was failing except on the exmpty > list. I got around it by returning the bare coordinates as [P.xy() > for P in E.gens()] > > @Jeroen: I was about to say "I didn't know about alarm()" untl I saw > that I wrote almost exactly those words on that ticket 16 months ago. > And the use case is exactly what I want here too. And I am using > 5.13.beta3. So I'll try using alarm! However, the @fork did work > after I got around the pickling issue.
Is the pickling issue a bug in Sage? > It would be good if thepickling restriction was mentioned in the > documentation for @fork, all the same. How else could it possibly work? :-) Yes, I agree that should be added to fork's docstring. Fork has one benefit over alarm in this case, in that it will prevent memory leaks. > > John > > On 22 November 2013 15:37, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote: >> On 2013-11-22 16:22, John Cremona wrote: >>> >>> I am trying to use the @fork decorator as described here: >>> http://www.sagemath.org/doc/reference/parallel/sage/parallel/decorate.html >>> in order to force a function not to take more run time than some >>> maximum. >> >> Given that #13311 is fixed (and merged in sage-5.13.beta3), I think you >> should try to use alarm() for this. If it doesn't work, let me know. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+unsubscr...@googlegroups.com. >> To post to this group, send email to sage-devel@googlegroups.com. >> Visit this group at http://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/groups/opt_out. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.