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

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


object : numpy object

Input object.

output : file object, optional

If output not supplied then source code is printed to screen (sys.stdout). File object must be created with either write ‘w’ or append ‘a’ modes.

Previous topic

Next topic

Miscellaneous routines

This Page

Quick search