Skip to content

shelve del only removes the reference not the actual data #123851

@todeskurve

Description

@todeskurve

Documentation

Bug description:

del d[key] # delete data stored at key (raises KeyError

this doesn't work on 3.12 under Windows 11

it looks like two files are used to store the shelf, .dir contains keys and offsets where to find the data in the .dat-file
del shelf[key] only removes the reference in the .dir-file, but the data stays untoched (i.e. still stored) in the .dat-file

does this work on other systems and the documentation just doesn't fit my windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions