numpy.source()

numpy.source

numpy.source(object, output=', mode 'w' at 0x402ae078>) [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 : file objec