You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numpy.load() says that the file parameter must support seek() and read(). However, in the event that pickle.load() is invoked on the file (i.e. via the _cload() function), the file must also support readline(). According to the pickle documentation (and based on my actual experience), the pickle.load() requirements on the file-like object are:
The file-like object must have two methods, a read() method
that takes an integer argument, and a readline() method that
requires no arguments.
So, it seems that the numpy.load() docstring should be updated to indicate this somehow.
The text was updated successfully, but these errors were encountered:
numpy.load() says that the
file
parameter must support seek() and read(). However, in the event that pickle.load() is invoked on the file (i.e. via the _cload() function), the file must also support readline(). According to the pickle documentation (and based on my actual experience), the pickle.load() requirements on the file-like object are:The file-like object must have two methods, a read() method
that takes an integer argument, and a readline() method that
requires no arguments.
So, it seems that the numpy.load() docstring should be updated to indicate this somehow.
The text was updated successfully, but these errors were encountered: