Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

lzma implementation#5717

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
youknowone merged 6 commits intoRustPython:mainfromarihant2math:lzma
May 7, 2025
Merged

lzma implementation#5717

youknowone merged 6 commits intoRustPython:mainfromarihant2math:lzma
May 7, 2025

Conversation

arihant2math
Copy link
Collaborator

Based on#5709 because of the zlib abstraction.

@arihant2matharihant2math marked this pull request as ready for reviewApril 20, 2025 05:48
@arihant2math
Copy link
CollaboratorAuthor

This turned out surprisingly effective, about 2/3s of the tests pass, which is enough for me at the moment. The main missing parts involve a bunch of unsafe things thatxz2 doesn't really support (to my knowledge atleast).

As a side note I also abstracted outCompressor likeDecompressor was abstracted

@arihant2matharihant2mathforce-pushed thelzma branch 2 times, most recently fromc09442c to2bad5d2CompareApril 21, 2025 00:01
@arihant2matharihant2math marked this pull request as draftApril 21, 2025 02:24
@arihant2matharihant2math marked this pull request as ready for reviewApril 21, 2025 02:24
@arihant2math
Copy link
CollaboratorAuthor

Lots of tests are failing because they were previously blocked due to no implementation at all.

youknowone reacted with thumbs up emoji

@arihant2matharihant2math changed the titleLzma implementationlzma implementationApr 21, 2025
@coolreader18
Copy link
Member

coolreader18 commentedApr 21, 2025
edited
Loading

Would you be able to squash these commits down? Ideally into one for copying the files from cpython, and one for all the rest?

@arihant2math
Copy link
CollaboratorAuthor

Sure

@arihant2matharihant2mathforce-pushed thelzma branch 3 times, most recently from19a43f5 toca2dc44CompareApril 21, 2025 19:40
@arihant2math
Copy link
CollaboratorAuthor

It's at 3 now, I committed things in a weird fashion so I can't get it below that.

coolreader18 reacted with thumbs up emoji

@@ -392,7 +392,8 @@ def __init__(self, name, mode, comptype, fileobj, bufsize,

elif comptype == "xz":
try:
import lzma
# TODO: RUSTPYTHON remove underscore
Copy link
Member

Choose a reason for hiding this comment

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

Is this name changed to raise ImportError? What happens if it islzma?

Copy link
CollaboratorAuthor

@arihant2matharihant2mathApr 30, 2025
edited
Loading

Choose a reason for hiding this comment

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

Yes, if left as is everything breaks because lzma is expected to be unimportable.

Copy link
Member

Choose a reason for hiding this comment

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

xz seems to be not support. Added reason and avoided to use fake module name

arihant2math reacted with thumbs up emoji
@youknowone
Copy link
Member

oh no.. I thought#5728 and this one had shared work of the new compression module

@youknowone
Copy link
Member

@arihant2math What will be the best way? Is it worth to keep#5728?
if yes, the conflict need to be resolve.
if not, reverting it and merging this can be a way.

@arihant2math
Copy link
CollaboratorAuthor

Probably easiest to revert, yes.

youknowoneand others added3 commitsMay 7, 2025 15:01
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
arihant2mathand others added2 commitsMay 7, 2025 15:01
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@youknowoneyouknowone merged commit79646fd intoRustPython:mainMay 7, 2025
19 of 22 checks passed
@arihant2matharihant2math deleted the lzma branchMay 7, 2025 16:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@youknowoneyouknowoneyouknowone approved these changes

@coolreader18coolreader18Awaiting requested review from coolreader18

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@arihant2math@coolreader18@youknowone

[8]ページ先頭

©2009-2025 Movatter.jp