-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
codecs.encode/decode documentation inconsistency #65687
Comments
The documentation page for codecs (https://docs.python.org/2/library/codecs.html) shows keyword arguments for codecs.encode and codecs.decode, but they throw an error if keyword arguments are used. codecs.decode.__doc__ reports 'decode(obj, [encoding[,errors]]) -> object. This happens on both 2.7.6 and 3.4.0. |
Berker's patch LGTM, so assigning to him to commit. |
Brett, if you granted Berker commit privileges, you forgot to update the developer log and issue tracker... That said, the patch LGTM too. |
For Python 3.5, I would prefer to patch the code to support keywords instead. |
I sent a review on Rietveld. |
codecs_decode_encode_kw.patch: Patch for Python 3.5 adding support of keyword arguments on codecs.encode and codecs.decode. |
Nope, I forgot Berker had triage rights but not commit rights. |
New changeset cc5e3b93c35a by Victor Stinner in branch '2.7': New changeset 2e116176a81f by Victor Stinner in branch '3.4': New changeset 889896471498 by Victor Stinner in branch 'default': |
New changeset 6ceedbd88b5f by Victor Stinner in branch '3.4': |
I applied all patches and added Brad Aylsworth to Misc/ACKS. Thanks Brad! Note: I adapted the change for Python 2.7: the default encoding is ASCII, not UTF-8. |
New changeset 0d38044c0b02 by Victor Stinner in branch 'default': |
Ooops, I applied codecs_decode_encode_kw.patch to the branch 3.4 instead of default :-/ I should now be fixed. |
New changeset 0a6f0aaeb96a by Victor Stinner in branch '2.7': New changeset 91dca6b9ef0f by Victor Stinner in branch '3.4': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: