0

I have seemed to forgot the command to look for functions in python and in numpy? Are there shortcuts that one can use to search for functions in numpy and python? I know help is used assuming you know the name of the function. Is the function lookfor?

2
  • you mean dir(some_module)? ... google is usually what I use though :P Commented May 1, 2013 at 19:27
  • With IPython, you can type (e.g.) sys. <TAB> to see the contents of the sys module. Commented May 1, 2013 at 22:44

2 Answers 2

1

I think you are looking for help() and/or dir(). Try:

import os

help(os)

and:

dir(str)
Sign up to request clarification or add additional context in comments.

Comments

0
In [9]: import numpy as np

In [10]: dir(np)[-10:]
Out[10]:
['vectorize',
 'version',
 'void',
 'void0',
 'vsplit',
 'vstack',
 'where',
 'who',
 'zeros',
 'zeros_like']

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.