mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-91602: Add iterdump() support for filtering database objects (#114501)
Add optional 'filter' parameter to iterdump() that allows a "LIKE" pattern for filtering database objects to dump. Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
4bf41879d0
commit
1a10437a14
11 changed files with 176 additions and 17 deletions
|
|
@ -940,6 +940,7 @@ _PyStaticObjects_CheckRefcnt(PyInterpreterState *interp) {
|
|||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(fileno));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(filepath));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(fillvalue));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(filter));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(filters));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(final));
|
||||
_PyStaticObject_CheckRefcnt((PyObject *)&_Py_ID(find_class));
|
||||
|
|
|
|||
|
|
@ -429,6 +429,7 @@ struct _Py_global_strings {
|
|||
STRUCT_FOR_ID(fileno)
|
||||
STRUCT_FOR_ID(filepath)
|
||||
STRUCT_FOR_ID(fillvalue)
|
||||
STRUCT_FOR_ID(filter)
|
||||
STRUCT_FOR_ID(filters)
|
||||
STRUCT_FOR_ID(final)
|
||||
STRUCT_FOR_ID(find_class)
|
||||
|
|
|
|||
1
Include/internal/pycore_runtime_init_generated.h
generated
1
Include/internal/pycore_runtime_init_generated.h
generated
|
|
@ -938,6 +938,7 @@ extern "C" {
|
|||
INIT_ID(fileno), \
|
||||
INIT_ID(filepath), \
|
||||
INIT_ID(fillvalue), \
|
||||
INIT_ID(filter), \
|
||||
INIT_ID(filters), \
|
||||
INIT_ID(final), \
|
||||
INIT_ID(find_class), \
|
||||
|
|
|
|||
|
|
@ -1128,6 +1128,9 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) {
|
|||
string = &_Py_ID(fillvalue);
|
||||
assert(_PyUnicode_CheckConsistency(string, 1));
|
||||
_PyUnicode_InternInPlace(interp, &string);
|
||||
string = &_Py_ID(filter);
|
||||
assert(_PyUnicode_CheckConsistency(string, 1));
|
||||
_PyUnicode_InternInPlace(interp, &string);
|
||||
string = &_Py_ID(filters);
|
||||
assert(_PyUnicode_CheckConsistency(string, 1));
|
||||
_PyUnicode_InternInPlace(interp, &string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue