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

six.iterbytes name collision with (deferred) PEP 0467 #334

Open
graingert opened this issue Jun 24, 2020 · 1 comment
Open

six.iterbytes name collision with (deferred) PEP 0467 #334

graingert opened this issue Jun 24, 2020 · 1 comment

Comments

@graingert
Copy link
Contributor

graingert commented Jun 24, 2020

There's a proposal (PEP 0467) to add a bytes.iterbytes method, that currently does the opposite of six.iterbytes

>>> tuple(b"ABC".iterbytes())
(b'A', b'B', b'C')
>>> tuple(six.iterbytes(b"ABC"))
(65, 66, 67)

in an ideal world I'd like to see:

>>> tuple(six.iterbytes(b"ABC"))
(b'A', b'B', b'C')
>>> tuple(six.iterords(b"ABC"))
(65, 66, 67)

but that would require a major version change, as it's changing the existing six.iterbytes function

@graingert
Copy link
Contributor Author

/cc @ncoghlan @ethanfurman

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

No branches or pull requests

1 participant