numpy.source()

numpy.source

numpy.source(object, output=<open file '<stdout>', mode 'w' at 0x402f7078>) [source]

Print or write to a file the source code for a NumPy object.

The source code is only returned for objects written in Python. Many functions and classes are defined in C and will therefore not return useful information.

Parameters:

object : numpy object

Input object. This can be any object (function, class, module, ...).

output :