mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 02:53:56 +03:00
Update Cython version
This commit is contained in:
parent
b6f6f63764
commit
af7297ce71
|
@ -16,6 +16,8 @@ Development version
|
|||
- Fix a few typos in docs (thanks to `Bruno P. Kinoshita <https://github.com/kinow>`_,
|
||||
`issue #249 <https://github.com/ets-labs/python-dependency-injector/issues/249>`_,
|
||||
`PR #250 <https://github.com/ets-labs/python-dependency-injector/pull/250>`_).
|
||||
- Regenerate C sources using Cython 0.29.20.
|
||||
|
||||
|
||||
3.15.6
|
||||
------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cython==0.29.14
|
||||
cython==0.29.20
|
||||
tox
|
||||
unittest2
|
||||
coverage
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Generated by Cython 0.29.14 */
|
||||
/* Generated by Cython 0.29.20 */
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
|
@ -7,8 +7,8 @@
|
|||
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
|
||||
#error Cython requires Python 2.6+ or Python 3.3+.
|
||||
#else
|
||||
#define CYTHON_ABI "0_29_14"
|
||||
#define CYTHON_HEX_VERSION 0x001D0EF0
|
||||
#define CYTHON_ABI "0_29_20"
|
||||
#define CYTHON_HEX_VERSION 0x001D14F0
|
||||
#define CYTHON_FUTURE_DIVISION 0
|
||||
#include <stddef.h>
|
||||
#ifndef offsetof
|
||||
|
@ -484,8 +484,10 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
|
|||
#define PyString_Type PyUnicode_Type
|
||||
#define PyString_Check PyUnicode_Check
|
||||
#define PyString_CheckExact PyUnicode_CheckExact
|
||||
#ifndef PyObject_Unicode
|
||||
#define PyObject_Unicode PyObject_Str
|
||||
#endif
|
||||
#endif
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
|
||||
#define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
|
||||
|
@ -496,6 +498,13 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
|
|||
#ifndef PySet_CheckExact
|
||||
#define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x030900A4
|
||||
#define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
|
||||
#define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
|
||||
#else
|
||||
#define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
|
||||
#define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
|
||||
#endif
|
||||
#if CYTHON_ASSUME_SAFE_MACROS
|
||||
#define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
|
||||
#else
|
||||
|
@ -576,11 +585,10 @@ static CYTHON_INLINE float __PYX_NAN() {
|
|||
#define __Pyx_truncl truncl
|
||||
#endif
|
||||
|
||||
|
||||
#define __PYX_MARK_ERR_POS(f_index, lineno) \
|
||||
{ __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
|
||||
#define __PYX_ERR(f_index, lineno, Ln_error) \
|
||||
{ \
|
||||
__pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
|
||||
}
|
||||
{ __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }
|
||||
|
||||
#ifndef __PYX_EXTERN_C
|
||||
#ifdef __cplusplus
|
||||
|
@ -2119,7 +2127,7 @@ static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname);
|
|||
/* FetchCommonType.proto */
|
||||
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
|
||||
|
||||
/* CythonFunction.proto */
|
||||
/* CythonFunctionShared.proto */
|
||||
#define __Pyx_CyFunction_USED 1
|
||||
#define __Pyx_CYFUNCTION_STATICMETHOD 0x01
|
||||
#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
|
||||
|
@ -2147,6 +2155,7 @@ typedef struct {
|
|||
PyObject *func_classobj;
|
||||
void *defaults;
|
||||
int defaults_pyobjects;
|
||||
size_t defaults_size; // used by FusedFunction for copying defaults
|
||||
int flags;
|
||||
PyObject *defaults_tuple;
|
||||
PyObject *defaults_kwdict;
|
||||
|
@ -2155,9 +2164,7 @@ typedef struct {
|
|||
} __pyx_CyFunctionObject;
|
||||
static PyTypeObject *__pyx_CyFunctionType = 0;
|
||||
#define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType))
|
||||
#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\
|
||||
__Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code)
|
||||
static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml,
|
||||
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
|
||||
int flags, PyObject* qualname,
|
||||
PyObject *self,
|
||||
PyObject *module, PyObject *globals,
|
||||
|
@ -2173,6 +2180,13 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
|
|||
PyObject *dict);
|
||||
static int __pyx_CyFunction_init(void);
|
||||
|
||||
/* CythonFunction.proto */
|
||||
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
|
||||
int flags, PyObject* qualname,
|
||||
PyObject *closure,
|
||||
PyObject *module, PyObject *globals,
|
||||
PyObject* code);
|
||||
|
||||
/* GetAttr3.proto */
|
||||
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);
|
||||
|
||||
|
@ -2189,7 +2203,7 @@ static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
|
|||
if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
|
||||
Py_INCREF(x);
|
||||
PyList_SET_ITEM(list, len, x);
|
||||
Py_SIZE(list) = len+1;
|
||||
__Pyx_SET_SIZE(list, len + 1);
|
||||
return 0;
|
||||
}
|
||||
return PyList_Append(list, x);
|
||||
|
@ -2789,6 +2803,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_1 = NULL;
|
||||
PyObject *__pyx_t_2 = NULL;
|
||||
PyObject *__pyx_t_3 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__init__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":52
|
||||
|
@ -2903,6 +2920,9 @@ static PyObject *__pyx_pw_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_v_self = 0;
|
||||
PyObject *__pyx_v_name = 0;
|
||||
PyObject *__pyx_v_value = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
|
||||
|
@ -2984,6 +3004,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_5 = NULL;
|
||||
int __pyx_t_6;
|
||||
PyObject *__pyx_t_7 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__setattr__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":71
|
||||
|
@ -3138,6 +3161,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_16DynamicContai
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_16DynamicContainer_5__delattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_self = 0;
|
||||
PyObject *__pyx_v_name = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__delattr__ (wrapper)", 0);
|
||||
|
@ -3207,6 +3233,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
int __pyx_t_3;
|
||||
PyObject *__pyx_t_4 = NULL;
|
||||
PyObject *__pyx_t_5 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__delattr__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":87
|
||||
|
@ -3322,6 +3351,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_16DynamicContai
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_16DynamicContainer_7set_providers(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_self = 0;
|
||||
PyObject *__pyx_v_providers = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("set_providers (wrapper)", 0);
|
||||
|
@ -3386,6 +3418,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_7 = NULL;
|
||||
PyObject *(*__pyx_t_8)(PyObject *);
|
||||
int __pyx_t_9;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("set_providers", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":100
|
||||
|
@ -3567,6 +3602,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_16DynamicContai
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_16DynamicContainer_9override(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_self = 0;
|
||||
PyObject *__pyx_v_overriding = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("override (wrapper)", 0);
|
||||
|
@ -3642,6 +3680,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_12 = NULL;
|
||||
PyObject *__pyx_t_13 = NULL;
|
||||
int __pyx_t_14;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("override", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":114
|
||||
|
@ -4010,6 +4051,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_16DynamicContai
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_16DynamicContainer_11override_providers(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_self = 0;
|
||||
PyObject *__pyx_v_overriding_providers = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("override_providers (wrapper)", 0);
|
||||
|
@ -4074,6 +4118,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_6 = NULL;
|
||||
PyObject *__pyx_t_7 = NULL;
|
||||
PyObject *(*__pyx_t_8)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("override_providers", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":135
|
||||
|
@ -4306,6 +4353,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_7 = NULL;
|
||||
Py_ssize_t __pyx_t_8;
|
||||
PyObject *(*__pyx_t_9)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("reset_last_overriding", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":144
|
||||
|
@ -4560,6 +4610,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_16DynamicContainer_
|
|||
PyObject *__pyx_t_4 = NULL;
|
||||
Py_ssize_t __pyx_t_5;
|
||||
PyObject *(*__pyx_t_6)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("reset_override", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":157
|
||||
|
@ -4725,6 +4778,9 @@ static PyObject *__pyx_pw_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *__pyx_v_class_name = 0;
|
||||
PyObject *__pyx_v_bases = 0;
|
||||
PyObject *__pyx_v_attributes = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__new__ (wrapper)", 0);
|
||||
|
@ -4822,6 +4878,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_1_genexpr *__pyx_cur_scope;
|
||||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_1_genexpr *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct_1_genexpr(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct_1_genexpr, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -4864,6 +4923,9 @@ static PyObject *__pyx_gb_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *__pyx_t_7 = NULL;
|
||||
PyObject *(*__pyx_t_8)(PyObject *);
|
||||
int __pyx_t_9;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
switch (__pyx_generator->resume_label) {
|
||||
|
@ -5106,6 +5168,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_2_genexpr *__pyx_cur_scope;
|
||||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_2_genexpr *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct_2_genexpr(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct_2_genexpr, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -5149,6 +5214,9 @@ static PyObject *__pyx_gb_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *(*__pyx_t_8)(PyObject *);
|
||||
int __pyx_t_9;
|
||||
int __pyx_t_10;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
switch (__pyx_generator->resume_label) {
|
||||
|
@ -5392,6 +5460,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_3_genexpr *__pyx_cur_scope;
|
||||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_3_genexpr *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct_3_genexpr(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct_3_genexpr, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -5438,6 +5509,9 @@ static PyObject *__pyx_gb_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *(*__pyx_t_11)(PyObject *);
|
||||
PyObject *__pyx_t_12 = NULL;
|
||||
PyObject *(*__pyx_t_13)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("genexpr", 0);
|
||||
switch (__pyx_generator->resume_label) {
|
||||
|
@ -5765,6 +5839,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *__pyx_t_5 = NULL;
|
||||
Py_ssize_t __pyx_t_6;
|
||||
PyObject *(*__pyx_t_7)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__new__", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct____new__ *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct____new__(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct____new__, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -6109,6 +6186,9 @@ static PyObject *__pyx_pw_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *__pyx_v_cls = 0;
|
||||
PyObject *__pyx_v_name = 0;
|
||||
PyObject *__pyx_v_value = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
|
||||
|
@ -6190,6 +6270,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
PyObject *__pyx_t_5 = NULL;
|
||||
int __pyx_t_6;
|
||||
PyObject *__pyx_t_7 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__setattr__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":213
|
||||
|
@ -6356,6 +6439,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_29DeclarativeCo
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_29DeclarativeContainerMetaClass_5__delattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_cls = 0;
|
||||
PyObject *__pyx_v_name = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__delattr__ (wrapper)", 0);
|
||||
|
@ -6426,6 +6512,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_29DeclarativeContai
|
|||
int __pyx_t_4;
|
||||
PyObject *__pyx_t_5 = NULL;
|
||||
PyObject *__pyx_t_6 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__delattr__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":230
|
||||
|
@ -6565,6 +6654,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_20DeclarativeCo
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_20DeclarativeContainer_1__new__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_cls = 0;
|
||||
PyObject *__pyx_v_overriding_providers = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("__new__ (wrapper)", 0);
|
||||
|
@ -6623,6 +6715,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
|||
PyObject *__pyx_t_2 = NULL;
|
||||
PyObject *__pyx_t_3 = NULL;
|
||||
PyObject *__pyx_t_4 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__new__", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":299
|
||||
|
@ -6761,6 +6856,9 @@ static PyMethodDef __pyx_mdef_19dependency_injector_10containers_20DeclarativeCo
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_20DeclarativeContainer_3override(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_cls = 0;
|
||||
PyObject *__pyx_v_overriding = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("override (wrapper)", 0);
|
||||
|
@ -6836,6 +6934,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
|||
PyObject *__pyx_t_12 = NULL;
|
||||
PyObject *__pyx_t_13 = NULL;
|
||||
int __pyx_t_14;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("override", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":317
|
||||
|
@ -7225,6 +7326,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
|||
PyObject *__pyx_t_7 = NULL;
|
||||
Py_ssize_t __pyx_t_8;
|
||||
PyObject *(*__pyx_t_9)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("reset_last_overriding", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":335
|
||||
|
@ -7479,6 +7583,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_20DeclarativeContai
|
|||
PyObject *__pyx_t_4 = NULL;
|
||||
Py_ssize_t __pyx_t_5;
|
||||
PyObject *(*__pyx_t_6)(PyObject *);
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("reset_override", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":349
|
||||
|
@ -7681,6 +7788,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_8override__decorato
|
|||
PyObject *__pyx_t_1 = NULL;
|
||||
PyObject *__pyx_t_2 = NULL;
|
||||
PyObject *__pyx_t_3 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("_decorator", 0);
|
||||
__pyx_outer_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_4_override *) __Pyx_CyFunction_GetClosure(__pyx_self);
|
||||
__pyx_cur_scope = __pyx_outer_scope;
|
||||
|
@ -7759,6 +7869,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_override(CYTHON_UNU
|
|||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("override", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_4_override *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct_4_override(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct_4_override, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -7779,7 +7892,7 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_override(CYTHON_UNU
|
|||
* """Overriding decorator."""
|
||||
* container.override(overriding_container)
|
||||
*/
|
||||
__pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_8override_1_decorator, 0, __pyx_n_s_override_locals__decorator, ((PyObject*)__pyx_cur_scope), __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 365, __pyx_L1_error)
|
||||
__pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_8override_1_decorator, 0, __pyx_n_s_override_locals__decorator, ((PyObject*)__pyx_cur_scope), __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 365, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_1);
|
||||
__pyx_v__decorator = __pyx_t_1;
|
||||
__pyx_t_1 = 0;
|
||||
|
@ -7886,6 +7999,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_4copy__decorator(Py
|
|||
int __pyx_t_12;
|
||||
struct __pyx_opt_args_19dependency_injector_9providers_deepcopy __pyx_t_13;
|
||||
int __pyx_t_14;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("_decorator", 0);
|
||||
__pyx_outer_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_5_copy *) __Pyx_CyFunction_GetClosure(__pyx_self);
|
||||
__pyx_cur_scope = __pyx_outer_scope;
|
||||
|
@ -8341,6 +8457,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_2copy(CYTHON_UNUSED
|
|||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("copy", 0);
|
||||
__pyx_cur_scope = (struct __pyx_obj_19dependency_injector_10containers___pyx_scope_struct_5_copy *)__pyx_tp_new_19dependency_injector_10containers___pyx_scope_struct_5_copy(__pyx_ptype_19dependency_injector_10containers___pyx_scope_struct_5_copy, __pyx_empty_tuple, NULL);
|
||||
if (unlikely(!__pyx_cur_scope)) {
|
||||
|
@ -8361,7 +8480,7 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_2copy(CYTHON_UNUSED
|
|||
* cdef dict memo = dict()
|
||||
* for name, provider in six.iteritems(copied_container.cls_providers):
|
||||
*/
|
||||
__pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_4copy_1_decorator, 0, __pyx_n_s_copy_locals__decorator, ((PyObject*)__pyx_cur_scope), __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error)
|
||||
__pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_4copy_1_decorator, 0, __pyx_n_s_copy_locals__decorator, ((PyObject*)__pyx_cur_scope), __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_1);
|
||||
__pyx_v__decorator = __pyx_t_1;
|
||||
__pyx_t_1 = 0;
|
||||
|
@ -8413,6 +8532,9 @@ static int __pyx_f_19dependency_injector_10containers_is_container(PyObject *__p
|
|||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_t_2;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("is_container", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":411
|
||||
|
@ -8465,6 +8587,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_4is_container(CYTHO
|
|||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("is_container", 0);
|
||||
__Pyx_XDECREF(__pyx_r);
|
||||
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_f_19dependency_injector_10containers_is_container(__pyx_v_instance, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error)
|
||||
|
@ -8506,6 +8631,9 @@ static PyObject *__pyx_f_19dependency_injector_10containers__check_provider_type
|
|||
PyObject *__pyx_t_8 = NULL;
|
||||
int __pyx_t_9;
|
||||
PyObject *__pyx_t_10 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("_check_provider_type", 0);
|
||||
|
||||
/* "dependency_injector/containers.pyx":415
|
||||
|
@ -8648,6 +8776,9 @@ static PyObject *__pyx_pw_19dependency_injector_10containers_7_check_provider_ty
|
|||
static PyObject *__pyx_pw_19dependency_injector_10containers_7_check_provider_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
||||
PyObject *__pyx_v_container = 0;
|
||||
PyObject *__pyx_v_provider = 0;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
PyObject *__pyx_r = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
__Pyx_RefNannySetupContext("_check_provider_type (wrapper)", 0);
|
||||
|
@ -8708,6 +8839,9 @@ static PyObject *__pyx_pf_19dependency_injector_10containers_6_check_provider_ty
|
|||
PyObject *__pyx_r = NULL;
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("_check_provider_type", 0);
|
||||
__Pyx_XDECREF(__pyx_r);
|
||||
__pyx_t_1 = __pyx_f_19dependency_injector_10containers__check_provider_type(__pyx_v_container, __pyx_v_provider, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error)
|
||||
|
@ -8782,6 +8916,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___get_va
|
|||
PyObject *__pyx_t_2 = NULL;
|
||||
PyObject *__pyx_t_3 = NULL;
|
||||
PyObject *__pyx_t_4 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__get_value", 0);
|
||||
|
||||
/* "providers.pxd":225
|
||||
|
@ -8884,6 +9021,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___provid
|
|||
int __pyx_t_4;
|
||||
int __pyx_t_5;
|
||||
int __pyx_t_6;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__provide_positional_args", 0);
|
||||
|
||||
/* "providers.pxd":239
|
||||
|
@ -9035,6 +9175,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___provid
|
|||
int __pyx_t_5;
|
||||
PyObject *__pyx_t_6 = NULL;
|
||||
int __pyx_t_7;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__provide_keyword_args", 0);
|
||||
|
||||
/* "providers.pxd":260
|
||||
|
@ -9255,6 +9398,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___inject
|
|||
PyObject *__pyx_t_4 = NULL;
|
||||
PyObject *__pyx_t_5 = NULL;
|
||||
int __pyx_t_6;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__inject_attributes", 0);
|
||||
|
||||
/* "providers.pxd":281
|
||||
|
@ -9355,6 +9501,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___callab
|
|||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
PyObject *__pyx_t_2 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__callable_call", 0);
|
||||
|
||||
/* "providers.pxd":293
|
||||
|
@ -9462,6 +9611,9 @@ static CYTHON_INLINE PyObject *__pyx_f_19dependency_injector_9providers___factor
|
|||
PyObject *__pyx_t_1 = NULL;
|
||||
PyObject *__pyx_t_2 = NULL;
|
||||
int __pyx_t_3;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__factory_call", 0);
|
||||
|
||||
/* "providers.pxd":305
|
||||
|
@ -10727,6 +10879,9 @@ static int __Pyx_modinit_variable_export_code(void) {
|
|||
|
||||
static int __Pyx_modinit_function_export_code(void) {
|
||||
__Pyx_RefNannyDeclarations
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
|
||||
/*--- Function export code ---*/
|
||||
if (__Pyx_ExportFunction("is_container", (void (*)(void))__pyx_f_19dependency_injector_10containers_is_container, "int (PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
|
@ -10740,6 +10895,9 @@ static int __Pyx_modinit_function_export_code(void) {
|
|||
|
||||
static int __Pyx_modinit_type_init_code(void) {
|
||||
__Pyx_RefNannyDeclarations
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
|
||||
/*--- Type init code ---*/
|
||||
if (PyType_Ready(&__pyx_type_19dependency_injector_10containers___pyx_scope_struct____new__) < 0) __PYX_ERR(0, 166, __pyx_L1_error)
|
||||
|
@ -10800,6 +10958,9 @@ static int __Pyx_modinit_type_init_code(void) {
|
|||
static int __Pyx_modinit_type_import_code(void) {
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
|
||||
/*--- Type import code ---*/
|
||||
__pyx_t_1 = PyImport_ImportModule("dependency_injector.providers"); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 10, __pyx_L1_error)
|
||||
|
@ -10914,6 +11075,9 @@ static int __Pyx_modinit_type_import_code(void) {
|
|||
static int __Pyx_modinit_variable_import_code(void) {
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
|
||||
/*--- Variable import code ---*/
|
||||
__pyx_t_1 = PyImport_ImportModule("dependency_injector.providers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
|
@ -10930,6 +11094,9 @@ static int __Pyx_modinit_variable_import_code(void) {
|
|||
static int __Pyx_modinit_function_import_code(void) {
|
||||
__Pyx_RefNannyDeclarations
|
||||
PyObject *__pyx_t_1 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
|
||||
/*--- Function import code ---*/
|
||||
__pyx_t_1 = PyImport_ImportModule("dependency_injector.providers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
|
@ -10944,17 +11111,19 @@ static int __Pyx_modinit_function_import_code(void) {
|
|||
}
|
||||
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
#ifdef CYTHON_NO_PYINIT_EXPORT
|
||||
#define __Pyx_PyMODINIT_FUNC void
|
||||
#else
|
||||
#ifndef CYTHON_NO_PYINIT_EXPORT
|
||||
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
|
||||
#elif PY_MAJOR_VERSION < 3
|
||||
#ifdef __cplusplus
|
||||
#define __Pyx_PyMODINIT_FUNC extern "C" void
|
||||
#else
|
||||
#define __Pyx_PyMODINIT_FUNC void
|
||||
#endif
|
||||
#else
|
||||
#ifdef CYTHON_NO_PYINIT_EXPORT
|
||||
#define __Pyx_PyMODINIT_FUNC PyObject *
|
||||
#ifdef __cplusplus
|
||||
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
|
||||
#else
|
||||
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
|
||||
#define __Pyx_PyMODINIT_FUNC PyObject *
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -11042,6 +11211,9 @@ static CYTHON_SMALL_CODE int __pyx_pymod_exec_containers(PyObject *__pyx_pyinit_
|
|||
PyObject *__pyx_t_5 = NULL;
|
||||
PyObject *__pyx_t_6 = NULL;
|
||||
PyObject *__pyx_t_7 = NULL;
|
||||
int __pyx_lineno = 0;
|
||||
const char *__pyx_filename = NULL;
|
||||
int __pyx_clineno = 0;
|
||||
__Pyx_RefNannyDeclarations
|
||||
#if CYTHON_PEP489_MULTI_PHASE_INIT
|
||||
if (__pyx_m) {
|
||||
|
@ -11130,17 +11302,17 @@ if (!__Pyx_RefNanny) {
|
|||
}
|
||||
#endif
|
||||
/*--- Builtin init code ---*/
|
||||
if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error;
|
||||
if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
/*--- Constants init code ---*/
|
||||
if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error;
|
||||
if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
/*--- Global type/function init code ---*/
|
||||
(void)__Pyx_modinit_global_init_code();
|
||||
(void)__Pyx_modinit_variable_export_code();
|
||||
if (unlikely(__Pyx_modinit_function_export_code() != 0)) goto __pyx_L1_error;
|
||||
if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
|
||||
if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error;
|
||||
if (unlikely(__Pyx_modinit_variable_import_code() != 0)) goto __pyx_L1_error;
|
||||
if (unlikely(__Pyx_modinit_function_import_code() != 0)) goto __pyx_L1_error;
|
||||
if (unlikely(__Pyx_modinit_function_export_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
if (unlikely(__Pyx_modinit_type_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
if (unlikely(__Pyx_modinit_variable_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
if (unlikely(__Pyx_modinit_function_import_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
/*--- Execution code ---*/
|
||||
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
|
||||
if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
||||
|
@ -11207,7 +11379,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Initializer.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_1__init__, 0, __pyx_n_s_DynamicContainer___init, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_1__init__, 0, __pyx_n_s_DynamicContainer___init, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 47, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_3) < 0) __PYX_ERR(0, 47, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11219,7 +11391,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Set instance attribute.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_3__setattr__, 0, __pyx_n_s_DynamicContainer___setattr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_3__setattr__, 0, __pyx_n_s_DynamicContainer___setattr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_setattr, __pyx_t_3) < 0) __PYX_ERR(0, 57, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11231,7 +11403,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Delete instance attribute.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_5__delattr__, 0, __pyx_n_s_DynamicContainer___delattr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__12)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 76, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_5__delattr__, 0, __pyx_n_s_DynamicContainer___delattr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__12)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 76, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_delattr, __pyx_t_3) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11243,7 +11415,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Set container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_7set_providers, 0, __pyx_n_s_DynamicContainer_set_providers, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_7set_providers, 0, __pyx_n_s_DynamicContainer_set_providers, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 91, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_set_providers, __pyx_t_3) < 0) __PYX_ERR(0, 91, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11255,7 +11427,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Override current container by overriding container.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_9override, 0, __pyx_n_s_DynamicContainer_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_9override, 0, __pyx_n_s_DynamicContainer_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_override, __pyx_t_3) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11267,7 +11439,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Override container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_11override_providers, 0, __pyx_n_s_DynamicContainer_override_provid, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_11override_providers, 0, __pyx_n_s_DynamicContainer_override_provid, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_override_providers, __pyx_t_3) < 0) __PYX_ERR(0, 126, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11279,7 +11451,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Reset last overriding provider for each container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_13reset_last_overriding, 0, __pyx_n_s_DynamicContainer_reset_last_over, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_13reset_last_overriding, 0, __pyx_n_s_DynamicContainer_reset_last_over, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_reset_last_overriding, __pyx_t_3) < 0) __PYX_ERR(0, 139, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11291,7 +11463,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Reset all overridings for each container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_15reset_override, 0, __pyx_n_s_DynamicContainer_reset_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__22)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_16DynamicContainer_15reset_override, 0, __pyx_n_s_DynamicContainer_reset_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__22)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_reset_override, __pyx_t_3) < 0) __PYX_ERR(0, 152, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11334,7 +11506,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Declarative container class factory."""
|
||||
* cdef tuple cls_providers
|
||||
*/
|
||||
__pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_1__new__, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_n_s_DeclarativeContainerMetaClass_3, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error)
|
||||
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_1__new__, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_n_s_DeclarativeContainerMetaClass_3, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 166, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_4);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_new, __pyx_t_4) < 0) __PYX_ERR(0, 166, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||||
|
@ -11346,7 +11518,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Set class attribute.
|
||||
*
|
||||
*/
|
||||
__pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_3__setattr__, 0, __pyx_n_s_DeclarativeContainerMetaClass_4, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error)
|
||||
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_3__setattr__, 0, __pyx_n_s_DeclarativeContainerMetaClass_4, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 199, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_4);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_setattr, __pyx_t_4) < 0) __PYX_ERR(0, 199, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||||
|
@ -11358,7 +11530,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Delete class attribute.
|
||||
*
|
||||
*/
|
||||
__pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_5__delattr__, 0, __pyx_n_s_DeclarativeContainerMetaClass_5, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error)
|
||||
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_29DeclarativeContainerMetaClass_5__delattr__, 0, __pyx_n_s_DeclarativeContainerMetaClass_5, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_4);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_3, __pyx_n_s_delattr, __pyx_t_4) < 0) __PYX_ERR(0, 219, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
||||
|
@ -11487,7 +11659,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Constructor.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_1__new__, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_n_s_DeclarativeContainer___new, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 293, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_1__new__, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_n_s_DeclarativeContainer___new, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 293, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_new, __pyx_t_3) < 0) __PYX_ERR(0, 293, __pyx_L1_error)
|
||||
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
||||
|
@ -11499,7 +11671,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Override current container by overriding container.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_3override, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_3override, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_override, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 306, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
|
||||
/* "dependency_injector/containers.pyx":305
|
||||
|
@ -11522,7 +11694,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Reset last overriding provider for each container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_5reset_last_overriding, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_reset_last, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 330, __pyx_L1_error)
|
||||
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_5reset_last_overriding, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_reset_last, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 330, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_4);
|
||||
|
||||
/* "dependency_injector/containers.pyx":329
|
||||
|
@ -11545,7 +11717,7 @@ if (!__Pyx_RefNanny) {
|
|||
* """Reset all overridings for each container providers.
|
||||
*
|
||||
*/
|
||||
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_7reset_override, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_reset_overr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error)
|
||||
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_19dependency_injector_10containers_20DeclarativeContainer_7reset_override, __Pyx_CYFUNCTION_CLASSMETHOD, __pyx_n_s_DeclarativeContainer_reset_overr, NULL, __pyx_n_s_dependency_injector_containers, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error)
|
||||
__Pyx_GOTREF(__pyx_t_3);
|
||||
|
||||
/* "dependency_injector/containers.pyx":343
|
||||
|
@ -12121,7 +12293,7 @@ static int __Pyx_ParseOptionalKeywords(
|
|||
}
|
||||
name = first_kw_arg;
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
|
||||
if (likely(PyString_Check(key))) {
|
||||
while (*name) {
|
||||
if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
|
||||
&& _PyString_Eq(**name, key)) {
|
||||
|
@ -12148,7 +12320,7 @@ static int __Pyx_ParseOptionalKeywords(
|
|||
while (*name) {
|
||||
int cmp = (**name == key) ? 0 :
|
||||
#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
|
||||
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
|
||||
(__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
|
||||
#endif
|
||||
PyUnicode_Compare(**name, key);
|
||||
if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
|
||||
|
@ -12164,7 +12336,7 @@ static int __Pyx_ParseOptionalKeywords(
|
|||
while (argname != first_kw_arg) {
|
||||
int cmp = (**argname == key) ? 0 :
|
||||
#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
|
||||
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
|
||||
(__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
|
||||
#endif
|
||||
PyUnicode_Compare(**argname, key);
|
||||
if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
|
||||
|
@ -12729,7 +12901,7 @@ bad:
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* CythonFunction */
|
||||
/* CythonFunctionShared */
|
||||
#include <structmember.h>
|
||||
static PyObject *
|
||||
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure)
|
||||
|
@ -13036,10 +13208,9 @@ static PyMethodDef __pyx_CyFunction_methods[] = {
|
|||
#else
|
||||
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist)
|
||||
#endif
|
||||
static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname,
|
||||
PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
|
||||
__pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type);
|
||||
if (op == NULL)
|
||||
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
|
||||
PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
|
||||
if (unlikely(op == NULL))
|
||||
return NULL;
|
||||
op->flags = flags;
|
||||
__Pyx_CyFunction_weakreflist(op) = NULL;
|
||||
|
@ -13060,12 +13231,12 @@ static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int f
|
|||
Py_XINCREF(code);
|
||||
op->func_code = code;
|
||||
op->defaults_pyobjects = 0;
|
||||
op->defaults_size = 0;
|
||||
op->defaults = NULL;
|
||||
op->defaults_tuple = NULL;
|
||||
op->defaults_kwdict = NULL;
|
||||
op->defaults_getter = NULL;
|
||||
op->func_annotations = NULL;
|
||||
PyObject_GC_Track(op);
|
||||
return (PyObject *) op;
|
||||
}
|
||||
static int
|
||||
|
@ -13313,6 +13484,7 @@ static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t
|
|||
return PyErr_NoMemory();
|
||||
memset(m->defaults, 0, size);
|
||||
m->defaults_pyobjects = pyobjects;
|
||||
m->defaults_size = size;
|
||||
return m->defaults;
|
||||
}
|
||||
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
|
||||
|
@ -13331,6 +13503,19 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, Py
|
|||
Py_INCREF(dict);
|
||||
}
|
||||
|
||||
/* CythonFunction */
|
||||
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
|
||||
PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
|
||||
PyObject *op = __Pyx_CyFunction_Init(
|
||||
PyObject_GC_New(__pyx_CyFunctionObject, __pyx_CyFunctionType),
|
||||
ml, flags, qualname, closure, module, globals, code
|
||||
);
|
||||
if (likely(op)) {
|
||||
PyObject_GC_Track(op);
|
||||
}
|
||||
return op;
|
||||
}
|
||||
|
||||
/* GetAttr3 */
|
||||
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
|
||||
__Pyx_PyThreadState_declare
|
||||
|
@ -13539,7 +13724,7 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
|
|||
{
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
if (level == -1) {
|
||||
if (strchr(__Pyx_MODULE_NAME, '.')) {
|
||||
if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
|
||||
module = PyImport_ImportModuleLevelObject(
|
||||
name, global_dict, empty_dict, list, 1);
|
||||
if (!module) {
|
||||
|
@ -13704,6 +13889,7 @@ static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
|
|||
#if CYTHON_COMPILING_IN_PYSTON || CYTHON_COMPILING_IN_PYPY
|
||||
if (PyMethodDescr_Check(method))
|
||||
#else
|
||||
#if PY_MAJOR_VERSION == 2
|
||||
static PyTypeObject *methoddescr_type = NULL;
|
||||
if (methoddescr_type == NULL) {
|
||||
PyObject *meth = PyObject_GetAttrString((PyObject*)&PyList_Type, "append");
|
||||
|
@ -13711,6 +13897,9 @@ static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
|
|||
methoddescr_type = Py_TYPE(meth);
|
||||
Py_DECREF(meth);
|
||||
}
|
||||
#else
|
||||
PyTypeObject *methoddescr_type = &PyMethodDescr_Type;
|
||||
#endif
|
||||
if (__Pyx_TypeCheck(method, methoddescr_type))
|
||||
#endif
|
||||
{
|
||||
|
@ -13726,23 +13915,14 @@ static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
|
|||
else if (PyMethod_Check(method)) {
|
||||
return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
|
||||
}
|
||||
else if (PyCFunction_Check(method)) {
|
||||
else {
|
||||
return PyClassMethod_New(method);
|
||||
}
|
||||
#ifdef __Pyx_CyFunction_USED
|
||||
else if (__Pyx_CyFunction_Check(method)) {
|
||||
return PyClassMethod_New(method);
|
||||
}
|
||||
#endif
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"Class-level classmethod() can only be called on "
|
||||
"a method_descriptor or instance method.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* CLineInTraceback */
|
||||
#ifndef CYTHON_CLINE_IN_TRACEBACK
|
||||
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
|
||||
static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
|
||||
PyObject *use_cline;
|
||||
PyObject *ptype, *pvalue, *ptraceback;
|
||||
#if CYTHON_COMPILING_IN_CPYTHON
|
||||
|
@ -13846,7 +14026,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
|
|||
if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
|
||||
int new_max = __pyx_code_cache.max_count + 64;
|
||||
entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
|
||||
__pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
|
||||
__pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
|
||||
if (unlikely(!entries)) {
|
||||
return;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user