On Mon, 5 Oct 2015, kcrisman wrote:
sage: lagrange_polynomial?? # should be code
Note that the latter doesn't always work (for instance Python built-ins,
or some (all?) Cythonized functions) or so it seems to me.
Also this does not work with all (longer?) functions in the notebook. Try
g = Graph()
g.plot??
for an example of one kind of a bug.
* * *
And of course it might be tricky to follow the code. For example
P = Poset()
P.mobius_function??
basically shows that you must look from the code of Hasse diagram. So you
continue with
P._hasse_diagram.mobius_function??
and see the function? Yes and no. If you say
P = Poset()
P.mobius_function_matrix()
P.mobius_function??
you see how it was redefined when you computed the matrix. You can not
know that before trying or reading source code for few .py files.
--
Jori Mäntysalo