[Numpy-discussion] out parameter for np.fromfile

Mark Harfouche mark.harfouche at gmail.com
Sun Nov 4 22:34:51 EST 2018


I was wondering what would your thoughts be on adding an output parameter
to np.fromfile?

The advantage would be when interfacing with executables like ffmpeg which
are arguably easier to use by calling them as a subprocess compared to a
shared library in python.

Having the output parameter in np.fromfile would enable pre-allocation of
large arrays that are reused during the computation of new image frames
when decoding large video files.

Thoughts are appreciated!

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181104/d882dbb2/attachment.html>


More information about the NumPy-Discussion mailing list