| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #18424 +/- ##
===========================================
+ Coverage 82.19% 83.19% +0.99%
===========================================
Files 1957 1570 -387
Lines 589306 414436 -174870
Branches 44428 44428
===========================================
- Hits 484409 344788 -139621
+ Misses 95235 59998 -35237
+ Partials 9662 9650 -12
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
Oops, I had a pending comment that I never submitted! |
Sorry, something went wrong.
I always forget to submit too ; ) |
Sorry, something went wrong.
|
@vstinner Hi, victor. There have a testcase of nomralizeing() in #19069, can you take a look if you have free time, thanks. |
Sorry, something went wrong.
|
|
||
| data = PyBytes_AS_STRING(value); | ||
| size = strlen(data); /* XXX Why not Py_SIZE(value)? */ | ||
| /* bpo-39593: XXX Why not Py_SIZE(value)? */ |
There was a problem hiding this comment.
I don't think that it's correct to add a test which indirectly specify the behavior and keep this comment which suggests to change the behavior.
I suggest to rewrite the comment to explain that we do use strlen() on purpose, rather than PyBytes_GET_SIZE() since we truncate characters after a null character on purpose. Keep the bpo number in the comment.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks, got it. I updated the description info, do you think it's clear enough?
Sorry, something went wrong.
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Thanks, merged. |
Sorry, something went wrong.
Thanks, victor. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue39593