This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / format / read_magic

function

numpy.lib.format:read_magic

source: build-install/usr/lib/python3.14/site-packages/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