Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commented Aug 11, 2023

@erlend-aaslanderlend-aasland changed the title WIPgh-107880: Teach Argument Clinic to clone __init__ and __new__ methodsAug 11, 2023
@erlend-aasland

This comment was marked as outdated.

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

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

@AlexWaygoodAlexWaygood 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-aaslanderlend-aasland merged commit 9b75ada into python:mainAug 13, 2023
@erlend-aaslanderlend-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 freeto 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

@erlend-aasland@AlexWaygood@bedevere-bot