Skip to content

Add missing constructor to types.CodeType.#3040

Merged
JelleZijlstra merged 1 commit intomasterfrom
code
Jun 8, 2019
Merged

Add missing constructor to types.CodeType.#3040
JelleZijlstra merged 1 commit intomasterfrom
code

Conversation

@rchen152
Copy link
Collaborator

@rchen152 rchen152 commented Jun 8, 2019

The py3 stub already has this constructor, but it was missing from the py2 stub.

I got the argument order from
https://github.com/python/cpython/blob/2bfc2dc214445550521074f428245b502d215eac/Objects/codeobject.c#L263
and the types from the attributes already in the stub.

@JelleZijlstra JelleZijlstra merged commit d64a26c into master Jun 8, 2019
@rchen152 rchen152 deleted the code branch June 8, 2019 19:40
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.

2 participants