[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Олег Масло
Олег Масло added the comment: If you pass None to the quote_from_bytes function, then there is no point in the "if not bs" check, because it won't even reach it. This function is not with dynamic behavior, which violates python concepts. If you pass a string instead of bytes, it

[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-07-02 Thread Олег Масло
Олег Масло added the comment: What are the next actions? Do I need to do something or are we waiting for something? -- ___ Python tracker <https://bugs.python.org/issue44

[issue44520] In Lib/urllib/parse.py quote_from_bytes, exception is thrown if bs = None

2021-06-28 Thread Олег Масло
Олег Масло added the comment: That is, all the libraries already created need to follow your advice? :) -- ___ Python tracker <https://bugs.python.org/issue44

[issue44520] exception is thrown if bs = None

2021-06-28 Thread Олег Масло
Олег Масло added the comment: Irit, the problem is that if you pass the bs parameter equal to None to the quote_from_bytes function, then the bs parameter will not be checked for existence, because a TypeError exception will be raised, and an empty string needs to be returned in this case

[issue44520] exception is thrown if bs = None

2021-06-28 Thread Олег Масло
New submission from Олег Масло : need moved the check parameter to the top of the isnstance check, because if bs = None then an exception is thrown -- components: Library (Lib) messages: 396617 nosy: asicscwcs priority: normal pull_requests: 25500 severity: normal status: open title