from sage.parallel.multiprocessing_sage import pyprocessing p_iter = pyprocessing(4) P = parallel(p_iter=p_iter)
def f(x): y=x+2 return y v = list(P(f)(list(range(10)))); v.sort() print(v) why I am not able to compile the code? If I return only x then it shows the output. Please help me -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/14c2b09b-c73c-4153-a043-daad1c3f8effo%40googlegroups.com.