Skip to content

cloudpickle fails on Python 3.14: pickle regression?Β #127597

@vstinner

Description

@vstinner

test_empty_file() of cloudpickle fails on Python 3.14: cloudpipe/cloudpickle#544

It fails since commit 1bb955a:

commit 1bb955a2fe0237721c141fdfe520fd3ba46db11e
Author: Serhiy Storchaka <[email protected]>
Date:   Mon Aug 5 16:21:32 2024 +0300

    gh-122459: Optimize pickling by name objects without __module__ (GH-122460)
  • Old behavior (ok): reducer_override() is only called once on a function: _file_reconstructor().
  • New behavior (bug?): reducer_override() is called on _file_reconstructor() function, and then it is called in a loop on the function _make_function().

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions