◐ Shell
clean mode source ↗

Fix bz2 module by arihant2math · Pull Request #5605 · RustPython/RustPython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@arihant2math

@arihant2math arihant2math commented

Mar 13, 2025

edited

Loading

Copy link Copy Markdown

Contributor

The new libbz2-rs-sys is a rust only implementation of bz2. This is similar to #5562.

Blog post: https://trifectatech.org/blog/translating-bzip2-with-c2rust/

@arihant2math arihant2math marked this pull request as ready for review

April 15, 2025 22:30

@arihant2math

Copy link Copy Markdown

Contributor Author

@youknowone ready for merge

Comment thread

Lib/test/test_bz2.py

self.assertRaises(TypeError, BZ2File, os.devnull, "r", 3)

# TODO: RUSTPYTHON
@unittest.expectedFailure

@youknowone youknowone

Apr 17, 2025

edited

Loading

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should we go this way if it occures these many regressions?
If this can be fixed in future, let's fix it first and merge it later.
Otherwise this must be an optional feature for specific requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@youknowone youknowone youknowone requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@arihant2math @youknowone