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

bpo-29793: Convert some builtin types constructors to Argument Clinic. #615

Merged

Conversation

serhiy-storchaka
Copy link
Member

Converted constructors are:

  • complex.__new__
  • float.__new__
  • function.__new__
  • int.__new__
  • mappingproxy.__new__
  • module.__init__
  • property.__init__
  • structseq.__new__

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Mar 11, 2017
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @tim-one, @mdickinson, @brettcannon and @tiran to be potential reviewers.

@@ -1637,6 +1609,50 @@ property_clear(PyObject *self)
return 0;
}

#include "clinic/descrobject.c.h"

PyTypeObject PyDictProxy_Type = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're refactoring this piece of code anyways, maybe we can start using designated initializers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to do this in this commit. This will be harder to review and will be easier to make an error.

@serhiy-storchaka serhiy-storchaka merged commit 18b250f into python:master Mar 19, 2017
@serhiy-storchaka serhiy-storchaka deleted the bpo-29793-clinic-constructors branch March 19, 2017 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants