Skip to content

Migrate StreamObject get_data/set_data to property with getter and setter #3616

@stefan6419846

Description

@stefan6419846

We currently have pypdf.generic._data_structures.StreamObject.get_data and pypdf.generic._data_structures.StreamObject.set_data to get and update stream data.

This is not really Pythonic, which usually has a property data with a getter and setter implementation instead.

For this reason, we should evaluate replacing this function accordingly, including a deprecation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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