You are viewing an older version (2.4.3).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / format / read_magic

function

numpy.lib.format:read_magic

source: /numpy/lib/_format_impl.py:229

Signature

def read_magic(fp)

Summary

Read the magic string to get the version of the file format.

Parameters

fp : filelike object

Returns

major : int
minor : int

Aliases

  • numpy.lib._format_impl.read_magic