You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to return str instead bytes from generate_latest() #1060
Because converting to bytes anyway happened at the end of function, have sense to return str instead bytes or have options to avoid extra transformation. (many API expected str)
I think the ship has sailed on this, any uses of generate_latest today will be using bytes and changing the return type would be a significant breaking change.
I think we can create a new function generate_latest_b() and return bytes, and original function will just call new function and convert to string.
Seems like the current behavior comes from Python2 era.
Because converting to bytes anyway happened at the end of function, have sense to return str instead bytes or have options to avoid extra transformation. (many API expected str)