mirror of
https://github.com/python/cpython.git
synced 2025-09-26 02:10:18 +00:00

Argument Clinic now only includes pycore_gc.h if PyGC_Head is needed, and only includes pycore_runtime.h if _Py_ID() is needed. * Add 'condition' optional argument to Clinic.add_include(). * deprecate_keyword_use() includes pycore_runtime.h when using the _PyID() function. * Fix rendering of includes: comments start at the column 35. * Mark PC/clinic/_wmimodule.cpp.h and "Objects/stringlib/clinic/*.h.h" header files as generated in .gitattributes. Effects: * 42 header files generated by AC no longer include the internal C API, instead of 4 header files before. For example, Modules/clinic/_abc.c.h no longer includes the internal C API. * Fix _testclinic_depr.c.h: it now always includes pycore_runtime.h to get _Py_ID().
30 lines
1.2 KiB
C
Generated
30 lines
1.2 KiB
C
Generated
/*[clinic input]
|
|
preserve
|
|
[clinic start generated code]*/
|
|
|
|
#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
|
|
# include "pycore_gc.h" // PyGC_Head
|
|
# include "pycore_runtime.h" // _Py_ID()
|
|
#endif
|
|
|
|
PyDoc_STRVAR(pysqlite_connect__doc__,
|
|
"connect($module, /, database, timeout=5.0, detect_types=0,\n"
|
|
" isolation_level=\'\', check_same_thread=True,\n"
|
|
" factory=ConnectionType, cached_statements=128, uri=False, *,\n"
|
|
" autocommit=sqlite3.LEGACY_TRANSACTION_CONTROL)\n"
|
|
"--\n"
|
|
"\n"
|
|
"Open a connection to the SQLite database file \'database\'.\n"
|
|
"\n"
|
|
"You can use \":memory:\" to open a database connection to a database that\n"
|
|
"resides in RAM instead of on disk.\n"
|
|
"\n"
|
|
"Note: Passing more than 1 positional argument to _sqlite3.connect() is\n"
|
|
"deprecated. Parameters \'timeout\', \'detect_types\', \'isolation_level\',\n"
|
|
"\'check_same_thread\', \'factory\', \'cached_statements\' and \'uri\' will\n"
|
|
"become keyword-only parameters in Python 3.15.\n"
|
|
"");
|
|
|
|
#define PYSQLITE_CONNECT_METHODDEF \
|
|
{"connect", _PyCFunction_CAST(pysqlite_connect), METH_FASTCALL|METH_KEYWORDS, pysqlite_connect__doc__},
|
|
/*[clinic end generated code: output=03bd99542e3aec9d input=a9049054013a1b77]*/
|