Skip to content

Compress.copy NotImeplemented — needs libz-rs-sys deflateCopy #4

Description

@dimaqq

zlib-py/src/lib.rs

Lines 447 to 451 in f6b6540

fn copy(&self) -> PyResult<Compress> {
Err(PyNotImplementedError::new_err(
"Compress.copy not yet supported — needs libz-rs-sys deflateCopy",
))
}

Since this is reachable from valid Python code, this will have to be done.

c0 = zlib.compressobj()
prefix = c0.compress(b"common prefix")

c1 = c0.copy()
c2 = copy.copy(c0)
c3 = copy.deepcopy(c0)

Metadata

Metadata

Assignees

No one assigned

    Labels

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