Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-108494: Argument Clinic: fix support of Limited C API#108536
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
18960452a535ce06b40ab4a77952427434119e5ee2f20b03cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -244,7 +244,7 @@ load_functools_lru_cache(PyObject *module) | ||
| static PyMethodDef module_methods[] = { | ||
| PYSQLITE_ADAPT_METHODDEF | ||
| PYSQLITE_COMPLETE_STATEMENT_METHODDEF | ||
| PYSQLITE_CONNECT_METHODDEF | ||
| {"connect", _PyCFunction_CAST(pysqlite_connect), METH_FASTCALL|METH_KEYWORDS, pysqlite_connect__doc__}, | ||
erlend-aasland marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| PYSQLITE_ENABLE_CALLBACK_TRACE_METHODDEF | ||
| PYSQLITE_REGISTER_ADAPTER_METHODDEF | ||
| PYSQLITE_REGISTER_CONVERTER_METHODDEF | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -108,6 +108,7 @@ class cache_struct_converter(CConverter): | ||
| type = 'PyStructObject *' | ||
| converter = 'cache_struct_converter' | ||
| c_default = "NULL" | ||
| broken_limited_capi = True | ||
erlend-aasland marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| def parse_arg(self, argname, displayname): | ||
| return """ | ||
| @@ -120,7 +121,7 @@ class cache_struct_converter(CConverter): | ||
| def cleanup(self): | ||
| return "Py_XDECREF(%s);\n" % self.name | ||
| [python start generated code]*/ | ||
| /*[python end generated code: output=da39a3ee5e6b4b0d input=d6746621c2fb1a7d]*/ | ||
| /*[python end generated code: output=da39a3ee5e6b4b0d input=14e83804f599ed8f]*/ | ||
| static int cache_struct_converter(PyObject *, PyObject *, PyStructObject **); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #include "Python.h" | ||
| #include "pycore_tracemalloc.h" // _PyTraceMalloc_IsTracing | ||
erlend-aasland marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| #include "clinic/_tracemalloc.c.h" | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PyArg_ParseTuple()produces slightly different error message.