A lot of interfaces are confused what needs to be returned. Sometimes we decode what should stay bytes (e.g. pre/post read controls, syncrepl cookies), sometimes we return bytes where input should/must be a str (DNs, ...).
We should tighten this in 4.0 on the input and output sides. We'll probably keep things a little relaxed on the input side where warranted for ease of use if there is no risk of confusion when it's used.
A lot of interfaces are confused what needs to be returned. Sometimes we decode what should stay bytes (e.g. pre/post read controls, syncrepl cookies), sometimes we return bytes where input should/must be a str (DNs, ...).
We should tighten this in 4.0 on the input and output sides. We'll probably keep things a little relaxed on the input side where warranted for ease of use if there is no risk of confusion when it's used.