Skip to content

DOC: np.save{,z} does not make clear that it’s not suited for longterm storage #30786

Description

@flying-sheep

Describe the issue:

See title. Alternatively, numpy shouldn’t warn when reading a pickle file it wrote.

Reproduce the code example:

import pickle
import subprocess

url = <edit to remove link to pickle>
with urllib.request.urlopen(url) as con:
    true_scores_t_test, true_names_t_test = np.load(con, allow_pickle=True)

Error message:

numpy.exceptions.VisibleDeprecationWarning: dtype(): align should be passed as Python or NumPy boolean but got `align=0`. Did you mean to pass a tuple to create a subarray type? (Deprecated NumPy 2.4)

Python and NumPy Versions:

2.4.2
3.14.0 (main, Oct 14 2025, 21:10:22) [Clang 20.1.4 ]

Runtime Environment:

No response

How does this issue affect you or how did you find it:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions