Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py2 decode util #208

Open
stevezau opened this issue Apr 19, 2016 · 1 comment
Open

py2 decode util #208

stevezau opened this issue Apr 19, 2016 · 1 comment

Comments

@stevezau
Copy link

Hi,

Many stdlib methods return py2 str in python2 and decoded string in py3. When writing py2/3 code I have to decode on py2. I was curious why future does not have a util method for this? I thought it would be a fairly common thing?

@stevezau stevezau changed the title From native str to py2 decode util Apr 19, 2016
@gazpachoking
Copy link
Contributor

Seems like a naitive_str_to_text function would fit nicely in future.utils, I was also surprised that this isn't available. Is there some nice way to do this we are missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants