Nope, worksheet barfed trying this. I suspect the huge text info was just too much. Cant this be rerouted to a text file while its loops through. If so, how?
On Mar 21, 12:21 am, Marshall Hampton <[email protected]> wrote: > There might be a better way of doing this, but one way to get the > docstrings that show up with ? is: > > q = globals().keys() > q.sort() > docstrings = [eval(x).__doc__ for x in q] > > It really depends on what exactly you want to do though - it may be > more helpful to use a dictionary where the keys are the keys in globals > () and the values are the docstrings. > > Hope that helps, > M. Hampton > > On Mar 20, 8:17 pm, meitnik <[email protected]> wrote: > > > Cool, very helpful. Thank you! > > Ok I get 1555. I can list them if you want. Whats missing then?? > > Next, how do I get the '?' info for each function in a loop in a > > worksheet? > > I guess I need a py script to scrap out the docstrings from each > > modules (so I can sort/arrange the functions correctly)? > > Again, thank you. > > > On Mar 20, 8:18 pm, Robert Bradshaw <[email protected]> > > wrote: > > > > On Mar 20, 2009, at 1:43 PM, meitnik wrote: > > > > > Another quick option: is there a way to get a listing of all the > > > > commands/functions/keywords used in SAGE (the top level not at the > > > > source code level)? Can that listing be done within context of topical > > > > arrangement?? Inside SAGE in a cell or exported as a text file? > > > > Thanks. > > > > Try > > > > sage: globals().keys() > > > > This will give a long list of everything defined at the top level. > > > > sage: [name for name, func in globals().items() if callable(func)] > > > > Will give all the functions. Note > > > > sage: len(globals().keys()) # 3.4 > > > 1712 > > > > - Robert --~--~---------~--~----~------------~-------~--~----~ 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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
