Skip to content

Method to explicitly close memmap #13510

@lepmik

Description

@lepmik

As far as I understand, there are currently two ways to close a memmap "file"; del fp or fp._mmap.close(). However, the former only closes the file if fp is the only reference to the memmap and the latter crashes the python interpreter if there exists another reference to the memmap.

Are there any plans of implementing a close method i.e. fp.close()? It would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions