/* Generated by Cython 3.0a6 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "src/nti/externalization/_base_interfaces.c",
            "src/nti/externalization/_base_interfaces.pxd",
            "src/nti/externalization/_base_interfaces.py",
            "src/nti/externalization/_interface_cache.c",
            "src/nti/externalization/_interface_cache.pxd",
            "src/nti/externalization/_interface_cache.py",
            "src/nti/externalization/externalization.c",
            "src/nti/externalization/externalization.pxd",
            "src/nti/externalization/externalization.py",
            "src/nti/externalization/internalization.c",
            "src/nti/externalization/internalization.pxd",
            "src/nti/externalization/internalization.py"
        ],
        "name": "nti.externalization._datastructures",
        "sources": [
            "src/nti/externalization/datastructures.py"
        ]
    },
    "module_name": "nti.externalization._datastructures"
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#if defined(CYTHON_LIMITED_API) && 0
  #ifndef Py_LIMITED_API
    #if CYTHON_LIMITED_API+0 > 0x03030000
      #define Py_LIMITED_API CYTHON_LIMITED_API
    #else
      #define Py_LIMITED_API 0x03030000
    #endif
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02070000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.7+ or Python 3.3+.
#else
#define CYTHON_ABI "3_0a6"
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."
#define CYTHON_HEX_VERSION 0x030000A6
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #define HAVE_LONG_LONG
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS (PY_MAJOR_VERSION >= 3)
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP487_INIT_SUBCLASS
  #define CYTHON_PEP487_INIT_SUBCLASS 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(CYTHON_LIMITED_API)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL (PY_MAJOR_VERSION < 3 || PY_VERSION_HEX >= 0x03060000)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL (PY_VERSION_HEX >= 0x030700A1)
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if !defined(CYTHON_VECTORCALL)
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL && PY_VERSION_HEX >= 0x030800B1)
#endif
#define CYTHON_BACKPORT_VECTORCALL (CYTHON_METH_FASTCALL && PY_VERSION_HEX < 0x030800B1)
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
            typedef unsigned char     uint8_t;
            typedef unsigned short    uint16_t;
            typedef unsigned int      uint32_t;
        #else
            typedef unsigned __int8   uint8_t;
            typedef unsigned __int16  uint16_t;
            typedef unsigned __int32  uint32_t;
        #endif
    #endif
    #if _MSC_VER < 1300
        #ifdef _WIN64
            typedef unsigned long long  __pyx_uintptr_t;
        #else
            typedef unsigned int        __pyx_uintptr_t;
        #endif
    #else
        #ifdef _WIN64
            typedef unsigned __int64    __pyx_uintptr_t;
        #else
            typedef unsigned __int32    __pyx_uintptr_t;
        #endif
    #endif
#else
    #include <stdint.h>
    typedef uintptr_t  __pyx_uintptr_t;
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_DefaultClassType PyClass_Type
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_DefaultClassType PyType_Type
#if PY_VERSION_HEX >= 0x030800B2
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#elif PY_VERSION_HEX >= 0x030800A4
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
#endif
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS(n)
#elif CYTHON_BACKPORT_VECTORCALL
  typedef PyObject *(*__pyx_vectorcallfunc)(PyObject *callable, PyObject *const *args,
                                            size_t nargsf, PyObject *kwnames);
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  ((size_t)1 << (8 * sizeof(size_t) - 1))
  #define __Pyx_PyVectorcall_NARGS(n)  ((n) & ~__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET)
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  (n)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static inline void *__Pyx_PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B4 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif PY_MAJOR_VERSION >= 3 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000)
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
#else
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
  #define __Pyx_PyObject_GetIterNextFunc(obj)  (Py_TYPE(obj)->tp_iternext)
#else
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
  #define __Pyx_PyObject_GetIterNextFunc(obj)  PyIter_Next
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GetLength(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#elif PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
  #else
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #endif
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #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)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#if CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_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
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsHash_t
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsSsize_t
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#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_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__nti__externalization___datastructures
#define __PYX_HAVE_API__nti__externalization___datastructures
/* Early includes */
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u)
{
    const wchar_t *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#else
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char *__pyx_f[] = {
  "src/nti/externalization/datastructures.py",
  "src/nti/externalization/_datastructures.pxd",
  "src/nti/externalization/__base_interfaces.pxd",
  "src/nti/externalization/externalization/_externalizer.pxd",
  "src/nti/externalization/internalization/_fields.pxd",
  "src/nti/externalization/internalization/_factories.pxd",
  "src/nti/externalization/__interface_cache.pxd",
};
/* #### Code section: utility_code_proto_before_types ### */
/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_obj_3nti_15externalization_17__base_interfaces__NotGiven;
struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict;
struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields;
struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields;
struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy;
struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__ExternalizationState;
struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState;
struct __pyx_obj_3nti_15externalization_15internalization_7_fields_SetattrSet;
struct __pyx_obj_3nti_15externalization_15internalization_7_fields_FieldSet;
struct __pyx_obj_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder;
struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache;
struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO;
struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
struct __pyx_opt_args_3nti_15externalization_15externalization_7_fields_choose_field;

/* "nti/externalization/externalization/_fields.pxd":16
 * cdef logger
 * 
 * cpdef choose_field(result, self,             # <<<<<<<<<<<<<<
 *                    unicode ext_name,
 *                    converter=*,
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_7_fields_choose_field {
  int __pyx_n;
  PyObject *converter;
  PyObject *fields;
  PyObject *sup_iface;
  PyObject *sup_fields;
  PyObject *sup_converter;
};
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time;
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_created_time;
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_creator;
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_container_id;
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_class;

/* "_standard_fields.pxd":43
 * cpdef datetime_to_string(dt)
 * 
 * cpdef get_last_modified_time(context, default=*, ExternalizationPolicy policy=*, _write_into=*)             # <<<<<<<<<<<<<<
 * cpdef get_created_time(context, default=*, ExternalizationPolicy policy=*, _write_into=*)
 * 
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time {
  int __pyx_n;
  PyObject *__pyx_default;
  struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *policy;
  PyObject *_write_into;
};

/* "_standard_fields.pxd":44
 * 
 * cpdef get_last_modified_time(context, default=*, ExternalizationPolicy policy=*, _write_into=*)
 * cpdef get_created_time(context, default=*, ExternalizationPolicy policy=*, _write_into=*)             # <<<<<<<<<<<<<<
 * 
 * cdef _system_user_converter(obj)
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_created_time {
  int __pyx_n;
  PyObject *__pyx_default;
  struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *policy;
  PyObject *_write_into;
};

/* "_standard_fields.pxd":47
 * 
 * cdef _system_user_converter(obj)
 * cpdef get_creator(context, default=*, _write_into=*)             # <<<<<<<<<<<<<<
 * 
 * 
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_creator {
  int __pyx_n;
  PyObject *__pyx_default;
  PyObject *_write_into;
};

/* "_standard_fields.pxd":50
 * 
 * 
 * cpdef get_container_id(context, default=*, _write_into=*)             # <<<<<<<<<<<<<<
 * 
 * cpdef get_class(context, _write_into=*)
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_container_id {
  int __pyx_n;
  PyObject *__pyx_default;
  PyObject *_write_into;
};

/* "_standard_fields.pxd":52
 * cpdef get_container_id(context, default=*, _write_into=*)
 * 
 * cpdef get_class(context, _write_into=*)             # <<<<<<<<<<<<<<
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_class {
  int __pyx_n;
  PyObject *_write_into;
};
struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary;
struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary;

/* "nti/externalization/externalization/_dictionary.pxd":37
 * 
 * 
 * cpdef LED internal_to_standard_external_dictionary(             # <<<<<<<<<<<<<<
 *     self,
 *     mergeFrom=*,
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary {
  int __pyx_n;
  PyObject *mergeFrom;
  int decorate;
  PyObject *request;
  PyObject *decorate_callback;
  struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *policy;
};

/* "nti/externalization/externalization/_dictionary.pxd":47
 * 
 * 
 * cpdef to_minimal_standard_external_dictionary(self, mergeFrom=*)             # <<<<<<<<<<<<<<
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary {
  int __pyx_n;
  PyObject *mergeFrom;
};
struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer_to_external_object;
struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer__to_external_object_state;

/* "nti/externalization/externalization/_externalizer.pxd":79
 * #)
 * cpdef to_external_object(
 *     obj,             # <<<<<<<<<<<<<<
 *     name=*,
 *     registry=*,
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer_to_external_object {
  int __pyx_n;
  PyObject *name;
  PyObject *registry;
  PyObject *catch_components;
  PyObject *catch_component_action;
  PyObject *request;
  int decorate;
  int useCache;
  PyObject *decorate_callback;
  PyObject *default_non_externalizable_replacer;
  PyObject *policy_name;
  PyObject *policy;
};

/* "nti/externalization/externalization/_externalizer.pxd":110
 *     obj_has_usable_external_object=bint,
 * )
 * cdef _to_external_object_state(obj, _ExternalizationState state,             # <<<<<<<<<<<<<<
 *                                bint top_level=*)
 */
struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer__to_external_object_state {
  int __pyx_n;
  int top_level;
};
struct __pyx_opt_args_3nti_15externalization_15internalization_17_legacy_factories_find_factories_in_module;

/* "_legacy_factories.pxd":20
 * cpdef register_legacy_search_module(module_name)
 * 
 * cpdef list find_factories_in_module(module, case_sensitive=*)             # <<<<<<<<<<<<<<
 * 
 * # private
 */
struct __pyx_opt_args_3nti_15externalization_15internalization_17_legacy_factories_find_factories_in_module {
  int __pyx_n;
  PyObject *case_sensitive;
};
struct __pyx_opt_args_3nti_15externalization_15internalization_10_factories_find_factory_for;

/* "nti/externalization/internalization/_factories.pxd":40
 * 
 * 
 * cpdef find_factory_for(externalized_object, registry=*)             # <<<<<<<<<<<<<<
 */
struct __pyx_opt_args_3nti_15externalization_15internalization_10_factories_find_factory_for {
  int __pyx_n;
  PyObject *registry;
};
struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr;
struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr;
struct __pyx_opt_args_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr;
struct __pyx_opt_args_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr;

/* "nti/externalization/_datastructures.pxd":50
 *     cpdef frozenset _ext_all_possible_keys(self)
 *     cpdef _ext_setattr(self, ext_self, k, value)
 *     cpdef _ext_getattr(self, ext_self, k, default=*)             # <<<<<<<<<<<<<<
 *     cpdef _ext_replacement_getattr(self, k, default=*)
 * 
 */
struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr {
  int __pyx_n;
  PyObject *__pyx_default;
};

/* "nti/externalization/_datastructures.pxd":51
 *     cpdef _ext_setattr(self, ext_self, k, value)
 *     cpdef _ext_getattr(self, ext_self, k, default=*)
 *     cpdef _ext_replacement_getattr(self, k, default=*)             # <<<<<<<<<<<<<<
 * 
 *     @cython.locals(
 */
struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr {
  int __pyx_n;
  PyObject *__pyx_default;
};

/* "src/nti/externalization/datastructures.py":387
 *         return frozenset(ext_dict)
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 */
struct __pyx_opt_args_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr {
  int __pyx_n;
  PyObject *__pyx_default;
};

/* "src/nti/externalization/datastructures.py":600
 *         return cache.ext_all_possible_keys
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 */
struct __pyx_opt_args_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr {
  int __pyx_n;
  PyObject *__pyx_default;
};

/* "nti/externalization/__base_interfaces.pxd":7
 * @cython.final
 * @cython.internal
 * cdef class _NotGiven(object):             # <<<<<<<<<<<<<<
 *     pass
 * 
 */
struct __pyx_obj_3nti_15externalization_17__base_interfaces__NotGiven {
  PyObject_HEAD
};


/* "nti/externalization/__base_interfaces.pxd":13
 * cdef dict_update
 * 
 * cdef class LocatedExternalDict(dict):             # <<<<<<<<<<<<<<
 *     cdef public __name__
 *     cdef public __parent__
 */
struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict {
  PyDictObject __pyx_base;
  struct __pyx_vtabstruct_3nti_15externalization_17__base_interfaces_LocatedExternalDict *__pyx_vtab;
  PyObject *__name__;
  PyObject *__parent__;
  PyObject *__acl__;
  PyObject *mimeType;
  PyObject *__dict__;
};


/* "nti/externalization/__base_interfaces.pxd":24
 * cpdef LocatedExternalDict make_external_dict()
 * 
 * cdef class StandardExternalFields(object):             # <<<<<<<<<<<<<<
 * 
 *     cdef readonly unicode ID
 */
struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields {
  PyObject_HEAD
  PyObject *ID;
  PyObject *OID;
  PyObject *HREF;
  PyObject *INTID;
  PyObject *NTIID;
  PyObject *CREATOR;
  PyObject *CONTAINER_ID;
  PyObject *CREATED_TIME;
  PyObject *LAST_MODIFIED;
  PyObject *CLASS;
  PyObject *LINKS;
  PyObject *MIMETYPE;
  PyObject *ITEMS;
  PyObject *TOTAL;
  PyObject *ITEM_COUNT;
  PyObject *_ALL_ATTR_NAMES;
  PyObject *_ALL_EXTERNAL_KEYS;
};


/* "nti/externalization/__base_interfaces.pxd":49
 * cpdef StandardExternalFields get_standard_external_fields()
 * 
 * cdef class StandardInternalFields(object):             # <<<<<<<<<<<<<<
 * 
 *     cdef readonly str ID
 */
struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields {
  PyObject_HEAD
  PyObject *ID;
  PyObject *NTIID;
  PyObject *CREATOR;
  PyObject *CREATED_TIME;
  PyObject *CONTAINER_ID;
  PyObject *LAST_MODIFIED;
  PyObject *LAST_MODIFIEDU;
};


/* "nti/externalization/__base_interfaces.pxd":64
 * 
 * @cython.final
 * cdef class ExternalizationPolicy(object):             # <<<<<<<<<<<<<<
 *     cdef readonly bint use_iso8601_for_unix_timestamp
 * 
 */
struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy {
  PyObject_HEAD
  int use_iso8601_for_unix_timestamp;
};


/* "nti/externalization/externalization/_externalizer.pxd":50
 * @cython.internal
 * @cython.freelist(1000)
 * cdef class _ExternalizationState(object):             # <<<<<<<<<<<<<<
 *     cdef dict memo
 * 
 */
struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__ExternalizationState {
  PyObject_HEAD
  struct __pyx_vtabstruct_3nti_15externalization_15externalization_13_externalizer__ExternalizationState *__pyx_vtab;
  PyObject *memo;
  PyObject *name;
  PyObject *catch_components;
  PyObject *catch_component_action;
  PyObject *request;
  PyObject *default_non_externalizable_replacer;
  int decorate;
  int useCache;
  PyObject *decorate_callback;
  struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *policy;
  PyObject *_kwargs;
};


/* "nti/externalization/externalization/_externalizer.pxd":72
 * @cython.final
 * @cython.internal
 * cdef class _RecursiveCallState(dict):             # <<<<<<<<<<<<<<
 *     pass
 * 
 */
struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState {
  PyDictObject __pyx_base;
};


/* "nti/externalization/internalization/_fields.pxd":41
 * @cython.internal
 * @cython.freelist(1000)
 * cdef class SetattrSet(object):             # <<<<<<<<<<<<<<
 *     cdef ext_self
 *     cdef str field_name # setattr() wants native strings
 */
struct __pyx_obj_3nti_15externalization_15internalization_7_fields_SetattrSet {
  PyObject_HEAD
  PyObject *ext_self;
  PyObject *field_name;
  PyObject *value;
};


/* "nti/externalization/internalization/_fields.pxd":49
 * @cython.internal
 * @cython.freelist(1078)
 * cdef class FieldSet(object):             # <<<<<<<<<<<<<<
 *     cdef ext_self
 *     cdef field
 */
struct __pyx_obj_3nti_15externalization_15internalization_7_fields_FieldSet {
  PyObject_HEAD
  PyObject *ext_self;
  PyObject *field;
  PyObject *value;
};


/* "nti/externalization/internalization/_factories.pxd":29
 * @cython.final
 * @cython.internal
 * cdef class _DefaultExternalizedObjectFactoryFinder(object):             # <<<<<<<<<<<<<<
 * 
 *     cpdef find_factory(self, externalized_object)
 */
struct __pyx_obj_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder {
  PyObject_HEAD
  struct __pyx_vtabstruct_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder *__pyx_vtab;
};


/* "nti/externalization/__interface_cache.pxd":8
 * @cython.internal
 * @cython.freelist(1000)
 * cdef class InterfaceCache(object):             # <<<<<<<<<<<<<<
 *     cdef __weakref__
 *     cdef iface
 */
struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache {
  PyObject_HEAD
  PyObject *__weakref__;
  PyObject *iface;
  PyObject *ext_all_possible_keys;
  PyObject *ext_accept_external_id;
  PyObject *ext_primitive_out_ivars;
  PyObject *modified_event_attributes;
};


/* "nti/externalization/_datastructures.pxd":39
 * cdef _anonymous_dict_factory
 * 
 * cdef class ExternalizableDictionaryMixin(object):             # <<<<<<<<<<<<<<
 *     # This is a mixin used with other C base classes (E.g., persistent)
 *     # in this package. That's not a great idea, but it exists.
 */
struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin {
  PyObject_HEAD
};


/* "nti/externalization/_datastructures.pxd":46
 *     pass
 * 
 * cdef class AbstractDynamicObjectIO(ExternalizableDictionaryMixin):             # <<<<<<<<<<<<<<
 *     cpdef _ext_replacement(self)
 *     cpdef frozenset _ext_all_possible_keys(self)
 */
struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO {
  struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin __pyx_base;
  struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_vtab;
};


/* "nti/externalization/_datastructures.pxd":64
 *     cdef _updateFromExternalObject(self, parsed)
 * 
 * cdef class _ExternalizableInstanceDict(AbstractDynamicObjectIO):             # <<<<<<<<<<<<<<
 *     cdef dict __dict__
 *     cdef context
 */
struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict {
  struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_base;
  PyObject *__dict__;
  PyObject *context;
};


/* "nti/externalization/_datastructures.pxd":74
 *     cpdef frozenset _ext_all_possible_keys(self)
 * 
 * cdef class InterfaceObjectIO(AbstractDynamicObjectIO):             # <<<<<<<<<<<<<<
 *     cdef readonly _ext_self
 *     cdef readonly _iface
 */
struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO {
  struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_base;
  PyObject *_ext_self;
  PyObject *_iface;
  int validate_after_update;
  PyObject *__dict__;
};


/* "nti/externalization/_datastructures.pxd":90
 * 
 * 
 * cdef class ModuleScopedInterfaceObjectIO(InterfaceObjectIO):             # <<<<<<<<<<<<<<
 * 
 *     @cython.locals(
 */
struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO {
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO __pyx_base;
};



/* "nti/externalization/__base_interfaces.pxd":13
 * cdef dict_update
 * 
 * cdef class LocatedExternalDict(dict):             # <<<<<<<<<<<<<<
 *     cdef public __name__
 *     cdef public __parent__
 */

struct __pyx_vtabstruct_3nti_15externalization_17__base_interfaces_LocatedExternalDict {
  PyObject *(*update_from_other)(struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict *, PyObject *);
};
static struct __pyx_vtabstruct_3nti_15externalization_17__base_interfaces_LocatedExternalDict *__pyx_vtabptr_3nti_15externalization_17__base_interfaces_LocatedExternalDict;


/* "nti/externalization/externalization/_externalizer.pxd":50
 * @cython.internal
 * @cython.freelist(1000)
 * cdef class _ExternalizationState(object):             # <<<<<<<<<<<<<<
 *     cdef dict memo
 * 
 */

struct __pyx_vtabstruct_3nti_15externalization_15externalization_13_externalizer__ExternalizationState {
  PyObject *(*as_kwargs)(struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__ExternalizationState *);
};
static struct __pyx_vtabstruct_3nti_15externalization_15externalization_13_externalizer__ExternalizationState *__pyx_vtabptr_3nti_15externalization_15externalization_13_externalizer__ExternalizationState;


/* "nti/externalization/internalization/_factories.pxd":29
 * @cython.final
 * @cython.internal
 * cdef class _DefaultExternalizedObjectFactoryFinder(object):             # <<<<<<<<<<<<<<
 * 
 *     cpdef find_factory(self, externalized_object)
 */

struct __pyx_vtabstruct_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder {
  PyObject *(*find_factory)(struct __pyx_obj_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder *, PyObject *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder *__pyx_vtabptr_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder;


/* "src/nti/externalization/datastructures.py":111
 * 
 * 
 * class AbstractDynamicObjectIO(ExternalizableDictionaryMixin):             # <<<<<<<<<<<<<<
 *     """
 *     Base class for objects that externalize based on dynamic information.
 */

struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO {
  PyObject *(*_ext_replacement)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch);
  PyObject *(*_ext_all_possible_keys)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch);
  PyObject *(*_ext_setattr)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*_ext_getattr)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args);
  PyObject *(*_ext_replacement_getattr)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr *__pyx_optional_args);
  PyObject *(*_ext_keys)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch);
  PyObject *(*_ext_primitive_keys)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch);
  PyObject *(*_ext_accept_update_key)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*_ext_accept_external_id)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*find_factory_for_named_value)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*_updateFromExternalObject)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *);
};
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;


/* "src/nti/externalization/datastructures.py":334
 * 
 * 
 * class _ExternalizableInstanceDict(AbstractDynamicObjectIO):             # <<<<<<<<<<<<<<
 * 
 *     # TODO: there should be some better way to customize this if desired (an explicit list)
 */

struct __pyx_vtabstruct_3nti_15externalization_15_datastructures__ExternalizableInstanceDict {
  struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_base;
};
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;


/* "src/nti/externalization/datastructures.py":470
 * 
 * 
 * class InterfaceObjectIO(AbstractDynamicObjectIO):             # <<<<<<<<<<<<<<
 *     """
 *     Externalizes the *context* to a dictionary based on getting the
 */

struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO {
  struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_base;
  PyObject *(*_ext_find_schema)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*_ext_find_primitive_keys)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, int __pyx_skip_dispatch);
  PyObject *(*_ext_schemas_to_consider)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*_validate_after_update)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO;


/* "src/nti/externalization/datastructures.py":764
 * 
 * 
 * class ModuleScopedInterfaceObjectIO(InterfaceObjectIO):             # <<<<<<<<<<<<<<
 *     """
 *     Only considers the interfaces provided within a given module
 */

struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO {
  struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO __pyx_base;
};
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_vtabptr_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
  #define __Pyx_RefNannyFinishContextNogil() __Pyx_RefNannyFinishContext()
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* TupleAndListFromArray.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto */
#include <string.h>

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#define __Pyx_Arg_VARARGS(args, i) PyTuple_GET_ITEM(args, i)
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_Arg_FASTCALL(args, i) args[i]
    #define __Pyx_NumKwargs_FASTCALL(kwds) PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) (&args[nargs])
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
#else
    #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_VARARGS(args, start), stop - start)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(&__Pyx_Arg_FASTCALL(args, start), stop - start)
#else
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject *const *kwvalues,
    PyObject **argnames[],
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,
    const char* function_name);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* dict_getitem_default.proto */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value);

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* UnpackUnboundCMethod.proto */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;

/* CallUnboundCMethod1.proto */
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* CallUnboundCMethod2.proto */
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#if !CYTHON_VECTORCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, nargs, NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* PyObjectCallNoArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto */
#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\
    (likely(is_tuple || PyTuple_Check(tuple)) ?\
        (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\
            __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
            (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
        __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* MergeKeywords.proto */
static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping);

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* RaiseUnexpectedTypeError.proto */
static int __Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj);

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* set_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set);
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set);

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* bytes_tailmatch.proto */
static int __Pyx_PyBytes_SingleTailmatch(PyObject* self, PyObject* arg,
                                         Py_ssize_t start, Py_ssize_t end, int direction);
static int __Pyx_PyBytes_Tailmatch(PyObject* self, PyObject* substr,
                                   Py_ssize_t start, Py_ssize_t end, int direction);

/* unicode_tailmatch.proto */
static int __Pyx_PyUnicode_Tailmatch(
    PyObject* s, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction);

/* str_tailmatch.proto */
static CYTHON_INLINE int __Pyx_PyStr_Tailmatch(PyObject* self, PyObject* arg, Py_ssize_t start,
                                               Py_ssize_t end, int direction);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name)  {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyObjectSetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o, n, NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value);
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);

/* py_dict_pop.proto */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value);

/* pyfrozenset_new.proto */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it);

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_Occurred(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* CallableCheck.proto */
#if CYTHON_USE_TYPE_SLOTS && PY_MAJOR_VERSION >= 3
#define __Pyx_PyCallable_Check(obj)   ((obj)->ob_type->tp_call != NULL)
#else
#define __Pyx_PyCallable_Check(obj)   PyCallable_Check(obj)
#endif

/* StrEquals.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
#else
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
#endif

/* CallNextTpTraverse.proto */
static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse);

/* CallNextTpClear.proto */
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc);

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
   __Pyx_ImportType_CheckSize_Error = 0,
   __Pyx_ImportType_CheckSize_Warn = 1,
   __Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif

/* GetVTable.proto */
static void* __Pyx_GetVtable(PyTypeObject *type);

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportDottedModule.proto */
static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* FetchCommonType.proto */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
#if CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyType_Spec *spec, PyObject *bases);
#endif

/* PyMethodNew.proto */
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, CYTHON_UNUSED PyObject *typ) {
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#else
    #define __Pyx_PyMethod_New PyMethod_New
#endif

/* PyVectorcallFastCallDict.proto */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, Py_ssize_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#define __Pyx_CyFunction_GetClassObj(f)\
    (((__pyx_CyFunctionObject *) (f))->func_classobj)
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
    PyCFunctionObject func;
#if CYTHON_BACKPORT_VECTORCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if PY_VERSION_HEX < 0x030500A0
    PyObject *func_weakreflist;
#endif
    PyObject *func_dict;
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
    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;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
} __pyx_CyFunctionObject;
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_CyFunctionType = 0;
#endif
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_CyFunctionType)
#define __Pyx_IsCyOrPyCFunction(obj)  __Pyx_TypeCheck2(obj, __pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_CyFunctionType)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m,
                                                         size_t size,
                                                         int pyobjects);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(void);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_BACKPORT_VECTORCALL
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func.vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* CalculateMetaclass.proto */
static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases);

/* SetNameInClass.proto */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
#elif CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_SetNameInClass(ns, name, value)\
    (likely(PyDict_CheckExact(ns)) ? PyDict_SetItem(ns, name, value) : PyObject_SetItem(ns, name, value))
#else
#define __Pyx_SetNameInClass(ns, name, value)  PyObject_SetItem(ns, name, value)
#endif

/* PyObjectCall2Args.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectLookupSpecial.proto */
#if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
#define __Pyx_PyObject_LookupSpecialNoError(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 0)
#define __Pyx_PyObject_LookupSpecial(obj, attr_name)  __Pyx__PyObject_LookupSpecial(obj, attr_name, 1)
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error);
#else
#define __Pyx_PyObject_LookupSpecialNoError(o,n) __Pyx_PyObject_GetAttrStrNoError(o,n)
#define __Pyx_PyObject_LookupSpecial(o,n) __Pyx_PyObject_GetAttrStr(o,n)
#endif

/* Py3ClassCreate.proto */
static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname,
                                           PyObject *mkw, PyObject *modname, PyObject *doc);
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict,
                                      PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass);

/* Globals.proto */
static PyObject* __Pyx_Globals(void);

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
#if !CYTHON_COMPILING_IN_LIMITED_API
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
#endif

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
static __Pyx_TypeName __Pyx_PyType_GetName(PyTypeObject* tp);
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#else
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* VoidPtrExport.proto */
static int __Pyx_ExportVoidPtr(PyObject *name, void *p, const char *sig);

/* VoidPtrImport.proto */
static int __Pyx_ImportVoidPtr(PyObject *module, const char *name, void **p, const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* InitStrings.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str);
#else
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
#endif

/* #### Code section: module_declarations ### */
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_key, PyObject *__pyx_v_value, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_all_possible_keys(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_setattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_k, CYTHON_UNUSED PyObject *__pyx_v_value, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_k, CYTHON_UNUSED PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_external_id(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_parsed, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_setattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_schemas_to_consider(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr *__pyx_optional_args); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_parsed, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO_find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__validate_after_update(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_iface, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch); /* proto*/

/* Module declarations from "cython" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif

/* Module declarations from "nti.externalization.__base_interfaces" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy = 0;
#endif
static PyObject **__pyx_vp_3nti_15externalization_17__base_interfaces_dict_init = 0;
#define __pyx_v_3nti_15externalization_17__base_interfaces_dict_init (*__pyx_vp_3nti_15externalization_17__base_interfaces_dict_init)
static PyObject **__pyx_vp_3nti_15externalization_17__base_interfaces_dict_update = 0;
#define __pyx_v_3nti_15externalization_17__base_interfaces_dict_update (*__pyx_vp_3nti_15externalization_17__base_interfaces_dict_update)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields **__pyx_vp_3nti_15externalization_17__base_interfaces__standard_external_fields = 0;
#define __pyx_v_3nti_15externalization_17__base_interfaces__standard_external_fields (*__pyx_vp_3nti_15externalization_17__base_interfaces__standard_external_fields)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields **__pyx_vp_3nti_15externalization_17__base_interfaces__standard_internal_fields = 0;
#define __pyx_v_3nti_15externalization_17__base_interfaces__standard_internal_fields (*__pyx_vp_3nti_15externalization_17__base_interfaces__standard_internal_fields)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy **__pyx_vp_3nti_15externalization_17__base_interfaces_DEFAULT_EXTERNALIZATION_POLICY = 0;
#define __pyx_v_3nti_15externalization_17__base_interfaces_DEFAULT_EXTERNALIZATION_POLICY (*__pyx_vp_3nti_15externalization_17__base_interfaces_DEFAULT_EXTERNALIZATION_POLICY)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict *(*__pyx_f_3nti_15externalization_17__base_interfaces_make_external_dict)(int __pyx_skip_dispatch); /*proto*/
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *(*__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_external_fields)(int __pyx_skip_dispatch); /*proto*/
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *(*__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_internal_fields)(int __pyx_skip_dispatch); /*proto*/
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *(*__pyx_f_3nti_15externalization_17__base_interfaces_get_default_externalization_policy)(int __pyx_skip_dispatch); /*proto*/

/* Module declarations from "nti.externalization.externalization._fields" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields **__pyx_vp_3nti_15externalization_15externalization_7_fields_StandardExternalFields = 0;
#define __pyx_v_3nti_15externalization_15externalization_7_fields_StandardExternalFields (*__pyx_vp_3nti_15externalization_15externalization_7_fields_StandardExternalFields)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_7_fields_logger = 0;
#define __pyx_v_3nti_15externalization_15externalization_7_fields_logger (*__pyx_vp_3nti_15externalization_15externalization_7_fields_logger)
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_7_fields_choose_field)(PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_7_fields_choose_field *__pyx_optional_args); /*proto*/

/* Module declarations from "nti.externalization.externalization._standard_fields" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IDCTimes = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_IDCTimes (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IDCTimes)
static PyTypeObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_text_type = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_text_type (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_text_type)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardExternalFields = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_StandardExternalFields (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardExternalFields)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardInternalFields = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_StandardInternalFields (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardInternalFields)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_DEFAULT_EXTERNALIZATION_POLICY = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_DEFAULT_EXTERNALIZATION_POLICY (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_DEFAULT_EXTERNALIZATION_POLICY)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_SUP_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_SUP_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_SUP_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_SUP_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_SUP_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_SUP_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATOR_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__CREATOR_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATOR_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CONTAINER_FIELDS = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__CONTAINER_FIELDS (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CONTAINER_FIELDS)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__EXT_CLASS_IGNORED_MODULES = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__EXT_CLASS_IGNORED_MODULES (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__EXT_CLASS_IGNORED_MODULES)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_NAME = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_NAME (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_NAME)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_ID = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_ID (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_ID)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IPrincipal_providedBy = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields_IPrincipal_providedBy (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IPrincipal_providedBy)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__datetime_to_string = 0;
#define __pyx_v_3nti_15externalization_15externalization_16_standard_fields__datetime_to_string (*__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__datetime_to_string)
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_created_time)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_created_time *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_creator)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_creator *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_container_id)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_container_id *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_class)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_class *__pyx_optional_args); /*proto*/

/* Module declarations from "nti.externalization.externalization._decorate" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif
static PyObject **__pyx_vp_3nti_15externalization_15externalization_9_decorate_get_current_request = 0;
#define __pyx_v_3nti_15externalization_15externalization_9_decorate_get_current_request (*__pyx_vp_3nti_15externalization_15externalization_9_decorate_get_current_request)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_9_decorate_NotGiven = 0;
#define __pyx_v_3nti_15externalization_15externalization_9_decorate_NotGiven (*__pyx_vp_3nti_15externalization_15externalization_9_decorate_NotGiven)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_9_decorate_IExternalMappingDecorator = 0;
#define __pyx_v_3nti_15externalization_15externalization_9_decorate_IExternalMappingDecorator (*__pyx_vp_3nti_15externalization_15externalization_9_decorate_IExternalMappingDecorator)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_9_decorate_subscribers = 0;
#define __pyx_v_3nti_15externalization_15externalization_9_decorate_subscribers (*__pyx_vp_3nti_15externalization_15externalization_9_decorate_subscribers)
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_9_decorate_decorate_external_object)(int, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/

/* Module declarations from "nti.externalization.externalization._dictionary" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_StandardExternalFields = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_StandardExternalFields (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_StandardExternalFields)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_DEFAULT_EXTERNALIZATION_POLICY = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_DEFAULT_EXTERNALIZATION_POLICY (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_DEFAULT_EXTERNALIZATION_POLICY)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_warnings = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_warnings (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_warnings)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_component = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_component (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_component)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_set_external_identifiers = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_set_external_identifiers (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_set_external_identifiers)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_IExternalMappingDecorator = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_IExternalMappingDecorator (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_IExternalMappingDecorator)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_11_dictionary_NotGiven = 0;
#define __pyx_v_3nti_15externalization_15externalization_11_dictionary_NotGiven (*__pyx_vp_3nti_15externalization_15externalization_11_dictionary_NotGiven)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict *(*__pyx_f_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary *__pyx_optional_args); /*proto*/
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary *__pyx_optional_args); /*proto*/

/* Module declarations from "nti.externalization.externalization._externalizer" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState = 0;
#endif
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_defaultdict = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_defaultdict (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_defaultdict)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_six = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_six (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_six)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_numbers = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_numbers (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_numbers)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_queryAdapter = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_queryAdapter (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_queryAdapter)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getAdapter = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_getAdapter (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getAdapter)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getUtility = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_getUtility (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getUtility)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IFiniteSequence = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IFiniteSequence (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IFiniteSequence)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ThreadLocalManager = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_ThreadLocalManager (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ThreadLocalManager)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_get_current_request = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_get_current_request (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_get_current_request)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_set_external_identifiers = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_set_external_identifiers (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_set_external_identifiers)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalMappingDecorator = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IExternalMappingDecorator (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalMappingDecorator)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObject = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IExternalObject (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObject)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObjectDecorator = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IExternalObjectDecorator (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObjectDecorator)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ILocatedExternalSequence = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_ILocatedExternalSequence (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ILocatedExternalSequence)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacement = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacement (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacement)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacer = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacer (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacer)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DefaultNonExternalizableReplacer = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_DefaultNonExternalizableReplacer (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DefaultNonExternalizableReplacer)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_NotGiven = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_NotGiven (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_NotGiven)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IInternalObjectExternalizer = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IInternalObjectExternalizer (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IInternalObjectExternalizer)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalizationPolicy = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_IExternalizationPolicy (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalizationPolicy)
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DEFAULT_EXTERNALIZATION_POLICY = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_DEFAULT_EXTERNALIZATION_POLICY (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DEFAULT_EXTERNALIZATION_POLICY)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_logger = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_logger (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_logger)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__manager (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_get = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__manager_get (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_get)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_pop = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__manager_pop (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_pop)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_push = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__manager_push (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_push)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_PRIMITIVES = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_PRIMITIVES (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_PRIMITIVES)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__marker = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__marker (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__marker)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_SEQUENCE_TYPES = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_SEQUENCE_TYPES (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_SEQUENCE_TYPES)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer_MAPPING_TYPES = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer_MAPPING_TYPES (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer_MAPPING_TYPES)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache)
static PyObject **__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache_get = 0;
#define __pyx_v_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache_get (*__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache_get)
static PyObject *(*__pyx_f_3nti_15externalization_15externalization_13_externalizer_to_external_object)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer_to_external_object *__pyx_optional_args); /*proto*/

/* Module declarations from "nti.externalization.internalization._fields" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet = 0;
#endif
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_sys = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_sys (*__pyx_vp_3nti_15externalization_15internalization_7_fields_sys)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_text_type = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_text_type (*__pyx_vp_3nti_15externalization_15internalization_7_fields_text_type)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_reraise = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_reraise (*__pyx_vp_3nti_15externalization_15internalization_7_fields_reraise)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_implementedBy = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_implementedBy (*__pyx_vp_3nti_15externalization_15internalization_7_fields_implementedBy)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_IField = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_IField (*__pyx_vp_3nti_15externalization_15internalization_7_fields_IField)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotProvided = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_SchemaNotProvided (*__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotProvided)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotCorrectlyImplemented = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_SchemaNotCorrectlyImplemented (*__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotCorrectlyImplemented)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_ValidationError = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_ValidationError (*__pyx_vp_3nti_15externalization_15internalization_7_fields_ValidationError)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongContainedType = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_WrongContainedType (*__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongContainedType)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongType = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_WrongType (*__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongType)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldProperty = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_FieldProperty (*__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldProperty)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_NO_VALUE = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_NO_VALUE (*__pyx_vp_3nti_15externalization_15internalization_7_fields_NO_VALUE)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldUpdatedEvent = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_FieldUpdatedEvent (*__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldUpdatedEvent)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_notify = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_notify (*__pyx_vp_3nti_15externalization_15internalization_7_fields_notify)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_IField_providedBy = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_IField_providedBy (*__pyx_vp_3nti_15externalization_15internalization_7_fields_IField_providedBy)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields_get_exc_info = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields_get_exc_info (*__pyx_vp_3nti_15externalization_15internalization_7_fields_get_exc_info)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields__FieldProperty_orig_set = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields__FieldProperty_orig_set (*__pyx_vp_3nti_15externalization_15internalization_7_fields__FieldProperty_orig_set)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_7_fields__CONVERTERS = 0;
#define __pyx_v_3nti_15externalization_15internalization_7_fields__CONVERTERS (*__pyx_vp_3nti_15externalization_15internalization_7_fields__CONVERTERS)
static PyObject *(*__pyx_f_3nti_15externalization_15internalization_7_fields_validate_named_field_value)(PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/

/* Module declarations from "nti.externalization.internalization._legacy_factories" */
#if !CYTHON_COMPILING_IN_LIMITED_API
#endif
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_types = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories_types (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_types)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_warnings = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories_warnings (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_warnings)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_component = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories_component (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_component)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_resolve = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories_resolve (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_resolve)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ILegacySearchModuleFactory = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories__ILegacySearchModuleFactory (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ILegacySearchModuleFactory)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_NotGiven = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories_NotGiven (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_NotGiven)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ext_factory_warnings = 0;
#define __pyx_v_3nti_15externalization_15internalization_17_legacy_factories__ext_factory_warnings (*__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ext_factory_warnings)
static PyObject *(*__pyx_f_3nti_15externalization_15internalization_17_legacy_factories_search_for_external_factory)(PyObject *, int __pyx_skip_dispatch); /*proto*/

/* Module declarations from "nti.externalization.internalization._factories" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder = 0;
#endif
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields **__pyx_vp_3nti_15externalization_15internalization_10_factories_StandardExternalFields = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_StandardExternalFields (*__pyx_vp_3nti_15externalization_15internalization_10_factories_StandardExternalFields)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_component = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_component (*__pyx_vp_3nti_15externalization_15internalization_10_factories_component)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_interface = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_interface (*__pyx_vp_3nti_15externalization_15internalization_10_factories_interface)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_NotGiven = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_NotGiven (*__pyx_vp_3nti_15externalization_15internalization_10_factories_NotGiven)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_IClassObjectFactory = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_IClassObjectFactory (*__pyx_vp_3nti_15externalization_15internalization_10_factories_IClassObjectFactory)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_IExternalizedObjectFactoryFinder = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_IExternalizedObjectFactoryFinder (*__pyx_vp_3nti_15externalization_15internalization_10_factories_IExternalizedObjectFactoryFinder)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_IFactory = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_IFactory (*__pyx_vp_3nti_15externalization_15internalization_10_factories_IFactory)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_IMimeObjectFactory = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_IMimeObjectFactory (*__pyx_vp_3nti_15externalization_15internalization_10_factories_IMimeObjectFactory)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryUtility = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_component_queryUtility (*__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryUtility)
static PyObject **__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryAdapter = 0;
#define __pyx_v_3nti_15externalization_15internalization_10_factories_component_queryAdapter (*__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryAdapter)
static PyObject *(*__pyx_f_3nti_15externalization_15internalization_10_factories_find_factory_for)(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15internalization_10_factories_find_factory_for *__pyx_optional_args); /*proto*/

/* Module declarations from "nti.externalization.__interface_cache" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache = 0;
#endif
static PyObject **__pyx_vp_3nti_15externalization_17__interface_cache_cache_instances = 0;
#define __pyx_v_3nti_15externalization_17__interface_cache_cache_instances (*__pyx_vp_3nti_15externalization_17__interface_cache_cache_instances)
static struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *(*__pyx_f_3nti_15externalization_17__interface_cache_cache_for)(PyObject *, PyObject *, int __pyx_skip_dispatch); /*proto*/

/* Module declarations from "nti.externalization._datastructures" */
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO = 0;
static PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = 0;
#endif
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_getUtility = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IDict = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IObject = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory = 0;
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields = 0;
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields = 0;
static struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *__pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_make_repr = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_isSyntheticKey = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_NotGiven = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures__anonymous_dict_factory = 0;
static PyObject *__pyx_v_3nti_15externalization_15_datastructures__primitives = 0;
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "nti.externalization._datastructures"
extern int __pyx_module_is_main_nti__externalization___datastructures;
int __pyx_module_is_main_nti__externalization___datastructures = 0;

/* Implementation of "nti.externalization._datastructures" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_object;
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_NotImplementedError;
static PyObject *__pyx_builtin_super;
static PyObject *__pyx_builtin_AttributeError;
static PyObject *__pyx_builtin_FutureWarning;
static PyObject *__pyx_builtin_id;
static PyObject *__pyx_builtin_all;
static PyObject *__pyx_builtin_KeyError;
static PyObject *__pyx_builtin_TypeError;
/* #### Code section: string_decls ### */
static const char __pyx_k_k[] = "k";
static const char __pyx_k__3[] = "_";
static const char __pyx_k__8[] = "*";
static const char __pyx_k_id[] = "id";
static const char __pyx_k__96[] = "?";
static const char __pyx_k_all[] = "all";
static const char __pyx_k_doc[] = "__doc__";
static const char __pyx_k_get[] = "get";
static const char __pyx_k_iro[] = "__iro__";
static const char __pyx_k_key[] = "key";
static const char __pyx_k_pop[] = "pop";
static const char __pyx_k_six[] = "six";
static const char __pyx_k_args[] = "args";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_init[] = "__init__";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_repr[] = "__repr__";
static const char __pyx_k_self[] = "self";
static const char __pyx_k_spec[] = "__spec__";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_type[] = "_type";
static const char __pyx_k_warn[] = "warn";
static const char __pyx_k_zope[] = "zope";
static const char __pyx_k_IDict[] = "IDict";
static const char __pyx_k_all_2[] = "__all__";
static const char __pyx_k_ascii[] = "ascii";
static const char __pyx_k_class[] = "__class__";
static const char __pyx_k_iface[] = "iface";
static const char __pyx_k_items[] = "items";
static const char __pyx_k_links[] = "links";
static const char __pyx_k_names[] = "names";
static const char __pyx_k_super[] = "super";
static const char __pyx_k_title[] = "title";
static const char __pyx_k_value[] = "value";
static const char __pyx_k_Number[] = "Number";
static const char __pyx_k_decode[] = "decode";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_kwargs[] = "kwargs";
static const char __pyx_k_module[] = "__module__";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_object[] = "object";
static const char __pyx_k_parent[] = "__parent__";
static const char __pyx_k_parsed[] = "parsed";
static const char __pyx_k_policy[] = "policy";
static const char __pyx_k_result[] = "result";
static const char __pyx_k_schema[] = "schema";
static const char __pyx_k_values[] = "values";
static const char __pyx_k_IMethod[] = "IMethod";
static const char __pyx_k_IObject[] = "IObject";
static const char __pyx_k_context[] = "context";
static const char __pyx_k_created[] = "created";
static const char __pyx_k_default[] = "default";
static const char __pyx_k_ext_val[] = "ext_val";
static const char __pyx_k_factory[] = "factory";
static const char __pyx_k_getattr[] = "__getattr__";
static const char __pyx_k_make_io[] = "__make_io";
static const char __pyx_k_numbers[] = "numbers";
static const char __pyx_k_prepare[] = "__prepare__";
static const char __pyx_k_request[] = "request";
static const char __pyx_k_KeyError[] = "KeyError";
static const char __pyx_k_NotGiven[] = "NotGiven";
static const char __pyx_k_attr_val[] = "attr_val";
static const char __pyx_k_decorate[] = "decorate";
static const char __pyx_k_ext_keys[] = "_ext_keys";
static const char __pyx_k_ext_self[] = "ext_self";
static const char __pyx_k_mimeType[] = "mimeType";
static const char __pyx_k_modified[] = "modified";
static const char __pyx_k_pyx_capi[] = "__pyx_capi__";
static const char __pyx_k_qualname[] = "__qualname__";
static const char __pyx_k_set_name[] = "__set_name__";
static const char __pyx_k_warnings[] = "warnings";
static const char __pyx_k_Interface[] = "Interface";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_cache_for[] = "cache_for";
static const char __pyx_k_interface[] = "interface";
static const char __pyx_k_iteritems[] = "iteritems";
static const char __pyx_k_make_repr[] = "make_repr";
static const char __pyx_k_mergeFrom[] = "mergeFrom";
static const char __pyx_k_metaclass[] = "__metaclass__";
static const char __pyx_k_p_changed[] = "_p_changed";
static const char __pyx_k_ext_keys_2[] = "ext_keys";
static const char __pyx_k_getUtility[] = "getUtility";
static const char __pyx_k_interfaces[] = "interfaces";
static const char __pyx_k_prefer_oid[] = "_prefer_oid_";
static const char __pyx_k_primitives[] = "_primitives";
static const char __pyx_k_providedBy[] = "providedBy";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_value_type[] = "value_type";
static const char __pyx_k_ext_getattr[] = "_ext_getattr";
static const char __pyx_k_ext_setattr[] = "_ext_setattr";
static const char __pyx_k_isOrExtends[] = "isOrExtends";
static const char __pyx_k_replacement[] = "replacement";
static const char __pyx_k_unused_args[] = "unused_args";
static const char __pyx_k_initializing[] = "_initializing";
static const char __pyx_k_lastModified[] = "lastModified";
static const char __pyx_k_staticmethod[] = "staticmethod";
static const char __pyx_k_string_types[] = "string_types";
static const char __pyx_k_FutureWarning[] = "FutureWarning";
static const char __pyx_k_class_getitem[] = "__class_getitem__";
static const char __pyx_k_init_subclass[] = "__init_subclass__";
static const char __pyx_k_possibilities[] = "possibilities";
static const char __pyx_k_unused_kwargs[] = "unused_kwargs";
static const char __pyx_k_AttributeError[] = "AttributeError";
static const char __pyx_k_ext_class_name[] = "ext_class_name";
static const char __pyx_k_getTaggedValue[] = "getTaggedValue";
static const char __pyx_k_import_c_accel[] = "import_c_accel";
static const char __pyx_k_isSyntheticKey[] = "isSyntheticKey";
static const char __pyx_k_representation[] = "representation";
static const char __pyx_k_setTaggedValue[] = "setTaggedValue";
static const char __pyx_k_traceback_info[] = "__traceback_info__";
static const char __pyx_k_zope_component[] = "zope.component";
static const char __pyx_k_base_interfaces[] = "_base_interfaces";
static const char __pyx_k_classImplements[] = "classImplements";
static const char __pyx_k_default_factory[] = "default_factory";
static const char __pyx_k_ext_find_schema[] = "_ext_find_schema";
static const char __pyx_k_ext_replacement[] = "_ext_replacement";
static const char __pyx_k_interface_cache[] = "_interface_cache";
static const char __pyx_k_internalization[] = "internalization";
static const char __pyx_k_IDict_providedBy[] = "IDict_providedBy";
static const char __pyx_k_ext_excluded_out[] = "_ext_excluded_out";
static const char __pyx_k_external_factory[] = "__external_factory__";
static const char __pyx_k_find_factory_for[] = "find_factory_for";
static const char __pyx_k_queryTaggedValue[] = "queryTaggedValue";
static const char __pyx_k_toExternalObject[] = "toExternalObject";
static const char __pyx_k_IInternalObjectIO[] = "IInternalObjectIO";
static const char __pyx_k_InterfaceObjectIO[] = "InterfaceObjectIO";
static const char __pyx_k_SchemaNotProvided[] = "SchemaNotProvided";
static const char __pyx_k_decorate_callback[] = "decorate_callback";
static const char __pyx_k_excluded_in_ivars[] = "_excluded_in_ivars_";
static const char __pyx_k_ext_search_module[] = "_ext_search_module";
static const char __pyx_k_iface_upper_bound[] = "iface_upper_bound";
static const char __pyx_k_s_s_for_r_at_0x_x[] = "<%s.%s for %r at 0x%x>";
static const char __pyx_k_IObject_providedBy[] = "IObject_providedBy";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_excluded_out_ivars[] = "_excluded_out_ivars_";
static const char __pyx_k_ext_primitive_keys[] = "_ext_primitive_keys";
static const char __pyx_k_external_accept_id[] = "__external_accept_id__";
static const char __pyx_k_primitive_ext_keys[] = "primitive_ext_keys";
static const char __pyx_k_to_external_object[] = "to_external_object";
static const char __pyx_k_NotImplementedError[] = "NotImplementedError";
static const char __pyx_k_external_class_name[] = "__external_class_name__";
static const char __pyx_k_getValidationErrors[] = "getValidationErrors";
static const char __pyx_k_AnonymousDictFactory[] = "_AnonymousDictFactory";
static const char __pyx_k_toExternalDictionary[] = "toExternalDictionary";
static const char __pyx_k_ext_accept_update_key[] = "_ext_accept_update_key";
static const char __pyx_k_ext_all_possible_keys[] = "_ext_all_possible_keys";
static const char __pyx_k_ext_iface_upper_bound[] = "_ext_iface_upper_bound";
static const char __pyx_k_nti_schema_interfaces[] = "nti.schema.interfaces";
static const char __pyx_k_validate_after_update[] = "validate_after_update";
static const char __pyx_k_AnonymousObjectFactory[] = "AnonymousObjectFactory";
static const char __pyx_k_StandardExternalFields[] = "StandardExternalFields";
static const char __pyx_k_StandardInternalFields[] = "StandardInternalFields";
static const char __pyx_k_anonymous_dict_factory[] = "_anonymous_dict_factory";
static const char __pyx_k_ext_accept_external_id[] = "_ext_accept_external_id";
static const char __pyx_k_queryDirectTaggedValue[] = "queryDirectTaggedValue";
static const char __pyx_k_zope_schema_interfaces[] = "zope.schema.interfaces";
static const char __pyx_k_AbstractDynamicObjectIO[] = "AbstractDynamicObjectIO";
static const char __pyx_k_IAnonymousObjectFactory[] = "IAnonymousObjectFactory";
static const char __pyx_k_IInternalObjectIOFinder[] = "IInternalObjectIOFinder";
static const char __pyx_k_ext_find_primitive_keys[] = "_ext_find_primitive_keys";
static const char __pyx_k_ext_is_marker_interface[] = "_ext_is_marker_interface";
static const char __pyx_k_ext_primitive_out_ivars[] = "_ext_primitive_out_ivars_";
static const char __pyx_k_ext_replacement_getattr[] = "_ext_replacement_getattr";
static const char __pyx_k_ext_schemas_to_consider[] = "_ext_schemas_to_consider";
static const char __pyx_k_validate_after_update_2[] = "_validate_after_update";
static const char __pyx_k_updateFromExternalObject[] = "updateFromExternalObject";
static const char __pyx_k_external_use_minimal_base[] = "__external_use_minimal_base__";
static const char __pyx_k_internalization_factories[] = "internalization.factories";
static const char __pyx_k_update_accepts_type_attrs[] = "_update_accepts_type_attrs";
static const char __pyx_k_ExternalizableInstanceDict[] = "_ExternalizableInstanceDict";
static const char __pyx_k_external_factory_wants_arg[] = "__external_factory_wants_arg__";
static const char __pyx_k_externalization_dictionary[] = "externalization.dictionary";
static const char __pyx_k_validate_named_field_value[] = "validate_named_field_value";
static const char __pyx_k_find_most_derived_interface[] = "find_most_derived_interface";
static const char __pyx_k_nti_externalization__compat[] = "nti.externalization._compat";
static const char __pyx_k_ExternalizableInstanceDict_2[] = "ExternalizableInstanceDict";
static const char __pyx_k_externalization_externalizer[] = "externalization.externalizer";
static const char __pyx_k_find_factory_for_named_value[] = "find_factory_for_named_value";
static const char __pyx_k_get_standard_external_fields[] = "get_standard_external_fields";
static const char __pyx_k_get_standard_internal_fields[] = "get_standard_internal_fields";
static const char __pyx_k_ExternalizableDictionaryMixin[] = "ExternalizableDictionaryMixin";
static const char __pyx_k_ModuleScopedInterfaceObjectIO[] = "ModuleScopedInterfaceObjectIO";
static const char __pyx_k_DEFAULT_EXTERNALIZATION_POLICY[] = "DEFAULT_EXTERNALIZATION_POLICY";
static const char __pyx_k_InterfaceObjectIO__ext_getattr[] = "InterfaceObjectIO._ext_getattr";
static const char __pyx_k_InterfaceObjectIO__ext_setattr[] = "InterfaceObjectIO._ext_setattr";
static const char __pyx_k_external_default_implementatio[] = "__external_default_implementation__";
static const char __pyx_k_AnonymousDictFactory_default_fa[] = "_AnonymousDictFactory.default_factory";
static const char __pyx_k_Class_r_should_have_a_frozenset[] = "Class %r should have a frozenset for _ext_primitive_out_ivars_.Make InterfaceObjectIO._ext_primitive_out_ivars_ the LHS of the | operator.This will be a TypeError in the future";
static const char __pyx_k_Datastructures_to_help_external[] = "\nDatastructures to help externalization.\n";
static const char __pyx_k_ExternalizableInstanceDict__ext[] = "_ExternalizableInstanceDict._ext_replacement";
static const char __pyx_k_ExternalizableInstanceDict__mak[] = "_ExternalizableInstanceDict__make_io";
static const char __pyx_k_Externalizes_to_a_dictionary_co[] = "\n    Externalizes to a dictionary containing the members of\n    ``__dict__`` that do not start with an underscore.\n\n    Meant to be used as a super class; also can be used as an external\n    object superclass.\n\n    Consider carefully before using this class. Generally, an interface\n    and `InterfaceObjectIO` are better.\n\n    .. versionchanged:: 1.0a5\n       No longer extends `AbstractDynamicObjectIO`, just delegates to it.\n       Most of the `_ext_`` prefixed methods can no longer be overridden.\n    ";
static const char __pyx_k_ext_standard_external_dictionar[] = "_ext_standard_external_dictionary";
static const char __pyx_k_AbstractDynamicObjectIO__ext_acc[] = "AbstractDynamicObjectIO._ext_accept_update_key";
static const char __pyx_k_AbstractDynamicObjectIO__ext_all[] = "AbstractDynamicObjectIO._ext_all_possible_keys";
static const char __pyx_k_AbstractDynamicObjectIO__ext_get[] = "AbstractDynamicObjectIO._ext_getattr";
static const char __pyx_k_AbstractDynamicObjectIO__ext_key[] = "AbstractDynamicObjectIO._ext_keys";
static const char __pyx_k_AbstractDynamicObjectIO__ext_pri[] = "AbstractDynamicObjectIO._ext_primitive_keys";
static const char __pyx_k_AbstractDynamicObjectIO__ext_rep[] = "AbstractDynamicObjectIO._ext_replacement";
static const char __pyx_k_AbstractDynamicObjectIO__ext_set[] = "AbstractDynamicObjectIO._ext_setattr";
static const char __pyx_k_AbstractDynamicObjectIO_find_fac[] = "AbstractDynamicObjectIO.find_factory_for_named_value";
static const char __pyx_k_AbstractDynamicObjectIO_toExtern[] = "AbstractDynamicObjectIO.toExternalDictionary";
static const char __pyx_k_AbstractDynamicObjectIO_updateFr[] = "AbstractDynamicObjectIO.updateFromExternalObject";
static const char __pyx_k_ExternalizableDictionaryMixin__e[] = "ExternalizableDictionaryMixin._ext_replacement";
static const char __pyx_k_ExternalizableDictionaryMixin_to[] = "ExternalizableDictionaryMixin.toExternalDictionary";
static const char __pyx_k_ExternalizableInstanceDict___get[] = "ExternalizableInstanceDict.__getattr__";
static const char __pyx_k_ExternalizableInstanceDict___mak[] = "ExternalizableInstanceDict.__make_io";
static const char __pyx_k_ExternalizableInstanceDict_toExt[] = "ExternalizableInstanceDict.toExternalObject";
static const char __pyx_k_ExternalizableInstanceDict_updat[] = "ExternalizableInstanceDict.updateFromExternalObject";
static const char __pyx_k_InterfaceObjectIO__ext_accept_ex[] = "InterfaceObjectIO._ext_accept_external_id";
static const char __pyx_k_InterfaceObjectIO__ext_all_possi[] = "InterfaceObjectIO._ext_all_possible_keys";
static const char __pyx_k_InterfaceObjectIO__ext_find_prim[] = "InterfaceObjectIO._ext_find_primitive_keys";
static const char __pyx_k_InterfaceObjectIO__ext_find_sche[] = "InterfaceObjectIO._ext_find_schema";
static const char __pyx_k_InterfaceObjectIO__ext_replaceme[] = "InterfaceObjectIO._ext_replacement";
static const char __pyx_k_InterfaceObjectIO__ext_schemas_t[] = "InterfaceObjectIO._ext_schemas_to_consider";
static const char __pyx_k_InterfaceObjectIO__validate_afte[] = "InterfaceObjectIO._validate_after_update";
static const char __pyx_k_InterfaceObjectIO_find_factory_f[] = "InterfaceObjectIO.find_factory_for_named_value";
static const char __pyx_k_InterfaceObjectIO_toExternalObje[] = "InterfaceObjectIO.toExternalObject";
static const char __pyx_k_InterfaceObjectIO_updateFromExte[] = "InterfaceObjectIO.updateFromExternalObject";
static const char __pyx_k_ModuleScopedInterfaceObjectIO__e[] = "ModuleScopedInterfaceObjectIO._ext_find_schema";
static const char __pyx_k_Most_derived_interface_s_does_no[] = "Most derived interface %s does not extend %s; non-tree interface structure. Searching module %s and considered %s on object %s of class %s and type %s";
static const char __pyx_k_get_default_externalization_poli[] = "get_default_externalization_policy";
static const char __pyx_k_internal_to_standard_external_di[] = "internal_to_standard_external_dictionary";
static const char __pyx_k_nti_externalization__datastructu[] = "nti.externalization._datastructures";
static const char __pyx_k_src_nti_externalization_datastru[] = "src/nti/externalization/datastructures.py";
static const char __pyx_k_to_minimal_standard_external_dic[] = "to_minimal_standard_external_dictionary";
static const char __pyx_k_ExternalizableInstanceDict__ext_2[] = "_ExternalizableInstanceDict._ext_all_possible_keys";
static const char __pyx_k_ExternalizableInstanceDict__ext_3[] = "_ExternalizableInstanceDict._ext_getattr";
static const char __pyx_k_ExternalizableInstanceDict__ext_4[] = "_ExternalizableInstanceDict._ext_setattr";
static const char __pyx_k_ExternalizableInstanceDict__ext_5[] = "_ExternalizableInstanceDict._ext_accept_update_key";
static const char __pyx_k_ExternalizableInstanceDict__ext_6[] = "ExternalizableInstanceDict._ext_replacement";
static const char __pyx_k_AbstractDynamicObjectIO__ext_acc_2[] = "AbstractDynamicObjectIO._ext_accept_external_id";
static const char __pyx_k_AbstractDynamicObjectIO__ext_rep_2[] = "AbstractDynamicObjectIO._ext_replacement_getattr";
static const char __pyx_k_AbstractDynamicObjectIO_toExtern_2[] = "AbstractDynamicObjectIO.toExternalObject";
static const char __pyx_k_ExternalizableDictionaryMixin__e_2[] = "ExternalizableDictionaryMixin._ext_standard_external_dictionary";
static const char __pyx_k_ExternalizableInstanceDict_toExt_2[] = "ExternalizableInstanceDict.toExternalDictionary";
static const char __pyx_k_ModuleScopedInterfaceObjectIO__e_2[] = "ModuleScopedInterfaceObjectIO._ext_schemas_to_consider";
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__pyx_n_s_AbstractDynamicObjectIO;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_acc;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_all;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_get;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_key;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_pri;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_rep;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_set;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO_find_fac;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO_toExtern;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO_toExtern_2;
static PyObject *__pyx_n_s_AbstractDynamicObjectIO_updateFr;
static PyObject *__pyx_n_s_AnonymousDictFactory;
static PyObject *__pyx_n_s_AnonymousDictFactory_default_fa;
static PyObject *__pyx_n_s_AnonymousObjectFactory;
static PyObject *__pyx_n_s_AttributeError;
static PyObject *__pyx_kp_s_Class_r_should_have_a_frozenset;
static PyObject *__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY;
static PyObject *__pyx_n_s_ExternalizableDictionaryMixin;
static PyObject *__pyx_n_s_ExternalizableDictionaryMixin__e;
static PyObject *__pyx_n_s_ExternalizableDictionaryMixin__e_2;
static PyObject *__pyx_n_s_ExternalizableDictionaryMixin_to;
static PyObject *__pyx_n_s_ExternalizableInstanceDict;
static PyObject *__pyx_n_s_ExternalizableInstanceDict_2;
static PyObject *__pyx_n_s_ExternalizableInstanceDict___get;
static PyObject *__pyx_n_s_ExternalizableInstanceDict___mak;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_2;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_3;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_4;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_5;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_6;
static PyObject *__pyx_n_s_ExternalizableInstanceDict__mak;
static PyObject *__pyx_n_s_ExternalizableInstanceDict_toExt;
static PyObject *__pyx_n_s_ExternalizableInstanceDict_toExt_2;
static PyObject *__pyx_n_s_ExternalizableInstanceDict_updat;
static PyObject *__pyx_kp_s_Externalizes_to_a_dictionary_co;
static PyObject *__pyx_n_s_FutureWarning;
static PyObject *__pyx_n_s_IAnonymousObjectFactory;
static PyObject *__pyx_n_s_IDict;
static PyObject *__pyx_n_s_IDict_providedBy;
static PyObject *__pyx_n_s_IInternalObjectIO;
static PyObject *__pyx_n_s_IInternalObjectIOFinder;
static PyObject *__pyx_n_s_IMethod;
static PyObject *__pyx_n_s_IObject;
static PyObject *__pyx_n_s_IObject_providedBy;
static PyObject *__pyx_n_s_Interface;
static PyObject *__pyx_n_s_InterfaceObjectIO;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_accept_ex;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_all_possi;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_find_prim;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_find_sche;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_getattr;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_replaceme;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_schemas_t;
static PyObject *__pyx_n_s_InterfaceObjectIO__ext_setattr;
static PyObject *__pyx_n_s_InterfaceObjectIO__validate_afte;
static PyObject *__pyx_n_s_InterfaceObjectIO_find_factory_f;
static PyObject *__pyx_n_s_InterfaceObjectIO_toExternalObje;
static PyObject *__pyx_n_s_InterfaceObjectIO_updateFromExte;
static PyObject *__pyx_n_s_KeyError;
static PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO;
static PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO__e;
static PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2;
static PyObject *__pyx_kp_s_Most_derived_interface_s_does_no;
static PyObject *__pyx_n_s_NotGiven;
static PyObject *__pyx_n_s_NotImplementedError;
static PyObject *__pyx_n_s_Number;
static PyObject *__pyx_n_s_SchemaNotProvided;
static PyObject *__pyx_n_s_StandardExternalFields;
static PyObject *__pyx_n_s_StandardInternalFields;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_s__3;
static PyObject *__pyx_n_s__8;
static PyObject *__pyx_n_s__96;
static PyObject *__pyx_n_s_all;
static PyObject *__pyx_n_s_all_2;
static PyObject *__pyx_n_s_anonymous_dict_factory;
static PyObject *__pyx_n_s_args;
static PyObject *__pyx_n_s_ascii;
static PyObject *__pyx_n_s_attr_val;
static PyObject *__pyx_n_s_base_interfaces;
static PyObject *__pyx_n_s_cache_for;
static PyObject *__pyx_n_s_class;
static PyObject *__pyx_n_s_classImplements;
static PyObject *__pyx_n_s_class_getitem;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_context;
static PyObject *__pyx_n_s_created;
static PyObject *__pyx_n_s_decode;
static PyObject *__pyx_n_s_decorate;
static PyObject *__pyx_n_s_decorate_callback;
static PyObject *__pyx_n_s_default;
static PyObject *__pyx_n_s_default_factory;
static PyObject *__pyx_n_s_dict;
static PyObject *__pyx_n_s_doc;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_excluded_in_ivars;
static PyObject *__pyx_n_s_excluded_out_ivars;
static PyObject *__pyx_n_s_ext_accept_external_id;
static PyObject *__pyx_n_s_ext_accept_update_key;
static PyObject *__pyx_n_s_ext_all_possible_keys;
static PyObject *__pyx_n_s_ext_class_name;
static PyObject *__pyx_n_s_ext_excluded_out;
static PyObject *__pyx_n_s_ext_find_primitive_keys;
static PyObject *__pyx_n_s_ext_find_schema;
static PyObject *__pyx_n_s_ext_getattr;
static PyObject *__pyx_n_s_ext_iface_upper_bound;
static PyObject *__pyx_n_s_ext_is_marker_interface;
static PyObject *__pyx_n_s_ext_keys;
static PyObject *__pyx_n_s_ext_keys_2;
static PyObject *__pyx_n_s_ext_primitive_keys;
static PyObject *__pyx_n_s_ext_primitive_out_ivars;
static PyObject *__pyx_n_s_ext_replacement;
static PyObject *__pyx_n_s_ext_replacement_getattr;
static PyObject *__pyx_n_s_ext_schemas_to_consider;
static PyObject *__pyx_n_s_ext_search_module;
static PyObject *__pyx_n_s_ext_self;
static PyObject *__pyx_n_s_ext_setattr;
static PyObject *__pyx_n_s_ext_standard_external_dictionar;
static PyObject *__pyx_n_s_ext_val;
static PyObject *__pyx_n_s_external_accept_id;
static PyObject *__pyx_n_s_external_class_name;
static PyObject *__pyx_n_s_external_default_implementatio;
static PyObject *__pyx_n_s_external_factory;
static PyObject *__pyx_n_s_external_factory_wants_arg;
static PyObject *__pyx_n_s_external_use_minimal_base;
static PyObject *__pyx_n_s_externalization_dictionary;
static PyObject *__pyx_n_s_externalization_externalizer;
static PyObject *__pyx_n_s_factory;
static PyObject *__pyx_n_s_find_factory_for;
static PyObject *__pyx_n_s_find_factory_for_named_value;
static PyObject *__pyx_n_s_find_most_derived_interface;
static PyObject *__pyx_n_s_get;
static PyObject *__pyx_n_s_getTaggedValue;
static PyObject *__pyx_n_s_getUtility;
static PyObject *__pyx_n_s_getValidationErrors;
static PyObject *__pyx_n_s_get_default_externalization_poli;
static PyObject *__pyx_n_s_get_standard_external_fields;
static PyObject *__pyx_n_s_get_standard_internal_fields;
static PyObject *__pyx_n_s_getattr;
static PyObject *__pyx_n_s_id;
static PyObject *__pyx_n_s_iface;
static PyObject *__pyx_n_s_iface_upper_bound;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_import_c_accel;
static PyObject *__pyx_n_s_init;
static PyObject *__pyx_n_s_init_subclass;
static PyObject *__pyx_n_s_initializing;
static PyObject *__pyx_n_s_interface;
static PyObject *__pyx_n_s_interface_cache;
static PyObject *__pyx_n_s_interfaces;
static PyObject *__pyx_n_s_internal_to_standard_external_di;
static PyObject *__pyx_n_s_internalization;
static PyObject *__pyx_n_s_internalization_factories;
static PyObject *__pyx_n_s_iro;
static PyObject *__pyx_n_s_isOrExtends;
static PyObject *__pyx_n_s_isSyntheticKey;
static PyObject *__pyx_n_s_items;
static PyObject *__pyx_n_s_iteritems;
static PyObject *__pyx_n_s_k;
static PyObject *__pyx_n_s_key;
static PyObject *__pyx_n_s_kwargs;
static PyObject *__pyx_n_s_lastModified;
static PyObject *__pyx_n_s_links;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_make_io;
static PyObject *__pyx_n_s_make_repr;
static PyObject *__pyx_n_s_mergeFrom;
static PyObject *__pyx_n_s_metaclass;
static PyObject *__pyx_n_s_mimeType;
static PyObject *__pyx_n_s_modified;
static PyObject *__pyx_n_s_module;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_n_s_names;
static PyObject *__pyx_n_s_nti_externalization__compat;
static PyObject *__pyx_n_s_nti_externalization__datastructu;
static PyObject *__pyx_n_s_nti_schema_interfaces;
static PyObject *__pyx_n_s_numbers;
static PyObject *__pyx_n_s_object;
static PyObject *__pyx_n_s_p_changed;
static PyObject *__pyx_n_s_parent;
static PyObject *__pyx_n_s_parsed;
static PyObject *__pyx_n_s_policy;
static PyObject *__pyx_n_s_pop;
static PyObject *__pyx_n_s_possibilities;
static PyObject *__pyx_n_s_prefer_oid;
static PyObject *__pyx_n_s_prepare;
static PyObject *__pyx_n_s_primitive_ext_keys;
static PyObject *__pyx_n_s_primitives;
static PyObject *__pyx_n_s_providedBy;
static PyObject *__pyx_n_s_pyx_capi;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_qualname;
static PyObject *__pyx_n_s_queryDirectTaggedValue;
static PyObject *__pyx_n_s_queryTaggedValue;
static PyObject *__pyx_n_s_replacement;
static PyObject *__pyx_n_s_repr;
static PyObject *__pyx_n_s_representation;
static PyObject *__pyx_n_s_request;
static PyObject *__pyx_n_s_result;
static PyObject *__pyx_kp_s_s_s_for_r_at_0x_x;
static PyObject *__pyx_n_s_schema;
static PyObject *__pyx_n_s_self;
static PyObject *__pyx_n_s_setTaggedValue;
static PyObject *__pyx_n_s_set_name;
static PyObject *__pyx_n_s_six;
static PyObject *__pyx_n_s_spec;
static PyObject *__pyx_kp_s_src_nti_externalization_datastru;
static PyObject *__pyx_n_s_staticmethod;
static PyObject *__pyx_n_s_string_types;
static PyObject *__pyx_n_s_super;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_title;
static PyObject *__pyx_n_s_toExternalDictionary;
static PyObject *__pyx_n_s_toExternalObject;
static PyObject *__pyx_n_s_to_external_object;
static PyObject *__pyx_n_s_to_minimal_standard_external_dic;
static PyObject *__pyx_n_s_traceback_info;
static PyObject *__pyx_n_s_type;
static PyObject *__pyx_n_s_unused_args;
static PyObject *__pyx_n_s_unused_kwargs;
static PyObject *__pyx_n_s_updateFromExternalObject;
static PyObject *__pyx_n_s_update_accepts_type_attrs;
static PyObject *__pyx_n_s_validate_after_update;
static PyObject *__pyx_n_s_validate_after_update_2;
static PyObject *__pyx_n_s_validate_named_field_value;
static PyObject *__pyx_n_s_value;
static PyObject *__pyx_n_s_value_type;
static PyObject *__pyx_n_s_values;
static PyObject *__pyx_n_s_warn;
static PyObject *__pyx_n_s_warnings;
static PyObject *__pyx_n_s_zope;
static PyObject *__pyx_n_s_zope_component;
static PyObject *__pyx_n_s_zope_schema_interfaces;
#endif
/* #### Code section: decls ### */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self, PyObject *__pyx_v_replacement, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_2_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_4_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_6_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_8_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_10_ext_replacement_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_12_ext_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_14_ext_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_20_ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_22_ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_parsed); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs); /* proto */
static int __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict___init__(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_context); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_2_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_4_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_6_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_8_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_10_ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict__ext_replacement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_2__make_io(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_6updateFromExternalObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_8toExternalObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_10toExternalDictionary(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_default_factory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_context, PyObject *__pyx_v_iface_upper_bound, PyObject *__pyx_v_validate_after_update); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_2__repr__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_4_ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_ext_find_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_8_ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_10_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_12_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_14_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_16_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_18_ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_parsed); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_20find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_24_validate_after_update(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_iface, PyObject *__pyx_v_ext_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound); /* proto */
static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_2_ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self); /* proto */
static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get = {0, 0, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop = {0, 0, 0, 0, 0};
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__pyx_int_1;
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__pyx_k_;
static PyObject *__pyx_k__2;
static PyObject *__pyx_k__5;
static PyObject *__pyx_k__7;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__63;
static PyObject *__pyx_tuple__65;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_tuple__76;
static PyObject *__pyx_tuple__78;
static PyObject *__pyx_tuple__80;
static PyObject *__pyx_tuple__82;
static PyObject *__pyx_tuple__84;
static PyObject *__pyx_tuple__86;
static PyObject *__pyx_tuple__88;
static PyObject *__pyx_tuple__90;
static PyObject *__pyx_tuple__92;
static PyObject *__pyx_tuple__94;
static PyObject *__pyx_codeobj__10;
static PyObject *__pyx_codeobj__12;
static PyObject *__pyx_codeobj__14;
static PyObject *__pyx_codeobj__16;
static PyObject *__pyx_codeobj__18;
static PyObject *__pyx_codeobj__20;
static PyObject *__pyx_codeobj__22;
static PyObject *__pyx_codeobj__24;
static PyObject *__pyx_codeobj__26;
static PyObject *__pyx_codeobj__28;
static PyObject *__pyx_codeobj__30;
static PyObject *__pyx_codeobj__32;
static PyObject *__pyx_codeobj__34;
static PyObject *__pyx_codeobj__36;
static PyObject *__pyx_codeobj__38;
static PyObject *__pyx_codeobj__40;
static PyObject *__pyx_codeobj__42;
static PyObject *__pyx_codeobj__44;
static PyObject *__pyx_codeobj__46;
static PyObject *__pyx_codeobj__48;
static PyObject *__pyx_codeobj__50;
static PyObject *__pyx_codeobj__53;
static PyObject *__pyx_codeobj__55;
static PyObject *__pyx_codeobj__57;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__61;
static PyObject *__pyx_codeobj__64;
static PyObject *__pyx_codeobj__67;
static PyObject *__pyx_codeobj__69;
static PyObject *__pyx_codeobj__71;
static PyObject *__pyx_codeobj__73;
static PyObject *__pyx_codeobj__75;
static PyObject *__pyx_codeobj__77;
static PyObject *__pyx_codeobj__79;
static PyObject *__pyx_codeobj__81;
static PyObject *__pyx_codeobj__83;
static PyObject *__pyx_codeobj__85;
static PyObject *__pyx_codeobj__87;
static PyObject *__pyx_codeobj__89;
static PyObject *__pyx_codeobj__91;
static PyObject *__pyx_codeobj__93;
static PyObject *__pyx_codeobj__95;
#endif
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  #ifdef __Pyx_CyFunction_USED
  PyTypeObject *__pyx_CyFunctionType;
  #endif
  #ifdef __Pyx_FusedFunction_USED
  PyTypeObject *__pyx_FusedFunctionType;
  #endif
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven;
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict;
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields;
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields;
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder;
  PyTypeObject *__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
  PyObject *__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  PyObject *__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  PyObject *__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  PyObject *__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  PyTypeObject *__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  PyObject *__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_acc;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_all;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_get;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_key;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_pri;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_rep;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO__ext_set;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO_find_fac;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO_toExtern;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO_toExtern_2;
  PyObject *__pyx_n_s_AbstractDynamicObjectIO_updateFr;
  PyObject *__pyx_n_s_AnonymousDictFactory;
  PyObject *__pyx_n_s_AnonymousDictFactory_default_fa;
  PyObject *__pyx_n_s_AnonymousObjectFactory;
  PyObject *__pyx_n_s_AttributeError;
  PyObject *__pyx_kp_s_Class_r_should_have_a_frozenset;
  PyObject *__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY;
  PyObject *__pyx_n_s_ExternalizableDictionaryMixin;
  PyObject *__pyx_n_s_ExternalizableDictionaryMixin__e;
  PyObject *__pyx_n_s_ExternalizableDictionaryMixin__e_2;
  PyObject *__pyx_n_s_ExternalizableDictionaryMixin_to;
  PyObject *__pyx_n_s_ExternalizableInstanceDict;
  PyObject *__pyx_n_s_ExternalizableInstanceDict_2;
  PyObject *__pyx_n_s_ExternalizableInstanceDict___get;
  PyObject *__pyx_n_s_ExternalizableInstanceDict___mak;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_2;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_3;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_4;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_5;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__ext_6;
  PyObject *__pyx_n_s_ExternalizableInstanceDict__mak;
  PyObject *__pyx_n_s_ExternalizableInstanceDict_toExt;
  PyObject *__pyx_n_s_ExternalizableInstanceDict_toExt_2;
  PyObject *__pyx_n_s_ExternalizableInstanceDict_updat;
  PyObject *__pyx_kp_s_Externalizes_to_a_dictionary_co;
  PyObject *__pyx_n_s_FutureWarning;
  PyObject *__pyx_n_s_IAnonymousObjectFactory;
  PyObject *__pyx_n_s_IDict;
  PyObject *__pyx_n_s_IDict_providedBy;
  PyObject *__pyx_n_s_IInternalObjectIO;
  PyObject *__pyx_n_s_IInternalObjectIOFinder;
  PyObject *__pyx_n_s_IMethod;
  PyObject *__pyx_n_s_IObject;
  PyObject *__pyx_n_s_IObject_providedBy;
  PyObject *__pyx_n_s_Interface;
  PyObject *__pyx_n_s_InterfaceObjectIO;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_accept_ex;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_all_possi;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_find_prim;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_find_sche;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_getattr;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_replaceme;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_schemas_t;
  PyObject *__pyx_n_s_InterfaceObjectIO__ext_setattr;
  PyObject *__pyx_n_s_InterfaceObjectIO__validate_afte;
  PyObject *__pyx_n_s_InterfaceObjectIO_find_factory_f;
  PyObject *__pyx_n_s_InterfaceObjectIO_toExternalObje;
  PyObject *__pyx_n_s_InterfaceObjectIO_updateFromExte;
  PyObject *__pyx_n_s_KeyError;
  PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO;
  PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO__e;
  PyObject *__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2;
  PyObject *__pyx_kp_s_Most_derived_interface_s_does_no;
  PyObject *__pyx_n_s_NotGiven;
  PyObject *__pyx_n_s_NotImplementedError;
  PyObject *__pyx_n_s_Number;
  PyObject *__pyx_n_s_SchemaNotProvided;
  PyObject *__pyx_n_s_StandardExternalFields;
  PyObject *__pyx_n_s_StandardInternalFields;
  PyObject *__pyx_n_s_TypeError;
  PyObject *__pyx_n_s__3;
  PyObject *__pyx_n_s__8;
  PyObject *__pyx_n_s__96;
  PyObject *__pyx_n_s_all;
  PyObject *__pyx_n_s_all_2;
  PyObject *__pyx_n_s_anonymous_dict_factory;
  PyObject *__pyx_n_s_args;
  PyObject *__pyx_n_s_ascii;
  PyObject *__pyx_n_s_attr_val;
  PyObject *__pyx_n_s_base_interfaces;
  PyObject *__pyx_n_s_cache_for;
  PyObject *__pyx_n_s_class;
  PyObject *__pyx_n_s_classImplements;
  PyObject *__pyx_n_s_class_getitem;
  PyObject *__pyx_n_s_cline_in_traceback;
  PyObject *__pyx_n_s_context;
  PyObject *__pyx_n_s_created;
  PyObject *__pyx_n_s_decode;
  PyObject *__pyx_n_s_decorate;
  PyObject *__pyx_n_s_decorate_callback;
  PyObject *__pyx_n_s_default;
  PyObject *__pyx_n_s_default_factory;
  PyObject *__pyx_n_s_dict;
  PyObject *__pyx_n_s_doc;
  PyObject *__pyx_n_s_encode;
  PyObject *__pyx_n_s_excluded_in_ivars;
  PyObject *__pyx_n_s_excluded_out_ivars;
  PyObject *__pyx_n_s_ext_accept_external_id;
  PyObject *__pyx_n_s_ext_accept_update_key;
  PyObject *__pyx_n_s_ext_all_possible_keys;
  PyObject *__pyx_n_s_ext_class_name;
  PyObject *__pyx_n_s_ext_excluded_out;
  PyObject *__pyx_n_s_ext_find_primitive_keys;
  PyObject *__pyx_n_s_ext_find_schema;
  PyObject *__pyx_n_s_ext_getattr;
  PyObject *__pyx_n_s_ext_iface_upper_bound;
  PyObject *__pyx_n_s_ext_is_marker_interface;
  PyObject *__pyx_n_s_ext_keys;
  PyObject *__pyx_n_s_ext_keys_2;
  PyObject *__pyx_n_s_ext_primitive_keys;
  PyObject *__pyx_n_s_ext_primitive_out_ivars;
  PyObject *__pyx_n_s_ext_replacement;
  PyObject *__pyx_n_s_ext_replacement_getattr;
  PyObject *__pyx_n_s_ext_schemas_to_consider;
  PyObject *__pyx_n_s_ext_search_module;
  PyObject *__pyx_n_s_ext_self;
  PyObject *__pyx_n_s_ext_setattr;
  PyObject *__pyx_n_s_ext_standard_external_dictionar;
  PyObject *__pyx_n_s_ext_val;
  PyObject *__pyx_n_s_external_accept_id;
  PyObject *__pyx_n_s_external_class_name;
  PyObject *__pyx_n_s_external_default_implementatio;
  PyObject *__pyx_n_s_external_factory;
  PyObject *__pyx_n_s_external_factory_wants_arg;
  PyObject *__pyx_n_s_external_use_minimal_base;
  PyObject *__pyx_n_s_externalization_dictionary;
  PyObject *__pyx_n_s_externalization_externalizer;
  PyObject *__pyx_n_s_factory;
  PyObject *__pyx_n_s_find_factory_for;
  PyObject *__pyx_n_s_find_factory_for_named_value;
  PyObject *__pyx_n_s_find_most_derived_interface;
  PyObject *__pyx_n_s_get;
  PyObject *__pyx_n_s_getTaggedValue;
  PyObject *__pyx_n_s_getUtility;
  PyObject *__pyx_n_s_getValidationErrors;
  PyObject *__pyx_n_s_get_default_externalization_poli;
  PyObject *__pyx_n_s_get_standard_external_fields;
  PyObject *__pyx_n_s_get_standard_internal_fields;
  PyObject *__pyx_n_s_getattr;
  PyObject *__pyx_n_s_id;
  PyObject *__pyx_n_s_iface;
  PyObject *__pyx_n_s_iface_upper_bound;
  PyObject *__pyx_n_s_import;
  PyObject *__pyx_n_s_import_c_accel;
  PyObject *__pyx_n_s_init;
  PyObject *__pyx_n_s_init_subclass;
  PyObject *__pyx_n_s_initializing;
  PyObject *__pyx_n_s_interface;
  PyObject *__pyx_n_s_interface_cache;
  PyObject *__pyx_n_s_interfaces;
  PyObject *__pyx_n_s_internal_to_standard_external_di;
  PyObject *__pyx_n_s_internalization;
  PyObject *__pyx_n_s_internalization_factories;
  PyObject *__pyx_n_s_iro;
  PyObject *__pyx_n_s_isOrExtends;
  PyObject *__pyx_n_s_isSyntheticKey;
  PyObject *__pyx_n_s_items;
  PyObject *__pyx_n_s_iteritems;
  PyObject *__pyx_n_s_k;
  PyObject *__pyx_n_s_key;
  PyObject *__pyx_n_s_kwargs;
  PyObject *__pyx_n_s_lastModified;
  PyObject *__pyx_n_s_links;
  PyObject *__pyx_n_s_main;
  PyObject *__pyx_n_s_make_io;
  PyObject *__pyx_n_s_make_repr;
  PyObject *__pyx_n_s_mergeFrom;
  PyObject *__pyx_n_s_metaclass;
  PyObject *__pyx_n_s_mimeType;
  PyObject *__pyx_n_s_modified;
  PyObject *__pyx_n_s_module;
  PyObject *__pyx_n_s_name;
  PyObject *__pyx_n_s_name_2;
  PyObject *__pyx_n_s_names;
  PyObject *__pyx_n_s_nti_externalization__compat;
  PyObject *__pyx_n_s_nti_externalization__datastructu;
  PyObject *__pyx_n_s_nti_schema_interfaces;
  PyObject *__pyx_n_s_numbers;
  PyObject *__pyx_n_s_object;
  PyObject *__pyx_n_s_p_changed;
  PyObject *__pyx_n_s_parent;
  PyObject *__pyx_n_s_parsed;
  PyObject *__pyx_n_s_policy;
  PyObject *__pyx_n_s_pop;
  PyObject *__pyx_n_s_possibilities;
  PyObject *__pyx_n_s_prefer_oid;
  PyObject *__pyx_n_s_prepare;
  PyObject *__pyx_n_s_primitive_ext_keys;
  PyObject *__pyx_n_s_primitives;
  PyObject *__pyx_n_s_providedBy;
  PyObject *__pyx_n_s_pyx_capi;
  PyObject *__pyx_n_s_pyx_vtable;
  PyObject *__pyx_n_s_qualname;
  PyObject *__pyx_n_s_queryDirectTaggedValue;
  PyObject *__pyx_n_s_queryTaggedValue;
  PyObject *__pyx_n_s_replacement;
  PyObject *__pyx_n_s_repr;
  PyObject *__pyx_n_s_representation;
  PyObject *__pyx_n_s_request;
  PyObject *__pyx_n_s_result;
  PyObject *__pyx_kp_s_s_s_for_r_at_0x_x;
  PyObject *__pyx_n_s_schema;
  PyObject *__pyx_n_s_self;
  PyObject *__pyx_n_s_setTaggedValue;
  PyObject *__pyx_n_s_set_name;
  PyObject *__pyx_n_s_six;
  PyObject *__pyx_n_s_spec;
  PyObject *__pyx_kp_s_src_nti_externalization_datastru;
  PyObject *__pyx_n_s_staticmethod;
  PyObject *__pyx_n_s_string_types;
  PyObject *__pyx_n_s_super;
  PyObject *__pyx_n_s_test;
  PyObject *__pyx_n_s_title;
  PyObject *__pyx_n_s_toExternalDictionary;
  PyObject *__pyx_n_s_toExternalObject;
  PyObject *__pyx_n_s_to_external_object;
  PyObject *__pyx_n_s_to_minimal_standard_external_dic;
  PyObject *__pyx_n_s_traceback_info;
  PyObject *__pyx_n_s_type;
  PyObject *__pyx_n_s_unused_args;
  PyObject *__pyx_n_s_unused_kwargs;
  PyObject *__pyx_n_s_updateFromExternalObject;
  PyObject *__pyx_n_s_update_accepts_type_attrs;
  PyObject *__pyx_n_s_validate_after_update;
  PyObject *__pyx_n_s_validate_after_update_2;
  PyObject *__pyx_n_s_validate_named_field_value;
  PyObject *__pyx_n_s_value;
  PyObject *__pyx_n_s_value_type;
  PyObject *__pyx_n_s_values;
  PyObject *__pyx_n_s_warn;
  PyObject *__pyx_n_s_warnings;
  PyObject *__pyx_n_s_zope;
  PyObject *__pyx_n_s_zope_component;
  PyObject *__pyx_n_s_zope_schema_interfaces;
  PyObject *__pyx_int_1;
  PyObject *__pyx_k_;
  PyObject *__pyx_k__2;
  PyObject *__pyx_k__5;
  PyObject *__pyx_k__7;
  PyObject *__pyx_tuple__4;
  PyObject *__pyx_tuple__6;
  PyObject *__pyx_tuple__9;
  PyObject *__pyx_tuple__11;
  PyObject *__pyx_tuple__13;
  PyObject *__pyx_tuple__15;
  PyObject *__pyx_tuple__17;
  PyObject *__pyx_tuple__19;
  PyObject *__pyx_tuple__21;
  PyObject *__pyx_tuple__23;
  PyObject *__pyx_tuple__25;
  PyObject *__pyx_tuple__27;
  PyObject *__pyx_tuple__29;
  PyObject *__pyx_tuple__31;
  PyObject *__pyx_tuple__33;
  PyObject *__pyx_tuple__35;
  PyObject *__pyx_tuple__37;
  PyObject *__pyx_tuple__39;
  PyObject *__pyx_tuple__41;
  PyObject *__pyx_tuple__43;
  PyObject *__pyx_tuple__45;
  PyObject *__pyx_tuple__47;
  PyObject *__pyx_tuple__49;
  PyObject *__pyx_tuple__51;
  PyObject *__pyx_tuple__52;
  PyObject *__pyx_tuple__54;
  PyObject *__pyx_tuple__56;
  PyObject *__pyx_tuple__58;
  PyObject *__pyx_tuple__60;
  PyObject *__pyx_tuple__62;
  PyObject *__pyx_tuple__63;
  PyObject *__pyx_tuple__65;
  PyObject *__pyx_tuple__66;
  PyObject *__pyx_tuple__68;
  PyObject *__pyx_tuple__70;
  PyObject *__pyx_tuple__72;
  PyObject *__pyx_tuple__74;
  PyObject *__pyx_tuple__76;
  PyObject *__pyx_tuple__78;
  PyObject *__pyx_tuple__80;
  PyObject *__pyx_tuple__82;
  PyObject *__pyx_tuple__84;
  PyObject *__pyx_tuple__86;
  PyObject *__pyx_tuple__88;
  PyObject *__pyx_tuple__90;
  PyObject *__pyx_tuple__92;
  PyObject *__pyx_tuple__94;
  PyObject *__pyx_codeobj__10;
  PyObject *__pyx_codeobj__12;
  PyObject *__pyx_codeobj__14;
  PyObject *__pyx_codeobj__16;
  PyObject *__pyx_codeobj__18;
  PyObject *__pyx_codeobj__20;
  PyObject *__pyx_codeobj__22;
  PyObject *__pyx_codeobj__24;
  PyObject *__pyx_codeobj__26;
  PyObject *__pyx_codeobj__28;
  PyObject *__pyx_codeobj__30;
  PyObject *__pyx_codeobj__32;
  PyObject *__pyx_codeobj__34;
  PyObject *__pyx_codeobj__36;
  PyObject *__pyx_codeobj__38;
  PyObject *__pyx_codeobj__40;
  PyObject *__pyx_codeobj__42;
  PyObject *__pyx_codeobj__44;
  PyObject *__pyx_codeobj__46;
  PyObject *__pyx_codeobj__48;
  PyObject *__pyx_codeobj__50;
  PyObject *__pyx_codeobj__53;
  PyObject *__pyx_codeobj__55;
  PyObject *__pyx_codeobj__57;
  PyObject *__pyx_codeobj__59;
  PyObject *__pyx_codeobj__61;
  PyObject *__pyx_codeobj__64;
  PyObject *__pyx_codeobj__67;
  PyObject *__pyx_codeobj__69;
  PyObject *__pyx_codeobj__71;
  PyObject *__pyx_codeobj__73;
  PyObject *__pyx_codeobj__75;
  PyObject *__pyx_codeobj__77;
  PyObject *__pyx_codeobj__79;
  PyObject *__pyx_codeobj__81;
  PyObject *__pyx_codeobj__83;
  PyObject *__pyx_codeobj__85;
  PyObject *__pyx_codeobj__87;
  PyObject *__pyx_codeobj__89;
  PyObject *__pyx_codeobj__91;
  PyObject *__pyx_codeobj__93;
  PyObject *__pyx_codeobj__95;
} __pyx_mstate;

#ifdef __cplusplus
namespace {
  extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate(o) ((__pyx_mstate *)__Pyx_PyModule_GetState(o))

#define __pyx_mstate_global (__pyx_mstate(PyState_FindModule(&__pyx_moduledef)))

#define __pyx_m (PyState_FindModule(&__pyx_moduledef))
#endif
/* #### Code section: module_state_clear ### */
#if CYTHON_COMPILING_IN_LIMITED_API
static int __pyx_m_clear(PyObject *m) {
  __pyx_mstate *clear_module_state = __pyx_mstate(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #ifdef __Pyx_CyFunction_USED
  Py_CLEAR(clear_module_state->__pyx_CyFunctionType);
  #endif
  #ifdef __Pyx_FusedFunction_USED
  Py_CLEAR(clear_module_state->__pyx_FusedFunctionType);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);
  Py_CLEAR(clear_module_state->__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  Py_CLEAR(clear_module_state->__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  Py_CLEAR(clear_module_state->__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_acc);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_all);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_get);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_key);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_pri);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_rep);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_set);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO_find_fac);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO_toExtern);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO_toExtern_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_AbstractDynamicObjectIO_updateFr);
  Py_CLEAR(clear_module_state->__pyx_n_s_AnonymousDictFactory);
  Py_CLEAR(clear_module_state->__pyx_n_s_AnonymousDictFactory_default_fa);
  Py_CLEAR(clear_module_state->__pyx_n_s_AnonymousObjectFactory);
  Py_CLEAR(clear_module_state->__pyx_n_s_AttributeError);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Class_r_should_have_a_frozenset);
  Py_CLEAR(clear_module_state->__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableDictionaryMixin);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableDictionaryMixin__e);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableDictionaryMixin__e_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableDictionaryMixin_to);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict___get);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict___mak);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_3);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_4);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_5);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_6);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict__mak);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict_toExt);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict_toExt_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_ExternalizableInstanceDict_updat);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Externalizes_to_a_dictionary_co);
  Py_CLEAR(clear_module_state->__pyx_n_s_FutureWarning);
  Py_CLEAR(clear_module_state->__pyx_n_s_IAnonymousObjectFactory);
  Py_CLEAR(clear_module_state->__pyx_n_s_IDict);
  Py_CLEAR(clear_module_state->__pyx_n_s_IDict_providedBy);
  Py_CLEAR(clear_module_state->__pyx_n_s_IInternalObjectIO);
  Py_CLEAR(clear_module_state->__pyx_n_s_IInternalObjectIOFinder);
  Py_CLEAR(clear_module_state->__pyx_n_s_IMethod);
  Py_CLEAR(clear_module_state->__pyx_n_s_IObject);
  Py_CLEAR(clear_module_state->__pyx_n_s_IObject_providedBy);
  Py_CLEAR(clear_module_state->__pyx_n_s_Interface);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_accept_ex);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_all_possi);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_find_prim);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_find_sche);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_getattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_replaceme);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_schemas_t);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__ext_setattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO__validate_afte);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO_find_factory_f);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO_toExternalObje);
  Py_CLEAR(clear_module_state->__pyx_n_s_InterfaceObjectIO_updateFromExte);
  Py_CLEAR(clear_module_state->__pyx_n_s_KeyError);
  Py_CLEAR(clear_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO);
  Py_CLEAR(clear_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO__e);
  Py_CLEAR(clear_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2);
  Py_CLEAR(clear_module_state->__pyx_kp_s_Most_derived_interface_s_does_no);
  Py_CLEAR(clear_module_state->__pyx_n_s_NotGiven);
  Py_CLEAR(clear_module_state->__pyx_n_s_NotImplementedError);
  Py_CLEAR(clear_module_state->__pyx_n_s_Number);
  Py_CLEAR(clear_module_state->__pyx_n_s_SchemaNotProvided);
  Py_CLEAR(clear_module_state->__pyx_n_s_StandardExternalFields);
  Py_CLEAR(clear_module_state->__pyx_n_s_StandardInternalFields);
  Py_CLEAR(clear_module_state->__pyx_n_s_TypeError);
  Py_CLEAR(clear_module_state->__pyx_n_s__3);
  Py_CLEAR(clear_module_state->__pyx_n_s__8);
  Py_CLEAR(clear_module_state->__pyx_n_s__96);
  Py_CLEAR(clear_module_state->__pyx_n_s_all);
  Py_CLEAR(clear_module_state->__pyx_n_s_all_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_anonymous_dict_factory);
  Py_CLEAR(clear_module_state->__pyx_n_s_args);
  Py_CLEAR(clear_module_state->__pyx_n_s_ascii);
  Py_CLEAR(clear_module_state->__pyx_n_s_attr_val);
  Py_CLEAR(clear_module_state->__pyx_n_s_base_interfaces);
  Py_CLEAR(clear_module_state->__pyx_n_s_cache_for);
  Py_CLEAR(clear_module_state->__pyx_n_s_class);
  Py_CLEAR(clear_module_state->__pyx_n_s_classImplements);
  Py_CLEAR(clear_module_state->__pyx_n_s_class_getitem);
  Py_CLEAR(clear_module_state->__pyx_n_s_cline_in_traceback);
  Py_CLEAR(clear_module_state->__pyx_n_s_context);
  Py_CLEAR(clear_module_state->__pyx_n_s_created);
  Py_CLEAR(clear_module_state->__pyx_n_s_decode);
  Py_CLEAR(clear_module_state->__pyx_n_s_decorate);
  Py_CLEAR(clear_module_state->__pyx_n_s_decorate_callback);
  Py_CLEAR(clear_module_state->__pyx_n_s_default);
  Py_CLEAR(clear_module_state->__pyx_n_s_default_factory);
  Py_CLEAR(clear_module_state->__pyx_n_s_dict);
  Py_CLEAR(clear_module_state->__pyx_n_s_doc);
  Py_CLEAR(clear_module_state->__pyx_n_s_encode);
  Py_CLEAR(clear_module_state->__pyx_n_s_excluded_in_ivars);
  Py_CLEAR(clear_module_state->__pyx_n_s_excluded_out_ivars);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_accept_external_id);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_accept_update_key);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_all_possible_keys);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_class_name);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_excluded_out);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_find_primitive_keys);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_find_schema);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_getattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_iface_upper_bound);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_is_marker_interface);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_keys);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_keys_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_primitive_keys);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_primitive_out_ivars);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_replacement);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_replacement_getattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_schemas_to_consider);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_search_module);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_self);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_setattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_standard_external_dictionar);
  Py_CLEAR(clear_module_state->__pyx_n_s_ext_val);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_accept_id);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_class_name);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_default_implementatio);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_factory);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_factory_wants_arg);
  Py_CLEAR(clear_module_state->__pyx_n_s_external_use_minimal_base);
  Py_CLEAR(clear_module_state->__pyx_n_s_externalization_dictionary);
  Py_CLEAR(clear_module_state->__pyx_n_s_externalization_externalizer);
  Py_CLEAR(clear_module_state->__pyx_n_s_factory);
  Py_CLEAR(clear_module_state->__pyx_n_s_find_factory_for);
  Py_CLEAR(clear_module_state->__pyx_n_s_find_factory_for_named_value);
  Py_CLEAR(clear_module_state->__pyx_n_s_find_most_derived_interface);
  Py_CLEAR(clear_module_state->__pyx_n_s_get);
  Py_CLEAR(clear_module_state->__pyx_n_s_getTaggedValue);
  Py_CLEAR(clear_module_state->__pyx_n_s_getUtility);
  Py_CLEAR(clear_module_state->__pyx_n_s_getValidationErrors);
  Py_CLEAR(clear_module_state->__pyx_n_s_get_default_externalization_poli);
  Py_CLEAR(clear_module_state->__pyx_n_s_get_standard_external_fields);
  Py_CLEAR(clear_module_state->__pyx_n_s_get_standard_internal_fields);
  Py_CLEAR(clear_module_state->__pyx_n_s_getattr);
  Py_CLEAR(clear_module_state->__pyx_n_s_id);
  Py_CLEAR(clear_module_state->__pyx_n_s_iface);
  Py_CLEAR(clear_module_state->__pyx_n_s_iface_upper_bound);
  Py_CLEAR(clear_module_state->__pyx_n_s_import);
  Py_CLEAR(clear_module_state->__pyx_n_s_import_c_accel);
  Py_CLEAR(clear_module_state->__pyx_n_s_init);
  Py_CLEAR(clear_module_state->__pyx_n_s_init_subclass);
  Py_CLEAR(clear_module_state->__pyx_n_s_initializing);
  Py_CLEAR(clear_module_state->__pyx_n_s_interface);
  Py_CLEAR(clear_module_state->__pyx_n_s_interface_cache);
  Py_CLEAR(clear_module_state->__pyx_n_s_interfaces);
  Py_CLEAR(clear_module_state->__pyx_n_s_internal_to_standard_external_di);
  Py_CLEAR(clear_module_state->__pyx_n_s_internalization);
  Py_CLEAR(clear_module_state->__pyx_n_s_internalization_factories);
  Py_CLEAR(clear_module_state->__pyx_n_s_iro);
  Py_CLEAR(clear_module_state->__pyx_n_s_isOrExtends);
  Py_CLEAR(clear_module_state->__pyx_n_s_isSyntheticKey);
  Py_CLEAR(clear_module_state->__pyx_n_s_items);
  Py_CLEAR(clear_module_state->__pyx_n_s_iteritems);
  Py_CLEAR(clear_module_state->__pyx_n_s_k);
  Py_CLEAR(clear_module_state->__pyx_n_s_key);
  Py_CLEAR(clear_module_state->__pyx_n_s_kwargs);
  Py_CLEAR(clear_module_state->__pyx_n_s_lastModified);
  Py_CLEAR(clear_module_state->__pyx_n_s_links);
  Py_CLEAR(clear_module_state->__pyx_n_s_main);
  Py_CLEAR(clear_module_state->__pyx_n_s_make_io);
  Py_CLEAR(clear_module_state->__pyx_n_s_make_repr);
  Py_CLEAR(clear_module_state->__pyx_n_s_mergeFrom);
  Py_CLEAR(clear_module_state->__pyx_n_s_metaclass);
  Py_CLEAR(clear_module_state->__pyx_n_s_mimeType);
  Py_CLEAR(clear_module_state->__pyx_n_s_modified);
  Py_CLEAR(clear_module_state->__pyx_n_s_module);
  Py_CLEAR(clear_module_state->__pyx_n_s_name);
  Py_CLEAR(clear_module_state->__pyx_n_s_name_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_names);
  Py_CLEAR(clear_module_state->__pyx_n_s_nti_externalization__compat);
  Py_CLEAR(clear_module_state->__pyx_n_s_nti_externalization__datastructu);
  Py_CLEAR(clear_module_state->__pyx_n_s_nti_schema_interfaces);
  Py_CLEAR(clear_module_state->__pyx_n_s_numbers);
  Py_CLEAR(clear_module_state->__pyx_n_s_object);
  Py_CLEAR(clear_module_state->__pyx_n_s_p_changed);
  Py_CLEAR(clear_module_state->__pyx_n_s_parent);
  Py_CLEAR(clear_module_state->__pyx_n_s_parsed);
  Py_CLEAR(clear_module_state->__pyx_n_s_policy);
  Py_CLEAR(clear_module_state->__pyx_n_s_pop);
  Py_CLEAR(clear_module_state->__pyx_n_s_possibilities);
  Py_CLEAR(clear_module_state->__pyx_n_s_prefer_oid);
  Py_CLEAR(clear_module_state->__pyx_n_s_prepare);
  Py_CLEAR(clear_module_state->__pyx_n_s_primitive_ext_keys);
  Py_CLEAR(clear_module_state->__pyx_n_s_primitives);
  Py_CLEAR(clear_module_state->__pyx_n_s_providedBy);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_capi);
  Py_CLEAR(clear_module_state->__pyx_n_s_pyx_vtable);
  Py_CLEAR(clear_module_state->__pyx_n_s_qualname);
  Py_CLEAR(clear_module_state->__pyx_n_s_queryDirectTaggedValue);
  Py_CLEAR(clear_module_state->__pyx_n_s_queryTaggedValue);
  Py_CLEAR(clear_module_state->__pyx_n_s_replacement);
  Py_CLEAR(clear_module_state->__pyx_n_s_repr);
  Py_CLEAR(clear_module_state->__pyx_n_s_representation);
  Py_CLEAR(clear_module_state->__pyx_n_s_request);
  Py_CLEAR(clear_module_state->__pyx_n_s_result);
  Py_CLEAR(clear_module_state->__pyx_kp_s_s_s_for_r_at_0x_x);
  Py_CLEAR(clear_module_state->__pyx_n_s_schema);
  Py_CLEAR(clear_module_state->__pyx_n_s_self);
  Py_CLEAR(clear_module_state->__pyx_n_s_setTaggedValue);
  Py_CLEAR(clear_module_state->__pyx_n_s_set_name);
  Py_CLEAR(clear_module_state->__pyx_n_s_six);
  Py_CLEAR(clear_module_state->__pyx_n_s_spec);
  Py_CLEAR(clear_module_state->__pyx_kp_s_src_nti_externalization_datastru);
  Py_CLEAR(clear_module_state->__pyx_n_s_staticmethod);
  Py_CLEAR(clear_module_state->__pyx_n_s_string_types);
  Py_CLEAR(clear_module_state->__pyx_n_s_super);
  Py_CLEAR(clear_module_state->__pyx_n_s_test);
  Py_CLEAR(clear_module_state->__pyx_n_s_title);
  Py_CLEAR(clear_module_state->__pyx_n_s_toExternalDictionary);
  Py_CLEAR(clear_module_state->__pyx_n_s_toExternalObject);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_external_object);
  Py_CLEAR(clear_module_state->__pyx_n_s_to_minimal_standard_external_dic);
  Py_CLEAR(clear_module_state->__pyx_n_s_traceback_info);
  Py_CLEAR(clear_module_state->__pyx_n_s_type);
  Py_CLEAR(clear_module_state->__pyx_n_s_unused_args);
  Py_CLEAR(clear_module_state->__pyx_n_s_unused_kwargs);
  Py_CLEAR(clear_module_state->__pyx_n_s_updateFromExternalObject);
  Py_CLEAR(clear_module_state->__pyx_n_s_update_accepts_type_attrs);
  Py_CLEAR(clear_module_state->__pyx_n_s_validate_after_update);
  Py_CLEAR(clear_module_state->__pyx_n_s_validate_after_update_2);
  Py_CLEAR(clear_module_state->__pyx_n_s_validate_named_field_value);
  Py_CLEAR(clear_module_state->__pyx_n_s_value);
  Py_CLEAR(clear_module_state->__pyx_n_s_value_type);
  Py_CLEAR(clear_module_state->__pyx_n_s_values);
  Py_CLEAR(clear_module_state->__pyx_n_s_warn);
  Py_CLEAR(clear_module_state->__pyx_n_s_warnings);
  Py_CLEAR(clear_module_state->__pyx_n_s_zope);
  Py_CLEAR(clear_module_state->__pyx_n_s_zope_component);
  Py_CLEAR(clear_module_state->__pyx_n_s_zope_schema_interfaces);
  Py_CLEAR(clear_module_state->__pyx_int_1);
  Py_CLEAR(clear_module_state->__pyx_k_);
  Py_CLEAR(clear_module_state->__pyx_k__2);
  Py_CLEAR(clear_module_state->__pyx_k__5);
  Py_CLEAR(clear_module_state->__pyx_k__7);
  Py_CLEAR(clear_module_state->__pyx_tuple__4);
  Py_CLEAR(clear_module_state->__pyx_tuple__6);
  Py_CLEAR(clear_module_state->__pyx_tuple__9);
  Py_CLEAR(clear_module_state->__pyx_tuple__11);
  Py_CLEAR(clear_module_state->__pyx_tuple__13);
  Py_CLEAR(clear_module_state->__pyx_tuple__15);
  Py_CLEAR(clear_module_state->__pyx_tuple__17);
  Py_CLEAR(clear_module_state->__pyx_tuple__19);
  Py_CLEAR(clear_module_state->__pyx_tuple__21);
  Py_CLEAR(clear_module_state->__pyx_tuple__23);
  Py_CLEAR(clear_module_state->__pyx_tuple__25);
  Py_CLEAR(clear_module_state->__pyx_tuple__27);
  Py_CLEAR(clear_module_state->__pyx_tuple__29);
  Py_CLEAR(clear_module_state->__pyx_tuple__31);
  Py_CLEAR(clear_module_state->__pyx_tuple__33);
  Py_CLEAR(clear_module_state->__pyx_tuple__35);
  Py_CLEAR(clear_module_state->__pyx_tuple__37);
  Py_CLEAR(clear_module_state->__pyx_tuple__39);
  Py_CLEAR(clear_module_state->__pyx_tuple__41);
  Py_CLEAR(clear_module_state->__pyx_tuple__43);
  Py_CLEAR(clear_module_state->__pyx_tuple__45);
  Py_CLEAR(clear_module_state->__pyx_tuple__47);
  Py_CLEAR(clear_module_state->__pyx_tuple__49);
  Py_CLEAR(clear_module_state->__pyx_tuple__51);
  Py_CLEAR(clear_module_state->__pyx_tuple__52);
  Py_CLEAR(clear_module_state->__pyx_tuple__54);
  Py_CLEAR(clear_module_state->__pyx_tuple__56);
  Py_CLEAR(clear_module_state->__pyx_tuple__58);
  Py_CLEAR(clear_module_state->__pyx_tuple__60);
  Py_CLEAR(clear_module_state->__pyx_tuple__62);
  Py_CLEAR(clear_module_state->__pyx_tuple__63);
  Py_CLEAR(clear_module_state->__pyx_tuple__65);
  Py_CLEAR(clear_module_state->__pyx_tuple__66);
  Py_CLEAR(clear_module_state->__pyx_tuple__68);
  Py_CLEAR(clear_module_state->__pyx_tuple__70);
  Py_CLEAR(clear_module_state->__pyx_tuple__72);
  Py_CLEAR(clear_module_state->__pyx_tuple__74);
  Py_CLEAR(clear_module_state->__pyx_tuple__76);
  Py_CLEAR(clear_module_state->__pyx_tuple__78);
  Py_CLEAR(clear_module_state->__pyx_tuple__80);
  Py_CLEAR(clear_module_state->__pyx_tuple__82);
  Py_CLEAR(clear_module_state->__pyx_tuple__84);
  Py_CLEAR(clear_module_state->__pyx_tuple__86);
  Py_CLEAR(clear_module_state->__pyx_tuple__88);
  Py_CLEAR(clear_module_state->__pyx_tuple__90);
  Py_CLEAR(clear_module_state->__pyx_tuple__92);
  Py_CLEAR(clear_module_state->__pyx_tuple__94);
  Py_CLEAR(clear_module_state->__pyx_codeobj__10);
  Py_CLEAR(clear_module_state->__pyx_codeobj__12);
  Py_CLEAR(clear_module_state->__pyx_codeobj__14);
  Py_CLEAR(clear_module_state->__pyx_codeobj__16);
  Py_CLEAR(clear_module_state->__pyx_codeobj__18);
  Py_CLEAR(clear_module_state->__pyx_codeobj__20);
  Py_CLEAR(clear_module_state->__pyx_codeobj__22);
  Py_CLEAR(clear_module_state->__pyx_codeobj__24);
  Py_CLEAR(clear_module_state->__pyx_codeobj__26);
  Py_CLEAR(clear_module_state->__pyx_codeobj__28);
  Py_CLEAR(clear_module_state->__pyx_codeobj__30);
  Py_CLEAR(clear_module_state->__pyx_codeobj__32);
  Py_CLEAR(clear_module_state->__pyx_codeobj__34);
  Py_CLEAR(clear_module_state->__pyx_codeobj__36);
  Py_CLEAR(clear_module_state->__pyx_codeobj__38);
  Py_CLEAR(clear_module_state->__pyx_codeobj__40);
  Py_CLEAR(clear_module_state->__pyx_codeobj__42);
  Py_CLEAR(clear_module_state->__pyx_codeobj__44);
  Py_CLEAR(clear_module_state->__pyx_codeobj__46);
  Py_CLEAR(clear_module_state->__pyx_codeobj__48);
  Py_CLEAR(clear_module_state->__pyx_codeobj__50);
  Py_CLEAR(clear_module_state->__pyx_codeobj__53);
  Py_CLEAR(clear_module_state->__pyx_codeobj__55);
  Py_CLEAR(clear_module_state->__pyx_codeobj__57);
  Py_CLEAR(clear_module_state->__pyx_codeobj__59);
  Py_CLEAR(clear_module_state->__pyx_codeobj__61);
  Py_CLEAR(clear_module_state->__pyx_codeobj__64);
  Py_CLEAR(clear_module_state->__pyx_codeobj__67);
  Py_CLEAR(clear_module_state->__pyx_codeobj__69);
  Py_CLEAR(clear_module_state->__pyx_codeobj__71);
  Py_CLEAR(clear_module_state->__pyx_codeobj__73);
  Py_CLEAR(clear_module_state->__pyx_codeobj__75);
  Py_CLEAR(clear_module_state->__pyx_codeobj__77);
  Py_CLEAR(clear_module_state->__pyx_codeobj__79);
  Py_CLEAR(clear_module_state->__pyx_codeobj__81);
  Py_CLEAR(clear_module_state->__pyx_codeobj__83);
  Py_CLEAR(clear_module_state->__pyx_codeobj__85);
  Py_CLEAR(clear_module_state->__pyx_codeobj__87);
  Py_CLEAR(clear_module_state->__pyx_codeobj__89);
  Py_CLEAR(clear_module_state->__pyx_codeobj__91);
  Py_CLEAR(clear_module_state->__pyx_codeobj__93);
  Py_CLEAR(clear_module_state->__pyx_codeobj__95);
  return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_COMPILING_IN_LIMITED_API
static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstate *traverse_module_state = __pyx_mstate(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  Py_VISIT(traverse_module_state->__pyx_empty_tuple);
  Py_VISIT(traverse_module_state->__pyx_empty_bytes);
  Py_VISIT(traverse_module_state->__pyx_empty_unicode);
  #ifdef __Pyx_CyFunction_USED
  Py_VISIT(traverse_module_state->__pyx_CyFunctionType);
  #endif
  #ifdef __Pyx_FusedFunction_USED
  Py_VISIT(traverse_module_state->__pyx_FusedFunctionType);
  #endif
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);
  Py_VISIT(traverse_module_state->__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  Py_VISIT(traverse_module_state->__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  Py_VISIT(traverse_module_state->__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_acc);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_all);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_get);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_key);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_pri);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_rep);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO__ext_set);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO_find_fac);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO_toExtern);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO_toExtern_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_AbstractDynamicObjectIO_updateFr);
  Py_VISIT(traverse_module_state->__pyx_n_s_AnonymousDictFactory);
  Py_VISIT(traverse_module_state->__pyx_n_s_AnonymousDictFactory_default_fa);
  Py_VISIT(traverse_module_state->__pyx_n_s_AnonymousObjectFactory);
  Py_VISIT(traverse_module_state->__pyx_n_s_AttributeError);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Class_r_should_have_a_frozenset);
  Py_VISIT(traverse_module_state->__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableDictionaryMixin);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableDictionaryMixin__e);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableDictionaryMixin__e_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableDictionaryMixin_to);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict___get);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict___mak);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_3);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_4);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_5);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__ext_6);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict__mak);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict_toExt);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict_toExt_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_ExternalizableInstanceDict_updat);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Externalizes_to_a_dictionary_co);
  Py_VISIT(traverse_module_state->__pyx_n_s_FutureWarning);
  Py_VISIT(traverse_module_state->__pyx_n_s_IAnonymousObjectFactory);
  Py_VISIT(traverse_module_state->__pyx_n_s_IDict);
  Py_VISIT(traverse_module_state->__pyx_n_s_IDict_providedBy);
  Py_VISIT(traverse_module_state->__pyx_n_s_IInternalObjectIO);
  Py_VISIT(traverse_module_state->__pyx_n_s_IInternalObjectIOFinder);
  Py_VISIT(traverse_module_state->__pyx_n_s_IMethod);
  Py_VISIT(traverse_module_state->__pyx_n_s_IObject);
  Py_VISIT(traverse_module_state->__pyx_n_s_IObject_providedBy);
  Py_VISIT(traverse_module_state->__pyx_n_s_Interface);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_accept_ex);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_all_possi);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_find_prim);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_find_sche);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_getattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_replaceme);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_schemas_t);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__ext_setattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO__validate_afte);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO_find_factory_f);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO_toExternalObje);
  Py_VISIT(traverse_module_state->__pyx_n_s_InterfaceObjectIO_updateFromExte);
  Py_VISIT(traverse_module_state->__pyx_n_s_KeyError);
  Py_VISIT(traverse_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO);
  Py_VISIT(traverse_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO__e);
  Py_VISIT(traverse_module_state->__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2);
  Py_VISIT(traverse_module_state->__pyx_kp_s_Most_derived_interface_s_does_no);
  Py_VISIT(traverse_module_state->__pyx_n_s_NotGiven);
  Py_VISIT(traverse_module_state->__pyx_n_s_NotImplementedError);
  Py_VISIT(traverse_module_state->__pyx_n_s_Number);
  Py_VISIT(traverse_module_state->__pyx_n_s_SchemaNotProvided);
  Py_VISIT(traverse_module_state->__pyx_n_s_StandardExternalFields);
  Py_VISIT(traverse_module_state->__pyx_n_s_StandardInternalFields);
  Py_VISIT(traverse_module_state->__pyx_n_s_TypeError);
  Py_VISIT(traverse_module_state->__pyx_n_s__3);
  Py_VISIT(traverse_module_state->__pyx_n_s__8);
  Py_VISIT(traverse_module_state->__pyx_n_s__96);
  Py_VISIT(traverse_module_state->__pyx_n_s_all);
  Py_VISIT(traverse_module_state->__pyx_n_s_all_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_anonymous_dict_factory);
  Py_VISIT(traverse_module_state->__pyx_n_s_args);
  Py_VISIT(traverse_module_state->__pyx_n_s_ascii);
  Py_VISIT(traverse_module_state->__pyx_n_s_attr_val);
  Py_VISIT(traverse_module_state->__pyx_n_s_base_interfaces);
  Py_VISIT(traverse_module_state->__pyx_n_s_cache_for);
  Py_VISIT(traverse_module_state->__pyx_n_s_class);
  Py_VISIT(traverse_module_state->__pyx_n_s_classImplements);
  Py_VISIT(traverse_module_state->__pyx_n_s_class_getitem);
  Py_VISIT(traverse_module_state->__pyx_n_s_cline_in_traceback);
  Py_VISIT(traverse_module_state->__pyx_n_s_context);
  Py_VISIT(traverse_module_state->__pyx_n_s_created);
  Py_VISIT(traverse_module_state->__pyx_n_s_decode);
  Py_VISIT(traverse_module_state->__pyx_n_s_decorate);
  Py_VISIT(traverse_module_state->__pyx_n_s_decorate_callback);
  Py_VISIT(traverse_module_state->__pyx_n_s_default);
  Py_VISIT(traverse_module_state->__pyx_n_s_default_factory);
  Py_VISIT(traverse_module_state->__pyx_n_s_dict);
  Py_VISIT(traverse_module_state->__pyx_n_s_doc);
  Py_VISIT(traverse_module_state->__pyx_n_s_encode);
  Py_VISIT(traverse_module_state->__pyx_n_s_excluded_in_ivars);
  Py_VISIT(traverse_module_state->__pyx_n_s_excluded_out_ivars);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_accept_external_id);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_accept_update_key);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_all_possible_keys);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_class_name);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_excluded_out);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_find_primitive_keys);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_find_schema);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_getattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_iface_upper_bound);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_is_marker_interface);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_keys);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_keys_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_primitive_keys);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_primitive_out_ivars);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_replacement);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_replacement_getattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_schemas_to_consider);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_search_module);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_self);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_setattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_standard_external_dictionar);
  Py_VISIT(traverse_module_state->__pyx_n_s_ext_val);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_accept_id);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_class_name);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_default_implementatio);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_factory);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_factory_wants_arg);
  Py_VISIT(traverse_module_state->__pyx_n_s_external_use_minimal_base);
  Py_VISIT(traverse_module_state->__pyx_n_s_externalization_dictionary);
  Py_VISIT(traverse_module_state->__pyx_n_s_externalization_externalizer);
  Py_VISIT(traverse_module_state->__pyx_n_s_factory);
  Py_VISIT(traverse_module_state->__pyx_n_s_find_factory_for);
  Py_VISIT(traverse_module_state->__pyx_n_s_find_factory_for_named_value);
  Py_VISIT(traverse_module_state->__pyx_n_s_find_most_derived_interface);
  Py_VISIT(traverse_module_state->__pyx_n_s_get);
  Py_VISIT(traverse_module_state->__pyx_n_s_getTaggedValue);
  Py_VISIT(traverse_module_state->__pyx_n_s_getUtility);
  Py_VISIT(traverse_module_state->__pyx_n_s_getValidationErrors);
  Py_VISIT(traverse_module_state->__pyx_n_s_get_default_externalization_poli);
  Py_VISIT(traverse_module_state->__pyx_n_s_get_standard_external_fields);
  Py_VISIT(traverse_module_state->__pyx_n_s_get_standard_internal_fields);
  Py_VISIT(traverse_module_state->__pyx_n_s_getattr);
  Py_VISIT(traverse_module_state->__pyx_n_s_id);
  Py_VISIT(traverse_module_state->__pyx_n_s_iface);
  Py_VISIT(traverse_module_state->__pyx_n_s_iface_upper_bound);
  Py_VISIT(traverse_module_state->__pyx_n_s_import);
  Py_VISIT(traverse_module_state->__pyx_n_s_import_c_accel);
  Py_VISIT(traverse_module_state->__pyx_n_s_init);
  Py_VISIT(traverse_module_state->__pyx_n_s_init_subclass);
  Py_VISIT(traverse_module_state->__pyx_n_s_initializing);
  Py_VISIT(traverse_module_state->__pyx_n_s_interface);
  Py_VISIT(traverse_module_state->__pyx_n_s_interface_cache);
  Py_VISIT(traverse_module_state->__pyx_n_s_interfaces);
  Py_VISIT(traverse_module_state->__pyx_n_s_internal_to_standard_external_di);
  Py_VISIT(traverse_module_state->__pyx_n_s_internalization);
  Py_VISIT(traverse_module_state->__pyx_n_s_internalization_factories);
  Py_VISIT(traverse_module_state->__pyx_n_s_iro);
  Py_VISIT(traverse_module_state->__pyx_n_s_isOrExtends);
  Py_VISIT(traverse_module_state->__pyx_n_s_isSyntheticKey);
  Py_VISIT(traverse_module_state->__pyx_n_s_items);
  Py_VISIT(traverse_module_state->__pyx_n_s_iteritems);
  Py_VISIT(traverse_module_state->__pyx_n_s_k);
  Py_VISIT(traverse_module_state->__pyx_n_s_key);
  Py_VISIT(traverse_module_state->__pyx_n_s_kwargs);
  Py_VISIT(traverse_module_state->__pyx_n_s_lastModified);
  Py_VISIT(traverse_module_state->__pyx_n_s_links);
  Py_VISIT(traverse_module_state->__pyx_n_s_main);
  Py_VISIT(traverse_module_state->__pyx_n_s_make_io);
  Py_VISIT(traverse_module_state->__pyx_n_s_make_repr);
  Py_VISIT(traverse_module_state->__pyx_n_s_mergeFrom);
  Py_VISIT(traverse_module_state->__pyx_n_s_metaclass);
  Py_VISIT(traverse_module_state->__pyx_n_s_mimeType);
  Py_VISIT(traverse_module_state->__pyx_n_s_modified);
  Py_VISIT(traverse_module_state->__pyx_n_s_module);
  Py_VISIT(traverse_module_state->__pyx_n_s_name);
  Py_VISIT(traverse_module_state->__pyx_n_s_name_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_names);
  Py_VISIT(traverse_module_state->__pyx_n_s_nti_externalization__compat);
  Py_VISIT(traverse_module_state->__pyx_n_s_nti_externalization__datastructu);
  Py_VISIT(traverse_module_state->__pyx_n_s_nti_schema_interfaces);
  Py_VISIT(traverse_module_state->__pyx_n_s_numbers);
  Py_VISIT(traverse_module_state->__pyx_n_s_object);
  Py_VISIT(traverse_module_state->__pyx_n_s_p_changed);
  Py_VISIT(traverse_module_state->__pyx_n_s_parent);
  Py_VISIT(traverse_module_state->__pyx_n_s_parsed);
  Py_VISIT(traverse_module_state->__pyx_n_s_policy);
  Py_VISIT(traverse_module_state->__pyx_n_s_pop);
  Py_VISIT(traverse_module_state->__pyx_n_s_possibilities);
  Py_VISIT(traverse_module_state->__pyx_n_s_prefer_oid);
  Py_VISIT(traverse_module_state->__pyx_n_s_prepare);
  Py_VISIT(traverse_module_state->__pyx_n_s_primitive_ext_keys);
  Py_VISIT(traverse_module_state->__pyx_n_s_primitives);
  Py_VISIT(traverse_module_state->__pyx_n_s_providedBy);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_capi);
  Py_VISIT(traverse_module_state->__pyx_n_s_pyx_vtable);
  Py_VISIT(traverse_module_state->__pyx_n_s_qualname);
  Py_VISIT(traverse_module_state->__pyx_n_s_queryDirectTaggedValue);
  Py_VISIT(traverse_module_state->__pyx_n_s_queryTaggedValue);
  Py_VISIT(traverse_module_state->__pyx_n_s_replacement);
  Py_VISIT(traverse_module_state->__pyx_n_s_repr);
  Py_VISIT(traverse_module_state->__pyx_n_s_representation);
  Py_VISIT(traverse_module_state->__pyx_n_s_request);
  Py_VISIT(traverse_module_state->__pyx_n_s_result);
  Py_VISIT(traverse_module_state->__pyx_kp_s_s_s_for_r_at_0x_x);
  Py_VISIT(traverse_module_state->__pyx_n_s_schema);
  Py_VISIT(traverse_module_state->__pyx_n_s_self);
  Py_VISIT(traverse_module_state->__pyx_n_s_setTaggedValue);
  Py_VISIT(traverse_module_state->__pyx_n_s_set_name);
  Py_VISIT(traverse_module_state->__pyx_n_s_six);
  Py_VISIT(traverse_module_state->__pyx_n_s_spec);
  Py_VISIT(traverse_module_state->__pyx_kp_s_src_nti_externalization_datastru);
  Py_VISIT(traverse_module_state->__pyx_n_s_staticmethod);
  Py_VISIT(traverse_module_state->__pyx_n_s_string_types);
  Py_VISIT(traverse_module_state->__pyx_n_s_super);
  Py_VISIT(traverse_module_state->__pyx_n_s_test);
  Py_VISIT(traverse_module_state->__pyx_n_s_title);
  Py_VISIT(traverse_module_state->__pyx_n_s_toExternalDictionary);
  Py_VISIT(traverse_module_state->__pyx_n_s_toExternalObject);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_external_object);
  Py_VISIT(traverse_module_state->__pyx_n_s_to_minimal_standard_external_dic);
  Py_VISIT(traverse_module_state->__pyx_n_s_traceback_info);
  Py_VISIT(traverse_module_state->__pyx_n_s_type);
  Py_VISIT(traverse_module_state->__pyx_n_s_unused_args);
  Py_VISIT(traverse_module_state->__pyx_n_s_unused_kwargs);
  Py_VISIT(traverse_module_state->__pyx_n_s_updateFromExternalObject);
  Py_VISIT(traverse_module_state->__pyx_n_s_update_accepts_type_attrs);
  Py_VISIT(traverse_module_state->__pyx_n_s_validate_after_update);
  Py_VISIT(traverse_module_state->__pyx_n_s_validate_after_update_2);
  Py_VISIT(traverse_module_state->__pyx_n_s_validate_named_field_value);
  Py_VISIT(traverse_module_state->__pyx_n_s_value);
  Py_VISIT(traverse_module_state->__pyx_n_s_value_type);
  Py_VISIT(traverse_module_state->__pyx_n_s_values);
  Py_VISIT(traverse_module_state->__pyx_n_s_warn);
  Py_VISIT(traverse_module_state->__pyx_n_s_warnings);
  Py_VISIT(traverse_module_state->__pyx_n_s_zope);
  Py_VISIT(traverse_module_state->__pyx_n_s_zope_component);
  Py_VISIT(traverse_module_state->__pyx_n_s_zope_schema_interfaces);
  Py_VISIT(traverse_module_state->__pyx_int_1);
  Py_VISIT(traverse_module_state->__pyx_k_);
  Py_VISIT(traverse_module_state->__pyx_k__2);
  Py_VISIT(traverse_module_state->__pyx_k__5);
  Py_VISIT(traverse_module_state->__pyx_k__7);
  Py_VISIT(traverse_module_state->__pyx_tuple__4);
  Py_VISIT(traverse_module_state->__pyx_tuple__6);
  Py_VISIT(traverse_module_state->__pyx_tuple__9);
  Py_VISIT(traverse_module_state->__pyx_tuple__11);
  Py_VISIT(traverse_module_state->__pyx_tuple__13);
  Py_VISIT(traverse_module_state->__pyx_tuple__15);
  Py_VISIT(traverse_module_state->__pyx_tuple__17);
  Py_VISIT(traverse_module_state->__pyx_tuple__19);
  Py_VISIT(traverse_module_state->__pyx_tuple__21);
  Py_VISIT(traverse_module_state->__pyx_tuple__23);
  Py_VISIT(traverse_module_state->__pyx_tuple__25);
  Py_VISIT(traverse_module_state->__pyx_tuple__27);
  Py_VISIT(traverse_module_state->__pyx_tuple__29);
  Py_VISIT(traverse_module_state->__pyx_tuple__31);
  Py_VISIT(traverse_module_state->__pyx_tuple__33);
  Py_VISIT(traverse_module_state->__pyx_tuple__35);
  Py_VISIT(traverse_module_state->__pyx_tuple__37);
  Py_VISIT(traverse_module_state->__pyx_tuple__39);
  Py_VISIT(traverse_module_state->__pyx_tuple__41);
  Py_VISIT(traverse_module_state->__pyx_tuple__43);
  Py_VISIT(traverse_module_state->__pyx_tuple__45);
  Py_VISIT(traverse_module_state->__pyx_tuple__47);
  Py_VISIT(traverse_module_state->__pyx_tuple__49);
  Py_VISIT(traverse_module_state->__pyx_tuple__51);
  Py_VISIT(traverse_module_state->__pyx_tuple__52);
  Py_VISIT(traverse_module_state->__pyx_tuple__54);
  Py_VISIT(traverse_module_state->__pyx_tuple__56);
  Py_VISIT(traverse_module_state->__pyx_tuple__58);
  Py_VISIT(traverse_module_state->__pyx_tuple__60);
  Py_VISIT(traverse_module_state->__pyx_tuple__62);
  Py_VISIT(traverse_module_state->__pyx_tuple__63);
  Py_VISIT(traverse_module_state->__pyx_tuple__65);
  Py_VISIT(traverse_module_state->__pyx_tuple__66);
  Py_VISIT(traverse_module_state->__pyx_tuple__68);
  Py_VISIT(traverse_module_state->__pyx_tuple__70);
  Py_VISIT(traverse_module_state->__pyx_tuple__72);
  Py_VISIT(traverse_module_state->__pyx_tuple__74);
  Py_VISIT(traverse_module_state->__pyx_tuple__76);
  Py_VISIT(traverse_module_state->__pyx_tuple__78);
  Py_VISIT(traverse_module_state->__pyx_tuple__80);
  Py_VISIT(traverse_module_state->__pyx_tuple__82);
  Py_VISIT(traverse_module_state->__pyx_tuple__84);
  Py_VISIT(traverse_module_state->__pyx_tuple__86);
  Py_VISIT(traverse_module_state->__pyx_tuple__88);
  Py_VISIT(traverse_module_state->__pyx_tuple__90);
  Py_VISIT(traverse_module_state->__pyx_tuple__92);
  Py_VISIT(traverse_module_state->__pyx_tuple__94);
  Py_VISIT(traverse_module_state->__pyx_codeobj__10);
  Py_VISIT(traverse_module_state->__pyx_codeobj__12);
  Py_VISIT(traverse_module_state->__pyx_codeobj__14);
  Py_VISIT(traverse_module_state->__pyx_codeobj__16);
  Py_VISIT(traverse_module_state->__pyx_codeobj__18);
  Py_VISIT(traverse_module_state->__pyx_codeobj__20);
  Py_VISIT(traverse_module_state->__pyx_codeobj__22);
  Py_VISIT(traverse_module_state->__pyx_codeobj__24);
  Py_VISIT(traverse_module_state->__pyx_codeobj__26);
  Py_VISIT(traverse_module_state->__pyx_codeobj__28);
  Py_VISIT(traverse_module_state->__pyx_codeobj__30);
  Py_VISIT(traverse_module_state->__pyx_codeobj__32);
  Py_VISIT(traverse_module_state->__pyx_codeobj__34);
  Py_VISIT(traverse_module_state->__pyx_codeobj__36);
  Py_VISIT(traverse_module_state->__pyx_codeobj__38);
  Py_VISIT(traverse_module_state->__pyx_codeobj__40);
  Py_VISIT(traverse_module_state->__pyx_codeobj__42);
  Py_VISIT(traverse_module_state->__pyx_codeobj__44);
  Py_VISIT(traverse_module_state->__pyx_codeobj__46);
  Py_VISIT(traverse_module_state->__pyx_codeobj__48);
  Py_VISIT(traverse_module_state->__pyx_codeobj__50);
  Py_VISIT(traverse_module_state->__pyx_codeobj__53);
  Py_VISIT(traverse_module_state->__pyx_codeobj__55);
  Py_VISIT(traverse_module_state->__pyx_codeobj__57);
  Py_VISIT(traverse_module_state->__pyx_codeobj__59);
  Py_VISIT(traverse_module_state->__pyx_codeobj__61);
  Py_VISIT(traverse_module_state->__pyx_codeobj__64);
  Py_VISIT(traverse_module_state->__pyx_codeobj__67);
  Py_VISIT(traverse_module_state->__pyx_codeobj__69);
  Py_VISIT(traverse_module_state->__pyx_codeobj__71);
  Py_VISIT(traverse_module_state->__pyx_codeobj__73);
  Py_VISIT(traverse_module_state->__pyx_codeobj__75);
  Py_VISIT(traverse_module_state->__pyx_codeobj__77);
  Py_VISIT(traverse_module_state->__pyx_codeobj__79);
  Py_VISIT(traverse_module_state->__pyx_codeobj__81);
  Py_VISIT(traverse_module_state->__pyx_codeobj__83);
  Py_VISIT(traverse_module_state->__pyx_codeobj__85);
  Py_VISIT(traverse_module_state->__pyx_codeobj__87);
  Py_VISIT(traverse_module_state->__pyx_codeobj__89);
  Py_VISIT(traverse_module_state->__pyx_codeobj__91);
  Py_VISIT(traverse_module_state->__pyx_codeobj__93);
  Py_VISIT(traverse_module_state->__pyx_codeobj__95);
  return 0;
}
#endif
/* #### Code section: module_state_defines ### */
#if CYTHON_COMPILING_IN_LIMITED_API
#define __pyx_d __pyx_mstate_global->__pyx_d
#define __pyx_b __pyx_mstate_global->__pyx_b
#define __pyx_cython_runtime __pyx_mstate_global->__pyx_cython_runtime
#define __pyx_empty_tuple __pyx_mstate_global->__pyx_empty_tuple
#define __pyx_empty_bytes __pyx_mstate_global->__pyx_empty_bytes
#define __pyx_empty_unicode __pyx_mstate_global->__pyx_empty_unicode
#ifdef __Pyx_CyFunction_USED
#define __pyx_CyFunctionType __pyx_mstate_global->__pyx_CyFunctionType
#endif
#ifdef __Pyx_FusedFunction_USED
#define __pyx_FusedFunctionType __pyx_mstate_global->__pyx_FusedFunctionType
#endif
#define __pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven
#define __pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict
#define __pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields
#define __pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields
#define __pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy
#define __pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState
#define __pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState
#define __pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet
#define __pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet
#define __pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder
#define __pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache __pyx_mstate_global->__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache
#define __pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin
#define __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin __pyx_mstate_global->__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin
#define __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO
#define __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_mstate_global->__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO
#define __pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict
#define __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict __pyx_mstate_global->__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict
#define __pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO
#define __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO __pyx_mstate_global->__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO
#define __pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO __pyx_mstate_global->__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO
#define __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO __pyx_mstate_global->__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO
#define __pyx_n_s_AbstractDynamicObjectIO __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO
#define __pyx_n_s_AbstractDynamicObjectIO__ext_acc __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_acc
#define __pyx_n_s_AbstractDynamicObjectIO__ext_acc_2 __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2
#define __pyx_n_s_AbstractDynamicObjectIO__ext_all __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_all
#define __pyx_n_s_AbstractDynamicObjectIO__ext_get __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_get
#define __pyx_n_s_AbstractDynamicObjectIO__ext_key __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_key
#define __pyx_n_s_AbstractDynamicObjectIO__ext_pri __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_pri
#define __pyx_n_s_AbstractDynamicObjectIO__ext_rep __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_rep
#define __pyx_n_s_AbstractDynamicObjectIO__ext_rep_2 __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2
#define __pyx_n_s_AbstractDynamicObjectIO__ext_set __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO__ext_set
#define __pyx_n_s_AbstractDynamicObjectIO_find_fac __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO_find_fac
#define __pyx_n_s_AbstractDynamicObjectIO_toExtern __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO_toExtern
#define __pyx_n_s_AbstractDynamicObjectIO_toExtern_2 __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO_toExtern_2
#define __pyx_n_s_AbstractDynamicObjectIO_updateFr __pyx_mstate_global->__pyx_n_s_AbstractDynamicObjectIO_updateFr
#define __pyx_n_s_AnonymousDictFactory __pyx_mstate_global->__pyx_n_s_AnonymousDictFactory
#define __pyx_n_s_AnonymousDictFactory_default_fa __pyx_mstate_global->__pyx_n_s_AnonymousDictFactory_default_fa
#define __pyx_n_s_AnonymousObjectFactory __pyx_mstate_global->__pyx_n_s_AnonymousObjectFactory
#define __pyx_n_s_AttributeError __pyx_mstate_global->__pyx_n_s_AttributeError
#define __pyx_kp_s_Class_r_should_have_a_frozenset __pyx_mstate_global->__pyx_kp_s_Class_r_should_have_a_frozenset
#define __pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY __pyx_mstate_global->__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY
#define __pyx_n_s_ExternalizableDictionaryMixin __pyx_mstate_global->__pyx_n_s_ExternalizableDictionaryMixin
#define __pyx_n_s_ExternalizableDictionaryMixin__e __pyx_mstate_global->__pyx_n_s_ExternalizableDictionaryMixin__e
#define __pyx_n_s_ExternalizableDictionaryMixin__e_2 __pyx_mstate_global->__pyx_n_s_ExternalizableDictionaryMixin__e_2
#define __pyx_n_s_ExternalizableDictionaryMixin_to __pyx_mstate_global->__pyx_n_s_ExternalizableDictionaryMixin_to
#define __pyx_n_s_ExternalizableInstanceDict __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict
#define __pyx_n_s_ExternalizableInstanceDict_2 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict_2
#define __pyx_n_s_ExternalizableInstanceDict___get __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict___get
#define __pyx_n_s_ExternalizableInstanceDict___mak __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict___mak
#define __pyx_n_s_ExternalizableInstanceDict__ext __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext
#define __pyx_n_s_ExternalizableInstanceDict__ext_2 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext_2
#define __pyx_n_s_ExternalizableInstanceDict__ext_3 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext_3
#define __pyx_n_s_ExternalizableInstanceDict__ext_4 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext_4
#define __pyx_n_s_ExternalizableInstanceDict__ext_5 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext_5
#define __pyx_n_s_ExternalizableInstanceDict__ext_6 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__ext_6
#define __pyx_n_s_ExternalizableInstanceDict__mak __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict__mak
#define __pyx_n_s_ExternalizableInstanceDict_toExt __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict_toExt
#define __pyx_n_s_ExternalizableInstanceDict_toExt_2 __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict_toExt_2
#define __pyx_n_s_ExternalizableInstanceDict_updat __pyx_mstate_global->__pyx_n_s_ExternalizableInstanceDict_updat
#define __pyx_kp_s_Externalizes_to_a_dictionary_co __pyx_mstate_global->__pyx_kp_s_Externalizes_to_a_dictionary_co
#define __pyx_n_s_FutureWarning __pyx_mstate_global->__pyx_n_s_FutureWarning
#define __pyx_n_s_IAnonymousObjectFactory __pyx_mstate_global->__pyx_n_s_IAnonymousObjectFactory
#define __pyx_n_s_IDict __pyx_mstate_global->__pyx_n_s_IDict
#define __pyx_n_s_IDict_providedBy __pyx_mstate_global->__pyx_n_s_IDict_providedBy
#define __pyx_n_s_IInternalObjectIO __pyx_mstate_global->__pyx_n_s_IInternalObjectIO
#define __pyx_n_s_IInternalObjectIOFinder __pyx_mstate_global->__pyx_n_s_IInternalObjectIOFinder
#define __pyx_n_s_IMethod __pyx_mstate_global->__pyx_n_s_IMethod
#define __pyx_n_s_IObject __pyx_mstate_global->__pyx_n_s_IObject
#define __pyx_n_s_IObject_providedBy __pyx_mstate_global->__pyx_n_s_IObject_providedBy
#define __pyx_n_s_Interface __pyx_mstate_global->__pyx_n_s_Interface
#define __pyx_n_s_InterfaceObjectIO __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO
#define __pyx_n_s_InterfaceObjectIO__ext_accept_ex __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_accept_ex
#define __pyx_n_s_InterfaceObjectIO__ext_all_possi __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_all_possi
#define __pyx_n_s_InterfaceObjectIO__ext_find_prim __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_find_prim
#define __pyx_n_s_InterfaceObjectIO__ext_find_sche __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_find_sche
#define __pyx_n_s_InterfaceObjectIO__ext_getattr __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_getattr
#define __pyx_n_s_InterfaceObjectIO__ext_replaceme __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_replaceme
#define __pyx_n_s_InterfaceObjectIO__ext_schemas_t __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_schemas_t
#define __pyx_n_s_InterfaceObjectIO__ext_setattr __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__ext_setattr
#define __pyx_n_s_InterfaceObjectIO__validate_afte __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO__validate_afte
#define __pyx_n_s_InterfaceObjectIO_find_factory_f __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO_find_factory_f
#define __pyx_n_s_InterfaceObjectIO_toExternalObje __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO_toExternalObje
#define __pyx_n_s_InterfaceObjectIO_updateFromExte __pyx_mstate_global->__pyx_n_s_InterfaceObjectIO_updateFromExte
#define __pyx_n_s_KeyError __pyx_mstate_global->__pyx_n_s_KeyError
#define __pyx_n_s_ModuleScopedInterfaceObjectIO __pyx_mstate_global->__pyx_n_s_ModuleScopedInterfaceObjectIO
#define __pyx_n_s_ModuleScopedInterfaceObjectIO__e __pyx_mstate_global->__pyx_n_s_ModuleScopedInterfaceObjectIO__e
#define __pyx_n_s_ModuleScopedInterfaceObjectIO__e_2 __pyx_mstate_global->__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2
#define __pyx_kp_s_Most_derived_interface_s_does_no __pyx_mstate_global->__pyx_kp_s_Most_derived_interface_s_does_no
#define __pyx_n_s_NotGiven __pyx_mstate_global->__pyx_n_s_NotGiven
#define __pyx_n_s_NotImplementedError __pyx_mstate_global->__pyx_n_s_NotImplementedError
#define __pyx_n_s_Number __pyx_mstate_global->__pyx_n_s_Number
#define __pyx_n_s_SchemaNotProvided __pyx_mstate_global->__pyx_n_s_SchemaNotProvided
#define __pyx_n_s_StandardExternalFields __pyx_mstate_global->__pyx_n_s_StandardExternalFields
#define __pyx_n_s_StandardInternalFields __pyx_mstate_global->__pyx_n_s_StandardInternalFields
#define __pyx_n_s_TypeError __pyx_mstate_global->__pyx_n_s_TypeError
#define __pyx_n_s__3 __pyx_mstate_global->__pyx_n_s__3
#define __pyx_n_s__8 __pyx_mstate_global->__pyx_n_s__8
#define __pyx_n_s__96 __pyx_mstate_global->__pyx_n_s__96
#define __pyx_n_s_all __pyx_mstate_global->__pyx_n_s_all
#define __pyx_n_s_all_2 __pyx_mstate_global->__pyx_n_s_all_2
#define __pyx_n_s_anonymous_dict_factory __pyx_mstate_global->__pyx_n_s_anonymous_dict_factory
#define __pyx_n_s_args __pyx_mstate_global->__pyx_n_s_args
#define __pyx_n_s_ascii __pyx_mstate_global->__pyx_n_s_ascii
#define __pyx_n_s_attr_val __pyx_mstate_global->__pyx_n_s_attr_val
#define __pyx_n_s_base_interfaces __pyx_mstate_global->__pyx_n_s_base_interfaces
#define __pyx_n_s_cache_for __pyx_mstate_global->__pyx_n_s_cache_for
#define __pyx_n_s_class __pyx_mstate_global->__pyx_n_s_class
#define __pyx_n_s_classImplements __pyx_mstate_global->__pyx_n_s_classImplements
#define __pyx_n_s_class_getitem __pyx_mstate_global->__pyx_n_s_class_getitem
#define __pyx_n_s_cline_in_traceback __pyx_mstate_global->__pyx_n_s_cline_in_traceback
#define __pyx_n_s_context __pyx_mstate_global->__pyx_n_s_context
#define __pyx_n_s_created __pyx_mstate_global->__pyx_n_s_created
#define __pyx_n_s_decode __pyx_mstate_global->__pyx_n_s_decode
#define __pyx_n_s_decorate __pyx_mstate_global->__pyx_n_s_decorate
#define __pyx_n_s_decorate_callback __pyx_mstate_global->__pyx_n_s_decorate_callback
#define __pyx_n_s_default __pyx_mstate_global->__pyx_n_s_default
#define __pyx_n_s_default_factory __pyx_mstate_global->__pyx_n_s_default_factory
#define __pyx_n_s_dict __pyx_mstate_global->__pyx_n_s_dict
#define __pyx_n_s_doc __pyx_mstate_global->__pyx_n_s_doc
#define __pyx_n_s_encode __pyx_mstate_global->__pyx_n_s_encode
#define __pyx_n_s_excluded_in_ivars __pyx_mstate_global->__pyx_n_s_excluded_in_ivars
#define __pyx_n_s_excluded_out_ivars __pyx_mstate_global->__pyx_n_s_excluded_out_ivars
#define __pyx_n_s_ext_accept_external_id __pyx_mstate_global->__pyx_n_s_ext_accept_external_id
#define __pyx_n_s_ext_accept_update_key __pyx_mstate_global->__pyx_n_s_ext_accept_update_key
#define __pyx_n_s_ext_all_possible_keys __pyx_mstate_global->__pyx_n_s_ext_all_possible_keys
#define __pyx_n_s_ext_class_name __pyx_mstate_global->__pyx_n_s_ext_class_name
#define __pyx_n_s_ext_excluded_out __pyx_mstate_global->__pyx_n_s_ext_excluded_out
#define __pyx_n_s_ext_find_primitive_keys __pyx_mstate_global->__pyx_n_s_ext_find_primitive_keys
#define __pyx_n_s_ext_find_schema __pyx_mstate_global->__pyx_n_s_ext_find_schema
#define __pyx_n_s_ext_getattr __pyx_mstate_global->__pyx_n_s_ext_getattr
#define __pyx_n_s_ext_iface_upper_bound __pyx_mstate_global->__pyx_n_s_ext_iface_upper_bound
#define __pyx_n_s_ext_is_marker_interface __pyx_mstate_global->__pyx_n_s_ext_is_marker_interface
#define __pyx_n_s_ext_keys __pyx_mstate_global->__pyx_n_s_ext_keys
#define __pyx_n_s_ext_keys_2 __pyx_mstate_global->__pyx_n_s_ext_keys_2
#define __pyx_n_s_ext_primitive_keys __pyx_mstate_global->__pyx_n_s_ext_primitive_keys
#define __pyx_n_s_ext_primitive_out_ivars __pyx_mstate_global->__pyx_n_s_ext_primitive_out_ivars
#define __pyx_n_s_ext_replacement __pyx_mstate_global->__pyx_n_s_ext_replacement
#define __pyx_n_s_ext_replacement_getattr __pyx_mstate_global->__pyx_n_s_ext_replacement_getattr
#define __pyx_n_s_ext_schemas_to_consider __pyx_mstate_global->__pyx_n_s_ext_schemas_to_consider
#define __pyx_n_s_ext_search_module __pyx_mstate_global->__pyx_n_s_ext_search_module
#define __pyx_n_s_ext_self __pyx_mstate_global->__pyx_n_s_ext_self
#define __pyx_n_s_ext_setattr __pyx_mstate_global->__pyx_n_s_ext_setattr
#define __pyx_n_s_ext_standard_external_dictionar __pyx_mstate_global->__pyx_n_s_ext_standard_external_dictionar
#define __pyx_n_s_ext_val __pyx_mstate_global->__pyx_n_s_ext_val
#define __pyx_n_s_external_accept_id __pyx_mstate_global->__pyx_n_s_external_accept_id
#define __pyx_n_s_external_class_name __pyx_mstate_global->__pyx_n_s_external_class_name
#define __pyx_n_s_external_default_implementatio __pyx_mstate_global->__pyx_n_s_external_default_implementatio
#define __pyx_n_s_external_factory __pyx_mstate_global->__pyx_n_s_external_factory
#define __pyx_n_s_external_factory_wants_arg __pyx_mstate_global->__pyx_n_s_external_factory_wants_arg
#define __pyx_n_s_external_use_minimal_base __pyx_mstate_global->__pyx_n_s_external_use_minimal_base
#define __pyx_n_s_externalization_dictionary __pyx_mstate_global->__pyx_n_s_externalization_dictionary
#define __pyx_n_s_externalization_externalizer __pyx_mstate_global->__pyx_n_s_externalization_externalizer
#define __pyx_n_s_factory __pyx_mstate_global->__pyx_n_s_factory
#define __pyx_n_s_find_factory_for __pyx_mstate_global->__pyx_n_s_find_factory_for
#define __pyx_n_s_find_factory_for_named_value __pyx_mstate_global->__pyx_n_s_find_factory_for_named_value
#define __pyx_n_s_find_most_derived_interface __pyx_mstate_global->__pyx_n_s_find_most_derived_interface
#define __pyx_n_s_get __pyx_mstate_global->__pyx_n_s_get
#define __pyx_n_s_getTaggedValue __pyx_mstate_global->__pyx_n_s_getTaggedValue
#define __pyx_n_s_getUtility __pyx_mstate_global->__pyx_n_s_getUtility
#define __pyx_n_s_getValidationErrors __pyx_mstate_global->__pyx_n_s_getValidationErrors
#define __pyx_n_s_get_default_externalization_poli __pyx_mstate_global->__pyx_n_s_get_default_externalization_poli
#define __pyx_n_s_get_standard_external_fields __pyx_mstate_global->__pyx_n_s_get_standard_external_fields
#define __pyx_n_s_get_standard_internal_fields __pyx_mstate_global->__pyx_n_s_get_standard_internal_fields
#define __pyx_n_s_getattr __pyx_mstate_global->__pyx_n_s_getattr
#define __pyx_n_s_id __pyx_mstate_global->__pyx_n_s_id
#define __pyx_n_s_iface __pyx_mstate_global->__pyx_n_s_iface
#define __pyx_n_s_iface_upper_bound __pyx_mstate_global->__pyx_n_s_iface_upper_bound
#define __pyx_n_s_import __pyx_mstate_global->__pyx_n_s_import
#define __pyx_n_s_import_c_accel __pyx_mstate_global->__pyx_n_s_import_c_accel
#define __pyx_n_s_init __pyx_mstate_global->__pyx_n_s_init
#define __pyx_n_s_init_subclass __pyx_mstate_global->__pyx_n_s_init_subclass
#define __pyx_n_s_initializing __pyx_mstate_global->__pyx_n_s_initializing
#define __pyx_n_s_interface __pyx_mstate_global->__pyx_n_s_interface
#define __pyx_n_s_interface_cache __pyx_mstate_global->__pyx_n_s_interface_cache
#define __pyx_n_s_interfaces __pyx_mstate_global->__pyx_n_s_interfaces
#define __pyx_n_s_internal_to_standard_external_di __pyx_mstate_global->__pyx_n_s_internal_to_standard_external_di
#define __pyx_n_s_internalization __pyx_mstate_global->__pyx_n_s_internalization
#define __pyx_n_s_internalization_factories __pyx_mstate_global->__pyx_n_s_internalization_factories
#define __pyx_n_s_iro __pyx_mstate_global->__pyx_n_s_iro
#define __pyx_n_s_isOrExtends __pyx_mstate_global->__pyx_n_s_isOrExtends
#define __pyx_n_s_isSyntheticKey __pyx_mstate_global->__pyx_n_s_isSyntheticKey
#define __pyx_n_s_items __pyx_mstate_global->__pyx_n_s_items
#define __pyx_n_s_iteritems __pyx_mstate_global->__pyx_n_s_iteritems
#define __pyx_n_s_k __pyx_mstate_global->__pyx_n_s_k
#define __pyx_n_s_key __pyx_mstate_global->__pyx_n_s_key
#define __pyx_n_s_kwargs __pyx_mstate_global->__pyx_n_s_kwargs
#define __pyx_n_s_lastModified __pyx_mstate_global->__pyx_n_s_lastModified
#define __pyx_n_s_links __pyx_mstate_global->__pyx_n_s_links
#define __pyx_n_s_main __pyx_mstate_global->__pyx_n_s_main
#define __pyx_n_s_make_io __pyx_mstate_global->__pyx_n_s_make_io
#define __pyx_n_s_make_repr __pyx_mstate_global->__pyx_n_s_make_repr
#define __pyx_n_s_mergeFrom __pyx_mstate_global->__pyx_n_s_mergeFrom
#define __pyx_n_s_metaclass __pyx_mstate_global->__pyx_n_s_metaclass
#define __pyx_n_s_mimeType __pyx_mstate_global->__pyx_n_s_mimeType
#define __pyx_n_s_modified __pyx_mstate_global->__pyx_n_s_modified
#define __pyx_n_s_module __pyx_mstate_global->__pyx_n_s_module
#define __pyx_n_s_name __pyx_mstate_global->__pyx_n_s_name
#define __pyx_n_s_name_2 __pyx_mstate_global->__pyx_n_s_name_2
#define __pyx_n_s_names __pyx_mstate_global->__pyx_n_s_names
#define __pyx_n_s_nti_externalization__compat __pyx_mstate_global->__pyx_n_s_nti_externalization__compat
#define __pyx_n_s_nti_externalization__datastructu __pyx_mstate_global->__pyx_n_s_nti_externalization__datastructu
#define __pyx_n_s_nti_schema_interfaces __pyx_mstate_global->__pyx_n_s_nti_schema_interfaces
#define __pyx_n_s_numbers __pyx_mstate_global->__pyx_n_s_numbers
#define __pyx_n_s_object __pyx_mstate_global->__pyx_n_s_object
#define __pyx_n_s_p_changed __pyx_mstate_global->__pyx_n_s_p_changed
#define __pyx_n_s_parent __pyx_mstate_global->__pyx_n_s_parent
#define __pyx_n_s_parsed __pyx_mstate_global->__pyx_n_s_parsed
#define __pyx_n_s_policy __pyx_mstate_global->__pyx_n_s_policy
#define __pyx_n_s_pop __pyx_mstate_global->__pyx_n_s_pop
#define __pyx_n_s_possibilities __pyx_mstate_global->__pyx_n_s_possibilities
#define __pyx_n_s_prefer_oid __pyx_mstate_global->__pyx_n_s_prefer_oid
#define __pyx_n_s_prepare __pyx_mstate_global->__pyx_n_s_prepare
#define __pyx_n_s_primitive_ext_keys __pyx_mstate_global->__pyx_n_s_primitive_ext_keys
#define __pyx_n_s_primitives __pyx_mstate_global->__pyx_n_s_primitives
#define __pyx_n_s_providedBy __pyx_mstate_global->__pyx_n_s_providedBy
#define __pyx_n_s_pyx_capi __pyx_mstate_global->__pyx_n_s_pyx_capi
#define __pyx_n_s_pyx_vtable __pyx_mstate_global->__pyx_n_s_pyx_vtable
#define __pyx_n_s_qualname __pyx_mstate_global->__pyx_n_s_qualname
#define __pyx_n_s_queryDirectTaggedValue __pyx_mstate_global->__pyx_n_s_queryDirectTaggedValue
#define __pyx_n_s_queryTaggedValue __pyx_mstate_global->__pyx_n_s_queryTaggedValue
#define __pyx_n_s_replacement __pyx_mstate_global->__pyx_n_s_replacement
#define __pyx_n_s_repr __pyx_mstate_global->__pyx_n_s_repr
#define __pyx_n_s_representation __pyx_mstate_global->__pyx_n_s_representation
#define __pyx_n_s_request __pyx_mstate_global->__pyx_n_s_request
#define __pyx_n_s_result __pyx_mstate_global->__pyx_n_s_result
#define __pyx_kp_s_s_s_for_r_at_0x_x __pyx_mstate_global->__pyx_kp_s_s_s_for_r_at_0x_x
#define __pyx_n_s_schema __pyx_mstate_global->__pyx_n_s_schema
#define __pyx_n_s_self __pyx_mstate_global->__pyx_n_s_self
#define __pyx_n_s_setTaggedValue __pyx_mstate_global->__pyx_n_s_setTaggedValue
#define __pyx_n_s_set_name __pyx_mstate_global->__pyx_n_s_set_name
#define __pyx_n_s_six __pyx_mstate_global->__pyx_n_s_six
#define __pyx_n_s_spec __pyx_mstate_global->__pyx_n_s_spec
#define __pyx_kp_s_src_nti_externalization_datastru __pyx_mstate_global->__pyx_kp_s_src_nti_externalization_datastru
#define __pyx_n_s_staticmethod __pyx_mstate_global->__pyx_n_s_staticmethod
#define __pyx_n_s_string_types __pyx_mstate_global->__pyx_n_s_string_types
#define __pyx_n_s_super __pyx_mstate_global->__pyx_n_s_super
#define __pyx_n_s_test __pyx_mstate_global->__pyx_n_s_test
#define __pyx_n_s_title __pyx_mstate_global->__pyx_n_s_title
#define __pyx_n_s_toExternalDictionary __pyx_mstate_global->__pyx_n_s_toExternalDictionary
#define __pyx_n_s_toExternalObject __pyx_mstate_global->__pyx_n_s_toExternalObject
#define __pyx_n_s_to_external_object __pyx_mstate_global->__pyx_n_s_to_external_object
#define __pyx_n_s_to_minimal_standard_external_dic __pyx_mstate_global->__pyx_n_s_to_minimal_standard_external_dic
#define __pyx_n_s_traceback_info __pyx_mstate_global->__pyx_n_s_traceback_info
#define __pyx_n_s_type __pyx_mstate_global->__pyx_n_s_type
#define __pyx_n_s_unused_args __pyx_mstate_global->__pyx_n_s_unused_args
#define __pyx_n_s_unused_kwargs __pyx_mstate_global->__pyx_n_s_unused_kwargs
#define __pyx_n_s_updateFromExternalObject __pyx_mstate_global->__pyx_n_s_updateFromExternalObject
#define __pyx_n_s_update_accepts_type_attrs __pyx_mstate_global->__pyx_n_s_update_accepts_type_attrs
#define __pyx_n_s_validate_after_update __pyx_mstate_global->__pyx_n_s_validate_after_update
#define __pyx_n_s_validate_after_update_2 __pyx_mstate_global->__pyx_n_s_validate_after_update_2
#define __pyx_n_s_validate_named_field_value __pyx_mstate_global->__pyx_n_s_validate_named_field_value
#define __pyx_n_s_value __pyx_mstate_global->__pyx_n_s_value
#define __pyx_n_s_value_type __pyx_mstate_global->__pyx_n_s_value_type
#define __pyx_n_s_values __pyx_mstate_global->__pyx_n_s_values
#define __pyx_n_s_warn __pyx_mstate_global->__pyx_n_s_warn
#define __pyx_n_s_warnings __pyx_mstate_global->__pyx_n_s_warnings
#define __pyx_n_s_zope __pyx_mstate_global->__pyx_n_s_zope
#define __pyx_n_s_zope_component __pyx_mstate_global->__pyx_n_s_zope_component
#define __pyx_n_s_zope_schema_interfaces __pyx_mstate_global->__pyx_n_s_zope_schema_interfaces
#define __pyx_int_1 __pyx_mstate_global->__pyx_int_1
#define __pyx_k_ __pyx_mstate_global->__pyx_k_
#define __pyx_k__2 __pyx_mstate_global->__pyx_k__2
#define __pyx_k__5 __pyx_mstate_global->__pyx_k__5
#define __pyx_k__7 __pyx_mstate_global->__pyx_k__7
#define __pyx_tuple__4 __pyx_mstate_global->__pyx_tuple__4
#define __pyx_tuple__6 __pyx_mstate_global->__pyx_tuple__6
#define __pyx_tuple__9 __pyx_mstate_global->__pyx_tuple__9
#define __pyx_tuple__11 __pyx_mstate_global->__pyx_tuple__11
#define __pyx_tuple__13 __pyx_mstate_global->__pyx_tuple__13
#define __pyx_tuple__15 __pyx_mstate_global->__pyx_tuple__15
#define __pyx_tuple__17 __pyx_mstate_global->__pyx_tuple__17
#define __pyx_tuple__19 __pyx_mstate_global->__pyx_tuple__19
#define __pyx_tuple__21 __pyx_mstate_global->__pyx_tuple__21
#define __pyx_tuple__23 __pyx_mstate_global->__pyx_tuple__23
#define __pyx_tuple__25 __pyx_mstate_global->__pyx_tuple__25
#define __pyx_tuple__27 __pyx_mstate_global->__pyx_tuple__27
#define __pyx_tuple__29 __pyx_mstate_global->__pyx_tuple__29
#define __pyx_tuple__31 __pyx_mstate_global->__pyx_tuple__31
#define __pyx_tuple__33 __pyx_mstate_global->__pyx_tuple__33
#define __pyx_tuple__35 __pyx_mstate_global->__pyx_tuple__35
#define __pyx_tuple__37 __pyx_mstate_global->__pyx_tuple__37
#define __pyx_tuple__39 __pyx_mstate_global->__pyx_tuple__39
#define __pyx_tuple__41 __pyx_mstate_global->__pyx_tuple__41
#define __pyx_tuple__43 __pyx_mstate_global->__pyx_tuple__43
#define __pyx_tuple__45 __pyx_mstate_global->__pyx_tuple__45
#define __pyx_tuple__47 __pyx_mstate_global->__pyx_tuple__47
#define __pyx_tuple__49 __pyx_mstate_global->__pyx_tuple__49
#define __pyx_tuple__51 __pyx_mstate_global->__pyx_tuple__51
#define __pyx_tuple__52 __pyx_mstate_global->__pyx_tuple__52
#define __pyx_tuple__54 __pyx_mstate_global->__pyx_tuple__54
#define __pyx_tuple__56 __pyx_mstate_global->__pyx_tuple__56
#define __pyx_tuple__58 __pyx_mstate_global->__pyx_tuple__58
#define __pyx_tuple__60 __pyx_mstate_global->__pyx_tuple__60
#define __pyx_tuple__62 __pyx_mstate_global->__pyx_tuple__62
#define __pyx_tuple__63 __pyx_mstate_global->__pyx_tuple__63
#define __pyx_tuple__65 __pyx_mstate_global->__pyx_tuple__65
#define __pyx_tuple__66 __pyx_mstate_global->__pyx_tuple__66
#define __pyx_tuple__68 __pyx_mstate_global->__pyx_tuple__68
#define __pyx_tuple__70 __pyx_mstate_global->__pyx_tuple__70
#define __pyx_tuple__72 __pyx_mstate_global->__pyx_tuple__72
#define __pyx_tuple__74 __pyx_mstate_global->__pyx_tuple__74
#define __pyx_tuple__76 __pyx_mstate_global->__pyx_tuple__76
#define __pyx_tuple__78 __pyx_mstate_global->__pyx_tuple__78
#define __pyx_tuple__80 __pyx_mstate_global->__pyx_tuple__80
#define __pyx_tuple__82 __pyx_mstate_global->__pyx_tuple__82
#define __pyx_tuple__84 __pyx_mstate_global->__pyx_tuple__84
#define __pyx_tuple__86 __pyx_mstate_global->__pyx_tuple__86
#define __pyx_tuple__88 __pyx_mstate_global->__pyx_tuple__88
#define __pyx_tuple__90 __pyx_mstate_global->__pyx_tuple__90
#define __pyx_tuple__92 __pyx_mstate_global->__pyx_tuple__92
#define __pyx_tuple__94 __pyx_mstate_global->__pyx_tuple__94
#define __pyx_codeobj__10 __pyx_mstate_global->__pyx_codeobj__10
#define __pyx_codeobj__12 __pyx_mstate_global->__pyx_codeobj__12
#define __pyx_codeobj__14 __pyx_mstate_global->__pyx_codeobj__14
#define __pyx_codeobj__16 __pyx_mstate_global->__pyx_codeobj__16
#define __pyx_codeobj__18 __pyx_mstate_global->__pyx_codeobj__18
#define __pyx_codeobj__20 __pyx_mstate_global->__pyx_codeobj__20
#define __pyx_codeobj__22 __pyx_mstate_global->__pyx_codeobj__22
#define __pyx_codeobj__24 __pyx_mstate_global->__pyx_codeobj__24
#define __pyx_codeobj__26 __pyx_mstate_global->__pyx_codeobj__26
#define __pyx_codeobj__28 __pyx_mstate_global->__pyx_codeobj__28
#define __pyx_codeobj__30 __pyx_mstate_global->__pyx_codeobj__30
#define __pyx_codeobj__32 __pyx_mstate_global->__pyx_codeobj__32
#define __pyx_codeobj__34 __pyx_mstate_global->__pyx_codeobj__34
#define __pyx_codeobj__36 __pyx_mstate_global->__pyx_codeobj__36
#define __pyx_codeobj__38 __pyx_mstate_global->__pyx_codeobj__38
#define __pyx_codeobj__40 __pyx_mstate_global->__pyx_codeobj__40
#define __pyx_codeobj__42 __pyx_mstate_global->__pyx_codeobj__42
#define __pyx_codeobj__44 __pyx_mstate_global->__pyx_codeobj__44
#define __pyx_codeobj__46 __pyx_mstate_global->__pyx_codeobj__46
#define __pyx_codeobj__48 __pyx_mstate_global->__pyx_codeobj__48
#define __pyx_codeobj__50 __pyx_mstate_global->__pyx_codeobj__50
#define __pyx_codeobj__53 __pyx_mstate_global->__pyx_codeobj__53
#define __pyx_codeobj__55 __pyx_mstate_global->__pyx_codeobj__55
#define __pyx_codeobj__57 __pyx_mstate_global->__pyx_codeobj__57
#define __pyx_codeobj__59 __pyx_mstate_global->__pyx_codeobj__59
#define __pyx_codeobj__61 __pyx_mstate_global->__pyx_codeobj__61
#define __pyx_codeobj__64 __pyx_mstate_global->__pyx_codeobj__64
#define __pyx_codeobj__67 __pyx_mstate_global->__pyx_codeobj__67
#define __pyx_codeobj__69 __pyx_mstate_global->__pyx_codeobj__69
#define __pyx_codeobj__71 __pyx_mstate_global->__pyx_codeobj__71
#define __pyx_codeobj__73 __pyx_mstate_global->__pyx_codeobj__73
#define __pyx_codeobj__75 __pyx_mstate_global->__pyx_codeobj__75
#define __pyx_codeobj__77 __pyx_mstate_global->__pyx_codeobj__77
#define __pyx_codeobj__79 __pyx_mstate_global->__pyx_codeobj__79
#define __pyx_codeobj__81 __pyx_mstate_global->__pyx_codeobj__81
#define __pyx_codeobj__83 __pyx_mstate_global->__pyx_codeobj__83
#define __pyx_codeobj__85 __pyx_mstate_global->__pyx_codeobj__85
#define __pyx_codeobj__87 __pyx_mstate_global->__pyx_codeobj__87
#define __pyx_codeobj__89 __pyx_mstate_global->__pyx_codeobj__89
#define __pyx_codeobj__91 __pyx_mstate_global->__pyx_codeobj__91
#define __pyx_codeobj__93 __pyx_mstate_global->__pyx_codeobj__93
#define __pyx_codeobj__95 __pyx_mstate_global->__pyx_codeobj__95
#endif
/* #### Code section: module_code ### */

/* "src/nti/externalization/datastructures.py":78
 *     __external_use_minimal_base__ = False
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the object that we are externalizing.
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement, "ExternalizableDictionaryMixin._ext_replacement(self)\n\n        Return the object that we are externalizing.\n\n        This class returns ``self``, but subclasses will typically override this.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement = {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement", 0);

  /* "src/nti/externalization/datastructures.py":84
 *         This class returns ``self``, but subclasses will typically override this.
 *         """
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":78
 *     __external_use_minimal_base__ = False
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the object that we are externalizing.
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":86
 *         return self
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):             # <<<<<<<<<<<<<<
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary, "ExternalizableDictionaryMixin._ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary = {"_ext_standard_external_dictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_replacement = 0;
  PyObject *__pyx_v_mergeFrom = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_standard_external_dictionary (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_replacement,&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_replacement,&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_None);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_replacement)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 86, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[1] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 86, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, kwd_pos_args, "_ext_standard_external_dictionary") < 0)) __PYX_ERR(0, 86, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_replacement = values[0];
    __pyx_v_mergeFrom = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_standard_external_dictionary", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 86, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableDictionaryMixin._ext_standard_external_dictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary(((struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *)__pyx_v_self), __pyx_v_replacement, __pyx_v_mergeFrom, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self, PyObject *__pyx_v_replacement, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_standard_external_dictionary", 0);

  /* "src/nti/externalization/datastructures.py":87
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):
 *         if self.__external_use_minimal_base__:             # <<<<<<<<<<<<<<
 *             return to_minimal_standard_external_dictionary(replacement,
 *                                                            mergeFrom=mergeFrom)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_external_use_minimal_base); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "src/nti/externalization/datastructures.py":88
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,             # <<<<<<<<<<<<<<
 *                                                            mergeFrom=mergeFrom)
 * 
 */
    __Pyx_XDECREF(__pyx_r);

    /* "src/nti/externalization/datastructures.py":89
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,
 *                                                            mergeFrom=mergeFrom)             # <<<<<<<<<<<<<<
 * 
 *         return internal_to_standard_external_dictionary(
 */
    __pyx_t_3.__pyx_n = 1;
    __pyx_t_3.mergeFrom = __pyx_v_mergeFrom;
    __pyx_t_1 = __pyx_f_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary(__pyx_v_replacement, 0, &__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/nti/externalization/datastructures.py":87
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):
 *         if self.__external_use_minimal_base__:             # <<<<<<<<<<<<<<
 *             return to_minimal_standard_external_dictionary(replacement,
 *                                                            mergeFrom=mergeFrom)
 */
  }

  /* "src/nti/externalization/datastructures.py":91
 *                                                            mergeFrom=mergeFrom)
 * 
 *         return internal_to_standard_external_dictionary(             # <<<<<<<<<<<<<<
 *             replacement,
 *             mergeFrom=mergeFrom,
 */
  __Pyx_XDECREF(__pyx_r);

  /* "src/nti/externalization/datastructures.py":94
 *             replacement,
 *             mergeFrom=mergeFrom,
 *             decorate=kwargs.get('decorate', True),             # <<<<<<<<<<<<<<
 *             request=kwargs.get('request', NotGiven),
 *             decorate_callback=kwargs.get('decorate_callback', NotGiven),
 */
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_decorate, Py_True); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":95
 *             mergeFrom=mergeFrom,
 *             decorate=kwargs.get('decorate', True),
 *             request=kwargs.get('request', NotGiven),             # <<<<<<<<<<<<<<
 *             decorate_callback=kwargs.get('decorate_callback', NotGiven),
 *             policy=kwargs.get("policy", DEFAULT_EXTERNALIZATION_POLICY),
 */
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_request, __pyx_v_3nti_15externalization_15_datastructures_NotGiven); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "src/nti/externalization/datastructures.py":96
 *             decorate=kwargs.get('decorate', True),
 *             request=kwargs.get('request', NotGiven),
 *             decorate_callback=kwargs.get('decorate_callback', NotGiven),             # <<<<<<<<<<<<<<
 *             policy=kwargs.get("policy", DEFAULT_EXTERNALIZATION_POLICY),
 *         )
 */
  __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_decorate_callback, __pyx_v_3nti_15externalization_15_datastructures_NotGiven); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/nti/externalization/datastructures.py":97
 *             request=kwargs.get('request', NotGiven),
 *             decorate_callback=kwargs.get('decorate_callback', NotGiven),
 *             policy=kwargs.get("policy", DEFAULT_EXTERNALIZATION_POLICY),             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_5 = __Pyx_PyDict_GetItemDefault(__pyx_v_kwargs, __pyx_n_s_policy, ((PyObject *)__pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy))))) __PYX_ERR(0, 97, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":91
 *                                                            mergeFrom=mergeFrom)
 * 
 *         return internal_to_standard_external_dictionary(             # <<<<<<<<<<<<<<
 *             replacement,
 *             mergeFrom=mergeFrom,
 */
  __pyx_t_7.__pyx_n = 5;
  __pyx_t_7.mergeFrom = __pyx_v_mergeFrom;
  __pyx_t_7.decorate = __pyx_t_2;
  __pyx_t_7.request = __pyx_t_1;
  __pyx_t_7.decorate_callback = __pyx_t_4;
  __pyx_t_7.policy = ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *)__pyx_t_5);
  __pyx_t_6 = ((PyObject *)__pyx_f_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary(__pyx_v_replacement, 0, &__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 91, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":86
 *         return self
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):             # <<<<<<<<<<<<<<
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableDictionaryMixin._ext_standard_external_dictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":100
 *         )
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *         Produce the standard external dictionary for this object.
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary, "ExternalizableDictionaryMixin.toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs)\n\n        Produce the standard external dictionary for this object.\n\n        Uses `_ext_replacement`.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary = {"toExternalDictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_mergeFrom = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalDictionary (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[0] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 100, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, used_pos_args, "toExternalDictionary") < 0)) __PYX_ERR(0, 100, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
    }
    __pyx_v_mergeFrom = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableDictionaryMixin.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary(((struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *)__pyx_v_self), __pyx_v_mergeFrom, __pyx_v_unused_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("toExternalDictionary", 0);

  /* "src/nti/externalization/datastructures.py":106
 *         Uses `_ext_replacement`.
 *         """
 *         return self._ext_standard_external_dictionary(self._ext_replacement(),             # <<<<<<<<<<<<<<
 *                                                       mergeFrom=mergeFrom,
 *                                                       **kwargs)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_standard_external_dictionar); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_replacement); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_4, };
    __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":107
 *         """
 *         return self._ext_standard_external_dictionary(self._ext_replacement(),
 *                                                       mergeFrom=mergeFrom,             # <<<<<<<<<<<<<<
 *                                                       **kwargs)
 * 
 */
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_mergeFrom, __pyx_v_mergeFrom) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "src/nti/externalization/datastructures.py":108
 *         return self._ext_standard_external_dictionary(self._ext_replacement(),
 *                                                       mergeFrom=mergeFrom,
 *                                                       **kwargs)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (__Pyx_MergeKeywords(__pyx_t_2, __pyx_v_kwargs) < 0) __PYX_ERR(0, 108, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":106
 *         Uses `_ext_replacement`.
 *         """
 *         return self._ext_standard_external_dictionary(self._ext_replacement(),             # <<<<<<<<<<<<<<
 *                                                       mergeFrom=mergeFrom,
 *                                                       **kwargs)
 */
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":100
 *         )
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *         Produce the standard external dictionary for this object.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableDictionaryMixin.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":156
 *     _prefer_oid_ = False
 * 
 *     def find_factory_for_named_value(self, key, value): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Uses `.find_factory_for` to locate a factory.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_key, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("find_factory_for_named_value", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_find_factory_for_named_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_key, __pyx_v_value};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":164
 *         class or MIME type found within *value*.
 *         """
 *         return find_factory_for(value)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15internalization_10_factories_find_factory_for(__pyx_v_value, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":156
 *     _prefer_oid_ = False
 * 
 *     def find_factory_for_named_value(self, key, value): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Uses `.find_factory_for` to locate a factory.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value, "AbstractDynamicObjectIO.find_factory_for_named_value(self, key, value)\n\n        Uses `.find_factory_for` to locate a factory.\n\n        This does not take into account the current object (context)\n        or the *key*. It only handles finding factories based on the\n        class or MIME type found within *value*.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value = {"find_factory_for_named_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("find_factory_for_named_value (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_key)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 156, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 156, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("find_factory_for_named_value", 1, 2, 2, 1); __PYX_ERR(0, 156, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "find_factory_for_named_value") < 0)) __PYX_ERR(0, 156, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("find_factory_for_named_value", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 156, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  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("find_factory_for_named_value", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(__pyx_v_self, __pyx_v_key, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":166
 *         return find_factory_for(value)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         # Redeclare this here for cython
 *         return self
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_replacement", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_replacement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":168
 *     def _ext_replacement(self):
 *         # Redeclare this here for cython
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def _ext_all_possible_keys(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __pyx_r = ((PyObject *)__pyx_v_self);
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":166
 *         return find_factory_for(value)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         # Redeclare this here for cython
 *         return self
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_2_ext_replacement, "AbstractDynamicObjectIO._ext_replacement(self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement = {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_2_ext_replacement};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_2_ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_2_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self) {
  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("_ext_replacement", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":170
 *         return self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         This method must return a frozenset of native strings.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_all_possible_keys(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_all_possible_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_all_possible_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(PyFrozenSet_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("frozenset", __pyx_t_2))) __PYX_ERR(0, 170, __pyx_L1_error)
        __pyx_r = ((PyObject*)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":174
 *         This method must return a frozenset of native strings.
 *         """
 *         raise NotImplementedError()             # <<<<<<<<<<<<<<
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_NotImplementedError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 174, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":170
 *         return self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         This method must return a frozenset of native strings.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_4_ext_all_possible_keys, "AbstractDynamicObjectIO._ext_all_possible_keys(self) -> frozenset\n\n        This method must return a frozenset of native strings.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys = {"_ext_all_possible_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_4_ext_all_possible_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_all_possible_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_4_ext_all_possible_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_4_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self) {
  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("_ext_all_possible_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_all_possible_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":176
 *         raise NotImplementedError()
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError()
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_setattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_k, CYTHON_UNUSED PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_setattr", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_setattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":177
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 *         raise NotImplementedError()             # <<<<<<<<<<<<<<
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_NotImplementedError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 177, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":176
 *         raise NotImplementedError()
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_6_ext_setattr, "AbstractDynamicObjectIO._ext_setattr(self, ext_self, k, value)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr = {"_ext_setattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_6_ext_setattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_setattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #endif
    PyObject* values[3] = {0,0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 1); __PYX_ERR(0, 176, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 2); __PYX_ERR(0, 176, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_setattr") < 0)) __PYX_ERR(0, 176, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 176, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_6_ext_setattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_6_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value) {
  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("_ext_setattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_setattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":179
 *         raise NotImplementedError()
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         _ext_getattr(object, name[, default]) -> value
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args) {
  PyObject *__pyx_v_default = __pyx_k_;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default = __pyx_optional_args->__pyx_default;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_getattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_default};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":190
 *             Add the *default* argument.
 *         """
 *         raise NotImplementedError()             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement_getattr(self, name, default=NotGiven):
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_NotImplementedError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 190, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":179
 *         raise NotImplementedError()
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         _ext_getattr(object, name[, default]) -> value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_8_ext_getattr, "AbstractDynamicObjectIO._ext_getattr(self, ext_self, k, default=NotGiven)\n\n        _ext_getattr(object, name[, default]) -> value\n\n        Return the attribute of the *ext_self* object with the internal name *name*.\n        If the attribute does not exist, should raise (typically :exc:`AttributeError`),\n        unless *default* is given, in which case it returns that.\n\n        .. versionchanged:: 1.0a4\n            Add the *default* argument.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr = {"_ext_getattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_8_ext_getattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_default = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_getattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #endif
    PyObject* values[3] = {0,0,0};
    values[2] = __pyx_k_;
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, 1); __PYX_ERR(0, 179, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[2] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 179, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_getattr") < 0)) __PYX_ERR(0, 179, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_default = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 179, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_8_ext_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_8_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_default = __pyx_v_default;
  __pyx_t_1 = __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->_ext_getattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":192
 *         raise NotImplementedError()
 * 
 *     def _ext_replacement_getattr(self, name, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         Like `_ext_getattr`, but automatically fills in `_ext_replacement`
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr *__pyx_optional_args) {
  PyObject *__pyx_v_default = __pyx_k__2;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_replacement_getattr", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default = __pyx_optional_args->__pyx_default;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_replacement_getattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_name, __pyx_v_default};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":199
 *         .. versionadded:: 1.0a4
 *         """
 *         return self._ext_getattr(self._ext_replacement(), name, default)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_keys(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_replacement(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_default = __pyx_v_default;
  __pyx_t_2 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_getattr(__pyx_v_self, __pyx_t_1, __pyx_v_name, 0, &__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":192
 *         raise NotImplementedError()
 * 
 *     def _ext_replacement_getattr(self, name, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         Like `_ext_getattr`, but automatically fills in `_ext_replacement`
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_replacement_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_10_ext_replacement_getattr, "AbstractDynamicObjectIO._ext_replacement_getattr(self, name, default=NotGiven)\n\n        Like `_ext_getattr`, but automatically fills in `_ext_replacement`\n        for the *ext_self* argument.\n\n        .. versionadded:: 1.0a4\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr = {"_ext_replacement_getattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_10_ext_replacement_getattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_default = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement_getattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_default,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_default,0};
    #endif
    PyObject* values[2] = {0,0};
    values[1] = __pyx_k__2;
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 192, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[1] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 192, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_replacement_getattr") < 0)) __PYX_ERR(0, 192, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_name = values[0];
    __pyx_v_default = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_replacement_getattr", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 192, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_replacement_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_10_ext_replacement_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_name, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_10_ext_replacement_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_replacement_getattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_default = __pyx_v_default;
  __pyx_t_1 = __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->_ext_replacement_getattr(__pyx_v_self, __pyx_v_name, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_replacement_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":201
 *         return self._ext_getattr(self._ext_replacement(), name, default)
 * 
 *     def _ext_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return only the names of attributes that should be externalized.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_excluded = NULL;
  PyObject *__pyx_7genexpr__pyx_v_k = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":216
 *         # combined with the declaration in this class) but some overrides
 *         # in the wild have it as a tuple. We need a metaclass to fix that.
 *         excluded = self._excluded_out_ivars_             # <<<<<<<<<<<<<<
 *         return [k for k in self._ext_all_possible_keys()
 *                 if (k not in excluded  # specifically excluded
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_excluded_out_ivars); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_excluded = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":217
 *         # in the wild have it as a tuple. We need a metaclass to fix that.
 *         excluded = self._excluded_out_ivars_
 *         return [k for k in self._ext_all_possible_keys()             # <<<<<<<<<<<<<<
 *                 if (k not in excluded  # specifically excluded
 *                     and not k.startswith('_'))]  # private
 */
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 217, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_6 = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_all_possible_keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 217, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_set_iterator(__pyx_t_3, 0, (&__pyx_t_7), (&__pyx_t_5)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 217, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_2);
    __pyx_t_2 = __pyx_t_4;
    __pyx_t_4 = 0;
    while (1) {
      __pyx_t_8 = __Pyx_set_iter_next(__pyx_t_2, __pyx_t_7, &__pyx_t_6, &__pyx_t_4, __pyx_t_5);
      if (unlikely(__pyx_t_8 == 0)) break;
      if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 217, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (!(likely(PyString_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_4))) __PYX_ERR(0, 217, __pyx_L5_error)
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_k, ((PyObject*)__pyx_t_4));
      __pyx_t_4 = 0;

      /* "src/nti/externalization/datastructures.py":218
 *         excluded = self._excluded_out_ivars_
 *         return [k for k in self._ext_all_possible_keys()
 *                 if (k not in excluded  # specifically excluded             # <<<<<<<<<<<<<<
 *                     and not k.startswith('_'))]  # private
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 */
      __pyx_t_10 = (__Pyx_PySequence_ContainsTF(__pyx_7genexpr__pyx_v_k, __pyx_v_excluded, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 218, __pyx_L5_error)
      __pyx_t_11 = (__pyx_t_10 != 0);
      if (__pyx_t_11) {
      } else {
        __pyx_t_9 = __pyx_t_11;
        goto __pyx_L9_bool_binop_done;
      }

      /* "src/nti/externalization/datastructures.py":219
 *         return [k for k in self._ext_all_possible_keys()
 *                 if (k not in excluded  # specifically excluded
 *                     and not k.startswith('_'))]  # private             # <<<<<<<<<<<<<<
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 * 
 */
      if (unlikely(__pyx_7genexpr__pyx_v_k == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "startswith");
        __PYX_ERR(0, 219, __pyx_L5_error)
      }
      __pyx_t_11 = __Pyx_PyStr_Tailmatch(__pyx_7genexpr__pyx_v_k, __pyx_n_s__3, 0, PY_SSIZE_T_MAX, -1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(0, 219, __pyx_L5_error)
      __pyx_t_10 = ((!(__pyx_t_11 != 0)) != 0);
      __pyx_t_9 = __pyx_t_10;
      __pyx_L9_bool_binop_done:;

      /* "src/nti/externalization/datastructures.py":218
 *         excluded = self._excluded_out_ivars_
 *         return [k for k in self._ext_all_possible_keys()
 *                 if (k not in excluded  # specifically excluded             # <<<<<<<<<<<<<<
 *                     and not k.startswith('_'))]  # private
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 */
      if (__pyx_t_9) {

        /* "src/nti/externalization/datastructures.py":217
 *         # in the wild have it as a tuple. We need a metaclass to fix that.
 *         excluded = self._excluded_out_ivars_
 *         return [k for k in self._ext_all_possible_keys()             # <<<<<<<<<<<<<<
 *                 if (k not in excluded  # specifically excluded
 *                     and not k.startswith('_'))]  # private
 */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_7genexpr__pyx_v_k))) __PYX_ERR(0, 217, __pyx_L5_error)

        /* "src/nti/externalization/datastructures.py":218
 *         excluded = self._excluded_out_ivars_
 *         return [k for k in self._ext_all_possible_keys()
 *                 if (k not in excluded  # specifically excluded             # <<<<<<<<<<<<<<
 *                     and not k.startswith('_'))]  # private
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 */
      }
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k); __pyx_7genexpr__pyx_v_k = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":201
 *         return self._ext_getattr(self._ext_replacement(), name, default)
 * 
 *     def _ext_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return only the names of attributes that should be externalized.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_excluded);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_k);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_12_ext_keys, "AbstractDynamicObjectIO._ext_keys(self)\n\n        Return only the names of attributes that should be externalized.\n        These values will be used as keys in the external dictionary.\n\n        See :meth:`_ext_all_possible_keys`. This implementation then filters out\n        *private* attributes (those beginning with an underscore),\n        and those listed in ``_excluded_in_ivars_``.\n\n        This method must return a set of native strings.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys = {"_ext_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_12_ext_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_12_ext_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_12_ext_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self) {
  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("_ext_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":222
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 * 
 *     def _ext_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a container of string keys whose values are known to be primitive.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_primitive_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_primitive_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":229
 *         This method must return a frozenset.
 *         """
 *         return self._ext_primitive_out_ivars_             # <<<<<<<<<<<<<<
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_primitive_out_ivars); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":222
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 * 
 *     def _ext_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a container of string keys whose values are known to be primitive.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_primitive_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_14_ext_primitive_keys, "AbstractDynamicObjectIO._ext_primitive_keys(self)\n\n        Return a container of string keys whose values are known to be primitive.\n        This is an optimization for writing.\n\n        This method must return a frozenset.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys = {"_ext_primitive_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_14_ext_primitive_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_primitive_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_14_ext_primitive_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_14_ext_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self) {
  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("_ext_primitive_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_primitive_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_primitive_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":231
 *         return self._ext_primitive_out_ivars_
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary, "AbstractDynamicObjectIO.toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary = {"toExternalDictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_mergeFrom = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalDictionary (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[0] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 231, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, used_pos_args, "toExternalDictionary") < 0)) __PYX_ERR(0, 231, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
    }
    __pyx_v_mergeFrom = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_mergeFrom, __pyx_v_unused_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_ext_self = NULL;
  PyObject *__pyx_v_primitive_ext_keys = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_v_ext_val = NULL;
  PyObject *__pyx_v_attr_val = NULL;
  CYTHON_UNUSED PyObject *__pyx_v___traceback_info__ = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("toExternalDictionary", 0);

  /* "src/nti/externalization/datastructures.py":232
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,             # <<<<<<<<<<<<<<
 *                                                                            **kwargs)
 *         ext_self = self._ext_replacement()
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO));
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_toExternalDictionary); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_mergeFrom, __pyx_v_mergeFrom) < 0) __PYX_ERR(0, 232, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":233
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)             # <<<<<<<<<<<<<<
 *         ext_self = self._ext_replacement()
 *         primitive_ext_keys = self._ext_primitive_keys()
 */
  if (__Pyx_MergeKeywords(__pyx_t_2, __pyx_v_kwargs) < 0) __PYX_ERR(0, 233, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":232
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,             # <<<<<<<<<<<<<<
 *                                                                            **kwargs)
 *         ext_self = self._ext_replacement()
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_result = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":234
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)
 *         ext_self = self._ext_replacement()             # <<<<<<<<<<<<<<
 *         primitive_ext_keys = self._ext_primitive_keys()
 *         for k in self._ext_keys():
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_replacement(__pyx_v_self, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_ext_self = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":235
 *                                                                            **kwargs)
 *         ext_self = self._ext_replacement()
 *         primitive_ext_keys = self._ext_primitive_keys()             # <<<<<<<<<<<<<<
 *         for k in self._ext_keys():
 *             if k in result:
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_primitive_keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_primitive_ext_keys = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":236
 *         ext_self = self._ext_replacement()
 *         primitive_ext_keys = self._ext_primitive_keys()
 *         for k in self._ext_keys():             # <<<<<<<<<<<<<<
 *             if k in result:
 *                 # Standard key already added
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 236, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 236, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 236, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 236, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_5(__pyx_t_2);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 236, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":237
 *         primitive_ext_keys = self._ext_primitive_keys()
 *         for k in self._ext_keys():
 *             if k in result:             # <<<<<<<<<<<<<<
 *                 # Standard key already added
 *                 continue
 */
    __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_v_k, __pyx_v_result, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 237, __pyx_L1_error)
    __pyx_t_7 = (__pyx_t_6 != 0);
    if (__pyx_t_7) {

      /* "src/nti/externalization/datastructures.py":239
 *             if k in result:
 *                 # Standard key already added
 *                 continue             # <<<<<<<<<<<<<<
 * 
 *             ext_val = attr_val = self._ext_getattr(ext_self, k)
 */
      goto __pyx_L3_continue;

      /* "src/nti/externalization/datastructures.py":237
 *         primitive_ext_keys = self._ext_primitive_keys()
 *         for k in self._ext_keys():
 *             if k in result:             # <<<<<<<<<<<<<<
 *                 # Standard key already added
 *                 continue
 */
    }

    /* "src/nti/externalization/datastructures.py":241
 *                 continue
 * 
 *             ext_val = attr_val = self._ext_getattr(ext_self, k)             # <<<<<<<<<<<<<<
 *             __traceback_info__ = k, attr_val
 *             if k not in primitive_ext_keys:
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_getattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_ext_val, __pyx_t_3);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_attr_val, __pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":242
 * 
 *             ext_val = attr_val = self._ext_getattr(ext_self, k)
 *             __traceback_info__ = k, attr_val             # <<<<<<<<<<<<<<
 *             if k not in primitive_ext_keys:
 *                 ext_val = _toExternalObject(attr_val, **kwargs)
 */
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_k);
    __Pyx_GIVEREF(__pyx_v_k);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_k);
    __Pyx_INCREF(__pyx_v_attr_val);
    __Pyx_GIVEREF(__pyx_v_attr_val);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_attr_val);
    __Pyx_XDECREF_SET(__pyx_v___traceback_info__, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":243
 *             ext_val = attr_val = self._ext_getattr(ext_self, k)
 *             __traceback_info__ = k, attr_val
 *             if k not in primitive_ext_keys:             # <<<<<<<<<<<<<<
 *                 ext_val = _toExternalObject(attr_val, **kwargs)
 * 
 */
    __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_v_k, __pyx_v_primitive_ext_keys, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 243, __pyx_L1_error)
    __pyx_t_6 = (__pyx_t_7 != 0);
    if (__pyx_t_6) {

      /* "src/nti/externalization/datastructures.py":244
 *             __traceback_info__ = k, attr_val
 *             if k not in primitive_ext_keys:
 *                 ext_val = _toExternalObject(attr_val, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *             result[k] = ext_val
 */
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_to_external_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_v_attr_val);
      __Pyx_GIVEREF(__pyx_v_attr_val);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_attr_val);
      __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_v_kwargs); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 244, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_ext_val, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "src/nti/externalization/datastructures.py":243
 *             ext_val = attr_val = self._ext_getattr(ext_self, k)
 *             __traceback_info__ = k, attr_val
 *             if k not in primitive_ext_keys:             # <<<<<<<<<<<<<<
 *                 ext_val = _toExternalObject(attr_val, **kwargs)
 * 
 */
    }

    /* "src/nti/externalization/datastructures.py":246
 *                 ext_val = _toExternalObject(attr_val, **kwargs)
 * 
 *             result[k] = ext_val             # <<<<<<<<<<<<<<
 * 
 *             if ext_val is not attr_val:
 */
    if (unlikely(PyObject_SetItem(__pyx_v_result, __pyx_v_k, __pyx_v_ext_val) < 0)) __PYX_ERR(0, 246, __pyx_L1_error)

    /* "src/nti/externalization/datastructures.py":248
 *             result[k] = ext_val
 * 
 *             if ext_val is not attr_val:             # <<<<<<<<<<<<<<
 *                 # We want to be sure things we externalize have the
 *                 # right parent relationship but if we are directly
 */
    __pyx_t_6 = (__pyx_v_ext_val != __pyx_v_attr_val);
    __pyx_t_7 = (__pyx_t_6 != 0);
    if (__pyx_t_7) {

      /* "src/nti/externalization/datastructures.py":259
 *                 # transactions/tests) if ILocation.providedBy(
 *                 # result[k] ): (throwing is faster than providedBy)
 *                 try:             # <<<<<<<<<<<<<<
 *                     ext_val.__parent__ = ext_self
 *                 except AttributeError:
 */
      {
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        /*try:*/ {

          /* "src/nti/externalization/datastructures.py":260
 *                 # result[k] ): (throwing is faster than providedBy)
 *                 try:
 *                     ext_val.__parent__ = ext_self             # <<<<<<<<<<<<<<
 *                 except AttributeError:
 *                     # toExternalObject is schizophrenic about when it converts
 */
          if (__Pyx_PyObject_SetAttrStr(__pyx_v_ext_val, __pyx_n_s_parent, __pyx_v_ext_self) < 0) __PYX_ERR(0, 260, __pyx_L8_error)

          /* "src/nti/externalization/datastructures.py":259
 *                 # transactions/tests) if ILocation.providedBy(
 *                 # result[k] ): (throwing is faster than providedBy)
 *                 try:             # <<<<<<<<<<<<<<
 *                     ext_val.__parent__ = ext_self
 *                 except AttributeError:
 */
        }
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
        goto __pyx_L15_try_end;
        __pyx_L8_error:;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "src/nti/externalization/datastructures.py":261
 *                 try:
 *                     ext_val.__parent__ = ext_self
 *                 except AttributeError:             # <<<<<<<<<<<<<<
 *                     # toExternalObject is schizophrenic about when it converts
 *                     # return values to LocatedExternalDict/List. Sometimes it
 */
        __pyx_t_12 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
        if (__pyx_t_12) {
          __Pyx_ErrRestore(0,0,0);
          goto __pyx_L9_exception_handled;
        }
        goto __pyx_L10_except_error;
        __pyx_L10_except_error:;

        /* "src/nti/externalization/datastructures.py":259
 *                 # transactions/tests) if ILocation.providedBy(
 *                 # result[k] ): (throwing is faster than providedBy)
 *                 try:             # <<<<<<<<<<<<<<
 *                     ext_val.__parent__ = ext_self
 *                 except AttributeError:
 */
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
        goto __pyx_L1_error;
        __pyx_L9_exception_handled:;
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
        __pyx_L15_try_end:;
      }

      /* "src/nti/externalization/datastructures.py":248
 *             result[k] = ext_val
 * 
 *             if ext_val is not attr_val:             # <<<<<<<<<<<<<<
 *                 # We want to be sure things we externalize have the
 *                 # right parent relationship but if we are directly
 */
    }

    /* "src/nti/externalization/datastructures.py":236
 *         ext_self = self._ext_replacement()
 *         primitive_ext_keys = self._ext_primitive_keys()
 *         for k in self._ext_keys():             # <<<<<<<<<<<<<<
 *             if k in result:
 *                 # Standard key already added
 */
    __pyx_L3_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":267
 *                     pass
 * 
 *         if (StandardExternalFields.ID in result             # <<<<<<<<<<<<<<
 *                 and StandardExternalFields.OID in result
 *                 and self._prefer_oid_
 */
  __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID, __pyx_v_result, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 267, __pyx_L1_error)
  __pyx_t_13 = (__pyx_t_6 != 0);
  if (__pyx_t_13) {
  } else {
    __pyx_t_7 = __pyx_t_13;
    goto __pyx_L17_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":268
 * 
 *         if (StandardExternalFields.ID in result
 *                 and StandardExternalFields.OID in result             # <<<<<<<<<<<<<<
 *                 and self._prefer_oid_
 *                 and result[StandardExternalFields.ID] != result[StandardExternalFields.OID]):
 */
  __pyx_t_13 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->OID, __pyx_v_result, Py_EQ)); if (unlikely(__pyx_t_13 < 0)) __PYX_ERR(0, 268, __pyx_L1_error)
  __pyx_t_6 = (__pyx_t_13 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_7 = __pyx_t_6;
    goto __pyx_L17_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":269
 *         if (StandardExternalFields.ID in result
 *                 and StandardExternalFields.OID in result
 *                 and self._prefer_oid_             # <<<<<<<<<<<<<<
 *                 and result[StandardExternalFields.ID] != result[StandardExternalFields.OID]):
 *             result[StandardExternalFields.ID] = result[StandardExternalFields.OID]
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_prefer_oid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_7 = __pyx_t_6;
    goto __pyx_L17_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":270
 *                 and StandardExternalFields.OID in result
 *                 and self._prefer_oid_
 *                 and result[StandardExternalFields.ID] != result[StandardExternalFields.OID]):             # <<<<<<<<<<<<<<
 *             result[StandardExternalFields.ID] = result[StandardExternalFields.OID]
 *         return result
 */
  __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->OID); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_t_8, Py_NE); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7 = __pyx_t_6;
  __pyx_L17_bool_binop_done:;

  /* "src/nti/externalization/datastructures.py":267
 *                     pass
 * 
 *         if (StandardExternalFields.ID in result             # <<<<<<<<<<<<<<
 *                 and StandardExternalFields.OID in result
 *                 and self._prefer_oid_
 */
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":271
 *                 and self._prefer_oid_
 *                 and result[StandardExternalFields.ID] != result[StandardExternalFields.OID]):
 *             result[StandardExternalFields.ID] = result[StandardExternalFields.OID]             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
    __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_result, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->OID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (unlikely(PyObject_SetItem(__pyx_v_result, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID, __pyx_t_1) < 0)) __PYX_ERR(0, 271, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":267
 *                     pass
 * 
 *         if (StandardExternalFields.ID in result             # <<<<<<<<<<<<<<
 *                 and StandardExternalFields.OID in result
 *                 and self._prefer_oid_
 */
  }

  /* "src/nti/externalization/datastructures.py":272
 *                 and result[StandardExternalFields.ID] != result[StandardExternalFields.OID]):
 *             result[StandardExternalFields.ID] = result[StandardExternalFields.OID]
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":231
 *         return self._ext_primitive_out_ivars_
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_ext_self);
  __Pyx_XDECREF(__pyx_v_primitive_ext_keys);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF(__pyx_v_ext_val);
  __Pyx_XDECREF(__pyx_v_attr_val);
  __Pyx_XDECREF(__pyx_v___traceback_info__);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":274
 *         return result
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject, "AbstractDynamicObjectIO.toExternalObject(self, mergeFrom=None, *args, **kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject = {"toExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_mergeFrom = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalObject (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[0] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, used_pos_args, "toExternalObject") < 0)) __PYX_ERR(0, 274, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
    }
    __pyx_v_mergeFrom = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_mergeFrom, __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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("toExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":275
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_toExternalDictionary); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_mergeFrom);
  __Pyx_GIVEREF(__pyx_v_mergeFrom);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_mergeFrom);
  __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":274
 *         return result
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":277
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether or not this key should be accepted for setting
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_k, CYTHON_UNUSED PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_accept_update_key", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_accept_update_key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":285
 *             is passed. Keys are only accepted if they are in this list.
 *         """
 *         return k not in self._excluded_in_ivars_ and k in ext_keys             # <<<<<<<<<<<<<<
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_excluded_in_ivars); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_v_k, __pyx_t_2, Py_NE)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_v_k, __pyx_v_ext_keys, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 285, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":277
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether or not this key should be accepted for setting
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_20_ext_accept_update_key, "AbstractDynamicObjectIO._ext_accept_update_key(self, k, ext_self, ext_keys)\n\n        Returns whether or not this key should be accepted for setting\n        on the object, or silently ignored.\n\n        :param ext_keys: As an optimization, the value of :meth:`_ext_all_possible_keys`\n            is passed. Keys are only accepted if they are in this list.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key = {"_ext_accept_update_key", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_20_ext_accept_update_key};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_ext_keys = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_accept_update_key (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_k,&__pyx_n_s_ext_self,&__pyx_n_s_ext_keys_2,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_k,&__pyx_n_s_ext_self,&__pyx_n_s_ext_keys_2,0};
    #endif
    PyObject* values[3] = {0,0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 277, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 277, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, 1); __PYX_ERR(0, 277, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_keys_2)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 277, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, 2); __PYX_ERR(0, 277, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_accept_update_key") < 0)) __PYX_ERR(0, 277, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v_k = values[0];
    __pyx_v_ext_self = values[1];
    __pyx_v_ext_keys = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 277, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_20_ext_accept_update_key(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_20_ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys) {
  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("_ext_accept_update_key", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_update_key(__pyx_v_self, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":287
 *         return k not in self._excluded_in_ivars_ and k in ext_keys
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         If the object we're updating does not have an ``id`` set, but there is an
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_external_id(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_parsed, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_accept_external_id", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_accept_external_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_parsed};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":294
 *         :return: boolean
 *         """
 *         return False  # false by default             # <<<<<<<<<<<<<<
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_False);
  __pyx_r = Py_False;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":287
 *         return k not in self._excluded_in_ivars_ and k in ext_keys
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         If the object we're updating does not have an ``id`` set, but there is an
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_22_ext_accept_external_id, "AbstractDynamicObjectIO._ext_accept_external_id(self, ext_self, parsed)\n\n        If the object we're updating does not have an ``id`` set, but there is an\n        ``ID`` in the external object, should we be able to use it?\n\n        :return: boolean\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id = {"_ext_accept_external_id", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_22_ext_accept_external_id};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_parsed = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_accept_external_id (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_parsed,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_parsed,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 287, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_parsed)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 287, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_external_id", 1, 2, 2, 1); __PYX_ERR(0, 287, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_accept_external_id") < 0)) __PYX_ERR(0, 287, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_parsed = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_accept_external_id", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 287, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_22_ext_accept_external_id(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_parsed);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_22_ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_parsed) {
  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("_ext_accept_external_id", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_external_id(__pyx_v_self, __pyx_v_ext_self, __pyx_v_parsed, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":296
 *         return False  # false by default
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         return self._updateFromExternalObject(parsed)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject, "AbstractDynamicObjectIO.updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject = {"updateFromExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_parsed = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("updateFromExternalObject (wrapper)", 0);
  __pyx_v_unused_kwargs = PyDict_New(); if (unlikely(!__pyx_v_unused_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_unused_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_parsed,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_parsed,0};
    #endif
    PyObject* values[1] = {0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_parsed)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 296, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_unused_kwargs, values + 0, used_pos_args, "updateFromExternalObject") < 0)) __PYX_ERR(0, 296, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_parsed = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("updateFromExternalObject", 0, 1, 1, __pyx_nargs); __PYX_ERR(0, 296, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_parsed, __pyx_v_unused_args, __pyx_v_unused_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_unused_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs) {
  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("updateFromExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":297
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 *         return self._updateFromExternalObject(parsed)             # <<<<<<<<<<<<<<
 * 
 *     def _updateFromExternalObject(self, parsed):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_updateFromExternalObject(__pyx_v_self, __pyx_v_parsed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":296
 *         return False  # false by default
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         return self._updateFromExternalObject(parsed)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":299
 *         return self._updateFromExternalObject(parsed)
 * 
 *     def _updateFromExternalObject(self, parsed):             # <<<<<<<<<<<<<<
 *         updated = False
 * 
 */

static PyObject *__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed) {
  int __pyx_v_updated;
  PyObject *__pyx_v_ext_self = NULL;
  PyObject *__pyx_v_ext_keys = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_v_v = NULL;
  CYTHON_UNUSED PyObject *__pyx_v___traceback_info__ = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  int __pyx_t_10;
  int __pyx_t_11;
  int __pyx_t_12;
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_updateFromExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":300
 * 
 *     def _updateFromExternalObject(self, parsed):
 *         updated = False             # <<<<<<<<<<<<<<
 * 
 *         ext_self = self._ext_replacement()
 */
  __pyx_v_updated = 0;

  /* "src/nti/externalization/datastructures.py":302
 *         updated = False
 * 
 *         ext_self = self._ext_replacement()             # <<<<<<<<<<<<<<
 *         ext_keys = self._ext_all_possible_keys()
 *         for k, v in iteritems(parsed):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_replacement(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ext_self = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":303
 * 
 *         ext_self = self._ext_replacement()
 *         ext_keys = self._ext_all_possible_keys()             # <<<<<<<<<<<<<<
 *         for k, v in iteritems(parsed):
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_all_possible_keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ext_keys = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":304
 *         ext_self = self._ext_replacement()
 *         ext_keys = self._ext_all_possible_keys()
 *         for k, v in iteritems(parsed):             # <<<<<<<<<<<<<<
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):
 *                 continue
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_iteritems); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_parsed};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 304, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 304, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 304, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_6(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 304, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
      PyObject* sequence = __pyx_t_1;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 304, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_3 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_7);
      #else
      __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 304, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 304, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 304, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_8);
      index = 0; __pyx_t_3 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_3);
      index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 304, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 304, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3);
    __pyx_t_3 = 0;
    __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "src/nti/externalization/datastructures.py":305
 *         ext_keys = self._ext_all_possible_keys()
 *         for k, v in iteritems(parsed):
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *                 continue
 *             __traceback_info__ = (k, v)
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_accept_update_key(__pyx_v_self, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 305, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_11 = ((!__pyx_t_10) != 0);
    if (__pyx_t_11) {

      /* "src/nti/externalization/datastructures.py":306
 *         for k, v in iteritems(parsed):
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):
 *                 continue             # <<<<<<<<<<<<<<
 *             __traceback_info__ = (k, v)
 *             self._ext_setattr(ext_self, k, v)
 */
      goto __pyx_L3_continue;

      /* "src/nti/externalization/datastructures.py":305
 *         ext_keys = self._ext_all_possible_keys()
 *         for k, v in iteritems(parsed):
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *                 continue
 *             __traceback_info__ = (k, v)
 */
    }

    /* "src/nti/externalization/datastructures.py":307
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):
 *                 continue
 *             __traceback_info__ = (k, v)             # <<<<<<<<<<<<<<
 *             self._ext_setattr(ext_self, k, v)
 *             updated = True
 */
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_k);
    __Pyx_GIVEREF(__pyx_v_k);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_k);
    __Pyx_INCREF(__pyx_v_v);
    __Pyx_GIVEREF(__pyx_v_v);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_v);
    __Pyx_XDECREF_SET(__pyx_v___traceback_info__, ((PyObject*)__pyx_t_1));
    __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":308
 *                 continue
 *             __traceback_info__ = (k, v)
 *             self._ext_setattr(ext_self, k, v)             # <<<<<<<<<<<<<<
 *             updated = True
 * 
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_setattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, __pyx_v_v, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":309
 *             __traceback_info__ = (k, v)
 *             self._ext_setattr(ext_self, k, v)
 *             updated = True             # <<<<<<<<<<<<<<
 * 
 *         # TODO: Should these go through _ext_setattr?
 */
    __pyx_v_updated = 1;

    /* "src/nti/externalization/datastructures.py":304
 *         ext_self = self._ext_replacement()
 *         ext_keys = self._ext_all_possible_keys()
 *         for k, v in iteritems(parsed):             # <<<<<<<<<<<<<<
 *             if not self._ext_accept_update_key(k, ext_self, ext_keys):
 *                 continue
 */
    __pyx_L3_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":312
 * 
 *         # TODO: Should these go through _ext_setattr?
 *         if (StandardExternalFields.CONTAINER_ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):
 *             setattr(ext_self,
 */
  __pyx_t_10 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CONTAINER_ID, __pyx_v_parsed, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __pyx_t_12 = (__pyx_t_10 != 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L9_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":313
 *         # TODO: Should these go through _ext_setattr?
 *         if (StandardExternalFields.CONTAINER_ID in parsed
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):             # <<<<<<<<<<<<<<
 *             setattr(ext_self,
 *                     StandardInternalFields.CONTAINER_ID,
 */
  __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CONTAINER_ID;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_ext_self, __pyx_t_2, __pyx_v_parsed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_12 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_10 = (__pyx_t_12 != 0);
  __pyx_t_11 = __pyx_t_10;
  __pyx_L9_bool_binop_done:;

  /* "src/nti/externalization/datastructures.py":312
 * 
 *         # TODO: Should these go through _ext_setattr?
 *         if (StandardExternalFields.CONTAINER_ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):
 *             setattr(ext_self,
 */
  if (__pyx_t_11) {

    /* "src/nti/externalization/datastructures.py":315
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):
 *             setattr(ext_self,
 *                     StandardInternalFields.CONTAINER_ID,             # <<<<<<<<<<<<<<
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 *         if (StandardExternalFields.CREATOR in parsed
 */
    __pyx_t_1 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CONTAINER_ID;
    __Pyx_INCREF(__pyx_t_1);

    /* "src/nti/externalization/datastructures.py":316
 *             setattr(ext_self,
 *                     StandardInternalFields.CONTAINER_ID,
 *                     parsed[StandardExternalFields.CONTAINER_ID])             # <<<<<<<<<<<<<<
 *         if (StandardExternalFields.CREATOR in parsed
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 */
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_parsed, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CONTAINER_ID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "src/nti/externalization/datastructures.py":314
 *         if (StandardExternalFields.CONTAINER_ID in parsed
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):
 *             setattr(ext_self,             # <<<<<<<<<<<<<<
 *                     StandardInternalFields.CONTAINER_ID,
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 */
    __pyx_t_13 = PyObject_SetAttr(__pyx_v_ext_self, __pyx_t_1, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 314, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":312
 * 
 *         # TODO: Should these go through _ext_setattr?
 *         if (StandardExternalFields.CONTAINER_ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CONTAINER_ID, parsed) is None):
 *             setattr(ext_self,
 */
  }

  /* "src/nti/externalization/datastructures.py":317
 *                     StandardInternalFields.CONTAINER_ID,
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 *         if (StandardExternalFields.CREATOR in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 *             setattr(ext_self,
 */
  __pyx_t_10 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CREATOR, __pyx_v_parsed, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 317, __pyx_L1_error)
  __pyx_t_12 = (__pyx_t_10 != 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L12_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":318
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 *         if (StandardExternalFields.CREATOR in parsed
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):             # <<<<<<<<<<<<<<
 *             setattr(ext_self,
 *                     StandardInternalFields.CREATOR,
 */
  __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CREATOR;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_ext_self, __pyx_t_2, __pyx_v_parsed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_12 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_10 = (__pyx_t_12 != 0);
  __pyx_t_11 = __pyx_t_10;
  __pyx_L12_bool_binop_done:;

  /* "src/nti/externalization/datastructures.py":317
 *                     StandardInternalFields.CONTAINER_ID,
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 *         if (StandardExternalFields.CREATOR in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 *             setattr(ext_self,
 */
  if (__pyx_t_11) {

    /* "src/nti/externalization/datastructures.py":320
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 *             setattr(ext_self,
 *                     StandardInternalFields.CREATOR,             # <<<<<<<<<<<<<<
 *                     parsed[StandardExternalFields.CREATOR])
 *         if (StandardExternalFields.ID in parsed
 */
    __pyx_t_1 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CREATOR;
    __Pyx_INCREF(__pyx_t_1);

    /* "src/nti/externalization/datastructures.py":321
 *             setattr(ext_self,
 *                     StandardInternalFields.CREATOR,
 *                     parsed[StandardExternalFields.CREATOR])             # <<<<<<<<<<<<<<
 *         if (StandardExternalFields.ID in parsed
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 */
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_parsed, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CREATOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "src/nti/externalization/datastructures.py":319
 *         if (StandardExternalFields.CREATOR in parsed
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 *             setattr(ext_self,             # <<<<<<<<<<<<<<
 *                     StandardInternalFields.CREATOR,
 *                     parsed[StandardExternalFields.CREATOR])
 */
    __pyx_t_13 = PyObject_SetAttr(__pyx_v_ext_self, __pyx_t_1, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 319, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":317
 *                     StandardInternalFields.CONTAINER_ID,
 *                     parsed[StandardExternalFields.CONTAINER_ID])
 *         if (StandardExternalFields.CREATOR in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.CREATOR, parsed) is None):
 *             setattr(ext_self,
 */
  }

  /* "src/nti/externalization/datastructures.py":322
 *                     StandardInternalFields.CREATOR,
 *                     parsed[StandardExternalFields.CREATOR])
 *         if (StandardExternalFields.ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 */
  __pyx_t_10 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID, __pyx_v_parsed, Py_EQ)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 322, __pyx_L1_error)
  __pyx_t_12 = (__pyx_t_10 != 0);
  if (__pyx_t_12) {
  } else {
    __pyx_t_11 = __pyx_t_12;
    goto __pyx_L15_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":323
 *                     parsed[StandardExternalFields.CREATOR])
 *         if (StandardExternalFields.ID in parsed
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None             # <<<<<<<<<<<<<<
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 *             setattr(ext_self,
 */
  __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->ID;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_ext_self, __pyx_t_2, __pyx_v_parsed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_12 = (__pyx_t_1 == Py_None);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_10 = (__pyx_t_12 != 0);
  if (__pyx_t_10) {
  } else {
    __pyx_t_11 = __pyx_t_10;
    goto __pyx_L15_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":324
 *         if (StandardExternalFields.ID in parsed
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 *                 and self._ext_accept_external_id(ext_self, parsed)):             # <<<<<<<<<<<<<<
 *             setattr(ext_self,
 *                     StandardInternalFields.ID,
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self->__pyx_vtab)->_ext_accept_external_id(__pyx_v_self, __pyx_v_ext_self, __pyx_v_parsed, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_11 = __pyx_t_10;
  __pyx_L15_bool_binop_done:;

  /* "src/nti/externalization/datastructures.py":322
 *                     StandardInternalFields.CREATOR,
 *                     parsed[StandardExternalFields.CREATOR])
 *         if (StandardExternalFields.ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 */
  if (__pyx_t_11) {

    /* "src/nti/externalization/datastructures.py":326
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 *             setattr(ext_self,
 *                     StandardInternalFields.ID,             # <<<<<<<<<<<<<<
 *                     parsed[StandardExternalFields.ID])
 * 
 */
    __pyx_t_1 = __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->ID;
    __Pyx_INCREF(__pyx_t_1);

    /* "src/nti/externalization/datastructures.py":327
 *             setattr(ext_self,
 *                     StandardInternalFields.ID,
 *                     parsed[StandardExternalFields.ID])             # <<<<<<<<<<<<<<
 * 
 *         return updated
 */
    __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_parsed, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "src/nti/externalization/datastructures.py":325
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 *             setattr(ext_self,             # <<<<<<<<<<<<<<
 *                     StandardInternalFields.ID,
 *                     parsed[StandardExternalFields.ID])
 */
    __pyx_t_13 = PyObject_SetAttr(__pyx_v_ext_self, __pyx_t_1, __pyx_t_2); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 325, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":322
 *                     StandardInternalFields.CREATOR,
 *                     parsed[StandardExternalFields.CREATOR])
 *         if (StandardExternalFields.ID in parsed             # <<<<<<<<<<<<<<
 *                 and getattr(ext_self, StandardInternalFields.ID, parsed) is None
 *                 and self._ext_accept_external_id(ext_self, parsed)):
 */
  }

  /* "src/nti/externalization/datastructures.py":329
 *                     parsed[StandardExternalFields.ID])
 * 
 *         return updated             # <<<<<<<<<<<<<<
 * 
 * interface.classImplements(AbstractDynamicObjectIO, IInternalObjectIOFinder)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_updated); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":299
 *         return self._updateFromExternalObject(parsed)
 * 
 *     def _updateFromExternalObject(self, parsed):             # <<<<<<<<<<<<<<
 *         updated = False
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("nti.externalization._datastructures.AbstractDynamicObjectIO._updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ext_self);
  __Pyx_XDECREF(__pyx_v_ext_keys);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_XDECREF(__pyx_v___traceback_info__);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":342
 *     _update_accepts_type_attrs = False
 * 
 *     def __init__(self, context):             # <<<<<<<<<<<<<<
 *         self.context = context
 *         for name in (
 */

/* Python wrapper */
static int __pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_context = 0;
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_context,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_context,0};
    #endif
    PyObject* values[1] = {0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_context)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 342, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 342, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
    }
    __pyx_v_context = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 342, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict___init__(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self), __pyx_v_context);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict___init__(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_context) {
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_v = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "src/nti/externalization/datastructures.py":343
 * 
 *     def __init__(self, context):
 *         self.context = context             # <<<<<<<<<<<<<<
 *         for name in (
 *                 '_update_accepts_type_attrs',
 */
  __Pyx_INCREF(__pyx_v_context);
  __Pyx_GIVEREF(__pyx_v_context);
  __Pyx_GOTREF(__pyx_v_self->context);
  __Pyx_DECREF(__pyx_v_self->context);
  __pyx_v_self->context = __pyx_v_context;

  /* "src/nti/externalization/datastructures.py":344
 *     def __init__(self, context):
 *         self.context = context
 *         for name in (             # <<<<<<<<<<<<<<
 *                 '_update_accepts_type_attrs',
 *                 '__external_use_minimal_base__',
 */
  __pyx_t_1 = __pyx_tuple__4; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= 6) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 344, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_name, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":352
 *                 '_prefer_oid_'
 *         ):
 *             try:             # <<<<<<<<<<<<<<
 *                 v = getattr(context, name)
 *             except AttributeError:
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_5);
      __Pyx_XGOTREF(__pyx_t_6);
      /*try:*/ {

        /* "src/nti/externalization/datastructures.py":353
 *         ):
 *             try:
 *                 v = getattr(context, name)             # <<<<<<<<<<<<<<
 *             except AttributeError:
 *                 continue
 */
        __pyx_t_3 = __Pyx_GetAttr(__pyx_v_context, __pyx_v_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 353, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "src/nti/externalization/datastructures.py":352
 *                 '_prefer_oid_'
 *         ):
 *             try:             # <<<<<<<<<<<<<<
 *                 v = getattr(context, name)
 *             except AttributeError:
 */
      }

      /* "src/nti/externalization/datastructures.py":357
 *                 continue
 *             else:
 *                 setattr(self, name, v)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement(self):
 */
      /*else:*/ {
        __pyx_t_7 = PyObject_SetAttr(((PyObject *)__pyx_v_self), __pyx_v_name, __pyx_v_v); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 357, __pyx_L7_except_error)
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L12_try_end;
      __pyx_L5_error:;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "src/nti/externalization/datastructures.py":354
 *             try:
 *                 v = getattr(context, name)
 *             except AttributeError:             # <<<<<<<<<<<<<<
 *                 continue
 *             else:
 */
      __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
      if (__pyx_t_8) {
        __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_9, &__pyx_t_10) < 0) __PYX_ERR(0, 354, __pyx_L7_except_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_GOTREF(__pyx_t_10);

        /* "src/nti/externalization/datastructures.py":355
 *                 v = getattr(context, name)
 *             except AttributeError:
 *                 continue             # <<<<<<<<<<<<<<
 *             else:
 *                 setattr(self, name, v)
 */
        goto __pyx_L14_except_continue;
        __pyx_L14_except_continue:;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        goto __pyx_L11_try_continue;
      }
      goto __pyx_L7_except_error;
      __pyx_L7_except_error:;

      /* "src/nti/externalization/datastructures.py":352
 *                 '_prefer_oid_'
 *         ):
 *             try:             # <<<<<<<<<<<<<<
 *                 v = getattr(context, name)
 *             except AttributeError:
 */
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
      goto __pyx_L1_error;
      __pyx_L11_try_continue:;
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_5);
      __Pyx_XGIVEREF(__pyx_t_6);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
      goto __pyx_L3_continue;
      __pyx_L12_try_end:;
    }

    /* "src/nti/externalization/datastructures.py":344
 *     def __init__(self, context):
 *         self.context = context
 *         for name in (             # <<<<<<<<<<<<<<
 *                 '_update_accepts_type_attrs',
 *                 '__external_use_minimal_base__',
 */
    __pyx_L3_continue:;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":342
 *     _update_accepts_type_attrs = False
 * 
 *     def __init__(self, context):             # <<<<<<<<<<<<<<
 *         self.context = context
 *         for name in (
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_v);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":359
 *                 setattr(self, name, v)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self.context
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_replacement", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_replacement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 359, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":360
 * 
 *     def _ext_replacement(self):
 *         return self.context             # <<<<<<<<<<<<<<
 * 
 *     def _ext_all_possible_keys(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->context);
  __pyx_r = __pyx_v_self->context;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":359
 *                 setattr(self, name, v)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self.context
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_2_ext_replacement, "_ExternalizableInstanceDict._ext_replacement(self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement = {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_2_ext_replacement};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_2_ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_2_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self) {
  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("_ext_replacement", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_replacement(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":362
 *         return self.context
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         # Be sure that this returns native strings, even if the dict
 *         # has unicode (Python 2) or bytes (Python 3) values.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_ext_dict = 0;
  PyObject *__pyx_v_ext_self = NULL;
  PyObject *__pyx_v_key = NULL;
  PyObject *__pyx_v_k = NULL;
  PyObject *__pyx_v_new_k = NULL;
  PyObject *__pyx_v_val = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_all_possible_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_all_possible_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 362, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(PyFrozenSet_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("frozenset", __pyx_t_2))) __PYX_ERR(0, 362, __pyx_L1_error)
        __pyx_r = ((PyObject*)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":369
 *         # fix the dict if we find any broken attributes; Python 3 would fail
 *         # if we encode a bytes value in the dict and then ask for it by string.
 *         ext_self = self._ext_replacement()             # <<<<<<<<<<<<<<
 *         ext_dict = ext_self.__dict__
 *         # Do our best to avoid copying in the common case that no
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_ext_self = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":370
 *         # if we encode a bytes value in the dict and then ask for it by string.
 *         ext_self = self._ext_replacement()
 *         ext_dict = ext_self.__dict__             # <<<<<<<<<<<<<<
 *         # Do our best to avoid copying in the common case that no
 *         # fixup is needed
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_ext_self, __pyx_n_s_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyDict_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("dict", __pyx_t_1))) __PYX_ERR(0, 370, __pyx_L1_error)
  __pyx_v_ext_dict = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":373
 *         # Do our best to avoid copying in the common case that no
 *         # fixup is needed
 *         for key in ext_dict:             # <<<<<<<<<<<<<<
 *             if not isinstance(key, str):
 *                 # fixup
 */
  __pyx_t_6 = 0;
  if (unlikely(__pyx_v_ext_dict == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 373, __pyx_L1_error)
  }
  __pyx_t_2 = __Pyx_dict_iterator(__pyx_v_ext_dict, 1, ((PyObject *)NULL), (&__pyx_t_7), (&__pyx_t_5)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_2;
  __pyx_t_2 = 0;
  while (1) {
    __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_7, &__pyx_t_6, &__pyx_t_2, NULL, NULL, __pyx_t_5);
    if (unlikely(__pyx_t_8 == 0)) break;
    if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":374
 *         # fixup is needed
 *         for key in ext_dict:
 *             if not isinstance(key, str):             # <<<<<<<<<<<<<<
 *                 # fixup
 *                 if hasattr(ext_self, '_p_changed'):
 */
    __pyx_t_9 = PyString_Check(__pyx_v_key); 
    __pyx_t_10 = ((!(__pyx_t_9 != 0)) != 0);
    if (__pyx_t_10) {

      /* "src/nti/externalization/datastructures.py":376
 *             if not isinstance(key, str):
 *                 # fixup
 *                 if hasattr(ext_self, '_p_changed'):             # <<<<<<<<<<<<<<
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):
 */
      __pyx_t_10 = __Pyx_HasAttr(__pyx_v_ext_self, __pyx_n_s_p_changed); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 376, __pyx_L1_error)
      __pyx_t_9 = (__pyx_t_10 != 0);
      if (__pyx_t_9) {

        /* "src/nti/externalization/datastructures.py":377
 *                 # fixup
 *                 if hasattr(ext_self, '_p_changed'):
 *                     ext_self._p_changed = 1             # <<<<<<<<<<<<<<
 *                 for k in list(ext_dict):
 *                     if not isinstance(k, str):
 */
        if (__Pyx_PyObject_SetAttrStr(__pyx_v_ext_self, __pyx_n_s_p_changed, __pyx_int_1) < 0) __PYX_ERR(0, 377, __pyx_L1_error)

        /* "src/nti/externalization/datastructures.py":376
 *             if not isinstance(key, str):
 *                 # fixup
 *                 if hasattr(ext_self, '_p_changed'):             # <<<<<<<<<<<<<<
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):
 */
      }

      /* "src/nti/externalization/datastructures.py":378
 *                 if hasattr(ext_self, '_p_changed'):
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):             # <<<<<<<<<<<<<<
 *                     if not isinstance(k, str):
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 */
      __pyx_t_2 = PySequence_List(__pyx_v_ext_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 378, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      for (;;) {
        if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_11); __Pyx_INCREF(__pyx_t_2); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 378, __pyx_L1_error)
        #else
        __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 378, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
        __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_2);
        __pyx_t_2 = 0;

        /* "src/nti/externalization/datastructures.py":379
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):
 *                     if not isinstance(k, str):             # <<<<<<<<<<<<<<
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 *                         val = ext_dict.pop(k)
 */
        __pyx_t_9 = PyString_Check(__pyx_v_k); 
        __pyx_t_10 = ((!(__pyx_t_9 != 0)) != 0);
        if (__pyx_t_10) {

          /* "src/nti/externalization/datastructures.py":380
 *                 for k in list(ext_dict):
 *                     if not isinstance(k, str):
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')             # <<<<<<<<<<<<<<
 *                         val = ext_dict.pop(k)
 *                         ext_dict[new_k] = val
 */
          __pyx_t_10 = PyBytes_Check(__pyx_v_k); 
          if (((!(__pyx_t_10 != 0)) != 0)) {
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_k, __pyx_n_s_encode); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 380, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            __pyx_t_8 = 0;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
                __pyx_t_8 = 1;
              }
            }
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_n_s_ascii};
              __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 380, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            }
            __pyx_t_2 = __pyx_t_4;
            __pyx_t_4 = 0;
          } else {
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_k, __pyx_n_s_decode); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 380, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            __pyx_t_8 = 0;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
                __pyx_t_8 = 1;
              }
            }
            {
              PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_n_s_ascii};
              __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
              __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
              if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 380, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_4);
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            }
            __pyx_t_2 = __pyx_t_4;
            __pyx_t_4 = 0;
          }
          __Pyx_XDECREF_SET(__pyx_v_new_k, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "src/nti/externalization/datastructures.py":381
 *                     if not isinstance(k, str):
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 *                         val = ext_dict.pop(k)             # <<<<<<<<<<<<<<
 *                         ext_dict[new_k] = val
 * 
 */
          if (unlikely(__pyx_v_ext_dict == Py_None)) {
            PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "pop");
            __PYX_ERR(0, 381, __pyx_L1_error)
          }
          __pyx_t_2 = __Pyx_PyDict_Pop(__pyx_v_ext_dict, __pyx_v_k, ((PyObject *)NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 381, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_XDECREF_SET(__pyx_v_val, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "src/nti/externalization/datastructures.py":382
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 *                         val = ext_dict.pop(k)
 *                         ext_dict[new_k] = val             # <<<<<<<<<<<<<<
 * 
 *                 break
 */
          if (unlikely(__pyx_v_ext_dict == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
            __PYX_ERR(0, 382, __pyx_L1_error)
          }
          if (unlikely(PyDict_SetItem(__pyx_v_ext_dict, __pyx_v_new_k, __pyx_v_val) < 0)) __PYX_ERR(0, 382, __pyx_L1_error)

          /* "src/nti/externalization/datastructures.py":379
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):
 *                     if not isinstance(k, str):             # <<<<<<<<<<<<<<
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 *                         val = ext_dict.pop(k)
 */
        }

        /* "src/nti/externalization/datastructures.py":378
 *                 if hasattr(ext_self, '_p_changed'):
 *                     ext_self._p_changed = 1
 *                 for k in list(ext_dict):             # <<<<<<<<<<<<<<
 *                     if not isinstance(k, str):
 *                         new_k = k.encode('ascii') if not isinstance(k, bytes) else k.decode('ascii')
 */
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "src/nti/externalization/datastructures.py":384
 *                         ext_dict[new_k] = val
 * 
 *                 break             # <<<<<<<<<<<<<<
 *         return frozenset(ext_dict)
 * 
 */
      goto __pyx_L4_break;

      /* "src/nti/externalization/datastructures.py":374
 *         # fixup is needed
 *         for key in ext_dict:
 *             if not isinstance(key, str):             # <<<<<<<<<<<<<<
 *                 # fixup
 *                 if hasattr(ext_self, '_p_changed'):
 */
    }
  }
  __pyx_L4_break:;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":385
 * 
 *                 break
 *         return frozenset(ext_dict)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyFrozenSet_New(__pyx_v_ext_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":362
 *         return self.context
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         # Be sure that this returns native strings, even if the dict
 *         # has unicode (Python 2) or bytes (Python 3) values.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ext_dict);
  __Pyx_XDECREF(__pyx_v_ext_self);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_XDECREF(__pyx_v_k);
  __Pyx_XDECREF(__pyx_v_new_k);
  __Pyx_XDECREF(__pyx_v_val);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_4_ext_all_possible_keys, "_ExternalizableInstanceDict._ext_all_possible_keys(self) -> frozenset");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys = {"_ext_all_possible_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_4_ext_all_possible_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_all_possible_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_4_ext_all_possible_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_4_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self) {
  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("_ext_all_possible_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_all_possible_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":387
 *         return frozenset(ext_dict)
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr *__pyx_optional_args) {
  PyObject *__pyx_v_default = __pyx_k__5;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default = __pyx_optional_args->__pyx_default;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_getattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_default};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 387, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":388
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 *         if default is NotGiven:             # <<<<<<<<<<<<<<
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)
 */
  __pyx_t_6 = (__pyx_v_default == __pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":389
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 *         if default is NotGiven:
 *             return getattr(ext_self, k)             # <<<<<<<<<<<<<<
 *         return getattr(ext_self, k, default)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_GetAttr(__pyx_v_ext_self, __pyx_v_k); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/nti/externalization/datastructures.py":388
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 *         if default is NotGiven:             # <<<<<<<<<<<<<<
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)
 */
  }

  /* "src/nti/externalization/datastructures.py":390
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_ext_self, __pyx_v_k, __pyx_v_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":387
 *         return frozenset(ext_dict)
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_6_ext_getattr, "_ExternalizableInstanceDict._ext_getattr(self, ext_self, k, default=NotGiven)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr = {"_ext_getattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_6_ext_getattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_default = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_getattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #endif
    PyObject* values[3] = {0,0,0};
    values[2] = __pyx_k__5;
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, 1); __PYX_ERR(0, 387, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[2] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_getattr") < 0)) __PYX_ERR(0, 387, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_default = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 387, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_6_ext_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_6_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_default = __pyx_v_default;
  __pyx_t_1 = __pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->__pyx_base._ext_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":392
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         setattr(ext_self, k, value)
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_setattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_setattr", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_setattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 392, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 392, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":393
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 *         setattr(ext_self, k, value)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):
 */
  __pyx_t_6 = PyObject_SetAttr(__pyx_v_ext_self, __pyx_v_k, __pyx_v_value); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 393, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":392
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         setattr(ext_self, k, value)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_8_ext_setattr, "_ExternalizableInstanceDict._ext_setattr(self, ext_self, k, value)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr = {"_ext_setattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_8_ext_setattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_setattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #endif
    PyObject* values[3] = {0,0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 392, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 392, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 1); __PYX_ERR(0, 392, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 392, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 2); __PYX_ERR(0, 392, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_setattr") < 0)) __PYX_ERR(0, 392, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 392, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_8_ext_setattr(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_8_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value) {
  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("_ext_setattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_setattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":395
 *         setattr(ext_self, k, value)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_accept_update_key", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_accept_update_key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 395, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 395, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":396
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):
 *         return (             # <<<<<<<<<<<<<<
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 *             or (self._update_accepts_type_attrs and hasattr(ext_self, k))
 */
  __Pyx_XDECREF(__pyx_r);

  /* "src/nti/externalization/datastructures.py":397
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)             # <<<<<<<<<<<<<<
 *             or (self._update_accepts_type_attrs and hasattr(ext_self, k))
 *         )
 */
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict));
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ext_accept_update_key); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys};
    __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 397, __pyx_L1_error)
  if (!__pyx_t_6) {
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L3_bool_binop_done;
  }

  /* "src/nti/externalization/datastructures.py":398
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 *             or (self._update_accepts_type_attrs and hasattr(ext_self, k))             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_update_accepts_type_attrs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 398, __pyx_L1_error)
  if (__pyx_t_6) {
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_HasAttr(__pyx_v_ext_self, __pyx_v_k); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 398, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":395
 *         setattr(ext_self, k, value)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_10_ext_accept_update_key, "_ExternalizableInstanceDict._ext_accept_update_key(self, k, ext_self, ext_keys)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key = {"_ext_accept_update_key", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_10_ext_accept_update_key};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_ext_keys = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_accept_update_key (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_k,&__pyx_n_s_ext_self,&__pyx_n_s_ext_keys_2,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_k,&__pyx_n_s_ext_self,&__pyx_n_s_ext_keys_2,0};
    #endif
    PyObject* values[3] = {0,0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, 1); __PYX_ERR(0, 395, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_keys_2)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 395, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, 2); __PYX_ERR(0, 395, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_accept_update_key") < 0)) __PYX_ERR(0, 395, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v_k = values[0];
    __pyx_v_ext_self = values[1];
    __pyx_v_ext_keys = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_accept_update_key", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 395, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_10_ext_accept_update_key(((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)__pyx_v_self), __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_10_ext_accept_update_key(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *__pyx_v_self, PyObject *__pyx_v_k, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_ext_keys) {
  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("_ext_accept_update_key", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_accept_update_key(__pyx_v_self, __pyx_v_k, __pyx_v_ext_self, __pyx_v_ext_keys, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures._ExternalizableInstanceDict._ext_accept_update_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":430
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin._ext_replacement`."
 *         return self
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_1_ext_replacement(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict__ext_replacement, "ExternalizableInstanceDict._ext_replacement(self)\nSee `ExternalizableDictionaryMixin._ext_replacement`.");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_1_ext_replacement = {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_1_ext_replacement, METH_O, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict__ext_replacement};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_1_ext_replacement(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict__ext_replacement(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict__ext_replacement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement", 0);

  /* "src/nti/externalization/datastructures.py":432
 *     def _ext_replacement(self):
 *         "See `ExternalizableDictionaryMixin._ext_replacement`."
 *         return self             # <<<<<<<<<<<<<<
 * 
 *     def __make_io(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self);
  __pyx_r = __pyx_v_self;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":430
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin._ext_replacement`."
 *         return self
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":434
 *         return self
 * 
 *     def __make_io(self):             # <<<<<<<<<<<<<<
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_3__make_io(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_2__make_io, "ExternalizableInstanceDict.__make_io(self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_3__make_io = {"__make_io", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_3__make_io, METH_O, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_2__make_io};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_3__make_io(PyObject *__pyx_self, PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__make_io (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_2__make_io(__pyx_self, ((PyObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_2__make_io(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__make_io", 0);

  /* "src/nti/externalization/datastructures.py":435
 * 
 *     def __make_io(self):
 *         return _ExternalizableInstanceDict(self._ext_replacement())             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ext_replacement); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_3, };
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":434
 *         return self
 * 
 *     def __make_io(self):             # <<<<<<<<<<<<<<
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.__make_io", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":437
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         # here if we didn't have the attribute. Does our IO?
 *         return getattr(self.__make_io(), name)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_4__getattr__, "ExternalizableInstanceDict.__getattr__(self, name)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_5__getattr__ = {"__getattr__", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_5__getattr__, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_4__getattr__};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_5__getattr__(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_name,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_name,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 437, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_name)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 437, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, 1); __PYX_ERR(0, 437, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__getattr__") < 0)) __PYX_ERR(0, 437, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_self = values[0];
    __pyx_v_name = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 437, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_4__getattr__(__pyx_self, __pyx_v_self, __pyx_v_name);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_4__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "src/nti/externalization/datastructures.py":439
 *     def __getattr__(self, name):
 *         # here if we didn't have the attribute. Does our IO?
 *         return getattr(self.__make_io(), name)             # <<<<<<<<<<<<<<
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ExternalizableInstanceDict__mak); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_3, };
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_2 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":437
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         # here if we didn't have the attribute. Does our IO?
 *         return getattr(self.__make_io(), name)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":441
 *         return getattr(self.__make_io(), name)
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.updateFromExternalObject`"
 *         self.__make_io().updateFromExternalObject(parsed)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_7updateFromExternalObject(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_6updateFromExternalObject, "ExternalizableInstanceDict.updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs)\nSee `~.IInternalObjectIO.updateFromExternalObject`");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_7updateFromExternalObject = {"updateFromExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_7updateFromExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_6updateFromExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_7updateFromExternalObject(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_parsed = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("updateFromExternalObject (wrapper)", 0);
  __pyx_v_unused_kwargs = PyDict_New(); if (unlikely(!__pyx_v_unused_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_unused_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parsed,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parsed,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 441, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_parsed)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 441, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("updateFromExternalObject", 0, 2, 2, 1); __PYX_ERR(0, 441, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 2) ? kwd_pos_args : 2;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_unused_kwargs, values + 0, used_pos_args, "updateFromExternalObject") < 0)) __PYX_ERR(0, 441, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs < 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_self = values[0];
    __pyx_v_parsed = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("updateFromExternalObject", 0, 2, 2, __pyx_nargs); __PYX_ERR(0, 441, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_6updateFromExternalObject(__pyx_self, __pyx_v_self, __pyx_v_parsed, __pyx_v_unused_args, __pyx_v_unused_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_unused_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_6updateFromExternalObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("updateFromExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":443
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 *         "See `~.IInternalObjectIO.updateFromExternalObject`"
 *         self.__make_io().updateFromExternalObject(parsed)             # <<<<<<<<<<<<<<
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ExternalizableInstanceDict__mak); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_4, };
    __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_updateFromExternalObject); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_parsed};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":441
 *         return getattr(self.__make_io(), name)
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.updateFromExternalObject`"
 *         self.__make_io().updateFromExternalObject(parsed)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":445
 *         self.__make_io().updateFromExternalObject(parsed)
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`."
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_9toExternalObject(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_8toExternalObject, "ExternalizableInstanceDict.toExternalObject(self, mergeFrom=None, *args, **kwargs)\nSee `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`.");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_9toExternalObject = {"toExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_9toExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_8toExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_9toExternalObject(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_mergeFrom = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalObject (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __pyx_v_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
  if (unlikely(!__pyx_v_args)) {
    __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 445, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[1] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 445, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 2) ? kwd_pos_args : 2;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, used_pos_args, "toExternalObject") < 0)) __PYX_ERR(0, 445, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        default:
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        case  0:
        goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_self = values[0];
    __pyx_v_mergeFrom = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("toExternalObject", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 445, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_8toExternalObject(__pyx_self, __pyx_v_self, __pyx_v_mergeFrom, __pyx_v_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_8toExternalObject(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  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("toExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":447
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):
 *         "See `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`."
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_toExternalDictionary); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_mergeFrom);
  __Pyx_GIVEREF(__pyx_v_mergeFrom);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_mergeFrom);
  __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":445
 *         self.__make_io().updateFromExternalObject(parsed)
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`."
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":449
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin.toExternalDictionary`"
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_11toExternalDictionary(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_10toExternalDictionary, "ExternalizableInstanceDict.toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs)\nSee `ExternalizableDictionaryMixin.toExternalDictionary`");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_11toExternalDictionary = {"toExternalDictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_11toExternalDictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_10toExternalDictionary};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_11toExternalDictionary(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_self = 0;
  PyObject *__pyx_v_mergeFrom = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalDictionary (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 2, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 449, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[1] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 449, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 2) ? kwd_pos_args : 2;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, used_pos_args, "toExternalDictionary") < 0)) __PYX_ERR(0, 449, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        default:
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        case  0:
        goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_self = values[0];
    __pyx_v_mergeFrom = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("toExternalDictionary", 0, 1, 2, __pyx_nargs); __PYX_ERR(0, 449, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_10toExternalDictionary(__pyx_self, __pyx_v_self, __pyx_v_mergeFrom, __pyx_v_unused_args, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_10toExternalDictionary(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_mergeFrom, CYTHON_UNUSED PyObject *__pyx_v_unused_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("toExternalDictionary", 0);

  /* "src/nti/externalization/datastructures.py":451
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):
 *         "See `ExternalizableDictionaryMixin.toExternalDictionary`"
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)             # <<<<<<<<<<<<<<
 * 
 *     __repr__ = make_repr()
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_ExternalizableInstanceDict__mak); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_3, };
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_toExternalDictionary); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_mergeFrom);
  __Pyx_GIVEREF(__pyx_v_mergeFrom);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_mergeFrom);
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_v_kwargs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":449
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin.toExternalDictionary`"
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("nti.externalization._datastructures.ExternalizableInstanceDict.toExternalDictionary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":463
 *     __external_factory_wants_arg__ = True
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def default_factory(value):
 *         return value
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_1default_factory(PyObject *__pyx_self, PyObject *__pyx_v_value); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_default_factory, "_AnonymousDictFactory.default_factory(value)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_1default_factory = {"default_factory", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_1default_factory, METH_O, __pyx_doc_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_default_factory};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_1default_factory(PyObject *__pyx_self, PyObject *__pyx_v_value) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("default_factory (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_default_factory(__pyx_self, ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_default_factory(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("default_factory", 0);

  /* "src/nti/externalization/datastructures.py":465
 *     @staticmethod
 *     def default_factory(value):
 *         return value             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_value);
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":463
 *     __external_factory_wants_arg__ = True
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def default_factory(value):
 *         return value
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":504
 *     _ext_iface_upper_bound = None
 * 
 *     def __init__(self, context, iface_upper_bound=None, validate_after_update=True):             # <<<<<<<<<<<<<<
 *         """
 *         :param iface_upper_bound: The upper bound on the schema to use
 */

/* Python wrapper */
static int __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__, "\n        :param iface_upper_bound: The upper bound on the schema to use\n            to externalize `ext_self`; we will use the most derived sub-interface\n            of this interface that the object implements. Subclasses can either override this\n            constructor to pass this parameter (while taking one argument themselves,\n            to be usable as an adapter), or they can define the class\n            attribute ``_ext_iface_upper_bound``\n        :param bool validate_after_update: If ``True`` (the default) then the entire\n            schema will be validated after an object has been updated with\n            :meth:`update_from_external_object`, not just the keys that were assigned.\n        ");
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__;
#endif
static int __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_context = 0;
  PyObject *__pyx_v_iface_upper_bound = 0;
  PyObject *__pyx_v_validate_after_update = 0;
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_context,&__pyx_n_s_iface_upper_bound,&__pyx_n_s_validate_after_update,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_context,&__pyx_n_s_iface_upper_bound,&__pyx_n_s_validate_after_update,0};
    #endif
    PyObject* values[3] = {0,0,0};
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)Py_True);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_VARARGS(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_context)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 504, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_iface_upper_bound);
          if (value) { values[1] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 504, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_VARARGS(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_validate_after_update);
          if (value) { values[2] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 504, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__init__") < 0)) __PYX_ERR(0, 504, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_VARARGS(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_VARARGS(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_VARARGS(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_context = values[0];
    __pyx_v_iface_upper_bound = values[1];
    __pyx_v_validate_after_update = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, __pyx_nargs); __PYX_ERR(0, 504, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_context, __pyx_v_iface_upper_bound, __pyx_v_validate_after_update);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_context, PyObject *__pyx_v_iface_upper_bound, PyObject *__pyx_v_validate_after_update) {
  struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *__pyx_v_cache = NULL;
  PyObject *__pyx_v_keys = NULL;
  PyObject *__pyx_v_primitives = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "src/nti/externalization/datastructures.py":516
 *             :meth:`update_from_external_object`, not just the keys that were assigned.
 *         """
 *         AbstractDynamicObjectIO.__init__(self)             # <<<<<<<<<<<<<<
 *         self._ext_self = context
 *         # Cache all of this data that we use. It's required often and, if not quite a bottleneck,
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, ((PyObject *)__pyx_v_self)};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":517
 *         """
 *         AbstractDynamicObjectIO.__init__(self)
 *         self._ext_self = context             # <<<<<<<<<<<<<<
 *         # Cache all of this data that we use. It's required often and, if not quite a bottleneck,
 *         # does show up in the profiling data
 */
  __Pyx_INCREF(__pyx_v_context);
  __Pyx_GIVEREF(__pyx_v_context);
  __Pyx_GOTREF(__pyx_v_self->_ext_self);
  __Pyx_DECREF(__pyx_v_self->_ext_self);
  __pyx_v_self->_ext_self = __pyx_v_context;

  /* "src/nti/externalization/datastructures.py":520
 *         # Cache all of this data that we use. It's required often and, if not quite a bottleneck,
 *         # does show up in the profiling data
 *         cache = cache_for(self, context)             # <<<<<<<<<<<<<<
 *         if cache.iface is None:
 *             cache.iface = self._ext_find_schema(
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_3nti_15externalization_17__interface_cache_cache_for(((PyObject *)__pyx_v_self), __pyx_v_context, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cache = ((struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":521
 *         # does show up in the profiling data
 *         cache = cache_for(self, context)
 *         if cache.iface is None:             # <<<<<<<<<<<<<<
 *             cache.iface = self._ext_find_schema(
 *                 context,
 */
  __pyx_t_5 = (__pyx_v_cache->iface == Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "src/nti/externalization/datastructures.py":524
 *             cache.iface = self._ext_find_schema(
 *                 context,
 *                 iface_upper_bound if iface_upper_bound is not None else self._ext_iface_upper_bound             # <<<<<<<<<<<<<<
 *             )
 *         self._iface = cache.iface
 */
    __pyx_t_6 = (__pyx_v_iface_upper_bound != Py_None);
    if ((__pyx_t_6 != 0)) {
      __Pyx_INCREF(__pyx_v_iface_upper_bound);
      __pyx_t_1 = __pyx_v_iface_upper_bound;
    } else {
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_iface_upper_bound); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 524, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __pyx_t_2;
      __pyx_t_2 = 0;
    }

    /* "src/nti/externalization/datastructures.py":522
 *         cache = cache_for(self, context)
 *         if cache.iface is None:
 *             cache.iface = self._ext_find_schema(             # <<<<<<<<<<<<<<
 *                 context,
 *                 iface_upper_bound if iface_upper_bound is not None else self._ext_iface_upper_bound
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->_ext_find_schema(__pyx_v_self, __pyx_v_context, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 522, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_cache->iface);
    __Pyx_DECREF(__pyx_v_cache->iface);
    __pyx_v_cache->iface = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":521
 *         # does show up in the profiling data
 *         cache = cache_for(self, context)
 *         if cache.iface is None:             # <<<<<<<<<<<<<<
 *             cache.iface = self._ext_find_schema(
 *                 context,
 */
  }

  /* "src/nti/externalization/datastructures.py":526
 *                 iface_upper_bound if iface_upper_bound is not None else self._ext_iface_upper_bound
 *             )
 *         self._iface = cache.iface             # <<<<<<<<<<<<<<
 * 
 *         if not cache.ext_primitive_out_ivars:
 */
  __pyx_t_2 = __pyx_v_cache->iface;
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->_iface);
  __Pyx_DECREF(__pyx_v_self->_iface);
  __pyx_v_self->_iface = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":528
 *         self._iface = cache.iface
 * 
 *         if not cache.ext_primitive_out_ivars:             # <<<<<<<<<<<<<<
 *             keys = self._ext_find_primitive_keys()
 *             primitives = self._ext_primitive_out_ivars_
 */
  __pyx_t_6 = (__pyx_v_cache->ext_primitive_out_ivars != Py_None)&&(PySet_GET_SIZE(__pyx_v_cache->ext_primitive_out_ivars) != 0);
  __pyx_t_5 = ((!__pyx_t_6) != 0);
  if (__pyx_t_5) {

    /* "src/nti/externalization/datastructures.py":529
 * 
 *         if not cache.ext_primitive_out_ivars:
 *             keys = self._ext_find_primitive_keys()             # <<<<<<<<<<<<<<
 *             primitives = self._ext_primitive_out_ivars_
 *             if not isinstance(primitives, frozenset):
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->_ext_find_primitive_keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_keys = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":530
 *         if not cache.ext_primitive_out_ivars:
 *             keys = self._ext_find_primitive_keys()
 *             primitives = self._ext_primitive_out_ivars_             # <<<<<<<<<<<<<<
 *             if not isinstance(primitives, frozenset):
 *                 warnings.warn(
 */
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_primitive_out_ivars); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_primitives = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":531
 *             keys = self._ext_find_primitive_keys()
 *             primitives = self._ext_primitive_out_ivars_
 *             if not isinstance(primitives, frozenset):             # <<<<<<<<<<<<<<
 *                 warnings.warn(
 *                     "Class %r should have a frozenset for _ext_primitive_out_ivars_."
 */
    __pyx_t_5 = PyFrozenSet_Check(__pyx_v_primitives); 
    __pyx_t_6 = ((!(__pyx_t_5 != 0)) != 0);
    if (__pyx_t_6) {

      /* "src/nti/externalization/datastructures.py":532
 *             primitives = self._ext_primitive_out_ivars_
 *             if not isinstance(primitives, frozenset):
 *                 warnings.warn(             # <<<<<<<<<<<<<<
 *                     "Class %r should have a frozenset for _ext_primitive_out_ivars_."
 *                     "Make InterfaceObjectIO._ext_primitive_out_ivars_ the LHS of the | operator."
 */
      __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_warnings); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 532, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_warn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 532, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "src/nti/externalization/datastructures.py":535
 *                     "Class %r should have a frozenset for _ext_primitive_out_ivars_."
 *                     "Make InterfaceObjectIO._ext_primitive_out_ivars_ the LHS of the | operator."
 *                     "This will be a TypeError in the future" % (             # <<<<<<<<<<<<<<
 *                         type(self)
 *                     ),
 */
      __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Class_r_should_have_a_frozenset, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 535, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "src/nti/externalization/datastructures.py":538
 *                         type(self)
 *                     ),
 *                     FutureWarning,             # <<<<<<<<<<<<<<
 *                 )
 *                 primitives = frozenset(primitives)
 */
      __pyx_t_7 = NULL;
      __pyx_t_4 = 0;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_4 = 1;
        }
      }
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_7, __pyx_t_1, __pyx_builtin_FutureWarning};
        __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 532, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "src/nti/externalization/datastructures.py":540
 *                     FutureWarning,
 *                 )
 *                 primitives = frozenset(primitives)             # <<<<<<<<<<<<<<
 *             cache.ext_primitive_out_ivars = primitives | keys
 *         self._ext_primitive_out_ivars_ = cache.ext_primitive_out_ivars
 */
      __pyx_t_2 = __Pyx_PyFrozenSet_New(__pyx_v_primitives); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 540, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_primitives, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "src/nti/externalization/datastructures.py":531
 *             keys = self._ext_find_primitive_keys()
 *             primitives = self._ext_primitive_out_ivars_
 *             if not isinstance(primitives, frozenset):             # <<<<<<<<<<<<<<
 *                 warnings.warn(
 *                     "Class %r should have a frozenset for _ext_primitive_out_ivars_."
 */
    }

    /* "src/nti/externalization/datastructures.py":541
 *                 )
 *                 primitives = frozenset(primitives)
 *             cache.ext_primitive_out_ivars = primitives | keys             # <<<<<<<<<<<<<<
 *         self._ext_primitive_out_ivars_ = cache.ext_primitive_out_ivars
 * 
 */
    __pyx_t_2 = PyNumber_Or(__pyx_v_primitives, __pyx_v_keys); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(PyFrozenSet_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("frozenset", __pyx_t_2))) __PYX_ERR(0, 541, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_cache->ext_primitive_out_ivars);
    __Pyx_DECREF(__pyx_v_cache->ext_primitive_out_ivars);
    __pyx_v_cache->ext_primitive_out_ivars = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":528
 *         self._iface = cache.iface
 * 
 *         if not cache.ext_primitive_out_ivars:             # <<<<<<<<<<<<<<
 *             keys = self._ext_find_primitive_keys()
 *             primitives = self._ext_primitive_out_ivars_
 */
  }

  /* "src/nti/externalization/datastructures.py":542
 *                 primitives = frozenset(primitives)
 *             cache.ext_primitive_out_ivars = primitives | keys
 *         self._ext_primitive_out_ivars_ = cache.ext_primitive_out_ivars             # <<<<<<<<<<<<<<
 * 
 *         self.validate_after_update = validate_after_update
 */
  __pyx_t_2 = __pyx_v_cache->ext_primitive_out_ivars;
  __Pyx_INCREF(__pyx_t_2);
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_primitive_out_ivars, __pyx_t_2) < 0) __PYX_ERR(0, 542, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":544
 *         self._ext_primitive_out_ivars_ = cache.ext_primitive_out_ivars
 * 
 *         self.validate_after_update = validate_after_update             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_validate_after_update); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 544, __pyx_L1_error)
  __pyx_v_self->validate_after_update = __pyx_t_6;

  /* "src/nti/externalization/datastructures.py":504
 *     _ext_iface_upper_bound = None
 * 
 *     def __init__(self, context, iface_upper_bound=None, validate_after_update=True):             # <<<<<<<<<<<<<<
 *         """
 *         :param iface_upper_bound: The upper bound on the schema to use
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cache);
  __Pyx_XDECREF(__pyx_v_keys);
  __Pyx_XDECREF(__pyx_v_primitives);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":546
 *         self.validate_after_update = validate_after_update
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s.%s for %r at 0x%x>' % (
 *             type(self).__module__, type(self).__name__,
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_3__repr__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_2__repr__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_2__repr__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  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("__repr__", 0);

  /* "src/nti/externalization/datastructures.py":547
 * 
 *     def __repr__(self):
 *         return '<%s.%s for %r at 0x%x>' % (             # <<<<<<<<<<<<<<
 *             type(self).__module__, type(self).__name__,
 *             self.schema,
 */
  __Pyx_XDECREF(__pyx_r);

  /* "src/nti/externalization/datastructures.py":548
 *     def __repr__(self):
 *         return '<%s.%s for %r at 0x%x>' % (
 *             type(self).__module__, type(self).__name__,             # <<<<<<<<<<<<<<
 *             self.schema,
 *             id(self)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))), __pyx_n_s_module); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))), __pyx_n_s_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "src/nti/externalization/datastructures.py":549
 *         return '<%s.%s for %r at 0x%x>' % (
 *             type(self).__module__, type(self).__name__,
 *             self.schema,             # <<<<<<<<<<<<<<
 *             id(self)
 *         )
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_schema); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "src/nti/externalization/datastructures.py":550
 *             type(self).__module__, type(self).__name__,
 *             self.schema,
 *             id(self)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/nti/externalization/datastructures.py":548
 *     def __repr__(self):
 *         return '<%s.%s for %r at 0x%x>' % (
 *             type(self).__module__, type(self).__name__,             # <<<<<<<<<<<<<<
 *             self.schema,
 *             id(self)
 */
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;

  /* "src/nti/externalization/datastructures.py":547
 * 
 *     def __repr__(self):
 *         return '<%s.%s for %r at 0x%x>' % (             # <<<<<<<<<<<<<<
 *             type(self).__module__, type(self).__name__,
 *             self.schema,
 */
  __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_s_s_for_r_at_0x_x, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":546
 *         self.validate_after_update = validate_after_update
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return '<%s.%s for %r at 0x%x>' % (
 *             type(self).__module__, type(self).__name__,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":553
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def schema(self):
 *         """
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema___get__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "src/nti/externalization/datastructures.py":558
 *         The schema we will use to guide the process
 *         """
 *         return self._iface             # <<<<<<<<<<<<<<
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_iface);
  __pyx_r = __pyx_v_self->_iface;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":553
 *         )
 * 
 *     @property             # <<<<<<<<<<<<<<
 *     def schema(self):
 *         """
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":560
 *         return self._iface
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_find_schema", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_find_schema); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 560, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_iface_upper_bound};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 560, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":561
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):
 *         return find_most_derived_interface(ext_self,             # <<<<<<<<<<<<<<
 *                                            iface_upper_bound,
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 */
  __Pyx_XDECREF(__pyx_r);

  /* "src/nti/externalization/datastructures.py":562
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,             # <<<<<<<<<<<<<<
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 * 
 */
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_ext_self);
  __Pyx_GIVEREF(__pyx_v_ext_self);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_ext_self);
  __Pyx_INCREF(__pyx_v_iface_upper_bound);
  __Pyx_GIVEREF(__pyx_v_iface_upper_bound);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_iface_upper_bound);

  /* "src/nti/externalization/datastructures.py":563
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))             # <<<<<<<<<<<<<<
 * 
 *     def _ext_find_primitive_keys(self):
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->_ext_schemas_to_consider(__pyx_v_self, __pyx_v_ext_self, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_possibilities, __pyx_t_3) < 0) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":561
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):
 *         return find_most_derived_interface(ext_self,             # <<<<<<<<<<<<<<
 *                                            iface_upper_bound,
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":560
 *         return self._iface
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_4_ext_find_schema, "InterfaceObjectIO._ext_find_schema(self, ext_self, iface_upper_bound)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema = {"_ext_find_schema", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_4_ext_find_schema};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_iface_upper_bound = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_find_schema (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_iface_upper_bound,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_iface_upper_bound,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 560, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_iface_upper_bound)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 560, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_find_schema", 1, 2, 2, 1); __PYX_ERR(0, 560, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_find_schema") < 0)) __PYX_ERR(0, 560, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_iface_upper_bound = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_find_schema", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 560, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_4_ext_find_schema(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_iface_upper_bound);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_4_ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound) {
  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("_ext_find_schema", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_schema(__pyx_v_self, __pyx_v_ext_self, __pyx_v_iface_upper_bound, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":565
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 * 
 *     def _ext_find_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         result = set()
 *         for n in self._ext_all_possible_keys():
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_n = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_field_type = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  Py_ssize_t __pyx_t_11;
  PyObject *(*__pyx_t_12)(PyObject *);
  int __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_find_primitive_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_find_primitive_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 565, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":566
 * 
 *     def _ext_find_primitive_keys(self):
 *         result = set()             # <<<<<<<<<<<<<<
 *         for n in self._ext_all_possible_keys():
 *             field = self._iface[n]
 */
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":567
 *     def _ext_find_primitive_keys(self):
 *         result = set()
 *         for n in self._ext_all_possible_keys():             # <<<<<<<<<<<<<<
 *             field = self._iface[n]
 *             field_type = getattr(field, '_type', None)
 */
  __pyx_t_6 = 0;
  __pyx_t_2 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._ext_all_possible_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_set_iterator(__pyx_t_2, 0, (&__pyx_t_7), (&__pyx_t_5)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_XDECREF(__pyx_t_1);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  while (1) {
    __pyx_t_8 = __Pyx_set_iter_next(__pyx_t_1, __pyx_t_7, &__pyx_t_6, &__pyx_t_3, __pyx_t_5);
    if (unlikely(__pyx_t_8 == 0)) break;
    if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":568
 *         result = set()
 *         for n in self._ext_all_possible_keys():
 *             field = self._iface[n]             # <<<<<<<<<<<<<<
 *             field_type = getattr(field, '_type', None)
 *             if field_type is not None:
 */
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_self->_iface, __pyx_v_n); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_field, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":569
 *         for n in self._ext_all_possible_keys():
 *             field = self._iface[n]
 *             field_type = getattr(field, '_type', None)             # <<<<<<<<<<<<<<
 *             if field_type is not None:
 *                 if isinstance(field_type, tuple):
 */
    __pyx_t_3 = __Pyx_GetAttr3(__pyx_v_field, __pyx_n_s_type, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_field_type, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":570
 *             field = self._iface[n]
 *             field_type = getattr(field, '_type', None)
 *             if field_type is not None:             # <<<<<<<<<<<<<<
 *                 if isinstance(field_type, tuple):
 *                     # Cython doesn't like a generator here
 */
    __pyx_t_9 = (__pyx_v_field_type != Py_None);
    __pyx_t_10 = (__pyx_t_9 != 0);
    if (__pyx_t_10) {

      /* "src/nti/externalization/datastructures.py":571
 *             field_type = getattr(field, '_type', None)
 *             if field_type is not None:
 *                 if isinstance(field_type, tuple):             # <<<<<<<<<<<<<<
 *                     # Cython doesn't like a generator here
 *                     # ("local variable 'field_type' referenced before assignment")
 */
      __pyx_t_10 = PyTuple_Check(__pyx_v_field_type); 
      __pyx_t_9 = (__pyx_t_10 != 0);
      if (__pyx_t_9) {

        /* "src/nti/externalization/datastructures.py":575
 *                     # ("local variable 'field_type' referenced before assignment")
 *                     # pylint:disable=use-a-generator
 *                     if all([issubclass(x, _primitives) for x in field_type]):             # <<<<<<<<<<<<<<
 *                         result.add(n)
 *                 elif issubclass(field_type, _primitives):
 */
        { /* enter inner scope */
          __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 575, __pyx_L10_error)
          __Pyx_GOTREF(__pyx_t_3);
          if (likely(PyList_CheckExact(__pyx_v_field_type)) || PyTuple_CheckExact(__pyx_v_field_type)) {
            __pyx_t_2 = __pyx_v_field_type; __Pyx_INCREF(__pyx_t_2); __pyx_t_11 = 0;
            __pyx_t_12 = NULL;
          } else {
            __pyx_t_11 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_field_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_2);
            __pyx_t_12 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 575, __pyx_L10_error)
          }
          for (;;) {
            if (likely(!__pyx_t_12)) {
              if (likely(PyList_CheckExact(__pyx_t_2))) {
                if (__pyx_t_11 >= PyList_GET_SIZE(__pyx_t_2)) break;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 575, __pyx_L10_error)
                #else
                __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_4);
                #endif
              } else {
                if (__pyx_t_11 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_11); __Pyx_INCREF(__pyx_t_4); __pyx_t_11++; if (unlikely(0 < 0)) __PYX_ERR(0, 575, __pyx_L10_error)
                #else
                __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_11); __pyx_t_11++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L10_error)
                __Pyx_GOTREF(__pyx_t_4);
                #endif
              }
            } else {
              __pyx_t_4 = __pyx_t_12(__pyx_t_2);
              if (unlikely(!__pyx_t_4)) {
                PyObject* exc_type = PyErr_Occurred();
                if (exc_type) {
                  if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
                  else __PYX_ERR(0, 575, __pyx_L10_error)
                }
                break;
              }
              __Pyx_GOTREF(__pyx_t_4);
            }
            __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_x, __pyx_t_4);
            __pyx_t_4 = 0;
            __pyx_t_4 = __pyx_v_3nti_15externalization_15_datastructures__primitives;
            __Pyx_INCREF(__pyx_t_4);
            __pyx_t_9 = PyObject_IsSubclass(__pyx_8genexpr1__pyx_v_x, __pyx_t_4); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 575, __pyx_L10_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 575, __pyx_L10_error)
            __Pyx_GOTREF(__pyx_t_4);
            if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 575, __pyx_L10_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
          goto __pyx_L13_exit_scope;
          __pyx_L10_error:;
          __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x); __pyx_8genexpr1__pyx_v_x = 0;
          goto __pyx_L1_error;
          __pyx_L13_exit_scope:;
        } /* exit inner scope */
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_all, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 575, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        if (__pyx_t_9) {

          /* "src/nti/externalization/datastructures.py":576
 *                     # pylint:disable=use-a-generator
 *                     if all([issubclass(x, _primitives) for x in field_type]):
 *                         result.add(n)             # <<<<<<<<<<<<<<
 *                 elif issubclass(field_type, _primitives):
 *                     result.add(n)
 */
          __pyx_t_13 = PySet_Add(__pyx_v_result, __pyx_v_n); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 576, __pyx_L1_error)

          /* "src/nti/externalization/datastructures.py":575
 *                     # ("local variable 'field_type' referenced before assignment")
 *                     # pylint:disable=use-a-generator
 *                     if all([issubclass(x, _primitives) for x in field_type]):             # <<<<<<<<<<<<<<
 *                         result.add(n)
 *                 elif issubclass(field_type, _primitives):
 */
        }

        /* "src/nti/externalization/datastructures.py":571
 *             field_type = getattr(field, '_type', None)
 *             if field_type is not None:
 *                 if isinstance(field_type, tuple):             # <<<<<<<<<<<<<<
 *                     # Cython doesn't like a generator here
 *                     # ("local variable 'field_type' referenced before assignment")
 */
        goto __pyx_L6;
      }

      /* "src/nti/externalization/datastructures.py":577
 *                     if all([issubclass(x, _primitives) for x in field_type]):
 *                         result.add(n)
 *                 elif issubclass(field_type, _primitives):             # <<<<<<<<<<<<<<
 *                     result.add(n)
 * 
 */
      __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures__primitives;
      __Pyx_INCREF(__pyx_t_2);
      __pyx_t_9 = PyObject_IsSubclass(__pyx_v_field_type, __pyx_t_2); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 577, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_10 = (__pyx_t_9 != 0);
      if (__pyx_t_10) {

        /* "src/nti/externalization/datastructures.py":578
 *                         result.add(n)
 *                 elif issubclass(field_type, _primitives):
 *                     result.add(n)             # <<<<<<<<<<<<<<
 * 
 *         return frozenset(result)
 */
        __pyx_t_13 = PySet_Add(__pyx_v_result, __pyx_v_n); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 578, __pyx_L1_error)

        /* "src/nti/externalization/datastructures.py":577
 *                     if all([issubclass(x, _primitives) for x in field_type]):
 *                         result.add(n)
 *                 elif issubclass(field_type, _primitives):             # <<<<<<<<<<<<<<
 *                     result.add(n)
 * 
 */
      }
      __pyx_L6:;

      /* "src/nti/externalization/datastructures.py":570
 *             field = self._iface[n]
 *             field_type = getattr(field, '_type', None)
 *             if field_type is not None:             # <<<<<<<<<<<<<<
 *                 if isinstance(field_type, tuple):
 *                     # Cython doesn't like a generator here
 */
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":580
 *                     result.add(n)
 * 
 *         return frozenset(result)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_schemas_to_consider(self, ext_self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyFrozenSet_New(__pyx_v_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":565
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 * 
 *     def _ext_find_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         result = set()
 *         for n in self._ext_all_possible_keys():
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_find_primitive_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_n);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_field_type);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_ext_find_primitive_keys, "InterfaceObjectIO._ext_find_primitive_keys(self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys = {"_ext_find_primitive_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_ext_find_primitive_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_find_primitive_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_ext_find_primitive_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_ext_find_primitive_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  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("_ext_find_primitive_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_primitive_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_find_primitive_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":582
 *         return frozenset(result)
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         return interface.providedBy(ext_self)
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_schemas_to_consider(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_schemas_to_consider", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_schemas_to_consider); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ext_self};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 582, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":583
 * 
 *     def _ext_schemas_to_consider(self, ext_self):
 *         return interface.providedBy(ext_self)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_interface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_providedBy); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_ext_self};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":582
 *         return frozenset(result)
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         return interface.providedBy(ext_self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_schemas_to_consider", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_8_ext_schemas_to_consider, "InterfaceObjectIO._ext_schemas_to_consider(self, ext_self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider = {"_ext_schemas_to_consider", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider, METH_O, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_8_ext_schemas_to_consider};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_schemas_to_consider (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_8_ext_schemas_to_consider(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), ((PyObject *)__pyx_v_ext_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_8_ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self) {
  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("_ext_schemas_to_consider", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_schemas_to_consider(__pyx_v_self, __pyx_v_ext_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_schemas_to_consider", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":585
 *         return interface.providedBy(ext_self)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self._ext_self
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_replacement", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_replacement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 585, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":586
 * 
 *     def _ext_replacement(self):
 *         return self._ext_self             # <<<<<<<<<<<<<<
 * 
 *     def _ext_all_possible_keys(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ext_self);
  __pyx_r = __pyx_v_self->_ext_self;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":585
 *         return interface.providedBy(ext_self)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self._ext_self
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_10_ext_replacement, "InterfaceObjectIO._ext_replacement(self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement = {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_10_ext_replacement};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_replacement (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_10_ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_10_ext_replacement(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  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("_ext_replacement", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_replacement(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_replacement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":588
 *         return self._ext_self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, int __pyx_skip_dispatch) {
  struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *__pyx_v_cache = NULL;
  PyObject *__pyx_v_iface = NULL;
  PyObject *__pyx_v_is_method = NULL;
  PyObject *__pyx_8genexpr2__pyx_v_n = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_all_possible_keys", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_all_possible_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[1] = {__pyx_t_4, };
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        if (!(likely(PyFrozenSet_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("frozenset", __pyx_t_2))) __PYX_ERR(0, 588, __pyx_L1_error)
        __pyx_r = ((PyObject*)__pyx_t_2);
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":589
 * 
 *     def _ext_all_possible_keys(self):
 *         cache = cache_for(self, self._ext_self)             # <<<<<<<<<<<<<<
 *         if cache.ext_all_possible_keys is None:
 *             iface = self._iface
 */
  __pyx_t_1 = __pyx_v_self->_ext_self;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)__pyx_f_3nti_15externalization_17__interface_cache_cache_for(((PyObject *)__pyx_v_self), __pyx_t_1, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_cache = ((struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":590
 *     def _ext_all_possible_keys(self):
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:             # <<<<<<<<<<<<<<
 *             iface = self._iface
 *             is_method = interface.interfaces.IMethod.providedBy
 */
  __pyx_t_6 = (__pyx_v_cache->ext_all_possible_keys == ((PyObject*)Py_None));
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":591
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:
 *             iface = self._iface             # <<<<<<<<<<<<<<
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([
 */
    __pyx_t_2 = __pyx_v_self->_iface;
    __Pyx_INCREF(__pyx_t_2);
    __pyx_v_iface = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":592
 *         if cache.ext_all_possible_keys is None:
 *             iface = self._iface
 *             is_method = interface.interfaces.IMethod.providedBy             # <<<<<<<<<<<<<<
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_interface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_interfaces); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_IMethod); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_providedBy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_is_method = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":593
 *             iface = self._iface
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([             # <<<<<<<<<<<<<<
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])
 */
    { /* enter inner scope */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "src/nti/externalization/datastructures.py":594
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)             # <<<<<<<<<<<<<<
 *                 if (not is_method(iface[n])
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 */
      __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_iface, __pyx_n_s_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 594, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 594, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_all, Py_True) < 0) __PYX_ERR(0, 594, __pyx_L6_error)
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
        __pyx_t_3 = __pyx_t_4; __Pyx_INCREF(__pyx_t_3); __pyx_t_8 = 0;
        __pyx_t_9 = NULL;
      } else {
        __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 594, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_3); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 594, __pyx_L6_error)
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      for (;;) {
        if (likely(!__pyx_t_9)) {
          if (likely(PyList_CheckExact(__pyx_t_3))) {
            if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_8); __Pyx_INCREF(__pyx_t_4); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 594, __pyx_L6_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L6_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          } else {
            if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8); __Pyx_INCREF(__pyx_t_4); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 594, __pyx_L6_error)
            #else
            __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L6_error)
            __Pyx_GOTREF(__pyx_t_4);
            #endif
          }
        } else {
          __pyx_t_4 = __pyx_t_9(__pyx_t_3);
          if (unlikely(!__pyx_t_4)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 594, __pyx_L6_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_4);
        }
        __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_n, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "src/nti/externalization/datastructures.py":595
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])             # <<<<<<<<<<<<<<
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 *             ])
 */
        __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_v_iface, __pyx_8genexpr2__pyx_v_n); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 595, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_is_method);
        __pyx_t_10 = __pyx_v_is_method; __pyx_t_11 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_10))) {
          __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_10);
          if (likely(__pyx_t_11)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_10);
            __Pyx_INCREF(__pyx_t_11);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_10, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_11, __pyx_t_2};
          __pyx_t_4 = __Pyx_PyObject_FastCall(__pyx_t_10, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 595, __pyx_L6_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        }
        __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 595, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_12 = ((!__pyx_t_6) != 0);
        if (__pyx_t_12) {
        } else {
          __pyx_t_7 = __pyx_t_12;
          goto __pyx_L10_bool_binop_done;
        }

        /* "src/nti/externalization/datastructures.py":596
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))             # <<<<<<<<<<<<<<
 *             ])
 *         return cache.ext_all_possible_keys
 */
        __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_v_iface, __pyx_8genexpr2__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 596, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_queryTaggedValue); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 596, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_10);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_10, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 596, __pyx_L6_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
        __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_12 < 0)) __PYX_ERR(0, 596, __pyx_L6_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_6 = ((!__pyx_t_12) != 0);
        __pyx_t_7 = __pyx_t_6;
        __pyx_L10_bool_binop_done:;

        /* "src/nti/externalization/datastructures.py":595
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])             # <<<<<<<<<<<<<<
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 *             ])
 */
        if (__pyx_t_7) {

          /* "src/nti/externalization/datastructures.py":594
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)             # <<<<<<<<<<<<<<
 *                 if (not is_method(iface[n])
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 */
          if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_8genexpr2__pyx_v_n))) __PYX_ERR(0, 593, __pyx_L6_error)

          /* "src/nti/externalization/datastructures.py":595
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])             # <<<<<<<<<<<<<<
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 *             ])
 */
        }

        /* "src/nti/externalization/datastructures.py":594
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([
 *                 n for n in iface.names(all=True)             # <<<<<<<<<<<<<<
 *                 if (not is_method(iface[n])
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 */
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_n); __pyx_8genexpr2__pyx_v_n = 0;
      goto __pyx_L12_exit_scope;
      __pyx_L6_error:;
      __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_n); __pyx_8genexpr2__pyx_v_n = 0;
      goto __pyx_L1_error;
      __pyx_L12_exit_scope:;
    } /* exit inner scope */

    /* "src/nti/externalization/datastructures.py":593
 *             iface = self._iface
 *             is_method = interface.interfaces.IMethod.providedBy
 *             cache.ext_all_possible_keys = frozenset([             # <<<<<<<<<<<<<<
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])
 */
    __pyx_t_3 = __Pyx_PyFrozenSet_New(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_cache->ext_all_possible_keys);
    __Pyx_DECREF(__pyx_v_cache->ext_all_possible_keys);
    __pyx_v_cache->ext_all_possible_keys = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":590
 *     def _ext_all_possible_keys(self):
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:             # <<<<<<<<<<<<<<
 *             iface = self._iface
 *             is_method = interface.interfaces.IMethod.providedBy
 */
  }

  /* "src/nti/externalization/datastructures.py":598
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))
 *             ])
 *         return cache.ext_all_possible_keys             # <<<<<<<<<<<<<<
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_cache->ext_all_possible_keys);
  __pyx_r = __pyx_v_cache->ext_all_possible_keys;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":588
 *         return self._ext_self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cache);
  __Pyx_XDECREF(__pyx_v_iface);
  __Pyx_XDECREF(__pyx_v_is_method);
  __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_n);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_12_ext_all_possible_keys, "InterfaceObjectIO._ext_all_possible_keys(self) -> frozenset");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys = {"_ext_all_possible_keys", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_12_ext_all_possible_keys};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_all_possible_keys (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_12_ext_all_possible_keys(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_12_ext_all_possible_keys(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  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("_ext_all_possible_keys", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_all_possible_keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_all_possible_keys", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":600
 *         return cache.ext_all_possible_keys
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr *__pyx_optional_args) {
  PyObject *__pyx_v_default = __pyx_k__7;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_default = __pyx_optional_args->__pyx_default;
    }
  }
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_getattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_default};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 600, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":602
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:             # <<<<<<<<<<<<<<
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)
 */
  __pyx_t_6 = (__pyx_v_default == __pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":603
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 *             return getattr(ext_self, k)             # <<<<<<<<<<<<<<
 *         return getattr(ext_self, k, default)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_GetAttr(__pyx_v_ext_self, __pyx_v_k); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/nti/externalization/datastructures.py":602
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:             # <<<<<<<<<<<<<<
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)
 */
  }

  /* "src/nti/externalization/datastructures.py":604
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 *         return getattr(ext_self, k, default)             # <<<<<<<<<<<<<<
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_ext_self, __pyx_v_k, __pyx_v_default); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":600
 *         return cache.ext_all_possible_keys
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_14_ext_getattr, "InterfaceObjectIO._ext_getattr(self, ext_self, k, default=NotGiven)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr = {"_ext_getattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_14_ext_getattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_default = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_getattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_default,0};
    #endif
    PyObject* values[3] = {0,0,0};
    values[2] = __pyx_k__7;
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, 1); __PYX_ERR(0, 600, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_default);
          if (value) { values[2] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_getattr") < 0)) __PYX_ERR(0, 600, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_default = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_getattr", 0, 2, 3, __pyx_nargs); __PYX_ERR(0, 600, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_14_ext_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_default);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_14_ext_getattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_default) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_getattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_default = __pyx_v_default;
  __pyx_t_1 = __pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO->__pyx_base._ext_getattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_getattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":606
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_setattr", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_setattr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[4] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 3+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 606, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":607
 * 
 *     def _ext_setattr(self, ext_self, k, value):
 *         validate_named_field_value(ext_self, self._iface, k, value)()             # <<<<<<<<<<<<<<
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed):
 */
  __pyx_t_2 = __pyx_v_self->_iface;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_3 = __pyx_f_3nti_15externalization_15internalization_7_fields_validate_named_field_value(__pyx_v_ext_self, __pyx_t_2, __pyx_v_k, __pyx_v_value, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_2, };
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":606
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_16_ext_setattr, "InterfaceObjectIO._ext_setattr(self, ext_self, k, value)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr = {"_ext_setattr", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_16_ext_setattr};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_k = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_setattr (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_k,&__pyx_n_s_value,0};
    #endif
    PyObject* values[3] = {0,0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  3: values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_k)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 1); __PYX_ERR(0, 606, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, 2); __PYX_ERR(0, 606, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_setattr") < 0)) __PYX_ERR(0, 606, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
      values[2] = __Pyx_Arg_FASTCALL(__pyx_args, 2);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_k = values[1];
    __pyx_v_value = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_setattr", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 606, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_16_ext_setattr(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_k, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_16_ext_setattr(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_k, PyObject *__pyx_v_value) {
  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("_ext_setattr", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_setattr(__pyx_v_self, __pyx_v_ext_self, __pyx_v_k, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":609
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed):             # <<<<<<<<<<<<<<
 *         """
 *         If the interface we're working from has a tagged value
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, CYTHON_UNUSED PyObject *__pyx_v_parsed, int __pyx_skip_dispatch) {
  struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *__pyx_v_cache = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_accept_external_id", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_accept_external_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 609, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_parsed};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 609, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":615
 *         this will return that value; otherwise, returns false.
 *         """
 *         cache = cache_for(self, ext_self)             # <<<<<<<<<<<<<<
 *         if cache.ext_accept_external_id is None:
 *             try:
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_3nti_15externalization_17__interface_cache_cache_for(((PyObject *)__pyx_v_self), __pyx_v_ext_self, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_cache = ((struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":616
 *         """
 *         cache = cache_for(self, ext_self)
 *         if cache.ext_accept_external_id is None:             # <<<<<<<<<<<<<<
 *             try:
 *                 field = cache.iface['id']
 */
  __pyx_t_6 = (__pyx_v_cache->ext_accept_external_id == Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":617
 *         cache = cache_for(self, ext_self)
 *         if cache.ext_accept_external_id is None:
 *             try:             # <<<<<<<<<<<<<<
 *                 field = cache.iface['id']
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "src/nti/externalization/datastructures.py":618
 *         if cache.ext_accept_external_id is None:
 *             try:
 *                 field = cache.iface['id']             # <<<<<<<<<<<<<<
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 *             except KeyError:
 */
        __pyx_t_1 = __Pyx_PyObject_Dict_GetItem(__pyx_v_cache->iface, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_v_field = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "src/nti/externalization/datastructures.py":619
 *             try:
 *                 field = cache.iface['id']
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')             # <<<<<<<<<<<<<<
 *             except KeyError:
 *                 cache.ext_accept_external_id = False
 */
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_getTaggedValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_n_s_external_accept_id};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __Pyx_GIVEREF(__pyx_t_1);
        __Pyx_GOTREF(__pyx_v_cache->ext_accept_external_id);
        __Pyx_DECREF(__pyx_v_cache->ext_accept_external_id);
        __pyx_v_cache->ext_accept_external_id = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "src/nti/externalization/datastructures.py":617
 *         cache = cache_for(self, ext_self)
 *         if cache.ext_accept_external_id is None:
 *             try:             # <<<<<<<<<<<<<<
 *                 field = cache.iface['id']
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 */
      }
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "src/nti/externalization/datastructures.py":620
 *                 field = cache.iface['id']
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 cache.ext_accept_external_id = False
 *         return cache.ext_accept_external_id
 */
      __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
      if (__pyx_t_5) {
        __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) __PYX_ERR(0, 620, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GOTREF(__pyx_t_3);

        /* "src/nti/externalization/datastructures.py":621
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 *             except KeyError:
 *                 cache.ext_accept_external_id = False             # <<<<<<<<<<<<<<
 *         return cache.ext_accept_external_id
 * 
 */
        __Pyx_INCREF(Py_False);
        __Pyx_GIVEREF(Py_False);
        __Pyx_GOTREF(__pyx_v_cache->ext_accept_external_id);
        __Pyx_DECREF(__pyx_v_cache->ext_accept_external_id);
        __pyx_v_cache->ext_accept_external_id = Py_False;
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;
      __pyx_L6_except_error:;

      /* "src/nti/externalization/datastructures.py":617
 *         cache = cache_for(self, ext_self)
 *         if cache.ext_accept_external_id is None:
 *             try:             # <<<<<<<<<<<<<<
 *                 field = cache.iface['id']
 *                 cache.ext_accept_external_id = field.getTaggedValue('__external_accept_id__')
 */
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      __pyx_L9_try_end:;
    }

    /* "src/nti/externalization/datastructures.py":616
 *         """
 *         cache = cache_for(self, ext_self)
 *         if cache.ext_accept_external_id is None:             # <<<<<<<<<<<<<<
 *             try:
 *                 field = cache.iface['id']
 */
  }

  /* "src/nti/externalization/datastructures.py":622
 *             except KeyError:
 *                 cache.ext_accept_external_id = False
 *         return cache.ext_accept_external_id             # <<<<<<<<<<<<<<
 * 
 *     def find_factory_for_named_value(self, key, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_cache->ext_accept_external_id);
  __pyx_r = __pyx_v_cache->ext_accept_external_id;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":609
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed):             # <<<<<<<<<<<<<<
 *         """
 *         If the interface we're working from has a tagged value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_cache);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_18_ext_accept_external_id, "InterfaceObjectIO._ext_accept_external_id(self, ext_self, parsed)\n\n        If the interface we're working from has a tagged value\n        of ``__external_accept_id__`` on the ``id`` field, then\n        this will return that value; otherwise, returns false.\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id = {"_ext_accept_external_id", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_18_ext_accept_external_id};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_parsed = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_accept_external_id (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_parsed,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_parsed,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 609, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_parsed)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 609, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_accept_external_id", 1, 2, 2, 1); __PYX_ERR(0, 609, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_accept_external_id") < 0)) __PYX_ERR(0, 609, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_parsed = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_accept_external_id", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 609, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_18_ext_accept_external_id(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_parsed);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_18_ext_accept_external_id(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_parsed) {
  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("_ext_accept_external_id", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_accept_external_id(__pyx_v_self, __pyx_v_ext_self, __pyx_v_parsed, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._ext_accept_external_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":624
 *         return cache.ext_accept_external_id
 * 
 *     def find_factory_for_named_value(self, key, value):             # <<<<<<<<<<<<<<
 *         """
 *         If `AbstractDynamicObjectIO.find_factory_for_named_value`
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO_find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_factory = NULL;
  PyObject *__pyx_v_field = NULL;
  PyObject *__pyx_v_value_schema = NULL;
  PyObject *__pyx_v_default_impl = NULL;
  PyObject *__pyx_v_mime_type = NULL;
  PyObject *__pyx_v_nested_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  Py_ssize_t __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  int __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("find_factory_for_named_value", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_find_factory_for_named_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 624, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_key, __pyx_v_value};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 624, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":661
 * 
 *         """
 *         factory = AbstractDynamicObjectIO.find_factory_for_named_value(self, key, value)             # <<<<<<<<<<<<<<
 *         if factory is None: # pylint:disable=too-many-nested-blocks
 *             # Is there a factory on the field?
 */
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_key, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_factory = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":662
 *         """
 *         factory = AbstractDynamicObjectIO.find_factory_for_named_value(self, key, value)
 *         if factory is None: # pylint:disable=too-many-nested-blocks             # <<<<<<<<<<<<<<
 *             # Is there a factory on the field?
 *             # TODO: Simplify this.
 */
  __pyx_t_6 = (__pyx_v_factory == Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":665
 *             # Is there a factory on the field?
 *             # TODO: Simplify this.
 *             try:             # <<<<<<<<<<<<<<
 *                 field = self._iface[key]
 *                 # See zcml.py:anonymousObjectFactoryDirective.
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      /*try:*/ {

        /* "src/nti/externalization/datastructures.py":666
 *             # TODO: Simplify this.
 *             try:
 *                 field = self._iface[key]             # <<<<<<<<<<<<<<
 *                 # See zcml.py:anonymousObjectFactoryDirective.
 *                 # This *should* be a string giving the dottedname of a factory utility.
 */
        __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_v_self->_iface, __pyx_v_key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_v_field = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "src/nti/externalization/datastructures.py":665
 *             # Is there a factory on the field?
 *             # TODO: Simplify this.
 *             try:             # <<<<<<<<<<<<<<
 *                 field = self._iface[key]
 *                 # See zcml.py:anonymousObjectFactoryDirective.
 */
      }

      /* "src/nti/externalization/datastructures.py":678
 *                 pass
 *             else:
 *                 factory = field.queryTaggedValue('__external_factory__')             # <<<<<<<<<<<<<<
 *                 # When it is a string, we require the factory to exist.
 *                 # Anything else is a programming error.
 */
      /*else:*/ {
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_queryTaggedValue); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_2);
        __pyx_t_3 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_n_s_external_factory};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __Pyx_DECREF_SET(__pyx_v_factory, __pyx_t_1);
        __pyx_t_1 = 0;

        /* "src/nti/externalization/datastructures.py":681
 *                 # When it is a string, we require the factory to exist.
 *                 # Anything else is a programming error.
 *                 if isinstance(factory, str):             # <<<<<<<<<<<<<<
 *                     factory = getUtility(IAnonymousObjectFactory, factory)
 * 
 */
        __pyx_t_7 = PyString_Check(__pyx_v_factory); 
        __pyx_t_6 = (__pyx_t_7 != 0);
        if (__pyx_t_6) {

          /* "src/nti/externalization/datastructures.py":682
 *                 # Anything else is a programming error.
 *                 if isinstance(factory, str):
 *                     factory = getUtility(IAnonymousObjectFactory, factory)             # <<<<<<<<<<<<<<
 * 
 *                 if (
 */
          __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_getUtility);
          __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures_getUtility; __pyx_t_3 = NULL;
          __pyx_t_5 = 0;
          if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
            __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
            if (likely(__pyx_t_3)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
              __Pyx_INCREF(__pyx_t_3);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_2, function);
              __pyx_t_5 = 1;
            }
          }
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory, __pyx_v_factory};
            __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 682, __pyx_L6_except_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          }
          __Pyx_DECREF_SET(__pyx_v_factory, __pyx_t_1);
          __pyx_t_1 = 0;

          /* "src/nti/externalization/datastructures.py":681
 *                 # When it is a string, we require the factory to exist.
 *                 # Anything else is a programming error.
 *                 if isinstance(factory, str):             # <<<<<<<<<<<<<<
 *                     factory = getUtility(IAnonymousObjectFactory, factory)
 * 
 */
        }

        /* "src/nti/externalization/datastructures.py":685
 * 
 *                 if (
 *                         factory is None             # <<<<<<<<<<<<<<
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter
 *                         and isinstance(value, dict)
 */
        __pyx_t_7 = (__pyx_v_factory == Py_None);
        __pyx_t_11 = (__pyx_t_7 != 0);
        if (__pyx_t_11) {
        } else {
          __pyx_t_6 = __pyx_t_11;
          goto __pyx_L12_bool_binop_done;
        }

        /* "src/nti/externalization/datastructures.py":686
 *                 if (
 *                         factory is None
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter             # <<<<<<<<<<<<<<
 *                         and isinstance(value, dict)
 *                         and IObject_providedBy(field.value_type)
 */
        __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy);
        __pyx_t_2 = __pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy; __pyx_t_3 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
          __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
          if (likely(__pyx_t_3)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
            __Pyx_INCREF(__pyx_t_3);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_2, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_field};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        }
        __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 686, __pyx_L6_except_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        if (__pyx_t_11) {
        } else {
          __pyx_t_6 = __pyx_t_11;
          goto __pyx_L12_bool_binop_done;
        }

        /* "src/nti/externalization/datastructures.py":687
 *                         factory is None
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter
 *                         and isinstance(value, dict)             # <<<<<<<<<<<<<<
 *                         and IObject_providedBy(field.value_type)
 *                 ):
 */
        __pyx_t_11 = PyDict_Check(__pyx_v_value); 
        __pyx_t_7 = (__pyx_t_11 != 0);
        if (__pyx_t_7) {
        } else {
          __pyx_t_6 = __pyx_t_7;
          goto __pyx_L12_bool_binop_done;
        }

        /* "src/nti/externalization/datastructures.py":688
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter
 *                         and isinstance(value, dict)
 *                         and IObject_providedBy(field.value_type)             # <<<<<<<<<<<<<<
 *                 ):
 *                     # If is no factory found, check to see if the
 */
        __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_value_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 688, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy);
        __pyx_t_3 = __pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_2};
          __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 688, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 688, __pyx_L6_except_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_t_6 = __pyx_t_7;
        __pyx_L12_bool_binop_done:;

        /* "src/nti/externalization/datastructures.py":684
 *                     factory = getUtility(IAnonymousObjectFactory, factory)
 * 
 *                 if (             # <<<<<<<<<<<<<<
 *                         factory is None
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter
 */
        if (__pyx_t_6) {

          /* "src/nti/externalization/datastructures.py":695
 *                     # requires the user to use a ZCML directive for each such
 *                     # dict field.
 *                     value_schema = field.value_type.schema             # <<<<<<<<<<<<<<
 *                     default_impl = value_schema.queryTaggedValue(
 *                         '__external_default_implementation__'
 */
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_value_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_schema); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 695, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_v_value_schema = __pyx_t_3;
          __pyx_t_3 = 0;

          /* "src/nti/externalization/datastructures.py":696
 *                     # dict field.
 *                     value_schema = field.value_type.schema
 *                     default_impl = value_schema.queryTaggedValue(             # <<<<<<<<<<<<<<
 *                         '__external_default_implementation__'
 *                     )
 */
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value_schema, __pyx_n_s_queryTaggedValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_2 = NULL;
          __pyx_t_5 = 0;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
            __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
            if (likely(__pyx_t_2)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
              __Pyx_INCREF(__pyx_t_2);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_1, function);
              __pyx_t_5 = 1;
            }
          }
          {
            PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_n_s_external_default_implementatio};
            __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
            __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
            if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 696, __pyx_L6_except_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          }
          __pyx_v_default_impl = __pyx_t_3;
          __pyx_t_3 = 0;

          /* "src/nti/externalization/datastructures.py":699
 *                         '__external_default_implementation__'
 *                     )
 *                     if default_impl is not None:             # <<<<<<<<<<<<<<
 *                         # Add MimeType if it's missing, so we can find the correct factories and
 *                         # updaters.
 */
          __pyx_t_6 = (__pyx_v_default_impl != Py_None);
          __pyx_t_7 = (__pyx_t_6 != 0);
          if (__pyx_t_7) {

            /* "src/nti/externalization/datastructures.py":702
 *                         # Add MimeType if it's missing, so we can find the correct factories and
 *                         # updaters.
 *                         mime_type = default_impl.mimeType             # <<<<<<<<<<<<<<
 *                         for nested_value in value.values():
 *                             if (StandardExternalFields.MIMETYPE not in nested_value
 */
            __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_default_impl, __pyx_n_s_mimeType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 702, __pyx_L6_except_error)
            __Pyx_GOTREF(__pyx_t_3);
            __pyx_v_mime_type = __pyx_t_3;
            __pyx_t_3 = 0;

            /* "src/nti/externalization/datastructures.py":703
 *                         # updaters.
 *                         mime_type = default_impl.mimeType
 *                         for nested_value in value.values():             # <<<<<<<<<<<<<<
 *                             if (StandardExternalFields.MIMETYPE not in nested_value
 *                                 and StandardExternalFields.CLASS not in nested_value):
 */
            __pyx_t_12 = 0;
            if (unlikely(__pyx_v_value == Py_None)) {
              PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
              __PYX_ERR(0, 703, __pyx_L6_except_error)
            }
            __pyx_t_1 = __Pyx_dict_iterator(__pyx_v_value, 0, __pyx_n_s_values, (&__pyx_t_13), (&__pyx_t_5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 703, __pyx_L6_except_error)
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_XDECREF(__pyx_t_3);
            __pyx_t_3 = __pyx_t_1;
            __pyx_t_1 = 0;
            while (1) {
              __pyx_t_14 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_13, &__pyx_t_12, NULL, &__pyx_t_1, NULL, __pyx_t_5);
              if (unlikely(__pyx_t_14 == 0)) break;
              if (unlikely(__pyx_t_14 == -1)) __PYX_ERR(0, 703, __pyx_L6_except_error)
              __Pyx_GOTREF(__pyx_t_1);
              __Pyx_XDECREF_SET(__pyx_v_nested_value, __pyx_t_1);
              __pyx_t_1 = 0;

              /* "src/nti/externalization/datastructures.py":704
 *                         mime_type = default_impl.mimeType
 *                         for nested_value in value.values():
 *                             if (StandardExternalFields.MIMETYPE not in nested_value             # <<<<<<<<<<<<<<
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 */
              __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->MIMETYPE, __pyx_v_nested_value, Py_NE)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 704, __pyx_L6_except_error)
              __pyx_t_11 = (__pyx_t_6 != 0);
              if (__pyx_t_11) {
              } else {
                __pyx_t_7 = __pyx_t_11;
                goto __pyx_L20_bool_binop_done;
              }

              /* "src/nti/externalization/datastructures.py":705
 *                         for nested_value in value.values():
 *                             if (StandardExternalFields.MIMETYPE not in nested_value
 *                                 and StandardExternalFields.CLASS not in nested_value):             # <<<<<<<<<<<<<<
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 *                     factory = _AnonymousDictFactory(title=key,
 */
              __pyx_t_11 = (__Pyx_PySequence_ContainsTF(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CLASS, __pyx_v_nested_value, Py_NE)); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 705, __pyx_L6_except_error)
              __pyx_t_6 = (__pyx_t_11 != 0);
              __pyx_t_7 = __pyx_t_6;
              __pyx_L20_bool_binop_done:;

              /* "src/nti/externalization/datastructures.py":704
 *                         mime_type = default_impl.mimeType
 *                         for nested_value in value.values():
 *                             if (StandardExternalFields.MIMETYPE not in nested_value             # <<<<<<<<<<<<<<
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 */
              if (__pyx_t_7) {

                /* "src/nti/externalization/datastructures.py":706
 *                             if (StandardExternalFields.MIMETYPE not in nested_value
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type             # <<<<<<<<<<<<<<
 *                     factory = _AnonymousDictFactory(title=key,
 *                                                     interfaces=(value_schema,))
 */
                if (unlikely(PyObject_SetItem(__pyx_v_nested_value, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->MIMETYPE, __pyx_v_mime_type) < 0)) __PYX_ERR(0, 706, __pyx_L6_except_error)

                /* "src/nti/externalization/datastructures.py":704
 *                         mime_type = default_impl.mimeType
 *                         for nested_value in value.values():
 *                             if (StandardExternalFields.MIMETYPE not in nested_value             # <<<<<<<<<<<<<<
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 */
              }
            }
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

            /* "src/nti/externalization/datastructures.py":699
 *                         '__external_default_implementation__'
 *                     )
 *                     if default_impl is not None:             # <<<<<<<<<<<<<<
 *                         # Add MimeType if it's missing, so we can find the correct factories and
 *                         # updaters.
 */
          }

          /* "src/nti/externalization/datastructures.py":707
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 *                     factory = _AnonymousDictFactory(title=key,             # <<<<<<<<<<<<<<
 *                                                     interfaces=(value_schema,))
 *                     field.setTaggedValue('__external_factory__', factory)
 */
          __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_AnonymousDictFactory); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 707, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_3);
          __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 707, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_title, __pyx_v_key) < 0) __PYX_ERR(0, 707, __pyx_L6_except_error)

          /* "src/nti/externalization/datastructures.py":708
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 *                     factory = _AnonymousDictFactory(title=key,
 *                                                     interfaces=(value_schema,))             # <<<<<<<<<<<<<<
 *                     field.setTaggedValue('__external_factory__', factory)
 *         return factory
 */
          __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 708, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_INCREF(__pyx_v_value_schema);
          __Pyx_GIVEREF(__pyx_v_value_schema);
          PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_value_schema);
          if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_interfaces, __pyx_t_2) < 0) __PYX_ERR(0, 707, __pyx_L6_except_error)
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "src/nti/externalization/datastructures.py":707
 *                                 and StandardExternalFields.CLASS not in nested_value):
 *                                 nested_value[StandardExternalFields.MIMETYPE] = mime_type
 *                     factory = _AnonymousDictFactory(title=key,             # <<<<<<<<<<<<<<
 *                                                     interfaces=(value_schema,))
 *                     field.setTaggedValue('__external_factory__', factory)
 */
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 707, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF_SET(__pyx_v_factory, __pyx_t_2);
          __pyx_t_2 = 0;

          /* "src/nti/externalization/datastructures.py":709
 *                     factory = _AnonymousDictFactory(title=key,
 *                                                     interfaces=(value_schema,))
 *                     field.setTaggedValue('__external_factory__', factory)             # <<<<<<<<<<<<<<
 *         return factory
 * 
 */
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_field, __pyx_n_s_setTaggedValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L6_except_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_3 = NULL;
          __pyx_t_5 = 0;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
            __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
            if (likely(__pyx_t_3)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
              __Pyx_INCREF(__pyx_t_3);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_1, function);
              __pyx_t_5 = 1;
            }
          }
          {
            PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_n_s_external_factory, __pyx_v_factory};
            __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_1, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 709, __pyx_L6_except_error)
            __Pyx_GOTREF(__pyx_t_2);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          }
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

          /* "src/nti/externalization/datastructures.py":684
 *                     factory = getUtility(IAnonymousObjectFactory, factory)
 * 
 *                 if (             # <<<<<<<<<<<<<<
 *                         factory is None
 *                         and IDict_providedBy(field) # pylint:disable=no-value-for-parameter
 */
        }
      }
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L9_try_end;
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "src/nti/externalization/datastructures.py":675
 *                 # directly instead of a string; the user would have to
 *                 # *know* that no sites would ever need a different value.
 *             except KeyError:             # <<<<<<<<<<<<<<
 *                 pass
 *             else:
 */
      __pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
      if (__pyx_t_5) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L5_exception_handled;
      }
      goto __pyx_L6_except_error;
      __pyx_L6_except_error:;

      /* "src/nti/externalization/datastructures.py":665
 *             # Is there a factory on the field?
 *             # TODO: Simplify this.
 *             try:             # <<<<<<<<<<<<<<
 *                 field = self._iface[key]
 *                 # See zcml.py:anonymousObjectFactoryDirective.
 */
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      goto __pyx_L1_error;
      __pyx_L5_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
      __pyx_L9_try_end:;
    }

    /* "src/nti/externalization/datastructures.py":662
 *         """
 *         factory = AbstractDynamicObjectIO.find_factory_for_named_value(self, key, value)
 *         if factory is None: # pylint:disable=too-many-nested-blocks             # <<<<<<<<<<<<<<
 *             # Is there a factory on the field?
 *             # TODO: Simplify this.
 */
  }

  /* "src/nti/externalization/datastructures.py":710
 *                                                     interfaces=(value_schema,))
 *                     field.setTaggedValue('__external_factory__', factory)
 *         return factory             # <<<<<<<<<<<<<<
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_factory);
  __pyx_r = __pyx_v_factory;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":624
 *         return cache.ext_accept_external_id
 * 
 *     def find_factory_for_named_value(self, key, value):             # <<<<<<<<<<<<<<
 *         """
 *         If `AbstractDynamicObjectIO.find_factory_for_named_value`
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_factory);
  __Pyx_XDECREF(__pyx_v_field);
  __Pyx_XDECREF(__pyx_v_value_schema);
  __Pyx_XDECREF(__pyx_v_default_impl);
  __Pyx_XDECREF(__pyx_v_mime_type);
  __Pyx_XDECREF(__pyx_v_nested_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_20find_factory_for_named_value, "InterfaceObjectIO.find_factory_for_named_value(self, key, value)\n\n        If `AbstractDynamicObjectIO.find_factory_for_named_value`\n        cannot find a factory based on examining *value*, then we use\n        the context objects's schema to find a factory.\n\n        If the schema contains an attribute named *key*, it will be\n        queried for the tagged value ``__external_factory__``. If\n        present, this tagged value should be the name of a factory\n        object implementing `.IAnonymousObjectFactory` registered in\n        *registry* (typically registered in the global site).\n\n        The ZCML directive `.IAnonymousObjectFactoryDirective` sets up both the\n        registration and the tagged value.\n\n        This is useful for internalizing data from external sources\n        that does not provide a class or MIME field within the data.\n\n        The most obvious limitation of this is that if the *value* is part\n        of a sequence, it must be a homogeneous sequence. The factory is\n        called with no arguments, so the only way to deal with heterogeneous\n        sequences is to subclass this object and override this method to\n        examine the value itself.\n\n        A second limitation is that the external data key must match\n        the internal schema field name. Again, the only way to\n        remove this limitation is to subclass this object.\n\n        If no registered factory is found, and the schema field is\n        a `zope.schema.Dict` with a value type of `zope.schema.Object`,\n        then we return a factory which will update the object in place.\n\n        .. versionchanged:: 1.0a6\n           Only return an anonymous factory for ``IDict`` fields when\n           it wants objects for the value.\n\n        ");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value = {"find_factory_for_named_value", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_20find_factory_for_named_value};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_key = 0;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("find_factory_for_named_value (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_key,&__pyx_n_s_value,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_key)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 624, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_value)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 624, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("find_factory_for_named_value", 1, 2, 2, 1); __PYX_ERR(0, 624, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "find_factory_for_named_value") < 0)) __PYX_ERR(0, 624, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_key = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("find_factory_for_named_value", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 624, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_20find_factory_for_named_value(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_key, __pyx_v_value);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_20find_factory_for_named_value(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  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("find_factory_for_named_value", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO_find_factory_for_named_value(__pyx_v_self, __pyx_v_key, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.find_factory_for_named_value", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":712
 *         return factory
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         result = AbstractDynamicObjectIO._updateFromExternalObject(self, parsed)
 *         # If we make it this far, then validate the object.
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject, "InterfaceObjectIO.updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject = {"updateFromExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_parsed = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_args = 0;
  CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("updateFromExternalObject (wrapper)", 0);
  __pyx_v_unused_kwargs = PyDict_New(); if (unlikely(!__pyx_v_unused_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_unused_kwargs);
  __pyx_v_unused_args = __Pyx_ArgsSlice_FASTCALL(__pyx_args, 1, __pyx_nargs);
  if (unlikely(!__pyx_v_unused_args)) {
    __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
    __Pyx_RefNannyFinishContext();
    return NULL;
  }
  __Pyx_GOTREF(__pyx_v_unused_args);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_parsed,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_parsed,0};
    #endif
    PyObject* values[1] = {0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        default:
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_parsed)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 712, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        const Py_ssize_t used_pos_args = (kwd_pos_args < 1) ? kwd_pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_unused_kwargs, values + 0, used_pos_args, "updateFromExternalObject") < 0)) __PYX_ERR(0, 712, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs < 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
    }
    __pyx_v_parsed = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("updateFromExternalObject", 0, 1, 1, __pyx_nargs); __PYX_ERR(0, 712, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_unused_args); __pyx_v_unused_args = 0;
  __Pyx_DECREF(__pyx_v_unused_kwargs); __pyx_v_unused_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_parsed, __pyx_v_unused_args, __pyx_v_unused_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_unused_args);
  __Pyx_DECREF(__pyx_v_unused_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_parsed, CYTHON_UNUSED PyObject *__pyx_v_unused_args, CYTHON_UNUSED PyObject *__pyx_v_unused_kwargs) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  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("updateFromExternalObject", 0);

  /* "src/nti/externalization/datastructures.py":713
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):
 *         result = AbstractDynamicObjectIO._updateFromExternalObject(self, parsed)             # <<<<<<<<<<<<<<
 *         # If we make it this far, then validate the object.
 * 
 */
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__updateFromExternalObject(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), __pyx_v_parsed); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":722
 *         # TODO: Swizzle this method at runtime to be in this object's
 *         # dict, so we can elide the check.
 *         if self.validate_after_update:             # <<<<<<<<<<<<<<
 *             self._validate_after_update(self._iface, self._ext_self)
 *         return result
 */
  __pyx_t_2 = (__pyx_v_self->validate_after_update != 0);
  if (__pyx_t_2) {

    /* "src/nti/externalization/datastructures.py":723
 *         # dict, so we can elide the check.
 *         if self.validate_after_update:
 *             self._validate_after_update(self._iface, self._ext_self)             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
    __pyx_t_1 = __pyx_v_self->_iface;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = __pyx_v_self->_ext_self;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->_validate_after_update(__pyx_v_self, __pyx_t_1, __pyx_t_3, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "src/nti/externalization/datastructures.py":722
 *         # TODO: Swizzle this method at runtime to be in this object's
 *         # dict, so we can elide the check.
 *         if self.validate_after_update:             # <<<<<<<<<<<<<<
 *             self._validate_after_update(self._iface, self._ext_self)
 *         return result
 */
  }

  /* "src/nti/externalization/datastructures.py":724
 *         if self.validate_after_update:
 *             self._validate_after_update(self._iface, self._ext_self)
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def _validate_after_update(self, iface, ext_self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":712
 *         return factory
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         result = AbstractDynamicObjectIO._updateFromExternalObject(self, parsed)
 *         # If we make it this far, then validate the object.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.updateFromExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":726
 *         return result
 * 
 *     def _validate_after_update(self, iface, ext_self):             # <<<<<<<<<<<<<<
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__validate_after_update(CYTHON_UNUSED struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_iface, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_errors = NULL;
  CYTHON_UNUSED PyObject *__pyx_v___traceback_info__ = NULL;
  PyObject *__pyx_v_e = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  char const *__pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_validate_after_update", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_validate_after_update_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_iface, __pyx_v_ext_self};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 726, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":727
 * 
 *     def _validate_after_update(self, iface, ext_self):
 *         errors = schema.getValidationErrors(iface, ext_self)             # <<<<<<<<<<<<<<
 *         if errors:
 *             __traceback_info__ = errors
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_schema); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_getValidationErrors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_2, __pyx_v_iface, __pyx_v_ext_self};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_v_errors = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":728
 *     def _validate_after_update(self, iface, ext_self):
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:             # <<<<<<<<<<<<<<
 *             __traceback_info__ = errors
 *             try:
 */
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_v_errors); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 728, __pyx_L1_error)
  if (__pyx_t_6) {

    /* "src/nti/externalization/datastructures.py":729
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:
 *             __traceback_info__ = errors             # <<<<<<<<<<<<<<
 *             try:
 *                 raise errors[0][1]
 */
    __Pyx_INCREF(__pyx_v_errors);
    __pyx_v___traceback_info__ = __pyx_v_errors;

    /* "src/nti/externalization/datastructures.py":730
 *         if errors:
 *             __traceback_info__ = errors
 *             try:             # <<<<<<<<<<<<<<
 *                 raise errors[0][1]
 *             except SchemaNotProvided as e: # pragma: no cover
 */
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_7);
      __Pyx_XGOTREF(__pyx_t_8);
      __Pyx_XGOTREF(__pyx_t_9);
      /*try:*/ {

        /* "src/nti/externalization/datastructures.py":731
 *             __traceback_info__ = errors
 *             try:
 *                 raise errors[0][1]             # <<<<<<<<<<<<<<
 *             except SchemaNotProvided as e: # pragma: no cover
 *                 # XXX: We shouldn't be able to get here;
 */
        __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_errors, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 731, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 731, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(0, 731, __pyx_L4_error)

        /* "src/nti/externalization/datastructures.py":730
 *         if errors:
 *             __traceback_info__ = errors
 *             try:             # <<<<<<<<<<<<<<
 *                 raise errors[0][1]
 *             except SchemaNotProvided as e: # pragma: no cover
 */
      }
      __pyx_L4_error:;
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "src/nti/externalization/datastructures.py":732
 *             try:
 *                 raise errors[0][1]
 *             except SchemaNotProvided as e: # pragma: no cover             # <<<<<<<<<<<<<<
 *                 # XXX: We shouldn't be able to get here;
 *                 # ext_setattr should be doing this
 */
      __Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_1, &__pyx_t_2);
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_SchemaNotProvided); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 732, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_4);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_ErrRestore(__pyx_t_3, __pyx_t_1, __pyx_t_2);
      __pyx_t_3 = 0; __pyx_t_1 = 0; __pyx_t_2 = 0;
      if (__pyx_t_5) {
        __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._validate_after_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_3) < 0) __PYX_ERR(0, 732, __pyx_L6_except_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_v_e = __pyx_t_1;
        /*try:*/ {

          /* "src/nti/externalization/datastructures.py":736
 *                 # ext_setattr should be doing this
 *                 # This can probably be removed
 *                 if not e.args:  # zope.schema doesn't fill in the details, which sucks             # <<<<<<<<<<<<<<
 *                     e.args = (errors[0][0],)
 *                 raise
 */
          __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_e, __pyx_n_s_args); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 736, __pyx_L15_error)
          __Pyx_GOTREF(__pyx_t_4);
          __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 736, __pyx_L15_error)
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __pyx_t_10 = ((!__pyx_t_6) != 0);
          if (__pyx_t_10) {

            /* "src/nti/externalization/datastructures.py":737
 *                 # This can probably be removed
 *                 if not e.args:  # zope.schema doesn't fill in the details, which sucks
 *                     e.args = (errors[0][0],)             # <<<<<<<<<<<<<<
 *                 raise
 * 
 */
            __pyx_t_4 = __Pyx_GetItemInt(__pyx_v_errors, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 737, __pyx_L15_error)
            __Pyx_GOTREF(__pyx_t_4);
            __pyx_t_11 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 737, __pyx_L15_error)
            __Pyx_GOTREF(__pyx_t_11);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 737, __pyx_L15_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_GIVEREF(__pyx_t_11);
            PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_11);
            __pyx_t_11 = 0;
            if (__Pyx_PyObject_SetAttrStr(__pyx_v_e, __pyx_n_s_args, __pyx_t_4) < 0) __PYX_ERR(0, 737, __pyx_L15_error)
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

            /* "src/nti/externalization/datastructures.py":736
 *                 # ext_setattr should be doing this
 *                 # This can probably be removed
 *                 if not e.args:  # zope.schema doesn't fill in the details, which sucks             # <<<<<<<<<<<<<<
 *                     e.args = (errors[0][0],)
 *                 raise
 */
          }

          /* "src/nti/externalization/datastructures.py":738
 *                 if not e.args:  # zope.schema doesn't fill in the details, which sucks
 *                     e.args = (errors[0][0],)
 *                 raise             # <<<<<<<<<<<<<<
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ
 */
          __Pyx_GIVEREF(__pyx_t_2);
          __Pyx_GIVEREF(__pyx_t_1);
          __Pyx_XGIVEREF(__pyx_t_3);
          __Pyx_ErrRestoreWithState(__pyx_t_2, __pyx_t_1, __pyx_t_3);
          __pyx_t_2 = 0; __pyx_t_1 = 0; __pyx_t_3 = 0; 
          __PYX_ERR(0, 738, __pyx_L15_error)
        }

        /* "src/nti/externalization/datastructures.py":732
 *             try:
 *                 raise errors[0][1]
 *             except SchemaNotProvided as e: # pragma: no cover             # <<<<<<<<<<<<<<
 *                 # XXX: We shouldn't be able to get here;
 *                 # ext_setattr should be doing this
 */
        /*finally:*/ {
          __pyx_L15_error:;
          /*exception exit:*/{
            __Pyx_PyThreadState_declare
            __Pyx_PyThreadState_assign
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
            __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
            if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
            if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16) < 0)) __Pyx_ErrFetch(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_14);
            __Pyx_XGOTREF(__pyx_t_15);
            __Pyx_XGOTREF(__pyx_t_16);
            __Pyx_XGOTREF(__pyx_t_17);
            __Pyx_XGOTREF(__pyx_t_18);
            __Pyx_XGOTREF(__pyx_t_19);
            __pyx_t_5 = __pyx_lineno; __pyx_t_12 = __pyx_clineno; __pyx_t_13 = __pyx_filename;
            {
              __Pyx_DECREF(__pyx_v_e); __pyx_v_e = 0;
            }
            if (PY_MAJOR_VERSION >= 3) {
              __Pyx_XGIVEREF(__pyx_t_17);
              __Pyx_XGIVEREF(__pyx_t_18);
              __Pyx_XGIVEREF(__pyx_t_19);
              __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
            }
            __Pyx_XGIVEREF(__pyx_t_14);
            __Pyx_XGIVEREF(__pyx_t_15);
            __Pyx_XGIVEREF(__pyx_t_16);
            __Pyx_ErrRestore(__pyx_t_14, __pyx_t_15, __pyx_t_16);
            __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
            __pyx_lineno = __pyx_t_5; __pyx_clineno = __pyx_t_12; __pyx_filename = __pyx_t_13;
            goto __pyx_L6_except_error;
          }
        }
      }
      goto __pyx_L6_except_error;
      __pyx_L6_except_error:;

      /* "src/nti/externalization/datastructures.py":730
 *         if errors:
 *             __traceback_info__ = errors
 *             try:             # <<<<<<<<<<<<<<
 *                 raise errors[0][1]
 *             except SchemaNotProvided as e: # pragma: no cover
 */
      __Pyx_XGIVEREF(__pyx_t_7);
      __Pyx_XGIVEREF(__pyx_t_8);
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
      goto __pyx_L1_error;
    }

    /* "src/nti/externalization/datastructures.py":728
 *     def _validate_after_update(self, iface, ext_self):
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:             # <<<<<<<<<<<<<<
 *             __traceback_info__ = errors
 *             try:
 */
  }

  /* "src/nti/externalization/datastructures.py":726
 *         return result
 * 
 *     def _validate_after_update(self, iface, ext_self):             # <<<<<<<<<<<<<<
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._validate_after_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_errors);
  __Pyx_XDECREF(__pyx_v___traceback_info__);
  __Pyx_XDECREF(__pyx_v_e);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_24_validate_after_update, "InterfaceObjectIO._validate_after_update(self, iface, ext_self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update = {"_validate_after_update", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_24_validate_after_update};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_iface = 0;
  PyObject *__pyx_v_ext_self = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_validate_after_update (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_iface,&__pyx_n_s_ext_self,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_iface,&__pyx_n_s_ext_self,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_iface)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_validate_after_update", 1, 2, 2, 1); __PYX_ERR(0, 726, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_validate_after_update") < 0)) __PYX_ERR(0, 726, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_iface = values[0];
    __pyx_v_ext_self = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_validate_after_update", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 726, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._validate_after_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_24_validate_after_update(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_iface, __pyx_v_ext_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_24_validate_after_update(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_iface, PyObject *__pyx_v_ext_self) {
  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("_validate_after_update", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__validate_after_update(__pyx_v_self, __pyx_v_iface, __pyx_v_ext_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO._validate_after_update", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":740
 *                 raise
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ             # <<<<<<<<<<<<<<
 *         ext_class_name = None
 *         # Walk up the tree, checking each one to see if ``__external__class_name__`` exists
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject, "InterfaceObjectIO.toExternalObject(self, mergeFrom=None, **kwargs)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject = {"toExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_mergeFrom = 0;
  PyObject *__pyx_v_kwargs = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("toExternalObject (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_mergeFrom,0};
    #endif
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_mergeFrom);
          if (value) { values[0] = value; kw_args--; }
          else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 740, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, __pyx_v_kwargs, values + 0, kwd_pos_args, "toExternalObject") < 0)) __PYX_ERR(0, 740, __pyx_L3_error)
      }
    } else {
      switch (__pyx_nargs) {
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_mergeFrom = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("toExternalObject", 0, 0, 1, __pyx_nargs); __PYX_ERR(0, 740, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_mergeFrom, __pyx_v_kwargs);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_mergeFrom, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_v_ext_class_name = NULL;
  PyObject *__pyx_v_iface = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *(*__pyx_t_4)(PyObject *);
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("toExternalObject", 0);
  __Pyx_INCREF(__pyx_v_mergeFrom);

  /* "src/nti/externalization/datastructures.py":741
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ
 *         ext_class_name = None             # <<<<<<<<<<<<<<
 *         # Walk up the tree, checking each one to see if ``__external__class_name__`` exists
 *         # and wants to provide a value. The walking up is what ``queryTaggedValue`` would do,
 */
  __Pyx_INCREF(Py_None);
  __pyx_v_ext_class_name = Py_None;

  /* "src/nti/externalization/datastructures.py":746
 *         # but we want to check each one in turn in case a subclass turns down but a superclass
 *         # accepts.
 *         for iface in self._iface.__iro__:             # <<<<<<<<<<<<<<
 *             ext_class_name = iface.queryDirectTaggedValue('__external_class_name__')
 *             if callable(ext_class_name):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_iface, __pyx_n_s_iro); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
    __pyx_t_4 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 746, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 746, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_4)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 746, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 746, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 746, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 746, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_4(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 746, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_iface, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":747
 *         # accepts.
 *         for iface in self._iface.__iro__:
 *             ext_class_name = iface.queryDirectTaggedValue('__external_class_name__')             # <<<<<<<<<<<<<<
 *             if callable(ext_class_name):
 *                 # Even though the tagged value may have come from a superclass,
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_iface, __pyx_n_s_queryDirectTaggedValue); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    __pyx_t_7 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_7 = 1;
      }
    }
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_6, __pyx_n_s_external_class_name};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_5, __pyx_callargs+1-__pyx_t_7, 1+__pyx_t_7);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_ext_class_name, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":748
 *         for iface in self._iface.__iro__:
 *             ext_class_name = iface.queryDirectTaggedValue('__external_class_name__')
 *             if callable(ext_class_name):             # <<<<<<<<<<<<<<
 *                 # Even though the tagged value may have come from a superclass,
 *                 # give the actual class (interface) we're using
 */
    __pyx_t_8 = __Pyx_PyCallable_Check(__pyx_v_ext_class_name); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 748, __pyx_L1_error)
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (__pyx_t_9) {

      /* "src/nti/externalization/datastructures.py":752
 *                 # give the actual class (interface) we're using
 *                 ext_class_name = ext_class_name(self._iface,
 *                                                 self._ext_replacement())             # <<<<<<<<<<<<<<
 *             if ext_class_name:
 *                 break
 */
      __pyx_t_5 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._ext_replacement(((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)__pyx_v_self), 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 752, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_v_ext_class_name);
      __pyx_t_6 = __pyx_v_ext_class_name; __pyx_t_10 = NULL;
      __pyx_t_7 = 0;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
          __pyx_t_7 = 1;
        }
      }
      {
        PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_v_self->_iface, __pyx_t_5};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_7, 2+__pyx_t_7);
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 751, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
      __Pyx_DECREF_SET(__pyx_v_ext_class_name, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "src/nti/externalization/datastructures.py":748
 *         for iface in self._iface.__iro__:
 *             ext_class_name = iface.queryDirectTaggedValue('__external_class_name__')
 *             if callable(ext_class_name):             # <<<<<<<<<<<<<<
 *                 # Even though the tagged value may have come from a superclass,
 *                 # give the actual class (interface) we're using
 */
    }

    /* "src/nti/externalization/datastructures.py":753
 *                 ext_class_name = ext_class_name(self._iface,
 *                                                 self._ext_replacement())
 *             if ext_class_name:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_ext_class_name); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 753, __pyx_L1_error)
    if (__pyx_t_9) {

      /* "src/nti/externalization/datastructures.py":754
 *                                                 self._ext_replacement())
 *             if ext_class_name:
 *                 break             # <<<<<<<<<<<<<<
 * 
 *         if ext_class_name:
 */
      goto __pyx_L4_break;

      /* "src/nti/externalization/datastructures.py":753
 *                 ext_class_name = ext_class_name(self._iface,
 *                                                 self._ext_replacement())
 *             if ext_class_name:             # <<<<<<<<<<<<<<
 *                 break
 * 
 */
    }

    /* "src/nti/externalization/datastructures.py":746
 *         # but we want to check each one in turn in case a subclass turns down but a superclass
 *         # accepts.
 *         for iface in self._iface.__iro__:             # <<<<<<<<<<<<<<
 *             ext_class_name = iface.queryDirectTaggedValue('__external_class_name__')
 *             if callable(ext_class_name):
 */
  }
  __pyx_L4_break:;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":756
 *                 break
 * 
 *         if ext_class_name:             # <<<<<<<<<<<<<<
 *             mergeFrom = mergeFrom if mergeFrom is not None else {}
 *             mergeFrom[StandardExternalFields.CLASS] = ext_class_name
 */
  __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_ext_class_name); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 756, __pyx_L1_error)
  if (__pyx_t_9) {

    /* "src/nti/externalization/datastructures.py":757
 * 
 *         if ext_class_name:
 *             mergeFrom = mergeFrom if mergeFrom is not None else {}             # <<<<<<<<<<<<<<
 *             mergeFrom[StandardExternalFields.CLASS] = ext_class_name
 * 
 */
    __pyx_t_9 = (__pyx_v_mergeFrom != Py_None);
    if ((__pyx_t_9 != 0)) {
      __Pyx_INCREF(__pyx_v_mergeFrom);
      __pyx_t_2 = __pyx_v_mergeFrom;
    } else {
      __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __pyx_t_1;
      __pyx_t_1 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_mergeFrom, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/nti/externalization/datastructures.py":758
 *         if ext_class_name:
 *             mergeFrom = mergeFrom if mergeFrom is not None else {}
 *             mergeFrom[StandardExternalFields.CLASS] = ext_class_name             # <<<<<<<<<<<<<<
 * 
 *         result = super(InterfaceObjectIO, self).toExternalObject(mergeFrom=mergeFrom, **kwargs)
 */
    if (unlikely(PyObject_SetItem(__pyx_v_mergeFrom, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CLASS, __pyx_v_ext_class_name) < 0)) __PYX_ERR(0, 758, __pyx_L1_error)

    /* "src/nti/externalization/datastructures.py":756
 *                 break
 * 
 *         if ext_class_name:             # <<<<<<<<<<<<<<
 *             mergeFrom = mergeFrom if mergeFrom is not None else {}
 *             mergeFrom[StandardExternalFields.CLASS] = ext_class_name
 */
  }

  /* "src/nti/externalization/datastructures.py":760
 *             mergeFrom[StandardExternalFields.CLASS] = ext_class_name
 * 
 *         result = super(InterfaceObjectIO, self).toExternalObject(mergeFrom=mergeFrom, **kwargs)             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO));
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_toExternalObject); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_6 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_mergeFrom, __pyx_v_mergeFrom) < 0) __PYX_ERR(0, 760, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_6;
  __pyx_t_6 = 0;
  if (__Pyx_MergeKeywords(__pyx_t_1, __pyx_v_kwargs) < 0) __PYX_ERR(0, 760, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_result = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "src/nti/externalization/datastructures.py":761
 * 
 *         result = super(InterfaceObjectIO, self).toExternalObject(mergeFrom=mergeFrom, **kwargs)
 *         return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":740
 *                 raise
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ             # <<<<<<<<<<<<<<
 *         ext_class_name = None
 *         # Walk up the tree, checking each one to see if ``__external__class_name__`` exists
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.toExternalObject", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ext_class_name);
  __Pyx_XDECREF(__pyx_v_iface);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_mergeFrom);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "nti/externalization/_datastructures.pxd":75
 * 
 * cdef class InterfaceObjectIO(AbstractDynamicObjectIO):
 *     cdef readonly _ext_self             # <<<<<<<<<<<<<<
 *     cdef readonly _iface
 *     cdef readonly bint validate_after_update
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self___get__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ext_self);
  __pyx_r = __pyx_v_self->_ext_self;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "nti/externalization/_datastructures.pxd":76
 * cdef class InterfaceObjectIO(AbstractDynamicObjectIO):
 *     cdef readonly _ext_self
 *     cdef readonly _iface             # <<<<<<<<<<<<<<
 *     cdef readonly bint validate_after_update
 *     # The dict is necessary because we assign to _ext_primitive_out_ivars,
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface___get__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_iface);
  __pyx_r = __pyx_v_self->_iface;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "nti/externalization/_datastructures.pxd":77
 *     cdef readonly _ext_self
 *     cdef readonly _iface
 *     cdef readonly bint validate_after_update             # <<<<<<<<<<<<<<
 *     # The dict is necessary because we assign to _ext_primitive_out_ivars,
 *     # which so far was only defined as a class attribute (for
 */

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update_1__get__(PyObject *__pyx_v_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update___get__(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update___get__(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *__pyx_v_self) {
  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("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->validate_after_update); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 77, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.InterfaceObjectIO.validate_after_update.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":788
 *     _ext_search_module = None
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         # If the upper bound is given, then let the super class handle it all.
 *         # Presumably the user has given the correct branch to search.
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_most_derived = NULL;
  PyObject *__pyx_v_iface = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_find_schema", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_find_schema); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 788, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[3] = {__pyx_t_4, __pyx_v_ext_self, __pyx_v_iface_upper_bound};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 788, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":792
 *         # Presumably the user has given the correct branch to search.
 * 
 *         if iface_upper_bound is not None:             # <<<<<<<<<<<<<<
 *             return super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(
 *                 ext_self, iface_upper_bound)
 */
  __pyx_t_6 = (__pyx_v_iface_upper_bound != Py_None);
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (__pyx_t_7) {

    /* "src/nti/externalization/datastructures.py":793
 * 
 *         if iface_upper_bound is not None:
 *             return super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(             # <<<<<<<<<<<<<<
 *                 ext_self, iface_upper_bound)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
    __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO));
    __Pyx_INCREF((PyObject *)__pyx_v_self);
    __Pyx_GIVEREF((PyObject *)__pyx_v_self);
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ext_find_schema); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "src/nti/externalization/datastructures.py":794
 *         if iface_upper_bound is not None:
 *             return super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(
 *                 ext_self, iface_upper_bound)             # <<<<<<<<<<<<<<
 * 
 *         most_derived = super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(
 */
    __pyx_t_3 = NULL;
    __pyx_t_5 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
        __pyx_t_5 = 1;
      }
    }
    {
      PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_ext_self, __pyx_v_iface_upper_bound};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/nti/externalization/datastructures.py":792
 *         # Presumably the user has given the correct branch to search.
 * 
 *         if iface_upper_bound is not None:             # <<<<<<<<<<<<<<
 *             return super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(
 *                 ext_self, iface_upper_bound)
 */
  }

  /* "src/nti/externalization/datastructures.py":796
 *                 ext_self, iface_upper_bound)
 * 
 *         most_derived = super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(             # <<<<<<<<<<<<<<
 *             ext_self, interface.Interface)
 * 
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO));
  __Pyx_INCREF((PyObject *)__pyx_v_self);
  __Pyx_GIVEREF((PyObject *)__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_ext_find_schema); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":797
 * 
 *         most_derived = super(ModuleScopedInterfaceObjectIO, self)._ext_find_schema(
 *             ext_self, interface.Interface)             # <<<<<<<<<<<<<<
 * 
 *         # In theory, this is now the most derived interface.
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_interface); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Interface); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_ext_self, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_5, 2+__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_v_most_derived = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":804
 *         # TODO: This algorithm can and should be better in some cases, following the
 *         # C3 algorithm that __sro__ derivation itself uses.
 *         for iface in self._ext_schemas_to_consider(ext_self):             # <<<<<<<<<<<<<<
 *             if iface is most_derived:
 *                 # Support interfaces that have their __module__ changed
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base._ext_schemas_to_consider(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_8 = 0;
    __pyx_t_9 = NULL;
  } else {
    __pyx_t_8 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 804, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_9)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 804, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 804, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_9(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 804, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_iface, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/nti/externalization/datastructures.py":805
 *         # C3 algorithm that __sro__ derivation itself uses.
 *         for iface in self._ext_schemas_to_consider(ext_self):
 *             if iface is most_derived:             # <<<<<<<<<<<<<<
 *                 # Support interfaces that have their __module__ changed
 *                 # dynamically (e.g., test_benchmarks)
 */
    __pyx_t_7 = (__pyx_v_iface == __pyx_v_most_derived);
    __pyx_t_6 = (__pyx_t_7 != 0);
    if (__pyx_t_6) {

      /* "src/nti/externalization/datastructures.py":808
 *                 # Support interfaces that have their __module__ changed
 *                 # dynamically (e.g., test_benchmarks)
 *                 continue             # <<<<<<<<<<<<<<
 *             if not most_derived.isOrExtends(iface):
 *                 raise TypeError(
 */
      goto __pyx_L4_continue;

      /* "src/nti/externalization/datastructures.py":805
 *         # C3 algorithm that __sro__ derivation itself uses.
 *         for iface in self._ext_schemas_to_consider(ext_self):
 *             if iface is most_derived:             # <<<<<<<<<<<<<<
 *                 # Support interfaces that have their __module__ changed
 *                 # dynamically (e.g., test_benchmarks)
 */
    }

    /* "src/nti/externalization/datastructures.py":809
 *                 # dynamically (e.g., test_benchmarks)
 *                 continue
 *             if not most_derived.isOrExtends(iface):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "Most derived interface %s does not extend %s; non-tree interface structure. "
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_most_derived, __pyx_n_s_isOrExtends); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = NULL;
    __pyx_t_5 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_5 = 1;
      }
    }
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_iface};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 809, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 809, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_7 = ((!__pyx_t_6) != 0);
    if (unlikely(__pyx_t_7)) {

      /* "src/nti/externalization/datastructures.py":813
 *                     "Most derived interface %s does not extend %s; non-tree interface structure. "
 *                     "Searching module %s and considered %s on object %s of class %s and type %s"
 *                     % (most_derived, iface, self._ext_search_module,             # <<<<<<<<<<<<<<
 *                        list(self._ext_schemas_to_consider(ext_self)),
 *                        ext_self, ext_self.__class__,
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_search_module); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "src/nti/externalization/datastructures.py":814
 *                     "Searching module %s and considered %s on object %s of class %s and type %s"
 *                     % (most_derived, iface, self._ext_search_module,
 *                        list(self._ext_schemas_to_consider(ext_self)),             # <<<<<<<<<<<<<<
 *                        ext_self, ext_self.__class__,
 *                        type(ext_self)))
 */
      __pyx_t_4 = ((struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base._ext_schemas_to_consider(((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 814, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PySequence_ListKeepNew(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 814, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "src/nti/externalization/datastructures.py":815
 *                     % (most_derived, iface, self._ext_search_module,
 *                        list(self._ext_schemas_to_consider(ext_self)),
 *                        ext_self, ext_self.__class__,             # <<<<<<<<<<<<<<
 *                        type(ext_self)))
 * 
 */
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_ext_self, __pyx_n_s_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 815, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);

      /* "src/nti/externalization/datastructures.py":813
 *                     "Most derived interface %s does not extend %s; non-tree interface structure. "
 *                     "Searching module %s and considered %s on object %s of class %s and type %s"
 *                     % (most_derived, iface, self._ext_search_module,             # <<<<<<<<<<<<<<
 *                        list(self._ext_schemas_to_consider(ext_self)),
 *                        ext_self, ext_self.__class__,
 */
      __pyx_t_10 = PyTuple_New(7); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_INCREF(__pyx_v_most_derived);
      __Pyx_GIVEREF(__pyx_v_most_derived);
      PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_most_derived);
      __Pyx_INCREF(__pyx_v_iface);
      __Pyx_GIVEREF(__pyx_v_iface);
      PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_iface);
      __Pyx_GIVEREF(__pyx_t_1);
      PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_3);
      __Pyx_INCREF(__pyx_v_ext_self);
      __Pyx_GIVEREF(__pyx_v_ext_self);
      PyTuple_SET_ITEM(__pyx_t_10, 4, __pyx_v_ext_self);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_10, 5, __pyx_t_4);
      __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_ext_self)));
      __Pyx_GIVEREF(((PyObject *)Py_TYPE(__pyx_v_ext_self)));
      PyTuple_SET_ITEM(__pyx_t_10, 6, ((PyObject *)Py_TYPE(__pyx_v_ext_self)));
      __pyx_t_1 = 0;
      __pyx_t_3 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Most_derived_interface_s_does_no, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;

      /* "src/nti/externalization/datastructures.py":810
 *                 continue
 *             if not most_derived.isOrExtends(iface):
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     "Most derived interface %s does not extend %s; non-tree interface structure. "
 *                     "Searching module %s and considered %s on object %s of class %s and type %s"
 */
      __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 810, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_10, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __PYX_ERR(0, 810, __pyx_L1_error)

      /* "src/nti/externalization/datastructures.py":809
 *                 # dynamically (e.g., test_benchmarks)
 *                 continue
 *             if not most_derived.isOrExtends(iface):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     "Most derived interface %s does not extend %s; non-tree interface structure. "
 */
    }

    /* "src/nti/externalization/datastructures.py":804
 *         # TODO: This algorithm can and should be better in some cases, following the
 *         # C3 algorithm that __sro__ derivation itself uses.
 *         for iface in self._ext_schemas_to_consider(ext_self):             # <<<<<<<<<<<<<<
 *             if iface is most_derived:
 *                 # Support interfaces that have their __module__ changed
 */
    __pyx_L4_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":818
 *                        type(ext_self)))
 * 
 *         return most_derived             # <<<<<<<<<<<<<<
 * 
 *     def _ext_schemas_to_consider(self, ext_self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_most_derived);
  __pyx_r = __pyx_v_most_derived;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":788
 *     _ext_search_module = None
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         # If the upper bound is given, then let the super class handle it all.
 *         # Presumably the user has given the correct branch to search.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("nti.externalization._datastructures.ModuleScopedInterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_most_derived);
  __Pyx_XDECREF(__pyx_v_iface);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema, "ModuleScopedInterfaceObjectIO._ext_find_schema(self, ext_self, iface_upper_bound)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema = {"_ext_find_schema", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema(PyObject *__pyx_v_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_ext_self = 0;
  PyObject *__pyx_v_iface_upper_bound = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED const Py_ssize_t __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_find_schema (wrapper)", 0);
  {
    #if CYTHON_COMPILING_IN_LIMITED_API
    PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_iface_upper_bound,0};
    #else
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ext_self,&__pyx_n_s_iface_upper_bound,0};
    #endif
    PyObject* values[2] = {0,0};
    if (__pyx_kwds) {
      Py_ssize_t kw_args;
      switch (__pyx_nargs) {
        case  2: values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = __Pyx_NumKwargs_FASTCALL(__pyx_kwds);
      switch (__pyx_nargs) {
        case  0:
        if (likely((values[0] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_ext_self)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 788, __pyx_L3_error)
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, __pyx_n_s_iface_upper_bound)) != 0)) kw_args--;
        else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 788, __pyx_L3_error)
        else {
          __Pyx_RaiseArgtupleInvalid("_ext_find_schema", 1, 2, 2, 1); __PYX_ERR(0, 788, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t kwd_pos_args = __pyx_nargs;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "_ext_find_schema") < 0)) __PYX_ERR(0, 788, __pyx_L3_error)
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0);
      values[1] = __Pyx_Arg_FASTCALL(__pyx_args, 1);
    }
    __pyx_v_ext_self = values[0];
    __pyx_v_iface_upper_bound = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_ext_find_schema", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 788, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("nti.externalization._datastructures.ModuleScopedInterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(((struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)__pyx_v_self), __pyx_v_ext_self, __pyx_v_iface_upper_bound);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, PyObject *__pyx_v_iface_upper_bound) {
  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("_ext_find_schema", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema(__pyx_v_self, __pyx_v_ext_self, __pyx_v_iface_upper_bound, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.ModuleScopedInterfaceObjectIO._ext_find_schema", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/nti/externalization/datastructures.py":820
 *         return most_derived
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 */

static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self); /*proto*/
static PyObject *__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_search_module_name = 0;
  PyObject *__pyx_8genexpr3__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_ext_schemas_to_consider", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely((Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0) || __Pyx_PyType_HasFeature(Py_TYPE(((PyObject *)__pyx_v_self)), (Py_TPFLAGS_IS_ABSTRACT | Py_TPFLAGS_HEAPTYPE)))) {
    #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    static PY_UINT64_T __pyx_tp_dict_version = __PYX_DICT_VERSION_INIT, __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
    if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
      PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      #endif
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_schemas_to_consider); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider)) {
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
        __pyx_t_5 = 0;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
          __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
          if (likely(__pyx_t_4)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
            __Pyx_INCREF(__pyx_t_4);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_3, function);
            __pyx_t_5 = 1;
          }
        }
        {
          PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_ext_self};
          __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 820, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        }
        __pyx_r = __pyx_t_2;
        __pyx_t_2 = 0;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L0;
      }
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
      __pyx_tp_dict_version = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
      __pyx_obj_dict_version = __Pyx_get_object_dict_version(((PyObject *)__pyx_v_self));
      if (unlikely(__pyx_type_dict_guard != __pyx_tp_dict_version)) {
        __pyx_tp_dict_version = __pyx_obj_dict_version = __PYX_DICT_VERSION_INIT;
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      #if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
    }
    #endif
  }

  /* "src/nti/externalization/datastructures.py":821
 * 
 *     def _ext_schemas_to_consider(self, ext_self):
 *         search_module_name = self._ext_search_module.__name__             # <<<<<<<<<<<<<<
 *         return [x for x in interface.providedBy(ext_self)
 *                 if x.__module__ == search_module_name
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ext_search_module); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(PyString_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None) || __Pyx_RaiseUnexpectedTypeError("str", __pyx_t_2))) __PYX_ERR(0, 821, __pyx_L1_error)
  __pyx_v_search_module_name = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":822
 *     def _ext_schemas_to_consider(self, ext_self):
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)             # <<<<<<<<<<<<<<
 *                 if x.__module__ == search_module_name
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 */
  __Pyx_XDECREF(__pyx_r);
  { /* enter inner scope */
    __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_interface); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 822, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_providedBy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 822, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    __pyx_t_5 = 0;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_5 = 1;
      }
    }
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_ext_self};
      __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
    if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
      __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 822, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PyObject_GetIterNextFunc(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 822, __pyx_L5_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 822, __pyx_L5_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        } else {
          if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 822, __pyx_L5_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L5_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        }
      } else {
        __pyx_t_1 = __pyx_t_7(__pyx_t_4);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
            else __PYX_ERR(0, 822, __pyx_L5_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_8genexpr3__pyx_v_x, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "src/nti/externalization/datastructures.py":823
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 *                 if x.__module__ == search_module_name             # <<<<<<<<<<<<<<
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 * 
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_8genexpr3__pyx_v_x, __pyx_n_s_module); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_v_search_module_name, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 823, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (__pyx_t_9) {
      } else {
        __pyx_t_8 = __pyx_t_9;
        goto __pyx_L9_bool_binop_done;
      }

      /* "src/nti/externalization/datastructures.py":824
 *         return [x for x in interface.providedBy(ext_self)
 *                 if x.__module__ == search_module_name
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]             # <<<<<<<<<<<<<<
 * 
 * # pylint:disable=wrong-import-position,wrong-import-order
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_8genexpr3__pyx_v_x, __pyx_n_s_queryDirectTaggedValue); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 824, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = NULL;
      __pyx_t_5 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
          __pyx_t_5 = 1;
        }
      }
      {
        PyObject *__pyx_callargs[2] = {__pyx_t_10, __pyx_n_s_ext_is_marker_interface};
        __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L5_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 824, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_11 = ((!__pyx_t_9) != 0);
      __pyx_t_8 = __pyx_t_11;
      __pyx_L9_bool_binop_done:;

      /* "src/nti/externalization/datastructures.py":823
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 *                 if x.__module__ == search_module_name             # <<<<<<<<<<<<<<
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 * 
 */
      if (__pyx_t_8) {

        /* "src/nti/externalization/datastructures.py":822
 *     def _ext_schemas_to_consider(self, ext_self):
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)             # <<<<<<<<<<<<<<
 *                 if x.__module__ == search_module_name
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 */
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_8genexpr3__pyx_v_x))) __PYX_ERR(0, 822, __pyx_L5_error)

        /* "src/nti/externalization/datastructures.py":823
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 *                 if x.__module__ == search_module_name             # <<<<<<<<<<<<<<
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 * 
 */
      }

      /* "src/nti/externalization/datastructures.py":822
 *     def _ext_schemas_to_consider(self, ext_self):
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)             # <<<<<<<<<<<<<<
 *                 if x.__module__ == search_module_name
 *                 and not x.queryDirectTaggedValue('_ext_is_marker_interface')]
 */
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_x); __pyx_8genexpr3__pyx_v_x = 0;
    goto __pyx_L11_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_x); __pyx_8genexpr3__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L11_exit_scope:;
  } /* exit inner scope */
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "src/nti/externalization/datastructures.py":820
 *         return most_derived
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("nti.externalization._datastructures.ModuleScopedInterfaceObjectIO._ext_schemas_to_consider", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_search_module_name);
  __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self); /*proto*/
PyDoc_STRVAR(__pyx_doc_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_2_ext_schemas_to_consider, "ModuleScopedInterfaceObjectIO._ext_schemas_to_consider(self, ext_self)");
static PyMethodDef __pyx_mdef_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider = {"_ext_schemas_to_consider", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider, METH_O, __pyx_doc_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_2_ext_schemas_to_consider};
static PyObject *__pyx_pw_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider(PyObject *__pyx_v_self, PyObject *__pyx_v_ext_self) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_ext_schemas_to_consider (wrapper)", 0);
  __pyx_r = __pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_2_ext_schemas_to_consider(((struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)__pyx_v_self), ((PyObject *)__pyx_v_ext_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_2_ext_schemas_to_consider(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *__pyx_v_self, PyObject *__pyx_v_ext_self) {
  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("_ext_schemas_to_consider", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_schemas_to_consider(__pyx_v_self, __pyx_v_ext_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("nti.externalization._datastructures.ModuleScopedInterfaceObjectIO._ext_schemas_to_consider", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  #if CYTHON_COMPILING_IN_LIMITED_API
  allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc);
  o = alloc_func(t, 0);
  #else
  if (likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  #endif
  return o;
}

#if !CYTHON_COMPILING_IN_LIMITED_API
static void __pyx_tp_dealloc_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}
#endif

static PyMethodDef __pyx_methods_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin[] = {
  {"_ext_replacement", (PyCFunction)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement, METH_NOARGS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin__ext_replacement},
  {"_ext_standard_external_dictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_2_ext_standard_external_dictionary},
  {"toExternalDictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_4toExternalDictionary},
  {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin_slots[] = {
  {Py_tp_getattro, (void *)PyObject_GenericGetAttr},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Implements a toExternalDictionary method as a base for subclasses.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin},
  {Py_tp_new, (void *)__pyx_tp_new_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin},
  {0, 0},
};
static PyType_Spec __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin_spec = {
  "nti.externalization._datastructures.ExternalizableDictionaryMixin",
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin_slots,
};
#else

static PyTypeObject __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin = {
  PyVarObject_HEAD_INIT(0, 0)
  "nti.externalization._datastructures.""ExternalizableDictionaryMixin", /*tp_name*/
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Implements a toExternalDictionary method as a base for subclasses.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;

static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *p;
  #if CYTHON_COMPILING_IN_LIMITED_API
  newfunc new_func = (newfunc)PyType_GetSlot(__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin, Py_tp_new);
  PyObject *o = new_func(t, a, k);
  #else
  PyObject *o = __pyx_tp_new_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(t, a, k);
  #endif
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *)o);
  p->__pyx_vtab = __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  return o;
}

static PyMethodDef __pyx_methods_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO[] = {
  {"toExternalDictionary", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_16toExternalDictionary},
  {"toExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_18toExternalObject},
  {"updateFromExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_24updateFromExternalObject},
  {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO_slots[] = {
  {Py_tp_getattro, (void *)PyObject_GenericGetAttr},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Base class for objects that externalize based on dynamic information.\n\n    Abstractions are in place to allow subclasses to map external and internal names\n    independently (this type never uses getattr/setattr/hasattr, except for some\n    standard fields).\n\n    See `InterfaceObjectIO` for a complete implementation.\n    ")},
  {Py_tp_methods, (void *)__pyx_methods_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO},
  {Py_tp_new, (void *)__pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO},
  {0, 0},
};
static PyType_Spec __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO_spec = {
  "nti.externalization._datastructures.AbstractDynamicObjectIO",
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
  __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO_slots,
};
#else

static PyTypeObject __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = {
  PyVarObject_HEAD_INIT(0, 0)
  "nti.externalization._datastructures.""AbstractDynamicObjectIO", /*tp_name*/
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  PyDoc_STR("\n    Base class for objects that externalize based on dynamic information.\n\n    Abstractions are in place to allow subclasses to map external and internal names\n    independently (this type never uses getattr/setattr/hasattr, except for some\n    standard fields).\n\n    See `InterfaceObjectIO` for a complete implementation.\n    "), /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures__ExternalizableInstanceDict __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;

static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *p;
  #if CYTHON_COMPILING_IN_LIMITED_API
  newfunc new_func = (newfunc)PyType_GetSlot(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO, Py_tp_new);
  PyObject *o = new_func(t, a, k);
  #else
  PyObject *o = __pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO(t, a, k);
  #endif
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO*)__pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  p->__dict__ = PyDict_New(); if (unlikely(!p->__dict__)) goto bad;p->context = Py_None; Py_INCREF(Py_None);
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

#if !CYTHON_COMPILING_IN_LIMITED_API
static void __pyx_tp_dealloc_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyObject *o) {
  struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *p = (struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  if (p->__dict__) PyDict_Clear(p->__dict__);
  Py_CLEAR(p->__dict__);
  Py_CLEAR(p->context);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(o);
}
#endif

static int __pyx_tp_traverse_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *p = (struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)o;
  e = ((likely(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO)) ? ((__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_traverse) ? __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_3nti_15externalization_15_datastructures__ExternalizableInstanceDict)); if (e) return e;
  if (p->__dict__) {
    e = (*v)(p->__dict__, a); if (e) return e;
  }
  if (p->context) {
    e = (*v)(p->context, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *p = (struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)o;
  if (likely(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO)) { if (__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_clear) __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);
  tmp = ((PyObject*)p->__dict__);
  p->__dict__ = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->context);
  p->context = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx___dict__getter_3nti_15externalization_15_datastructures__ExternalizableInstanceDict(PyObject *o, CYTHON_UNUSED void *x) {
  struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *p = (struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict *)o;
  if (unlikely(!p->__dict__)){
    p->__dict__ = PyDict_New();
  }
  Py_XINCREF(p->__dict__);
  return p->__dict__;
}

static PyMethodDef __pyx_methods_3nti_15externalization_15_datastructures__ExternalizableInstanceDict[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3nti_15externalization_15_datastructures__ExternalizableInstanceDict[] = {
  {(char *)"__dict__", __pyx___dict__getter_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict_slots[] = {
  {Py_tp_getattro, (void *)PyObject_GenericGetAttr},
  {Py_tp_doc, (void *)PyDoc_STR("_ExternalizableInstanceDict(context)")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_3nti_15externalization_15_datastructures__ExternalizableInstanceDict},
  {Py_tp_clear, (void *)__pyx_tp_clear_3nti_15externalization_15_datastructures__ExternalizableInstanceDict},
  {Py_tp_methods, (void *)__pyx_methods_3nti_15externalization_15_datastructures__ExternalizableInstanceDict},
  {Py_tp_getset, (void *)__pyx_getsets_3nti_15externalization_15_datastructures__ExternalizableInstanceDict},
  {Py_tp_dictoffset, (void *)offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, __dict__)},
  {Py_tp_init, (void *)__pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_3nti_15externalization_15_datastructures__ExternalizableInstanceDict},
  {0, 0},
};
static PyType_Spec __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict_spec = {
  "nti.externalization._datastructures._ExternalizableInstanceDict",
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict_slots,
};
#else

static PyTypeObject __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = {
  PyVarObject_HEAD_INIT(0, 0)
  "nti.externalization._datastructures.""_ExternalizableInstanceDict", /*tp_name*/
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("_ExternalizableInstanceDict(context)"), /*tp_doc*/
  __pyx_tp_traverse_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_traverse*/
  __pyx_tp_clear_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, __dict__), /*tp_dictoffset*/
  __pyx_pw_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_InterfaceObjectIO __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO;

static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *p;
  #if CYTHON_COMPILING_IN_LIMITED_API
  newfunc new_func = (newfunc)PyType_GetSlot(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO, Py_tp_new);
  PyObject *o = new_func(t, a, k);
  #else
  PyObject *o = __pyx_tp_new_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO(t, a, k);
  #endif
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO*)__pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  p->_ext_self = Py_None; Py_INCREF(Py_None);
  p->_iface = Py_None; Py_INCREF(Py_None);
  p->__dict__ = PyDict_New(); if (unlikely(!p->__dict__)) goto bad;return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

#if !CYTHON_COMPILING_IN_LIMITED_API
static void __pyx_tp_dealloc_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyObject *o) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *p = (struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely((PY_VERSION_HEX >= 0x03080000 || __Pyx_PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE)) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  if (p->__dict__) PyDict_Clear(p->__dict__);
  Py_CLEAR(p->_ext_self);
  Py_CLEAR(p->_iface);
  Py_CLEAR(p->__dict__);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin(o);
}
#endif

static int __pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *p = (struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)o;
  e = ((likely(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO)) ? ((__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_traverse) ? __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO)); if (e) return e;
  if (p->_ext_self) {
    e = (*v)(p->_ext_self, a); if (e) return e;
  }
  if (p->_iface) {
    e = (*v)(p->_iface, a); if (e) return e;
  }
  if (p->__dict__) {
    e = (*v)(p->__dict__, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *p = (struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)o;
  if (likely(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO)) { if (__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_clear) __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO);
  tmp = ((PyObject*)p->_ext_self);
  p->_ext_self = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_iface);
  p->_iface = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->__dict__);
  p->__dict__ = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx___dict__getter_3nti_15externalization_15_datastructures_InterfaceObjectIO(PyObject *o, CYTHON_UNUSED void *x) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *p = (struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *)o;
  if (unlikely(!p->__dict__)){
    p->__dict__ = PyDict_New();
  }
  Py_XINCREF(p->__dict__);
  return p->__dict__;
}

static PyObject *__pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO_schema(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6schema_1__get__(o);
}

static PyObject *__pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_self(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_self_1__get__(o);
}

static PyObject *__pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO__iface(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_6_iface_1__get__(o);
}

static PyObject *__pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO_validate_after_update(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21validate_after_update_1__get__(o);
}

static PyMethodDef __pyx_methods_3nti_15externalization_15_datastructures_InterfaceObjectIO[] = {
  {"updateFromExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_22updateFromExternalObject},
  {"toExternalObject", (PyCFunction)(void*)(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO_26toExternalObject},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3nti_15externalization_15_datastructures_InterfaceObjectIO[] = {
  {(char *)"__dict__", __pyx___dict__getter_3nti_15externalization_15_datastructures_InterfaceObjectIO, 0, (char *)0, 0},
  {(char *)"schema", __pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO_schema, 0, (char *)PyDoc_STR("\n        The schema we will use to guide the process\n        "), 0},
  {(char *)"_ext_self", __pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_self, 0, (char *)0, 0},
  {(char *)"_iface", __pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO__iface, 0, (char *)0, 0},
  {(char *)"validate_after_update", __pyx_getprop_3nti_15externalization_15_datastructures_17InterfaceObjectIO_validate_after_update, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO_slots[] = {
  {Py_tp_repr, (void *)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_3__repr__},
  {Py_tp_getattro, (void *)PyObject_GenericGetAttr},
  {Py_tp_doc, (void *)PyDoc_STR("InterfaceObjectIO(context, iface_upper_bound=None, validate_after_update=True)\n\n    Externalizes the *context* to a dictionary based on getting the\n    attributes of an object defined by an interface. If any attribute\n    has a true value for the tagged value ``_ext_excluded_out``, it\n    will not be considered for reading or writing.\n\n    This is an implementation of\n    `~nti.externalization.interfaces.IInternalObjectIOFinder`, meaning\n    it can both internalize (update existing objects) and externalize\n    (producing dictionaries), and that it gets to choose the factories\n    used for sub-objects when internalizing.\n\n    This class is meant to be used as an adapter, so it accepts the\n    object to externalize in the constructor, as well as the interface\n    to use to guide the process. The object is externalized using the\n    most-derived version of the interface given to the constructor\n    that it implements.\n\n    If the interface (or an ancestor) has a tagged value\n    ``__external_class_name__``, it can either be the value to use for\n    the ``Class`` key, or a callable\n    ``__external_class_name__(interface, object ) -> name.``\n\n    (TODO: In the future extend this to multiple, non-overlapping\n    interfaces, and better interface detection (see\n    :class:`ModuleScopedInterfaceObjectIO` for a limited version of\n    this.)\n\n    This class overrides `_ext_replacement` to return the *context*.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_clear, (void *)__pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_methods, (void *)__pyx_methods_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_getset, (void *)__pyx_getsets_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_dictoffset, (void *)offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO, __dict__)},
  {Py_tp_init, (void *)__pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_1__init__},
  {Py_tp_new, (void *)__pyx_tp_new_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {0, 0},
};
static PyType_Spec __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO_spec = {
  "nti.externalization._datastructures.InterfaceObjectIO",
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO_slots,
};
#else

static PyTypeObject __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO = {
  PyVarObject_HEAD_INIT(0, 0)
  "nti.externalization._datastructures.""InterfaceObjectIO", /*tp_name*/
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_3__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("InterfaceObjectIO(context, iface_upper_bound=None, validate_after_update=True)\n\n    Externalizes the *context* to a dictionary based on getting the\n    attributes of an object defined by an interface. If any attribute\n    has a true value for the tagged value ``_ext_excluded_out``, it\n    will not be considered for reading or writing.\n\n    This is an implementation of\n    `~nti.externalization.interfaces.IInternalObjectIOFinder`, meaning\n    it can both internalize (update existing objects) and externalize\n    (producing dictionaries), and that it gets to choose the factories\n    used for sub-objects when internalizing.\n\n    This class is meant to be used as an adapter, so it accepts the\n    object to externalize in the constructor, as well as the interface\n    to use to guide the process. The object is externalized using the\n    most-derived version of the interface given to the constructor\n    that it implements.\n\n    If the interface (or an ancestor) has a tagged value\n    ``__external_class_name__``, it can either be the value to use for\n    the ``Class`` key, or a callable\n    ``__external_class_name__(interface, object ) -> name.``\n\n    (TODO: In the future extend this to multiple, non-overlapping\n    interfaces, and better interface detection (see\n    :class:`ModuleScopedInterfaceObjectIO` for a limited version of\n    this.)\n\n    This class overrides `_ext_replacement` to return the *context*.\n    "), /*tp_doc*/
  __pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_traverse*/
  __pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO, __dict__), /*tp_dictoffset*/
  __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
  0, /*tp_pypy_flags*/
  #endif
};
#endif
static struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO __pyx_vtable_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;

static PyObject *__pyx_tp_new_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *p;
  #if CYTHON_COMPILING_IN_LIMITED_API
  newfunc new_func = (newfunc)PyType_GetSlot(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO, Py_tp_new);
  PyObject *o = new_func(t, a, k);
  #else
  PyObject *o = __pyx_tp_new_3nti_15externalization_15_datastructures_InterfaceObjectIO(t, a, k);
  #endif
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO*)__pyx_vtabptr_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  return o;
}

static PyObject *__pyx___dict__getter_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO(PyObject *o, CYTHON_UNUSED void *x) {
  struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *p = (struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO *)o;
  if (unlikely(!p->__pyx_base.__dict__)){
    p->__pyx_base.__dict__ = PyDict_New();
  }
  Py_XINCREF(p->__pyx_base.__dict__);
  return p->__pyx_base.__dict__;
}

static PyMethodDef __pyx_methods_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO[] = {
  {(char *)"__dict__", __pyx___dict__getter_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO_slots[] = {
  {Py_tp_getattro, (void *)PyObject_GenericGetAttr},
  {Py_tp_doc, (void *)PyDoc_STR("\n    Only considers the interfaces provided within a given module\n    (usually declared as a class attribute) when searching for the\n    schema to use to externalize an object; the most derived version\n    of interfaces within that module will be used. Subclasses must\n    declare the class attribute ``_ext_search_module`` to be a module\n    (something with the ``__name__``) attribute to locate interfaces\n    in.\n\n    Suitable for use when all the externalizable fields of interest\n    are declared by an interface within a module, and an object does\n    not implement two unrelated interfaces from the same module.\n\n    .. note:: If the object does implement unrelated interfaces, but\n            one (set) of them is a marker interface (featuring no schema\n            fields or attributes), then it can be tagged with\n            ``_ext_is_marker_interface`` and it will be excluded when\n            determining the most derived interfaces. This can correct some\n            cases that would otherwise raise a TypeError. This tag is not inherited.\n    ")},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_clear, (void *)__pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO},
  {Py_tp_methods, (void *)__pyx_methods_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO},
  {Py_tp_getset, (void *)__pyx_getsets_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO},
  {Py_tp_dictoffset, (void *)offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, __pyx_base.__dict__)},
  {Py_tp_new, (void *)__pyx_tp_new_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO},
  {0, 0},
};
static PyType_Spec __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO_spec = {
  "nti.externalization._datastructures.ModuleScopedInterfaceObjectIO",
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
  __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO_slots,
};
#else

static PyTypeObject __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = {
  PyVarObject_HEAD_INIT(0, 0)
  "nti.externalization._datastructures.""ModuleScopedInterfaceObjectIO", /*tp_name*/
  sizeof(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_3__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  PyDoc_STR("\n    Only considers the interfaces provided within a given module\n    (usually declared as a class attribute) when searching for the\n    schema to use to externalize an object; the most derived version\n    of interfaces within that module will be used. Subclasses must\n    declare the class attribute ``_ext_search_module`` to be a module\n    (something with the ``__name__``) attribute to locate interfaces\n    in.\n\n    Suitable for use when all the externalizable fields of interest\n    are declared by an interface within a module, and an object does\n    not implement two unrelated interfaces from the same module.\n\n    .. note:: If the object does implement unrelated interfaces, but\n            one (set) of them is a marker interface (featuring no schema\n            fields or attributes), then it can be tagged with\n            ``_ext_is_marker_interface`` and it will be excluded when\n            determining the most derived interfaces. This can correct some\n            cases that would otherwise raise a TypeError. This tag is not inherited.\n    "), /*tp_doc*/
  __pyx_tp_traverse_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_traverse*/
  __pyx_tp_clear_3nti_15externalization_15_datastructures_InterfaceObjectIO, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  offsetof(struct __pyx_obj_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, __pyx_base.__dict__), /*tp_dictoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_3nti_15externalization_15_datastructures_17InterfaceObjectIO_1__init__, /*tp_init*/
  #else
  0, /*tp_init*/
  #endif
  0, /*tp_alloc*/
  __pyx_tp_new_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif
/* #### Code section: pystring_table ### */

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  #if CYTHON_COMPILING_IN_LIMITED_API
  {0, __pyx_k_AbstractDynamicObjectIO, sizeof(__pyx_k_AbstractDynamicObjectIO), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_acc, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_acc), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_acc_2, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_acc_2), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_all, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_all), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_get, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_get), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_key, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_key), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_pri, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_pri), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_rep, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_rep), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_rep_2, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_rep_2), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO__ext_set, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_set), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO_find_fac, sizeof(__pyx_k_AbstractDynamicObjectIO_find_fac), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO_toExtern, sizeof(__pyx_k_AbstractDynamicObjectIO_toExtern), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO_toExtern_2, sizeof(__pyx_k_AbstractDynamicObjectIO_toExtern_2), 0, 0, 1, 1},
  {0, __pyx_k_AbstractDynamicObjectIO_updateFr, sizeof(__pyx_k_AbstractDynamicObjectIO_updateFr), 0, 0, 1, 1},
  {0, __pyx_k_AnonymousDictFactory, sizeof(__pyx_k_AnonymousDictFactory), 0, 0, 1, 1},
  {0, __pyx_k_AnonymousDictFactory_default_fa, sizeof(__pyx_k_AnonymousDictFactory_default_fa), 0, 0, 1, 1},
  {0, __pyx_k_AnonymousObjectFactory, sizeof(__pyx_k_AnonymousObjectFactory), 0, 0, 1, 1},
  {0, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 0, 0, 1, 1},
  {0, __pyx_k_Class_r_should_have_a_frozenset, sizeof(__pyx_k_Class_r_should_have_a_frozenset), 0, 0, 1, 0},
  {0, __pyx_k_DEFAULT_EXTERNALIZATION_POLICY, sizeof(__pyx_k_DEFAULT_EXTERNALIZATION_POLICY), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableDictionaryMixin, sizeof(__pyx_k_ExternalizableDictionaryMixin), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableDictionaryMixin__e, sizeof(__pyx_k_ExternalizableDictionaryMixin__e), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableDictionaryMixin__e_2, sizeof(__pyx_k_ExternalizableDictionaryMixin__e_2), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableDictionaryMixin_to, sizeof(__pyx_k_ExternalizableDictionaryMixin_to), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict, sizeof(__pyx_k_ExternalizableInstanceDict), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict_2, sizeof(__pyx_k_ExternalizableInstanceDict_2), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict___get, sizeof(__pyx_k_ExternalizableInstanceDict___get), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict___mak, sizeof(__pyx_k_ExternalizableInstanceDict___mak), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext, sizeof(__pyx_k_ExternalizableInstanceDict__ext), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext_2, sizeof(__pyx_k_ExternalizableInstanceDict__ext_2), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext_3, sizeof(__pyx_k_ExternalizableInstanceDict__ext_3), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext_4, sizeof(__pyx_k_ExternalizableInstanceDict__ext_4), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext_5, sizeof(__pyx_k_ExternalizableInstanceDict__ext_5), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__ext_6, sizeof(__pyx_k_ExternalizableInstanceDict__ext_6), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict__mak, sizeof(__pyx_k_ExternalizableInstanceDict__mak), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict_toExt, sizeof(__pyx_k_ExternalizableInstanceDict_toExt), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict_toExt_2, sizeof(__pyx_k_ExternalizableInstanceDict_toExt_2), 0, 0, 1, 1},
  {0, __pyx_k_ExternalizableInstanceDict_updat, sizeof(__pyx_k_ExternalizableInstanceDict_updat), 0, 0, 1, 1},
  {0, __pyx_k_Externalizes_to_a_dictionary_co, sizeof(__pyx_k_Externalizes_to_a_dictionary_co), 0, 0, 1, 0},
  {0, __pyx_k_FutureWarning, sizeof(__pyx_k_FutureWarning), 0, 0, 1, 1},
  {0, __pyx_k_IAnonymousObjectFactory, sizeof(__pyx_k_IAnonymousObjectFactory), 0, 0, 1, 1},
  {0, __pyx_k_IDict, sizeof(__pyx_k_IDict), 0, 0, 1, 1},
  {0, __pyx_k_IDict_providedBy, sizeof(__pyx_k_IDict_providedBy), 0, 0, 1, 1},
  {0, __pyx_k_IInternalObjectIO, sizeof(__pyx_k_IInternalObjectIO), 0, 0, 1, 1},
  {0, __pyx_k_IInternalObjectIOFinder, sizeof(__pyx_k_IInternalObjectIOFinder), 0, 0, 1, 1},
  {0, __pyx_k_IMethod, sizeof(__pyx_k_IMethod), 0, 0, 1, 1},
  {0, __pyx_k_IObject, sizeof(__pyx_k_IObject), 0, 0, 1, 1},
  {0, __pyx_k_IObject_providedBy, sizeof(__pyx_k_IObject_providedBy), 0, 0, 1, 1},
  {0, __pyx_k_Interface, sizeof(__pyx_k_Interface), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO, sizeof(__pyx_k_InterfaceObjectIO), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_accept_ex, sizeof(__pyx_k_InterfaceObjectIO__ext_accept_ex), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_all_possi, sizeof(__pyx_k_InterfaceObjectIO__ext_all_possi), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_find_prim, sizeof(__pyx_k_InterfaceObjectIO__ext_find_prim), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_find_sche, sizeof(__pyx_k_InterfaceObjectIO__ext_find_sche), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_getattr, sizeof(__pyx_k_InterfaceObjectIO__ext_getattr), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_replaceme, sizeof(__pyx_k_InterfaceObjectIO__ext_replaceme), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_schemas_t, sizeof(__pyx_k_InterfaceObjectIO__ext_schemas_t), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__ext_setattr, sizeof(__pyx_k_InterfaceObjectIO__ext_setattr), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO__validate_afte, sizeof(__pyx_k_InterfaceObjectIO__validate_afte), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO_find_factory_f, sizeof(__pyx_k_InterfaceObjectIO_find_factory_f), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO_toExternalObje, sizeof(__pyx_k_InterfaceObjectIO_toExternalObje), 0, 0, 1, 1},
  {0, __pyx_k_InterfaceObjectIO_updateFromExte, sizeof(__pyx_k_InterfaceObjectIO_updateFromExte), 0, 0, 1, 1},
  {0, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1},
  {0, __pyx_k_ModuleScopedInterfaceObjectIO, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO), 0, 0, 1, 1},
  {0, __pyx_k_ModuleScopedInterfaceObjectIO__e, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO__e), 0, 0, 1, 1},
  {0, __pyx_k_ModuleScopedInterfaceObjectIO__e_2, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO__e_2), 0, 0, 1, 1},
  {0, __pyx_k_Most_derived_interface_s_does_no, sizeof(__pyx_k_Most_derived_interface_s_does_no), 0, 0, 1, 0},
  {0, __pyx_k_NotGiven, sizeof(__pyx_k_NotGiven), 0, 0, 1, 1},
  {0, __pyx_k_NotImplementedError, sizeof(__pyx_k_NotImplementedError), 0, 0, 1, 1},
  {0, __pyx_k_Number, sizeof(__pyx_k_Number), 0, 0, 1, 1},
  {0, __pyx_k_SchemaNotProvided, sizeof(__pyx_k_SchemaNotProvided), 0, 0, 1, 1},
  {0, __pyx_k_StandardExternalFields, sizeof(__pyx_k_StandardExternalFields), 0, 0, 1, 1},
  {0, __pyx_k_StandardInternalFields, sizeof(__pyx_k_StandardInternalFields), 0, 0, 1, 1},
  {0, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {0, __pyx_k__3, sizeof(__pyx_k__3), 0, 0, 1, 1},
  {0, __pyx_k__8, sizeof(__pyx_k__8), 0, 0, 1, 1},
  {0, __pyx_k__96, sizeof(__pyx_k__96), 0, 0, 1, 1},
  {0, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
  {0, __pyx_k_all_2, sizeof(__pyx_k_all_2), 0, 0, 1, 1},
  {0, __pyx_k_anonymous_dict_factory, sizeof(__pyx_k_anonymous_dict_factory), 0, 0, 1, 1},
  {0, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
  {0, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1},
  {0, __pyx_k_attr_val, sizeof(__pyx_k_attr_val), 0, 0, 1, 1},
  {0, __pyx_k_base_interfaces, sizeof(__pyx_k_base_interfaces), 0, 0, 1, 1},
  {0, __pyx_k_cache_for, sizeof(__pyx_k_cache_for), 0, 0, 1, 1},
  {0, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1},
  {0, __pyx_k_classImplements, sizeof(__pyx_k_classImplements), 0, 0, 1, 1},
  {0, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1},
  {0, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {0, __pyx_k_context, sizeof(__pyx_k_context), 0, 0, 1, 1},
  {0, __pyx_k_created, sizeof(__pyx_k_created), 0, 0, 1, 1},
  {0, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1},
  {0, __pyx_k_decorate, sizeof(__pyx_k_decorate), 0, 0, 1, 1},
  {0, __pyx_k_decorate_callback, sizeof(__pyx_k_decorate_callback), 0, 0, 1, 1},
  {0, __pyx_k_default, sizeof(__pyx_k_default), 0, 0, 1, 1},
  {0, __pyx_k_default_factory, sizeof(__pyx_k_default_factory), 0, 0, 1, 1},
  {0, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
  {0, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1},
  {0, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {0, __pyx_k_excluded_in_ivars, sizeof(__pyx_k_excluded_in_ivars), 0, 0, 1, 1},
  {0, __pyx_k_excluded_out_ivars, sizeof(__pyx_k_excluded_out_ivars), 0, 0, 1, 1},
  {0, __pyx_k_ext_accept_external_id, sizeof(__pyx_k_ext_accept_external_id), 0, 0, 1, 1},
  {0, __pyx_k_ext_accept_update_key, sizeof(__pyx_k_ext_accept_update_key), 0, 0, 1, 1},
  {0, __pyx_k_ext_all_possible_keys, sizeof(__pyx_k_ext_all_possible_keys), 0, 0, 1, 1},
  {0, __pyx_k_ext_class_name, sizeof(__pyx_k_ext_class_name), 0, 0, 1, 1},
  {0, __pyx_k_ext_excluded_out, sizeof(__pyx_k_ext_excluded_out), 0, 0, 1, 1},
  {0, __pyx_k_ext_find_primitive_keys, sizeof(__pyx_k_ext_find_primitive_keys), 0, 0, 1, 1},
  {0, __pyx_k_ext_find_schema, sizeof(__pyx_k_ext_find_schema), 0, 0, 1, 1},
  {0, __pyx_k_ext_getattr, sizeof(__pyx_k_ext_getattr), 0, 0, 1, 1},
  {0, __pyx_k_ext_iface_upper_bound, sizeof(__pyx_k_ext_iface_upper_bound), 0, 0, 1, 1},
  {0, __pyx_k_ext_is_marker_interface, sizeof(__pyx_k_ext_is_marker_interface), 0, 0, 1, 1},
  {0, __pyx_k_ext_keys, sizeof(__pyx_k_ext_keys), 0, 0, 1, 1},
  {0, __pyx_k_ext_keys_2, sizeof(__pyx_k_ext_keys_2), 0, 0, 1, 1},
  {0, __pyx_k_ext_primitive_keys, sizeof(__pyx_k_ext_primitive_keys), 0, 0, 1, 1},
  {0, __pyx_k_ext_primitive_out_ivars, sizeof(__pyx_k_ext_primitive_out_ivars), 0, 0, 1, 1},
  {0, __pyx_k_ext_replacement, sizeof(__pyx_k_ext_replacement), 0, 0, 1, 1},
  {0, __pyx_k_ext_replacement_getattr, sizeof(__pyx_k_ext_replacement_getattr), 0, 0, 1, 1},
  {0, __pyx_k_ext_schemas_to_consider, sizeof(__pyx_k_ext_schemas_to_consider), 0, 0, 1, 1},
  {0, __pyx_k_ext_search_module, sizeof(__pyx_k_ext_search_module), 0, 0, 1, 1},
  {0, __pyx_k_ext_self, sizeof(__pyx_k_ext_self), 0, 0, 1, 1},
  {0, __pyx_k_ext_setattr, sizeof(__pyx_k_ext_setattr), 0, 0, 1, 1},
  {0, __pyx_k_ext_standard_external_dictionar, sizeof(__pyx_k_ext_standard_external_dictionar), 0, 0, 1, 1},
  {0, __pyx_k_ext_val, sizeof(__pyx_k_ext_val), 0, 0, 1, 1},
  {0, __pyx_k_external_accept_id, sizeof(__pyx_k_external_accept_id), 0, 0, 1, 1},
  {0, __pyx_k_external_class_name, sizeof(__pyx_k_external_class_name), 0, 0, 1, 1},
  {0, __pyx_k_external_default_implementatio, sizeof(__pyx_k_external_default_implementatio), 0, 0, 1, 1},
  {0, __pyx_k_external_factory, sizeof(__pyx_k_external_factory), 0, 0, 1, 1},
  {0, __pyx_k_external_factory_wants_arg, sizeof(__pyx_k_external_factory_wants_arg), 0, 0, 1, 1},
  {0, __pyx_k_external_use_minimal_base, sizeof(__pyx_k_external_use_minimal_base), 0, 0, 1, 1},
  {0, __pyx_k_externalization_dictionary, sizeof(__pyx_k_externalization_dictionary), 0, 0, 1, 1},
  {0, __pyx_k_externalization_externalizer, sizeof(__pyx_k_externalization_externalizer), 0, 0, 1, 1},
  {0, __pyx_k_factory, sizeof(__pyx_k_factory), 0, 0, 1, 1},
  {0, __pyx_k_find_factory_for, sizeof(__pyx_k_find_factory_for), 0, 0, 1, 1},
  {0, __pyx_k_find_factory_for_named_value, sizeof(__pyx_k_find_factory_for_named_value), 0, 0, 1, 1},
  {0, __pyx_k_find_most_derived_interface, sizeof(__pyx_k_find_most_derived_interface), 0, 0, 1, 1},
  {0, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {0, __pyx_k_getTaggedValue, sizeof(__pyx_k_getTaggedValue), 0, 0, 1, 1},
  {0, __pyx_k_getUtility, sizeof(__pyx_k_getUtility), 0, 0, 1, 1},
  {0, __pyx_k_getValidationErrors, sizeof(__pyx_k_getValidationErrors), 0, 0, 1, 1},
  {0, __pyx_k_get_default_externalization_poli, sizeof(__pyx_k_get_default_externalization_poli), 0, 0, 1, 1},
  {0, __pyx_k_get_standard_external_fields, sizeof(__pyx_k_get_standard_external_fields), 0, 0, 1, 1},
  {0, __pyx_k_get_standard_internal_fields, sizeof(__pyx_k_get_standard_internal_fields), 0, 0, 1, 1},
  {0, __pyx_k_getattr, sizeof(__pyx_k_getattr), 0, 0, 1, 1},
  {0, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1},
  {0, __pyx_k_iface, sizeof(__pyx_k_iface), 0, 0, 1, 1},
  {0, __pyx_k_iface_upper_bound, sizeof(__pyx_k_iface_upper_bound), 0, 0, 1, 1},
  {0, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {0, __pyx_k_import_c_accel, sizeof(__pyx_k_import_c_accel), 0, 0, 1, 1},
  {0, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
  {0, __pyx_k_init_subclass, sizeof(__pyx_k_init_subclass), 0, 0, 1, 1},
  {0, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1},
  {0, __pyx_k_interface, sizeof(__pyx_k_interface), 0, 0, 1, 1},
  {0, __pyx_k_interface_cache, sizeof(__pyx_k_interface_cache), 0, 0, 1, 1},
  {0, __pyx_k_interfaces, sizeof(__pyx_k_interfaces), 0, 0, 1, 1},
  {0, __pyx_k_internal_to_standard_external_di, sizeof(__pyx_k_internal_to_standard_external_di), 0, 0, 1, 1},
  {0, __pyx_k_internalization, sizeof(__pyx_k_internalization), 0, 0, 1, 1},
  {0, __pyx_k_internalization_factories, sizeof(__pyx_k_internalization_factories), 0, 0, 1, 1},
  {0, __pyx_k_iro, sizeof(__pyx_k_iro), 0, 0, 1, 1},
  {0, __pyx_k_isOrExtends, sizeof(__pyx_k_isOrExtends), 0, 0, 1, 1},
  {0, __pyx_k_isSyntheticKey, sizeof(__pyx_k_isSyntheticKey), 0, 0, 1, 1},
  {0, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {0, __pyx_k_iteritems, sizeof(__pyx_k_iteritems), 0, 0, 1, 1},
  {0, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1},
  {0, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
  {0, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1},
  {0, __pyx_k_lastModified, sizeof(__pyx_k_lastModified), 0, 0, 1, 1},
  {0, __pyx_k_links, sizeof(__pyx_k_links), 0, 0, 1, 1},
  {0, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {0, __pyx_k_make_io, sizeof(__pyx_k_make_io), 0, 0, 1, 1},
  {0, __pyx_k_make_repr, sizeof(__pyx_k_make_repr), 0, 0, 1, 1},
  {0, __pyx_k_mergeFrom, sizeof(__pyx_k_mergeFrom), 0, 0, 1, 1},
  {0, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
  {0, __pyx_k_mimeType, sizeof(__pyx_k_mimeType), 0, 0, 1, 1},
  {0, __pyx_k_modified, sizeof(__pyx_k_modified), 0, 0, 1, 1},
  {0, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1},
  {0, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {0, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {0, __pyx_k_names, sizeof(__pyx_k_names), 0, 0, 1, 1},
  {0, __pyx_k_nti_externalization__compat, sizeof(__pyx_k_nti_externalization__compat), 0, 0, 1, 1},
  {0, __pyx_k_nti_externalization__datastructu, sizeof(__pyx_k_nti_externalization__datastructu), 0, 0, 1, 1},
  {0, __pyx_k_nti_schema_interfaces, sizeof(__pyx_k_nti_schema_interfaces), 0, 0, 1, 1},
  {0, __pyx_k_numbers, sizeof(__pyx_k_numbers), 0, 0, 1, 1},
  {0, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
  {0, __pyx_k_p_changed, sizeof(__pyx_k_p_changed), 0, 0, 1, 1},
  {0, __pyx_k_parent, sizeof(__pyx_k_parent), 0, 0, 1, 1},
  {0, __pyx_k_parsed, sizeof(__pyx_k_parsed), 0, 0, 1, 1},
  {0, __pyx_k_policy, sizeof(__pyx_k_policy), 0, 0, 1, 1},
  {0, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1},
  {0, __pyx_k_possibilities, sizeof(__pyx_k_possibilities), 0, 0, 1, 1},
  {0, __pyx_k_prefer_oid, sizeof(__pyx_k_prefer_oid), 0, 0, 1, 1},
  {0, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
  {0, __pyx_k_primitive_ext_keys, sizeof(__pyx_k_primitive_ext_keys), 0, 0, 1, 1},
  {0, __pyx_k_primitives, sizeof(__pyx_k_primitives), 0, 0, 1, 1},
  {0, __pyx_k_providedBy, sizeof(__pyx_k_providedBy), 0, 0, 1, 1},
  {0, __pyx_k_pyx_capi, sizeof(__pyx_k_pyx_capi), 0, 0, 1, 1},
  {0, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {0, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
  {0, __pyx_k_queryDirectTaggedValue, sizeof(__pyx_k_queryDirectTaggedValue), 0, 0, 1, 1},
  {0, __pyx_k_queryTaggedValue, sizeof(__pyx_k_queryTaggedValue), 0, 0, 1, 1},
  {0, __pyx_k_replacement, sizeof(__pyx_k_replacement), 0, 0, 1, 1},
  {0, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
  {0, __pyx_k_representation, sizeof(__pyx_k_representation), 0, 0, 1, 1},
  {0, __pyx_k_request, sizeof(__pyx_k_request), 0, 0, 1, 1},
  {0, __pyx_k_result, sizeof(__pyx_k_result), 0, 0, 1, 1},
  {0, __pyx_k_s_s_for_r_at_0x_x, sizeof(__pyx_k_s_s_for_r_at_0x_x), 0, 0, 1, 0},
  {0, __pyx_k_schema, sizeof(__pyx_k_schema), 0, 0, 1, 1},
  {0, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1},
  {0, __pyx_k_setTaggedValue, sizeof(__pyx_k_setTaggedValue), 0, 0, 1, 1},
  {0, __pyx_k_set_name, sizeof(__pyx_k_set_name), 0, 0, 1, 1},
  {0, __pyx_k_six, sizeof(__pyx_k_six), 0, 0, 1, 1},
  {0, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1},
  {0, __pyx_k_src_nti_externalization_datastru, sizeof(__pyx_k_src_nti_externalization_datastru), 0, 0, 1, 0},
  {0, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1},
  {0, __pyx_k_string_types, sizeof(__pyx_k_string_types), 0, 0, 1, 1},
  {0, __pyx_k_super, sizeof(__pyx_k_super), 0, 0, 1, 1},
  {0, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {0, __pyx_k_title, sizeof(__pyx_k_title), 0, 0, 1, 1},
  {0, __pyx_k_toExternalDictionary, sizeof(__pyx_k_toExternalDictionary), 0, 0, 1, 1},
  {0, __pyx_k_toExternalObject, sizeof(__pyx_k_toExternalObject), 0, 0, 1, 1},
  {0, __pyx_k_to_external_object, sizeof(__pyx_k_to_external_object), 0, 0, 1, 1},
  {0, __pyx_k_to_minimal_standard_external_dic, sizeof(__pyx_k_to_minimal_standard_external_dic), 0, 0, 1, 1},
  {0, __pyx_k_traceback_info, sizeof(__pyx_k_traceback_info), 0, 0, 1, 1},
  {0, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
  {0, __pyx_k_unused_args, sizeof(__pyx_k_unused_args), 0, 0, 1, 1},
  {0, __pyx_k_unused_kwargs, sizeof(__pyx_k_unused_kwargs), 0, 0, 1, 1},
  {0, __pyx_k_updateFromExternalObject, sizeof(__pyx_k_updateFromExternalObject), 0, 0, 1, 1},
  {0, __pyx_k_update_accepts_type_attrs, sizeof(__pyx_k_update_accepts_type_attrs), 0, 0, 1, 1},
  {0, __pyx_k_validate_after_update, sizeof(__pyx_k_validate_after_update), 0, 0, 1, 1},
  {0, __pyx_k_validate_after_update_2, sizeof(__pyx_k_validate_after_update_2), 0, 0, 1, 1},
  {0, __pyx_k_validate_named_field_value, sizeof(__pyx_k_validate_named_field_value), 0, 0, 1, 1},
  {0, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {0, __pyx_k_value_type, sizeof(__pyx_k_value_type), 0, 0, 1, 1},
  {0, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {0, __pyx_k_warn, sizeof(__pyx_k_warn), 0, 0, 1, 1},
  {0, __pyx_k_warnings, sizeof(__pyx_k_warnings), 0, 0, 1, 1},
  {0, __pyx_k_zope, sizeof(__pyx_k_zope), 0, 0, 1, 1},
  {0, __pyx_k_zope_component, sizeof(__pyx_k_zope_component), 0, 0, 1, 1},
  {0, __pyx_k_zope_schema_interfaces, sizeof(__pyx_k_zope_schema_interfaces), 0, 0, 1, 1},
  #else
  {&__pyx_n_s_AbstractDynamicObjectIO, __pyx_k_AbstractDynamicObjectIO, sizeof(__pyx_k_AbstractDynamicObjectIO), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_acc, __pyx_k_AbstractDynamicObjectIO__ext_acc, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_acc), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2, __pyx_k_AbstractDynamicObjectIO__ext_acc_2, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_acc_2), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_all, __pyx_k_AbstractDynamicObjectIO__ext_all, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_all), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_get, __pyx_k_AbstractDynamicObjectIO__ext_get, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_get), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_key, __pyx_k_AbstractDynamicObjectIO__ext_key, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_key), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_pri, __pyx_k_AbstractDynamicObjectIO__ext_pri, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_pri), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_rep, __pyx_k_AbstractDynamicObjectIO__ext_rep, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_rep), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2, __pyx_k_AbstractDynamicObjectIO__ext_rep_2, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_rep_2), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO__ext_set, __pyx_k_AbstractDynamicObjectIO__ext_set, sizeof(__pyx_k_AbstractDynamicObjectIO__ext_set), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO_find_fac, __pyx_k_AbstractDynamicObjectIO_find_fac, sizeof(__pyx_k_AbstractDynamicObjectIO_find_fac), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO_toExtern, __pyx_k_AbstractDynamicObjectIO_toExtern, sizeof(__pyx_k_AbstractDynamicObjectIO_toExtern), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO_toExtern_2, __pyx_k_AbstractDynamicObjectIO_toExtern_2, sizeof(__pyx_k_AbstractDynamicObjectIO_toExtern_2), 0, 0, 1, 1},
  {&__pyx_n_s_AbstractDynamicObjectIO_updateFr, __pyx_k_AbstractDynamicObjectIO_updateFr, sizeof(__pyx_k_AbstractDynamicObjectIO_updateFr), 0, 0, 1, 1},
  {&__pyx_n_s_AnonymousDictFactory, __pyx_k_AnonymousDictFactory, sizeof(__pyx_k_AnonymousDictFactory), 0, 0, 1, 1},
  {&__pyx_n_s_AnonymousDictFactory_default_fa, __pyx_k_AnonymousDictFactory_default_fa, sizeof(__pyx_k_AnonymousDictFactory_default_fa), 0, 0, 1, 1},
  {&__pyx_n_s_AnonymousObjectFactory, __pyx_k_AnonymousObjectFactory, sizeof(__pyx_k_AnonymousObjectFactory), 0, 0, 1, 1},
  {&__pyx_n_s_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 0, 0, 1, 1},
  {&__pyx_kp_s_Class_r_should_have_a_frozenset, __pyx_k_Class_r_should_have_a_frozenset, sizeof(__pyx_k_Class_r_should_have_a_frozenset), 0, 0, 1, 0},
  {&__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY, __pyx_k_DEFAULT_EXTERNALIZATION_POLICY, sizeof(__pyx_k_DEFAULT_EXTERNALIZATION_POLICY), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableDictionaryMixin, __pyx_k_ExternalizableDictionaryMixin, sizeof(__pyx_k_ExternalizableDictionaryMixin), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableDictionaryMixin__e, __pyx_k_ExternalizableDictionaryMixin__e, sizeof(__pyx_k_ExternalizableDictionaryMixin__e), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableDictionaryMixin__e_2, __pyx_k_ExternalizableDictionaryMixin__e_2, sizeof(__pyx_k_ExternalizableDictionaryMixin__e_2), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableDictionaryMixin_to, __pyx_k_ExternalizableDictionaryMixin_to, sizeof(__pyx_k_ExternalizableDictionaryMixin_to), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict, __pyx_k_ExternalizableInstanceDict, sizeof(__pyx_k_ExternalizableInstanceDict), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict_2, __pyx_k_ExternalizableInstanceDict_2, sizeof(__pyx_k_ExternalizableInstanceDict_2), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict___get, __pyx_k_ExternalizableInstanceDict___get, sizeof(__pyx_k_ExternalizableInstanceDict___get), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict___mak, __pyx_k_ExternalizableInstanceDict___mak, sizeof(__pyx_k_ExternalizableInstanceDict___mak), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext, __pyx_k_ExternalizableInstanceDict__ext, sizeof(__pyx_k_ExternalizableInstanceDict__ext), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext_2, __pyx_k_ExternalizableInstanceDict__ext_2, sizeof(__pyx_k_ExternalizableInstanceDict__ext_2), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext_3, __pyx_k_ExternalizableInstanceDict__ext_3, sizeof(__pyx_k_ExternalizableInstanceDict__ext_3), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext_4, __pyx_k_ExternalizableInstanceDict__ext_4, sizeof(__pyx_k_ExternalizableInstanceDict__ext_4), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext_5, __pyx_k_ExternalizableInstanceDict__ext_5, sizeof(__pyx_k_ExternalizableInstanceDict__ext_5), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__ext_6, __pyx_k_ExternalizableInstanceDict__ext_6, sizeof(__pyx_k_ExternalizableInstanceDict__ext_6), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict__mak, __pyx_k_ExternalizableInstanceDict__mak, sizeof(__pyx_k_ExternalizableInstanceDict__mak), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict_toExt, __pyx_k_ExternalizableInstanceDict_toExt, sizeof(__pyx_k_ExternalizableInstanceDict_toExt), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict_toExt_2, __pyx_k_ExternalizableInstanceDict_toExt_2, sizeof(__pyx_k_ExternalizableInstanceDict_toExt_2), 0, 0, 1, 1},
  {&__pyx_n_s_ExternalizableInstanceDict_updat, __pyx_k_ExternalizableInstanceDict_updat, sizeof(__pyx_k_ExternalizableInstanceDict_updat), 0, 0, 1, 1},
  {&__pyx_kp_s_Externalizes_to_a_dictionary_co, __pyx_k_Externalizes_to_a_dictionary_co, sizeof(__pyx_k_Externalizes_to_a_dictionary_co), 0, 0, 1, 0},
  {&__pyx_n_s_FutureWarning, __pyx_k_FutureWarning, sizeof(__pyx_k_FutureWarning), 0, 0, 1, 1},
  {&__pyx_n_s_IAnonymousObjectFactory, __pyx_k_IAnonymousObjectFactory, sizeof(__pyx_k_IAnonymousObjectFactory), 0, 0, 1, 1},
  {&__pyx_n_s_IDict, __pyx_k_IDict, sizeof(__pyx_k_IDict), 0, 0, 1, 1},
  {&__pyx_n_s_IDict_providedBy, __pyx_k_IDict_providedBy, sizeof(__pyx_k_IDict_providedBy), 0, 0, 1, 1},
  {&__pyx_n_s_IInternalObjectIO, __pyx_k_IInternalObjectIO, sizeof(__pyx_k_IInternalObjectIO), 0, 0, 1, 1},
  {&__pyx_n_s_IInternalObjectIOFinder, __pyx_k_IInternalObjectIOFinder, sizeof(__pyx_k_IInternalObjectIOFinder), 0, 0, 1, 1},
  {&__pyx_n_s_IMethod, __pyx_k_IMethod, sizeof(__pyx_k_IMethod), 0, 0, 1, 1},
  {&__pyx_n_s_IObject, __pyx_k_IObject, sizeof(__pyx_k_IObject), 0, 0, 1, 1},
  {&__pyx_n_s_IObject_providedBy, __pyx_k_IObject_providedBy, sizeof(__pyx_k_IObject_providedBy), 0, 0, 1, 1},
  {&__pyx_n_s_Interface, __pyx_k_Interface, sizeof(__pyx_k_Interface), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO, __pyx_k_InterfaceObjectIO, sizeof(__pyx_k_InterfaceObjectIO), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_accept_ex, __pyx_k_InterfaceObjectIO__ext_accept_ex, sizeof(__pyx_k_InterfaceObjectIO__ext_accept_ex), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_all_possi, __pyx_k_InterfaceObjectIO__ext_all_possi, sizeof(__pyx_k_InterfaceObjectIO__ext_all_possi), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_find_prim, __pyx_k_InterfaceObjectIO__ext_find_prim, sizeof(__pyx_k_InterfaceObjectIO__ext_find_prim), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_find_sche, __pyx_k_InterfaceObjectIO__ext_find_sche, sizeof(__pyx_k_InterfaceObjectIO__ext_find_sche), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_getattr, __pyx_k_InterfaceObjectIO__ext_getattr, sizeof(__pyx_k_InterfaceObjectIO__ext_getattr), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_replaceme, __pyx_k_InterfaceObjectIO__ext_replaceme, sizeof(__pyx_k_InterfaceObjectIO__ext_replaceme), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_schemas_t, __pyx_k_InterfaceObjectIO__ext_schemas_t, sizeof(__pyx_k_InterfaceObjectIO__ext_schemas_t), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__ext_setattr, __pyx_k_InterfaceObjectIO__ext_setattr, sizeof(__pyx_k_InterfaceObjectIO__ext_setattr), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO__validate_afte, __pyx_k_InterfaceObjectIO__validate_afte, sizeof(__pyx_k_InterfaceObjectIO__validate_afte), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO_find_factory_f, __pyx_k_InterfaceObjectIO_find_factory_f, sizeof(__pyx_k_InterfaceObjectIO_find_factory_f), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO_toExternalObje, __pyx_k_InterfaceObjectIO_toExternalObje, sizeof(__pyx_k_InterfaceObjectIO_toExternalObje), 0, 0, 1, 1},
  {&__pyx_n_s_InterfaceObjectIO_updateFromExte, __pyx_k_InterfaceObjectIO_updateFromExte, sizeof(__pyx_k_InterfaceObjectIO_updateFromExte), 0, 0, 1, 1},
  {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1},
  {&__pyx_n_s_ModuleScopedInterfaceObjectIO, __pyx_k_ModuleScopedInterfaceObjectIO, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO), 0, 0, 1, 1},
  {&__pyx_n_s_ModuleScopedInterfaceObjectIO__e, __pyx_k_ModuleScopedInterfaceObjectIO__e, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO__e), 0, 0, 1, 1},
  {&__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2, __pyx_k_ModuleScopedInterfaceObjectIO__e_2, sizeof(__pyx_k_ModuleScopedInterfaceObjectIO__e_2), 0, 0, 1, 1},
  {&__pyx_kp_s_Most_derived_interface_s_does_no, __pyx_k_Most_derived_interface_s_does_no, sizeof(__pyx_k_Most_derived_interface_s_does_no), 0, 0, 1, 0},
  {&__pyx_n_s_NotGiven, __pyx_k_NotGiven, sizeof(__pyx_k_NotGiven), 0, 0, 1, 1},
  {&__pyx_n_s_NotImplementedError, __pyx_k_NotImplementedError, sizeof(__pyx_k_NotImplementedError), 0, 0, 1, 1},
  {&__pyx_n_s_Number, __pyx_k_Number, sizeof(__pyx_k_Number), 0, 0, 1, 1},
  {&__pyx_n_s_SchemaNotProvided, __pyx_k_SchemaNotProvided, sizeof(__pyx_k_SchemaNotProvided), 0, 0, 1, 1},
  {&__pyx_n_s_StandardExternalFields, __pyx_k_StandardExternalFields, sizeof(__pyx_k_StandardExternalFields), 0, 0, 1, 1},
  {&__pyx_n_s_StandardInternalFields, __pyx_k_StandardInternalFields, sizeof(__pyx_k_StandardInternalFields), 0, 0, 1, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_n_s__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 0, 1, 1},
  {&__pyx_n_s__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 0, 1, 1},
  {&__pyx_n_s__96, __pyx_k__96, sizeof(__pyx_k__96), 0, 0, 1, 1},
  {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
  {&__pyx_n_s_all_2, __pyx_k_all_2, sizeof(__pyx_k_all_2), 0, 0, 1, 1},
  {&__pyx_n_s_anonymous_dict_factory, __pyx_k_anonymous_dict_factory, sizeof(__pyx_k_anonymous_dict_factory), 0, 0, 1, 1},
  {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1},
  {&__pyx_n_s_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1},
  {&__pyx_n_s_attr_val, __pyx_k_attr_val, sizeof(__pyx_k_attr_val), 0, 0, 1, 1},
  {&__pyx_n_s_base_interfaces, __pyx_k_base_interfaces, sizeof(__pyx_k_base_interfaces), 0, 0, 1, 1},
  {&__pyx_n_s_cache_for, __pyx_k_cache_for, sizeof(__pyx_k_cache_for), 0, 0, 1, 1},
  {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1},
  {&__pyx_n_s_classImplements, __pyx_k_classImplements, sizeof(__pyx_k_classImplements), 0, 0, 1, 1},
  {&__pyx_n_s_class_getitem, __pyx_k_class_getitem, sizeof(__pyx_k_class_getitem), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_context, __pyx_k_context, sizeof(__pyx_k_context), 0, 0, 1, 1},
  {&__pyx_n_s_created, __pyx_k_created, sizeof(__pyx_k_created), 0, 0, 1, 1},
  {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1},
  {&__pyx_n_s_decorate, __pyx_k_decorate, sizeof(__pyx_k_decorate), 0, 0, 1, 1},
  {&__pyx_n_s_decorate_callback, __pyx_k_decorate_callback, sizeof(__pyx_k_decorate_callback), 0, 0, 1, 1},
  {&__pyx_n_s_default, __pyx_k_default, sizeof(__pyx_k_default), 0, 0, 1, 1},
  {&__pyx_n_s_default_factory, __pyx_k_default_factory, sizeof(__pyx_k_default_factory), 0, 0, 1, 1},
  {&__pyx_n_s_dict, __pyx_k_dict, sizeof(__pyx_k_dict), 0, 0, 1, 1},
  {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_excluded_in_ivars, __pyx_k_excluded_in_ivars, sizeof(__pyx_k_excluded_in_ivars), 0, 0, 1, 1},
  {&__pyx_n_s_excluded_out_ivars, __pyx_k_excluded_out_ivars, sizeof(__pyx_k_excluded_out_ivars), 0, 0, 1, 1},
  {&__pyx_n_s_ext_accept_external_id, __pyx_k_ext_accept_external_id, sizeof(__pyx_k_ext_accept_external_id), 0, 0, 1, 1},
  {&__pyx_n_s_ext_accept_update_key, __pyx_k_ext_accept_update_key, sizeof(__pyx_k_ext_accept_update_key), 0, 0, 1, 1},
  {&__pyx_n_s_ext_all_possible_keys, __pyx_k_ext_all_possible_keys, sizeof(__pyx_k_ext_all_possible_keys), 0, 0, 1, 1},
  {&__pyx_n_s_ext_class_name, __pyx_k_ext_class_name, sizeof(__pyx_k_ext_class_name), 0, 0, 1, 1},
  {&__pyx_n_s_ext_excluded_out, __pyx_k_ext_excluded_out, sizeof(__pyx_k_ext_excluded_out), 0, 0, 1, 1},
  {&__pyx_n_s_ext_find_primitive_keys, __pyx_k_ext_find_primitive_keys, sizeof(__pyx_k_ext_find_primitive_keys), 0, 0, 1, 1},
  {&__pyx_n_s_ext_find_schema, __pyx_k_ext_find_schema, sizeof(__pyx_k_ext_find_schema), 0, 0, 1, 1},
  {&__pyx_n_s_ext_getattr, __pyx_k_ext_getattr, sizeof(__pyx_k_ext_getattr), 0, 0, 1, 1},
  {&__pyx_n_s_ext_iface_upper_bound, __pyx_k_ext_iface_upper_bound, sizeof(__pyx_k_ext_iface_upper_bound), 0, 0, 1, 1},
  {&__pyx_n_s_ext_is_marker_interface, __pyx_k_ext_is_marker_interface, sizeof(__pyx_k_ext_is_marker_interface), 0, 0, 1, 1},
  {&__pyx_n_s_ext_keys, __pyx_k_ext_keys, sizeof(__pyx_k_ext_keys), 0, 0, 1, 1},
  {&__pyx_n_s_ext_keys_2, __pyx_k_ext_keys_2, sizeof(__pyx_k_ext_keys_2), 0, 0, 1, 1},
  {&__pyx_n_s_ext_primitive_keys, __pyx_k_ext_primitive_keys, sizeof(__pyx_k_ext_primitive_keys), 0, 0, 1, 1},
  {&__pyx_n_s_ext_primitive_out_ivars, __pyx_k_ext_primitive_out_ivars, sizeof(__pyx_k_ext_primitive_out_ivars), 0, 0, 1, 1},
  {&__pyx_n_s_ext_replacement, __pyx_k_ext_replacement, sizeof(__pyx_k_ext_replacement), 0, 0, 1, 1},
  {&__pyx_n_s_ext_replacement_getattr, __pyx_k_ext_replacement_getattr, sizeof(__pyx_k_ext_replacement_getattr), 0, 0, 1, 1},
  {&__pyx_n_s_ext_schemas_to_consider, __pyx_k_ext_schemas_to_consider, sizeof(__pyx_k_ext_schemas_to_consider), 0, 0, 1, 1},
  {&__pyx_n_s_ext_search_module, __pyx_k_ext_search_module, sizeof(__pyx_k_ext_search_module), 0, 0, 1, 1},
  {&__pyx_n_s_ext_self, __pyx_k_ext_self, sizeof(__pyx_k_ext_self), 0, 0, 1, 1},
  {&__pyx_n_s_ext_setattr, __pyx_k_ext_setattr, sizeof(__pyx_k_ext_setattr), 0, 0, 1, 1},
  {&__pyx_n_s_ext_standard_external_dictionar, __pyx_k_ext_standard_external_dictionar, sizeof(__pyx_k_ext_standard_external_dictionar), 0, 0, 1, 1},
  {&__pyx_n_s_ext_val, __pyx_k_ext_val, sizeof(__pyx_k_ext_val), 0, 0, 1, 1},
  {&__pyx_n_s_external_accept_id, __pyx_k_external_accept_id, sizeof(__pyx_k_external_accept_id), 0, 0, 1, 1},
  {&__pyx_n_s_external_class_name, __pyx_k_external_class_name, sizeof(__pyx_k_external_class_name), 0, 0, 1, 1},
  {&__pyx_n_s_external_default_implementatio, __pyx_k_external_default_implementatio, sizeof(__pyx_k_external_default_implementatio), 0, 0, 1, 1},
  {&__pyx_n_s_external_factory, __pyx_k_external_factory, sizeof(__pyx_k_external_factory), 0, 0, 1, 1},
  {&__pyx_n_s_external_factory_wants_arg, __pyx_k_external_factory_wants_arg, sizeof(__pyx_k_external_factory_wants_arg), 0, 0, 1, 1},
  {&__pyx_n_s_external_use_minimal_base, __pyx_k_external_use_minimal_base, sizeof(__pyx_k_external_use_minimal_base), 0, 0, 1, 1},
  {&__pyx_n_s_externalization_dictionary, __pyx_k_externalization_dictionary, sizeof(__pyx_k_externalization_dictionary), 0, 0, 1, 1},
  {&__pyx_n_s_externalization_externalizer, __pyx_k_externalization_externalizer, sizeof(__pyx_k_externalization_externalizer), 0, 0, 1, 1},
  {&__pyx_n_s_factory, __pyx_k_factory, sizeof(__pyx_k_factory), 0, 0, 1, 1},
  {&__pyx_n_s_find_factory_for, __pyx_k_find_factory_for, sizeof(__pyx_k_find_factory_for), 0, 0, 1, 1},
  {&__pyx_n_s_find_factory_for_named_value, __pyx_k_find_factory_for_named_value, sizeof(__pyx_k_find_factory_for_named_value), 0, 0, 1, 1},
  {&__pyx_n_s_find_most_derived_interface, __pyx_k_find_most_derived_interface, sizeof(__pyx_k_find_most_derived_interface), 0, 0, 1, 1},
  {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {&__pyx_n_s_getTaggedValue, __pyx_k_getTaggedValue, sizeof(__pyx_k_getTaggedValue), 0, 0, 1, 1},
  {&__pyx_n_s_getUtility, __pyx_k_getUtility, sizeof(__pyx_k_getUtility), 0, 0, 1, 1},
  {&__pyx_n_s_getValidationErrors, __pyx_k_getValidationErrors, sizeof(__pyx_k_getValidationErrors), 0, 0, 1, 1},
  {&__pyx_n_s_get_default_externalization_poli, __pyx_k_get_default_externalization_poli, sizeof(__pyx_k_get_default_externalization_poli), 0, 0, 1, 1},
  {&__pyx_n_s_get_standard_external_fields, __pyx_k_get_standard_external_fields, sizeof(__pyx_k_get_standard_external_fields), 0, 0, 1, 1},
  {&__pyx_n_s_get_standard_internal_fields, __pyx_k_get_standard_internal_fields, sizeof(__pyx_k_get_standard_internal_fields), 0, 0, 1, 1},
  {&__pyx_n_s_getattr, __pyx_k_getattr, sizeof(__pyx_k_getattr), 0, 0, 1, 1},
  {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1},
  {&__pyx_n_s_iface, __pyx_k_iface, sizeof(__pyx_k_iface), 0, 0, 1, 1},
  {&__pyx_n_s_iface_upper_bound, __pyx_k_iface_upper_bound, sizeof(__pyx_k_iface_upper_bound), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_import_c_accel, __pyx_k_import_c_accel, sizeof(__pyx_k_import_c_accel), 0, 0, 1, 1},
  {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
  {&__pyx_n_s_init_subclass, __pyx_k_init_subclass, sizeof(__pyx_k_init_subclass), 0, 0, 1, 1},
  {&__pyx_n_s_initializing, __pyx_k_initializing, sizeof(__pyx_k_initializing), 0, 0, 1, 1},
  {&__pyx_n_s_interface, __pyx_k_interface, sizeof(__pyx_k_interface), 0, 0, 1, 1},
  {&__pyx_n_s_interface_cache, __pyx_k_interface_cache, sizeof(__pyx_k_interface_cache), 0, 0, 1, 1},
  {&__pyx_n_s_interfaces, __pyx_k_interfaces, sizeof(__pyx_k_interfaces), 0, 0, 1, 1},
  {&__pyx_n_s_internal_to_standard_external_di, __pyx_k_internal_to_standard_external_di, sizeof(__pyx_k_internal_to_standard_external_di), 0, 0, 1, 1},
  {&__pyx_n_s_internalization, __pyx_k_internalization, sizeof(__pyx_k_internalization), 0, 0, 1, 1},
  {&__pyx_n_s_internalization_factories, __pyx_k_internalization_factories, sizeof(__pyx_k_internalization_factories), 0, 0, 1, 1},
  {&__pyx_n_s_iro, __pyx_k_iro, sizeof(__pyx_k_iro), 0, 0, 1, 1},
  {&__pyx_n_s_isOrExtends, __pyx_k_isOrExtends, sizeof(__pyx_k_isOrExtends), 0, 0, 1, 1},
  {&__pyx_n_s_isSyntheticKey, __pyx_k_isSyntheticKey, sizeof(__pyx_k_isSyntheticKey), 0, 0, 1, 1},
  {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {&__pyx_n_s_iteritems, __pyx_k_iteritems, sizeof(__pyx_k_iteritems), 0, 0, 1, 1},
  {&__pyx_n_s_k, __pyx_k_k, sizeof(__pyx_k_k), 0, 0, 1, 1},
  {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1},
  {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1},
  {&__pyx_n_s_lastModified, __pyx_k_lastModified, sizeof(__pyx_k_lastModified), 0, 0, 1, 1},
  {&__pyx_n_s_links, __pyx_k_links, sizeof(__pyx_k_links), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_make_io, __pyx_k_make_io, sizeof(__pyx_k_make_io), 0, 0, 1, 1},
  {&__pyx_n_s_make_repr, __pyx_k_make_repr, sizeof(__pyx_k_make_repr), 0, 0, 1, 1},
  {&__pyx_n_s_mergeFrom, __pyx_k_mergeFrom, sizeof(__pyx_k_mergeFrom), 0, 0, 1, 1},
  {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1},
  {&__pyx_n_s_mimeType, __pyx_k_mimeType, sizeof(__pyx_k_mimeType), 0, 0, 1, 1},
  {&__pyx_n_s_modified, __pyx_k_modified, sizeof(__pyx_k_modified), 0, 0, 1, 1},
  {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {&__pyx_n_s_names, __pyx_k_names, sizeof(__pyx_k_names), 0, 0, 1, 1},
  {&__pyx_n_s_nti_externalization__compat, __pyx_k_nti_externalization__compat, sizeof(__pyx_k_nti_externalization__compat), 0, 0, 1, 1},
  {&__pyx_n_s_nti_externalization__datastructu, __pyx_k_nti_externalization__datastructu, sizeof(__pyx_k_nti_externalization__datastructu), 0, 0, 1, 1},
  {&__pyx_n_s_nti_schema_interfaces, __pyx_k_nti_schema_interfaces, sizeof(__pyx_k_nti_schema_interfaces), 0, 0, 1, 1},
  {&__pyx_n_s_numbers, __pyx_k_numbers, sizeof(__pyx_k_numbers), 0, 0, 1, 1},
  {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
  {&__pyx_n_s_p_changed, __pyx_k_p_changed, sizeof(__pyx_k_p_changed), 0, 0, 1, 1},
  {&__pyx_n_s_parent, __pyx_k_parent, sizeof(__pyx_k_parent), 0, 0, 1, 1},
  {&__pyx_n_s_parsed, __pyx_k_parsed, sizeof(__pyx_k_parsed), 0, 0, 1, 1},
  {&__pyx_n_s_policy, __pyx_k_policy, sizeof(__pyx_k_policy), 0, 0, 1, 1},
  {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1},
  {&__pyx_n_s_possibilities, __pyx_k_possibilities, sizeof(__pyx_k_possibilities), 0, 0, 1, 1},
  {&__pyx_n_s_prefer_oid, __pyx_k_prefer_oid, sizeof(__pyx_k_prefer_oid), 0, 0, 1, 1},
  {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1},
  {&__pyx_n_s_primitive_ext_keys, __pyx_k_primitive_ext_keys, sizeof(__pyx_k_primitive_ext_keys), 0, 0, 1, 1},
  {&__pyx_n_s_primitives, __pyx_k_primitives, sizeof(__pyx_k_primitives), 0, 0, 1, 1},
  {&__pyx_n_s_providedBy, __pyx_k_providedBy, sizeof(__pyx_k_providedBy), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_capi, __pyx_k_pyx_capi, sizeof(__pyx_k_pyx_capi), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1},
  {&__pyx_n_s_queryDirectTaggedValue, __pyx_k_queryDirectTaggedValue, sizeof(__pyx_k_queryDirectTaggedValue), 0, 0, 1, 1},
  {&__pyx_n_s_queryTaggedValue, __pyx_k_queryTaggedValue, sizeof(__pyx_k_queryTaggedValue), 0, 0, 1, 1},
  {&__pyx_n_s_replacement, __pyx_k_replacement, sizeof(__pyx_k_replacement), 0, 0, 1, 1},
  {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
  {&__pyx_n_s_representation, __pyx_k_representation, sizeof(__pyx_k_representation), 0, 0, 1, 1},
  {&__pyx_n_s_request, __pyx_k_request, sizeof(__pyx_k_request), 0, 0, 1, 1},
  {&__pyx_n_s_result, __pyx_k_result, sizeof(__pyx_k_result), 0, 0, 1, 1},
  {&__pyx_kp_s_s_s_for_r_at_0x_x, __pyx_k_s_s_for_r_at_0x_x, sizeof(__pyx_k_s_s_for_r_at_0x_x), 0, 0, 1, 0},
  {&__pyx_n_s_schema, __pyx_k_schema, sizeof(__pyx_k_schema), 0, 0, 1, 1},
  {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1},
  {&__pyx_n_s_setTaggedValue, __pyx_k_setTaggedValue, sizeof(__pyx_k_setTaggedValue), 0, 0, 1, 1},
  {&__pyx_n_s_set_name, __pyx_k_set_name, sizeof(__pyx_k_set_name), 0, 0, 1, 1},
  {&__pyx_n_s_six, __pyx_k_six, sizeof(__pyx_k_six), 0, 0, 1, 1},
  {&__pyx_n_s_spec, __pyx_k_spec, sizeof(__pyx_k_spec), 0, 0, 1, 1},
  {&__pyx_kp_s_src_nti_externalization_datastru, __pyx_k_src_nti_externalization_datastru, sizeof(__pyx_k_src_nti_externalization_datastru), 0, 0, 1, 0},
  {&__pyx_n_s_staticmethod, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1},
  {&__pyx_n_s_string_types, __pyx_k_string_types, sizeof(__pyx_k_string_types), 0, 0, 1, 1},
  {&__pyx_n_s_super, __pyx_k_super, sizeof(__pyx_k_super), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_title, __pyx_k_title, sizeof(__pyx_k_title), 0, 0, 1, 1},
  {&__pyx_n_s_toExternalDictionary, __pyx_k_toExternalDictionary, sizeof(__pyx_k_toExternalDictionary), 0, 0, 1, 1},
  {&__pyx_n_s_toExternalObject, __pyx_k_toExternalObject, sizeof(__pyx_k_toExternalObject), 0, 0, 1, 1},
  {&__pyx_n_s_to_external_object, __pyx_k_to_external_object, sizeof(__pyx_k_to_external_object), 0, 0, 1, 1},
  {&__pyx_n_s_to_minimal_standard_external_dic, __pyx_k_to_minimal_standard_external_dic, sizeof(__pyx_k_to_minimal_standard_external_dic), 0, 0, 1, 1},
  {&__pyx_n_s_traceback_info, __pyx_k_traceback_info, sizeof(__pyx_k_traceback_info), 0, 0, 1, 1},
  {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1},
  {&__pyx_n_s_unused_args, __pyx_k_unused_args, sizeof(__pyx_k_unused_args), 0, 0, 1, 1},
  {&__pyx_n_s_unused_kwargs, __pyx_k_unused_kwargs, sizeof(__pyx_k_unused_kwargs), 0, 0, 1, 1},
  {&__pyx_n_s_updateFromExternalObject, __pyx_k_updateFromExternalObject, sizeof(__pyx_k_updateFromExternalObject), 0, 0, 1, 1},
  {&__pyx_n_s_update_accepts_type_attrs, __pyx_k_update_accepts_type_attrs, sizeof(__pyx_k_update_accepts_type_attrs), 0, 0, 1, 1},
  {&__pyx_n_s_validate_after_update, __pyx_k_validate_after_update, sizeof(__pyx_k_validate_after_update), 0, 0, 1, 1},
  {&__pyx_n_s_validate_after_update_2, __pyx_k_validate_after_update_2, sizeof(__pyx_k_validate_after_update_2), 0, 0, 1, 1},
  {&__pyx_n_s_validate_named_field_value, __pyx_k_validate_named_field_value, sizeof(__pyx_k_validate_named_field_value), 0, 0, 1, 1},
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {&__pyx_n_s_value_type, __pyx_k_value_type, sizeof(__pyx_k_value_type), 0, 0, 1, 1},
  {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {&__pyx_n_s_warn, __pyx_k_warn, sizeof(__pyx_k_warn), 0, 0, 1, 1},
  {&__pyx_n_s_warnings, __pyx_k_warnings, sizeof(__pyx_k_warnings), 0, 0, 1, 1},
  {&__pyx_n_s_zope, __pyx_k_zope, sizeof(__pyx_k_zope), 0, 0, 1, 1},
  {&__pyx_n_s_zope_component, __pyx_k_zope_component, sizeof(__pyx_k_zope_component), 0, 0, 1, 1},
  {&__pyx_n_s_zope_schema_interfaces, __pyx_k_zope_schema_interfaces, sizeof(__pyx_k_zope_schema_interfaces), 0, 0, 1, 1},
  #endif
  {0, 0, 0, 0, 0, 0, 0}
};
/* #### Code section: cached_builtins ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 402, __pyx_L1_error)
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(0, 463, __pyx_L1_error)
  __pyx_builtin_NotImplementedError = __Pyx_GetBuiltinName(__pyx_n_s_NotImplementedError); if (!__pyx_builtin_NotImplementedError) __PYX_ERR(0, 174, __pyx_L1_error)
  __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super); if (!__pyx_builtin_super) __PYX_ERR(0, 232, __pyx_L1_error)
  __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) __PYX_ERR(0, 261, __pyx_L1_error)
  __pyx_builtin_FutureWarning = __Pyx_GetBuiltinName(__pyx_n_s_FutureWarning); if (!__pyx_builtin_FutureWarning) __PYX_ERR(0, 538, __pyx_L1_error)
  __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(0, 550, __pyx_L1_error)
  __pyx_builtin_all = __Pyx_GetBuiltinName(__pyx_n_s_all); if (!__pyx_builtin_all) __PYX_ERR(0, 575, __pyx_L1_error)
  __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 620, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 810, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "src/nti/externalization/datastructures.py":345
 *         self.context = context
 *         for name in (
 *                 '_update_accepts_type_attrs',             # <<<<<<<<<<<<<<
 *                 '__external_use_minimal_base__',
 *                 '_excluded_in_ivars_',
 */
  __pyx_tuple__4 = PyTuple_Pack(6, __pyx_n_s_update_accepts_type_attrs, __pyx_n_s_external_use_minimal_base, __pyx_n_s_excluded_in_ivars, __pyx_n_s_excluded_out_ivars, __pyx_n_s_ext_primitive_out_ivars, __pyx_n_s_prefer_oid); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "src/nti/externalization/datastructures.py":596
 *                 n for n in iface.names(all=True)
 *                 if (not is_method(iface[n])
 *                     and not iface[n].queryTaggedValue('_ext_excluded_out', False))             # <<<<<<<<<<<<<<
 *             ])
 *         return cache.ext_all_possible_keys
 */
  __pyx_tuple__6 = PyTuple_Pack(2, __pyx_n_s_ext_excluded_out, Py_False); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "src/nti/externalization/datastructures.py":78
 *     __external_use_minimal_base__ = False
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the object that we are externalizing.
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);
  __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement, 78, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) __PYX_ERR(0, 78, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":86
 *         return self
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):             # <<<<<<<<<<<<<<
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,
 */
  __pyx_tuple__11 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_replacement, __pyx_n_s_mergeFrom, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);
  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_standard_external_dictionar, 86, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 86, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":100
 *         )
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *         Produce the standard external dictionary for this object.
 */
  __pyx_tuple__13 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_unused_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);
  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalDictionary, 100, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 100, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":156
 *     _prefer_oid_ = False
 * 
 *     def find_factory_for_named_value(self, key, value): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Uses `.find_factory_for` to locate a factory.
 */
  __pyx_tuple__15 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);
  __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__15, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_find_factory_for_named_value, 156, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 156, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":166
 *         return find_factory_for(value)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         # Redeclare this here for cython
 *         return self
 */
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);
  __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__17, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement, 166, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 166, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":170
 *         return self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         This method must return a frozenset of native strings.
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);
  __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__19, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_all_possible_keys, 170, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 170, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":176
 *         raise NotImplementedError()
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError()
 * 
 */
  __pyx_tuple__21 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_value); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);
  __pyx_codeobj__22 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__21, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_setattr, 176, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__22)) __PYX_ERR(0, 176, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":179
 *         raise NotImplementedError()
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         _ext_getattr(object, name[, default]) -> value
 */
  __pyx_tuple__23 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_default); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);
  __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__23, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_getattr, 179, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 179, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":192
 *         raise NotImplementedError()
 * 
 *     def _ext_replacement_getattr(self, name, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         Like `_ext_getattr`, but automatically fills in `_ext_replacement`
 */
  __pyx_tuple__25 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_default); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);
  __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__25, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement_getattr, 192, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 192, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":201
 *         return self._ext_getattr(self._ext_replacement(), name, default)
 * 
 *     def _ext_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return only the names of attributes that should be externalized.
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);
  __pyx_codeobj__28 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__27, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_keys, 201, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__28)) __PYX_ERR(0, 201, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":222
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 * 
 *     def _ext_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a container of string keys whose values are known to be primitive.
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);
  __pyx_codeobj__30 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__29, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_primitive_keys, 222, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__30)) __PYX_ERR(0, 222, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":231
 *         return self._ext_primitive_out_ivars_
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)
 */
  __pyx_tuple__31 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_unused_args, __pyx_n_s_kwargs, __pyx_n_s_result, __pyx_n_s_ext_self, __pyx_n_s_primitive_ext_keys, __pyx_n_s_k, __pyx_n_s_ext_val, __pyx_n_s_attr_val, __pyx_n_s_traceback_info); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);
  __pyx_codeobj__32 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__31, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalDictionary, 231, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__32)) __PYX_ERR(0, 231, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":274
 *         return result
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 */
  __pyx_tuple__33 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);
  __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__33, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalObject, 274, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 274, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":277
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether or not this key should be accepted for setting
 */
  __pyx_tuple__35 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_k, __pyx_n_s_ext_self, __pyx_n_s_ext_keys_2); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);
  __pyx_codeobj__36 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__35, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_accept_update_key, 277, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__36)) __PYX_ERR(0, 277, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":287
 *         return k not in self._excluded_in_ivars_ and k in ext_keys
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         If the object we're updating does not have an ``id`` set, but there is an
 */
  __pyx_tuple__37 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_parsed); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);
  __pyx_codeobj__38 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__37, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_accept_external_id, 287, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__38)) __PYX_ERR(0, 287, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":296
 *         return False  # false by default
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         return self._updateFromExternalObject(parsed)
 * 
 */
  __pyx_tuple__39 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_parsed, __pyx_n_s_unused_args, __pyx_n_s_unused_kwargs); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);
  __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_updateFromExternalObject, 296, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 296, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":359
 *                 setattr(self, name, v)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self.context
 * 
 */
  __pyx_tuple__41 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);
  __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement, 359, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 359, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":362
 *         return self.context
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         # Be sure that this returns native strings, even if the dict
 *         # has unicode (Python 2) or bytes (Python 3) values.
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);
  __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_all_possible_keys, 362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 362, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":387
 *         return frozenset(ext_dict)
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 */
  __pyx_tuple__45 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_default); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);
  __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_getattr, 387, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 387, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":392
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         setattr(ext_self, k, value)
 * 
 */
  __pyx_tuple__47 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_value); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);
  __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_setattr, 392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 392, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":395
 *         setattr(ext_self, k, value)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 */
  __pyx_tuple__49 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_k, __pyx_n_s_ext_self, __pyx_n_s_ext_keys_2); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);
  __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_accept_update_key, 395, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 395, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":402
 * 
 * 
 * class ExternalizableInstanceDict(object):             # <<<<<<<<<<<<<<
 *     """
 *     Externalizes to a dictionary containing the members of
 */
  __pyx_tuple__51 = PyTuple_Pack(1, __pyx_builtin_object); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);

  /* "src/nti/externalization/datastructures.py":430
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin._ext_replacement`."
 *         return self
 */
  __pyx_tuple__52 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__52);
  __Pyx_GIVEREF(__pyx_tuple__52);
  __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement, 430, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 430, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":434
 *         return self
 * 
 *     def __make_io(self):             # <<<<<<<<<<<<<<
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 */
  __pyx_tuple__54 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);
  __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_make_io, 434, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 434, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":437
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         # here if we didn't have the attribute. Does our IO?
 *         return getattr(self.__make_io(), name)
 */
  __pyx_tuple__56 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);
  __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_getattr, 437, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 437, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":441
 *         return getattr(self.__make_io(), name)
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.updateFromExternalObject`"
 *         self.__make_io().updateFromExternalObject(parsed)
 */
  __pyx_tuple__58 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_parsed, __pyx_n_s_unused_args, __pyx_n_s_unused_kwargs); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_updateFromExternalObject, 441, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 441, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":445
 *         self.__make_io().updateFromExternalObject(parsed)
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`."
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 */
  __pyx_tuple__60 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalObject, 445, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 445, __pyx_L1_error)
  __pyx_tuple__62 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);

  /* "src/nti/externalization/datastructures.py":449
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin.toExternalDictionary`"
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)
 */
  __pyx_tuple__63 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_unused_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__63);
  __Pyx_GIVEREF(__pyx_tuple__63);
  __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalDictionary, 449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) __PYX_ERR(0, 449, __pyx_L1_error)
  __pyx_tuple__65 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__65);
  __Pyx_GIVEREF(__pyx_tuple__65);

  /* "src/nti/externalization/datastructures.py":463
 *     __external_factory_wants_arg__ = True
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def default_factory(value):
 *         return value
 */
  __pyx_tuple__66 = PyTuple_Pack(1, __pyx_n_s_value); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_default_factory, 463, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 463, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":560
 *         return self._iface
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,
 */
  __pyx_tuple__68 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_iface_upper_bound); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);
  __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_find_schema, 560, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(0, 560, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":565
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 * 
 *     def _ext_find_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         result = set()
 *         for n in self._ext_all_possible_keys():
 */
  __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);
  __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_find_primitive_keys, 565, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 565, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":582
 *         return frozenset(result)
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         return interface.providedBy(ext_self)
 * 
 */
  __pyx_tuple__72 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_ext_self); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__72);
  __Pyx_GIVEREF(__pyx_tuple__72);
  __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_schemas_to_consider, 582, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(0, 582, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":585
 *         return interface.providedBy(ext_self)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self._ext_self
 * 
 */
  __pyx_tuple__74 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__74);
  __Pyx_GIVEREF(__pyx_tuple__74);
  __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_replacement, 585, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(0, 585, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":588
 *         return self._ext_self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:
 */
  __pyx_tuple__76 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__76);
  __Pyx_GIVEREF(__pyx_tuple__76);
  __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__76, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_all_possible_keys, 588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(0, 588, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":600
 *         return cache.ext_all_possible_keys
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 */
  __pyx_tuple__78 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_default); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__78);
  __Pyx_GIVEREF(__pyx_tuple__78);
  __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_getattr, 600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(0, 600, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":606
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 */
  __pyx_tuple__80 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_k, __pyx_n_s_value); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);
  __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(4, 0, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_setattr, 606, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(0, 606, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":609
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed):             # <<<<<<<<<<<<<<
 *         """
 *         If the interface we're working from has a tagged value
 */
  __pyx_tuple__82 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_parsed); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);
  __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_accept_external_id, 609, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(0, 609, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":624
 *         return cache.ext_accept_external_id
 * 
 *     def find_factory_for_named_value(self, key, value):             # <<<<<<<<<<<<<<
 *         """
 *         If `AbstractDynamicObjectIO.find_factory_for_named_value`
 */
  __pyx_tuple__84 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__84);
  __Pyx_GIVEREF(__pyx_tuple__84);
  __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_find_factory_for_named_value, 624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(0, 624, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":712
 *         return factory
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         result = AbstractDynamicObjectIO._updateFromExternalObject(self, parsed)
 *         # If we make it this far, then validate the object.
 */
  __pyx_tuple__86 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_parsed, __pyx_n_s_unused_args, __pyx_n_s_unused_kwargs, __pyx_n_s_result); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__86);
  __Pyx_GIVEREF(__pyx_tuple__86);
  __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_updateFromExternalObject, 712, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(0, 712, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":726
 *         return result
 * 
 *     def _validate_after_update(self, iface, ext_self):             # <<<<<<<<<<<<<<
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:
 */
  __pyx_tuple__88 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_iface, __pyx_n_s_ext_self); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__88);
  __Pyx_GIVEREF(__pyx_tuple__88);
  __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__88, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_validate_after_update_2, 726, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(0, 726, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":740
 *                 raise
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ             # <<<<<<<<<<<<<<
 *         ext_class_name = None
 *         # Walk up the tree, checking each one to see if ``__external__class_name__`` exists
 */
  __pyx_tuple__90 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_mergeFrom, __pyx_n_s_kwargs, __pyx_n_s_ext_class_name, __pyx_n_s_iface, __pyx_n_s_result); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__90);
  __Pyx_GIVEREF(__pyx_tuple__90);
  __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_toExternalObject, 740, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(0, 740, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":788
 *     _ext_search_module = None
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         # If the upper bound is given, then let the super class handle it all.
 *         # Presumably the user has given the correct branch to search.
 */
  __pyx_tuple__92 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ext_self, __pyx_n_s_iface_upper_bound); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__92);
  __Pyx_GIVEREF(__pyx_tuple__92);
  __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(3, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__92, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_find_schema, 788, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(0, 788, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":820
 *         return most_derived
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 */
  __pyx_tuple__94 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_ext_self); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__94);
  __Pyx_GIVEREF(__pyx_tuple__94);
  __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(2, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__94, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_nti_externalization_datastru, __pyx_n_s_ext_schemas_to_consider, 820, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}
/* #### Code section: init_globals ### */

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  __pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_get.method_name = &__pyx_n_s_get;
  __pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_pop.method_name = &__pyx_n_s_pop;
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_InitString(__pyx_string_tab[0], &__pyx_n_s_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[1], &__pyx_n_s_AbstractDynamicObjectIO__ext_acc) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[2], &__pyx_n_s_AbstractDynamicObjectIO__ext_acc_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[3], &__pyx_n_s_AbstractDynamicObjectIO__ext_all) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[4], &__pyx_n_s_AbstractDynamicObjectIO__ext_get) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[5], &__pyx_n_s_AbstractDynamicObjectIO__ext_key) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[6], &__pyx_n_s_AbstractDynamicObjectIO__ext_pri) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[7], &__pyx_n_s_AbstractDynamicObjectIO__ext_rep) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[8], &__pyx_n_s_AbstractDynamicObjectIO__ext_rep_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[9], &__pyx_n_s_AbstractDynamicObjectIO__ext_set) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[10], &__pyx_n_s_AbstractDynamicObjectIO_find_fac) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[11], &__pyx_n_s_AbstractDynamicObjectIO_toExtern) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[12], &__pyx_n_s_AbstractDynamicObjectIO_toExtern_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[13], &__pyx_n_s_AbstractDynamicObjectIO_updateFr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[14], &__pyx_n_s_AnonymousDictFactory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[15], &__pyx_n_s_AnonymousDictFactory_default_fa) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[16], &__pyx_n_s_AnonymousObjectFactory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[17], &__pyx_n_s_AttributeError) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[18], &__pyx_kp_s_Class_r_should_have_a_frozenset) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[19], &__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[20], &__pyx_n_s_ExternalizableDictionaryMixin) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[21], &__pyx_n_s_ExternalizableDictionaryMixin__e) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[22], &__pyx_n_s_ExternalizableDictionaryMixin__e_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[23], &__pyx_n_s_ExternalizableDictionaryMixin_to) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[24], &__pyx_n_s_ExternalizableInstanceDict) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[25], &__pyx_n_s_ExternalizableInstanceDict_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[26], &__pyx_n_s_ExternalizableInstanceDict___get) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[27], &__pyx_n_s_ExternalizableInstanceDict___mak) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[28], &__pyx_n_s_ExternalizableInstanceDict__ext) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[29], &__pyx_n_s_ExternalizableInstanceDict__ext_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[30], &__pyx_n_s_ExternalizableInstanceDict__ext_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[31], &__pyx_n_s_ExternalizableInstanceDict__ext_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[32], &__pyx_n_s_ExternalizableInstanceDict__ext_5) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[33], &__pyx_n_s_ExternalizableInstanceDict__ext_6) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[34], &__pyx_n_s_ExternalizableInstanceDict__mak) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[35], &__pyx_n_s_ExternalizableInstanceDict_toExt) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[36], &__pyx_n_s_ExternalizableInstanceDict_toExt_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[37], &__pyx_n_s_ExternalizableInstanceDict_updat) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[38], &__pyx_kp_s_Externalizes_to_a_dictionary_co) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[39], &__pyx_n_s_FutureWarning) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[40], &__pyx_n_s_IAnonymousObjectFactory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[41], &__pyx_n_s_IDict) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[42], &__pyx_n_s_IDict_providedBy) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[43], &__pyx_n_s_IInternalObjectIO) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[44], &__pyx_n_s_IInternalObjectIOFinder) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[45], &__pyx_n_s_IMethod) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[46], &__pyx_n_s_IObject) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[47], &__pyx_n_s_IObject_providedBy) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[48], &__pyx_n_s_Interface) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[49], &__pyx_n_s_InterfaceObjectIO) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[50], &__pyx_n_s_InterfaceObjectIO__ext_accept_ex) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[51], &__pyx_n_s_InterfaceObjectIO__ext_all_possi) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[52], &__pyx_n_s_InterfaceObjectIO__ext_find_prim) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[53], &__pyx_n_s_InterfaceObjectIO__ext_find_sche) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[54], &__pyx_n_s_InterfaceObjectIO__ext_getattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[55], &__pyx_n_s_InterfaceObjectIO__ext_replaceme) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[56], &__pyx_n_s_InterfaceObjectIO__ext_schemas_t) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[57], &__pyx_n_s_InterfaceObjectIO__ext_setattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[58], &__pyx_n_s_InterfaceObjectIO__validate_afte) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[59], &__pyx_n_s_InterfaceObjectIO_find_factory_f) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[60], &__pyx_n_s_InterfaceObjectIO_toExternalObje) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[61], &__pyx_n_s_InterfaceObjectIO_updateFromExte) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[62], &__pyx_n_s_KeyError) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[63], &__pyx_n_s_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[64], &__pyx_n_s_ModuleScopedInterfaceObjectIO__e) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[65], &__pyx_n_s_ModuleScopedInterfaceObjectIO__e_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[66], &__pyx_kp_s_Most_derived_interface_s_does_no) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[67], &__pyx_n_s_NotGiven) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[68], &__pyx_n_s_NotImplementedError) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[69], &__pyx_n_s_Number) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[70], &__pyx_n_s_SchemaNotProvided) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[71], &__pyx_n_s_StandardExternalFields) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[72], &__pyx_n_s_StandardInternalFields) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[73], &__pyx_n_s_TypeError) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[74], &__pyx_n_s__3) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[75], &__pyx_n_s__8) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[76], &__pyx_n_s__96) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[77], &__pyx_n_s_all) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[78], &__pyx_n_s_all_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[79], &__pyx_n_s_anonymous_dict_factory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[80], &__pyx_n_s_args) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[81], &__pyx_n_s_ascii) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[82], &__pyx_n_s_attr_val) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[83], &__pyx_n_s_base_interfaces) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[84], &__pyx_n_s_cache_for) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[85], &__pyx_n_s_class) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[86], &__pyx_n_s_classImplements) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[87], &__pyx_n_s_class_getitem) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[88], &__pyx_n_s_cline_in_traceback) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[89], &__pyx_n_s_context) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[90], &__pyx_n_s_created) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[91], &__pyx_n_s_decode) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[92], &__pyx_n_s_decorate) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[93], &__pyx_n_s_decorate_callback) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[94], &__pyx_n_s_default) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[95], &__pyx_n_s_default_factory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[96], &__pyx_n_s_dict) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[97], &__pyx_n_s_doc) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[98], &__pyx_n_s_encode) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[99], &__pyx_n_s_excluded_in_ivars) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[100], &__pyx_n_s_excluded_out_ivars) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[101], &__pyx_n_s_ext_accept_external_id) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[102], &__pyx_n_s_ext_accept_update_key) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[103], &__pyx_n_s_ext_all_possible_keys) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[104], &__pyx_n_s_ext_class_name) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[105], &__pyx_n_s_ext_excluded_out) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[106], &__pyx_n_s_ext_find_primitive_keys) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[107], &__pyx_n_s_ext_find_schema) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[108], &__pyx_n_s_ext_getattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[109], &__pyx_n_s_ext_iface_upper_bound) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[110], &__pyx_n_s_ext_is_marker_interface) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[111], &__pyx_n_s_ext_keys) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[112], &__pyx_n_s_ext_keys_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[113], &__pyx_n_s_ext_primitive_keys) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[114], &__pyx_n_s_ext_primitive_out_ivars) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[115], &__pyx_n_s_ext_replacement) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[116], &__pyx_n_s_ext_replacement_getattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[117], &__pyx_n_s_ext_schemas_to_consider) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[118], &__pyx_n_s_ext_search_module) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[119], &__pyx_n_s_ext_self) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[120], &__pyx_n_s_ext_setattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[121], &__pyx_n_s_ext_standard_external_dictionar) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[122], &__pyx_n_s_ext_val) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[123], &__pyx_n_s_external_accept_id) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[124], &__pyx_n_s_external_class_name) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[125], &__pyx_n_s_external_default_implementatio) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[126], &__pyx_n_s_external_factory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[127], &__pyx_n_s_external_factory_wants_arg) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[128], &__pyx_n_s_external_use_minimal_base) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[129], &__pyx_n_s_externalization_dictionary) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[130], &__pyx_n_s_externalization_externalizer) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[131], &__pyx_n_s_factory) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[132], &__pyx_n_s_find_factory_for) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[133], &__pyx_n_s_find_factory_for_named_value) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[134], &__pyx_n_s_find_most_derived_interface) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[135], &__pyx_n_s_get) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[136], &__pyx_n_s_getTaggedValue) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[137], &__pyx_n_s_getUtility) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[138], &__pyx_n_s_getValidationErrors) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[139], &__pyx_n_s_get_default_externalization_poli) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[140], &__pyx_n_s_get_standard_external_fields) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[141], &__pyx_n_s_get_standard_internal_fields) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[142], &__pyx_n_s_getattr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[143], &__pyx_n_s_id) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[144], &__pyx_n_s_iface) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[145], &__pyx_n_s_iface_upper_bound) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[146], &__pyx_n_s_import) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[147], &__pyx_n_s_import_c_accel) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[148], &__pyx_n_s_init) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[149], &__pyx_n_s_init_subclass) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[150], &__pyx_n_s_initializing) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[151], &__pyx_n_s_interface) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[152], &__pyx_n_s_interface_cache) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[153], &__pyx_n_s_interfaces) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[154], &__pyx_n_s_internal_to_standard_external_di) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[155], &__pyx_n_s_internalization) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[156], &__pyx_n_s_internalization_factories) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[157], &__pyx_n_s_iro) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[158], &__pyx_n_s_isOrExtends) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[159], &__pyx_n_s_isSyntheticKey) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[160], &__pyx_n_s_items) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[161], &__pyx_n_s_iteritems) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[162], &__pyx_n_s_k) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[163], &__pyx_n_s_key) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[164], &__pyx_n_s_kwargs) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[165], &__pyx_n_s_lastModified) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[166], &__pyx_n_s_links) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[167], &__pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[168], &__pyx_n_s_make_io) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[169], &__pyx_n_s_make_repr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[170], &__pyx_n_s_mergeFrom) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[171], &__pyx_n_s_metaclass) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[172], &__pyx_n_s_mimeType) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[173], &__pyx_n_s_modified) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[174], &__pyx_n_s_module) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[175], &__pyx_n_s_name) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[176], &__pyx_n_s_name_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[177], &__pyx_n_s_names) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[178], &__pyx_n_s_nti_externalization__compat) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[179], &__pyx_n_s_nti_externalization__datastructu) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[180], &__pyx_n_s_nti_schema_interfaces) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[181], &__pyx_n_s_numbers) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[182], &__pyx_n_s_object) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[183], &__pyx_n_s_p_changed) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[184], &__pyx_n_s_parent) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[185], &__pyx_n_s_parsed) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[186], &__pyx_n_s_policy) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[187], &__pyx_n_s_pop) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[188], &__pyx_n_s_possibilities) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[189], &__pyx_n_s_prefer_oid) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[190], &__pyx_n_s_prepare) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[191], &__pyx_n_s_primitive_ext_keys) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[192], &__pyx_n_s_primitives) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[193], &__pyx_n_s_providedBy) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[194], &__pyx_n_s_pyx_capi) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[195], &__pyx_n_s_pyx_vtable) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[196], &__pyx_n_s_qualname) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[197], &__pyx_n_s_queryDirectTaggedValue) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[198], &__pyx_n_s_queryTaggedValue) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[199], &__pyx_n_s_replacement) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[200], &__pyx_n_s_repr) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[201], &__pyx_n_s_representation) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[202], &__pyx_n_s_request) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[203], &__pyx_n_s_result) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[204], &__pyx_kp_s_s_s_for_r_at_0x_x) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[205], &__pyx_n_s_schema) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[206], &__pyx_n_s_self) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[207], &__pyx_n_s_setTaggedValue) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[208], &__pyx_n_s_set_name) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[209], &__pyx_n_s_six) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[210], &__pyx_n_s_spec) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[211], &__pyx_kp_s_src_nti_externalization_datastru) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[212], &__pyx_n_s_staticmethod) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[213], &__pyx_n_s_string_types) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[214], &__pyx_n_s_super) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[215], &__pyx_n_s_test) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[216], &__pyx_n_s_title) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[217], &__pyx_n_s_toExternalDictionary) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[218], &__pyx_n_s_toExternalObject) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[219], &__pyx_n_s_to_external_object) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[220], &__pyx_n_s_to_minimal_standard_external_dic) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[221], &__pyx_n_s_traceback_info) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[222], &__pyx_n_s_type) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[223], &__pyx_n_s_unused_args) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[224], &__pyx_n_s_unused_kwargs) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[225], &__pyx_n_s_updateFromExternalObject) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[226], &__pyx_n_s_update_accepts_type_attrs) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[227], &__pyx_n_s_validate_after_update) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[228], &__pyx_n_s_validate_after_update_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[229], &__pyx_n_s_validate_named_field_value) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[230], &__pyx_n_s_value) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[231], &__pyx_n_s_value_type) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[232], &__pyx_n_s_values) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[233], &__pyx_n_s_warn) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[234], &__pyx_n_s_warnings) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[235], &__pyx_n_s_zope) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[236], &__pyx_n_s_zope_component) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  if (__Pyx_InitString(__pyx_string_tab[237], &__pyx_n_s_zope_schema_interfaces) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  #endif
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_module ### */

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __pyx_v_3nti_15externalization_15_datastructures_getUtility = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IDict = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IObject = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields = ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *)Py_None); Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields = ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *)Py_None); Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY = ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *)Py_None); Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_make_repr = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_isSyntheticKey = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_NotGiven = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures__anonymous_dict_factory = Py_None; Py_INCREF(Py_None);
  __pyx_v_3nti_15externalization_15_datastructures__primitives = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  if (__Pyx_ExportVoidPtr(__pyx_n_s_getUtility, (void *)&__pyx_v_3nti_15externalization_15_datastructures_getUtility, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IDict, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IDict, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IObject, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IObject, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IInternalObjectIOFinder, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IAnonymousObjectFactory, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_StandardExternalFields, (void *)&__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_StandardInternalFields, (void *)&__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_DEFAULT_EXTERNALIZATION_POLICY, (void *)&__pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_make_repr, (void *)&__pyx_v_3nti_15externalization_15_datastructures_make_repr, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_isSyntheticKey, (void *)&__pyx_v_3nti_15externalization_15_datastructures_isSyntheticKey, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_find_most_derived_interface, (void *)&__pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_NotGiven, (void *)&__pyx_v_3nti_15externalization_15_datastructures_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IDict_providedBy, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_IObject_providedBy, (void *)&__pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_anonymous_dict_factory, (void *)&__pyx_v_3nti_15externalization_15_datastructures__anonymous_dict_factory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ExportVoidPtr(__pyx_n_s_primitives, (void *)&__pyx_v_3nti_15externalization_15_datastructures__primitives, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_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_init_code", 0);
  /*--- Type init code ---*/
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin = PyType_FromSpec(&__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin_spec); if (unlikely(!__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin)) __PYX_ERR(0, 69, __pyx_L1_error)
  #else
  if (PyType_Ready(&__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin) < 0) __PYX_ERR(0, 69, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3
  __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin.tp_dictoffset && __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExternalizableDictionaryMixin, __pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin) < 0) __PYX_ERR(0, 69, __pyx_L1_error)
  #else
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExternalizableDictionaryMixin, (PyObject *)&__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin) < 0) __PYX_ERR(0, 69, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin = (PyTypeObject *)__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
  #else
  __pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin = &__pyx_type_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
  #endif
  __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = &__pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_replacement = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_all_possible_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_all_possible_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_setattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_setattr;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_getattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_replacement_getattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr *__pyx_optional_args))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_replacement_getattr;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_primitive_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_primitive_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_accept_update_key = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_update_key;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._ext_accept_external_id = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_accept_external_id;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.find_factory_for_named_value = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_find_factory_for_named_value;
  __pyx_vtable_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO._updateFromExternalObject = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *))__pyx_f_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__updateFromExternalObject;
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = PyType_FromSpecWithBases(&__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO_spec, __pyx_t_1); if (unlikely(!__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  #else
  __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_base = __pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin;
  if (PyType_Ready(&__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3
  __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_dictoffset && __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO, __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
  #else
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO.tp_dict, __pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AbstractDynamicObjectIO, __pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
  #else
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AbstractDynamicObjectIO, (PyObject *)&__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = (PyTypeObject *)__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  #else
  __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO = &__pyx_type_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  #endif
  __pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = &__pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base = *__pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base._ext_replacement = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_replacement;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base._ext_all_possible_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_all_possible_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base._ext_setattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_setattr;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base._ext_getattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args))__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_getattr;
  __pyx_vtable_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.__pyx_base._ext_accept_update_key = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict__ext_accept_update_key;
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = PyType_FromSpecWithBases(&__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict_spec, __pyx_t_1); if (unlikely(!__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict)) __PYX_ERR(0, 334, __pyx_L1_error)
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  #else
  __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.tp_base = __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  if (PyType_Ready(&__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict) < 0) __PYX_ERR(0, 334, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3
  __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.tp_print = 0;
  #endif
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict, __pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict) < 0) __PYX_ERR(0, 334, __pyx_L1_error)
  #else
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict.tp_dict, __pyx_vtabptr_3nti_15externalization_15_datastructures__ExternalizableInstanceDict) < 0) __PYX_ERR(0, 334, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExternalizableInstanceDict, __pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict) < 0) __PYX_ERR(0, 334, __pyx_L1_error)
  #else
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ExternalizableInstanceDict, (PyObject *)&__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict) < 0) __PYX_ERR(0, 334, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = (PyTypeObject *)__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  #else
  __pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict = &__pyx_type_3nti_15externalization_15_datastructures__ExternalizableInstanceDict;
  #endif
  __pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO = &__pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base = *__pyx_vtabptr_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base._ext_replacement = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_replacement;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base._ext_all_possible_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_all_possible_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base._ext_setattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_setattr;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base._ext_getattr = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO__ext_getattr *__pyx_optional_args))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_getattr;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base._ext_accept_external_id = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_accept_external_id;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO.__pyx_base.find_factory_for_named_value = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO_find_factory_for_named_value;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO._ext_find_schema = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_schema;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO._ext_find_primitive_keys = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_find_primitive_keys;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO._ext_schemas_to_consider = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__ext_schemas_to_consider;
  __pyx_vtable_3nti_15externalization_15_datastructures_InterfaceObjectIO._validate_after_update = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_17InterfaceObjectIO__validate_after_update;
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO = PyType_FromSpecWithBases(&__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO_spec, __pyx_t_1); if (unlikely(!__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO)) __PYX_ERR(0, 470, __pyx_L1_error)
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  #else
  __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO.tp_base = __pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO;
  if (PyType_Ready(&__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3
  __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO.tp_print = 0;
  #endif
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 470, __pyx_L1_error)
    if (__Pyx_IS_TYPE(wrapper, &PyWrapperDescr_Type)) {
      __pyx_wrapperbase_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__.doc = __pyx_doc_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_3nti_15externalization_15_datastructures_17InterfaceObjectIO___init__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO, __pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
  #else
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO.tp_dict, __pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_InterfaceObjectIO, __pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
  #else
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_InterfaceObjectIO, (PyObject *)&__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO) < 0) __PYX_ERR(0, 470, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO = (PyTypeObject *)__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  #else
  __pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO = &__pyx_type_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  #endif
  __pyx_vtabptr_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = &__pyx_vtable_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.__pyx_base = *__pyx_vtabptr_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  __pyx_vtable_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.__pyx_base._ext_find_schema = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_find_schema;
  __pyx_vtable_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.__pyx_base._ext_schemas_to_consider = (PyObject *(*)(struct __pyx_obj_3nti_15externalization_15_datastructures_InterfaceObjectIO *, PyObject *, int __pyx_skip_dispatch))__pyx_f_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO__ext_schemas_to_consider;
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_t_1 = PyTuple_Pack(1, (PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = PyType_FromSpecWithBases(&__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO_spec, __pyx_t_1); if (unlikely(!__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO)) __PYX_ERR(0, 764, __pyx_L1_error)
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  #else
  __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.tp_base = __pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO;
  if (PyType_Ready(&__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 764, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3
  __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.tp_print = 0;
  #endif
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO, __pyx_vtabptr_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 764, __pyx_L1_error)
  #else
  if (__Pyx_SetVtable(__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO.tp_dict, __pyx_vtabptr_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 764, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ModuleScopedInterfaceObjectIO, __pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 764, __pyx_L1_error)
  #else
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ModuleScopedInterfaceObjectIO, (PyObject *)&__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO) < 0) __PYX_ERR(0, 764, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_LIMITED_API
  __pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = (PyTypeObject *)__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  #else
  __pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO = &__pyx_type_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO;
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

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("nti.externalization.__base_interfaces"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__base_interfaces", "_NotGiven", sizeof(struct __pyx_obj_3nti_15externalization_17__base_interfaces__NotGiven), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__base_interfaces__NotGiven) __PYX_ERR(2, 7, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__base_interfaces", "LocatedExternalDict", sizeof(struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_vtabptr_3nti_15externalization_17__base_interfaces_LocatedExternalDict = (struct __pyx_vtabstruct_3nti_15externalization_17__base_interfaces_LocatedExternalDict*)__Pyx_GetVtable(__pyx_ptype_3nti_15externalization_17__base_interfaces_LocatedExternalDict); if (unlikely(!__pyx_vtabptr_3nti_15externalization_17__base_interfaces_LocatedExternalDict)) __PYX_ERR(2, 13, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__base_interfaces", "StandardExternalFields", sizeof(struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardExternalFields) __PYX_ERR(2, 24, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__base_interfaces", "StandardInternalFields", sizeof(struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields) __PYX_ERR(2, 49, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__base_interfaces", "ExternalizationPolicy", sizeof(struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__base_interfaces_ExternalizationPolicy) __PYX_ERR(2, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._externalizer"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState = __Pyx_ImportType(__pyx_t_1, "nti.externalization.externalization._externalizer", "_ExternalizationState", sizeof(struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__ExternalizationState), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState) __PYX_ERR(3, 50, __pyx_L1_error)
  __pyx_vtabptr_3nti_15externalization_15externalization_13_externalizer__ExternalizationState = (struct __pyx_vtabstruct_3nti_15externalization_15externalization_13_externalizer__ExternalizationState*)__Pyx_GetVtable(__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__ExternalizationState); if (unlikely(!__pyx_vtabptr_3nti_15externalization_15externalization_13_externalizer__ExternalizationState)) __PYX_ERR(3, 50, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState = __Pyx_ImportType(__pyx_t_1, "nti.externalization.externalization._externalizer", "_RecursiveCallState", sizeof(struct __pyx_obj_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_15externalization_13_externalizer__RecursiveCallState) __PYX_ERR(3, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._fields"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet = __Pyx_ImportType(__pyx_t_1, "nti.externalization.internalization._fields", "SetattrSet", sizeof(struct __pyx_obj_3nti_15externalization_15internalization_7_fields_SetattrSet), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_15internalization_7_fields_SetattrSet) __PYX_ERR(4, 41, __pyx_L1_error)
  __pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet = __Pyx_ImportType(__pyx_t_1, "nti.externalization.internalization._fields", "FieldSet", sizeof(struct __pyx_obj_3nti_15externalization_15internalization_7_fields_FieldSet), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_15internalization_7_fields_FieldSet) __PYX_ERR(4, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._factories"); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder = __Pyx_ImportType(__pyx_t_1, "nti.externalization.internalization._factories", "_DefaultExternalizedObjectFactoryFinder", sizeof(struct __pyx_obj_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder) __PYX_ERR(5, 29, __pyx_L1_error)
  __pyx_vtabptr_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder = (struct __pyx_vtabstruct_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder*)__Pyx_GetVtable(__pyx_ptype_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder); if (unlikely(!__pyx_vtabptr_3nti_15externalization_15internalization_10_factories__DefaultExternalizedObjectFactoryFinder)) __PYX_ERR(5, 29, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.__interface_cache"); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache = __Pyx_ImportType(__pyx_t_1, "nti.externalization.__interface_cache", "InterfaceCache", sizeof(struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_3nti_15externalization_17__interface_cache_InterfaceCache) __PYX_ERR(6, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

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("nti.externalization.__base_interfaces"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "dict_init", (void **)&__pyx_vp_3nti_15externalization_17__base_interfaces_dict_init, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "dict_update", (void **)&__pyx_vp_3nti_15externalization_17__base_interfaces_dict_update, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_standard_external_fields", (void **)&__pyx_vp_3nti_15externalization_17__base_interfaces__standard_external_fields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_standard_internal_fields", (void **)&__pyx_vp_3nti_15externalization_17__base_interfaces__standard_internal_fields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "DEFAULT_EXTERNALIZATION_POLICY", (void **)&__pyx_vp_3nti_15externalization_17__base_interfaces_DEFAULT_EXTERNALIZATION_POLICY, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "StandardExternalFields", (void **)&__pyx_vp_3nti_15externalization_15externalization_7_fields_StandardExternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "logger", (void **)&__pyx_vp_3nti_15externalization_15externalization_7_fields_logger, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._standard_fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IDCTimes", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IDCTimes, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "text_type", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_text_type, "PyTypeObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "StandardExternalFields", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardExternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "StandardInternalFields", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_StandardInternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "DEFAULT_EXTERNALIZATION_POLICY", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_DEFAULT_EXTERNALIZATION_POLICY, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_LAST_MOD_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_LAST_MOD_SUP_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__LAST_MOD_SUP_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_CREATED_TIME_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_CREATED_TIME_SUP_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATED_TIME_SUP_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_CREATOR_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CREATOR_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_CONTAINER_FIELDS", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__CONTAINER_FIELDS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_EXT_CLASS_IGNORED_MODULES", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__EXT_CLASS_IGNORED_MODULES, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_SYSTEM_USER_NAME", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_NAME, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_SYSTEM_USER_ID", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__SYSTEM_USER_ID, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IPrincipal_providedBy", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields_IPrincipal_providedBy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_datetime_to_string", (void **)&__pyx_vp_3nti_15externalization_15externalization_16_standard_fields__datetime_to_string, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._decorate"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "get_current_request", (void **)&__pyx_vp_3nti_15externalization_15externalization_9_decorate_get_current_request, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NotGiven", (void **)&__pyx_vp_3nti_15externalization_15externalization_9_decorate_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalMappingDecorator", (void **)&__pyx_vp_3nti_15externalization_15externalization_9_decorate_IExternalMappingDecorator, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "subscribers", (void **)&__pyx_vp_3nti_15externalization_15externalization_9_decorate_subscribers, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._dictionary"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "StandardExternalFields", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_StandardExternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "DEFAULT_EXTERNALIZATION_POLICY", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_DEFAULT_EXTERNALIZATION_POLICY, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "warnings", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_warnings, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "component", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_component, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "set_external_identifiers", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_set_external_identifiers, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalMappingDecorator", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_IExternalMappingDecorator, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NotGiven", (void **)&__pyx_vp_3nti_15externalization_15externalization_11_dictionary_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._externalizer"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "defaultdict", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_defaultdict, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "six", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_six, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "numbers", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_numbers, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "queryAdapter", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_queryAdapter, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "getAdapter", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getAdapter, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "getUtility", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_getUtility, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IFiniteSequence", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IFiniteSequence, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "ThreadLocalManager", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ThreadLocalManager, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "get_current_request", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_get_current_request, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "set_external_identifiers", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_set_external_identifiers, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalMappingDecorator", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalMappingDecorator, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalObject", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObject, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalObjectDecorator", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalObjectDecorator, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "ILocatedExternalSequence", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_ILocatedExternalSequence, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "INonExternalizableReplacement", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacement, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "INonExternalizableReplacer", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_INonExternalizableReplacer, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "DefaultNonExternalizableReplacer", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DefaultNonExternalizableReplacer, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NotGiven", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IInternalObjectExternalizer", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IInternalObjectExternalizer, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalizationPolicy", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_IExternalizationPolicy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "DEFAULT_EXTERNALIZATION_POLICY", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_DEFAULT_EXTERNALIZATION_POLICY, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "logger", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_logger, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_manager", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_manager_get", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_get, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_manager_pop", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_pop, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_manager_push", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__manager_push, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "PRIMITIVES", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_PRIMITIVES, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_marker", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__marker, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "SEQUENCE_TYPES", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_SEQUENCE_TYPES, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "MAPPING_TYPES", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer_MAPPING_TYPES, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_usable_externalObject_cache", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_usable_externalObject_cache_get", (void **)&__pyx_vp_3nti_15externalization_15externalization_13_externalizer__usable_externalObject_cache_get, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "sys", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_sys, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "text_type", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_text_type, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "reraise", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_reraise, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "implementedBy", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_implementedBy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IField", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_IField, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "SchemaNotProvided", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotProvided, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "SchemaNotCorrectlyImplemented", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_SchemaNotCorrectlyImplemented, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "ValidationError", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_ValidationError, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "WrongContainedType", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongContainedType, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "WrongType", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_WrongType, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "FieldProperty", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldProperty, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NO_VALUE", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_NO_VALUE, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "FieldUpdatedEvent", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_FieldUpdatedEvent, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "notify", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_notify, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IField_providedBy", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_IField_providedBy, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "get_exc_info", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields_get_exc_info, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_FieldProperty_orig_set", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields__FieldProperty_orig_set, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_CONVERTERS", (void **)&__pyx_vp_3nti_15externalization_15internalization_7_fields__CONVERTERS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._legacy_factories"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "types", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_types, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "warnings", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_warnings, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "component", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_component, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "resolve", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_resolve, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_ILegacySearchModuleFactory", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ILegacySearchModuleFactory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NotGiven", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "_ext_factory_warnings", (void **)&__pyx_vp_3nti_15externalization_15internalization_17_legacy_factories__ext_factory_warnings, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._factories"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "StandardExternalFields", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_StandardExternalFields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "component", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_component, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "interface", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_interface, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "NotGiven", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_NotGiven, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IClassObjectFactory", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_IClassObjectFactory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IExternalizedObjectFactoryFinder", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_IExternalizedObjectFactoryFinder, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IFactory", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_IFactory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "IMimeObjectFactory", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_IMimeObjectFactory, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "component_queryUtility", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryUtility, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "component_queryAdapter", (void **)&__pyx_vp_3nti_15externalization_15internalization_10_factories_component_queryAdapter, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.__interface_cache"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportVoidPtr(__pyx_t_1, "cache_instances", (void **)&__pyx_vp_3nti_15externalization_17__interface_cache_cache_instances, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

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("nti.externalization.__base_interfaces"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "make_external_dict", (void (**)(void))&__pyx_f_3nti_15externalization_17__base_interfaces_make_external_dict, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_standard_external_fields", (void (**)(void))&__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_external_fields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_standard_internal_fields", (void (**)(void))&__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_internal_fields, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_default_externalization_policy", (void (**)(void))&__pyx_f_3nti_15externalization_17__base_interfaces_get_default_externalization_policy, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "choose_field", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_7_fields_choose_field, "PyObject *(PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_7_fields_choose_field *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._standard_fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "get_last_modified_time", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_last_modified_time *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_created_time", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_created_time, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_created_time *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_creator", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_creator, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_creator *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_container_id", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_container_id, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_container_id *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "get_class", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_16_standard_fields_get_class, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_16_standard_fields_get_class *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._decorate"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "decorate_external_object", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_9_decorate_decorate_external_object, "PyObject *(int, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._dictionary"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "internal_to_standard_external_dictionary", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary, "struct __pyx_obj_3nti_15externalization_17__base_interfaces_LocatedExternalDict *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_internal_to_standard_external_dictionary *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "to_minimal_standard_external_dictionary", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_11_dictionary_to_minimal_standard_external_dictionary *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.externalization._externalizer"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "to_external_object", (void (**)(void))&__pyx_f_3nti_15externalization_15externalization_13_externalizer_to_external_object, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15externalization_13_externalizer_to_external_object *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._fields"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "validate_named_field_value", (void (**)(void))&__pyx_f_3nti_15externalization_15internalization_7_fields_validate_named_field_value, "PyObject *(PyObject *, PyObject *, PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._legacy_factories"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "search_for_external_factory", (void (**)(void))&__pyx_f_3nti_15externalization_15internalization_17_legacy_factories_search_for_external_factory, "PyObject *(PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.internalization._factories"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "find_factory_for", (void (**)(void))&__pyx_f_3nti_15externalization_15internalization_10_factories_find_factory_for, "PyObject *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_3nti_15externalization_15internalization_10_factories_find_factory_for *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyImport_ImportModule("nti.externalization.__interface_cache"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (__Pyx_ImportFunction(__pyx_t_1, "cache_for", (void (**)(void))&__pyx_f_3nti_15externalization_17__interface_cache_cache_for, "struct __pyx_obj_3nti_15externalization_17__interface_cache_InterfaceCache *(PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}


#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__datastructures(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__datastructures},
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "_datastructures",
      __pyx_k_Datastructures_to_help_external, /* m_doc */
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      0, /* m_size */
    #elif CYTHON_COMPILING_IN_LIMITED_API
      sizeof(__pyx_mstate), /* m_size */
    #else
      -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_COMPILING_IN_LIMITED_API
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif
#endif

#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 __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyObject *
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC init_datastructures(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC init_datastructures(void)
#else
__Pyx_PyMODINIT_FUNC PyInit__datastructures(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__datastructures(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *module, const char* from_name, const char* to_name, int allow_none)
#else
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
#endif
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
#if CYTHON_COMPILING_IN_LIMITED_API
            result = PyModule_AddObject(module, to_name, value);
#else
            result = PyDict_SetItemString(moddict, to_name, value);
#endif
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    moddict = module;
#else
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
#endif
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__datastructures(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  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_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_datastructures' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("_datastructures", __pyx_methods, __pyx_k_Datastructures_to_help_external, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #elif CYTHON_COMPILING_IN_LIMITED_API
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (unlikely(PyState_AddModule(__pyx_t_1, &__pyx_moduledef) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_b);
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_cython_runtime);
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit__datastructures(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  PyEval_InitThreads();
  #endif
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_nti__externalization___datastructures) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "nti.externalization._datastructures")) {
      if (unlikely(PyDict_SetItemString(modules, "nti.externalization._datastructures", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  if (unlikely(__Pyx_modinit_variable_export_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_function_export_code();
  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)
  #endif

  /* "src/nti/externalization/datastructures.py":17
 * 
 * # stdlib imports
 * import numbers             # <<<<<<<<<<<<<<
 * import warnings
 * 
 */
  __pyx_t_1 = __Pyx_ImportDottedModule(__pyx_n_s_numbers, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_numbers, __pyx_t_1) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":18
 * # stdlib imports
 * import numbers
 * import warnings             # <<<<<<<<<<<<<<
 * 
 * import six
 */
  __pyx_t_1 = __Pyx_ImportDottedModule(__pyx_n_s_warnings, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_warnings, __pyx_t_1) < 0) __PYX_ERR(0, 18, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":20
 * import warnings
 * 
 * import six             # <<<<<<<<<<<<<<
 * from six import iteritems
 * from zope import interface
 */
  __pyx_t_1 = __Pyx_ImportDottedModule(__pyx_n_s_six, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_six, __pyx_t_1) < 0) __PYX_ERR(0, 20, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":21
 * 
 * import six
 * from six import iteritems             # <<<<<<<<<<<<<<
 * from zope import interface
 * from zope import schema
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_iteritems);
  __Pyx_GIVEREF(__pyx_n_s_iteritems);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_iteritems);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_six, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_iteritems); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_iteritems, __pyx_t_1) < 0) __PYX_ERR(0, 21, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":22
 * import six
 * from six import iteritems
 * from zope import interface             # <<<<<<<<<<<<<<
 * from zope import schema
 * from zope.component import getUtility
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_interface);
  __Pyx_GIVEREF(__pyx_n_s_interface);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_interface);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_zope, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_interface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_interface, __pyx_t_2) < 0) __PYX_ERR(0, 22, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":23
 * from six import iteritems
 * from zope import interface
 * from zope import schema             # <<<<<<<<<<<<<<
 * from zope.component import getUtility
 * from zope.schema.interfaces import SchemaNotProvided
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_schema);
  __Pyx_GIVEREF(__pyx_n_s_schema);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_schema);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_zope, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_schema); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_schema, __pyx_t_1) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":24
 * from zope import interface
 * from zope import schema
 * from zope.component import getUtility             # <<<<<<<<<<<<<<
 * from zope.schema.interfaces import SchemaNotProvided
 * from zope.schema.interfaces import IDict
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_getUtility);
  __Pyx_GIVEREF(__pyx_n_s_getUtility);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_getUtility);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_zope_component, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_getUtility); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_getUtility);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_getUtility, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":25
 * from zope import schema
 * from zope.component import getUtility
 * from zope.schema.interfaces import SchemaNotProvided             # <<<<<<<<<<<<<<
 * from zope.schema.interfaces import IDict
 * from zope.schema.interfaces import IObject
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_SchemaNotProvided);
  __Pyx_GIVEREF(__pyx_n_s_SchemaNotProvided);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_SchemaNotProvided);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_zope_schema_interfaces, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_SchemaNotProvided); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 25, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SchemaNotProvided, __pyx_t_1) < 0) __PYX_ERR(0, 25, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":26
 * from zope.component import getUtility
 * from zope.schema.interfaces import SchemaNotProvided
 * from zope.schema.interfaces import IDict             # <<<<<<<<<<<<<<
 * from zope.schema.interfaces import IObject
 * 
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_IDict);
  __Pyx_GIVEREF(__pyx_n_s_IDict);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_IDict);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_zope_schema_interfaces, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_IDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 26, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IDict);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IDict, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":27
 * from zope.schema.interfaces import SchemaNotProvided
 * from zope.schema.interfaces import IDict
 * from zope.schema.interfaces import IObject             # <<<<<<<<<<<<<<
 * 
 * from nti.schema.interfaces import find_most_derived_interface
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_IObject);
  __Pyx_GIVEREF(__pyx_n_s_IObject);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_IObject);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_zope_schema_interfaces, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_IObject); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IObject);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IObject, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":29
 * from zope.schema.interfaces import IObject
 * 
 * from nti.schema.interfaces import find_most_derived_interface             # <<<<<<<<<<<<<<
 * 
 * from .interfaces import IInternalObjectIO
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_find_most_derived_interface);
  __Pyx_GIVEREF(__pyx_n_s_find_most_derived_interface);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_find_most_derived_interface);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_nti_schema_interfaces, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_find_most_derived_interface); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_find_most_derived_interface, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":31
 * from nti.schema.interfaces import find_most_derived_interface
 * 
 * from .interfaces import IInternalObjectIO             # <<<<<<<<<<<<<<
 * from .interfaces import IInternalObjectIOFinder
 * from .interfaces import IAnonymousObjectFactory
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_IInternalObjectIO);
  __Pyx_GIVEREF(__pyx_n_s_IInternalObjectIO);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_IInternalObjectIO);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_interfaces, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_IInternalObjectIO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_IInternalObjectIO, __pyx_t_1) < 0) __PYX_ERR(0, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":32
 * 
 * from .interfaces import IInternalObjectIO
 * from .interfaces import IInternalObjectIOFinder             # <<<<<<<<<<<<<<
 * from .interfaces import IAnonymousObjectFactory
 * from .interfaces import StandardInternalFields
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_IInternalObjectIOFinder);
  __Pyx_GIVEREF(__pyx_n_s_IInternalObjectIOFinder);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_IInternalObjectIOFinder);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_interfaces, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_IInternalObjectIOFinder); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":33
 * from .interfaces import IInternalObjectIO
 * from .interfaces import IInternalObjectIOFinder
 * from .interfaces import IAnonymousObjectFactory             # <<<<<<<<<<<<<<
 * from .interfaces import StandardInternalFields
 * 
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_IAnonymousObjectFactory);
  __Pyx_GIVEREF(__pyx_n_s_IAnonymousObjectFactory);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_IAnonymousObjectFactory);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_interfaces, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_IAnonymousObjectFactory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IAnonymousObjectFactory, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":34
 * from .interfaces import IInternalObjectIOFinder
 * from .interfaces import IAnonymousObjectFactory
 * from .interfaces import StandardInternalFields             # <<<<<<<<<<<<<<
 * 
 * # Things imported from cython with matching cimport
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_StandardInternalFields);
  __Pyx_GIVEREF(__pyx_n_s_StandardInternalFields);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_StandardInternalFields);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_interfaces, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_StandardInternalFields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_3nti_15externalization_17__base_interfaces_StandardInternalFields))))) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF((PyObject *)__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields, ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *)__pyx_t_2));
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":37
 * 
 * # Things imported from cython with matching cimport
 * from .externalization.dictionary import to_minimal_standard_external_dictionary             # <<<<<<<<<<<<<<
 * from .externalization.dictionary import internal_to_standard_external_dictionary
 * # Must rename this so it doesn't conflict with method defs;
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_to_minimal_standard_external_dic);
  __Pyx_GIVEREF(__pyx_n_s_to_minimal_standard_external_dic);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_to_minimal_standard_external_dic);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_externalization_dictionary, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_to_minimal_standard_external_dic); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_minimal_standard_external_dic, __pyx_t_1) < 0) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":38
 * # Things imported from cython with matching cimport
 * from .externalization.dictionary import to_minimal_standard_external_dictionary
 * from .externalization.dictionary import internal_to_standard_external_dictionary             # <<<<<<<<<<<<<<
 * # Must rename this so it doesn't conflict with method defs;
 * # that breaks cython
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_internal_to_standard_external_di);
  __Pyx_GIVEREF(__pyx_n_s_internal_to_standard_external_di);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_internal_to_standard_external_di);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_externalization_dictionary, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_internal_to_standard_external_di); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_internal_to_standard_external_di, __pyx_t_2) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":41
 * # Must rename this so it doesn't conflict with method defs;
 * # that breaks cython
 * from .externalization.externalizer import to_external_object as _toExternalObject             # <<<<<<<<<<<<<<
 * 
 * from .internalization import validate_named_field_value
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_to_external_object);
  __Pyx_GIVEREF(__pyx_n_s_to_external_object);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_to_external_object);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_externalization_externalizer, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_to_external_object); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_to_external_object, __pyx_t_1) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":43
 * from .externalization.externalizer import to_external_object as _toExternalObject
 * 
 * from .internalization import validate_named_field_value             # <<<<<<<<<<<<<<
 * from .internalization.factories import find_factory_for
 * from .representation import make_repr
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_validate_named_field_value);
  __Pyx_GIVEREF(__pyx_n_s_validate_named_field_value);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_validate_named_field_value);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_internalization, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_validate_named_field_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_validate_named_field_value, __pyx_t_2) < 0) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":44
 * 
 * from .internalization import validate_named_field_value
 * from .internalization.factories import find_factory_for             # <<<<<<<<<<<<<<
 * from .representation import make_repr
 * from .factory import AnonymousObjectFactory
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_find_factory_for);
  __Pyx_GIVEREF(__pyx_n_s_find_factory_for);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_find_factory_for);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_internalization_factories, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_find_factory_for); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_find_factory_for, __pyx_t_1) < 0) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":45
 * from .internalization import validate_named_field_value
 * from .internalization.factories import find_factory_for
 * from .representation import make_repr             # <<<<<<<<<<<<<<
 * from .factory import AnonymousObjectFactory
 * 
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_make_repr);
  __Pyx_GIVEREF(__pyx_n_s_make_repr);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_make_repr);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_representation, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_make_repr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_make_repr);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_make_repr, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":46
 * from .internalization.factories import find_factory_for
 * from .representation import make_repr
 * from .factory import AnonymousObjectFactory             # <<<<<<<<<<<<<<
 * 
 * from ._base_interfaces import get_standard_external_fields
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_AnonymousObjectFactory);
  __Pyx_GIVEREF(__pyx_n_s_AnonymousObjectFactory);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_AnonymousObjectFactory);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_factory, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_AnonymousObjectFactory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AnonymousObjectFactory, __pyx_t_1) < 0) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":48
 * from .factory import AnonymousObjectFactory
 * 
 * from ._base_interfaces import get_standard_external_fields             # <<<<<<<<<<<<<<
 * from ._base_interfaces import get_standard_internal_fields
 * from ._base_interfaces import get_default_externalization_policy
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_get_standard_external_fields);
  __Pyx_GIVEREF(__pyx_n_s_get_standard_external_fields);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_get_standard_external_fields);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_base_interfaces, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_get_standard_external_fields); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_standard_external_fields, __pyx_t_2) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":49
 * 
 * from ._base_interfaces import get_standard_external_fields
 * from ._base_interfaces import get_standard_internal_fields             # <<<<<<<<<<<<<<
 * from ._base_interfaces import get_default_externalization_policy
 * from ._base_interfaces import NotGiven
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_get_standard_internal_fields);
  __Pyx_GIVEREF(__pyx_n_s_get_standard_internal_fields);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_get_standard_internal_fields);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_base_interfaces, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_get_standard_internal_fields); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_standard_internal_fields, __pyx_t_1) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":50
 * from ._base_interfaces import get_standard_external_fields
 * from ._base_interfaces import get_standard_internal_fields
 * from ._base_interfaces import get_default_externalization_policy             # <<<<<<<<<<<<<<
 * from ._base_interfaces import NotGiven
 * 
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_get_default_externalization_poli);
  __Pyx_GIVEREF(__pyx_n_s_get_default_externalization_poli);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_get_default_externalization_poli);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_base_interfaces, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_get_default_externalization_poli); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_default_externalization_poli, __pyx_t_2) < 0) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":51
 * from ._base_interfaces import get_standard_internal_fields
 * from ._base_interfaces import get_default_externalization_policy
 * from ._base_interfaces import NotGiven             # <<<<<<<<<<<<<<
 * 
 * from ._interface_cache import cache_for
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_NotGiven);
  __Pyx_GIVEREF(__pyx_n_s_NotGiven);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_NotGiven);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_base_interfaces, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_NotGiven); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_NotGiven, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":53
 * from ._base_interfaces import NotGiven
 * 
 * from ._interface_cache import cache_for             # <<<<<<<<<<<<<<
 * 
 * StandardExternalFields = get_standard_external_fields()
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_cache_for);
  __Pyx_GIVEREF(__pyx_n_s_cache_for);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_cache_for);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_interface_cache, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_cache_for); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_cache_for, __pyx_t_2) < 0) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":55
 * from ._interface_cache import cache_for
 * 
 * StandardExternalFields = get_standard_external_fields()             # <<<<<<<<<<<<<<
 * StandardInternalFields = get_standard_internal_fields()
 * DEFAULT_EXTERNALIZATION_POLICY = get_default_externalization_policy()
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_external_fields(0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF((PyObject *)__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields, ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardExternalFields *)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":56
 * 
 * StandardExternalFields = get_standard_external_fields()
 * StandardInternalFields = get_standard_internal_fields()             # <<<<<<<<<<<<<<
 * DEFAULT_EXTERNALIZATION_POLICY = get_default_externalization_policy()
 * IDict_providedBy = IDict.providedBy
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_3nti_15externalization_17__base_interfaces_get_standard_internal_fields(0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF((PyObject *)__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields, ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_StandardInternalFields *)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":57
 * StandardExternalFields = get_standard_external_fields()
 * StandardInternalFields = get_standard_internal_fields()
 * DEFAULT_EXTERNALIZATION_POLICY = get_default_externalization_policy()             # <<<<<<<<<<<<<<
 * IDict_providedBy = IDict.providedBy
 * IObject_providedBy = IObject.providedBy
 */
  __pyx_t_1 = ((PyObject *)__pyx_f_3nti_15externalization_17__base_interfaces_get_default_externalization_policy(0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF((PyObject *)__pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_DEFAULT_EXTERNALIZATION_POLICY, ((struct __pyx_obj_3nti_15externalization_17__base_interfaces_ExternalizationPolicy *)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":58
 * StandardInternalFields = get_standard_internal_fields()
 * DEFAULT_EXTERNALIZATION_POLICY = get_default_externalization_policy()
 * IDict_providedBy = IDict.providedBy             # <<<<<<<<<<<<<<
 * IObject_providedBy = IObject.providedBy
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_3nti_15externalization_15_datastructures_IDict, __pyx_n_s_providedBy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IDict_providedBy, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":59
 * DEFAULT_EXTERNALIZATION_POLICY = get_default_externalization_policy()
 * IDict_providedBy = IDict.providedBy
 * IObject_providedBy = IObject.providedBy             # <<<<<<<<<<<<<<
 * 
 * __all__ = [
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_3nti_15externalization_15_datastructures_IObject, __pyx_n_s_providedBy); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures_IObject_providedBy, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":61
 * IObject_providedBy = IObject.providedBy
 * 
 * __all__ = [             # <<<<<<<<<<<<<<
 *     'ExternalizableDictionaryMixin',
 *     'AbstractDynamicObjectIO',
 */
  __pyx_t_1 = PyList_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_ExternalizableDictionaryMixin);
  __Pyx_GIVEREF(__pyx_n_s_ExternalizableDictionaryMixin);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_ExternalizableDictionaryMixin);
  __Pyx_INCREF(__pyx_n_s_AbstractDynamicObjectIO);
  __Pyx_GIVEREF(__pyx_n_s_AbstractDynamicObjectIO);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_AbstractDynamicObjectIO);
  __Pyx_INCREF(__pyx_n_s_ExternalizableInstanceDict_2);
  __Pyx_GIVEREF(__pyx_n_s_ExternalizableInstanceDict_2);
  PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_ExternalizableInstanceDict_2);
  __Pyx_INCREF(__pyx_n_s_InterfaceObjectIO);
  __Pyx_GIVEREF(__pyx_n_s_InterfaceObjectIO);
  PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_s_InterfaceObjectIO);
  __Pyx_INCREF(__pyx_n_s_ModuleScopedInterfaceObjectIO);
  __Pyx_GIVEREF(__pyx_n_s_ModuleScopedInterfaceObjectIO);
  PyList_SET_ITEM(__pyx_t_1, 4, __pyx_n_s_ModuleScopedInterfaceObjectIO);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_all_2, __pyx_t_1) < 0) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":76
 *     #: If true, then when asked for the standard dictionary, we will instead
 *     #: produce the *minimal* dictionary. See :func:`~to_minimal_standard_external_dictionary`
 *     __external_use_minimal_base__ = False             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement(self):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin->tp_dict, __pyx_n_s_external_use_minimal_base, Py_False) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);

  /* "src/nti/externalization/datastructures.py":78
 *     __external_use_minimal_base__ = False
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return the object that we are externalizing.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_1_ext_replacement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableDictionaryMixin__e, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__10)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin->tp_dict, __pyx_n_s_ext_replacement, __pyx_t_1) < 0) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);

  /* "src/nti/externalization/datastructures.py":86
 *         return self
 * 
 *     def _ext_standard_external_dictionary(self, replacement, mergeFrom=None, **kwargs):             # <<<<<<<<<<<<<<
 *         if self.__external_use_minimal_base__:
 *             return to_minimal_standard_external_dictionary(replacement,
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_3_ext_standard_external_dictionary, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableDictionaryMixin__e_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__12)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin->tp_dict, __pyx_n_s_ext_standard_external_dictionar, __pyx_t_1) < 0) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);

  /* "src/nti/externalization/datastructures.py":100
 *         )
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         """
 *         Produce the standard external dictionary for this object.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_29ExternalizableDictionaryMixin_5toExternalDictionary, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableDictionaryMixin_to, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin->tp_dict, __pyx_n_s_toExternalDictionary, __pyx_t_1) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ExternalizableDictionaryMixin);

  /* "src/nti/externalization/datastructures.py":137
 *         'lastModified',
 *         StandardInternalFields.LAST_MODIFIEDU,
 *         StandardInternalFields.CREATED_TIME,             # <<<<<<<<<<<<<<
 *         'links'
 *     })
 */
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->ID) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CREATOR) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CREATOR) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CONTAINER_ID) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_n_s_lastModified) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->LAST_MODIFIEDU) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CREATED_TIME) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PySet_Add(__pyx_t_1, __pyx_n_s_links) < 0) __PYX_ERR(0, 130, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":129
 *     # Avoid things super handles
 *     # These all *should* be frozenset() and immutable
 *     _excluded_out_ivars_ = frozenset({             # <<<<<<<<<<<<<<
 *         StandardInternalFields.ID,
 *         StandardExternalFields.ID,
 */
  __pyx_t_2 = __Pyx_PyFrozenSet_New(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_excluded_out_ivars, __pyx_t_2) < 0) __PYX_ERR(0, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":151
 *         'created', 'modified',
 *         StandardExternalFields.CLASS,
 *         StandardInternalFields.CONTAINER_ID             # <<<<<<<<<<<<<<
 *     })
 *     _ext_primitive_out_ivars_ = frozenset()
 */
  __pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->ID) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->ID) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->OID) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CREATOR) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CREATOR) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->LAST_MODIFIED) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->LAST_MODIFIEDU) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_n_s_created) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_n_s_modified) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardExternalFields->CLASS) < 0) __PYX_ERR(0, 141, __pyx_L1_error)
  if (PySet_Add(__pyx_t_2, __pyx_v_3nti_15externalization_15_datastructures_StandardInternalFields->CONTAINER_ID) < 0) __PYX_ERR(0, 141, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":140
 *         'links'
 *     })
 *     _excluded_in_ivars_ = frozenset({             # <<<<<<<<<<<<<<
 *         StandardInternalFields.ID,
 *         StandardExternalFields.ID,
 */
  __pyx_t_1 = __Pyx_PyFrozenSet_New(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_excluded_in_ivars, __pyx_t_1) < 0) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":153
 *         StandardInternalFields.CONTAINER_ID
 *     })
 *     _ext_primitive_out_ivars_ = frozenset()             # <<<<<<<<<<<<<<
 *     _prefer_oid_ = False
 * 
 */
  __pyx_t_1 = __Pyx_PyFrozenSet_New(((PyObject *)NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_primitive_out_ivars, __pyx_t_1) < 0) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":154
 *     })
 *     _ext_primitive_out_ivars_ = frozenset()
 *     _prefer_oid_ = False             # <<<<<<<<<<<<<<
 * 
 *     def find_factory_for_named_value(self, key, value): # pylint:disable=unused-argument
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_prefer_oid, Py_False) < 0) __PYX_ERR(0, 154, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":156
 *     _prefer_oid_ = False
 * 
 *     def find_factory_for_named_value(self, key, value): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Uses `.find_factory_for` to locate a factory.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_1find_factory_for_named_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO_find_fac, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_find_factory_for_named_value, __pyx_t_1) < 0) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":166
 *         return find_factory_for(value)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         # Redeclare this here for cython
 *         return self
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_3_ext_replacement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_rep, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_replacement, __pyx_t_1) < 0) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":170
 *         return self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         This method must return a frozenset of native strings.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_5_ext_all_possible_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_all, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_all_possible_keys, __pyx_t_1) < 0) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":176
 *         raise NotImplementedError()
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         raise NotImplementedError()
 * 
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_7_ext_setattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_set, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__22)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_setattr, __pyx_t_1) < 0) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":179
 *         raise NotImplementedError()
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         _ext_getattr(object, name[, default]) -> value
 */
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k_ = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k_ = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_9_ext_getattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_get, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_getattr, __pyx_t_1) < 0) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":192
 *         raise NotImplementedError()
 * 
 *     def _ext_replacement_getattr(self, name, default=NotGiven):             # <<<<<<<<<<<<<<
 *         """
 *         Like `_ext_getattr`, but automatically fills in `_ext_replacement`
 */
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__2 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__2 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_11_ext_replacement_getattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_rep_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_replacement_getattr, __pyx_t_1) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":201
 *         return self._ext_getattr(self._ext_replacement(), name, default)
 * 
 *     def _ext_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return only the names of attributes that should be externalized.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_13_ext_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_key, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__28)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_keys, __pyx_t_1) < 0) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":222
 *         # and not callable(getattr(ext_self,k)))]    # avoid functions
 * 
 *     def _ext_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         """
 *         Return a container of string keys whose values are known to be primitive.
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_15_ext_primitive_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_pri, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__30)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_primitive_keys, __pyx_t_1) < 0) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":231
 *         return self._ext_primitive_out_ivars_
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         result = super(AbstractDynamicObjectIO, self).toExternalDictionary(mergeFrom=mergeFrom,
 *                                                                            **kwargs)
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_17toExternalDictionary, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO_toExtern, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__32)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_toExternalDictionary, __pyx_t_1) < 0) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":274
 *         return result
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_19toExternalObject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO_toExtern_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_toExternalObject, __pyx_t_1) < 0) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":277
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         Returns whether or not this key should be accepted for setting
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_21_ext_accept_update_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_acc, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__36)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_accept_update_key, __pyx_t_1) < 0) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":287
 *         return k not in self._excluded_in_ivars_ and k in ext_keys
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed): # pylint:disable=unused-argument             # <<<<<<<<<<<<<<
 *         """
 *         If the object we're updating does not have an ``id`` set, but there is an
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_23_ext_accept_external_id, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO__ext_acc_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__38)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_ext_accept_external_id, __pyx_t_1) < 0) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":296
 *         return False  # false by default
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         return self._updateFromExternalObject(parsed)
 * 
 */
  __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_23AbstractDynamicObjectIO_25updateFromExternalObject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AbstractDynamicObjectIO_updateFr, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO->tp_dict, __pyx_n_s_updateFromExternalObject, __pyx_t_1) < 0) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);

  /* "src/nti/externalization/datastructures.py":331
 *         return updated
 * 
 * interface.classImplements(AbstractDynamicObjectIO, IInternalObjectIOFinder)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_interface); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_classImplements); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  __Pyx_GIVEREF((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO);
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO));
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder);
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_3nti_15externalization_15_datastructures_IInternalObjectIOFinder);
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":340
 *     # TODO: This won't evolve well. Need something more sophisticated,
 *     # probably a meta class.
 *     _update_accepts_type_attrs = False             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, context):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_update_accepts_type_attrs, Py_False) < 0) __PYX_ERR(0, 340, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":359
 *                 setattr(self, name, v)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self.context
 * 
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_3_ext_replacement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableInstanceDict__ext, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_ext_replacement, __pyx_t_3) < 0) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":362
 *         return self.context
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         # Be sure that this returns native strings, even if the dict
 *         # has unicode (Python 2) or bytes (Python 3) values.
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_5_ext_all_possible_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableInstanceDict__ext_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__44)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_ext_all_possible_keys, __pyx_t_3) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":387
 *         return frozenset(ext_dict)
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         if default is NotGiven:
 *             return getattr(ext_self, k)
 */
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__5 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__5 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_7_ext_getattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableInstanceDict__ext_3, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__46)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_ext_getattr, __pyx_t_3) < 0) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":392
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         setattr(ext_self, k, value)
 * 
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_9_ext_setattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableInstanceDict__ext_4, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_ext_setattr, __pyx_t_3) < 0) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":395
 *         setattr(ext_self, k, value)
 * 
 *     def _ext_accept_update_key(self, k, ext_self, ext_keys):             # <<<<<<<<<<<<<<
 *         return (
 *             super(_ExternalizableInstanceDict, self)._ext_accept_update_key(k, ext_self, ext_keys)
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_27_ExternalizableInstanceDict_11_ext_accept_update_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExternalizableInstanceDict__ext_5, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict->tp_dict, __pyx_n_s_ext_accept_update_key, __pyx_t_3) < 0) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict);

  /* "src/nti/externalization/datastructures.py":402
 * 
 * 
 * class ExternalizableInstanceDict(object):             # <<<<<<<<<<<<<<
 *     """
 *     Externalizes to a dictionary containing the members of
 */
  __pyx_t_3 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__51); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_3, __pyx_tuple__51, __pyx_n_s_ExternalizableInstanceDict_2, __pyx_n_s_ExternalizableInstanceDict_2, (PyObject *) NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_kp_s_Externalizes_to_a_dictionary_co); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "src/nti/externalization/datastructures.py":423
 * 
 *     # pylint:disable=protected-access
 *     _update_accepts_type_attrs = _ExternalizableInstanceDict._update_accepts_type_attrs             # <<<<<<<<<<<<<<
 *     __external_use_minimal_base__ = _ExternalizableInstanceDict.__external_use_minimal_base__
 *     _excluded_out_ivars_ = AbstractDynamicObjectIO._excluded_out_ivars_
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict), __pyx_n_s_update_accepts_type_attrs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_update_accepts_type_attrs, __pyx_t_2) < 0) __PYX_ERR(0, 423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":424
 *     # pylint:disable=protected-access
 *     _update_accepts_type_attrs = _ExternalizableInstanceDict._update_accepts_type_attrs
 *     __external_use_minimal_base__ = _ExternalizableInstanceDict.__external_use_minimal_base__             # <<<<<<<<<<<<<<
 *     _excluded_out_ivars_ = AbstractDynamicObjectIO._excluded_out_ivars_
 *     _excluded_in_ivars_ = AbstractDynamicObjectIO._excluded_in_ivars_
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures__ExternalizableInstanceDict), __pyx_n_s_external_use_minimal_base); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_external_use_minimal_base, __pyx_t_2) < 0) __PYX_ERR(0, 424, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":425
 *     _update_accepts_type_attrs = _ExternalizableInstanceDict._update_accepts_type_attrs
 *     __external_use_minimal_base__ = _ExternalizableInstanceDict.__external_use_minimal_base__
 *     _excluded_out_ivars_ = AbstractDynamicObjectIO._excluded_out_ivars_             # <<<<<<<<<<<<<<
 *     _excluded_in_ivars_ = AbstractDynamicObjectIO._excluded_in_ivars_
 *     _ext_primitive_out_ivars_ = AbstractDynamicObjectIO._ext_primitive_out_ivars_
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), __pyx_n_s_excluded_out_ivars); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_excluded_out_ivars, __pyx_t_2) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":426
 *     __external_use_minimal_base__ = _ExternalizableInstanceDict.__external_use_minimal_base__
 *     _excluded_out_ivars_ = AbstractDynamicObjectIO._excluded_out_ivars_
 *     _excluded_in_ivars_ = AbstractDynamicObjectIO._excluded_in_ivars_             # <<<<<<<<<<<<<<
 *     _ext_primitive_out_ivars_ = AbstractDynamicObjectIO._ext_primitive_out_ivars_
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), __pyx_n_s_excluded_in_ivars); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 426, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_excluded_in_ivars, __pyx_t_2) < 0) __PYX_ERR(0, 426, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":427
 *     _excluded_out_ivars_ = AbstractDynamicObjectIO._excluded_out_ivars_
 *     _excluded_in_ivars_ = AbstractDynamicObjectIO._excluded_in_ivars_
 *     _ext_primitive_out_ivars_ = AbstractDynamicObjectIO._ext_primitive_out_ivars_             # <<<<<<<<<<<<<<
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), __pyx_n_s_ext_primitive_out_ivars); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ext_primitive_out_ivars, __pyx_t_2) < 0) __PYX_ERR(0, 427, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":428
 *     _excluded_in_ivars_ = AbstractDynamicObjectIO._excluded_in_ivars_
 *     _ext_primitive_out_ivars_ = AbstractDynamicObjectIO._ext_primitive_out_ivars_
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_             # <<<<<<<<<<<<<<
 * 
 *     def _ext_replacement(self):
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_AbstractDynamicObjectIO), __pyx_n_s_prefer_oid); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_prefer_oid, __pyx_t_2) < 0) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":430
 *     _prefer_oid_ = AbstractDynamicObjectIO._prefer_oid_
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin._ext_replacement`."
 *         return self
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_1_ext_replacement, 0, __pyx_n_s_ExternalizableInstanceDict__ext_6, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ext_replacement, __pyx_t_2) < 0) __PYX_ERR(0, 430, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":434
 *         return self
 * 
 *     def __make_io(self):             # <<<<<<<<<<<<<<
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_3__make_io, 0, __pyx_n_s_ExternalizableInstanceDict___mak, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_ExternalizableInstanceDict__mak, __pyx_t_2) < 0) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":437
 *         return _ExternalizableInstanceDict(self._ext_replacement())
 * 
 *     def __getattr__(self, name):             # <<<<<<<<<<<<<<
 *         # here if we didn't have the attribute. Does our IO?
 *         return getattr(self.__make_io(), name)
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_5__getattr__, 0, __pyx_n_s_ExternalizableInstanceDict___get, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_getattr, __pyx_t_2) < 0) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":441
 *         return getattr(self.__make_io(), name)
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.updateFromExternalObject`"
 *         self.__make_io().updateFromExternalObject(parsed)
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_7updateFromExternalObject, 0, __pyx_n_s_ExternalizableInstanceDict_updat, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 441, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_updateFromExternalObject, __pyx_t_2) < 0) __PYX_ERR(0, 441, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":445
 *         self.__make_io().updateFromExternalObject(parsed)
 * 
 *     def toExternalObject(self, mergeFrom=None, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `~.IInternalObjectIO.toExternalObject`. Calls `toExternalDictionary`."
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_9toExternalObject, 0, __pyx_n_s_ExternalizableInstanceDict_toExt, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__62);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_toExternalObject, __pyx_t_2) < 0) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":449
 *         return self.toExternalDictionary(mergeFrom, *args, **kwargs)
 * 
 *     def toExternalDictionary(self, mergeFrom=None, *unused_args, **kwargs):             # <<<<<<<<<<<<<<
 *         "See `ExternalizableDictionaryMixin.toExternalDictionary`"
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_26ExternalizableInstanceDict_11toExternalDictionary, 0, __pyx_n_s_ExternalizableInstanceDict_toExt_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__64)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__65);
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_toExternalDictionary, __pyx_t_2) < 0) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":453
 *         return self.__make_io().toExternalDictionary(mergeFrom, **kwargs)
 * 
 *     __repr__ = make_repr()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_make_repr);
  __pyx_t_4 = __pyx_v_3nti_15externalization_15_datastructures_make_repr; __pyx_t_5 = NULL;
  __pyx_t_6 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
      __pyx_t_6 = 1;
    }
  }
  {
    PyObject *__pyx_callargs[1] = {__pyx_t_5, };
    __pyx_t_2 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_repr, __pyx_t_2) < 0) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":402
 * 
 * 
 * class ExternalizableInstanceDict(object):             # <<<<<<<<<<<<<<
 *     """
 *     Externalizes to a dictionary containing the members of
 */
  __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_3, __pyx_n_s_ExternalizableInstanceDict_2, __pyx_tuple__51, __pyx_t_1, NULL, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ExternalizableInstanceDict_2, __pyx_t_2) < 0) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/nti/externalization/datastructures.py":456
 * 
 * 
 * interface.classImplements(ExternalizableInstanceDict, IInternalObjectIO)             # <<<<<<<<<<<<<<
 * 
 * _primitives = six.string_types + (numbers.Number, bool)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_interface); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_classImplements); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ExternalizableInstanceDict_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_IInternalObjectIO); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __pyx_t_3 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":458
 * interface.classImplements(ExternalizableInstanceDict, IInternalObjectIO)
 * 
 * _primitives = six.string_types + (numbers.Number, bool)             # <<<<<<<<<<<<<<
 * 
 * class _AnonymousDictFactory(AnonymousObjectFactory):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_six); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_string_types); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_numbers); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __Pyx_INCREF(((PyObject*)&PyBool_Type));
  __Pyx_GIVEREF(((PyObject*)&PyBool_Type));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject*)&PyBool_Type));
  __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!(likely(PyTuple_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("tuple", __pyx_t_1))) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_XGOTREF(__pyx_v_3nti_15externalization_15_datastructures__primitives);
  __Pyx_DECREF_SET(__pyx_v_3nti_15externalization_15_datastructures__primitives, ((PyObject*)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":460
 * _primitives = six.string_types + (numbers.Number, bool)
 * 
 * class _AnonymousDictFactory(AnonymousObjectFactory):             # <<<<<<<<<<<<<<
 *     __external_factory_wants_arg__ = True
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_AnonymousObjectFactory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_AnonymousDictFactory, __pyx_n_s_AnonymousDictFactory, (PyObject *) NULL, __pyx_n_s_nti_externalization__datastructu, (PyObject *) NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "src/nti/externalization/datastructures.py":461
 * 
 * class _AnonymousDictFactory(AnonymousObjectFactory):
 *     __external_factory_wants_arg__ = True             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_external_factory_wants_arg, Py_True) < 0) __PYX_ERR(0, 461, __pyx_L1_error)

  /* "src/nti/externalization/datastructures.py":463
 *     __external_factory_wants_arg__ = True
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def default_factory(value):
 *         return value
 */
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_21_AnonymousDictFactory_1default_factory, __Pyx_CYFUNCTION_STATICMETHOD, __pyx_n_s_AnonymousDictFactory_default_fa, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__Pyx_SetNameInClass(__pyx_t_4, __pyx_n_s_default_factory, __pyx_t_5) < 0) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "src/nti/externalization/datastructures.py":460
 * _primitives = six.string_types + (numbers.Number, bool)
 * 
 * class _AnonymousDictFactory(AnonymousObjectFactory):             # <<<<<<<<<<<<<<
 *     __external_factory_wants_arg__ = True
 * 
 */
  __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_AnonymousDictFactory, __pyx_t_2, __pyx_t_4, NULL, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AnonymousDictFactory, __pyx_t_5) < 0) __PYX_ERR(0, 460, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":502
 *     """
 * 
 *     _ext_iface_upper_bound = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, context, iface_upper_bound=None, validate_after_update=True):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_iface_upper_bound, Py_None) < 0) __PYX_ERR(0, 502, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":560
 *         return self._iface
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         return find_most_derived_interface(ext_self,
 *                                            iface_upper_bound,
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_5_ext_find_schema, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_find_sche, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__69)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_find_schema, __pyx_t_2) < 0) __PYX_ERR(0, 560, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":565
 *                                            possibilities=self._ext_schemas_to_consider(ext_self))
 * 
 *     def _ext_find_primitive_keys(self):             # <<<<<<<<<<<<<<
 *         result = set()
 *         for n in self._ext_all_possible_keys():
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_7_ext_find_primitive_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_find_prim, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__71)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_find_primitive_keys, __pyx_t_2) < 0) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":582
 *         return frozenset(result)
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         return interface.providedBy(ext_self)
 * 
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_9_ext_schemas_to_consider, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_schemas_t, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__73)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_schemas_to_consider, __pyx_t_2) < 0) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":585
 *         return interface.providedBy(ext_self)
 * 
 *     def _ext_replacement(self):             # <<<<<<<<<<<<<<
 *         return self._ext_self
 * 
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_11_ext_replacement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_replaceme, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__75)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_replacement, __pyx_t_2) < 0) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":588
 *         return self._ext_self
 * 
 *     def _ext_all_possible_keys(self):             # <<<<<<<<<<<<<<
 *         cache = cache_for(self, self._ext_self)
 *         if cache.ext_all_possible_keys is None:
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_13_ext_all_possible_keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_all_possi, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__77)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_all_possible_keys, __pyx_t_2) < 0) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":600
 *         return cache.ext_all_possible_keys
 * 
 *     def _ext_getattr(self, ext_self, k, default=NotGiven):             # <<<<<<<<<<<<<<
 *         # TODO: Should this be directed through IField.get?
 *         if default is NotGiven:
 */
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__7 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __Pyx_INCREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_k__7 = __pyx_v_3nti_15externalization_15_datastructures_NotGiven;
  __Pyx_GIVEREF(__pyx_v_3nti_15externalization_15_datastructures_NotGiven);
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_15_ext_getattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_getattr, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_getattr, __pyx_t_2) < 0) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":606
 *         return getattr(ext_self, k, default)
 * 
 *     def _ext_setattr(self, ext_self, k, value):             # <<<<<<<<<<<<<<
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_17_ext_setattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_setattr, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_setattr, __pyx_t_2) < 0) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":609
 *         validate_named_field_value(ext_self, self._iface, k, value)()
 * 
 *     def _ext_accept_external_id(self, ext_self, parsed):             # <<<<<<<<<<<<<<
 *         """
 *         If the interface we're working from has a tagged value
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_19_ext_accept_external_id, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__ext_accept_ex, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__83)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_ext_accept_external_id, __pyx_t_2) < 0) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":624
 *         return cache.ext_accept_external_id
 * 
 *     def find_factory_for_named_value(self, key, value):             # <<<<<<<<<<<<<<
 *         """
 *         If `AbstractDynamicObjectIO.find_factory_for_named_value`
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_21find_factory_for_named_value, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO_find_factory_f, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_find_factory_for_named_value, __pyx_t_2) < 0) __PYX_ERR(0, 624, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":712
 *         return factory
 * 
 *     def updateFromExternalObject(self, parsed, *unused_args, **unused_kwargs):             # <<<<<<<<<<<<<<
 *         result = AbstractDynamicObjectIO._updateFromExternalObject(self, parsed)
 *         # If we make it this far, then validate the object.
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_23updateFromExternalObject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO_updateFromExte, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_updateFromExternalObject, __pyx_t_2) < 0) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":726
 *         return result
 * 
 *     def _validate_after_update(self, iface, ext_self):             # <<<<<<<<<<<<<<
 *         errors = schema.getValidationErrors(iface, ext_self)
 *         if errors:
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_25_validate_after_update, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO__validate_afte, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_validate_after_update_2, __pyx_t_2) < 0) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":740
 *                 raise
 * 
 *     def toExternalObject(self, mergeFrom=None, **kwargs): # pylint:disable=arguments-differ             # <<<<<<<<<<<<<<
 *         ext_class_name = None
 *         # Walk up the tree, checking each one to see if ``__external__class_name__`` exists
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_17InterfaceObjectIO_27toExternalObject, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_InterfaceObjectIO_toExternalObje, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO->tp_dict, __pyx_n_s_toExternalObject, __pyx_t_2) < 0) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_InterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":786
 *     """
 * 
 *     _ext_search_module = None             # <<<<<<<<<<<<<<
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO->tp_dict, __pyx_n_s_ext_search_module, Py_None) < 0) __PYX_ERR(0, 786, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":788
 *     _ext_search_module = None
 * 
 *     def _ext_find_schema(self, ext_self, iface_upper_bound):             # <<<<<<<<<<<<<<
 *         # If the upper bound is given, then let the super class handle it all.
 *         # Presumably the user has given the correct branch to search.
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_1_ext_find_schema, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ModuleScopedInterfaceObjectIO__e, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__93)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 788, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO->tp_dict, __pyx_n_s_ext_find_schema, __pyx_t_2) < 0) __PYX_ERR(0, 788, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":820
 *         return most_derived
 * 
 *     def _ext_schemas_to_consider(self, ext_self):             # <<<<<<<<<<<<<<
 *         search_module_name = self._ext_search_module.__name__
 *         return [x for x in interface.providedBy(ext_self)
 */
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_3nti_15externalization_15_datastructures_29ModuleScopedInterfaceObjectIO_3_ext_schemas_to_consider, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ModuleScopedInterfaceObjectIO__e_2, NULL, __pyx_n_s_nti_externalization__datastructu, __pyx_d, ((PyObject *)__pyx_codeobj__95)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO->tp_dict, __pyx_n_s_ext_schemas_to_consider, __pyx_t_2) < 0) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_3nti_15externalization_15_datastructures_ModuleScopedInterfaceObjectIO);

  /* "src/nti/externalization/datastructures.py":827
 * 
 * # pylint:disable=wrong-import-position,wrong-import-order
 * from nti.externalization._compat import import_c_accel             # <<<<<<<<<<<<<<
 * import_c_accel(globals(), 'nti.externalization._datastructures')
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_import_c_accel);
  __Pyx_GIVEREF(__pyx_n_s_import_c_accel);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_import_c_accel);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_nti_externalization__compat, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_import_c_accel); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_import_c_accel, __pyx_t_2) < 0) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/nti/externalization/datastructures.py":828
 * # pylint:disable=wrong-import-position,wrong-import-order
 * from nti.externalization._compat import import_c_accel
 * import_c_accel(globals(), 'nti.externalization._datastructures')             # <<<<<<<<<<<<<<
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_import_c_accel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_Globals(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_nti_externalization__datastructu);
  __Pyx_GIVEREF(__pyx_n_s_nti_externalization__datastructu);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_n_s_nti_externalization__datastructu);
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/nti/externalization/datastructures.py":1
 * # cython: auto_pickle=False,embedsignature=True,always_allow_keywords=False             # <<<<<<<<<<<<<<
 * # -*- coding: utf-8 -*
 * """
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init nti.externalization._datastructures", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(__pyx_m);
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init nti.externalization._datastructures");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError */
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* TupleAndListFromArray */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        Py_INCREF(__pyx_empty_tuple);
        return __pyx_empty_tuple;
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = PyTuple_GET_SIZE(kwnames);
    for (i = 0; i < n; i++)
    {
        if (s == PyTuple_GET_ITEM(kwnames, i)) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;  // error
            return kwvalues[i];
        }
    }
    return NULL;  // not found (no exception set)
}
#endif

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject *const *kwvalues,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds));
    while (1) {
        if (kwds_is_tuple) {
            if (pos >= PyTuple_GET_SIZE(kwds)) break;
            key = PyTuple_GET_ITEM(kwds, pos);
            value = kwvalues[pos];
            pos++;
        }
        else
        {
            if (!PyDict_Next(kwds, &pos, &key, &value)) break;
        }
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key)
                );
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    #if PY_MAJOR_VERSION < 3
    PyErr_Format(PyExc_TypeError,
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* UnpackUnboundCMethod */
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON
    #if PY_MAJOR_VERSION >= 3
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    #endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    }
#endif
    return 0;
}

/* CallUnboundCMethod1 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    if (likely(cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return (*(cfunc->func))(self, arg);
        } else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) {
            if (PY_VERSION_HEX >= 0x030700A0) {
                return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1);
            } else {
                return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
            }
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
        }
    }
    return __Pyx__CallUnboundCMethod1(cfunc, self, arg);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 1, arg);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(2, self, arg);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030600B1
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    if (likely(cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            #if PY_VERSION_HEX >= 0x030700A0
            return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, args, 2);
            #else
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
            #endif
        }
        #if PY_VERSION_HEX >= 0x030700A0
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, 2, NULL);
        #endif
    }
    return __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(3);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 1, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 2, arg2);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(3, self, arg1, arg2);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* dict_getitem_default */
static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if PY_MAJOR_VERSION >= 3 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000)
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
    if ((1));
#else
    if (PyString_CheckExact(key) || PyUnicode_CheckExact(key) || PyInt_CheckExact(key)) {
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    }
#endif
    else {
        if (default_value == Py_None)
            value = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyDict_Type_get, d, key);
        else
            value = __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyDict_Type_get, d, key, default_value);
    }
    return value;
}

/* ExtTypeTest */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    __Pyx_TypeName obj_type_name;
    __Pyx_TypeName type_name;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    type_name = __Pyx_PyType_GetName(type);
    PyErr_Format(PyExc_TypeError,
                 "Cannot convert " __Pyx_FMT_TYPENAME " to " __Pyx_FMT_TYPENAME,
                 obj_type_name, type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
}

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL && !CYTHON_VECTORCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall */
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result;
    Py_ssize_t i;
    argstuple = PyTuple_New(nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        PyTuple_SET_ITEM(argstuple, i, args[i]);
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
    Py_DECREF(argstuple);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
#ifdef __Pyx_CyFunction_USED
        if (__Pyx_IsCyOrPyCFunction(func))
#else
        if (PyCFunction_Check(func))
#endif
        {
            if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
                return __Pyx_PyObject_CallMethO(func, NULL);
            }
        }
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (PyCFunction_Check(func))
        {
            if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
                return __Pyx_PyObject_CallMethO(func, args[0]);
            }
        }
    }
#endif
    #if PY_VERSION_HEX < 0x030800B1
    #if CYTHON_FAST_PYCCALL
    if (PyCFunction_Check(func)) {
        if (kwargs) {
            return _PyCFunction_FastCallDict(func, args, nargs, kwargs);
        } else {
            return _PyCFunction_FastCallKeywords(func, args, nargs, NULL);
        }
    }
    #if PY_VERSION_HEX >= 0x030700A1
    if (!kwargs && __Pyx_IS_TYPE(func, &PyMethodDescr_Type)) {
        return _PyMethodDescr_FastCallKeywords(func, args, nargs, NULL);
    }
    #endif
    #endif
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs);
    }
    #endif
    #endif
    #if CYTHON_VECTORCALL
    vectorcallfunc f = _PyVectorcall_Function(func);
    if (f) {
        return f(func, args, nargs, kwargs);
    }
    #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL
    if (__Pyx_CyFunction_CheckExact(func)) {
        __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func);
        if (f) return f(func, args, nargs, kwargs);
    }
    #endif
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_empty_tuple, kwargs);
    }
    return __Pyx_PyObject_FastCall_fallback(func, args, nargs, kwargs);
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* PyObjectCallNoArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg = NULL;
    return __Pyx_PyObject_FastCall(func, (&arg)+1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectCallOneArg */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#elif PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetName(tp);
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
#else
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'",
                 type_name, PyString_AS_STRING(name));
#endif
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod0 */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* RaiseNoneIterError */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else if (PyTuple_GET_SIZE(t) < index) {
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
    } else {
      __Pyx_RaiseTooManyValuesError(index);
    }
}

/* UnpackTuple2 */
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_COMPILING_IN_PYPY
    value1 = PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_COMPILING_IN_PYPY
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = __Pyx_PyObject_GetIterNextFunc(iter);
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#elif PY_MAJOR_VERSION >= 3
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_COMPILING_IN_PYPY
    if (source_is_dict) {
        PyObject *key, *value;
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
            return -1;
        }
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
            return 0;
        }
        if (pitem) {
            PyObject* tuple = PyTuple_New(2);
            if (unlikely(!tuple)) {
                return -1;
            }
            Py_INCREF(key);
            Py_INCREF(value);
            PyTuple_SET_ITEM(tuple, 0, key);
            PyTuple_SET_ITEM(tuple, 1, value);
            *pitem = tuple;
        } else {
            if (pkey) {
                Py_INCREF(key);
                *pkey = key;
            }
            if (pvalue) {
                Py_INCREF(value);
                *pvalue = value;
            }
        }
        return 1;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyList_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* MergeKeywords */
static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping) {
    PyObject *iter, *key = NULL, *value = NULL;
    int source_is_dict, result;
    Py_ssize_t orig_length, ppos = 0;
    iter = __Pyx_dict_iterator(source_mapping, 0, __pyx_n_s_items, &orig_length, &source_is_dict);
    if (unlikely(!iter)) {
        PyObject *args;
        if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) goto bad;
        PyErr_Clear();
        args = PyTuple_Pack(1, source_mapping);
        if (likely(args)) {
            PyObject *fallback = PyObject_Call((PyObject*)&PyDict_Type, args, NULL);
            Py_DECREF(args);
            if (likely(fallback)) {
                iter = __Pyx_dict_iterator(fallback, 1, __pyx_n_s_items, &orig_length, &source_is_dict);
                Py_DECREF(fallback);
            }
        }
        if (unlikely(!iter)) goto bad;
    }
    while (1) {
        result = __Pyx_dict_iter_next(iter, orig_length, &ppos, &key, &value, NULL, source_is_dict);
        if (unlikely(result < 0)) goto bad;
        if (!result) break;
        if (unlikely(PyDict_Contains(kwdict, key))) {
            __Pyx_RaiseDoubleKeywordsError("function", key);
            result = -1;
        } else {
            result = PyDict_SetItem(kwdict, key, value);
        }
        Py_DECREF(key);
        Py_DECREF(value);
        if (unlikely(result < 0)) goto bad;
    }
    Py_XDECREF(iter);
    return 0;
bad:
    Py_XDECREF(iter);
    return -1;
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* RaiseUnexpectedTypeError */
static int
__Pyx_RaiseUnexpectedTypeError(const char *expected, PyObject *obj)
{
    __Pyx_TypeName obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError, "Expected %s, got " __Pyx_FMT_TYPENAME,
                 expected, obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY ||  CYTHON_COMPILING_IN_LIMITED_API
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* set_iter */
static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
                                                  Py_ssize_t* p_orig_length, int* p_source_is_set) {
#if CYTHON_COMPILING_IN_CPYTHON
    is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable));
    *p_source_is_set = is_set;
    if (likely(is_set)) {
        *p_orig_length = PySet_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
    }
#else
    (void)is_set;
    *p_source_is_set = 0;
#endif
    *p_orig_length = 0;
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_set_iter_next(
        PyObject* iter_obj, Py_ssize_t orig_length,
        Py_ssize_t* ppos, PyObject **value,
        int source_is_set) {
    if (!CYTHON_COMPILING_IN_CPYTHON || unlikely(!source_is_set)) {
        *value = PyIter_Next(iter_obj);
        if (unlikely(!*value)) {
            return __Pyx_IterFinish();
        }
        (void)orig_length;
        (void)ppos;
        return 1;
    }
#if CYTHON_COMPILING_IN_CPYTHON
    if (unlikely(PySet_GET_SIZE(iter_obj) != orig_length)) {
        PyErr_SetString(
            PyExc_RuntimeError,
            "set changed size during iteration");
        return -1;
    }
    {
        Py_hash_t hash;
        int ret = _PySet_NextEntry(iter_obj, ppos, value, &hash);
        assert (ret != -1);
        if (likely(ret)) {
            Py_INCREF(*value);
            return 1;
        }
    }
#endif
    return 0;
}

/* bytes_tailmatch */
static int __Pyx_PyBytes_SingleTailmatch(PyObject* self, PyObject* arg,
                                         Py_ssize_t start, Py_ssize_t end, int direction) {
    const char* self_ptr = PyBytes_AS_STRING(self);
    Py_ssize_t self_len = PyBytes_GET_SIZE(self);
    const char* sub_ptr;
    Py_ssize_t sub_len;
    int retval;
    Py_buffer view;
    view.obj = NULL;
    if ( PyBytes_Check(arg) ) {
        sub_ptr = PyBytes_AS_STRING(arg);
        sub_len = PyBytes_GET_SIZE(arg);
    }
#if PY_MAJOR_VERSION < 3
    else if ( PyUnicode_Check(arg) ) {
        return (int) PyUnicode_Tailmatch(self, arg, start, end, direction);
    }
#endif
    else {
        if (unlikely(PyObject_GetBuffer(self, &view, PyBUF_SIMPLE) == -1))
            return -1;
        sub_ptr = (const char*) view.buf;
        sub_len = view.len;
    }
    if (end > self_len)
        end = self_len;
    else if (end < 0)
        end += self_len;
    if (end < 0)
        end = 0;
    if (start < 0)
        start += self_len;
    if (start < 0)
        start = 0;
    if (direction > 0) {
        if (end-sub_len > start)
            start = end - sub_len;
    }
    if (start + sub_len <= end)
        retval = !memcmp(self_ptr+start, sub_ptr, (size_t)sub_len);
    else
        retval = 0;
    if (view.obj)
        PyBuffer_Release(&view);
    return retval;
}
static int __Pyx_PyBytes_TailmatchTuple(PyObject* self, PyObject* substrings,
                                        Py_ssize_t start, Py_ssize_t end, int direction) {
    Py_ssize_t i, count = PyTuple_GET_SIZE(substrings);
    for (i = 0; i < count; i++) {
        int result;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        result = __Pyx_PyBytes_SingleTailmatch(self, PyTuple_GET_ITEM(substrings, i),
                                               start, end, direction);
#else
        PyObject* sub = PySequence_ITEM(substrings, i);
        if (unlikely(!sub)) return -1;
        result = __Pyx_PyBytes_SingleTailmatch(self, sub, start, end, direction);
        Py_DECREF(sub);
#endif
        if (result) {
            return result;
        }
    }
    return 0;
}
static int __Pyx_PyBytes_Tailmatch(PyObject* self, PyObject* substr,
                                   Py_ssize_t start, Py_ssize_t end, int direction) {
    if (unlikely(PyTuple_Check(substr))) {
        return __Pyx_PyBytes_TailmatchTuple(self, substr, start, end, direction);
    }
    return __Pyx_PyBytes_SingleTailmatch(self, substr, start, end, direction);
}

/* unicode_tailmatch */
static int __Pyx_PyUnicode_TailmatchTuple(PyObject* s, PyObject* substrings,
                                          Py_ssize_t start, Py_ssize_t end, int direction) {
    Py_ssize_t i, count = PyTuple_GET_SIZE(substrings);
    for (i = 0; i < count; i++) {
        Py_ssize_t result;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        result = PyUnicode_Tailmatch(s, PyTuple_GET_ITEM(substrings, i),
                                     start, end, direction);
#else
        PyObject* sub = PySequence_ITEM(substrings, i);
        if (unlikely(!sub)) return -1;
        result = PyUnicode_Tailmatch(s, sub, start, end, direction);
        Py_DECREF(sub);
#endif
        if (result) {
            return (int) result;
        }
    }
    return 0;
}
static int __Pyx_PyUnicode_Tailmatch(PyObject* s, PyObject* substr,
                                     Py_ssize_t start, Py_ssize_t end, int direction) {
    if (unlikely(PyTuple_Check(substr))) {
        return __Pyx_PyUnicode_TailmatchTuple(s, substr, start, end, direction);
    }
    return (int) PyUnicode_Tailmatch(s, substr, start, end, direction);
}

/* str_tailmatch */
static CYTHON_INLINE int __Pyx_PyStr_Tailmatch(PyObject* self, PyObject* arg, Py_ssize_t start,
                                               Py_ssize_t end, int direction)
{
    if (PY_MAJOR_VERSION < 3)
        return __Pyx_PyBytes_Tailmatch(self, arg, start, end, direction);
    else
        return __Pyx_PyUnicode_Tailmatch(self, arg, start, end, direction);
}

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#elif CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyObjectSetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_setattr))
        return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
#endif
    return PyObject_SetAttr(obj, attr_name, value);
}
#endif

/* GetTopmostException */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* DictGetItem */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* GetAttr3 */
static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    Py_INCREF(d);
    return d;
}
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r;
#if CYTHON_USE_TYPE_SLOTS
    if (likely(PyString_Check(n))) {
        r = __Pyx_PyObject_GetAttrStrNoError(o, n);
        if (unlikely(!r) && likely(!PyErr_Occurred())) {
            r = __Pyx_NewRef(d);
        }
        return r;
    }
#endif
    r = PyObject_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
}

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* HasAttr */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (!r) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}

/* py_dict_pop */
static CYTHON_INLINE PyObject *__Pyx_PyDict_Pop(PyObject *d, PyObject *key, PyObject *default_value) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX > 0x030600B3
    if ((1)) {
        return _PyDict_Pop(d, key, default_value);
    } else
#endif
    if (default_value) {
        return __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyDict_Type_pop, d, key, default_value);
    } else {
        return __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyDict_Type_pop, d, key);
    }
}

/* pyfrozenset_new */
static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it) {
    if (it) {
        PyObject* result;
#if CYTHON_COMPILING_IN_PYPY
        PyObject* args;
        args = PyTuple_Pack(1, it);
        if (unlikely(!args))
            return NULL;
        result = PyObject_Call((PyObject*)&PyFrozenSet_Type, args, NULL);
        Py_DECREF(args);
        return result;
#else
        if (PyFrozenSet_CheckExact(it)) {
            Py_INCREF(it);
            return it;
        }
        result = PyFrozenSet_New(it);
        if (unlikely(!result))
            return NULL;
        if (likely(PySet_GET_SIZE(result)))
            return result;
        Py_DECREF(result);
#endif
    }
#if CYTHON_USE_TYPE_SLOTS
    return PyFrozenSet_Type.tp_new(&PyFrozenSet_Type, __pyx_empty_tuple, NULL);
#else
    return PyObject_Call((PyObject*)&PyFrozenSet_Type, __pyx_empty_tuple, NULL);
#endif
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!j)) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (mm && mm->mp_subscript) {
            PyObject *r, *key = PyInt_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject *index) {
    PyObject *runerr;
    Py_ssize_t key_value;
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        __Pyx_TypeName index_type_name = __Pyx_PyType_GetName(Py_TYPE(index));
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError,
            "cannot fit '" __Pyx_FMT_TYPENAME "' into an index-sized integer", index_type_name);
        __Pyx_DECREF_TypeName(index_type_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem_Slow(PyObject *obj, PyObject *key) {
    __Pyx_TypeName obj_type_name;
    if (likely(PyType_Check(obj))) {
        PyObject *meth = __Pyx_PyObject_GetAttrStrNoError(obj, __pyx_n_s_class_getitem);
        if (meth) {
            PyObject *result = __Pyx_PyObject_CallOneArg(meth, key);
            Py_DECREF(meth);
            return result;
        }
    }
    obj_type_name = __Pyx_PyType_GetName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "'" __Pyx_FMT_TYPENAME "' object is not subscriptable", obj_type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
    PyTypeObject *tp = Py_TYPE(obj);
    PyMappingMethods *mm = tp->tp_as_mapping;
    PySequenceMethods *sm = tp->tp_as_sequence;
    if (likely(mm && mm->mp_subscript)) {
        return mm->mp_subscript(obj, key);
    }
    if (likely(sm && sm->sq_item)) {
        return __Pyx_PyObject_GetIndex(obj, key);
    }
    return __Pyx_PyObject_GetItem_Slow(obj, key);
}
#endif

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* CallNextTpTraverse */
static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_traverse != current_tp_traverse)
        type = type->tp_base;
    while (type && type->tp_traverse == current_tp_traverse)
        type = type->tp_base;
    if (type && type->tp_traverse)
        return type->tp_traverse(obj, v, a);
    return 0;
}

/* CallNextTpClear */
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_clear != current_tp_clear)
        type = type->tp_base;
    while (type && type->tp_clear == current_tp_clear)
        type = type->tp_base;
    if (type && type->tp_clear)
        type->tp_clear(obj);
}

/* PyObject_GenericGetAttrNoDict */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    __Pyx_TypeName type_name = __Pyx_PyType_GetName(tp);
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, attr_name);
#else
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%.400s'",
                 type_name, PyString_AS_STRING(attr_name));
#endif
    __Pyx_DECREF_TypeName(type_name);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* SetVTable */
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_SetVtable(PyObject *type, void *vtable) {
#else
static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#endif
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
    if (!ob)
        goto bad;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (PyObject_SetAttr(type, __pyx_n_s_pyx_vtable, ob) < 0)
#else
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
#endif
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* TypeImport */
  #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
    size_t size, enum __Pyx_ImportType_CheckSize check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#if !CYTHON_COMPILING_IN_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if ((size_t)basicsize < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* GetVTable */
  static void* __Pyx_GetVtable(PyTypeObject *type) {
    void* ptr;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *ob = PyObject_GetAttr((PyObject *)type, __pyx_n_s_pyx_vtable);
#else
    PyObject *ob = PyObject_GetItem(type->tp_dict, __pyx_n_s_pyx_vtable);
#endif
    if (!ob)
        goto bad;
    ptr = PyCapsule_GetPointer(ob, 0);
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* Import */
  static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *empty_list = 0;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (unlikely(!py_import))
        goto bad;
    if (!from_list) {
        empty_list = PyList_New(0);
        if (unlikely(!empty_list))
            goto bad;
        from_list = empty_list;
    }
    #endif
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
                #if CYTHON_COMPILING_IN_LIMITED_API
                module = PyImport_ImportModuleLevelObject(
                    name, empty_dict, empty_dict, from_list, 1);
                #else
                module = PyImport_ImportModuleLevelObject(
                    name, __pyx_d, empty_dict, from_list, 1);
                #endif
                if (unlikely(!module)) {
                    if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (unlikely(!py_level))
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, __pyx_d, empty_dict, from_list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            #if CYTHON_COMPILING_IN_LIMITED_API
            module = PyImport_ImportModuleLevelObject(
                name, empty_dict, empty_dict, from_list, level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, __pyx_d, empty_dict, from_list, level);
            #endif
            #endif
        }
    }
bad:
    Py_XDECREF(empty_dict);
    Py_XDECREF(empty_list);
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    return module;
}

/* ImportDottedModule */
  #if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts_tuple, Py_ssize_t count) {
    PyObject *partial_name = NULL, *slice = NULL, *sep = NULL;
    if (unlikely(PyErr_Occurred())) {
        PyErr_Clear();
    }
    if (likely(PyTuple_GET_SIZE(parts_tuple) == count)) {
        partial_name = name;
    } else {
        PyObject *sep;
        PyObject *slice = PySequence_GetSlice(parts_tuple, 0, count);
        if (unlikely(!slice))
            goto bad;
        sep = PyUnicode_FromStringAndSize(".", 1);
        if (unlikely(!sep))
            goto bad;
        partial_name = PyUnicode_Join(sep, slice);
    }
    PyErr_Format(
#if PY_MAJOR_VERSION < 3
        PyExc_ImportError,
        "No module named '%s'", PyString_AS_STRING(partial_name));
#else
#if PY_VERSION_HEX >= 0x030600B1
        PyExc_ModuleNotFoundError,
#else
        PyExc_ImportError,
#endif
        "No module named '%U'", partial_name);
#endif
bad:
    Py_XDECREF(sep);
    Py_XDECREF(slice);
    Py_XDECREF(partial_name);
    return NULL;
}
#endif
#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx__ImportDottedModule_Lookup(PyObject *name) {
    PyObject *imported_module;
#if PY_VERSION_HEX < 0x030700A1
    PyObject *modules = PyImport_GetModuleDict();
    if (unlikely(!modules))
        return NULL;
    imported_module = __Pyx_PyDict_GetItemStr(modules, name);
    Py_XINCREF(imported_module);
#else
    imported_module = PyImport_GetModule(name);
#endif
    return imported_module;
}
#endif
static PyObject *__Pyx__ImportDottedModule(PyObject *name, CYTHON_UNUSED PyObject *parts_tuple) {
#if PY_MAJOR_VERSION < 3
    PyObject *module, *from_list, *star = __pyx_n_s__8;
    from_list = PyList_New(1);
    if (unlikely(!from_list))
        return NULL;
    Py_INCREF(star);
    PyList_SET_ITEM(from_list, 0, star);
    module = __Pyx_Import(name, from_list, 0);
    Py_DECREF(from_list);
    return module;
#else
    Py_ssize_t i, nparts;
    PyObject *imported_module;
    PyObject *module = __Pyx_Import(name, NULL, 0);
    if (!parts_tuple || unlikely(!module))
        return module;
    imported_module = __Pyx__ImportDottedModule_Lookup(name);
    if (likely(imported_module)) {
        Py_DECREF(module);
        return imported_module;
    }
    PyErr_Clear();
    nparts = PyTuple_GET_SIZE(parts_tuple);
    for (i=1; i < nparts && module; i++) {
        PyObject *part, *submodule;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        part = PyTuple_GET_ITEM(parts_tuple, i);
#else
        part = PySequence_ITEM(parts_tuple, i);
#endif
        submodule = __Pyx_PyObject_GetAttrStrNoError(module, part);
#if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
        Py_DECREF(part);
#endif
        Py_DECREF(module);
        module = submodule;
    }
    if (likely(module))
        return module;
    return __Pyx__ImportDottedModule_Error(name, parts_tuple, i);
#endif
}
static PyObject *__Pyx_ImportDottedModule(PyObject *name, PyObject *parts_tuple) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030400B1
    PyObject *module = __Pyx__ImportDottedModule_Lookup(name);
    if (likely(module)) {
        PyObject *spec = __Pyx_PyObject_GetAttrStrNoError(module, __pyx_n_s_spec);
        if (likely(spec)) {
            PyObject *unsafe = __Pyx_PyObject_GetAttrStrNoError(spec, __pyx_n_s_initializing);
            if (likely(!unsafe || !__Pyx_PyObject_IsTrue(unsafe))) {
                Py_DECREF(spec);
                spec = NULL;
            }
            Py_XDECREF(unsafe);
        }
        if (likely(!spec)) {
            PyErr_Clear();
            return module;
        }
        Py_DECREF(spec);
        Py_DECREF(module);
    } else if (PyErr_Occurred()) {
        PyErr_Clear();
    }
#endif
    return __Pyx__ImportDottedModule(name, parts_tuple);
}

/* ImportFrom */
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* FetchCommonType */
  static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    PyObject *abi_module = PyImport_AddModule((char*) __PYX_ABI_MODULE_NAME);
    if (!abi_module) return NULL;
    Py_INCREF(abi_module);
    return abi_module;
}
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t basicsize,
                               Py_ssize_t expected_basicsize) {
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
    PyObject* abi_module;
    PyTypeObject *cached_type = NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) return NULL;
    cached_type = (PyTypeObject*) PyObject_GetAttrString(abi_module, type->tp_name);
    if (cached_type) {
        if (__Pyx_VerifyCachedType(
              (PyObject *)cached_type,
              type->tp_name,
              cached_type->tp_basicsize,
              type->tp_basicsize) < 0) {
            goto bad;
        }
        goto done;
    }
    if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
    PyErr_Clear();
    if (PyType_Ready(type) < 0) goto bad;
    if (PyObject_SetAttrString(abi_module, type->tp_name, (PyObject *)type) < 0)
        goto bad;
    Py_INCREF(type);
    cached_type = type;
done:
    Py_DECREF(abi_module);
    return cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module, *py_basicsize, *cached_type = NULL;
    Py_ssize_t basicsize;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) return NULL;
    cached_type = PyObject_GetAttrString(abi_module, spec->name);
    if (cached_type) {
        py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
        if (!py_basicsize) goto bad;
        basicsize = PyLong_AsSsize_t(py_basicsize);
        Py_DECREF(py_basicsize);
        py_basicsize = 0;
        if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred()) goto bad;
        if (__Pyx_VerifyCachedType(
              cached_type,
              spec->name,
              basicsize,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    }
    if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
    PyErr_Clear();
    cached_type = PyType_FromSpecWithBases(spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (PyObject_SetAttrString(abi_module, spec->name, cached_type) < 0) goto bad;
done:
    Py_DECREF(abi_module);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}
#endif

/* PyVectorcallFastCallDict */
  #if CYTHON_METH_FASTCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, Py_ssize_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i, pos;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    newargs = (PyObject **)PyMem_Malloc((nargs + nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (i = 0; i < nargs; i++) newargs[i] = args[i];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (PyDict_Next(kw, &pos, &key, &value)) {
        keys_are_strings &= Py_TYPE(key)->tp_flags;
        Py_INCREF(key);
        Py_INCREF(value);
        PyTuple_SET_ITEM(kwnames, i, key);
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, Py_ssize_t nargs, PyObject *kw)
{
    if (likely(kw == NULL) || PyDict_GET_SIZE(kw) == 0) {
        return vc(func, args, nargs, NULL);
    }
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared */
  #include <structmember.h>
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure)
{
    if (unlikely(op->func_doc == NULL)) {
        if (op->func.m_ml->ml_doc) {
#if PY_MAJOR_VERSION >= 3
            op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc);
#else
            op->func_doc = PyString_FromString(op->func.m_ml->ml_doc);
#endif
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
{
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    if (unlikely(op->func_name == NULL)) {
#if PY_MAJOR_VERSION >= 3
        op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name);
#else
        op->func_name = PyString_InternFromString(op->func.m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
{
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    Py_INCREF(op->func_qualname);
    return op->func_qualname;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
{
#if PY_MAJOR_VERSION >= 3
    if (unlikely(value == NULL || !PyUnicode_Check(value)))
#else
    if (unlikely(value == NULL || !PyString_Check(value)))
#endif
    {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure)
{
    PyObject *self;
    self = m->func_closure;
    if (self == NULL)
        self = Py_None;
    Py_INCREF(self);
    return self;
}
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
static int
__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
{
    if (unlikely(value == NULL)) {
        PyErr_SetString(PyExc_TypeError,
               "function's dictionary may not be deleted");
        return -1;
    }
    if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
               "setting function's dictionary to a non-dict");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_dict, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) {
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) {
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, CYTHON_UNUSED void *context) {
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {(char *) "__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
    {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0},
    {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
    {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0},
    {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
    {(char *) "__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), PY_WRITE_RESTRICTED, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {(char *) "__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#if PY_VERSION_HEX < 0x030500A0
    {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {(char *) "__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args)
{
#if PY_MAJOR_VERSION >= 3
    Py_INCREF(m->func_qualname);
    return m->func_qualname;
#else
    return PyString_FromString(m->func.m_ml->ml_name);
#endif
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if PY_VERSION_HEX < 0x030500A0
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist)
#endif
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;
    op->func.m_ml = ml;
    op->func.m_self = (PyObject *) op;
    Py_XINCREF(closure);
    op->func_closure = closure;
    Py_XINCREF(module);
    op->func.m_module = module;
    op->func_dict = NULL;
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
    op->func_classobj = NULL;
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    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;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
    Py_CLEAR(m->func.m_module);
    Py_CLEAR(m->func_dict);
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
    Py_CLEAR(m->func_classobj);
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    if (m->defaults) {
        PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
        int i;
        for (i = 0; i < m->defaults_pyobjects; i++)
            Py_XDECREF(pydefaults[i]);
        PyObject_Free(m->defaults);
        m->defaults = NULL;
    }
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    PyObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    Py_VISIT(m->func_closure);
    Py_VISIT(m->func.m_module);
    Py_VISIT(m->func_dict);
    Py_VISIT(m->func_name);
    Py_VISIT(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    Py_VISIT(m->func_code);
    Py_VISIT(m->func_classobj);
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    if (m->defaults) {
        PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m);
        int i;
        for (i = 0; i < m->defaults_pyobjects; i++)
            Py_VISIT(pydefaults[i]);
    }
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
#if PY_MAJOR_VERSION >= 3
    return PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
#else
    return PyString_FromFormat("<cyfunction %s at %p>",
                               PyString_AsString(op->func_qualname), (void *)op);
#endif
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    Py_ssize_t size;
    switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void*)meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
            size = PyTuple_GET_SIZE(arg);
            if (likely(size == 0))
                return (*meth)(self, NULL);
            PyErr_Format(PyExc_TypeError,
                "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
                f->m_ml->ml_name, size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
            size = PyTuple_GET_SIZE(arg);
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            PyErr_Format(PyExc_TypeError,
                "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
                f->m_ml->ml_name, size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments",
                 f->m_ml->ml_name);
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    return __Pyx_CyFunction_CallMethod(func, ((PyCFunctionObject*)func)->m_self, arg, kw);
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
        argc = PyTuple_GET_SIZE(args);
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            PyErr_Format(PyExc_TypeError, "%.200s() needs an argument",
                         cyfunc->func.m_ml->ml_name);
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(PyTuple_GET_SIZE(kwnames))) {
        PyErr_Format(PyExc_TypeError,
                     "%.200s() takes no keyword arguments", cyfunc->func.m_ml->ml_name);
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = cyfunc->func.m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = cyfunc->func.m_self;
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)",
            def->ml_name, nargs);
        return NULL;
    }
    return def->ml_meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = cyfunc->func.m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = cyfunc->func.m_self;
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)",
            def->ml_name, nargs);
        return NULL;
    }
    return def->ml_meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyMethodDef* def = cyfunc->func.m_ml;
#if CYTHON_BACKPORT_VECTORCALL
    Py_ssize_t nargs = (Py_ssize_t)nargsf;
#else
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
#endif
    PyObject *self;
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
        self = cyfunc->func.m_self;
        break;
    default:
        return NULL;
    }
    return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames);
}
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
    __pyx_CyFunctionType_slots
};
#else
static PyTypeObject __pyx_CyFunctionType_type = {
    PyVarObject_HEAD_INIT(0, 0)
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
    (destructor) __Pyx_CyFunction_dealloc,
#if !CYTHON_METH_FASTCALL
    0,
#elif CYTHON_BACKPORT_VECTORCALL
    (printfunc)offsetof(__pyx_CyFunctionObject, func_vectorcall),
#else
    offsetof(__pyx_CyFunctionObject, func.vectorcall),
#endif
    0,
    0,
#if PY_MAJOR_VERSION < 3
    0,
#else
    0,
#endif
    (reprfunc) __Pyx_CyFunction_repr,
    0,
    0,
    0,
    0,
    __Pyx_CyFunction_CallAsMethod,
    0,
    0,
    0,
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#ifdef _Py_TPFLAGS_HAVE_VECTORCALL
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,
    0,
    (traverseproc) __Pyx_CyFunction_traverse,
    (inquiry) __Pyx_CyFunction_clear,
    0,
#if PY_VERSION_HEX < 0x030500A0
    offsetof(__pyx_CyFunctionObject, func_weakreflist),
#else
    offsetof(PyCFunctionObject, m_weakreflist),
#endif
    0,
    0,
    __pyx_CyFunction_methods,
    __pyx_CyFunction_members,
    __pyx_CyFunction_getsets,
    0,
    0,
    __Pyx_PyMethod_New,
    0,
    offsetof(__pyx_CyFunctionObject, func_dict),
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
#if PY_VERSION_HEX >= 0x030400a1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b1
    0,
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
    0,
#endif
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM+0 >= 0x06000000
    0,
#endif
};
#endif
static int __pyx_CyFunction_init(void) {
#if CYTHON_COMPILING_IN_LIMITED_API
    __pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(&__pyx_CyFunctionType_spec, NULL);
#else
    __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
#endif
    if (unlikely(__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_Malloc(size);
    if (unlikely(!m->defaults))
        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) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    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;
}

/* CalculateMetaclass */
  static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
    Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
    for (i=0; i < nbases; i++) {
        PyTypeObject *tmptype;
        PyObject *tmp = PyTuple_GET_ITEM(bases, i);
        tmptype = Py_TYPE(tmp);
#if PY_MAJOR_VERSION < 3
        if (tmptype == &PyClass_Type)
            continue;
#endif
        if (!metaclass) {
            metaclass = tmptype;
            continue;
        }
        if (PyType_IsSubtype(metaclass, tmptype))
            continue;
        if (PyType_IsSubtype(tmptype, metaclass)) {
            metaclass = tmptype;
            continue;
        }
        PyErr_SetString(PyExc_TypeError,
                        "metaclass conflict: "
                        "the metaclass of a derived class "
                        "must be a (non-strict) subclass "
                        "of the metaclasses of all its bases");
        return NULL;
    }
    if (!metaclass) {
#if PY_MAJOR_VERSION < 3
        metaclass = &PyClass_Type;
#else
        metaclass = &PyType_Type;
#endif
    }
    Py_INCREF((PyObject*) metaclass);
    return (PyObject*) metaclass;
}

/* PyObjectCall2Args */
  static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args[3] = {NULL, arg1, arg2};
    return __Pyx_PyObject_FastCall(function, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectLookupSpecial */
  #if CYTHON_USE_PYTYPE_LOOKUP && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx__PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name, int with_error) {
    PyObject *res;
    PyTypeObject *tp = Py_TYPE(obj);
#if PY_MAJOR_VERSION < 3
    if (unlikely(PyInstance_Check(obj)))
        return with_error ? __Pyx_PyObject_GetAttrStr(obj, attr_name) : __Pyx_PyObject_GetAttrStrNoError(obj, attr_name);
#endif
    res = _PyType_Lookup(tp, attr_name);
    if (likely(res)) {
        descrgetfunc f = Py_TYPE(res)->tp_descr_get;
        if (!f) {
            Py_INCREF(res);
        } else {
            res = f(res, obj, (PyObject *)tp);
        }
    } else if (with_error) {
        PyErr_SetObject(PyExc_AttributeError, attr_name);
    }
    return res;
}
#endif

/* Py3ClassCreate */
  static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
                                           PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
    PyObject *ns;
    if (metaclass) {
        PyObject *prep = __Pyx_PyObject_GetAttrStrNoError(metaclass, __pyx_n_s_prepare);
        if (prep) {
            PyObject *pargs[3] = {NULL, name, bases};
            ns = __Pyx_PyObject_FastCallDict(prep, pargs+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, mkw);
            Py_DECREF(prep);
        } else {
            if (unlikely(PyErr_Occurred()))
                return NULL;
            ns = PyDict_New();
        }
    } else {
        ns = PyDict_New();
    }
    if (unlikely(!ns))
        return NULL;
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad;
#if PY_VERSION_HEX >= 0x03030000
    if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad;
#else
    CYTHON_MAYBE_UNUSED_VAR(qualname);
#endif
    if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad;
    return ns;
bad:
    Py_DECREF(ns);
    return NULL;
}
#if PY_VERSION_HEX < 0x030600A4 && CYTHON_PEP487_INIT_SUBCLASS
static int __Pyx_SetNamesPEP487(PyObject *type_obj) {
    PyTypeObject *type = (PyTypeObject*) type_obj;
    PyObject *names_to_set, *key, *value, *set_name, *tmp;
    Py_ssize_t i = 0;
#if CYTHON_USE_TYPE_SLOTS
    names_to_set = PyDict_Copy(type->tp_dict);
#else
    {
        PyObject *d = PyObject_GetAttr(type_obj, __pyx_n_s_dict);
        names_to_set = NULL;
        if (likely(d)) {
            PyObject *names_to_set = PyDict_New();
            int ret = likely(names_to_set) ? PyDict_Update(names_to_set, d) : -1;
            Py_DECREF(d);
            if (unlikely(ret < 0))
                Py_CLEAR(names_to_set);
        }
    }
#endif
    if (unlikely(names_to_set == NULL))
        goto bad;
    while (PyDict_Next(names_to_set, &i, &key, &value)) {
        set_name = __Pyx_PyObject_LookupSpecialNoError(value, __pyx_n_s_set_name);
        if (unlikely(set_name != NULL)) {
            tmp = __Pyx_PyObject_Call2Args(set_name, type_obj, key);
            Py_DECREF(set_name);
            if (unlikely(tmp == NULL)) {
                __Pyx_TypeName value_type_name =
                    __Pyx_PyType_GetName(Py_TYPE(value));
                __Pyx_TypeName type_name = __Pyx_PyType_GetName(type);
                PyErr_Format(PyExc_RuntimeError,
#if PY_MAJOR_VERSION >= 3
                    "Error calling __set_name__ on '" __Pyx_FMT_TYPENAME "' instance %R " "in '" __Pyx_FMT_TYPENAME "'",
                    value_type_name, key, type_name);
#else
                    "Error calling __set_name__ on '" __Pyx_FMT_TYPENAME "' instance %.100s in '" __Pyx_FMT_TYPENAME "'",
                    value_type_name,
                    PyString_Check(key) ? PyString_AS_STRING(key) : "?",
                    type_name);
#endif
                goto bad;
            } else {
                Py_DECREF(tmp);
            }
        }
        else if (unlikely(PyErr_Occurred())) {
            goto bad;
        }
    }
    Py_DECREF(names_to_set);
    return 0;
bad:
    Py_XDECREF(names_to_set);
    return -1;
}
static PyObject *__Pyx_InitSubclassPEP487(PyObject *type_obj, PyObject *mkw) {
#if CYTHON_USE_TYPE_SLOTS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyTypeObject *type = (PyTypeObject*) type_obj;
    PyObject *mro = type->tp_mro;
    Py_ssize_t i, nbases;
    if (unlikely(!mro)) goto done;
    (void) &__Pyx_GetBuiltinName;
    Py_INCREF(mro);
    nbases = PyTuple_GET_SIZE(mro);
    assert(PyTuple_GET_ITEM(mro, 0) == type_obj);
    for (i = 1; i < nbases-1; i++) {
        PyObject *base, *dict, *meth;
        base = PyTuple_GET_ITEM(mro, i);
        dict = ((PyTypeObject *)base)->tp_dict;
        meth = __Pyx_PyDict_GetItemStrWithError(dict, __pyx_n_s_init_subclass);
        if (unlikely(meth)) {
            descrgetfunc f = Py_TYPE(meth)->tp_descr_get;
            PyObject *res;
            Py_INCREF(meth);
            if (likely(f)) {
                res = f(meth, NULL, type_obj);
                Py_DECREF(meth);
                if (unlikely(!res)) goto bad;
                meth = res;
            }
            res = __Pyx_PyObject_FastCallDict(meth, NULL, 0, mkw);
            Py_DECREF(meth);
            if (unlikely(!res)) goto bad;
            Py_DECREF(res);
            goto done;
        } else if (unlikely(PyErr_Occurred())) {
            goto bad;
        }
    }
done:
    Py_XDECREF(mro);
    return type_obj;
bad:
    Py_XDECREF(mro);
    Py_DECREF(type_obj);
    return NULL;
#else
    PyObject *super_type, *super, *func, *res;
#if CYTHON_COMPILING_IN_PYPY && !defined(PySuper_Type)
    super_type = __Pyx_GetBuiltinName(__pyx_n_s_super);
#else
    super_type = (PyObject*) &PySuper_Type;
    (void) &__Pyx_GetBuiltinName;
#endif
    super = likely(super_type) ? __Pyx_PyObject_Call2Args(super_type, type_obj, type_obj) : NULL;
#if CYTHON_COMPILING_IN_PYPY && !defined(PySuper_Type)
    Py_XDECREF(super_type);
#endif
    if (unlikely(!super)) {
        Py_CLEAR(type_obj);
        goto done;
    }
    func = __Pyx_PyObject_GetAttrStrNoError(super, __pyx_n_s_init_subclass);
    Py_DECREF(super);
    if (likely(!func)) {
        if (unlikely(PyErr_Occurred()))
            Py_CLEAR(type_obj);
        goto done;
    }
    res = __Pyx_PyObject_FastCallDict(func, NULL, 0, mkw);
    Py_DECREF(func);
    if (unlikely(!res))
        Py_CLEAR(type_obj);
    Py_XDECREF(res);
done:
    return type_obj;
#endif
}
#endif
static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases,
                                      PyObject *dict, PyObject *mkw,
                                      int calculate_metaclass, int allow_py2_metaclass) {
    PyObject *result;
    PyObject *owned_metaclass = NULL;
    PyObject *margs[4] = {NULL, name, bases, dict};
    if (allow_py2_metaclass) {
        owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass);
        if (owned_metaclass) {
            metaclass = owned_metaclass;
        } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) {
            PyErr_Clear();
        } else {
            return NULL;
        }
    }
    if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) {
        metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases);
        Py_XDECREF(owned_metaclass);
        if (unlikely(!metaclass))
            return NULL;
        owned_metaclass = metaclass;
    }
    result = __Pyx_PyObject_FastCallDict(metaclass, margs+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET,
#if PY_VERSION_HEX < 0x030600A4
        (metaclass == (PyObject*)&PyType_Type) ? NULL : mkw
#else
        mkw
#endif
    );
    Py_XDECREF(owned_metaclass);
#if PY_VERSION_HEX < 0x030600A4 && CYTHON_PEP487_INIT_SUBCLASS
    if (likely(result) && likely(PyType_Check(result))) {
        if (unlikely(__Pyx_SetNamesPEP487(result) < 0)) {
            Py_CLEAR(result);
        } else {
            result = __Pyx_InitSubclassPEP487(result, mkw);
        }
    }
#else
    (void) &__Pyx_GetBuiltinName;
#endif
    return result;
}

/* Globals */
  static PyObject* __Pyx_Globals(void) {
    return __Pyx_NewRef(__pyx_d);
}

/* CLineInTraceback */
  #ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStrNoError(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
  #if !CYTHON_COMPILING_IN_LIMITED_API
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    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));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}
#endif

/* AddTraceback */
  #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if CYTHON_COMPILING_IN_LIMITED_API
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    if (c_line) {
        (void) __pyx_cfilenm;
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    _PyTraceback_Add(funcname, filename, c_line ? -c_line : py_line);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* CIntToPy */
  static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* FormatTypeName */
  #if CYTHON_COMPILING_IN_LIMITED_API
static __Pyx_TypeName
__Pyx_PyType_GetName(PyTypeObject* tp)
{
    PyObject *name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_n_s_name_2);
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) {
        PyErr_Clear();
        Py_XSETREF(name, __Pyx_NewRef(__pyx_n_s__96));
    }
    return name;
}
#endif

/* CIntFromPyVerify */
  #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
  static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if (CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
  static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if (CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CheckBinaryVersion */
  static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* VoidPtrExport */
  static int __Pyx_ExportVoidPtr(PyObject *name, void *p, const char *sig) {
    PyObject *d;
    PyObject *cobj = 0;
    d = PyDict_GetItem(__pyx_d, __pyx_n_s_pyx_capi);
    Py_XINCREF(d);
    if (!d) {
        d = PyDict_New();
        if (!d)
            goto bad;
        if (__Pyx_PyObject_SetAttrStr(__pyx_m, __pyx_n_s_pyx_capi, d) < 0)
            goto bad;
    }
    cobj = PyCapsule_New(p, sig, 0);
    if (!cobj)
        goto bad;
    if (PyDict_SetItem(d, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(cobj);
    Py_XDECREF(d);
    return -1;
}

/* VoidPtrImport */
  #ifndef __PYX_HAVE_RT_ImportVoidPtr
#define __PYX_HAVE_RT_ImportVoidPtr
static int __Pyx_ImportVoidPtr(PyObject *module, const char *name, void **p, const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, name);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C variable %.200s",
                PyModule_GetName(module), name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C variable %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* FunctionImport */
  #ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, funcname);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C function %.200s",
                PyModule_GetName(module), funcname);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    tmp.p = PyCapsule_GetPointer(cobj, sig);
    *f = tmp.fp;
    if (!(*f))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* InitStrings */
  #if PY_MAJOR_VERSION >= 3
static int __Pyx_InitString(__Pyx_StringTabEntry t, PyObject **str) {
    if (t.is_unicode | t.is_str) {
        if (t.intern) {
            *str = PyUnicode_InternFromString(t.s);
        } else if (t.encoding) {
            *str = PyUnicode_Decode(t.s, t.n - 1, t.encoding, NULL);
        } else {
            *str = PyUnicode_FromStringAndSize(t.s, t.n - 1);
        }
    } else {
        *str = PyBytes_FromStringAndSize(t.s, t.n - 1);
    }
    if (!*str)
        return -1;
    if (PyObject_Hash(*str) == -1)
        return -1;
    return 0;
}
#endif
#if !CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION >= 3
        __Pyx_InitString(*t, t->p);
        #else
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        #endif
        ++t;
    }
    return 0;
}
#endif

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY && !CYTHON_COMPILING_IN_LIMITED_API) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetName(Py_TYPE(result));
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type " __Pyx_FMT_TYPENAME ")",
                 type_name, type_name, result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
#if PY_MAJOR_VERSION < 3
  } else if (likely(PyInt_CheckExact(o))) {
    return PyInt_AS_LONG(o);
#endif
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyInt_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
