#4766: parallel? is lame and incomplete
--------------------+-------------------------------------------------------
Reporter: was | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-3.2.2
Component: misc | Resolution:
Keywords: |
--------------------+-------------------------------------------------------
Comment (by was):
Further comment. On the command line, IPython outputs the docstring for
the class *and* the __init__ method, but in the notebook the output is
*only* the class docstring. Thus maybe the problem is partly in how the
notebook shows docstrings.
{{{
In IPython.
Create paralleled functions.
INPUT:
p_iter -- parallel iterator function or string:
'multiprocessing' -- use multiprocessing (aka
pyprocessing)
'reference' -- use a fake serial reference
implementation
DSage instance -- use dsage
Constructor information:
Definition: parallel(self, p_iter='multiprocessing')
Docstring:
Create a parallel iterator decorator object.
EXAMPLES:
sage: @parallel()
... def f(N): return N^2
sage: v = list(f([1,2,4])); v.sort(); v
[(((1,), {}), 1), (((2,), {}), 4), (((4,), {}), 16)]
sage: @parallel('reference')
... def f(N): return N^2
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4766#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---