Get information about a function in python, looking at source code
Posted
by Werner
on Stack Overflow
See other posts from Stack Overflow
or by Werner
Published on 2010-03-25T13:48:33Z
Indexed on
2010/03/25
13:53 UTC
Read the original article
Hit count: 209
Hi,
the following code comes from the matplotlib gallery:
#!/usr/bin/env python
from pylab import *
x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5])
y = array([8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68])
I am new to python, and would like to change the content of x
and y
from an input file. I have two short questions:
- I could guess what
array
means, but once I see it on the code, how can I know to which library it belongs and more information about it? Should I use some kind of python debug commands? - How do I insert the content of my
input file into
x
?
Thanks
© Stack Overflow or respective owner