GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Switch to `libbz2-rs-sys` and finish bz2 impl by coolreader18 · Pull Request #5709 · RustPython/RustPython Conversation
|
|
See also #5605 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This one is better than mine ... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
please check #5605 and rebase on it or pick some idea if possible |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh, shoot, sorry - I didn't see that that PR was open. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| object::{PyPayload, PyResult}, | ||
| types::Constructor, | ||
| }; | ||
| use crate::zlib::{ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Since there is at-least 1 other decompression module that uses the same format (_lzma). I think this should be moved someplace common.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree - I was planning on doing that in a followup, to reduce the amount of code movement in this pr.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self.assertEqual(f.read(), "foobar") | ||
|
|
||
| # TODO: RUSTPYTHON | ||
| @unittest.expectedFailure |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@coolreader18 @arihant2math what cause this regression? could this be fixed in future?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
A flag probably needs to be added to the decompressor state. I believe the issue is the wt and rt formats. Although I'm not to sure, I suppose looking at the cpython source might help.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The reason this needed to be flagged now is because the whole test file wasn't running at all before - bz2 was not included in the --features=stdlib,threading,... flag in CI, so the module wasn't even getting compiled or tested at all.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh, didn't noticed that. Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I checkout out of this pr for #5717 so try not to change the trait too much 😄 . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Ashwin Naren <[email protected]>
| } | ||
| impl<'a> Chunker<'a> { | ||
| fn new(data: &'a [u8]) -> Self { | ||
| pub(crate) fn new(data: &'a [u8]) -> Self { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| pub(crate) fn new(data: &'a [u8]) -> Self { | |
| pub fn new(data: &'a [u8]) -> Self { |
When the struct is pub(crate), only pub here is automatically pub(crate)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
True, I think I'll change that in the follow-up.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.