Closed sonerayberk closed 5 years ago
I suggest using a custom project-specific trafaret for the case.
Otherwise, we will end up with listing half of alphabet. z
for false
sounds very confusing to me.
I wonder if there is an API that assumes z
for true
?
@asvetlov Thanks for the feedback. I thought it would be nice to have a built in way to convert Z
(I meant Zero) to False, but your argument with listing alphabet sounds reasonable too.
As with
N
orY
values some API's returnsZ
as False as well. Also in the originalStrBool
-0
value exists, so here is the suggestion to extendStrBool
Trafaret withz
value.