| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…moryview Now a memoryview object can only be cleared if there are no buffers that refer it.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Ah, test_pickle fails:
ERROR: test_non_continuous_buffer (test.test_pickle.PyPicklingErrorTests.test_non_continuous_buffer) (proto=5)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/pickletester.py", line 2330, in test_non_continuous_buffer
self.dumps(pb, proto)
~~~~~~~~~~^^^^^^^^^^^
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_pickle.py", line 66, in dumps
p.dump(arg)
~~~~~~^^^^^
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/pickle.py", line 499, in dump
self.save(obj)
~~~~~~~~~^^^^^
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/pickle.py", line 572, in save
f(self, obj) # Call unbound method with explicit self
~^^^^^^^^^^^
File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/pickle.py", line 896, in save_picklebuffer
with obj.raw() as m:
~~~~~~~^^
BufferError: cannot extract raw buffer from non-contiguous buffer
|
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Sorry, something went wrong.
…moryview (pythonGH-123898) Now a memoryview object can only be cleared if there are no buffers that refer it. (cherry picked from commit a1dbf2e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker a1dbf2ea69acc6ccee6292709af1dadd55c068be 3.12 |
Sorry, something went wrong.
|
GH-123936 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…ng a memoryview (pythonGH-123898) Now a memoryview object can only be cleared if there are no buffers that refer it. (cherry picked from commit a1dbf2e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-123937 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Now a memoryview object can only be cleared if there are no buffers that refer it.