Implement equivalent patch to upstream python/cpython#14268

This commit is contained in:
Charles Leifer 2019-07-22 08:46:59 -05:00
parent 4754ff5cdc
commit e113883eab
3 changed files with 63 additions and 101 deletions

View file

@ -85,11 +85,10 @@ typedef struct
*/
PyObject* text_factory;
/* remember references to functions/classes used in
* create_function/create/aggregate, use these as dictionary keys, so we
* can keep the total system refcount constant by clearing that dictionary
* in connection_dealloc */
PyObject* function_pinboard;
/* remember references to functions/classes used in trace/progress/auth cb */
PyObject* function_pinboard_trace_callback;
PyObject* function_pinboard_progress_handler;
PyObject* function_pinboard_authorizer_cb;
/* a dictionary of registered collation name => collation callable mappings */
PyObject* collations;