Ask Your Question

Revision history [back]

If you want an actual Python list of the possibilities, you can do something like this:

sage: shell = get_ipython()  # the IPython 'shell', which handles completion
sage: s = 'hello'
sage: shell.complete('s.r')
('s.r',
 [u's.replace',
  u's.rfind',
  u's.rindex',
  u's.rjust',
  u's.rpartition',
  u's.rsplit',
  u's.rstrip'])