| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
(.oss) ➜ cpython git:(gh-90751) ✗ ./python.exe -m test test_memoryview -R 3:3 Raised RLIMIT_NOFILE: 256 -> 1024 0:00:00 load avg: 1.24 Run tests sequentially 0:00:00 load avg: 1.24 [1/1] test_memoryview beginning 6 repetitions 123456 ...... == Tests result: SUCCESS == 1 test OK. Total duration: 660 ms Tests result: SUCCESS |
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again. |
Sorry, something went wrong.
Hmm, would you like to recommend the proper place? |
Sorry, something went wrong.
|
@corona10 You can use this patch: but you'll see that it triggers some "RuntimeError: memoryview: internal error in richcompare" exceptions. |
Sorry, something went wrong.
|
Thanks, I implemented unpack_cmp for half-float to pass your suggestion. ➜ cpython git:(gh-90751) ✗ ./python.exe -m test test_buffer -R 3:3 Raised RLIMIT_NOFILE: 256 -> 1024 0:00:00 load avg: 2.45 Run tests sequentially 0:00:00 load avg: 2.45 [1/1] test_buffer beginning 6 repetitions 123456 ...... test_buffer passed in 38.4 sec == Tests result: SUCCESS == 1 test OK. Total duration: 38.4 sec Tests result: SUCCESS |
Sorry, something went wrong.
|
With Numpy installed I get errors, will push a fix. |
Sorry, something went wrong.
Thanks |
Sorry, something went wrong.
|
@pitrou test_buffer leaked [1481, 1467, 1476] references, sum=4424 test_buffer failed (reference leak) in 53.9 sec |
Sorry, something went wrong.
|
Forget about #96738 (comment)
test_buffer leaked [1392, 1380, 1375] references, sum=4147
test_buffer failed (reference leak) in 50.1 sec
== Tests result: FAILURE ==
1 test failed:
test_buffer
Total duration: 50.1 sec
Tests result: FAILURE
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Python 3.12.0a0 (heads/gh-90751:e8c1fed38f, Sep 10 2022, 17:46:55) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> np.__version__ '1.23.3' |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
With patch
Python 3.12.0a0 (heads/gh-90751:ea5e2db2fa, Sep 10 2022, 15:41:30) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy as np >>> a = np.array([0.0, -1.5], np.float16()) >>> list(memoryview(a)) [0.0, -1.5] >>> memoryview(a.tobytes()).cast('e').tolist() [0.0, -1.5] >>>