Berker Peksag added the comment:

We can just fallback to the current behavior (i.e. return None) if the return 
type of text_factory(val_str) is not str, bytes or bytearray. I think this is 
also somewhat similar to what we do for the return values of 

nosy: +berker.peksag
stage:  -> needs patch
versions: +Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to