|
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)
zlib-py/src/lib.rs
Lines 447 to 451 in f6b6540
Since this is reachable from valid Python code, this will have to be done.