8000 feat: implement `zlib.__version__` by rexledesma · Pull Request #5776 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

feat: implement zlib.__version__ #5776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: implement zlib.__version__
  • Loading branch information
rexledesma committed May 8, 2025
commit 15a1851926ffbff15f2d01c48cfbbf5e3b9e8b2c
3 changes: 3 additions & 0 deletions stdlib/src/zlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ mod zlib {
Z_NO_COMPRESSION, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_RLE, Z_SYNC_FLUSH, Z_TREES,
};

#[pyattr(name = "__version__")]
const __VERSION__: &str = "1.0";

// we're statically linking libz-rs, so the compile-time and runtime
// versions will always be the same
#[pyattr(name = "ZLIB_RUNTIME_VERSION")]
Expand Down
Loading
0