| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
* Restore support of None and other false values (fix regression introduced in pythongh-74668). * Raise TypeError for non-zero integers and non-empty sequences.
There was a problem hiding this comment.
Makes sense to me!
Sorry, something went wrong.
| qs = bytes(qs) | ||
| if not qs: | ||
| return [] | ||
| qs = bytes(memoryview(qs)) |
There was a problem hiding this comment.
Is it worth having a comment why going through memoryview first is needed (to disallow stuff like bytes(10)?), or is that trick idiomatic in standard library code?
Sorry, something went wrong.
There was a problem hiding this comment.
No, it is not so common. Added a comment.
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
…H-116801) * Restore support of None and other false values. * Raise TypeError for non-zero integers and non-empty sequences. The regressions were introduced in pythongh-74668 (bdba8ef). (cherry picked from commit 1069a46) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-116894 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
…H-116801) * Restore support of None and other false values. * Raise TypeError for non-zero integers and non-empty sequences. The regressions were introduced in pythongh-74668 (bdba8ef). (cherry picked from commit 1069a46) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-116895 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…H-116801) * Restore support of None and other false values. * Raise TypeError for non-zero integers and non-empty sequences. The regressions were introduced in pythongh-74668 (bdba8ef).
…H-116801) * Restore support of None and other false values. * Raise TypeError for non-zero integers and non-empty sequences. The regressions were introduced in pythongh-74668 (bdba8ef).
…H-116801) * Restore support of None and other false values. * Raise TypeError for non-zero integers and non-empty sequences. The regressions were introduced in pythongh-74668 (bdba8ef).
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.