On Friday, November 13, 2015 at 1:53:25 PM UTC-8, Nils Bruin wrote:
>
> I would think this is the kind of thing that is worth documenting 
> somewhere. 
>
Particularly because the behaviour depends on the underlying 
parallellization mechanism:

@parallel(p_iter="multiprocessing")
def f(a):
    return a+random()

sage: [v for _,v in f(range(10))]
[0.09820437376053981,
 1.0982043737605398,
 3.808951613936986,
 2.09820437376054,
 5.109106333045528,
 6.808951613936986,
 4.09820437376054,
 9.109106333045528,
 7.808951613936986,
 8.741294697680337]

-- 
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/d/optout.

Reply via email to