On Sep 16, 6:57 am, rjf <fate...@gmail.com> wrote:

> Another way is to establish a storage structure, e.g. hashtable,
> indexed file, etc
> to store all the documentation strings with the object names as keys.
>
> Essentially  ?variablename = doctable["variablename"]/

Currently, I store the units information about all variables in a
separate dictionary:
udict = {}
udict[H_l] = H_l*units.energy.joule/units.length.meter^2/
units.time.second
...
I also have a cdict for prescribed parameter values and I could add a
docdict for the description of the variables.

Are you suggesting that such information could be stored with the
object name? I think that would be nice. So if I typed H_l?, I would
see the entries for that key in all the dictionaries I defined?

The reason why this would be helpful is that I often don't remember
the exact name of a variable, so I could type 'H_'+<tab> to see all
the names starting with 'H_' and then go through them and immediately
see their meanings, units, etc.

Cheers
Stan

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to