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

gh-107880: Teach Argument Clinic to clone __init__ and __new__ methods #107885

Merged
merged 4 commits into from
Aug 13, 2023

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Aug 11, 2023

@erlend-aasland erlend-aasland changed the title WIP gh-107880: Teach Argument Clinic to clone __init__ and __new__ methods Aug 11, 2023
@erlend-aasland

This comment was marked as outdated.

@erlend-aasland erlend-aasland marked this pull request as ready for review August 13, 2023 09:13
@erlend-aasland
Copy link
Contributor Author

We should also check that it's possible to clone T1.__init__ = T2.__init__ (ditto for __new__), and also T1.meth = T2.__init__.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

LGTM

@erlend-aasland erlend-aasland merged commit 9b75ada into python:main Aug 13, 2023
@erlend-aasland erlend-aasland deleted the clinic/clone-init branch August 13, 2023 10:13
erlend-aasland added a commit to erlend-aasland/cpython that referenced this pull request Aug 15, 2023
pythongh-107885 taught Argument Clinic to clone to __init__ and __new__
methods, but it did not validate the requirements of those special
methods.
erlend-aasland added a commit that referenced this pull request Aug 15, 2023
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 16, 2023
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