Moving from Python 2 to 3? Here's what you need to know about strings and their role in in your upgrade. An old joke asks "What do you call someone who speaks three languages? Trilingual. Two ...
It should fully validate its inputs, both encoded bencode bytes, or python object to be encoded. And it should not decode bencode bytes to str by default. Bencode doesn't have a utf-8 str type, only ...