| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
To fix the failing test, you can run cargo fmt in the repository. |
Sorry, something went wrong.
|
I can't seem to see how zlibd = zlib._ZlibDecompressor() self.assertRaises(TypeError, zlibd.decompress) can produce a TypeError when using #[pymethod] on the rust side, unless it already does and I'm reading something incorrectly. |
Sorry, something went wrong.
|
Not only Constructor, it may also requires Initializer. Constructor corresponds to __new__ while Initializer corresponds to __init__ Sorry, I just checked CPython code but it doesn't look like that |
Sorry, something went wrong.
…assed to it's __init__
…ates pre-emptively
|
I resolved a few issues, but currently I'm getting a bunch of |
Sorry, something went wrong.
|
Additionally _ZlibDecompressor has to be unpicklable for another test to pass, but I'm fine with just disabling that one. |
Sorry, something went wrong.
|
Also it seems to my knowledge __getstate__ isn't a magic method I can use? It would be nice to use it because then I could pass the pickling test rather trivially. |
Sorry, something went wrong.
|
Each class need to implement __getstate__ to support pickling. pickle library will use getstate in priority. Searching for fn getstate will result other types' implementation Oh... unlike setstate, getstate doesn't have many implementations |
Sorry, something went wrong.
There was a problem hiding this comment.
would you leave a comment which version of CPython did you brought python source from? (including x in 3.12.x)
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you so much!
Sorry, something went wrong.
|
|
||
| has_fork_support = hasattr(os, "fork") and not is_emscripten and not is_wasi | ||
|
|
||
| # From python 3.12.6 |
There was a problem hiding this comment.
I am sorry to confuse you. Version was required for commit message, but this is also fine too
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
After this is merged a few GZip tests are unblocked.