16.9 Python language program code for Sage commands

Let's say you want to know what the Python program is for the Sage command to compute the center of a permutation group. Use Sage's help interface to find the file name:

sage: ?PermutationGroup.center
Type:           instancemethod
Base Class:     <type 'instancemethod'>
String Form:    <unbound method PermutationGroup.center>
Namespace:      Interactive
File:           /home/wdj/sage/local/lib/python2.4/site-packages/sage/groups/permgroup.py
Definition:     PermutationGroup.center(self)
Now you know that the command is located in the permgroup.py file and you know the directory to look for that Python module. You can use an editor to read the code itself.

See About this document... for information on suggesting changes.