ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 13 Jul 2014 18:56:09 +0200How to see the documentation for a Sage functionhttps://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/I am looking for the documentation (i.e., the source code) of `invariant_degree()` in the [Weyl Character Rings](http://www.sagemath.org/doc/reference/combinat/sage/combinat/root_system/weyl_characters.html?highlight=invariant_degree)
module. I have looked through that website pretty extensively, but I think I am looking in the wrong place?Mon, 17 Jun 2013 16:02:36 +0200https://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/Answer by vdelecroix for <p>I am looking for the documentation (i.e., the source code) of <code>invariant_degree()</code> in the <a href="http://www.sagemath.org/doc/reference/combinat/sage/combinat/root_system/weyl_characters.html?highlight=invariant_degree">Weyl Character Rings</a>
module. I have looked through that website pretty extensively, but I think I am looking in the wrong place?</p>
https://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/?answer=15082#post-id-15082To access the source code you can do
sage: my_object??
In your case
sage: R = WeylCharacterRing(['A',2], prefix="R")
sage: x = R.an_element()
sage: x.invariant_degree??Mon, 17 Jun 2013 16:21:38 +0200https://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/?answer=15082#post-id-15082Comment by slelievre for <p>To access the source code you can do</p>
<pre><code>sage: my_object??
</code></pre>
<p>In your case</p>
<pre><code>sage: R = WeylCharacterRing(['A',2], prefix="R")
sage: x = R.an_element()
sage: x.invariant_degree??
</code></pre>
https://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/?comment=23401#post-id-23401Note: `x.invariant_degree??` also tells you the path to the file in which the source code is, so you can open that file in your favourite text editor to read it more comfortably and to have a look at the surrounding code.Sun, 13 Jul 2014 18:56:09 +0200https://ask.sagemath.org/question/10228/how-to-see-the-documentation-for-a-sage-function/?comment=23401#post-id-23401