-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Argument Clinic: make it possible to clone __init__ functions #107880
Labels
Comments
erlend-aasland
added
type-feature
A feature request or enhancement
topic-argument-clinic
labels
Aug 11, 2023
erlend-aasland
added a commit
that referenced
this issue
Aug 13, 2023
#107885 introduced a regression; it is now possible to clone from a normal method to either
|
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
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 issue
Aug 15, 2023
Co-authored-by: Alex Waygood <[email protected]>
iritkatriel
pushed a commit
to iritkatriel/cpython
that referenced
this issue
Aug 16, 2023
…ython#107974) Co-authored-by: Alex Waygood <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #93057 (comment)
In sqlite3, both
sqlite3.connect
andsqlite3.Connection.__init__
have the same param spec. This has led to the far-from-optimal status quo:cpython/Modules/_sqlite/module.c
Lines 51 to 69 in d93b4ac
cpython/Modules/_sqlite/connection.c
Lines 215 to 239 in d93b4ac
Instead, we want to be able to do this in connection.c:
The methoddef and docstring for
sqlite3.connect
could then be included in module.c.However, to achieve this, we need to teach Argument Clinic how to clone
__init__
functions.Linked PRs
The text was updated successfully, but these errors were encountered: