-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Derby #9: Convert 52 sites to Argument Clinic across 11 files #64377
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
Comments
This issue is part of the Great Argument Clinic Conversion Derby, This issue asks you to change the following bundle of files: Talk to me (larry) if you only want to attack part of a bundle. For instructions on how to convert a function to work with Argument |
I will pick this one up. |
Larry, the attached patch converts what is convertible of Since clinic makes you explicitly specify the fully qualified method Thoughts? |
None of the sites in Modules/_curses_panel.c look convertible. |
Attached is a first cut for sqlite3. It is generally OK, but I have the following
|
In the past few days I added "cloning" functions, which lets you reuse the parameters and return converter from an existing function. That might help with Modules/_ctypes/_ctypes. |
All the functions in curses_panel are convertable. The threeMETH_NOARGS functions simply get no arguments. And here's new_panel: new_panel |
Meador: I'm going to change Argument Clinic so you can get the "args" and "kwargs" values passed in to the impl. That's issue bpo-20291; I already added you to it "nosy" list. With that change in you'll be able to convert "sqlite3.connect". |
Larry Hastings added the comment:
I should have a fix in for __init__ and __call__ later today. (Issue bpo-20294.)
In the next few days I'm going to add support for "*args" and "**kwargs", and
You'll be able to do this soon: parameter: object(c_default='pysqlite_PrepareProtocolType') = ProtocolType This feature isn't checked in yet, I'm waiting for a review. It's part of
You can't. How about you use a default of -1 and then: if (maxrows == -1)
I'd prefer it if you converted them anyway. Converting them means they'll
Once I add the ability to pass in *args and **kwargs, you'll be able to I think I responded to all your other comments when I reviewed the patch. Thanks! |
All the Derby patches should only go into trunk at this point. |
bpo-20178-cyptes-01.patch is outdated due to changes in Argument Clinic and ctypes. Here is updated and extended patch. |
For Modules/_curses_panel.c there is special issue, bpo-20171, with the patch. bpo-20178-sqlite-01.patch is applied almost clearly, but due to changes to Argument Clinic it should be updated. Perhaps more functions can be converted (functions that don't use PyArg_Parse* are worth to be converted too). |
I'm working on converting Modules/_sqlite/* to Argument Clinic. |
FYI, sqlite3 was converted to Argument Clinic in bpo-40956. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: