Skip to content

Add undocumented method codecs.utf_16_be_encode. #3091

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

Merged
merged 3 commits into from
Jun 27, 2019
Merged

Add undocumented method codecs.utf_16_be_encode. #3091

merged 3 commits into from
Jun 27, 2019

Conversation

rchen152
Copy link
Collaborator

I found the signature here:
https://github.com/python/cpython/blob/6a16b18224fa98f6d192aa5014affeccc0376eb3/Modules/_codecsmodule.c#L729

google/pytype#348 was opened against
pytype about this method being missing.

@rchen152 rchen152 merged commit 5dc89fe into master Jun 27, 2019
@rchen152 rchen152 deleted the codecs branch June 27, 2019 03:29
@sproshev
Copy link
Contributor

sproshev commented Jul 1, 2019

@JelleZijlstra @rchen152 Why do we continue marking positional-only parameters with __ prefix if we have PEP 570 now?

@JelleZijlstra
Copy link
Member

Not all type checkers support the new syntax (indeed, Python 3.8 hasn't even been released yet). For mypy in particular, there were changes to the way typed-ast is used that mean mypy will likely never support PEP 570 syntax when run on Python <3.8.

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

Successfully merging this pull request may close these issues.

3 participants