Олег Масло 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
Олег Масло 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
Олег Масло added the comment:
That is, all the libraries already created need to follow your advice? :)
--
___
Python tracker
<https://bugs.python.org/issue44
Олег Масло 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
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