Blob Blame History Raw
/* Generated by Cython 0.28.3 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "CYTHON_TRACE_NOGIL", 
                "1"
            ], 
            [
                "CYTHON_CLINE_IN_TRACEBACK", 
                "0"
            ]
        ], 
        "depends": [
            "/usr/include/libxml2/libxml/HTMLtree.h", 
            "/usr/include/libxml2/libxml/chvalid.h", 
            "/usr/include/libxml2/libxml/encoding.h", 
            "/usr/include/libxml2/libxml/globals.h", 
            "/usr/include/libxml2/libxml/hash.h", 
            "/usr/include/libxml2/libxml/tree.h", 
            "/usr/include/libxml2/libxml/uri.h", 
            "/usr/include/libxml2/libxml/valid.h", 
            "/usr/include/libxml2/libxml/xmlIO.h", 
            "/usr/include/libxml2/libxml/xmlmemory.h", 
            "/usr/include/libxml2/libxml/xmlsave.h", 
            "/usr/include/libxml2/libxml/xmlstring.h", 
            "/usr/include/libxml2/libxml/xmlversion.h", 
            "src/lxml/includes/__init__.pxd", 
            "src/lxml/includes/c14n.pxd", 
            "src/lxml/includes/config.pxd", 
            "src/lxml/includes/dtdvalid.pxd", 
            "src/lxml/includes/etree_defs.h", 
            "src/lxml/includes/etreepublic.pxd", 
            "src/lxml/includes/htmlparser.pxd", 
            "src/lxml/includes/lxml-version.h", 
            "src/lxml/includes/relaxng.pxd", 
            "src/lxml/includes/schematron.pxd", 
            "src/lxml/includes/tree.pxd", 
            "src/lxml/includes/uri.pxd", 
            "src/lxml/includes/xinclude.pxd", 
            "src/lxml/includes/xmlerror.pxd", 
            "src/lxml/includes/xmlparser.pxd", 
            "src/lxml/includes/xmlschema.pxd", 
            "src/lxml/includes/xpath.pxd", 
            "src/lxml/includes/xslt.pxd", 
            "src/lxml/objectpath.pxi"
        ], 
        "include_dirs": [
            "src/lxml/includes", 
            "/usr/include/libxml2", 
            "src"
        ], 
        "libraries": [
            "xslt", 
            "exslt", 
            "xml2", 
            "rt", 
            "m"
        ], 
        "name": "lxml.objectify", 
        "sources": [
            "src/lxml/objectify.pyx"
        ]
    }, 
    "module_name": "lxml.objectify"
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#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 < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_28_3"
#define CYTHON_FUTURE_DIVISION 0
#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
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#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
  #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_PYCALL
  #define CYTHON_FAST_PYCALL 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
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 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_PYCALL
  #define CYTHON_FAST_PYCALL 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
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(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
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(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_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (0 && PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
#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 int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#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_PyCode_New(a, 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)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, 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)
  #define __Pyx_DefaultClassType PyType_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
#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_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#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_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) 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_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #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 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; // PyThread_create_key reports success always
}
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 // TSS (Thread Specific Storage) API
#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 >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if 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)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#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)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? 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
  #define PyObject_Unicode             PyObject_Str
#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
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#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   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#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_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; 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__lxml__objectify
#define __PYX_HAVE_API__lxml__objectify
/* Early includes */
#include <string.h>
#include <stdio.h>
#include "lxml-version.h"
#include "libxml/xmlversion.h"
#include "libxml/xmlstring.h"
#include "libxml/encoding.h"
#include "libxml/chvalid.h"
#include "libxml/hash.h"
#include "libxml/tree.h"
#include "libxml/uri.h"
#include "libxml/HTMLtree.h"
#include "libxml/valid.h"
#include "libxml/xmlIO.h"
#include "libxml/xmlsave.h"
#include "libxml/globals.h"
#include "libxml/xmlmemory.h"
#include "etree_defs.h"
#include "etree_api.h"
#include "pythread.h"
#include "includes/etree_defs.h"
#include "lxml_endian.h"
#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_DEFAULT 0
#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)))  )
#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_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __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)
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);
}
#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 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);
#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));
    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; }

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;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "src/lxml/objectify.pyx",
  "src/lxml/objectpath.pxi",
  "src/lxml/includes/etreepublic.pxd",
};

/*--- Type declarations ---*/
struct __pyx_obj_4lxml_9objectify_ObjectifiedElement;
struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement;
struct __pyx_obj_4lxml_9objectify_NumberElement;
struct __pyx_obj_4lxml_9objectify_IntElement;
struct __pyx_obj_4lxml_9objectify_LongElement;
struct __pyx_obj_4lxml_9objectify_FloatElement;
struct __pyx_obj_4lxml_9objectify_StringElement;
struct __pyx_obj_4lxml_9objectify_NoneElement;
struct __pyx_obj_4lxml_9objectify_BoolElement;
struct __pyx_obj_4lxml_9objectify_PyType;
struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller;
struct __pyx_obj_4lxml_9objectify_ElementMaker;
struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup;
struct __pyx_obj_4lxml_9objectify_ObjectPath;
struct __pyx_t_4lxml_9objectify__ObjectPath;
typedef struct __pyx_t_4lxml_9objectify__ObjectPath __pyx_t_4lxml_9objectify__ObjectPath;

/* "src/lxml/objectpath.pxi":4
 * # ObjectPath
 * 
 * ctypedef struct _ObjectPath:             # <<<<<<<<<<<<<<
 *     const_xmlChar* href
 *     const_xmlChar* name
 */
struct __pyx_t_4lxml_9objectify__ObjectPath {
  const xmlChar *href;
  const xmlChar *name;
  Py_ssize_t index;
};

/* "lxml/objectify.pyx":132
 * # Element class for the main API
 * 
 * cdef class ObjectifiedElement(ElementBase):             # <<<<<<<<<<<<<<
 *     u"""Main XML Element class.
 * 
 */
struct __pyx_obj_4lxml_9objectify_ObjectifiedElement {
  struct LxmlElementBase __pyx_base;
};


/* "lxml/objectify.pyx":592
 * # Data type support in subclasses
 * 
 * cdef class ObjectifiedDataElement(ObjectifiedElement):             # <<<<<<<<<<<<<<
 *     u"""This is the base class for all data type Elements.  Subclasses should
 *     override the 'pyval' property and possibly the __str__ method.
 */
struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement {
  struct __pyx_obj_4lxml_9objectify_ObjectifiedElement __pyx_base;
};


/* "lxml/objectify.pyx":612
 *         cetree.setNodeText(self._c_node, s)
 * 
 * cdef class NumberElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *     cdef object _parse_value
 *     def _setValueParser(self, function):
 */
struct __pyx_obj_4lxml_9objectify_NumberElement {
  struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement __pyx_base;
  PyObject *_parse_value;
};


/* "lxml/objectify.pyx":709
 *         return _numericValueOf(self) ^ _numericValueOf(other)
 * 
 * cdef class IntElement(NumberElement):             # <<<<<<<<<<<<<<
 *     def _init(self):
 *         self._parse_value = int
 */
struct __pyx_obj_4lxml_9objectify_IntElement {
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
};


/* "lxml/objectify.pyx":713
 *         self._parse_value = int
 * 
 * cdef class LongElement(NumberElement):             # <<<<<<<<<<<<<<
 *     def _init(self):
 *         self._parse_value = long
 */
struct __pyx_obj_4lxml_9objectify_LongElement {
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
};


/* "lxml/objectify.pyx":717
 *         self._parse_value = long
 * 
 * cdef class FloatElement(NumberElement):             # <<<<<<<<<<<<<<
 *     def _init(self):
 *         self._parse_value = float
 */
struct __pyx_obj_4lxml_9objectify_FloatElement {
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
};


/* "lxml/objectify.pyx":721
 *         self._parse_value = float
 * 
 * cdef class StringElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *     u"""String data class.
 * 
 */
struct __pyx_obj_4lxml_9objectify_StringElement {
  struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement __pyx_base;
};


/* "lxml/objectify.pyx":783
 *         return complex(textOf(self._c_node))
 * 
 * cdef class NoneElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *     def __str__(self):
 *         return u"None"
 */
struct __pyx_obj_4lxml_9objectify_NoneElement {
  struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement __pyx_base;
};


/* "lxml/objectify.pyx":808
 *             return None
 * 
 * cdef class BoolElement(IntElement):             # <<<<<<<<<<<<<<
 *     u"""Boolean type base on string values: 'true' or 'false'.
 * 
 */
struct __pyx_obj_4lxml_9objectify_BoolElement {
  struct __pyx_obj_4lxml_9objectify_IntElement __pyx_base;
};


/* "lxml/objectify.pyx":894
 * # Python type registry
 * 
 * cdef class PyType:             # <<<<<<<<<<<<<<
 *     u"""PyType(self, name, type_check, type_class, stringify=None)
 *     User defined type.
 */
struct __pyx_obj_4lxml_9objectify_PyType {
  PyObject_HEAD
  PyObject *name;
  PyObject *type_check;
  PyObject *stringify;
  PyObject *_type;
  PyObject *_schema_types;
};


/* "lxml/objectify.pyx":1124
 * @cython.final
 * @cython.internal
 * cdef class _ObjectifyElementMakerCaller:             # <<<<<<<<<<<<<<
 *     cdef object _tag
 *     cdef object _nsmap
 */
struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller {
  PyObject_HEAD
  PyObject *_tag;
  PyObject *_nsmap;
  PyObject *_element_factory;
  int _annotate;
};


/* "lxml/objectify.pyx":1214
 *         cetree.setNodeText(elem._c_node, text)
 * 
 * cdef class ElementMaker:             # <<<<<<<<<<<<<<
 *     u"""ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)
 * 
 */
struct __pyx_obj_4lxml_9objectify_ElementMaker {
  PyObject_HEAD
  struct __pyx_vtabstruct_4lxml_9objectify_ElementMaker *__pyx_vtab;
  PyObject *_makeelement;
  PyObject *_namespace;
  PyObject *_nsmap;
  int _annotate;
  PyObject *_cache;
};


/* "lxml/objectify.pyx":1370
 * # Element class lookup
 * 
 * cdef class ObjectifyElementClassLookup(ElementClassLookup):             # <<<<<<<<<<<<<<
 *     u"""ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None)
 *     Element class lookup method that uses the objectify classes.
 */
struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup {
  struct LxmlElementClassLookup __pyx_base;
  PyObject *empty_data_class;
  PyObject *tree_class;
};


/* "src/lxml/objectpath.pxi":13
 * 
 * 
 * cdef class ObjectPath:             # <<<<<<<<<<<<<<
 *     u"""ObjectPath(path)
 *     Immutable object that represents a compiled object path.
 */
struct __pyx_obj_4lxml_9objectify_ObjectPath {
  PyObject_HEAD
  PyObject *find;
  PyObject *_path;
  PyObject *_path_str;
  __pyx_t_4lxml_9objectify__ObjectPath *_c_path;
  Py_ssize_t _path_len;
};



/* "lxml/objectify.pyx":1214
 *         cetree.setNodeText(elem._c_node, text)
 * 
 * cdef class ElementMaker:             # <<<<<<<<<<<<<<
 *     u"""ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)
 * 
 */

struct __pyx_vtabstruct_4lxml_9objectify_ElementMaker {
  PyObject *(*_build_element_maker)(struct __pyx_obj_4lxml_9objectify_ElementMaker *, PyObject *, int);
};
static struct __pyx_vtabstruct_4lxml_9objectify_ElementMaker *__pyx_vtabptr_4lxml_9objectify_ElementMaker;
static PyObject *__pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker(struct __pyx_obj_4lxml_9objectify_ElementMaker *, PyObject *, int);

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, 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__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#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_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_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)

/* 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

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

/* 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

/* Profile.proto */
#ifndef CYTHON_PROFILE
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
  #define CYTHON_PROFILE 0
#else
  #define CYTHON_PROFILE 1
#endif
#endif
#ifndef CYTHON_TRACE_NOGIL
  #define CYTHON_TRACE_NOGIL 0
#else
  #if CYTHON_TRACE_NOGIL && !defined(CYTHON_TRACE)
    #define CYTHON_TRACE 1
  #endif
#endif
#ifndef CYTHON_TRACE
  #define CYTHON_TRACE 0
#endif
#if CYTHON_TRACE
  #undef CYTHON_PROFILE_REUSE_FRAME
#endif
#ifndef CYTHON_PROFILE_REUSE_FRAME
  #define CYTHON_PROFILE_REUSE_FRAME 0
#endif
#if CYTHON_PROFILE || CYTHON_TRACE
  #include "compile.h"
  #include "frameobject.h"
  #include "traceback.h"
  #if CYTHON_PROFILE_REUSE_FRAME
    #define CYTHON_FRAME_MODIFIER static
    #define CYTHON_FRAME_DEL(frame)
  #else
    #define CYTHON_FRAME_MODIFIER
    #define CYTHON_FRAME_DEL(frame) Py_CLEAR(frame)
  #endif
  #define __Pyx_TraceDeclarations\
  static PyCodeObject *__pyx_frame_code = NULL;\
  CYTHON_FRAME_MODIFIER PyFrameObject *__pyx_frame = NULL;\
  int __Pyx_use_tracing = 0;
  #define __Pyx_TraceFrameInit(codeobj)\
  if (codeobj) __pyx_frame_code = (PyCodeObject*) codeobj;
  #ifdef WITH_THREAD
  #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
  if (nogil) {\
      if (CYTHON_TRACE_NOGIL) {\
          PyThreadState *tstate;\
          PyGILState_STATE state = PyGILState_Ensure();\
          tstate = __Pyx_PyThreadState_Current;\
          if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
                  (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
              __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
          }\
          PyGILState_Release(state);\
          if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
      }\
  } else {\
      PyThreadState* tstate = PyThreadState_GET();\
      if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
              (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
          __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
          if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
      }\
  }
  #else
  #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
  {   PyThreadState* tstate = PyThreadState_GET();\
      if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
              (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
          __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
          if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
      }\
  }
  #endif
  #define __Pyx_TraceException()\
  if (likely(!__Pyx_use_tracing)); else {\
      PyThreadState* tstate = __Pyx_PyThreadState_Current;\
      if (tstate->use_tracing &&\
              (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
          tstate->tracing++;\
          tstate->use_tracing = 0;\
          PyObject *exc_info = __Pyx_GetExceptionTuple(tstate);\
          if (exc_info) {\
              if (CYTHON_TRACE && tstate->c_tracefunc)\
                  tstate->c_tracefunc(\
                      tstate->c_traceobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
              tstate->c_profilefunc(\
                  tstate->c_profileobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
              Py_DECREF(exc_info);\
          }\
          tstate->use_tracing = 1;\
          tstate->tracing--;\
      }\
  }
  static void __Pyx_call_return_trace_func(PyThreadState *tstate, PyFrameObject *frame, PyObject *result) {
      PyObject *type, *value, *traceback;
      __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
      tstate->tracing++;
      tstate->use_tracing = 0;
      if (CYTHON_TRACE && tstate->c_tracefunc)
          tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
      if (tstate->c_profilefunc)
          tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
      CYTHON_FRAME_DEL(frame);
      tstate->use_tracing = 1;
      tstate->tracing--;
      __Pyx_ErrRestoreInState(tstate, type, value, traceback);
  }
  #ifdef WITH_THREAD
  #define __Pyx_TraceReturn(result, nogil)\
  if (likely(!__Pyx_use_tracing)); else {\
      if (nogil) {\
          if (CYTHON_TRACE_NOGIL) {\
              PyThreadState *tstate;\
              PyGILState_STATE state = PyGILState_Ensure();\
              tstate = __Pyx_PyThreadState_Current;\
              if (tstate->use_tracing) {\
                  __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
              }\
              PyGILState_Release(state);\
          }\
      } else {\
          PyThreadState* tstate = __Pyx_PyThreadState_Current;\
          if (tstate->use_tracing) {\
              __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
          }\
      }\
  }
  #else
  #define __Pyx_TraceReturn(result, nogil)\
  if (likely(!__Pyx_use_tracing)); else {\
      PyThreadState* tstate = __Pyx_PyThreadState_Current;\
      if (tstate->use_tracing) {\
          __Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
      }\
  }
  #endif
  static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno);
  static int __Pyx_TraceSetupAndCall(PyCodeObject** code, PyFrameObject** frame, PyThreadState* tstate, const char *funcname, const char *srcfile, int firstlineno);
#else
  #define __Pyx_TraceDeclarations
  #define __Pyx_TraceFrameInit(codeobj)
  #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)   if ((1)); else goto_error;
  #define __Pyx_TraceException()
  #define __Pyx_TraceReturn(result, nogil)
#endif
#if CYTHON_TRACE
  static int __Pyx_call_line_trace_func(PyThreadState *tstate, PyFrameObject *frame, int lineno) {
      int ret;
      PyObject *type, *value, *traceback;
      __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
      __Pyx_PyFrame_SetLineNumber(frame, lineno);
      tstate->tracing++;
      tstate->use_tracing = 0;
      ret = tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_LINE, NULL);
      tstate->use_tracing = 1;
      tstate->tracing--;
      if (likely(!ret)) {
          __Pyx_ErrRestoreInState(tstate, type, value, traceback);
      } else {
          Py_XDECREF(type);
          Py_XDECREF(value);
          Py_XDECREF(traceback);
      }
      return ret;
  }
  #ifdef WITH_THREAD
  #define __Pyx_TraceLine(lineno, nogil, goto_error)\
  if (likely(!__Pyx_use_tracing)); else {\
      if (nogil) {\
          if (CYTHON_TRACE_NOGIL) {\
              int ret = 0;\
              PyThreadState *tstate;\
              PyGILState_STATE state = PyGILState_Ensure();\
              tstate = __Pyx_PyThreadState_Current;\
              if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
                  ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
              }\
              PyGILState_Release(state);\
              if (unlikely(ret)) goto_error;\
          }\
      } else {\
          PyThreadState* tstate = __Pyx_PyThreadState_Current;\
          if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
              int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
              if (unlikely(ret)) goto_error;\
          }\
      }\
  }
  #else
  #define __Pyx_TraceLine(lineno, nogil, goto_error)\
  if (likely(!__Pyx_use_tracing)); else {\
      PyThreadState* tstate = __Pyx_PyThreadState_Current;\
      if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
          int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
          if (unlikely(ret)) goto_error;\
      }\
  }
  #endif
#else
  #define __Pyx_TraceLine(lineno, nogil, goto_error)   if ((1)); else goto_error;
#endif

/* 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

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

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, 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);

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

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

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

/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_bytes.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* decode_bytes.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_bytes(
         PyObject* string, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    return __Pyx_decode_c_bytes(
        PyBytes_AS_STRING(string), PyBytes_GET_SIZE(string),
        start, stop, encoding, errors, decode_func);
}

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#endif

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

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

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* GetModuleGlobalName.proto */
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);

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

/* PyDictContains.proto */
static CYTHON_INLINE int __Pyx_PyDict_ContainsTF(PyObject* item, PyObject* dict, int eq) {
    int result = PyDict_Contains(dict, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#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);

/* PyObjectFormatSimple.proto */
#if CYTHON_COMPILING_IN_PYPY
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#elif PY_MAJOR_VERSION < 3
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyString_CheckExact(s)) ? PyUnicode_FromEncodedObject(s, NULL, "strict") :\
        PyObject_Format(s, f))
#elif CYTHON_USE_TYPE_SLOTS
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_str(s) :\
        likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_str(s) :\
        PyObject_Format(s, f))
#else
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#endif

/* JoinPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

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

/* 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

/* PyObject_Unicode.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))
#else
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj))
#endif

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* 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

/* SliceObject.proto */
#define __Pyx_PyObject_DelSlice(obj, cstart, cstop, py_start, py_stop, py_slice, has_cstart, has_cstop, wraparound)\
    __Pyx_PyObject_SetSlice(obj, (PyObject*)NULL, cstart, cstop, py_start, py_stop, py_slice, has_cstart, has_cstop, wraparound)
static CYTHON_INLINE int __Pyx_PyObject_SetSlice(
        PyObject* obj, PyObject* value, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

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

/* 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

/* BuildPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* CIntToPyUnicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char);

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
#else
#define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace)\
    (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
#endif

/* py_abs.proto */
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject *__Pyx_PyLong_AbsNeg(PyObject *num);
#define __Pyx_PyNumber_Absolute(x)\
    ((likely(PyLong_CheckExact(x))) ?\
         (likely(Py_SIZE(x) >= 0) ? (Py_INCREF(x), (x)) : __Pyx_PyLong_AbsNeg(x)) :\
         PyNumber_Absolute(x))
#else
#define __Pyx_PyNumber_Absolute(x)  PyNumber_Absolute(x)
#endif

/* StrEquals.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
#else
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
#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

/* 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

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

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

/* 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

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

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

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
#else
#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\
    (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif

/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace);
#else
#define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\
    PyObject_RichCompare(op1, op2, Py_EQ)
    #endif

/* 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));
}

/* py_dict_items.proto */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallUnboundCMethod0.proto */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CallUnboundCMethod0(cfunc, self)\
    (likely((cfunc)->func) ?\
        (likely((cfunc)->flag == METH_NOARGS) ?  (*((cfunc)->func))(self, NULL) :\
         (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
            (PY_VERSION_HEX >= 0x030700A0 ?\
                (*(__Pyx_PyCFunctionFast)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
                (*(__Pyx_PyCFunctionFastWithKeywords)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
          (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
            (*(__Pyx_PyCFunctionFastWithKeywords)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
            (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ?  ((*(PyCFunctionWithKeywords)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
               ((cfunc)->flag == METH_VARARGS ?  (*((cfunc)->func))(self, __pyx_empty_tuple) :\
               __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
        __Pyx__CallUnboundCMethod0(cfunc, self))
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

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

/* PySetContains.proto */
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq);

/* py_dict_values.proto */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* py_dict_clear.proto */
#define __Pyx_PyDict_Clear(d) (PyDict_Clear(d), 0)

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* PyUnicode_Unicode.proto */
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj);

/* PyObjectFormatAndDecref.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f);
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f);

/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
        PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
        int has_cstart, int has_cstop, int wraparound);

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

/* 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

/* DelItemInt.proto */
#define __Pyx_DelItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_DelItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
               __Pyx_DelItem_Generic(o, to_py_func(i))))
static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j);
static CYTHON_INLINE int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i,
                                               int is_list, int wraparound);

/* CallNextTpDealloc.proto */
static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc);

/* 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);

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

/* FetchCommonType.proto */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);

/* CythonFunction.proto */
#define __Pyx_CyFunction_USED 1
#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 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;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
} __pyx_CyFunctionObject;
static PyTypeObject *__pyx_CyFunctionType = 0;
#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\
    __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code)
static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *self,
                                      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);

/* PyIdentifierFromString.proto */
#if !defined(__Pyx_PyIdentifier_FromString)
#if PY_MAJOR_VERSION < 3
  #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
#else
  #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
#endif
#endif

/* ModuleImport.proto */
static PyObject *__Pyx_ImportModule(const char *name);

/* RegisterModuleCleanup.proto */
static void __pyx_module_cleanup(PyObject *self);
static int __Pyx_RegisterCleanup(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 */
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);

/* 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);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

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

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

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(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_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_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

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

/* TypeImport.proto */
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

static PyObject *__pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag, int __pyx_v_caching); /* proto*/

/* Module declarations from 'cython' */

/* Module declarations from 'libc.string' */

/* Module declarations from 'libc' */

/* Module declarations from 'libc.stdio' */

/* Module declarations from 'lxml.includes.tree' */

/* Module declarations from 'lxml.etree' */

/* Module declarations from 'lxml.includes' */

/* Module declarations from 'lxml.includes.etreepublic' */
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic__Document = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic__Element = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic__ElementTree = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic_FallbackElementClassLookup = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic__ElementTagMatcher = 0;
static PyTypeObject *__pyx_ptype_4lxml_8includes_11etreepublic__ElementIterator = 0;

/* Module declarations from 'lxml' */

/* Module declarations from 'lxml.python' */

/* Module declarations from 'lxml.objectify' */
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ObjectifiedElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_NumberElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_IntElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_LongElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_FloatElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_StringElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_NoneElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_BoolElement = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_PyType = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ElementMaker = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup = 0;
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ObjectPath = 0;
static PyObject *__pyx_v_4lxml_9objectify_etree = 0;
static PyObject *__pyx_v_4lxml_9objectify_re = 0;
static PyObject *__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = 0;
static PyObject *__pyx_v_4lxml_9objectify_is_special_method = 0;
static PyObject *__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = 0;
static PyObject *__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = 0;
static const xmlChar *__pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE;
static PyObject *__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = 0;
static PyObject *__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = 0;
static const xmlChar *__pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME;
static PyObject *__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME = 0;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_NS = 0;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = 0;
static const xmlChar *__pyx_v_4lxml_9objectify__XML_SCHEMA_NS;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = 0;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = 0;
static const xmlChar *__pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = 0;
static PyObject *__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = 0;
static PyObject *__pyx_v_4lxml_9objectify__PYTYPE_DICT = 0;
static PyObject *__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = 0;
static PyObject *__pyx_v_4lxml_9objectify__TYPE_CHECKS = 0;
static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_4lxml_9objectify_TREE_PYTYPE = 0;
static int __pyx_v_4lxml_9objectify___RECURSIVE_STR;
static PyObject *__pyx_v_4lxml_9objectify__strip_attributes = 0;
static PyObject *__pyx_v_4lxml_9objectify__cleanup_namespaces = 0;
static PyObject *__pyx_v_4lxml_9objectify___DEFAULT_PARSER = 0;
static PyObject *__pyx_v_4lxml_9objectify_objectify_parser = 0;
static PyObject *__pyx_v_4lxml_9objectify__fromstring = 0;
static PyObject *__pyx_v_4lxml_9objectify__parse = 0;
static PyObject *__pyx_v_4lxml_9objectify__DEFAULT_NSMAP = 0;
static PyObject *__pyx_v_4lxml_9objectify__NO_DEFAULT = 0;
static PyObject *__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = 0;
static PyObject *__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = 0;
static PyObject *__pyx_f_4lxml_9objectify_strrepr(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__typename(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__unicodeAndUtf8(PyObject *); /*proto*/
static CYTHON_INLINE int __pyx_f_4lxml_9objectify__tagMatches(xmlNode *, const xmlChar *, const xmlChar *); /*proto*/
static Py_ssize_t __pyx_f_4lxml_9objectify__countSiblings(xmlNode *); /*proto*/
static xmlNode *__pyx_f_4lxml_9objectify__findFollowingSibling(xmlNode *, const xmlChar *, const xmlChar *, Py_ssize_t); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__lookupChild(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__lookupChildOrRaise(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__buildChildTag(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__replaceElement(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__appendValue(struct LxmlElement *, PyObject *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__setElementValue(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__setSlice(PyObject *, struct LxmlElement *, PyObject *); /*proto*/
static int __pyx_f_4lxml_9objectify___parseBool(PyObject *, int __pyx_skip_dispatch); /*proto*/
static CYTHON_INLINE int __pyx_f_4lxml_9objectify___parseBoolAsInt(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__parseNumber(struct __pyx_obj_4lxml_9objectify_NumberElement *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__strValueOf(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__numericValueOf(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__richcmpPyvals(PyObject *, PyObject *, int); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__pytypename(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__registerPyTypes(void); /*proto*/
static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__guessPyType(PyObject *, struct __pyx_obj_4lxml_9objectify_PyType *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__guessElementClass(xmlNode *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__add_text(struct LxmlElement *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__dump(struct LxmlElement *, int); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__setupPickle(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__lookupElementClass(PyObject *, struct LxmlDocument *, xmlNode *); /*proto*/
static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__check_type(xmlNode *, struct __pyx_obj_4lxml_9objectify_PyType *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__annotate(struct LxmlElement *, int, int, int, int, PyObject *, PyObject *); /*proto*/
static int __pyx_f_4lxml_9objectify__annotate_element(xmlNode *, struct LxmlDocument *, int, int, int, int, PyObject *, struct __pyx_obj_4lxml_9objectify_PyType *, struct __pyx_obj_4lxml_9objectify_PyType *, struct __pyx_obj_4lxml_9objectify_PyType *); /*proto*/
static struct LxmlElement *__pyx_f_4lxml_9objectify__makeElement(PyObject *, PyObject *, PyObject *, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__parse_object_path_string(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__parse_object_path_list(PyObject *); /*proto*/
static __pyx_t_4lxml_9objectify__ObjectPath *__pyx_f_4lxml_9objectify__build_object_path_segments(PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__find_object_path(struct LxmlElement *, __pyx_t_4lxml_9objectify__ObjectPath *, Py_ssize_t, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__create_object_path(struct LxmlElement *, __pyx_t_4lxml_9objectify__ObjectPath *, Py_ssize_t, int, PyObject *); /*proto*/
static PyObject *__pyx_f_4lxml_9objectify__build_descendant_paths(xmlNode *, PyObject *); /*proto*/
static int __pyx_f_4lxml_9objectify__recursive_build_descendant_paths(xmlNode *, PyObject *, PyObject *); /*proto*/
#define __Pyx_MODULE_NAME "lxml.objectify"
extern int __pyx_module_is_main_lxml__objectify;
int __pyx_module_is_main_lxml__objectify = 0;

/* Implementation of 'lxml.objectify' */
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_object;
static PyObject *__pyx_builtin_IndexError;
static PyObject *__pyx_builtin_AttributeError;
static PyObject *__pyx_builtin_oct;
static PyObject *__pyx_builtin_hex;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_map;
static PyObject *__pyx_builtin_MemoryError;
static const char __pyx_k_0[] = "0";
static const char __pyx_k_1[] = "1";
static const char __pyx_k_E[] = "E";
static const char __pyx_k_U[] = "U";
static const char __pyx_k_b[] = "b";
static const char __pyx_k_c[] = "c";
static const char __pyx_k_f[] = "f";
static const char __pyx_k_i[] = "i";
static const char __pyx_k_s[] = "{%s}*";
static const char __pyx_k_ID[] = "ID";
static const char __pyx_k__3[] = "";
static const char __pyx_k__9[] = ".";
static const char __pyx_k_kw[] = "kw";
static const char __pyx_k_ns[] = "ns";
static const char __pyx_k_of[] = "' of '";
static const char __pyx_k_on[] = "on";
static const char __pyx_k_py[] = "py:";
static const char __pyx_k_re[] = "re";
static const char __pyx_k_XML[] = "XML";
static const char __pyx_k__22[] = "'";
static const char __pyx_k__32[] = "{";
  static const char __pyx_k__35[] = "    ";
  static const char __pyx_k__36[] = " = ";
  static const char __pyx_k__37[] = " [";
  static const char __pyx_k__38[] = "]\n";
  static const char __pyx_k__39[] = "  * ";
  static const char __pyx_k__40[] = "\n";
  static const char __pyx_k__44[] = ":";
  static const char __pyx_k__62[] = "{}";
  static const char __pyx_k__63[] = "[";
  static const char __pyx_k__64[] = "]";
  static const char __pyx_k__66[] = "__.*__$";
  static const char __pyx_k_all[] = "__all__";
  static const char __pyx_k_end[] = "end";
  static const char __pyx_k_get[] = "get";
  static const char __pyx_k_got[] = ", got ";
  static const char __pyx_k_hex[] = "hex";
  static const char __pyx_k_int[] = "int";
  static const char __pyx_k_map[] = "map";
  static const char __pyx_k_obj[] = "obj";
  static const char __pyx_k_oct[] = "oct";
  static const char __pyx_k_s_2[] = "{%s}";
  static const char __pyx_k_s_3[] = "s";
  static const char __pyx_k_set[] = "__set__";
  static const char __pyx_k_str[] = "str";
  static const char __pyx_k_tag[] = "tag";
  static const char __pyx_k_xml[] = "xml";
  static const char __pyx_k_xsd[] = "xsd:";
  static const char __pyx_k_xsi[] = "xsi:";
  static const char __pyx_k_Name[] = "Name";
  static const char __pyx_k_None[] = "None";
  static const char __pyx_k_TREE[] = "TREE";
  static const char __pyx_k_base[] = "base";
  static const char __pyx_k_bool[] = "bool";
  static const char __pyx_k_byte[] = "byte";
  static const char __pyx_k_call[] = "__call__";
  static const char __pyx_k_copy[] = "__copy__";
  static const char __pyx_k_data[] = "data";
  static const char __pyx_k_dump[] = "dump";
  static const char __pyx_k_init[] = "_init";
  static const char __pyx_k_item[] = "item";
  static const char __pyx_k_long[] = "long";
  static const char __pyx_k_lxml[] = "lxml";
  static const char __pyx_k_main[] = "__main__";
  static const char __pyx_k_name[] = "name";
  static const char __pyx_k_none[] = "none";
  static const char __pyx_k_path[] = "path";
  static const char __pyx_k_py_2[] = "py";
  static const char __pyx_k_repr[] = "repr";
  static const char __pyx_k_root[] = "root";
  static const char __pyx_k_self[] = "self";
  static const char __pyx_k_tail[] = "tail";
  static const char __pyx_k_temp[] = "temp";
  static const char __pyx_k_test[] = "__test__";
  static const char __pyx_k_text[] = "text";
  static const char __pyx_k_true[] = "true";
  static const char __pyx_k_IDREF[] = "IDREF";
  static const char __pyx_k_after[] = "after";
  static const char __pyx_k_check[] = "check";
  static const char __pyx_k_entry[] = "entry";
  static const char __pyx_k_etree[] = "etree";
  static const char __pyx_k_false[] = "false";
  static const char __pyx_k_float[] = "float";
  static const char __pyx_k_items[] = "items";
  static const char __pyx_k_known[] = "known";
  static const char __pyx_k_match[] = "match";
  static const char __pyx_k_nsmap[] = "nsmap";
  static const char __pyx_k_parse[] = "parse";
  static const char __pyx_k_pyval[] = "pyval";
  static const char __pyx_k_s_nil[] = "{%s}nil";
  static const char __pyx_k_short[] = "short";
  static const char __pyx_k_split[] = "split";
  static const char __pyx_k_strip[] = "strip";
  static const char __pyx_k_tag_2[] = "_tag";
  static const char __pyx_k_token[] = "token";
  static const char __pyx_k_types[] = "types";
  static const char __pyx_k_value[] = "value";
  static const char __pyx_k_xsd_2[] = "xsd";
  static const char __pyx_k_xsi_2[] = "xsi";
  static const char __pyx_k_xsi_3[] = "_xsi";
  static const char __pyx_k_ENTITY[] = "ENTITY";
  static const char __pyx_k_NCName[] = "NCName";
  static const char __pyx_k_PyType[] = "PyType";
  static const char __pyx_k_attrib[] = "attrib";
  static const char __pyx_k_before[] = "before";
  static const char __pyx_k_c_node[] = "c_node";
  static const char __pyx_k_double[] = "double";
  static const char __pyx_k_encode[] = "encode";
  static const char __pyx_k_groups[] = "groups";
  static const char __pyx_k_import[] = "__import__";
  static const char __pyx_k_name_2[] = "__name__";
  static const char __pyx_k_object[] = "object";
  static const char __pyx_k_parser[] = "parser";
  static const char __pyx_k_pickle[] = "pickle";
  static const char __pyx_k_prefix[] = "prefix";
  static const char __pyx_k_pytype[] = "pytype";
  static const char __pyx_k_reduce[] = "__reduce__";
  static const char __pyx_k_remove[] = "remove";
  static const char __pyx_k_result[] = "result";
  static const char __pyx_k_s_type[] = "{%s}type";
  static const char __pyx_k_string[] = "string";
  static const char __pyx_k_strlen[] = "strlen";
  static const char __pyx_k_strval[] = "strval";
  static const char __pyx_k_update[] = "update";
  static const char __pyx_k_values[] = "values";
  static const char __pyx_k_Element[] = "Element";
  static const char __pyx_k_NMTOKEN[] = "NMTOKEN";
  static const char __pyx_k_addattr[] = "addattr";
  static const char __pyx_k_addnext[] = "addnext";
  static const char __pyx_k_boolean[] = "boolean";
  static const char __pyx_k_compile[] = "compile";
  static const char __pyx_k_complex[] = "__complex__";
  static const char __pyx_k_copyreg[] = "copyreg";
  static const char __pyx_k_element[] = "element";
  static const char __pyx_k_getattr[] = "__getattr__";
  static const char __pyx_k_getitem[] = "__getitem__";
  static const char __pyx_k_hasattr[] = "hasattr";
  static const char __pyx_k_integer[] = "integer";
  static const char __pyx_k_py_type[] = "py_type";
  static const char __pyx_k_replace[] = "replace";
  static const char __pyx_k_setText[] = "_setText";
  static const char __pyx_k_setattr[] = "setattr";
  static const char __pyx_k_value_2[] = "_value";
  static const char __pyx_k_version[] = "__version__";
  static const char __pyx_k_xs_type[] = "xs_type";
  static const char __pyx_k_xsi_nil[] = "xsi_nil";
  static const char __pyx_k_NoneType[] = "NoneType";
  static const char __pyx_k_annotate[] = "annotate";
  static const char __pyx_k_base_url[] = "base_url";
  static const char __pyx_k_copy_reg[] = "copy_reg";
  static const char __pyx_k_function[] = "function";
  static const char __pyx_k_language[] = "language";
  static const char __pyx_k_last_pos[] = "last_pos";
  static const char __pyx_k_pytype_2[] = "_pytype";
  static const char __pyx_k_register[] = "register";
  static const char __pyx_k_tostring[] = "tostring";
  static const char __pyx_k_TypeError[] = "TypeError";
  static const char __pyx_k_XMLParser[] = "XMLParser";
  static const char __pyx_k_attribute[] = "attribute '";
  static const char __pyx_k_checkBool[] = "__checkBool";
  static const char __pyx_k_enumerate[] = "enumerate";
  static const char __pyx_k_first_pos[] = "first_pos";
  static const char __pyx_k_getparent[] = "getparent";
  static const char __pyx_k_namespace[] = "namespace";
  static const char __pyx_k_parseBool[] = "__parseBool";
  static const char __pyx_k_stringify[] = "stringify";
  static const char __pyx_k_IndexError[] = "IndexError";
  static const char __pyx_k_IntElement[] = "IntElement";
  static const char __pyx_k_ObjectPath[] = "ObjectPath";
  static const char __pyx_k_PyType_s_s[] = "PyType(%s, %s)";
  static const char __pyx_k_SubElement[] = "SubElement";
  static const char __pyx_k_ValueError[] = "ValueError";
  static const char __pyx_k_attributes[] = "_attributes";
  static const char __pyx_k_deannotate[] = "deannotate";
  static const char __pyx_k_empty_type[] = "empty_type";
  static const char __pyx_k_fromstring[] = "fromstring";
  static const char __pyx_k_ignore_old[] = "ignore_old";
  static const char __pyx_k_ignore_xsi[] = "ignore_xsi";
  static const char __pyx_k_lower_bool[] = "__lower_bool";
  static const char __pyx_k_makeparser[] = "makeparser";
  static const char __pyx_k_new_parser[] = "new_parser";
  static const char __pyx_k_pyannotate[] = "pyannotate";
  static const char __pyx_k_pytypename[] = "pytypename";
  static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
  static const char __pyx_k_tree_class[] = "tree_class";
  static const char __pyx_k_type_check[] = "type_check";
  static const char __pyx_k_type_class[] = "type_class";
  static const char __pyx_k_unregister[] = "unregister";
  static const char __pyx_k_BoolElement[] = "BoolElement";
  static const char __pyx_k_DataElement[] = "DataElement";
  static const char __pyx_k_ElementTree[] = "ElementTree";
  static const char __pyx_k_LongElement[] = "LongElement";
  static const char __pyx_k_MemoryError[] = "MemoryError";
  static const char __pyx_k_NoneElement[] = "NoneElement";
  static const char __pyx_k_getchildren[] = "getchildren";
  static const char __pyx_k_makeelement[] = "makeelement";
  static const char __pyx_k_unsignedInt[] = "unsignedInt";
  static const char __pyx_k_xsiannotate[] = "xsiannotate";
  static const char __pyx_k_ElementMaker[] = "ElementMaker";
  static const char __pyx_k_FloatElement[] = "FloatElement";
  static const char __pyx_k_annotate_xsi[] = "annotate_xsi";
  static const char __pyx_k_empty_pytype[] = "empty_pytype";
  static const char __pyx_k_invalid_path[] = "invalid path";
  static const char __pyx_k_iterchildren[] = "iterchildren";
  static const char __pyx_k_unsignedByte[] = "unsignedByte";
  static const char __pyx_k_unsignedLong[] = "unsignedLong";
  static const char __pyx_k_ElementTree_2[] = "_ElementTree";
  static const char __pyx_k_Invalid_slice[] = "Invalid slice";
  static const char __pyx_k_NumberElement[] = "NumberElement";
  static const char __pyx_k_StringElement[] = "StringElement";
  static const char __pyx_k_attribute_tag[] = "attribute_tag";
  static const char __pyx_k_countchildren[] = "countchildren";
  static const char __pyx_k_ignore_pytype[] = "ignore_pytype";
  static const char __pyx_k_no_such_child[] = "no such child: ";
  static const char __pyx_k_unsignedShort[] = "unsignedShort";
  static const char __pyx_k_AttributeError[] = "AttributeError";
  static const char __pyx_k_lxml_objectify[] = "lxml.objectify";
  static const char __pyx_k_setValueParser[] = "_setValueParser";
  static const char __pyx_k_unicode_escape[] = "unicode-escape";
  static const char __pyx_k_xmlSchemaTypes[] = "xmlSchemaTypes";
  static const char __pyx_k_PyType_register[] = "PyType.register";
  static const char __pyx_k_annotate_pytype[] = "annotate_pytype";
  static const char __pyx_k_attribute_names[] = "attribute_names";
  static const char __pyx_k_descendantpaths[] = "descendantpaths";
  static const char __pyx_k_element_or_tree[] = "element_or_tree";
  static const char __pyx_k_negativeInteger[] = "negativeInteger";
  static const char __pyx_k_positiveInteger[] = "positiveInteger";
static const char __pyx_k_s_s_s_s_s_0_9_s[] = "(\\.?)\\s*(?:\\{([^}]*)\\})?\\s*([^.{}\\[\\]\\s]+)\\s*(?:\\[\\s*([-0-9]+)\\s*\\])?";
static const char __pyx_k_IntElement__init[] = "IntElement._init";
static const char __pyx_k_PYTYPE_ATTRIBUTE[] = "PYTYPE_ATTRIBUTE";
static const char __pyx_k_empty_data_class[] = "empty_data_class";
static const char __pyx_k_normalizedString[] = "normalizedString";
static const char __pyx_k_strip_attributes[] = "strip_attributes";
static const char __pyx_k_BoolElement__init[] = "BoolElement._init";
static const char __pyx_k_LongElement__init[] = "LongElement._init";
static const char __pyx_k_PyType_unregister[] = "PyType.unregister";
static const char __pyx_k_remove_blank_text[] = "remove_blank_text";
static const char __pyx_k_FloatElement__init[] = "FloatElement._init";
static const char __pyx_k_ObjectPath_addattr[] = "ObjectPath.addattr";
static const char __pyx_k_ObjectPath_hasattr[] = "ObjectPath.hasattr";
static const char __pyx_k_ObjectPath_setattr[] = "ObjectPath.setattr";
static const char __pyx_k_ObjectifiedElement[] = "ObjectifiedElement";
static const char __pyx_k_cleanup_namespaces[] = "cleanup_namespaces";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_getRegisteredTypes[] = "getRegisteredTypes";
static const char __pyx_k_nonNegativeInteger[] = "nonNegativeInteger";
static const char __pyx_k_nonPositiveInteger[] = "nonPositiveInteger";
static const char __pyx_k_set_default_parser[] = "set_default_parser";
static const char __pyx_k_unpickleElementTree[] = "__unpickleElementTree";
static const char __pyx_k_ElementChildIterator[] = "ElementChildIterator";
static const char __pyx_k_StringElement_strlen[] = "StringElement.strlen";
static const char __pyx_k_enable_recursive_str[] = "enable_recursive_str";
static const char __pyx_k_Invalid_boolean_value[] = "Invalid boolean value: '";
static const char __pyx_k_ObjectifiedDataElement[] = "ObjectifiedDataElement";
static const char __pyx_k_src_lxml_objectify_pyx[] = "src/lxml/objectify.pyx";
static const char __pyx_k_NumberElement___complex[] = "NumberElement.__complex__";
static const char __pyx_k_StringElement___complex[] = "StringElement.__complex__";
static const char __pyx_k_cannot_update_root_node[] = "cannot update root node";
static const char __pyx_k_objects_is_not_writable[] = "' objects is not writable";
static const char __pyx_k_pickleReduceElementTree[] = "pickleReduceElementTree";
static const char __pyx_k_src_lxml_objectpath_pxi[] = "src/lxml/objectpath.pxi";
static const char __pyx_k_set_element_class_lookup[] = "set_element_class_lookup";
static const char __pyx_k_set_pytype_attribute_tag[] = "set_pytype_attribute_tag";
static const char __pyx_k_Cannot_register_tree_type[] = "Cannot register tree type";
static const char __pyx_k_index_must_be_enclosed_in[] = "index must be enclosed in []";
static const char __pyx_k_to_extended_slice_of_size[] = " to extended slice of size ";
static const char __pyx_k_ObjectifiedElement_addattr[] = "ObjectifiedElement.addattr";
static const char __pyx_k_Type_name_must_be_a_string[] = "Type name must be a string";
static const char __pyx_k_invalid_types_for_operator[] = "invalid types for * operator";
static const char __pyx_k_ObjectifiedElement___reduce[] = "ObjectifiedElement.__reduce__";
static const char __pyx_k_ObjectifyElementClassLookup[] = "ObjectifyElementClassLookup";
static const char __pyx_k_NumberElement__setValueParser[] = "NumberElement._setValueParser";
static const char __pyx_k_ObjectifiedElement_getchildren[] = "ObjectifiedElement.getchildren";
static const char __pyx_k_http_www_w3_org_2001_XMLSchema[] = "http://www.w3.org/2001/XMLSchema";
static const char __pyx_k_index_not_allowed_on_root_node[] = "index not allowed on root node";
static const char __pyx_k_ObjectifiedDataElement__setText[] = "ObjectifiedDataElement._setText";
static const char __pyx_k_The_lxml_objectify_module_imple[] = "\nThe ``lxml.objectify`` module implements a Python object API for XML.\nIt is based on `lxml.etree`.\n";
static const char __pyx_k_deleting_items_not_supported_by[] = "deleting items not supported by root element";
static const char __pyx_k_Data_classes_must_inherit_from_O[] = "Data classes must inherit from ObjectifiedDataElement";
static const char __pyx_k_ObjectifiedElement_countchildren[] = "ObjectifiedElement.countchildren";
static const char __pyx_k_ObjectifiedElement_descendantpat[] = "ObjectifiedElement.descendantpaths";
static const char __pyx_k_Type_check_function_must_be_call[] = "Type check function must be callable (or None)";
static const char __pyx_k_XSD_types_require_the_XSD_namesp[] = "XSD types require the XSD namespace";
static const char __pyx_k_argument_of_makeelement_paramete[] = "argument of 'makeelement' parameter must be callable, got ";
static const char __pyx_k_assignment_to_root_element_is_in[] = "assignment to root element is invalid";
static const char __pyx_k_attempt_to_assign_sequence_of_si[] = "attempt to assign sequence of size ";
static const char __pyx_k_creating_indexed_path_attributes[] = "creating indexed path attributes is not supported";
static const char __pyx_k_http_codespeak_net_lxml_objectif[] = "http://codespeak.net/lxml/objectify/pytype";
static const char __pyx_k_http_www_w3_org_2001_XMLSchema_i[] = "http://www.w3.org/2001/XMLSchema-instance";
static const char __pyx_k_inconsistent_before_after_depend[] = "inconsistent before/after dependencies";
static const char __pyx_k_invalid_number_of_arguments_need[] = "invalid number of arguments: needs one or two";
static const char __pyx_k_parser_must_inherit_from_lxml_et[] = "parser must inherit from lxml.etree.XMLParser";
static const char __pyx_k_root_element_does_not_match_need[] = "root element does not match: need ";
static PyObject *__pyx_kp_s_0;
static PyObject *__pyx_kp_s_1;
static PyObject *__pyx_n_s_AttributeError;
static PyObject *__pyx_n_u_BoolElement;
static PyObject *__pyx_n_s_BoolElement__init;
static PyObject *__pyx_kp_u_Cannot_register_tree_type;
static PyObject *__pyx_n_s_DataElement;
static PyObject *__pyx_n_u_DataElement;
static PyObject *__pyx_kp_u_Data_classes_must_inherit_from_O;
static PyObject *__pyx_n_s_E;
static PyObject *__pyx_n_u_E;
static PyObject *__pyx_n_u_ENTITY;
static PyObject *__pyx_n_s_Element;
static PyObject *__pyx_n_u_Element;
static PyObject *__pyx_n_s_ElementChildIterator;
static PyObject *__pyx_n_u_ElementMaker;
static PyObject *__pyx_n_s_ElementTree;
static PyObject *__pyx_n_s_ElementTree_2;
static PyObject *__pyx_n_u_FloatElement;
static PyObject *__pyx_n_s_FloatElement__init;
static PyObject *__pyx_n_u_ID;
static PyObject *__pyx_n_u_IDREF;
static PyObject *__pyx_n_s_IndexError;
static PyObject *__pyx_n_u_IntElement;
static PyObject *__pyx_n_s_IntElement__init;
static PyObject *__pyx_kp_u_Invalid_boolean_value;
static PyObject *__pyx_kp_u_Invalid_slice;
static PyObject *__pyx_n_u_LongElement;
static PyObject *__pyx_n_s_LongElement__init;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_n_u_NCName;
static PyObject *__pyx_n_u_NMTOKEN;
static PyObject *__pyx_n_u_Name;
static PyObject *__pyx_n_s_None;
static PyObject *__pyx_n_u_None;
static PyObject *__pyx_n_u_NoneElement;
static PyObject *__pyx_n_s_NoneType;
static PyObject *__pyx_n_u_NoneType;
static PyObject *__pyx_n_u_NumberElement;
static PyObject *__pyx_n_s_NumberElement___complex;
static PyObject *__pyx_n_s_NumberElement__setValueParser;
static PyObject *__pyx_n_u_ObjectPath;
static PyObject *__pyx_n_s_ObjectPath_addattr;
static PyObject *__pyx_n_s_ObjectPath_hasattr;
static PyObject *__pyx_n_s_ObjectPath_setattr;
static PyObject *__pyx_n_u_ObjectifiedDataElement;
static PyObject *__pyx_n_s_ObjectifiedDataElement__setText;
static PyObject *__pyx_n_u_ObjectifiedElement;
static PyObject *__pyx_n_s_ObjectifiedElement___reduce;
static PyObject *__pyx_n_s_ObjectifiedElement_addattr;
static PyObject *__pyx_n_s_ObjectifiedElement_countchildren;
static PyObject *__pyx_n_s_ObjectifiedElement_descendantpat;
static PyObject *__pyx_n_s_ObjectifiedElement_getchildren;
static PyObject *__pyx_n_u_ObjectifyElementClassLookup;
static PyObject *__pyx_n_s_PYTYPE_ATTRIBUTE;
static PyObject *__pyx_n_u_PYTYPE_ATTRIBUTE;
static PyObject *__pyx_n_u_PyType;
static PyObject *__pyx_n_s_PyType_register;
static PyObject *__pyx_kp_s_PyType_s_s;
static PyObject *__pyx_n_s_PyType_unregister;
static PyObject *__pyx_n_u_StringElement;
static PyObject *__pyx_n_s_StringElement___complex;
static PyObject *__pyx_n_s_StringElement_strlen;
static PyObject *__pyx_n_s_SubElement;
static PyObject *__pyx_n_u_SubElement;
static PyObject *__pyx_n_u_TREE;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_kp_u_Type_check_function_must_be_call;
static PyObject *__pyx_kp_u_Type_name_must_be_a_string;
static PyObject *__pyx_n_s_U;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_XML;
static PyObject *__pyx_n_u_XML;
static PyObject *__pyx_n_s_XMLParser;
static PyObject *__pyx_kp_u_XSD_types_require_the_XSD_namesp;
static PyObject *__pyx_kp_u__22;
static PyObject *__pyx_kp_s__3;
static PyObject *__pyx_kp_u__3;
static PyObject *__pyx_kp_u__32;
static PyObject *__pyx_kp_u__35;
static PyObject *__pyx_kp_u__36;
static PyObject *__pyx_kp_u__37;
static PyObject *__pyx_kp_u__38;
static PyObject *__pyx_kp_u__39;
static PyObject *__pyx_kp_u__40;
static PyObject *__pyx_kp_b__44;
static PyObject *__pyx_kp_u__44;
static PyObject *__pyx_kp_u__62;
static PyObject *__pyx_kp_u__63;
static PyObject *__pyx_kp_u__64;
static PyObject *__pyx_kp_u__66;
static PyObject *__pyx_kp_u__9;
static PyObject *__pyx_n_s_addattr;
static PyObject *__pyx_n_s_addnext;
static PyObject *__pyx_n_s_after;
static PyObject *__pyx_n_s_all;
static PyObject *__pyx_n_s_annotate;
static PyObject *__pyx_n_u_annotate;
static PyObject *__pyx_n_s_annotate_pytype;
static PyObject *__pyx_n_s_annotate_xsi;
static PyObject *__pyx_kp_u_argument_of_makeelement_paramete;
static PyObject *__pyx_kp_u_assignment_to_root_element_is_in;
static PyObject *__pyx_kp_u_attempt_to_assign_sequence_of_si;
static PyObject *__pyx_n_s_attrib;
static PyObject *__pyx_kp_u_attribute;
static PyObject *__pyx_n_s_attribute_names;
static PyObject *__pyx_n_s_attribute_tag;
static PyObject *__pyx_n_s_attributes;
static PyObject *__pyx_n_s_b;
static PyObject *__pyx_n_s_base;
static PyObject *__pyx_n_u_base;
static PyObject *__pyx_n_s_base_url;
static PyObject *__pyx_n_s_before;
static PyObject *__pyx_n_u_bool;
static PyObject *__pyx_n_u_boolean;
static PyObject *__pyx_n_u_byte;
static PyObject *__pyx_n_s_c;
static PyObject *__pyx_n_s_c_node;
static PyObject *__pyx_n_s_call;
static PyObject *__pyx_kp_u_cannot_update_root_node;
static PyObject *__pyx_n_s_check;
static PyObject *__pyx_n_s_checkBool;
static PyObject *__pyx_n_s_cleanup_namespaces;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_compile;
static PyObject *__pyx_n_s_complex;
static PyObject *__pyx_n_s_copy;
static PyObject *__pyx_n_s_copy_reg;
static PyObject *__pyx_n_s_copyreg;
static PyObject *__pyx_n_s_countchildren;
static PyObject *__pyx_kp_u_creating_indexed_path_attributes;
static PyObject *__pyx_n_s_data;
static PyObject *__pyx_n_s_deannotate;
static PyObject *__pyx_n_u_deannotate;
static PyObject *__pyx_kp_u_deleting_items_not_supported_by;
static PyObject *__pyx_n_s_descendantpaths;
static PyObject *__pyx_n_u_double;
static PyObject *__pyx_n_s_dump;
static PyObject *__pyx_n_u_dump;
static PyObject *__pyx_n_s_element;
static PyObject *__pyx_n_s_element_or_tree;
static PyObject *__pyx_n_s_empty_data_class;
static PyObject *__pyx_n_s_empty_pytype;
static PyObject *__pyx_n_s_empty_type;
static PyObject *__pyx_n_s_enable_recursive_str;
static PyObject *__pyx_n_u_enable_recursive_str;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_end;
static PyObject *__pyx_n_s_entry;
static PyObject *__pyx_n_s_enumerate;
static PyObject *__pyx_n_s_etree;
static PyObject *__pyx_n_s_f;
static PyObject *__pyx_n_s_false;
static PyObject *__pyx_n_u_false;
static PyObject *__pyx_n_s_first_pos;
static PyObject *__pyx_n_u_float;
static PyObject *__pyx_n_s_fromstring;
static PyObject *__pyx_n_u_fromstring;
static PyObject *__pyx_n_s_function;
static PyObject *__pyx_n_s_get;
static PyObject *__pyx_n_s_getRegisteredTypes;
static PyObject *__pyx_n_u_getRegisteredTypes;
static PyObject *__pyx_n_s_getattr;
static PyObject *__pyx_n_s_getchildren;
static PyObject *__pyx_n_s_getitem;
static PyObject *__pyx_n_s_getparent;
static PyObject *__pyx_kp_u_got;
static PyObject *__pyx_n_s_groups;
static PyObject *__pyx_n_s_hasattr;
static PyObject *__pyx_n_s_hex;
static PyObject *__pyx_kp_u_http_codespeak_net_lxml_objectif;
static PyObject *__pyx_kp_u_http_www_w3_org_2001_XMLSchema;
static PyObject *__pyx_kp_u_http_www_w3_org_2001_XMLSchema_i;
static PyObject *__pyx_n_s_i;
static PyObject *__pyx_n_s_ignore_old;
static PyObject *__pyx_n_s_ignore_pytype;
static PyObject *__pyx_n_s_ignore_xsi;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_kp_u_inconsistent_before_after_depend;
static PyObject *__pyx_kp_u_index_must_be_enclosed_in;
static PyObject *__pyx_kp_u_index_not_allowed_on_root_node;
static PyObject *__pyx_n_s_init;
static PyObject *__pyx_n_u_int;
static PyObject *__pyx_n_u_integer;
static PyObject *__pyx_kp_u_invalid_number_of_arguments_need;
static PyObject *__pyx_kp_u_invalid_path;
static PyObject *__pyx_kp_u_invalid_types_for_operator;
static PyObject *__pyx_n_s_item;
static PyObject *__pyx_n_s_items;
static PyObject *__pyx_n_s_iterchildren;
static PyObject *__pyx_n_s_known;
static PyObject *__pyx_n_s_kw;
static PyObject *__pyx_n_u_language;
static PyObject *__pyx_n_s_last_pos;
static PyObject *__pyx_n_u_long;
static PyObject *__pyx_n_s_lower_bool;
static PyObject *__pyx_n_s_lxml;
static PyObject *__pyx_n_s_lxml_objectify;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_makeelement;
static PyObject *__pyx_n_s_makeparser;
static PyObject *__pyx_n_u_makeparser;
static PyObject *__pyx_n_s_map;
static PyObject *__pyx_n_s_match;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_n_s_namespace;
static PyObject *__pyx_n_u_negativeInteger;
static PyObject *__pyx_n_s_new_parser;
static PyObject *__pyx_kp_u_no_such_child;
static PyObject *__pyx_n_u_nonNegativeInteger;
static PyObject *__pyx_n_u_nonPositiveInteger;
static PyObject *__pyx_n_s_none;
static PyObject *__pyx_n_u_none;
static PyObject *__pyx_n_u_normalizedString;
static PyObject *__pyx_n_s_ns;
static PyObject *__pyx_n_s_nsmap;
static PyObject *__pyx_n_s_obj;
static PyObject *__pyx_n_s_object;
static PyObject *__pyx_kp_u_objects_is_not_writable;
static PyObject *__pyx_n_s_oct;
static PyObject *__pyx_kp_u_of;
static PyObject *__pyx_n_s_on;
static PyObject *__pyx_n_s_parse;
static PyObject *__pyx_n_u_parse;
static PyObject *__pyx_n_s_parseBool;
static PyObject *__pyx_n_s_parser;
static PyObject *__pyx_kp_u_parser_must_inherit_from_lxml_et;
static PyObject *__pyx_n_s_path;
static PyObject *__pyx_n_s_pickle;
static PyObject *__pyx_n_s_pickleReduceElementTree;
static PyObject *__pyx_n_u_positiveInteger;
static PyObject *__pyx_n_s_prefix;
static PyObject *__pyx_kp_u_py;
static PyObject *__pyx_n_s_py_2;
static PyObject *__pyx_n_s_py_type;
static PyObject *__pyx_n_s_pyannotate;
static PyObject *__pyx_n_u_pyannotate;
static PyObject *__pyx_n_s_pytype;
static PyObject *__pyx_n_u_pytype;
static PyObject *__pyx_n_s_pytype_2;
static PyObject *__pyx_n_s_pytypename;
static PyObject *__pyx_n_u_pytypename;
static PyObject *__pyx_n_s_pyval;
static PyObject *__pyx_n_u_pyval;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_re;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_register;
static PyObject *__pyx_n_s_remove;
static PyObject *__pyx_n_s_remove_blank_text;
static PyObject *__pyx_n_s_replace;
static PyObject *__pyx_n_s_repr;
static PyObject *__pyx_n_s_result;
static PyObject *__pyx_n_s_root;
static PyObject *__pyx_kp_u_root_element_does_not_match_need;
static PyObject *__pyx_kp_u_s;
static PyObject *__pyx_kp_u_s_2;
static PyObject *__pyx_n_s_s_3;
static PyObject *__pyx_kp_u_s_nil;
static PyObject *__pyx_kp_u_s_s_s_s_s_0_9_s;
static PyObject *__pyx_kp_u_s_type;
static PyObject *__pyx_n_s_self;
static PyObject *__pyx_n_s_set;
static PyObject *__pyx_n_s_setText;
static PyObject *__pyx_n_s_setValueParser;
static PyObject *__pyx_n_s_set_default_parser;
static PyObject *__pyx_n_u_set_default_parser;
static PyObject *__pyx_n_s_set_element_class_lookup;
static PyObject *__pyx_n_s_set_pytype_attribute_tag;
static PyObject *__pyx_n_u_set_pytype_attribute_tag;
static PyObject *__pyx_n_s_setattr;
static PyObject *__pyx_n_u_short;
static PyObject *__pyx_n_s_split;
static PyObject *__pyx_kp_s_src_lxml_objectify_pyx;
static PyObject *__pyx_kp_s_src_lxml_objectpath_pxi;
static PyObject *__pyx_n_u_str;
static PyObject *__pyx_n_u_string;
static PyObject *__pyx_n_s_stringify;
static PyObject *__pyx_n_s_strip;
static PyObject *__pyx_n_s_strip_attributes;
static PyObject *__pyx_n_s_strlen;
static PyObject *__pyx_n_s_strval;
static PyObject *__pyx_n_s_tag;
static PyObject *__pyx_n_u_tag;
static PyObject *__pyx_n_s_tag_2;
static PyObject *__pyx_n_u_tail;
static PyObject *__pyx_n_s_temp;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_text;
static PyObject *__pyx_n_u_text;
static PyObject *__pyx_kp_u_to_extended_slice_of_size;
static PyObject *__pyx_n_u_token;
static PyObject *__pyx_n_s_tostring;
static PyObject *__pyx_n_s_tree_class;
static PyObject *__pyx_n_s_true;
static PyObject *__pyx_n_u_true;
static PyObject *__pyx_n_s_type_check;
static PyObject *__pyx_n_s_type_class;
static PyObject *__pyx_n_s_types;
static PyObject *__pyx_kp_s_unicode_escape;
static PyObject *__pyx_n_s_unpickleElementTree;
static PyObject *__pyx_n_s_unregister;
static PyObject *__pyx_n_u_unsignedByte;
static PyObject *__pyx_n_u_unsignedInt;
static PyObject *__pyx_n_u_unsignedLong;
static PyObject *__pyx_n_u_unsignedShort;
static PyObject *__pyx_n_s_update;
static PyObject *__pyx_n_s_value;
static PyObject *__pyx_n_u_value;
static PyObject *__pyx_n_s_value_2;
static PyObject *__pyx_n_s_values;
static PyObject *__pyx_n_s_version;
static PyObject *__pyx_n_s_xml;
static PyObject *__pyx_n_s_xmlSchemaTypes;
static PyObject *__pyx_n_s_xs_type;
static PyObject *__pyx_kp_u_xsd;
static PyObject *__pyx_n_s_xsd_2;
static PyObject *__pyx_kp_u_xsi;
static PyObject *__pyx_n_s_xsi_2;
static PyObject *__pyx_n_s_xsi_3;
static PyObject *__pyx_n_s_xsi_nil;
static PyObject *__pyx_n_s_xsiannotate;
static PyObject *__pyx_n_u_xsiannotate;
static PyObject *__pyx_pf_4lxml_9objectify_set_pytype_attribute_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attribute_tag); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_2__str__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4__reduce__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4text___get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8__dict_____get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_4lxml_9objectify_18ObjectifiedElement_6__len__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8countchildren(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_10getchildren(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_12__getattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_14__setattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_16__delattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_18addattr(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_20__getitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_22__setitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_24__delitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_26descendantpaths(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_prefix); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_2__repr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_4_setText(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self, PyObject *__pyx_v_function); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_2__int__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_4__long__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
#endif
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_6__float__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_8__complex__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_10__str__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_12__repr__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_14__oct__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
#endif
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_16__hex__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
#endif
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_18__richcmp__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /* proto */
static Py_hash_t __pyx_pf_4lxml_9objectify_13NumberElement_20__hash__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_22__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_24__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_26__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_28__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
#endif
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_30__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_32__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_34__pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_36__neg__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_38__pos__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_40__abs__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_9objectify_13NumberElement_42__nonzero__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_44__invert__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_46__lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_48__rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_50__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_52__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_54__xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10IntElement__init(struct __pyx_obj_4lxml_9objectify_IntElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11LongElement__init(struct __pyx_obj_4lxml_9objectify_LongElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_12FloatElement__init(struct __pyx_obj_4lxml_9objectify_FloatElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___repr__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_2strlen(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_9objectify_13StringElement_4__nonzero__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_6__richcmp__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /* proto */
static Py_hash_t __pyx_pf_4lxml_9objectify_13StringElement_8__hash__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_10__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_12__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_14__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_16__int__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_18__long__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
#endif
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_20__float__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_22__complex__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___str__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_2__repr__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_9objectify_11NoneElement_4__nonzero__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_6__richcmp__(struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /* proto */
static Py_hash_t __pyx_pf_4lxml_9objectify_11NoneElement_8__hash__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_5pyval___get__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement__init(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_9objectify_11BoolElement_2__nonzero__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_4__richcmp__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /* proto */
static Py_hash_t __pyx_pf_4lxml_9objectify_11BoolElement_6__hash__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_8__str__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_10__repr__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_2__checkBool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_4__parseBool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */
static int __pyx_pf_4lxml_9objectify_6PyType___init__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_type_check, PyObject *__pyx_v_type_class, PyObject *__pyx_v_stringify); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_2__repr__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_4register(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_before, PyObject *__pyx_v_after); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_6unregister(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static int __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes_2__set__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_types); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_4name___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_10type_check___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_9stringify___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_6__lower_bool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_8pytypename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10getRegisteredTypes(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__(struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *__pyx_v_self, PyObject *__pyx_v_children, PyObject *__pyx_v_attrib); /* proto */
static int __pyx_pf_4lxml_9objectify_12ElementMaker___init__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_namespace, PyObject *__pyx_v_nsmap, PyObject *__pyx_v_annotate, PyObject *__pyx_v_makeelement); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker_2__getattr__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker_4__call__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_12enable_recursive_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_on); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_14dump(CYTHON_UNUSED PyObject *__pyx_self, struct LxmlElement *__pyx_v_element); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_16__unpickleElementTree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_18pickleReduceElementTree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj); /* proto */
static int __pyx_pf_4lxml_9objectify_27ObjectifyElementClassLookup___init__(struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *__pyx_v_self, PyObject *__pyx_v_tree_class, PyObject *__pyx_v_empty_data_class); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_20pyannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_xsi, PyObject *__pyx_v_empty_pytype); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_22xsiannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_pytype, PyObject *__pyx_v_empty_type); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_24annotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_xsi, PyObject *__pyx_v_empty_pytype, PyObject *__pyx_v_empty_type, PyObject *__pyx_v_annotate_xsi, PyObject *__pyx_v_annotate_pytype); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_26deannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, int __pyx_v_pytype, int __pyx_v_xsi, int __pyx_v_xsi_nil, int __pyx_v_cleanup_namespaces); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_28set_default_parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_new_parser); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_30makeparser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_kw); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_32fromstring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_xml, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_34XML(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_xml, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_36parse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_f, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_38Element(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v__tag, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap, PyObject *__pyx_v__pytype, PyObject *__pyx_v__attributes); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_40DataElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v__value, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap, PyObject *__pyx_v__pytype, PyObject *__pyx_v__xsi, PyObject *__pyx_v__attributes); /* proto */
static int __pyx_pf_4lxml_9objectify_10ObjectPath___init__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, PyObject *__pyx_v_path); /* proto */
static void __pyx_pf_4lxml_9objectify_10ObjectPath_2__dealloc__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_4__str__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_6__call__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v__default); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_8hasattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_10setattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_12addattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_4find___get__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self); /* proto */
static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifiedElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifiedDataElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_NumberElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_IntElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_LongElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_FloatElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_StringElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_NoneElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_BoolElement(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_PyType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify__ObjectifyElementMakerCaller(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_ElementMaker(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifyElementClassLookup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectPath(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyBytes_Type_split = {0, &__pyx_n_s_split, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_get = {0, &__pyx_n_s_get, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items = {0, &__pyx_n_s_items, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values = {0, &__pyx_n_s_values, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyList_Type_remove = {0, &__pyx_n_s_remove, 0, 0, 0};
static __Pyx_CachedCFunction __pyx_umethod_PyUnicode_Type_strip = {0, &__pyx_n_s_strip, 0, 0, 0};
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_neg_1;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_slice__10;
static PyObject *__pyx_slice__41;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__65;
static PyObject *__pyx_tuple__67;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__69;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__71;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__73;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_tuple__75;
static PyObject *__pyx_tuple__76;
static PyObject *__pyx_tuple__77;
static PyObject *__pyx_tuple__78;
static PyObject *__pyx_tuple__79;
static PyObject *__pyx_tuple__80;
static PyObject *__pyx_tuple__81;
static PyObject *__pyx_tuple__82;
static PyObject *__pyx_tuple__83;
static PyObject *__pyx_tuple__84;
static PyObject *__pyx_tuple__85;
static PyObject *__pyx_tuple__86;
static PyObject *__pyx_tuple__87;
static PyObject *__pyx_tuple__88;
static PyObject *__pyx_tuple__89;
static PyObject *__pyx_tuple__90;
static PyObject *__pyx_tuple__91;
static PyObject *__pyx_tuple__92;
static PyObject *__pyx_tuple__93;
static PyObject *__pyx_tuple__94;
static PyObject *__pyx_tuple__95;
static PyObject *__pyx_tuple__96;
static PyObject *__pyx_tuple__97;
static PyObject *__pyx_tuple__98;
static PyObject *__pyx_tuple__99;
static PyObject *__pyx_codeobj__2;
static PyObject *__pyx_codeobj__4;
static PyObject *__pyx_codeobj__5;
static PyObject *__pyx_codeobj__6;
static PyObject *__pyx_codeobj__7;
static PyObject *__pyx_codeobj__8;
static PyObject *__pyx_tuple__100;
static PyObject *__pyx_tuple__101;
static PyObject *__pyx_tuple__102;
static PyObject *__pyx_tuple__103;
static PyObject *__pyx_tuple__104;
static PyObject *__pyx_tuple__105;
static PyObject *__pyx_tuple__106;
static PyObject *__pyx_tuple__107;
static PyObject *__pyx_tuple__108;
static PyObject *__pyx_tuple__109;
static PyObject *__pyx_tuple__110;
static PyObject *__pyx_tuple__111;
static PyObject *__pyx_tuple__112;
static PyObject *__pyx_tuple__113;
static PyObject *__pyx_tuple__114;
static PyObject *__pyx_tuple__115;
static PyObject *__pyx_tuple__116;
static PyObject *__pyx_codeobj__11;
static PyObject *__pyx_codeobj__12;
static PyObject *__pyx_codeobj__13;
static PyObject *__pyx_codeobj__14;
static PyObject *__pyx_codeobj__15;
static PyObject *__pyx_codeobj__16;
static PyObject *__pyx_codeobj__17;
static PyObject *__pyx_codeobj__18;
static PyObject *__pyx_codeobj__19;
static PyObject *__pyx_codeobj__20;
static PyObject *__pyx_codeobj__21;
static PyObject *__pyx_codeobj__23;
static PyObject *__pyx_codeobj__24;
static PyObject *__pyx_codeobj__25;
static PyObject *__pyx_codeobj__26;
static PyObject *__pyx_codeobj__31;
static PyObject *__pyx_codeobj__33;
static PyObject *__pyx_codeobj__34;
static PyObject *__pyx_codeobj__42;
static PyObject *__pyx_codeobj__43;
static PyObject *__pyx_codeobj__46;
static PyObject *__pyx_codeobj__47;
static PyObject *__pyx_codeobj__48;
static PyObject *__pyx_codeobj__50;
static PyObject *__pyx_codeobj__51;
static PyObject *__pyx_codeobj__52;
static PyObject *__pyx_codeobj__53;
static PyObject *__pyx_codeobj__54;
static PyObject *__pyx_codeobj__55;
static PyObject *__pyx_codeobj__56;
static PyObject *__pyx_codeobj__57;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__60;
static PyObject *__pyx_codeobj__61;
/* Late includes */

/* "lxml/objectify.pyx":49
 * # Duplicated from apihelpers.pxi, since dependencies obstruct
 * # including apihelpers.pxi.
 * cdef strrepr(s):             # <<<<<<<<<<<<<<
 *     """Build a representation of strings which we can use in __repr__
 *     methods, e.g. _Element.__repr__().
 */

static PyObject *__pyx_f_4lxml_9objectify_strrepr(PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("strrepr", 0);
  __Pyx_TraceCall("strrepr", __pyx_f[0], 49, 0, __PYX_ERR(0, 49, __pyx_L1_error));

  /* "lxml/objectify.pyx":53
 *     methods, e.g. _Element.__repr__().
 *     """
 *     return s.encode('unicode-escape') if python.IS_PYTHON2 else s             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(53,0,__PYX_ERR(0, 53, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  if ((IS_PYTHON2 != 0)) {
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_s, __pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_s);
    __pyx_t_1 = __pyx_v_s;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":49
 * # Duplicated from apihelpers.pxi, since dependencies obstruct
 * # including apihelpers.pxi.
 * cdef strrepr(s):             # <<<<<<<<<<<<<<
 *     """Build a representation of strings which we can use in __repr__
 *     methods, e.g. _Element.__repr__().
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.strrepr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":56
 * 
 * 
 * cdef object _typename(object t):             # <<<<<<<<<<<<<<
 *     cdef const_char* c_name
 *     c_name = python._fqtypename(t)
 */

static PyObject *__pyx_f_4lxml_9objectify__typename(PyObject *__pyx_v_t) {
  const char *__pyx_v_c_name;
  char *__pyx_v_s;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("_typename", 0);
  __Pyx_TraceCall("_typename", __pyx_f[0], 56, 0, __PYX_ERR(0, 56, __pyx_L1_error));

  /* "lxml/objectify.pyx":58
 * cdef object _typename(object t):
 *     cdef const_char* c_name
 *     c_name = python._fqtypename(t)             # <<<<<<<<<<<<<<
 *     s = cstring_h.strrchr(c_name, c'.')
 *     if s is not NULL:
 */
  __Pyx_TraceLine(58,0,__PYX_ERR(0, 58, __pyx_L1_error))
  __pyx_v_c_name = _fqtypename(__pyx_v_t);

  /* "lxml/objectify.pyx":59
 *     cdef const_char* c_name
 *     c_name = python._fqtypename(t)
 *     s = cstring_h.strrchr(c_name, c'.')             # <<<<<<<<<<<<<<
 *     if s is not NULL:
 *         c_name = s + 1
 */
  __Pyx_TraceLine(59,0,__PYX_ERR(0, 59, __pyx_L1_error))
  __pyx_v_s = strrchr(__pyx_v_c_name, '.');

  /* "lxml/objectify.pyx":60
 *     c_name = python._fqtypename(t)
 *     s = cstring_h.strrchr(c_name, c'.')
 *     if s is not NULL:             # <<<<<<<<<<<<<<
 *         c_name = s + 1
 *     return pyunicode(<const_xmlChar*>c_name)
 */
  __Pyx_TraceLine(60,0,__PYX_ERR(0, 60, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_s != NULL) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":61
 *     s = cstring_h.strrchr(c_name, c'.')
 *     if s is not NULL:
 *         c_name = s + 1             # <<<<<<<<<<<<<<
 *     return pyunicode(<const_xmlChar*>c_name)
 * 
 */
    __Pyx_TraceLine(61,0,__PYX_ERR(0, 61, __pyx_L1_error))
    __pyx_v_c_name = (__pyx_v_s + 1);

    /* "lxml/objectify.pyx":60
 *     c_name = python._fqtypename(t)
 *     s = cstring_h.strrchr(c_name, c'.')
 *     if s is not NULL:             # <<<<<<<<<<<<<<
 *         c_name = s + 1
 *     return pyunicode(<const_xmlChar*>c_name)
 */
  }

  /* "lxml/objectify.pyx":62
 *     if s is not NULL:
 *         c_name = s + 1
 *     return pyunicode(<const_xmlChar*>c_name)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(62,0,__PYX_ERR(0, 62, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = pyunicode(((const xmlChar *)__pyx_v_c_name)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":56
 * 
 * 
 * cdef object _typename(object t):             # <<<<<<<<<<<<<<
 *     cdef const_char* c_name
 *     c_name = python._fqtypename(t)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify._typename", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":78
 * cdef unicode TREE_PYTYPE_NAME = u"TREE"
 * 
 * cdef tuple _unicodeAndUtf8(s):             # <<<<<<<<<<<<<<
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 */

static PyObject *__pyx_f_4lxml_9objectify__unicodeAndUtf8(PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("_unicodeAndUtf8", 0);
  __Pyx_TraceCall("_unicodeAndUtf8", __pyx_f[0], 78, 0, __PYX_ERR(0, 78, __pyx_L1_error));

  /* "lxml/objectify.pyx":79
 * 
 * cdef tuple _unicodeAndUtf8(s):
 *     return (s, python.PyUnicode_AsUTF8String(s))             # <<<<<<<<<<<<<<
 * 
 * def set_pytype_attribute_tag(attribute_tag=None):
 */
  __Pyx_TraceLine(79,0,__PYX_ERR(0, 79, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_s); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_s);
  __Pyx_GIVEREF(__pyx_v_s);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_s);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_r = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":78
 * cdef unicode TREE_PYTYPE_NAME = u"TREE"
 * 
 * cdef tuple _unicodeAndUtf8(s):             # <<<<<<<<<<<<<<
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify._unicodeAndUtf8", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":81
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 * def set_pytype_attribute_tag(attribute_tag=None):             # <<<<<<<<<<<<<<
 *     u"""set_pytype_attribute_tag(attribute_tag=None)
 *     Change name and namespace of the XML attribute that holds Python type
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_1set_pytype_attribute_tag(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_set_pytype_attribute_tag[] = "set_pytype_attribute_tag(attribute_tag=None)\n    Change name and namespace of the XML attribute that holds Python type\n    information.\n\n    Do not use this unless you know what you are doing.\n\n    Reset by calling without argument.\n\n    Default: \"{http://codespeak.net/lxml/objectify/pytype}pytype\"\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_1set_pytype_attribute_tag = {"set_pytype_attribute_tag", (PyCFunction)__pyx_pw_4lxml_9objectify_1set_pytype_attribute_tag, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_set_pytype_attribute_tag};
static PyObject *__pyx_pw_4lxml_9objectify_1set_pytype_attribute_tag(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_attribute_tag = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_pytype_attribute_tag (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_attribute_tag,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_attribute_tag);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_pytype_attribute_tag") < 0)) __PYX_ERR(0, 81, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_attribute_tag = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_pytype_attribute_tag", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 81, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.set_pytype_attribute_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_set_pytype_attribute_tag(__pyx_self, __pyx_v_attribute_tag);

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

static PyObject *__pyx_pf_4lxml_9objectify_set_pytype_attribute_tag(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_attribute_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  const xmlChar *__pyx_t_6;
  __Pyx_TraceFrameInit(__pyx_codeobj__2)
  __Pyx_RefNannySetupContext("set_pytype_attribute_tag", 0);
  __Pyx_TraceCall("set_pytype_attribute_tag", __pyx_f[0], 81, 0, __PYX_ERR(0, 81, __pyx_L1_error));

  /* "lxml/objectify.pyx":95
 *     global PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8
 *     global PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8
 *     if attribute_tag is None:             # <<<<<<<<<<<<<<
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
 */
  __Pyx_TraceLine(95,0,__PYX_ERR(0, 95, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_attribute_tag == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":97
 *     if attribute_tag is None:
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")             # <<<<<<<<<<<<<<
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 *             _unicodeAndUtf8(u"pytype")
 */
    __Pyx_TraceLine(97,0,__PYX_ERR(0, 97, __pyx_L1_error))
    __pyx_t_3 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(__pyx_kp_u_http_codespeak_net_lxml_objectif); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(__pyx_t_3 != Py_None)) {
      PyObject* sequence = __pyx_t_3;
      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, 96, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 96, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 96, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 96, __pyx_L1_error)
    }

    /* "lxml/objectify.pyx":96
 *     global PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8
 *     if attribute_tag is None:
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \             # <<<<<<<<<<<<<<
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 */
    __Pyx_TraceLine(96,0,__PYX_ERR(0, 96, __pyx_L1_error))
    if (!(likely(PyBytes_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(0, 96, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8, ((PyObject*)__pyx_t_5));
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/objectify.pyx":99
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 *             _unicodeAndUtf8(u"pytype")             # <<<<<<<<<<<<<<
 *     else:
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 */
    __Pyx_TraceLine(99,0,__PYX_ERR(0, 99, __pyx_L1_error))
    __pyx_t_3 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(__pyx_n_u_pytype); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(__pyx_t_3 != Py_None)) {
      PyObject* sequence = __pyx_t_3;
      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, 98, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 98, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 98, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 98, __pyx_L1_error)
    }

    /* "lxml/objectify.pyx":98
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \             # <<<<<<<<<<<<<<
 *             _unicodeAndUtf8(u"pytype")
 *     else:
 */
    __Pyx_TraceLine(98,0,__PYX_ERR(0, 98, __pyx_L1_error))
    if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 98, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8, ((PyObject*)__pyx_t_4));
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":95
 *     global PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8
 *     global PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8
 *     if attribute_tag is None:             # <<<<<<<<<<<<<<
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":101
 *             _unicodeAndUtf8(u"pytype")
 *     else:
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \             # <<<<<<<<<<<<<<
 *             cetree.getNsTag(attribute_tag)
 *         PYTYPE_NAMESPACE = PYTYPE_NAMESPACE_UTF8.decode('utf8')
 */
  __Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error))
  /*else*/ {

    /* "lxml/objectify.pyx":102
 *     else:
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 *             cetree.getNsTag(attribute_tag)             # <<<<<<<<<<<<<<
 *         PYTYPE_NAMESPACE = PYTYPE_NAMESPACE_UTF8.decode('utf8')
 *         PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8.decode('utf8')
 */
    __Pyx_TraceLine(102,0,__PYX_ERR(0, 102, __pyx_L1_error))
    __pyx_t_3 = getNsTag(__pyx_v_attribute_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (likely(__pyx_t_3 != Py_None)) {
      PyObject* sequence = __pyx_t_3;
      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, 101, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 101, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 101, __pyx_L1_error)
    }

    /* "lxml/objectify.pyx":101
 *             _unicodeAndUtf8(u"pytype")
 *     else:
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \             # <<<<<<<<<<<<<<
 *             cetree.getNsTag(attribute_tag)
 *         PYTYPE_NAMESPACE = PYTYPE_NAMESPACE_UTF8.decode('utf8')
 */
    __Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error))
    if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 101, __pyx_L1_error)
    if (!(likely(PyBytes_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(0, 101, __pyx_L1_error)
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8, ((PyObject*)__pyx_t_4));
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8, ((PyObject*)__pyx_t_5));
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/objectify.pyx":103
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
 *             cetree.getNsTag(attribute_tag)
 *         PYTYPE_NAMESPACE = PYTYPE_NAMESPACE_UTF8.decode('utf8')             # <<<<<<<<<<<<<<
 *         PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8.decode('utf8')
 * 
 */
    __Pyx_TraceLine(103,0,__PYX_ERR(0, 103, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
      __PYX_ERR(0, 103, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":104
 *             cetree.getNsTag(attribute_tag)
 *         PYTYPE_NAMESPACE = PYTYPE_NAMESPACE_UTF8.decode('utf8')
 *         PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8.decode('utf8')             # <<<<<<<<<<<<<<
 * 
 *     _PYTYPE_NAMESPACE      = PYTYPE_NAMESPACE_UTF8
 */
    __Pyx_TraceLine(104,0,__PYX_ERR(0, 104, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
      __PYX_ERR(0, 104, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_decode_bytes(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":106
 *         PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8.decode('utf8')
 * 
 *     _PYTYPE_NAMESPACE      = PYTYPE_NAMESPACE_UTF8             # <<<<<<<<<<<<<<
 *     _PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8
 *     PYTYPE_ATTRIBUTE = cetree.namespacedNameFromNsName(
 */
  __Pyx_TraceLine(106,0,__PYX_ERR(0, 106, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 106, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyBytes_AsUString(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 106, __pyx_L1_error)
  __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE = __pyx_t_6;

  /* "lxml/objectify.pyx":107
 * 
 *     _PYTYPE_NAMESPACE      = PYTYPE_NAMESPACE_UTF8
 *     _PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8             # <<<<<<<<<<<<<<
 *     PYTYPE_ATTRIBUTE = cetree.namespacedNameFromNsName(
 *         _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 */
  __Pyx_TraceLine(107,0,__PYX_ERR(0, 107, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 107, __pyx_L1_error)
  }
  __pyx_t_6 = __Pyx_PyBytes_AsUString(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 107, __pyx_L1_error)
  __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME = __pyx_t_6;

  /* "lxml/objectify.pyx":108
 *     _PYTYPE_NAMESPACE      = PYTYPE_NAMESPACE_UTF8
 *     _PYTYPE_ATTRIBUTE_NAME = PYTYPE_ATTRIBUTE_NAME_UTF8
 *     PYTYPE_ATTRIBUTE = cetree.namespacedNameFromNsName(             # <<<<<<<<<<<<<<
 *         _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 * 
 */
  __Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error))
  __pyx_t_3 = namespacedNameFromNsName(__pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PYTYPE_ATTRIBUTE, __pyx_t_3) < 0) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":81
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 * def set_pytype_attribute_tag(attribute_tag=None):             # <<<<<<<<<<<<<<
 *     u"""set_pytype_attribute_tag(attribute_tag=None)
 *     Change name and namespace of the XML attribute that holds Python type
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.set_pytype_attribute_tag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":146
 *     subclasses.
 *     """
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         u"""Iterate over self and all siblings with the same tag.
 *         """
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__(PyObject *__pyx_v_self); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement___iter__[] = "Iterate over self and all siblings with the same tag.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement___iter__;
#endif
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  PyObject *__pyx_v_parent = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__iter__", 0);
  __Pyx_TraceCall("__iter__", __pyx_f[0], 146, 0, __PYX_ERR(0, 146, __pyx_L1_error));

  /* "lxml/objectify.pyx":149
 *         u"""Iterate over self and all siblings with the same tag.
 *         """
 *         parent = self.getparent()             # <<<<<<<<<<<<<<
 *         if parent is None:
 *             return iter([self])
 */
  __Pyx_TraceLine(149,0,__PYX_ERR(0, 149, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getparent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_parent = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":150
 *         """
 *         parent = self.getparent()
 *         if parent is None:             # <<<<<<<<<<<<<<
 *             return iter([self])
 *         return etree.ElementChildIterator(parent, tag=self.tag)
 */
  __Pyx_TraceLine(150,0,__PYX_ERR(0, 150, __pyx_L1_error))
  __pyx_t_4 = (__pyx_v_parent == Py_None);
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (__pyx_t_5) {

    /* "lxml/objectify.pyx":151
 *         parent = self.getparent()
 *         if parent is None:
 *             return iter([self])             # <<<<<<<<<<<<<<
 *         return etree.ElementChildIterator(parent, tag=self.tag)
 * 
 */
    __Pyx_TraceLine(151,0,__PYX_ERR(0, 151, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
    PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
    __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __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;

    /* "lxml/objectify.pyx":150
 *         """
 *         parent = self.getparent()
 *         if parent is None:             # <<<<<<<<<<<<<<
 *             return iter([self])
 *         return etree.ElementChildIterator(parent, tag=self.tag)
 */
  }

  /* "lxml/objectify.pyx":152
 *         if parent is None:
 *             return iter([self])
 *         return etree.ElementChildIterator(parent, tag=self.tag)             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_TraceLine(152,0,__PYX_ERR(0, 152, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_ElementChildIterator); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_parent);
  __Pyx_GIVEREF(__pyx_v_parent);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_parent);
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tag); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_tag, __pyx_t_6) < 0) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 152, __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_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":146
 *     subclasses.
 *     """
 *     def __iter__(self):             # <<<<<<<<<<<<<<
 *         u"""Iterate over self and all siblings with the same tag.
 *         """
 */

  /* 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_6);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parent);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":154
 *         return etree.ElementChildIterator(parent, tag=self.tag)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         if __RECURSIVE_STR:
 *             return _dump(self, 0)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_3__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_3__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_2__str__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_2__str__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[0], 154, 0, __PYX_ERR(0, 154, __pyx_L1_error));

  /* "lxml/objectify.pyx":155
 * 
 *     def __str__(self):
 *         if __RECURSIVE_STR:             # <<<<<<<<<<<<<<
 *             return _dump(self, 0)
 *         else:
 */
  __Pyx_TraceLine(155,0,__PYX_ERR(0, 155, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_4lxml_9objectify___RECURSIVE_STR != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":156
 *     def __str__(self):
 *         if __RECURSIVE_STR:
 *             return _dump(self, 0)             # <<<<<<<<<<<<<<
 *         else:
 *             return textOf(self._c_node) or u''
 */
    __Pyx_TraceLine(156,0,__PYX_ERR(0, 156, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_self), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":155
 * 
 *     def __str__(self):
 *         if __RECURSIVE_STR:             # <<<<<<<<<<<<<<
 *             return _dump(self, 0)
 *         else:
 */
  }

  /* "lxml/objectify.pyx":158
 *             return _dump(self, 0)
 *         else:
 *             return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
 * 
 *     # pickle support for objectified Element
 */
  __Pyx_TraceLine(158,0,__PYX_ERR(0, 158, __pyx_L1_error))
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = textOf(__pyx_v_self->__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 158, __pyx_L1_error)
    if (!__pyx_t_1) {
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      __Pyx_INCREF(__pyx_t_3);
      __pyx_t_2 = __pyx_t_3;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4_bool_binop_done;
    }
    __Pyx_INCREF(__pyx_kp_u__3);
    __pyx_t_2 = __pyx_kp_u__3;
    __pyx_L4_bool_binop_done:;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "lxml/objectify.pyx":154
 *         return etree.ElementChildIterator(parent, tag=self.tag)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         if __RECURSIVE_STR:
 *             return _dump(self, 0)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":161
 * 
 *     # pickle support for objectified Element
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         return (fromstring, (etree.tostring(self),))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_5__reduce__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_18ObjectifiedElement_5__reduce__ = {"__reduce__", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_5__reduce__, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_5__reduce__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_4__reduce__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4__reduce__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  __Pyx_TraceFrameInit(__pyx_codeobj__4)
  __Pyx_RefNannySetupContext("__reduce__", 0);
  __Pyx_TraceCall("__reduce__", __pyx_f[0], 161, 0, __PYX_ERR(0, 161, __pyx_L1_error));

  /* "lxml/objectify.pyx":162
 *     # pickle support for objectified Element
 *     def __reduce__(self):
 *         return (fromstring, (etree.tostring(self),))             # <<<<<<<<<<<<<<
 * 
 *     property text:
 */
  __Pyx_TraceLine(162,0,__PYX_ERR(0, 162, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_fromstring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_tostring); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  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);
    }
  }
  if (!__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_self)};
      __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_self)};
      __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 162, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
      __Pyx_INCREF(((PyObject *)__pyx_v_self));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_self));
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 162, __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;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":161
 * 
 *     # pickle support for objectified Element
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         return (fromstring, (etree.tostring(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_5);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__reduce__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":165
 * 
 *     property text:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_4text_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_4text_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_4text___get__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4text___get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 165, 0, __PYX_ERR(0, 165, __pyx_L1_error));

  /* "lxml/objectify.pyx":166
 *     property text:
 *         def __get__(self):
 *             return textOf(self._c_node)             # <<<<<<<<<<<<<<
 * 
 *     property __dict__:
 */
  __Pyx_TraceLine(166,0,__PYX_ERR(0, 166, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base._c_node); 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;

  /* "lxml/objectify.pyx":165
 * 
 *     property text:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.text.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":173
 *         Note that this only considers the first child with a given name.
 *         """
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             cdef _Element child
 *             cdef dict children
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_8__dict___1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_8__dict___1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_8__dict_____get__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8__dict_____get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  struct LxmlElement *__pyx_v_child = 0;
  PyObject *__pyx_v_children = 0;
  const xmlChar *__pyx_v_c_ns;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  int __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 173, 0, __PYX_ERR(0, 173, __pyx_L1_error));

  /* "lxml/objectify.pyx":176
 *             cdef _Element child
 *             cdef dict children
 *             c_ns = tree._getNs(self._c_node)             # <<<<<<<<<<<<<<
 *             tag = u"{%s}*" % pyunicode(c_ns) if c_ns is not NULL else None
 *             children = {}
 */
  __Pyx_TraceLine(176,0,__PYX_ERR(0, 176, __pyx_L1_error))
  __pyx_v_c_ns = _getNs(__pyx_v_self->__pyx_base.__pyx_base._c_node);

  /* "lxml/objectify.pyx":177
 *             cdef dict children
 *             c_ns = tree._getNs(self._c_node)
 *             tag = u"{%s}*" % pyunicode(c_ns) if c_ns is not NULL else None             # <<<<<<<<<<<<<<
 *             children = {}
 *             for child in etree.ElementChildIterator(self, tag=tag):
 */
  __Pyx_TraceLine(177,0,__PYX_ERR(0, 177, __pyx_L1_error))
  if (((__pyx_v_c_ns != NULL) != 0)) {
    __pyx_t_2 = pyunicode(__pyx_v_c_ns); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_s, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(Py_None);
    __pyx_t_1 = Py_None;
  }
  __pyx_v_tag = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":178
 *             c_ns = tree._getNs(self._c_node)
 *             tag = u"{%s}*" % pyunicode(c_ns) if c_ns is not NULL else None
 *             children = {}             # <<<<<<<<<<<<<<
 *             for child in etree.ElementChildIterator(self, tag=tag):
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
 */
  __Pyx_TraceLine(178,0,__PYX_ERR(0, 178, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_children = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":179
 *             tag = u"{%s}*" % pyunicode(c_ns) if c_ns is not NULL else None
 *             children = {}
 *             for child in etree.ElementChildIterator(self, tag=tag):             # <<<<<<<<<<<<<<
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
 *                     continue
 */
  __Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_ElementChildIterator); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_v_self));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self));
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_tag, __pyx_v_tag) < 0) __PYX_ERR(0, 179, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __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;
  if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
    __pyx_t_2 = __pyx_t_4; __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_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 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_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_4); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 179, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_5 >= 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_5); __Pyx_INCREF(__pyx_t_4); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 179, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_6(__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, 179, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 179, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_child, ((struct LxmlElement *)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":180
 *             children = {}
 *             for child in etree.ElementChildIterator(self, tag=tag):
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:             # <<<<<<<<<<<<<<
 *                     continue
 *                 name = pyunicode(child._c_node.name)
 */
    __Pyx_TraceLine(180,0,__PYX_ERR(0, 180, __pyx_L1_error))
    __pyx_t_8 = ((__pyx_v_c_ns == NULL) != 0);
    if (__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_8 = ((_getNs(__pyx_v_child->_c_node) != NULL) != 0);
    __pyx_t_7 = __pyx_t_8;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_7) {

      /* "lxml/objectify.pyx":181
 *             for child in etree.ElementChildIterator(self, tag=tag):
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
 *                     continue             # <<<<<<<<<<<<<<
 *                 name = pyunicode(child._c_node.name)
 *                 if name not in children:
 */
      __Pyx_TraceLine(181,0,__PYX_ERR(0, 181, __pyx_L1_error))
      goto __pyx_L3_continue;

      /* "lxml/objectify.pyx":180
 *             children = {}
 *             for child in etree.ElementChildIterator(self, tag=tag):
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:             # <<<<<<<<<<<<<<
 *                     continue
 *                 name = pyunicode(child._c_node.name)
 */
    }

    /* "lxml/objectify.pyx":182
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
 *                     continue
 *                 name = pyunicode(child._c_node.name)             # <<<<<<<<<<<<<<
 *                 if name not in children:
 *                     children[name] = child
 */
    __Pyx_TraceLine(182,0,__PYX_ERR(0, 182, __pyx_L1_error))
    __pyx_t_4 = pyunicode(__pyx_v_child->_c_node->name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":183
 *                     continue
 *                 name = pyunicode(child._c_node.name)
 *                 if name not in children:             # <<<<<<<<<<<<<<
 *                     children[name] = child
 *             return children
 */
    __Pyx_TraceLine(183,0,__PYX_ERR(0, 183, __pyx_L1_error))
    __pyx_t_7 = (__Pyx_PyDict_ContainsTF(__pyx_v_name, __pyx_v_children, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 183, __pyx_L1_error)
    __pyx_t_8 = (__pyx_t_7 != 0);
    if (__pyx_t_8) {

      /* "lxml/objectify.pyx":184
 *                 name = pyunicode(child._c_node.name)
 *                 if name not in children:
 *                     children[name] = child             # <<<<<<<<<<<<<<
 *             return children
 * 
 */
      __Pyx_TraceLine(184,0,__PYX_ERR(0, 184, __pyx_L1_error))
      if (unlikely(PyDict_SetItem(__pyx_v_children, __pyx_v_name, ((PyObject *)__pyx_v_child)) < 0)) __PYX_ERR(0, 184, __pyx_L1_error)

      /* "lxml/objectify.pyx":183
 *                     continue
 *                 name = pyunicode(child._c_node.name)
 *                 if name not in children:             # <<<<<<<<<<<<<<
 *                     children[name] = child
 *             return children
 */
    }

    /* "lxml/objectify.pyx":179
 *             tag = u"{%s}*" % pyunicode(c_ns) if c_ns is not NULL else None
 *             children = {}
 *             for child in etree.ElementChildIterator(self, tag=tag):             # <<<<<<<<<<<<<<
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
 *                     continue
 */
    __Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L1_error))
    __pyx_L3_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":185
 *                 if name not in children:
 *                     children[name] = child
 *             return children             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_TraceLine(185,0,__PYX_ERR(0, 185, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_children);
  __pyx_r = __pyx_v_children;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":173
 *         Note that this only considers the first child with a given name.
 *         """
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             cdef _Element child
 *             cdef dict children
 */

  /* 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("lxml.objectify.ObjectifiedElement.__dict__.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_child);
  __Pyx_XDECREF(__pyx_v_children);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":187
 *             return children
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         u"""Count self and siblings with the same tag.
 *         """
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_4lxml_9objectify_18ObjectifiedElement_7__len__(PyObject *__pyx_v_self); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_6__len__[] = "Count self and siblings with the same tag.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_6__len__;
#endif
static Py_ssize_t __pyx_pw_4lxml_9objectify_18ObjectifiedElement_7__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_6__len__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static Py_ssize_t __pyx_pf_4lxml_9objectify_18ObjectifiedElement_6__len__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);
  __Pyx_TraceCall("__len__", __pyx_f[0], 187, 0, __PYX_ERR(0, 187, __pyx_L1_error));

  /* "lxml/objectify.pyx":190
 *         u"""Count self and siblings with the same tag.
 *         """
 *         return _countSiblings(self._c_node)             # <<<<<<<<<<<<<<
 * 
 *     def countchildren(self):
 */
  __Pyx_TraceLine(190,0,__PYX_ERR(0, 190, __pyx_L1_error))
  __pyx_r = __pyx_f_4lxml_9objectify__countSiblings(__pyx_v_self->__pyx_base.__pyx_base._c_node);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":187
 *             return children
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         u"""Count self and siblings with the same tag.
 *         """
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":192
 *         return _countSiblings(self._c_node)
 * 
 *     def countchildren(self):             # <<<<<<<<<<<<<<
 *         u"""countchildren(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_9countchildren(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_8countchildren[] = "countchildren(self)\n\n        Return the number of children of this element, regardless of their\n        name.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_18ObjectifiedElement_9countchildren = {"countchildren", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_9countchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_8countchildren};
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_9countchildren(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("countchildren (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_8countchildren(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8countchildren(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  Py_ssize_t __pyx_v_c;
  xmlNode *__pyx_v_c_node;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  xmlNode *__pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__5)
  __Pyx_RefNannySetupContext("countchildren", 0);
  __Pyx_TraceCall("countchildren", __pyx_f[0], 192, 0, __PYX_ERR(0, 192, __pyx_L1_error));

  /* "lxml/objectify.pyx":201
 *         cdef Py_ssize_t c
 *         cdef tree.xmlNode* c_node
 *         c = 0             # <<<<<<<<<<<<<<
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 */
  __Pyx_TraceLine(201,0,__PYX_ERR(0, 201, __pyx_L1_error))
  __pyx_v_c = 0;

  /* "lxml/objectify.pyx":202
 *         cdef tree.xmlNode* c_node
 *         c = 0
 *         c_node = self._c_node.children             # <<<<<<<<<<<<<<
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):
 */
  __Pyx_TraceLine(202,0,__PYX_ERR(0, 202, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_self->__pyx_base.__pyx_base._c_node->children;
  __pyx_v_c_node = __pyx_t_1;

  /* "lxml/objectify.pyx":203
 *         c = 0
 *         c_node = self._c_node.children
 *         while c_node is not NULL:             # <<<<<<<<<<<<<<
 *             if tree._isElement(c_node):
 *                 c += 1
 */
  __Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error))
  while (1) {
    __pyx_t_2 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_2) break;

    /* "lxml/objectify.pyx":204
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
 *                 c += 1
 *             c_node = c_node.next
 */
    __Pyx_TraceLine(204,0,__PYX_ERR(0, 204, __pyx_L1_error))
    __pyx_t_2 = (_isElement(__pyx_v_c_node) != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":205
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):
 *                 c += 1             # <<<<<<<<<<<<<<
 *             c_node = c_node.next
 *         return c
 */
      __Pyx_TraceLine(205,0,__PYX_ERR(0, 205, __pyx_L1_error))
      __pyx_v_c = (__pyx_v_c + 1);

      /* "lxml/objectify.pyx":204
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
 *                 c += 1
 *             c_node = c_node.next
 */
    }

    /* "lxml/objectify.pyx":206
 *             if tree._isElement(c_node):
 *                 c += 1
 *             c_node = c_node.next             # <<<<<<<<<<<<<<
 *         return c
 * 
 */
    __Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L1_error))
    __pyx_t_1 = __pyx_v_c_node->next;
    __pyx_v_c_node = __pyx_t_1;
  }

  /* "lxml/objectify.pyx":207
 *                 c += 1
 *             c_node = c_node.next
 *         return c             # <<<<<<<<<<<<<<
 * 
 *     def getchildren(self):
 */
  __Pyx_TraceLine(207,0,__PYX_ERR(0, 207, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_c); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":192
 *         return _countSiblings(self._c_node)
 * 
 *     def countchildren(self):             # <<<<<<<<<<<<<<
 *         u"""countchildren(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.countchildren", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":209
 *         return c
 * 
 *     def getchildren(self):             # <<<<<<<<<<<<<<
 *         u"""getchildren(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_11getchildren(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_10getchildren[] = "getchildren(self)\n\n        Returns a sequence of all direct children.  The elements are\n        returned in document order.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_18ObjectifiedElement_11getchildren = {"getchildren", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_11getchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_10getchildren};
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_11getchildren(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getchildren (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_10getchildren(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_10getchildren(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self) {
  xmlNode *__pyx_v_c_node;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  xmlNode *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __Pyx_TraceFrameInit(__pyx_codeobj__6)
  __Pyx_RefNannySetupContext("getchildren", 0);
  __Pyx_TraceCall("getchildren", __pyx_f[0], 209, 0, __PYX_ERR(0, 209, __pyx_L1_error));

  /* "lxml/objectify.pyx":216
 *         """
 *         cdef tree.xmlNode* c_node
 *         result = []             # <<<<<<<<<<<<<<
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 */
  __Pyx_TraceLine(216,0,__PYX_ERR(0, 216, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":217
 *         cdef tree.xmlNode* c_node
 *         result = []
 *         c_node = self._c_node.children             # <<<<<<<<<<<<<<
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):
 */
  __Pyx_TraceLine(217,0,__PYX_ERR(0, 217, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_self->__pyx_base.__pyx_base._c_node->children;
  __pyx_v_c_node = __pyx_t_2;

  /* "lxml/objectify.pyx":218
 *         result = []
 *         c_node = self._c_node.children
 *         while c_node is not NULL:             # <<<<<<<<<<<<<<
 *             if tree._isElement(c_node):
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 */
  __Pyx_TraceLine(218,0,__PYX_ERR(0, 218, __pyx_L1_error))
  while (1) {
    __pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_3) break;

    /* "lxml/objectify.pyx":219
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 *             c_node = c_node.next
 */
    __Pyx_TraceLine(219,0,__PYX_ERR(0, 219, __pyx_L1_error))
    __pyx_t_3 = (_isElement(__pyx_v_c_node) != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":220
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):
 *                 result.append(cetree.elementFactory(self._doc, c_node))             # <<<<<<<<<<<<<<
 *             c_node = c_node.next
 *         return result
 */
      __Pyx_TraceLine(220,0,__PYX_ERR(0, 220, __pyx_L1_error))
      __pyx_t_1 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base._doc);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_4 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_1), __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 220, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 220, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":219
 *         c_node = self._c_node.children
 *         while c_node is not NULL:
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 *             c_node = c_node.next
 */
    }

    /* "lxml/objectify.pyx":221
 *             if tree._isElement(c_node):
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 *             c_node = c_node.next             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
    __Pyx_TraceLine(221,0,__PYX_ERR(0, 221, __pyx_L1_error))
    __pyx_t_2 = __pyx_v_c_node->next;
    __pyx_v_c_node = __pyx_t_2;
  }

  /* "lxml/objectify.pyx":222
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 *             c_node = c_node.next
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, tag):
 */
  __Pyx_TraceLine(222,0,__PYX_ERR(0, 222, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":209
 *         return c
 * 
 *     def getchildren(self):             # <<<<<<<<<<<<<<
 *         u"""getchildren(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.getchildren", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":224
 *         return result
 * 
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
 *         u"""Return the (first) child with the given tag name.  If no namespace
 *         is provided, the child will be looked up in the same one as self.
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_13__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_12__getattr__[] = "Return the (first) child with the given tag name.  If no namespace\n        is provided, the child will be looked up in the same one as self.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_12__getattr__;
#endif
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_13__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_12__getattr__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_tag));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_12__getattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  __Pyx_RefNannySetupContext("__getattr__", 0);
  __Pyx_TraceCall("__getattr__", __pyx_f[0], 224, 0, __PYX_ERR(0, 224, __pyx_L1_error));

  /* "lxml/objectify.pyx":228
 *         is provided, the child will be looked up in the same one as self.
 *         """
 *         if is_special_method(tag):             # <<<<<<<<<<<<<<
 *             return object.__getattr__(self, tag)
 *         return _lookupChildOrRaise(self, tag)
 */
  __Pyx_TraceLine(228,0,__PYX_ERR(0, 228, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_4lxml_9objectify_is_special_method);
  __pyx_t_2 = __pyx_v_4lxml_9objectify_is_special_method; __pyx_t_3 = NULL;
  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);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_tag};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_tag};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 228, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_tag);
      __Pyx_GIVEREF(__pyx_v_tag);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_tag);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __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;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_5) {

    /* "lxml/objectify.pyx":229
 *         """
 *         if is_special_method(tag):
 *             return object.__getattr__(self, tag)             # <<<<<<<<<<<<<<
 *         return _lookupChildOrRaise(self, tag)
 * 
 */
    __Pyx_TraceLine(229,0,__PYX_ERR(0, 229, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_object, __pyx_n_s_getattr); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = NULL;
    __pyx_t_6 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
        __pyx_t_6 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[3] = {__pyx_t_4, ((PyObject *)__pyx_v_self), __pyx_v_tag};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[3] = {__pyx_t_4, ((PyObject *)__pyx_v_self), __pyx_v_tag};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_3 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 229, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__pyx_t_4) {
        __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); __pyx_t_4 = NULL;
      }
      __Pyx_INCREF(((PyObject *)__pyx_v_self));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
      PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, ((PyObject *)__pyx_v_self));
      __Pyx_INCREF(__pyx_v_tag);
      __Pyx_GIVEREF(__pyx_v_tag);
      PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_v_tag);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 229, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":228
 *         is provided, the child will be looked up in the same one as self.
 *         """
 *         if is_special_method(tag):             # <<<<<<<<<<<<<<
 *             return object.__getattr__(self, tag)
 *         return _lookupChildOrRaise(self, tag)
 */
  }

  /* "lxml/objectify.pyx":230
 *         if is_special_method(tag):
 *             return object.__getattr__(self, tag)
 *         return _lookupChildOrRaise(self, tag)             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, tag, value):
 */
  __Pyx_TraceLine(230,0,__PYX_ERR(0, 230, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":224
 *         return result
 * 
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
 *         u"""Return the (first) child with the given tag name.  If no namespace
 *         is provided, the child will be looked up in the same one as 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("lxml.objectify.ObjectifiedElement.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":232
 *         return _lookupChildOrRaise(self, tag)
 * 
 *     def __setattr__(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""Set the value of the (first) child with the given tag name.  If no
 *         namespace is provided, the child will be looked up in the same one as
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_15__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_14__setattr__[] = "Set the value of the (first) child with the given tag name.  If no\n        namespace is provided, the child will be looked up in the same one as\n        self.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_14__setattr__;
#endif
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_15__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_14__setattr__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_tag), ((PyObject *)__pyx_v_value));

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

static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_14__setattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
  struct LxmlElement *__pyx_v_element = 0;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  Py_UCS4 __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("__setattr__", 0);
  __Pyx_TraceCall("__setattr__", __pyx_f[0], 232, 0, __PYX_ERR(0, 232, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_tag);

  /* "lxml/objectify.pyx":239
 *         cdef _Element element
 *         # properties are looked up /after/ __setattr__, so we must emulate them
 *         if tag == u'text' or tag == u'pyval':             # <<<<<<<<<<<<<<
 *             # read-only !
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"
 */
  __Pyx_TraceLine(239,0,__PYX_ERR(0, 239, __pyx_L1_error))
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_tag, __pyx_n_u_text, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 239, __pyx_L1_error)
  if (!__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_tag, __pyx_n_u_pyval, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 239, __pyx_L1_error)
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":241
 *         if tag == u'text' or tag == u'pyval':
 *             # read-only !
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"             # <<<<<<<<<<<<<<
 *         elif tag == u'tail':
 *             cetree.setTailText(self._c_node, value)
 */
    __Pyx_TraceLine(241,0,__PYX_ERR(0, 241, __pyx_L1_error))
    __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_5 = 127;
    __Pyx_INCREF(__pyx_kp_u_attribute);
    __pyx_t_4 += 11;
    __Pyx_GIVEREF(__pyx_kp_u_attribute);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_attribute);
    __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_v_tag, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_5;
    __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_INCREF(__pyx_kp_u_of);
    __pyx_t_4 += 6;
    __Pyx_GIVEREF(__pyx_kp_u_of);
    PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_of);
    __pyx_t_6 = __pyx_f_4lxml_9objectify__typename(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5;
    __pyx_t_4 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_kp_u_objects_is_not_writable);
    __pyx_t_4 += 25;
    __Pyx_GIVEREF(__pyx_kp_u_objects_is_not_writable);
    PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_kp_u_objects_is_not_writable);
    __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_3, 5, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_7, 0, 0);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __PYX_ERR(0, 241, __pyx_L1_error)

    /* "lxml/objectify.pyx":239
 *         cdef _Element element
 *         # properties are looked up /after/ __setattr__, so we must emulate them
 *         if tag == u'text' or tag == u'pyval':             # <<<<<<<<<<<<<<
 *             # read-only !
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"
 */
  }

  /* "lxml/objectify.pyx":242
 *             # read-only !
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"
 *         elif tag == u'tail':             # <<<<<<<<<<<<<<
 *             cetree.setTailText(self._c_node, value)
 *             return
 */
  __Pyx_TraceLine(242,0,__PYX_ERR(0, 242, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_tag, __pyx_n_u_tail, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 242, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":243
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"
 *         elif tag == u'tail':
 *             cetree.setTailText(self._c_node, value)             # <<<<<<<<<<<<<<
 *             return
 *         elif tag == u'tag':
 */
    __Pyx_TraceLine(243,0,__PYX_ERR(0, 243, __pyx_L1_error))
    __pyx_t_8 = setTailText(__pyx_v_self->__pyx_base.__pyx_base._c_node, __pyx_v_value); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 243, __pyx_L1_error)

    /* "lxml/objectify.pyx":244
 *         elif tag == u'tail':
 *             cetree.setTailText(self._c_node, value)
 *             return             # <<<<<<<<<<<<<<
 *         elif tag == u'tag':
 *             ElementBase.tag.__set__(self, value)
 */
    __Pyx_TraceLine(244,0,__PYX_ERR(0, 244, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":242
 *             # read-only !
 *             raise TypeError, f"attribute '{tag}' of '{_typename(self)}' objects is not writable"
 *         elif tag == u'tail':             # <<<<<<<<<<<<<<
 *             cetree.setTailText(self._c_node, value)
 *             return
 */
  }

  /* "lxml/objectify.pyx":245
 *             cetree.setTailText(self._c_node, value)
 *             return
 *         elif tag == u'tag':             # <<<<<<<<<<<<<<
 *             ElementBase.tag.__set__(self, value)
 *             return
 */
  __Pyx_TraceLine(245,0,__PYX_ERR(0, 245, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_tag, __pyx_n_u_tag, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 245, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":246
 *             return
 *         elif tag == u'tag':
 *             ElementBase.tag.__set__(self, value)             # <<<<<<<<<<<<<<
 *             return
 *         elif tag == u'base':
 */
    __Pyx_TraceLine(246,0,__PYX_ERR(0, 246, __pyx_L1_error))
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase), __pyx_n_s_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_set); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    __pyx_t_8 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
        __pyx_t_8 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_6)) {
      PyObject *__pyx_temp[3] = {__pyx_t_3, ((PyObject *)__pyx_v_self), __pyx_v_value};
      __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_7);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
      PyObject *__pyx_temp[3] = {__pyx_t_3, ((PyObject *)__pyx_v_self), __pyx_v_value};
      __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_7);
    } else
    #endif
    {
      __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 246, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      if (__pyx_t_3) {
        __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); __pyx_t_3 = NULL;
      }
      __Pyx_INCREF(((PyObject *)__pyx_v_self));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
      PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, ((PyObject *)__pyx_v_self));
      __Pyx_INCREF(__pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_value);
      __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_9, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    }
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":247
 *         elif tag == u'tag':
 *             ElementBase.tag.__set__(self, value)
 *             return             # <<<<<<<<<<<<<<
 *         elif tag == u'base':
 *             ElementBase.base.__set__(self, value)
 */
    __Pyx_TraceLine(247,0,__PYX_ERR(0, 247, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":245
 *             cetree.setTailText(self._c_node, value)
 *             return
 *         elif tag == u'tag':             # <<<<<<<<<<<<<<
 *             ElementBase.tag.__set__(self, value)
 *             return
 */
  }

  /* "lxml/objectify.pyx":248
 *             ElementBase.tag.__set__(self, value)
 *             return
 *         elif tag == u'base':             # <<<<<<<<<<<<<<
 *             ElementBase.base.__set__(self, value)
 *             return
 */
  __Pyx_TraceLine(248,0,__PYX_ERR(0, 248, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_tag, __pyx_n_u_base, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 248, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":249
 *             return
 *         elif tag == u'base':
 *             ElementBase.base.__set__(self, value)             # <<<<<<<<<<<<<<
 *             return
 *         tag = _buildChildTag(self, tag)
 */
    __Pyx_TraceLine(249,0,__PYX_ERR(0, 249, __pyx_L1_error))
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase), __pyx_n_s_base); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_set); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 249, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    __pyx_t_8 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
        __pyx_t_8 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_9)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_value};
      __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_7);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_value};
      __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_7);
    } else
    #endif
    {
      __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_INCREF(((PyObject *)__pyx_v_self));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
      PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, ((PyObject *)__pyx_v_self));
      __Pyx_INCREF(__pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_value);
      __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_3, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 249, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":250
 *         elif tag == u'base':
 *             ElementBase.base.__set__(self, value)
 *             return             # <<<<<<<<<<<<<<
 *         tag = _buildChildTag(self, tag)
 *         element = _lookupChild(self, tag)
 */
    __Pyx_TraceLine(250,0,__PYX_ERR(0, 250, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":248
 *             ElementBase.tag.__set__(self, value)
 *             return
 *         elif tag == u'base':             # <<<<<<<<<<<<<<
 *             ElementBase.base.__set__(self, value)
 *             return
 */
  }

  /* "lxml/objectify.pyx":251
 *             ElementBase.base.__set__(self, value)
 *             return
 *         tag = _buildChildTag(self, tag)             # <<<<<<<<<<<<<<
 *         element = _lookupChild(self, tag)
 *         if element is None:
 */
  __Pyx_TraceLine(251,0,__PYX_ERR(0, 251, __pyx_L1_error))
  __pyx_t_7 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_7);
  __pyx_t_7 = 0;

  /* "lxml/objectify.pyx":252
 *             return
 *         tag = _buildChildTag(self, tag)
 *         element = _lookupChild(self, tag)             # <<<<<<<<<<<<<<
 *         if element is None:
 *             _appendValue(self, tag, value)
 */
  __Pyx_TraceLine(252,0,__PYX_ERR(0, 252, __pyx_L1_error))
  __pyx_t_7 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 252, __pyx_L1_error)
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_7);
  __pyx_t_7 = 0;

  /* "lxml/objectify.pyx":253
 *         tag = _buildChildTag(self, tag)
 *         element = _lookupChild(self, tag)
 *         if element is None:             # <<<<<<<<<<<<<<
 *             _appendValue(self, tag, value)
 *         else:
 */
  __Pyx_TraceLine(253,0,__PYX_ERR(0, 253, __pyx_L1_error))
  __pyx_t_1 = (((PyObject *)__pyx_v_element) == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":254
 *         element = _lookupChild(self, tag)
 *         if element is None:
 *             _appendValue(self, tag, value)             # <<<<<<<<<<<<<<
 *         else:
 *             _replaceElement(element, value)
 */
    __Pyx_TraceLine(254,0,__PYX_ERR(0, 254, __pyx_L1_error))
    __pyx_t_7 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag, __pyx_v_value); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":253
 *         tag = _buildChildTag(self, tag)
 *         element = _lookupChild(self, tag)
 *         if element is None:             # <<<<<<<<<<<<<<
 *             _appendValue(self, tag, value)
 *         else:
 */
    goto __pyx_L6;
  }

  /* "lxml/objectify.pyx":256
 *             _appendValue(self, tag, value)
 *         else:
 *             _replaceElement(element, value)             # <<<<<<<<<<<<<<
 * 
 *     def __delattr__(self, tag):
 */
  __Pyx_TraceLine(256,0,__PYX_ERR(0, 256, __pyx_L1_error))
  /*else*/ {
    __pyx_t_7 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __pyx_L6:;

  /* "lxml/objectify.pyx":232
 *         return _lookupChildOrRaise(self, tag)
 * 
 *     def __setattr__(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""Set the value of the (first) child with the given tag name.  If no
 *         namespace is provided, the child will be looked up in the same one as
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":258
 *             _replaceElement(element, value)
 * 
 *     def __delattr__(self, tag):             # <<<<<<<<<<<<<<
 *         child = _lookupChildOrRaise(self, tag)
 *         self.remove(child)
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_17__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_17__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__delattr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_16__delattr__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_tag));

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

static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_16__delattr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_child = NULL;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__delattr__", 0);
  __Pyx_TraceCall("__delattr__", __pyx_f[0], 258, 0, __PYX_ERR(0, 258, __pyx_L1_error));

  /* "lxml/objectify.pyx":259
 * 
 *     def __delattr__(self, tag):
 *         child = _lookupChildOrRaise(self, tag)             # <<<<<<<<<<<<<<
 *         self.remove(child)
 * 
 */
  __Pyx_TraceLine(259,0,__PYX_ERR(0, 259, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_child = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":260
 *     def __delattr__(self, tag):
 *         child = _lookupChildOrRaise(self, tag)
 *         self.remove(child)             # <<<<<<<<<<<<<<
 * 
 *     def addattr(self, tag, value):
 */
  __Pyx_TraceLine(260,0,__PYX_ERR(0, 260, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_child); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_child};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_child};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 260, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_child);
      __Pyx_GIVEREF(__pyx_v_child);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_v_child);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 260, __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;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":258
 *             _replaceElement(element, value)
 * 
 *     def __delattr__(self, tag):             # <<<<<<<<<<<<<<
 *         child = _lookupChildOrRaise(self, tag)
 *         self.remove(child)
 */

  /* 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_4);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__delattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_child);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":262
 *         self.remove(child)
 * 
 *     def addattr(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, tag, value)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_19addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_18addattr[] = "addattr(self, tag, value)\n\n        Add a child value to the element.\n\n        As opposed to append(), it sets a data value, not an element.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_18ObjectifiedElement_19addattr = {"addattr", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_19addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_18addattr};
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_19addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("addattr (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tag,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tag)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, 1); __PYX_ERR(0, 262, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "addattr") < 0)) __PYX_ERR(0, 262, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_tag = values[0];
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 262, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.addattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_18addattr(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), __pyx_v_tag, __pyx_v_value);

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_18addattr(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__7)
  __Pyx_RefNannySetupContext("addattr", 0);
  __Pyx_TraceCall("addattr", __pyx_f[0], 262, 0, __PYX_ERR(0, 262, __pyx_L1_error));

  /* "lxml/objectify.pyx":269
 *         As opposed to append(), it sets a data value, not an element.
 *         """
 *         _appendValue(self, _buildChildTag(self, tag), value)             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, key):
 */
  __Pyx_TraceLine(269,0,__PYX_ERR(0, 269, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_t_1, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":262
 *         self.remove(child)
 * 
 *     def addattr(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, tag, 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_AddTraceback("lxml.objectify.ObjectifiedElement.addattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":271
 *         _appendValue(self, _buildChildTag(self, tag), value)
 * 
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
 *         u"""Return a sibling, counting from the first child of the parent.  The
 *         method behaves like both a dict and a sequence.
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_21__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_20__getitem__[] = "Return a sibling, counting from the first child of the parent.  The\n        method behaves like both a dict and a sequence.\n\n        * If argument is an integer, returns the sibling at that position.\n\n        * If argument is a string, does the same as getattr().  This can be\n          used to provide namespaces for element lookup, or to look up\n          children with special names (``text`` etc.).\n\n        * If argument is a slice object, returns the matching slice.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_20__getitem__;
#endif
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_21__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_20__getitem__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_key));

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_20__getitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key) {
  xmlNode *__pyx_v_c_self_node;
  xmlNode *__pyx_v_c_parent;
  xmlNode *__pyx_v_c_node;
  Py_ssize_t __pyx_v_c_index;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  xmlNode *__pyx_t_6;
  __Pyx_RefNannySetupContext("__getitem__", 0);
  __Pyx_TraceCall("__getitem__", __pyx_f[0], 271, 0, __PYX_ERR(0, 271, __pyx_L1_error));

  /* "lxml/objectify.pyx":287
 *         cdef tree.xmlNode* c_node
 *         cdef Py_ssize_t c_index
 *         if python._isString(key):             # <<<<<<<<<<<<<<
 *             return _lookupChildOrRaise(self, key)
 *         elif isinstance(key, slice):
 */
  __Pyx_TraceLine(287,0,__PYX_ERR(0, 287, __pyx_L1_error))
  __pyx_t_1 = (_isString(__pyx_v_key) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":288
 *         cdef Py_ssize_t c_index
 *         if python._isString(key):
 *             return _lookupChildOrRaise(self, key)             # <<<<<<<<<<<<<<
 *         elif isinstance(key, slice):
 *             return list(self)[key]
 */
    __Pyx_TraceLine(288,0,__PYX_ERR(0, 288, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":287
 *         cdef tree.xmlNode* c_node
 *         cdef Py_ssize_t c_index
 *         if python._isString(key):             # <<<<<<<<<<<<<<
 *             return _lookupChildOrRaise(self, key)
 *         elif isinstance(key, slice):
 */
  }

  /* "lxml/objectify.pyx":289
 *         if python._isString(key):
 *             return _lookupChildOrRaise(self, key)
 *         elif isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             return list(self)[key]
 *         # normal item access
 */
  __Pyx_TraceLine(289,0,__PYX_ERR(0, 289, __pyx_L1_error))
  __pyx_t_1 = PySlice_Check(__pyx_v_key); 
  __pyx_t_3 = (__pyx_t_1 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":290
 *             return _lookupChildOrRaise(self, key)
 *         elif isinstance(key, slice):
 *             return list(self)[key]             # <<<<<<<<<<<<<<
 *         # normal item access
 *         c_index = key   # raises TypeError if necessary
 */
    __Pyx_TraceLine(290,0,__PYX_ERR(0, 290, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PySequence_List(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":289
 *         if python._isString(key):
 *             return _lookupChildOrRaise(self, key)
 *         elif isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             return list(self)[key]
 *         # normal item access
 */
  }

  /* "lxml/objectify.pyx":292
 *             return list(self)[key]
 *         # normal item access
 *         c_index = key   # raises TypeError if necessary             # <<<<<<<<<<<<<<
 *         c_self_node = self._c_node
 *         c_parent = c_self_node.parent
 */
  __Pyx_TraceLine(292,0,__PYX_ERR(0, 292, __pyx_L1_error))
  __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 292, __pyx_L1_error)
  __pyx_v_c_index = __pyx_t_5;

  /* "lxml/objectify.pyx":293
 *         # normal item access
 *         c_index = key   # raises TypeError if necessary
 *         c_self_node = self._c_node             # <<<<<<<<<<<<<<
 *         c_parent = c_self_node.parent
 *         if c_parent is NULL:
 */
  __Pyx_TraceLine(293,0,__PYX_ERR(0, 293, __pyx_L1_error))
  __pyx_t_6 = __pyx_v_self->__pyx_base.__pyx_base._c_node;
  __pyx_v_c_self_node = __pyx_t_6;

  /* "lxml/objectify.pyx":294
 *         c_index = key   # raises TypeError if necessary
 *         c_self_node = self._c_node
 *         c_parent = c_self_node.parent             # <<<<<<<<<<<<<<
 *         if c_parent is NULL:
 *             if c_index == 0:
 */
  __Pyx_TraceLine(294,0,__PYX_ERR(0, 294, __pyx_L1_error))
  __pyx_t_6 = __pyx_v_c_self_node->parent;
  __pyx_v_c_parent = __pyx_t_6;

  /* "lxml/objectify.pyx":295
 *         c_self_node = self._c_node
 *         c_parent = c_self_node.parent
 *         if c_parent is NULL:             # <<<<<<<<<<<<<<
 *             if c_index == 0:
 *                 return self
 */
  __Pyx_TraceLine(295,0,__PYX_ERR(0, 295, __pyx_L1_error))
  __pyx_t_3 = ((__pyx_v_c_parent == NULL) != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":296
 *         c_parent = c_self_node.parent
 *         if c_parent is NULL:
 *             if c_index == 0:             # <<<<<<<<<<<<<<
 *                 return self
 *             else:
 */
    __Pyx_TraceLine(296,0,__PYX_ERR(0, 296, __pyx_L1_error))
    __pyx_t_3 = ((__pyx_v_c_index == 0) != 0);
    if (likely(__pyx_t_3)) {

      /* "lxml/objectify.pyx":297
 *         if c_parent is NULL:
 *             if c_index == 0:
 *                 return self             # <<<<<<<<<<<<<<
 *             else:
 *                 raise IndexError, unicode(key)
 */
      __Pyx_TraceLine(297,0,__PYX_ERR(0, 297, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(((PyObject *)__pyx_v_self));
      __pyx_r = ((PyObject *)__pyx_v_self);
      goto __pyx_L0;

      /* "lxml/objectify.pyx":296
 *         c_parent = c_self_node.parent
 *         if c_parent is NULL:
 *             if c_index == 0:             # <<<<<<<<<<<<<<
 *                 return self
 *             else:
 */
    }

    /* "lxml/objectify.pyx":299
 *                 return self
 *             else:
 *                 raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
 *         if c_index < 0:
 *             c_node = c_parent.last
 */
    __Pyx_TraceLine(299,0,__PYX_ERR(0, 299, __pyx_L1_error))
    /*else*/ {
      __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 299, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_4, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __PYX_ERR(0, 299, __pyx_L1_error)
    }

    /* "lxml/objectify.pyx":295
 *         c_self_node = self._c_node
 *         c_parent = c_self_node.parent
 *         if c_parent is NULL:             # <<<<<<<<<<<<<<
 *             if c_index == 0:
 *                 return self
 */
  }

  /* "lxml/objectify.pyx":300
 *             else:
 *                 raise IndexError, unicode(key)
 *         if c_index < 0:             # <<<<<<<<<<<<<<
 *             c_node = c_parent.last
 *         else:
 */
  __Pyx_TraceLine(300,0,__PYX_ERR(0, 300, __pyx_L1_error))
  __pyx_t_3 = ((__pyx_v_c_index < 0) != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":301
 *                 raise IndexError, unicode(key)
 *         if c_index < 0:
 *             c_node = c_parent.last             # <<<<<<<<<<<<<<
 *         else:
 *             c_node = c_parent.children
 */
    __Pyx_TraceLine(301,0,__PYX_ERR(0, 301, __pyx_L1_error))
    __pyx_t_6 = __pyx_v_c_parent->last;
    __pyx_v_c_node = __pyx_t_6;

    /* "lxml/objectify.pyx":300
 *             else:
 *                 raise IndexError, unicode(key)
 *         if c_index < 0:             # <<<<<<<<<<<<<<
 *             c_node = c_parent.last
 *         else:
 */
    goto __pyx_L6;
  }

  /* "lxml/objectify.pyx":303
 *             c_node = c_parent.last
 *         else:
 *             c_node = c_parent.children             # <<<<<<<<<<<<<<
 *         c_node = _findFollowingSibling(
 *             c_node, tree._getNs(c_self_node), c_self_node.name, c_index)
 */
  __Pyx_TraceLine(303,0,__PYX_ERR(0, 303, __pyx_L1_error))
  /*else*/ {
    __pyx_t_6 = __pyx_v_c_parent->children;
    __pyx_v_c_node = __pyx_t_6;
  }
  __pyx_L6:;

  /* "lxml/objectify.pyx":304
 *         else:
 *             c_node = c_parent.children
 *         c_node = _findFollowingSibling(             # <<<<<<<<<<<<<<
 *             c_node, tree._getNs(c_self_node), c_self_node.name, c_index)
 *         if c_node is NULL:
 */
  __Pyx_TraceLine(304,0,__PYX_ERR(0, 304, __pyx_L1_error))
  __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_c_self_node), __pyx_v_c_self_node->name, __pyx_v_c_index);

  /* "lxml/objectify.pyx":306
 *         c_node = _findFollowingSibling(
 *             c_node, tree._getNs(c_self_node), c_self_node.name, c_index)
 *         if c_node is NULL:             # <<<<<<<<<<<<<<
 *             raise IndexError, unicode(key)
 *         return elementFactory(self._doc, c_node)
 */
  __Pyx_TraceLine(306,0,__PYX_ERR(0, 306, __pyx_L1_error))
  __pyx_t_3 = ((__pyx_v_c_node == NULL) != 0);
  if (unlikely(__pyx_t_3)) {

    /* "lxml/objectify.pyx":307
 *             c_node, tree._getNs(c_self_node), c_self_node.name, c_index)
 *         if c_node is NULL:
 *             raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
 *         return elementFactory(self._doc, c_node)
 * 
 */
    __Pyx_TraceLine(307,0,__PYX_ERR(0, 307, __pyx_L1_error))
    __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_4, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 307, __pyx_L1_error)

    /* "lxml/objectify.pyx":306
 *         c_node = _findFollowingSibling(
 *             c_node, tree._getNs(c_self_node), c_self_node.name, c_index)
 *         if c_node is NULL:             # <<<<<<<<<<<<<<
 *             raise IndexError, unicode(key)
 *         return elementFactory(self._doc, c_node)
 */
  }

  /* "lxml/objectify.pyx":308
 *         if c_node is NULL:
 *             raise IndexError, unicode(key)
 *         return elementFactory(self._doc, c_node)             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, key, value):
 */
  __Pyx_TraceLine(308,0,__PYX_ERR(0, 308, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base._doc);
  __Pyx_INCREF(__pyx_t_4);
  __pyx_t_2 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":271
 *         _appendValue(self, _buildChildTag(self, tag), value)
 * 
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
 *         u"""Return a sibling, counting from the first child of the parent.  The
 *         method behaves like both a dict and a sequence.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":310
 *         return elementFactory(self._doc, c_node)
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         u"""Set the value of a sibling, counting from the first child of the
 *         parent.  Implements key assignment, item assignment and slice
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_23__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_22__setitem__[] = "Set the value of a sibling, counting from the first child of the\n        parent.  Implements key assignment, item assignment and slice\n        assignment.\n\n        * If argument is an integer, sets the sibling at that position.\n\n        * If argument is a string, does the same as setattr().  This is used\n          to provide namespaces for element lookup.\n\n        * If argument is a sequence (list, tuple, etc.), assign the contained\n          items to the siblings.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_22__setitem__;
#endif
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_23__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_22__setitem__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_key), ((PyObject *)__pyx_v_value));

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

static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_22__setitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) {
  struct LxmlElement *__pyx_v_element = 0;
  xmlNode *__pyx_v_c_node;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  xmlNode *__pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__setitem__", 0);
  __Pyx_TraceCall("__setitem__", __pyx_f[0], 310, 0, __PYX_ERR(0, 310, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_key);

  /* "lxml/objectify.pyx":325
 *         cdef _Element element
 *         cdef tree.xmlNode* c_node
 *         if python._isString(key):             # <<<<<<<<<<<<<<
 *             key = _buildChildTag(self, key)
 *             element = _lookupChild(self, key)
 */
  __Pyx_TraceLine(325,0,__PYX_ERR(0, 325, __pyx_L1_error))
  __pyx_t_1 = (_isString(__pyx_v_key) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":326
 *         cdef tree.xmlNode* c_node
 *         if python._isString(key):
 *             key = _buildChildTag(self, key)             # <<<<<<<<<<<<<<
 *             element = _lookupChild(self, key)
 *             if element is None:
 */
    __Pyx_TraceLine(326,0,__PYX_ERR(0, 326, __pyx_L1_error))
    __pyx_t_2 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 326, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_key, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":327
 *         if python._isString(key):
 *             key = _buildChildTag(self, key)
 *             element = _lookupChild(self, key)             # <<<<<<<<<<<<<<
 *             if element is None:
 *                 _appendValue(self, key, value)
 */
    __Pyx_TraceLine(327,0,__PYX_ERR(0, 327, __pyx_L1_error))
    __pyx_t_2 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 327, __pyx_L1_error)
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":328
 *             key = _buildChildTag(self, key)
 *             element = _lookupChild(self, key)
 *             if element is None:             # <<<<<<<<<<<<<<
 *                 _appendValue(self, key, value)
 *             else:
 */
    __Pyx_TraceLine(328,0,__PYX_ERR(0, 328, __pyx_L1_error))
    __pyx_t_1 = (((PyObject *)__pyx_v_element) == Py_None);
    __pyx_t_3 = (__pyx_t_1 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":329
 *             element = _lookupChild(self, key)
 *             if element is None:
 *                 _appendValue(self, key, value)             # <<<<<<<<<<<<<<
 *             else:
 *                 _replaceElement(element, value)
 */
      __Pyx_TraceLine(329,0,__PYX_ERR(0, 329, __pyx_L1_error))
      __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_key, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 329, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

      /* "lxml/objectify.pyx":328
 *             key = _buildChildTag(self, key)
 *             element = _lookupChild(self, key)
 *             if element is None:             # <<<<<<<<<<<<<<
 *                 _appendValue(self, key, value)
 *             else:
 */
      goto __pyx_L4;
    }

    /* "lxml/objectify.pyx":331
 *                 _appendValue(self, key, value)
 *             else:
 *                 _replaceElement(element, value)             # <<<<<<<<<<<<<<
 *             return
 * 
 */
    __Pyx_TraceLine(331,0,__PYX_ERR(0, 331, __pyx_L1_error))
    /*else*/ {
      __pyx_t_2 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __pyx_L4:;

    /* "lxml/objectify.pyx":332
 *             else:
 *                 _replaceElement(element, value)
 *             return             # <<<<<<<<<<<<<<
 * 
 *         if self._c_node.parent is NULL:
 */
    __Pyx_TraceLine(332,0,__PYX_ERR(0, 332, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":325
 *         cdef _Element element
 *         cdef tree.xmlNode* c_node
 *         if python._isString(key):             # <<<<<<<<<<<<<<
 *             key = _buildChildTag(self, key)
 *             element = _lookupChild(self, key)
 */
  }

  /* "lxml/objectify.pyx":334
 *             return
 * 
 *         if self._c_node.parent is NULL:             # <<<<<<<<<<<<<<
 *             # the 'root[i] = ...' case
 *             raise TypeError, u"assignment to root element is invalid"
 */
  __Pyx_TraceLine(334,0,__PYX_ERR(0, 334, __pyx_L1_error))
  __pyx_t_3 = ((__pyx_v_self->__pyx_base.__pyx_base._c_node->parent == NULL) != 0);
  if (unlikely(__pyx_t_3)) {

    /* "lxml/objectify.pyx":336
 *         if self._c_node.parent is NULL:
 *             # the 'root[i] = ...' case
 *             raise TypeError, u"assignment to root element is invalid"             # <<<<<<<<<<<<<<
 * 
 *         if isinstance(key, slice):
 */
    __Pyx_TraceLine(336,0,__PYX_ERR(0, 336, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_assignment_to_root_element_is_in, 0, 0);
    __PYX_ERR(0, 336, __pyx_L1_error)

    /* "lxml/objectify.pyx":334
 *             return
 * 
 *         if self._c_node.parent is NULL:             # <<<<<<<<<<<<<<
 *             # the 'root[i] = ...' case
 *             raise TypeError, u"assignment to root element is invalid"
 */
  }

  /* "lxml/objectify.pyx":338
 *             raise TypeError, u"assignment to root element is invalid"
 * 
 *         if isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             # slice assignment
 *             _setSlice(key, self, value)
 */
  __Pyx_TraceLine(338,0,__PYX_ERR(0, 338, __pyx_L1_error))
  __pyx_t_3 = PySlice_Check(__pyx_v_key); 
  __pyx_t_1 = (__pyx_t_3 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":340
 *         if isinstance(key, slice):
 *             # slice assignment
 *             _setSlice(key, self, value)             # <<<<<<<<<<<<<<
 *         else:
 *             # normal index assignment
 */
    __Pyx_TraceLine(340,0,__PYX_ERR(0, 340, __pyx_L1_error))
    __pyx_t_2 = __pyx_f_4lxml_9objectify__setSlice(__pyx_v_key, ((struct LxmlElement *)__pyx_v_self), __pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":338
 *             raise TypeError, u"assignment to root element is invalid"
 * 
 *         if isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             # slice assignment
 *             _setSlice(key, self, value)
 */
    goto __pyx_L6;
  }

  /* "lxml/objectify.pyx":343
 *         else:
 *             # normal index assignment
 *             if key < 0:             # <<<<<<<<<<<<<<
 *                 c_node = self._c_node.parent.last
 *             else:
 */
  __Pyx_TraceLine(343,0,__PYX_ERR(0, 343, __pyx_L1_error))
  /*else*/ {
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 343, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 343, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":344
 *             # normal index assignment
 *             if key < 0:
 *                 c_node = self._c_node.parent.last             # <<<<<<<<<<<<<<
 *             else:
 *                 c_node = self._c_node.parent.children
 */
      __Pyx_TraceLine(344,0,__PYX_ERR(0, 344, __pyx_L1_error))
      __pyx_t_4 = __pyx_v_self->__pyx_base.__pyx_base._c_node->parent->last;
      __pyx_v_c_node = __pyx_t_4;

      /* "lxml/objectify.pyx":343
 *         else:
 *             # normal index assignment
 *             if key < 0:             # <<<<<<<<<<<<<<
 *                 c_node = self._c_node.parent.last
 *             else:
 */
      goto __pyx_L7;
    }

    /* "lxml/objectify.pyx":346
 *                 c_node = self._c_node.parent.last
 *             else:
 *                 c_node = self._c_node.parent.children             # <<<<<<<<<<<<<<
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
 */
    __Pyx_TraceLine(346,0,__PYX_ERR(0, 346, __pyx_L1_error))
    /*else*/ {
      __pyx_t_4 = __pyx_v_self->__pyx_base.__pyx_base._c_node->parent->children;
      __pyx_v_c_node = __pyx_t_4;
    }
    __pyx_L7:;

    /* "lxml/objectify.pyx":348
 *                 c_node = self._c_node.parent.children
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)             # <<<<<<<<<<<<<<
 *             if c_node is NULL:
 *                 raise IndexError, unicode(key)
 */
    __Pyx_TraceLine(348,0,__PYX_ERR(0, 348, __pyx_L1_error))
    __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 348, __pyx_L1_error)

    /* "lxml/objectify.pyx":347
 *             else:
 *                 c_node = self._c_node.parent.children
 *             c_node = _findFollowingSibling(             # <<<<<<<<<<<<<<
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
 *             if c_node is NULL:
 */
    __Pyx_TraceLine(347,0,__PYX_ERR(0, 347, __pyx_L1_error))
    __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_self->__pyx_base.__pyx_base._c_node), __pyx_v_self->__pyx_base.__pyx_base._c_node->name, __pyx_t_5);

    /* "lxml/objectify.pyx":349
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
 *                 raise IndexError, unicode(key)
 *             element = elementFactory(self._doc, c_node)
 */
    __Pyx_TraceLine(349,0,__PYX_ERR(0, 349, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
    if (unlikely(__pyx_t_1)) {

      /* "lxml/objectify.pyx":350
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
 *             if c_node is NULL:
 *                 raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
 *             element = elementFactory(self._doc, c_node)
 *             _replaceElement(element, value)
 */
      __Pyx_TraceLine(350,0,__PYX_ERR(0, 350, __pyx_L1_error))
      __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_2, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __PYX_ERR(0, 350, __pyx_L1_error)

      /* "lxml/objectify.pyx":349
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
 *                 raise IndexError, unicode(key)
 *             element = elementFactory(self._doc, c_node)
 */
    }

    /* "lxml/objectify.pyx":351
 *             if c_node is NULL:
 *                 raise IndexError, unicode(key)
 *             element = elementFactory(self._doc, c_node)             # <<<<<<<<<<<<<<
 *             _replaceElement(element, value)
 * 
 */
    __Pyx_TraceLine(351,0,__PYX_ERR(0, 351, __pyx_L1_error))
    __pyx_t_2 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base._doc);
    __Pyx_INCREF(__pyx_t_2);
    __pyx_t_6 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_6);
    __pyx_t_6 = 0;

    /* "lxml/objectify.pyx":352
 *                 raise IndexError, unicode(key)
 *             element = elementFactory(self._doc, c_node)
 *             _replaceElement(element, value)             # <<<<<<<<<<<<<<
 * 
 *     def __delitem__(self, key):
 */
    __Pyx_TraceLine(352,0,__PYX_ERR(0, 352, __pyx_L1_error))
    __pyx_t_6 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __pyx_L6:;

  /* "lxml/objectify.pyx":310
 *         return elementFactory(self._doc, c_node)
 * 
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
 *         u"""Set the value of a sibling, counting from the first child of the
 *         parent.  Implements key assignment, item assignment and slice
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XDECREF(__pyx_v_key);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":354
 *             _replaceElement(element, value)
 * 
 *     def __delitem__(self, key):             # <<<<<<<<<<<<<<
 *         parent = self.getparent()
 *         if parent is None:
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_25__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static int __pyx_pw_4lxml_9objectify_18ObjectifiedElement_25__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_24__delitem__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), ((PyObject *)__pyx_v_key));

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

static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement_24__delitem__(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_v_parent = NULL;
  PyObject *__pyx_v_del_items = NULL;
  PyObject *__pyx_v_remove = NULL;
  PyObject *__pyx_v_el = NULL;
  PyObject *__pyx_v_sibling = NULL;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __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;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("__delitem__", 0);
  __Pyx_TraceCall("__delitem__", __pyx_f[0], 354, 0, __PYX_ERR(0, 354, __pyx_L1_error));

  /* "lxml/objectify.pyx":355
 * 
 *     def __delitem__(self, key):
 *         parent = self.getparent()             # <<<<<<<<<<<<<<
 *         if parent is None:
 *             raise TypeError, u"deleting items not supported by root element"
 */
  __Pyx_TraceLine(355,0,__PYX_ERR(0, 355, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getparent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_parent = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":356
 *     def __delitem__(self, key):
 *         parent = self.getparent()
 *         if parent is None:             # <<<<<<<<<<<<<<
 *             raise TypeError, u"deleting items not supported by root element"
 *         if isinstance(key, slice):
 */
  __Pyx_TraceLine(356,0,__PYX_ERR(0, 356, __pyx_L1_error))
  __pyx_t_4 = (__pyx_v_parent == Py_None);
  __pyx_t_5 = (__pyx_t_4 != 0);
  if (unlikely(__pyx_t_5)) {

    /* "lxml/objectify.pyx":357
 *         parent = self.getparent()
 *         if parent is None:
 *             raise TypeError, u"deleting items not supported by root element"             # <<<<<<<<<<<<<<
 *         if isinstance(key, slice):
 *             # slice deletion
 */
    __Pyx_TraceLine(357,0,__PYX_ERR(0, 357, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_deleting_items_not_supported_by, 0, 0);
    __PYX_ERR(0, 357, __pyx_L1_error)

    /* "lxml/objectify.pyx":356
 *     def __delitem__(self, key):
 *         parent = self.getparent()
 *         if parent is None:             # <<<<<<<<<<<<<<
 *             raise TypeError, u"deleting items not supported by root element"
 *         if isinstance(key, slice):
 */
  }

  /* "lxml/objectify.pyx":358
 *         if parent is None:
 *             raise TypeError, u"deleting items not supported by root element"
 *         if isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             # slice deletion
 *             del_items = list(self)[key]
 */
  __Pyx_TraceLine(358,0,__PYX_ERR(0, 358, __pyx_L1_error))
  __pyx_t_5 = PySlice_Check(__pyx_v_key); 
  __pyx_t_4 = (__pyx_t_5 != 0);
  if (__pyx_t_4) {

    /* "lxml/objectify.pyx":360
 *         if isinstance(key, slice):
 *             # slice deletion
 *             del_items = list(self)[key]             # <<<<<<<<<<<<<<
 *             remove = parent.remove
 *             for el in del_items:
 */
    __Pyx_TraceLine(360,0,__PYX_ERR(0, 360, __pyx_L1_error))
    __pyx_t_1 = PySequence_List(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_del_items = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":361
 *             # slice deletion
 *             del_items = list(self)[key]
 *             remove = parent.remove             # <<<<<<<<<<<<<<
 *             for el in del_items:
 *                 remove(el)
 */
    __Pyx_TraceLine(361,0,__PYX_ERR(0, 361, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parent, __pyx_n_s_remove); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_remove = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":362
 *             del_items = list(self)[key]
 *             remove = parent.remove
 *             for el in del_items:             # <<<<<<<<<<<<<<
 *                 remove(el)
 *         else:
 */
    __Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L1_error))
    if (likely(PyList_CheckExact(__pyx_v_del_items)) || PyTuple_CheckExact(__pyx_v_del_items)) {
      __pyx_t_2 = __pyx_v_del_items; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_del_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 362, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_7 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 362, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          if (__pyx_t_6 >= 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_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 362, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        } else {
          if (__pyx_t_6 >= 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_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 362, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        }
      } else {
        __pyx_t_1 = __pyx_t_7(__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, 362, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_v_el, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "lxml/objectify.pyx":363
 *             remove = parent.remove
 *             for el in del_items:
 *                 remove(el)             # <<<<<<<<<<<<<<
 *         else:
 *             # normal index deletion
 */
      __Pyx_TraceLine(363,0,__PYX_ERR(0, 363, __pyx_L1_error))
      __Pyx_INCREF(__pyx_v_remove);
      __pyx_t_3 = __pyx_v_remove; __pyx_t_8 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_8) {
        __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_el); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_el};
          __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_t_1);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_el};
          __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_t_1);
        } else
        #endif
        {
          __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 363, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL;
          __Pyx_INCREF(__pyx_v_el);
          __Pyx_GIVEREF(__pyx_v_el);
          PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_el);
          __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 363, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "lxml/objectify.pyx":362
 *             del_items = list(self)[key]
 *             remove = parent.remove
 *             for el in del_items:             # <<<<<<<<<<<<<<
 *                 remove(el)
 *         else:
 */
      __Pyx_TraceLine(362,0,__PYX_ERR(0, 362, __pyx_L1_error))
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":358
 *         if parent is None:
 *             raise TypeError, u"deleting items not supported by root element"
 *         if isinstance(key, slice):             # <<<<<<<<<<<<<<
 *             # slice deletion
 *             del_items = list(self)[key]
 */
    goto __pyx_L4;
  }

  /* "lxml/objectify.pyx":366
 *         else:
 *             # normal index deletion
 *             sibling = self.__getitem__(key)             # <<<<<<<<<<<<<<
 *             parent.remove(sibling)
 * 
 */
  __Pyx_TraceLine(366,0,__PYX_ERR(0, 366, __pyx_L1_error))
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getitem); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = NULL;
    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);
      }
    }
    if (!__pyx_t_3) {
      __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_key); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_key};
        __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_key};
        __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      {
        __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 366, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_3); __pyx_t_3 = NULL;
        __Pyx_INCREF(__pyx_v_key);
        __Pyx_GIVEREF(__pyx_v_key);
        PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_key);
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_sibling = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":367
 *             # normal index deletion
 *             sibling = self.__getitem__(key)
 *             parent.remove(sibling)             # <<<<<<<<<<<<<<
 * 
 *     def descendantpaths(self, prefix=None):
 */
    __Pyx_TraceLine(367,0,__PYX_ERR(0, 367, __pyx_L1_error))
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_parent, __pyx_n_s_remove); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 367, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    if (!__pyx_t_9) {
      __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_sibling); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 367, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_sibling};
        __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 367, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[2] = {__pyx_t_9, __pyx_v_sibling};
        __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 367, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
        __Pyx_GOTREF(__pyx_t_2);
      } else
      #endif
      {
        __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 367, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9); __pyx_t_9 = NULL;
        __Pyx_INCREF(__pyx_v_sibling);
        __Pyx_GIVEREF(__pyx_v_sibling);
        PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_sibling);
        __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 367, __pyx_L1_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(__pyx_t_2); __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "lxml/objectify.pyx":354
 *             _replaceElement(element, value)
 * 
 *     def __delitem__(self, key):             # <<<<<<<<<<<<<<
 *         parent = self.getparent()
 *         if parent is None:
 */

  /* 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_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parent);
  __Pyx_XDECREF(__pyx_v_del_items);
  __Pyx_XDECREF(__pyx_v_remove);
  __Pyx_XDECREF(__pyx_v_el);
  __Pyx_XDECREF(__pyx_v_sibling);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":369
 *             parent.remove(sibling)
 * 
 *     def descendantpaths(self, prefix=None):             # <<<<<<<<<<<<<<
 *         u"""descendantpaths(self, prefix=None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_27descendantpaths(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_26descendantpaths[] = "descendantpaths(self, prefix=None)\n\n        Returns a list of object path expressions for all descendants.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_18ObjectifiedElement_27descendantpaths = {"descendantpaths", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_27descendantpaths, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_26descendantpaths};
static PyObject *__pyx_pw_4lxml_9objectify_18ObjectifiedElement_27descendantpaths(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prefix = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("descendantpaths (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prefix,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prefix);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "descendantpaths") < 0)) __PYX_ERR(0, 369, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_prefix = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("descendantpaths", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 369, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.descendantpaths", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_18ObjectifiedElement_26descendantpaths(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self), __pyx_v_prefix);

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

static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_26descendantpaths(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *__pyx_v_self, PyObject *__pyx_v_prefix) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__8)
  __Pyx_RefNannySetupContext("descendantpaths", 0);
  __Pyx_TraceCall("descendantpaths", __pyx_f[0], 369, 0, __PYX_ERR(0, 369, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_prefix);

  /* "lxml/objectify.pyx":374
 *         Returns a list of object path expressions for all descendants.
 *         """
 *         if prefix is not None and not python._isString(prefix):             # <<<<<<<<<<<<<<
 *             prefix = u'.'.join(prefix)
 *         return _build_descendant_paths(self._c_node, prefix)
 */
  __Pyx_TraceLine(374,0,__PYX_ERR(0, 374, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_prefix != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = ((!(_isString(__pyx_v_prefix) != 0)) != 0);
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":375
 *         """
 *         if prefix is not None and not python._isString(prefix):
 *             prefix = u'.'.join(prefix)             # <<<<<<<<<<<<<<
 *         return _build_descendant_paths(self._c_node, prefix)
 * 
 */
    __Pyx_TraceLine(375,0,__PYX_ERR(0, 375, __pyx_L1_error))
    __pyx_t_4 = PyUnicode_Join(__pyx_kp_u__9, __pyx_v_prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_prefix, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":374
 *         Returns a list of object path expressions for all descendants.
 *         """
 *         if prefix is not None and not python._isString(prefix):             # <<<<<<<<<<<<<<
 *             prefix = u'.'.join(prefix)
 *         return _build_descendant_paths(self._c_node, prefix)
 */
  }

  /* "lxml/objectify.pyx":376
 *         if prefix is not None and not python._isString(prefix):
 *             prefix = u'.'.join(prefix)
 *         return _build_descendant_paths(self._c_node, prefix)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(376,0,__PYX_ERR(0, 376, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __pyx_f_4lxml_9objectify__build_descendant_paths(__pyx_v_self->__pyx_base.__pyx_base._c_node, __pyx_v_prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":369
 *             parent.remove(sibling)
 * 
 *     def descendantpaths(self, prefix=None):             # <<<<<<<<<<<<<<
 *         u"""descendantpaths(self, prefix=None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.descendantpaths", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":379
 * 
 * 
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):             # <<<<<<<<<<<<<<
 *     if c_node.name != c_name:
 *         return 0
 */

static CYTHON_INLINE int __pyx_f_4lxml_9objectify__tagMatches(xmlNode *__pyx_v_c_node, const xmlChar *__pyx_v_c_href, const xmlChar *__pyx_v_c_name) {
  const xmlChar *__pyx_v_c_node_href;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("_tagMatches", 0);
  __Pyx_TraceCall("_tagMatches", __pyx_f[0], 379, 0, __PYX_ERR(0, 379, __pyx_L1_error));

  /* "lxml/objectify.pyx":380
 * 
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):
 *     if c_node.name != c_name:             # <<<<<<<<<<<<<<
 *         return 0
 *     if c_href == NULL:
 */
  __Pyx_TraceLine(380,0,__PYX_ERR(0, 380, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_node->name != __pyx_v_c_name) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":381
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):
 *     if c_node.name != c_name:
 *         return 0             # <<<<<<<<<<<<<<
 *     if c_href == NULL:
 *         return 1
 */
    __Pyx_TraceLine(381,0,__PYX_ERR(0, 381, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":380
 * 
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):
 *     if c_node.name != c_name:             # <<<<<<<<<<<<<<
 *         return 0
 *     if c_href == NULL:
 */
  }

  /* "lxml/objectify.pyx":382
 *     if c_node.name != c_name:
 *         return 0
 *     if c_href == NULL:             # <<<<<<<<<<<<<<
 *         return 1
 *     c_node_href = tree._getNs(c_node)
 */
  __Pyx_TraceLine(382,0,__PYX_ERR(0, 382, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_href == NULL) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":383
 *         return 0
 *     if c_href == NULL:
 *         return 1             # <<<<<<<<<<<<<<
 *     c_node_href = tree._getNs(c_node)
 *     if c_node_href == NULL:
 */
    __Pyx_TraceLine(383,0,__PYX_ERR(0, 383, __pyx_L1_error))
    __pyx_r = 1;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":382
 *     if c_node.name != c_name:
 *         return 0
 *     if c_href == NULL:             # <<<<<<<<<<<<<<
 *         return 1
 *     c_node_href = tree._getNs(c_node)
 */
  }

  /* "lxml/objectify.pyx":384
 *     if c_href == NULL:
 *         return 1
 *     c_node_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
 *     if c_node_href == NULL:
 *         return c_href[0] == c'\0'
 */
  __Pyx_TraceLine(384,0,__PYX_ERR(0, 384, __pyx_L1_error))
  __pyx_v_c_node_href = _getNs(__pyx_v_c_node);

  /* "lxml/objectify.pyx":385
 *         return 1
 *     c_node_href = tree._getNs(c_node)
 *     if c_node_href == NULL:             # <<<<<<<<<<<<<<
 *         return c_href[0] == c'\0'
 *     return tree.xmlStrcmp(c_node_href, c_href) == 0
 */
  __Pyx_TraceLine(385,0,__PYX_ERR(0, 385, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_node_href == NULL) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":386
 *     c_node_href = tree._getNs(c_node)
 *     if c_node_href == NULL:
 *         return c_href[0] == c'\0'             # <<<<<<<<<<<<<<
 *     return tree.xmlStrcmp(c_node_href, c_href) == 0
 * 
 */
    __Pyx_TraceLine(386,0,__PYX_ERR(0, 386, __pyx_L1_error))
    __pyx_r = ((__pyx_v_c_href[0]) == '\x00');
    goto __pyx_L0;

    /* "lxml/objectify.pyx":385
 *         return 1
 *     c_node_href = tree._getNs(c_node)
 *     if c_node_href == NULL:             # <<<<<<<<<<<<<<
 *         return c_href[0] == c'\0'
 *     return tree.xmlStrcmp(c_node_href, c_href) == 0
 */
  }

  /* "lxml/objectify.pyx":387
 *     if c_node_href == NULL:
 *         return c_href[0] == c'\0'
 *     return tree.xmlStrcmp(c_node_href, c_href) == 0             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(387,0,__PYX_ERR(0, 387, __pyx_L1_error))
  __pyx_r = (xmlStrcmp(__pyx_v_c_node_href, __pyx_v_c_href) == 0);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":379
 * 
 * 
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):             # <<<<<<<<<<<<<<
 *     if c_node.name != c_name:
 *         return 0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("lxml.objectify._tagMatches", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":390
 * 
 * 
 * cdef Py_ssize_t _countSiblings(tree.xmlNode* c_start_node):             # <<<<<<<<<<<<<<
 *     cdef tree.xmlNode* c_node
 *     cdef Py_ssize_t count
 */

static Py_ssize_t __pyx_f_4lxml_9objectify__countSiblings(xmlNode *__pyx_v_c_start_node) {
  xmlNode *__pyx_v_c_node;
  Py_ssize_t __pyx_v_count;
  const xmlChar *__pyx_v_c_tag;
  const xmlChar *__pyx_v_c_href;
  Py_ssize_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  const xmlChar *__pyx_t_1;
  xmlNode *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("_countSiblings", 0);
  __Pyx_TraceCall("_countSiblings", __pyx_f[0], 390, 0, __PYX_ERR(0, 390, __pyx_L1_error));

  /* "lxml/objectify.pyx":393
 *     cdef tree.xmlNode* c_node
 *     cdef Py_ssize_t count
 *     c_tag  = c_start_node.name             # <<<<<<<<<<<<<<
 *     c_href = tree._getNs(c_start_node)
 *     count = 1
 */
  __Pyx_TraceLine(393,0,__PYX_ERR(0, 393, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_c_start_node->name;
  __pyx_v_c_tag = __pyx_t_1;

  /* "lxml/objectify.pyx":394
 *     cdef Py_ssize_t count
 *     c_tag  = c_start_node.name
 *     c_href = tree._getNs(c_start_node)             # <<<<<<<<<<<<<<
 *     count = 1
 *     c_node = c_start_node.next
 */
  __Pyx_TraceLine(394,0,__PYX_ERR(0, 394, __pyx_L1_error))
  __pyx_v_c_href = _getNs(__pyx_v_c_start_node);

  /* "lxml/objectify.pyx":395
 *     c_tag  = c_start_node.name
 *     c_href = tree._getNs(c_start_node)
 *     count = 1             # <<<<<<<<<<<<<<
 *     c_node = c_start_node.next
 *     while c_node is not NULL:
 */
  __Pyx_TraceLine(395,0,__PYX_ERR(0, 395, __pyx_L1_error))
  __pyx_v_count = 1;

  /* "lxml/objectify.pyx":396
 *     c_href = tree._getNs(c_start_node)
 *     count = 1
 *     c_node = c_start_node.next             # <<<<<<<<<<<<<<
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 */
  __Pyx_TraceLine(396,0,__PYX_ERR(0, 396, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_c_start_node->next;
  __pyx_v_c_node = __pyx_t_2;

  /* "lxml/objectify.pyx":397
 *     count = 1
 *     c_node = c_start_node.next
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):
 */
  __Pyx_TraceLine(397,0,__PYX_ERR(0, 397, __pyx_L1_error))
  while (1) {
    __pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_3) break;

    /* "lxml/objectify.pyx":398
 *     c_node = c_start_node.next
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    __Pyx_TraceLine(398,0,__PYX_ERR(0, 398, __pyx_L1_error))
    __pyx_t_4 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L6_bool_binop_done;
    }

    /* "lxml/objectify.pyx":399
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):             # <<<<<<<<<<<<<<
 *             count += 1
 *         c_node = c_node.next
 */
    __Pyx_TraceLine(399,0,__PYX_ERR(0, 399, __pyx_L1_error))
    __pyx_t_4 = (__pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag) != 0);
    __pyx_t_3 = __pyx_t_4;
    __pyx_L6_bool_binop_done:;

    /* "lxml/objectify.pyx":398
 *     c_node = c_start_node.next
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    __Pyx_TraceLine(398,0,__PYX_ERR(0, 398, __pyx_L1_error))
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":400
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1             # <<<<<<<<<<<<<<
 *         c_node = c_node.next
 *     c_node = c_start_node.prev
 */
      __Pyx_TraceLine(400,0,__PYX_ERR(0, 400, __pyx_L1_error))
      __pyx_v_count = (__pyx_v_count + 1);

      /* "lxml/objectify.pyx":398
 *     c_node = c_start_node.next
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    }

    /* "lxml/objectify.pyx":401
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 *         c_node = c_node.next             # <<<<<<<<<<<<<<
 *     c_node = c_start_node.prev
 *     while c_node is not NULL:
 */
    __Pyx_TraceLine(401,0,__PYX_ERR(0, 401, __pyx_L1_error))
    __pyx_t_2 = __pyx_v_c_node->next;
    __pyx_v_c_node = __pyx_t_2;
  }

  /* "lxml/objectify.pyx":402
 *             count += 1
 *         c_node = c_node.next
 *     c_node = c_start_node.prev             # <<<<<<<<<<<<<<
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 */
  __Pyx_TraceLine(402,0,__PYX_ERR(0, 402, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_c_start_node->prev;
  __pyx_v_c_node = __pyx_t_2;

  /* "lxml/objectify.pyx":403
 *         c_node = c_node.next
 *     c_node = c_start_node.prev
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):
 */
  __Pyx_TraceLine(403,0,__PYX_ERR(0, 403, __pyx_L1_error))
  while (1) {
    __pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_3) break;

    /* "lxml/objectify.pyx":404
 *     c_node = c_start_node.prev
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    __Pyx_TraceLine(404,0,__PYX_ERR(0, 404, __pyx_L1_error))
    __pyx_t_4 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
    if (__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L11_bool_binop_done;
    }

    /* "lxml/objectify.pyx":405
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):             # <<<<<<<<<<<<<<
 *             count += 1
 *         c_node = c_node.prev
 */
    __Pyx_TraceLine(405,0,__PYX_ERR(0, 405, __pyx_L1_error))
    __pyx_t_4 = (__pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag) != 0);
    __pyx_t_3 = __pyx_t_4;
    __pyx_L11_bool_binop_done:;

    /* "lxml/objectify.pyx":404
 *     c_node = c_start_node.prev
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    __Pyx_TraceLine(404,0,__PYX_ERR(0, 404, __pyx_L1_error))
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":406
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1             # <<<<<<<<<<<<<<
 *         c_node = c_node.prev
 *     return count
 */
      __Pyx_TraceLine(406,0,__PYX_ERR(0, 406, __pyx_L1_error))
      __pyx_v_count = (__pyx_v_count + 1);

      /* "lxml/objectify.pyx":404
 *     c_node = c_start_node.prev
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 */
    }

    /* "lxml/objectify.pyx":407
 *                _tagMatches(c_node, c_href, c_tag):
 *             count += 1
 *         c_node = c_node.prev             # <<<<<<<<<<<<<<
 *     return count
 * 
 */
    __Pyx_TraceLine(407,0,__PYX_ERR(0, 407, __pyx_L1_error))
    __pyx_t_2 = __pyx_v_c_node->prev;
    __pyx_v_c_node = __pyx_t_2;
  }

  /* "lxml/objectify.pyx":408
 *             count += 1
 *         c_node = c_node.prev
 *     return count             # <<<<<<<<<<<<<<
 * 
 * cdef tree.xmlNode* _findFollowingSibling(tree.xmlNode* c_node,
 */
  __Pyx_TraceLine(408,0,__PYX_ERR(0, 408, __pyx_L1_error))
  __pyx_r = __pyx_v_count;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":390
 * 
 * 
 * cdef Py_ssize_t _countSiblings(tree.xmlNode* c_start_node):             # <<<<<<<<<<<<<<
 *     cdef tree.xmlNode* c_node
 *     cdef Py_ssize_t count
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("lxml.objectify._countSiblings", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":410
 *     return count
 * 
 * cdef tree.xmlNode* _findFollowingSibling(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
 *                                          const_xmlChar* href, const_xmlChar* name,
 *                                          Py_ssize_t index):
 */

static xmlNode *__pyx_f_4lxml_9objectify__findFollowingSibling(xmlNode *__pyx_v_c_node, const xmlChar *__pyx_v_href, const xmlChar *__pyx_v_name, Py_ssize_t __pyx_v_index) {
  xmlNode *(*__pyx_v_next)(xmlNode *);
  xmlNode *__pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("_findFollowingSibling", 0);
  __Pyx_TraceCall("_findFollowingSibling", __pyx_f[0], 410, 0, __PYX_ERR(0, 410, __pyx_L1_error));

  /* "lxml/objectify.pyx":414
 *                                          Py_ssize_t index):
 *     cdef tree.xmlNode* (*next)(tree.xmlNode*)
 *     if index >= 0:             # <<<<<<<<<<<<<<
 *         next = cetree.nextElement
 *     else:
 */
  __Pyx_TraceLine(414,0,__PYX_ERR(0, 414, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_index >= 0) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":415
 *     cdef tree.xmlNode* (*next)(tree.xmlNode*)
 *     if index >= 0:
 *         next = cetree.nextElement             # <<<<<<<<<<<<<<
 *     else:
 *         index = -1 - index
 */
    __Pyx_TraceLine(415,0,__PYX_ERR(0, 415, __pyx_L1_error))
    __pyx_v_next = nextElement;

    /* "lxml/objectify.pyx":414
 *                                          Py_ssize_t index):
 *     cdef tree.xmlNode* (*next)(tree.xmlNode*)
 *     if index >= 0:             # <<<<<<<<<<<<<<
 *         next = cetree.nextElement
 *     else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":417
 *         next = cetree.nextElement
 *     else:
 *         index = -1 - index             # <<<<<<<<<<<<<<
 *         next = cetree.previousElement
 *     while c_node is not NULL:
 */
  __Pyx_TraceLine(417,0,__PYX_ERR(0, 417, __pyx_L1_error))
  /*else*/ {
    __pyx_v_index = (-1L - __pyx_v_index);

    /* "lxml/objectify.pyx":418
 *     else:
 *         index = -1 - index
 *         next = cetree.previousElement             # <<<<<<<<<<<<<<
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 */
    __Pyx_TraceLine(418,0,__PYX_ERR(0, 418, __pyx_L1_error))
    __pyx_v_next = previousElement;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":419
 *         index = -1 - index
 *         next = cetree.previousElement
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, href, name):
 */
  __Pyx_TraceLine(419,0,__PYX_ERR(0, 419, __pyx_L1_error))
  while (1) {
    __pyx_t_1 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_1) break;

    /* "lxml/objectify.pyx":420
 *         next = cetree.previousElement
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, href, name):
 *             index = index - 1
 */
    __Pyx_TraceLine(420,0,__PYX_ERR(0, 420, __pyx_L1_error))
    __pyx_t_2 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L7_bool_binop_done;
    }

    /* "lxml/objectify.pyx":421
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, href, name):             # <<<<<<<<<<<<<<
 *             index = index - 1
 *             if index < 0:
 */
    __Pyx_TraceLine(421,0,__PYX_ERR(0, 421, __pyx_L1_error))
    __pyx_t_2 = (__pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_href, __pyx_v_name) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L7_bool_binop_done:;

    /* "lxml/objectify.pyx":420
 *         next = cetree.previousElement
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, href, name):
 *             index = index - 1
 */
    __Pyx_TraceLine(420,0,__PYX_ERR(0, 420, __pyx_L1_error))
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":422
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
 *                _tagMatches(c_node, href, name):
 *             index = index - 1             # <<<<<<<<<<<<<<
 *             if index < 0:
 *                 return c_node
 */
      __Pyx_TraceLine(422,0,__PYX_ERR(0, 422, __pyx_L1_error))
      __pyx_v_index = (__pyx_v_index - 1);

      /* "lxml/objectify.pyx":423
 *                _tagMatches(c_node, href, name):
 *             index = index - 1
 *             if index < 0:             # <<<<<<<<<<<<<<
 *                 return c_node
 *         c_node = next(c_node)
 */
      __Pyx_TraceLine(423,0,__PYX_ERR(0, 423, __pyx_L1_error))
      __pyx_t_1 = ((__pyx_v_index < 0) != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":424
 *             index = index - 1
 *             if index < 0:
 *                 return c_node             # <<<<<<<<<<<<<<
 *         c_node = next(c_node)
 *     return NULL
 */
        __Pyx_TraceLine(424,0,__PYX_ERR(0, 424, __pyx_L1_error))
        __pyx_r = __pyx_v_c_node;
        goto __pyx_L0;

        /* "lxml/objectify.pyx":423
 *                _tagMatches(c_node, href, name):
 *             index = index - 1
 *             if index < 0:             # <<<<<<<<<<<<<<
 *                 return c_node
 *         c_node = next(c_node)
 */
      }

      /* "lxml/objectify.pyx":420
 *         next = cetree.previousElement
 *     while c_node is not NULL:
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
 *                _tagMatches(c_node, href, name):
 *             index = index - 1
 */
    }

    /* "lxml/objectify.pyx":425
 *             if index < 0:
 *                 return c_node
 *         c_node = next(c_node)             # <<<<<<<<<<<<<<
 *     return NULL
 * 
 */
    __Pyx_TraceLine(425,0,__PYX_ERR(0, 425, __pyx_L1_error))
    __pyx_v_c_node = __pyx_v_next(__pyx_v_c_node);
  }

  /* "lxml/objectify.pyx":426
 *                 return c_node
 *         c_node = next(c_node)
 *     return NULL             # <<<<<<<<<<<<<<
 * 
 * cdef object _lookupChild(_Element parent, tag):
 */
  __Pyx_TraceLine(426,0,__PYX_ERR(0, 426, __pyx_L1_error))
  __pyx_r = NULL;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":410
 *     return count
 * 
 * cdef tree.xmlNode* _findFollowingSibling(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
 *                                          const_xmlChar* href, const_xmlChar* name,
 *                                          Py_ssize_t index):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("lxml.objectify._findFollowingSibling", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":428
 *     return NULL
 * 
 * cdef object _lookupChild(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     cdef tree.xmlNode* c_result
 *     cdef tree.xmlNode* c_node
 */

static PyObject *__pyx_f_4lxml_9objectify__lookupChild(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag) {
  xmlNode *__pyx_v_c_result;
  xmlNode *__pyx_v_c_node;
  PyObject *__pyx_v_ns = NULL;
  const xmlChar *__pyx_v_c_tag;
  const xmlChar *__pyx_v_c_href;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  xmlNode *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  const xmlChar *__pyx_t_7;
  const xmlChar *__pyx_t_8;
  __Pyx_RefNannySetupContext("_lookupChild", 0);
  __Pyx_TraceCall("_lookupChild", __pyx_f[0], 428, 0, __PYX_ERR(0, 428, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_tag);

  /* "lxml/objectify.pyx":431
 *     cdef tree.xmlNode* c_result
 *     cdef tree.xmlNode* c_node
 *     c_node = parent._c_node             # <<<<<<<<<<<<<<
 *     ns, tag = cetree.getNsTagWithEmptyNs(tag)
 *     c_tag = tree.xmlDictExists(
 */
  __Pyx_TraceLine(431,0,__PYX_ERR(0, 431, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_parent->_c_node;
  __pyx_v_c_node = __pyx_t_1;

  /* "lxml/objectify.pyx":432
 *     cdef tree.xmlNode* c_node
 *     c_node = parent._c_node
 *     ns, tag = cetree.getNsTagWithEmptyNs(tag)             # <<<<<<<<<<<<<<
 *     c_tag = tree.xmlDictExists(
 *         c_node.doc.dict, _xcstr(tag), python.PyBytes_GET_SIZE(tag))
 */
  __Pyx_TraceLine(432,0,__PYX_ERR(0, 432, __pyx_L1_error))
  __pyx_t_2 = getNsTagWithEmptyNs(__pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (likely(__pyx_t_2 != Py_None)) {
    PyObject* sequence = __pyx_t_2;
    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, 432, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_4);
    #else
    __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 432, __pyx_L1_error)
  }
  __pyx_v_ns = __pyx_t_3;
  __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":433
 *     c_node = parent._c_node
 *     ns, tag = cetree.getNsTagWithEmptyNs(tag)
 *     c_tag = tree.xmlDictExists(             # <<<<<<<<<<<<<<
 *         c_node.doc.dict, _xcstr(tag), python.PyBytes_GET_SIZE(tag))
 *     if c_tag is NULL:
 */
  __Pyx_TraceLine(433,0,__PYX_ERR(0, 433, __pyx_L1_error))
  __pyx_v_c_tag = xmlDictExists(__pyx_v_c_node->doc->dict, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_tag), PyBytes_GET_SIZE(__pyx_v_tag));

  /* "lxml/objectify.pyx":435
 *     c_tag = tree.xmlDictExists(
 *         c_node.doc.dict, _xcstr(tag), python.PyBytes_GET_SIZE(tag))
 *     if c_tag is NULL:             # <<<<<<<<<<<<<<
 *         return None # not in the hash map => not in the tree
 *     if ns is None:
 */
  __Pyx_TraceLine(435,0,__PYX_ERR(0, 435, __pyx_L1_error))
  __pyx_t_5 = ((__pyx_v_c_tag == NULL) != 0);
  if (__pyx_t_5) {

    /* "lxml/objectify.pyx":436
 *         c_node.doc.dict, _xcstr(tag), python.PyBytes_GET_SIZE(tag))
 *     if c_tag is NULL:
 *         return None # not in the hash map => not in the tree             # <<<<<<<<<<<<<<
 *     if ns is None:
 *         # either inherit ns from parent or use empty (i.e. no) namespace
 */
    __Pyx_TraceLine(436,0,__PYX_ERR(0, 436, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":435
 *     c_tag = tree.xmlDictExists(
 *         c_node.doc.dict, _xcstr(tag), python.PyBytes_GET_SIZE(tag))
 *     if c_tag is NULL:             # <<<<<<<<<<<<<<
 *         return None # not in the hash map => not in the tree
 *     if ns is None:
 */
  }

  /* "lxml/objectify.pyx":437
 *     if c_tag is NULL:
 *         return None # not in the hash map => not in the tree
 *     if ns is None:             # <<<<<<<<<<<<<<
 *         # either inherit ns from parent or use empty (i.e. no) namespace
 *         c_href = tree._getNs(c_node) or <const_xmlChar*>''
 */
  __Pyx_TraceLine(437,0,__PYX_ERR(0, 437, __pyx_L1_error))
  __pyx_t_5 = (__pyx_v_ns == Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {

    /* "lxml/objectify.pyx":439
 *     if ns is None:
 *         # either inherit ns from parent or use empty (i.e. no) namespace
 *         c_href = tree._getNs(c_node) or <const_xmlChar*>''             # <<<<<<<<<<<<<<
 *     else:
 *         c_href = _xcstr(ns)
 */
    __Pyx_TraceLine(439,0,__PYX_ERR(0, 439, __pyx_L1_error))
    __pyx_t_8 = _getNs(__pyx_v_c_node);
    if (!__pyx_t_8) {
    } else {
      __pyx_t_7 = __pyx_t_8;
      goto __pyx_L5_bool_binop_done;
    }
    __pyx_t_8 = ((const xmlChar *)((const xmlChar *)((char const *)"")));
    __pyx_t_7 = __pyx_t_8;
    __pyx_L5_bool_binop_done:;
    __pyx_v_c_href = __pyx_t_7;

    /* "lxml/objectify.pyx":437
 *     if c_tag is NULL:
 *         return None # not in the hash map => not in the tree
 *     if ns is None:             # <<<<<<<<<<<<<<
 *         # either inherit ns from parent or use empty (i.e. no) namespace
 *         c_href = tree._getNs(c_node) or <const_xmlChar*>''
 */
    goto __pyx_L4;
  }

  /* "lxml/objectify.pyx":441
 *         c_href = tree._getNs(c_node) or <const_xmlChar*>''
 *     else:
 *         c_href = _xcstr(ns)             # <<<<<<<<<<<<<<
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
 *     if c_result is NULL:
 */
  __Pyx_TraceLine(441,0,__PYX_ERR(0, 441, __pyx_L1_error))
  /*else*/ {
    __pyx_v_c_href = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_ns);
  }
  __pyx_L4:;

  /* "lxml/objectify.pyx":442
 *     else:
 *         c_href = _xcstr(ns)
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)             # <<<<<<<<<<<<<<
 *     if c_result is NULL:
 *         return None
 */
  __Pyx_TraceLine(442,0,__PYX_ERR(0, 442, __pyx_L1_error))
  __pyx_v_c_result = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node->children, __pyx_v_c_href, __pyx_v_c_tag, 0);

  /* "lxml/objectify.pyx":443
 *         c_href = _xcstr(ns)
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
 *     if c_result is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return elementFactory(parent._doc, c_result)
 */
  __Pyx_TraceLine(443,0,__PYX_ERR(0, 443, __pyx_L1_error))
  __pyx_t_6 = ((__pyx_v_c_result == NULL) != 0);
  if (__pyx_t_6) {

    /* "lxml/objectify.pyx":444
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
 *     if c_result is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     return elementFactory(parent._doc, c_result)
 * 
 */
    __Pyx_TraceLine(444,0,__PYX_ERR(0, 444, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":443
 *         c_href = _xcstr(ns)
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
 *     if c_result is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     return elementFactory(parent._doc, c_result)
 */
  }

  /* "lxml/objectify.pyx":445
 *     if c_result is NULL:
 *         return None
 *     return elementFactory(parent._doc, c_result)             # <<<<<<<<<<<<<<
 * 
 * cdef object _lookupChildOrRaise(_Element parent, tag):
 */
  __Pyx_TraceLine(445,0,__PYX_ERR(0, 445, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_v_parent->_doc);
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_result)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":428
 *     return NULL
 * 
 * cdef object _lookupChild(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     cdef tree.xmlNode* c_result
 *     cdef tree.xmlNode* c_node
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify._lookupChild", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":447
 *     return elementFactory(parent._doc, c_result)
 * 
 * cdef object _lookupChildOrRaise(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     element = _lookupChild(parent, tag)
 *     if element is None:
 */

static PyObject *__pyx_f_4lxml_9objectify__lookupChildOrRaise(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_element = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("_lookupChildOrRaise", 0);
  __Pyx_TraceCall("_lookupChildOrRaise", __pyx_f[0], 447, 0, __PYX_ERR(0, 447, __pyx_L1_error));

  /* "lxml/objectify.pyx":448
 * 
 * cdef object _lookupChildOrRaise(_Element parent, tag):
 *     element = _lookupChild(parent, tag)             # <<<<<<<<<<<<<<
 *     if element is None:
 *         raise AttributeError, u"no such child: " + _buildChildTag(parent, tag)
 */
  __Pyx_TraceLine(448,0,__PYX_ERR(0, 448, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChild(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":449
 * cdef object _lookupChildOrRaise(_Element parent, tag):
 *     element = _lookupChild(parent, tag)
 *     if element is None:             # <<<<<<<<<<<<<<
 *         raise AttributeError, u"no such child: " + _buildChildTag(parent, tag)
 *     return element
 */
  __Pyx_TraceLine(449,0,__PYX_ERR(0, 449, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_element == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (unlikely(__pyx_t_3)) {

    /* "lxml/objectify.pyx":450
 *     element = _lookupChild(parent, tag)
 *     if element is None:
 *         raise AttributeError, u"no such child: " + _buildChildTag(parent, tag)             # <<<<<<<<<<<<<<
 *     return element
 * 
 */
    __Pyx_TraceLine(450,0,__PYX_ERR(0, 450, __pyx_L1_error))
    __pyx_t_1 = __pyx_f_4lxml_9objectify__buildChildTag(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyNumber_Add(__pyx_kp_u_no_such_child, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_4, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 450, __pyx_L1_error)

    /* "lxml/objectify.pyx":449
 * cdef object _lookupChildOrRaise(_Element parent, tag):
 *     element = _lookupChild(parent, tag)
 *     if element is None:             # <<<<<<<<<<<<<<
 *         raise AttributeError, u"no such child: " + _buildChildTag(parent, tag)
 *     return element
 */
  }

  /* "lxml/objectify.pyx":451
 *     if element is None:
 *         raise AttributeError, u"no such child: " + _buildChildTag(parent, tag)
 *     return element             # <<<<<<<<<<<<<<
 * 
 * cdef object _buildChildTag(_Element parent, tag):
 */
  __Pyx_TraceLine(451,0,__PYX_ERR(0, 451, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_element);
  __pyx_r = __pyx_v_element;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":447
 *     return elementFactory(parent._doc, c_result)
 * 
 * cdef object _lookupChildOrRaise(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     element = _lookupChild(parent, tag)
 *     if element is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify._lookupChildOrRaise", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":453
 *     return element
 * 
 * cdef object _buildChildTag(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     ns, tag = cetree.getNsTag(tag)
 *     c_tag = _xcstr(tag)
 */

static PyObject *__pyx_f_4lxml_9objectify__buildChildTag(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_ns = NULL;
  const xmlChar *__pyx_v_c_tag;
  const xmlChar *__pyx_v_c_href;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  const xmlChar *__pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("_buildChildTag", 0);
  __Pyx_TraceCall("_buildChildTag", __pyx_f[0], 453, 0, __PYX_ERR(0, 453, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_tag);

  /* "lxml/objectify.pyx":454
 * 
 * cdef object _buildChildTag(_Element parent, tag):
 *     ns, tag = cetree.getNsTag(tag)             # <<<<<<<<<<<<<<
 *     c_tag = _xcstr(tag)
 *     c_href = tree._getNs(parent._c_node) if ns is None else _xcstr(ns)
 */
  __Pyx_TraceLine(454,0,__PYX_ERR(0, 454, __pyx_L1_error))
  __pyx_t_1 = getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 454, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(__pyx_t_1 != Py_None)) {
    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, 454, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    #else
    __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 454, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 454, __pyx_L1_error)
  }
  __pyx_v_ns = __pyx_t_2;
  __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":455
 * cdef object _buildChildTag(_Element parent, tag):
 *     ns, tag = cetree.getNsTag(tag)
 *     c_tag = _xcstr(tag)             # <<<<<<<<<<<<<<
 *     c_href = tree._getNs(parent._c_node) if ns is None else _xcstr(ns)
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)
 */
  __Pyx_TraceLine(455,0,__PYX_ERR(0, 455, __pyx_L1_error))
  __pyx_v_c_tag = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_tag);

  /* "lxml/objectify.pyx":456
 *     ns, tag = cetree.getNsTag(tag)
 *     c_tag = _xcstr(tag)
 *     c_href = tree._getNs(parent._c_node) if ns is None else _xcstr(ns)             # <<<<<<<<<<<<<<
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)
 * 
 */
  __Pyx_TraceLine(456,0,__PYX_ERR(0, 456, __pyx_L1_error))
  __pyx_t_5 = (__pyx_v_ns == Py_None);
  if ((__pyx_t_5 != 0)) {
    __pyx_t_4 = _getNs(__pyx_v_parent->_c_node);
  } else {
    __pyx_t_4 = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_ns);
  }
  __pyx_v_c_href = __pyx_t_4;

  /* "lxml/objectify.pyx":457
 *     c_tag = _xcstr(tag)
 *     c_href = tree._getNs(parent._c_node) if ns is None else _xcstr(ns)
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)             # <<<<<<<<<<<<<<
 * 
 * cdef _replaceElement(_Element element, value):
 */
  __Pyx_TraceLine(457,0,__PYX_ERR(0, 457, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":453
 *     return element
 * 
 * cdef object _buildChildTag(_Element parent, tag):             # <<<<<<<<<<<<<<
 *     ns, tag = cetree.getNsTag(tag)
 *     c_tag = _xcstr(tag)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify._buildChildTag", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":459
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)
 * 
 * cdef _replaceElement(_Element element, value):             # <<<<<<<<<<<<<<
 *     cdef _Element new_element
 *     if isinstance(value, _Element):
 */

static PyObject *__pyx_f_4lxml_9objectify__replaceElement(struct LxmlElement *__pyx_v_element, PyObject *__pyx_v_value) {
  struct LxmlElement *__pyx_v_new_element = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("_replaceElement", 0);
  __Pyx_TraceCall("_replaceElement", __pyx_f[0], 459, 0, __PYX_ERR(0, 459, __pyx_L1_error));

  /* "lxml/objectify.pyx":461
 * cdef _replaceElement(_Element element, value):
 *     cdef _Element new_element
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 */
  __Pyx_TraceLine(461,0,__PYX_ERR(0, 461, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_value, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":464
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 *             element._doc, (<_Element>value)._c_node)             # <<<<<<<<<<<<<<
 *         new_element.tag = element.tag
 *     elif isinstance(value, (list, tuple)):
 */
    __Pyx_TraceLine(464,0,__PYX_ERR(0, 464, __pyx_L1_error))
    __pyx_t_3 = ((PyObject *)__pyx_v_element->_doc);
    __Pyx_INCREF(__pyx_t_3);

    /* "lxml/objectify.pyx":463
 *     if isinstance(value, _Element):
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(             # <<<<<<<<<<<<<<
 *             element._doc, (<_Element>value)._c_node)
 *         new_element.tag = element.tag
 */
    __Pyx_TraceLine(463,0,__PYX_ERR(0, 463, __pyx_L1_error))
    __pyx_t_4 = ((PyObject *)deepcopyNodeToDocument(((struct LxmlDocument *)__pyx_t_3), ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":465
 *         new_element = cetree.deepcopyNodeToDocument(
 *             element._doc, (<_Element>value)._c_node)
 *         new_element.tag = element.tag             # <<<<<<<<<<<<<<
 *     elif isinstance(value, (list, tuple)):
 *         element[:] = value
 */
    __Pyx_TraceLine(465,0,__PYX_ERR(0, 465, __pyx_L1_error))
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_new_element), __pyx_n_s_tag, __pyx_t_4) < 0) __PYX_ERR(0, 465, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":461
 * cdef _replaceElement(_Element element, value):
 *     cdef _Element new_element
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":466
 *             element._doc, (<_Element>value)._c_node)
 *         new_element.tag = element.tag
 *     elif isinstance(value, (list, tuple)):             # <<<<<<<<<<<<<<
 *         element[:] = value
 *         return
 */
  __Pyx_TraceLine(466,0,__PYX_ERR(0, 466, __pyx_L1_error))
  __pyx_t_1 = PyList_Check(__pyx_v_value); 
  __pyx_t_5 = (__pyx_t_1 != 0);
  if (!__pyx_t_5) {
  } else {
    __pyx_t_2 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_5 = PyTuple_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_5 != 0);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L4_bool_binop_done:;
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":467
 *         new_element.tag = element.tag
 *     elif isinstance(value, (list, tuple)):
 *         element[:] = value             # <<<<<<<<<<<<<<
 *         return
 *     else:
 */
    __Pyx_TraceLine(467,0,__PYX_ERR(0, 467, __pyx_L1_error))
    if (__Pyx_PyObject_SetSlice(((PyObject *)__pyx_v_element), __pyx_v_value, 0, 0, NULL, NULL, &__pyx_slice__10, 0, 0, 1) < 0) __PYX_ERR(0, 467, __pyx_L1_error)

    /* "lxml/objectify.pyx":468
 *     elif isinstance(value, (list, tuple)):
 *         element[:] = value
 *         return             # <<<<<<<<<<<<<<
 *     else:
 *         new_element = element.makeelement(element.tag)
 */
    __Pyx_TraceLine(468,0,__PYX_ERR(0, 468, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":466
 *             element._doc, (<_Element>value)._c_node)
 *         new_element.tag = element.tag
 *     elif isinstance(value, (list, tuple)):             # <<<<<<<<<<<<<<
 *         element[:] = value
 *         return
 */
  }

  /* "lxml/objectify.pyx":470
 *         return
 *     else:
 *         new_element = element.makeelement(element.tag)             # <<<<<<<<<<<<<<
 *         _setElementValue(new_element, value)
 *     element.getparent().replace(element, new_element)
 */
  __Pyx_TraceLine(470,0,__PYX_ERR(0, 470, __pyx_L1_error))
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_makeelement); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 470, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tag); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 470, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(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);
      }
    }
    if (!__pyx_t_7) {
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_4);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_3)) {
        PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6};
        __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
        PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6};
        __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else
      #endif
      {
        __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL;
        __Pyx_GIVEREF(__pyx_t_6);
        PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6);
        __pyx_t_6 = 0;
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 470, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 470, __pyx_L1_error)
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":471
 *     else:
 *         new_element = element.makeelement(element.tag)
 *         _setElementValue(new_element, value)             # <<<<<<<<<<<<<<
 *     element.getparent().replace(element, new_element)
 * 
 */
    __Pyx_TraceLine(471,0,__PYX_ERR(0, 471, __pyx_L1_error))
    __pyx_t_4 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":472
 *         new_element = element.makeelement(element.tag)
 *         _setElementValue(new_element, value)
 *     element.getparent().replace(element, new_element)             # <<<<<<<<<<<<<<
 * 
 * cdef _appendValue(_Element parent, tag, value):
 */
  __Pyx_TraceLine(472,0,__PYX_ERR(0, 472, __pyx_L1_error))
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_getparent); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
    }
  }
  if (__pyx_t_6) {
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 472, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_replace); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  __pyx_t_9 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
      __pyx_t_9 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_8)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, ((PyObject *)__pyx_v_element), ((PyObject *)__pyx_v_new_element)};
    __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, ((PyObject *)__pyx_v_element), ((PyObject *)__pyx_v_new_element)};
    __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(((PyObject *)__pyx_v_element));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_element));
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_9, ((PyObject *)__pyx_v_element));
    __Pyx_INCREF(((PyObject *)__pyx_v_new_element));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_new_element));
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_9, ((PyObject *)__pyx_v_new_element));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 472, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":459
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)
 * 
 * cdef _replaceElement(_Element element, value):             # <<<<<<<<<<<<<<
 *     cdef _Element new_element
 *     if isinstance(value, _Element):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify._replaceElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_new_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":474
 *     element.getparent().replace(element, new_element)
 * 
 * cdef _appendValue(_Element parent, tag, value):             # <<<<<<<<<<<<<<
 *     cdef _Element new_element
 *     if isinstance(value, _Element):
 */

static PyObject *__pyx_f_4lxml_9objectify__appendValue(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
  struct LxmlElement *__pyx_v_new_element = 0;
  PyObject *__pyx_v_item = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  __Pyx_RefNannySetupContext("_appendValue", 0);
  __Pyx_TraceCall("_appendValue", __pyx_f[0], 474, 0, __PYX_ERR(0, 474, __pyx_L1_error));

  /* "lxml/objectify.pyx":476
 * cdef _appendValue(_Element parent, tag, value):
 *     cdef _Element new_element
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 */
  __Pyx_TraceLine(476,0,__PYX_ERR(0, 476, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_value, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":479
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 *             parent._doc, (<_Element>value)._c_node)             # <<<<<<<<<<<<<<
 *         new_element.tag = tag
 *         cetree.appendChildToElement(parent, new_element)
 */
    __Pyx_TraceLine(479,0,__PYX_ERR(0, 479, __pyx_L1_error))
    __pyx_t_3 = ((PyObject *)__pyx_v_parent->_doc);
    __Pyx_INCREF(__pyx_t_3);

    /* "lxml/objectify.pyx":478
 *     if isinstance(value, _Element):
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(             # <<<<<<<<<<<<<<
 *             parent._doc, (<_Element>value)._c_node)
 *         new_element.tag = tag
 */
    __Pyx_TraceLine(478,0,__PYX_ERR(0, 478, __pyx_L1_error))
    __pyx_t_4 = ((PyObject *)deepcopyNodeToDocument(((struct LxmlDocument *)__pyx_t_3), ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":480
 *         new_element = cetree.deepcopyNodeToDocument(
 *             parent._doc, (<_Element>value)._c_node)
 *         new_element.tag = tag             # <<<<<<<<<<<<<<
 *         cetree.appendChildToElement(parent, new_element)
 *     elif isinstance(value, (list, tuple)):
 */
    __Pyx_TraceLine(480,0,__PYX_ERR(0, 480, __pyx_L1_error))
    if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_new_element), __pyx_n_s_tag, __pyx_v_tag) < 0) __PYX_ERR(0, 480, __pyx_L1_error)

    /* "lxml/objectify.pyx":481
 *             parent._doc, (<_Element>value)._c_node)
 *         new_element.tag = tag
 *         cetree.appendChildToElement(parent, new_element)             # <<<<<<<<<<<<<<
 *     elif isinstance(value, (list, tuple)):
 *         for item in value:
 */
    __Pyx_TraceLine(481,0,__PYX_ERR(0, 481, __pyx_L1_error))
    __pyx_t_5 = appendChildToElement(__pyx_v_parent, __pyx_v_new_element); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 481, __pyx_L1_error)

    /* "lxml/objectify.pyx":476
 * cdef _appendValue(_Element parent, tag, value):
 *     cdef _Element new_element
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         # deep copy the new element
 *         new_element = cetree.deepcopyNodeToDocument(
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":482
 *         new_element.tag = tag
 *         cetree.appendChildToElement(parent, new_element)
 *     elif isinstance(value, (list, tuple)):             # <<<<<<<<<<<<<<
 *         for item in value:
 *             _appendValue(parent, tag, item)
 */
  __Pyx_TraceLine(482,0,__PYX_ERR(0, 482, __pyx_L1_error))
  __pyx_t_1 = PyList_Check(__pyx_v_value); 
  __pyx_t_6 = (__pyx_t_1 != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_2 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_6 = PyTuple_Check(__pyx_v_value); 
  __pyx_t_1 = (__pyx_t_6 != 0);
  __pyx_t_2 = __pyx_t_1;
  __pyx_L4_bool_binop_done:;
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":483
 *         cetree.appendChildToElement(parent, new_element)
 *     elif isinstance(value, (list, tuple)):
 *         for item in value:             # <<<<<<<<<<<<<<
 *             _appendValue(parent, tag, item)
 *     else:
 */
    __Pyx_TraceLine(483,0,__PYX_ERR(0, 483, __pyx_L1_error))
    if (likely(PyList_CheckExact(__pyx_v_value)) || PyTuple_CheckExact(__pyx_v_value)) {
      __pyx_t_4 = __pyx_v_value; __Pyx_INCREF(__pyx_t_4); __pyx_t_7 = 0;
      __pyx_t_8 = NULL;
    } else {
      __pyx_t_7 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 483, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 483, __pyx_L1_error)
    }
    for (;;) {
      if (likely(!__pyx_t_8)) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 483, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 483, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        } else {
          if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_7); __Pyx_INCREF(__pyx_t_3); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 483, __pyx_L1_error)
          #else
          __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 483, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
        }
      } else {
        __pyx_t_3 = __pyx_t_8(__pyx_t_4);
        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, 483, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":484
 *     elif isinstance(value, (list, tuple)):
 *         for item in value:
 *             _appendValue(parent, tag, item)             # <<<<<<<<<<<<<<
 *     else:
 *         new_element = cetree.makeElement(
 */
      __Pyx_TraceLine(484,0,__PYX_ERR(0, 484, __pyx_L1_error))
      __pyx_t_3 = __pyx_f_4lxml_9objectify__appendValue(__pyx_v_parent, __pyx_v_tag, __pyx_v_item); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 484, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":483
 *         cetree.appendChildToElement(parent, new_element)
 *     elif isinstance(value, (list, tuple)):
 *         for item in value:             # <<<<<<<<<<<<<<
 *             _appendValue(parent, tag, item)
 *     else:
 */
      __Pyx_TraceLine(483,0,__PYX_ERR(0, 483, __pyx_L1_error))
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":482
 *         new_element.tag = tag
 *         cetree.appendChildToElement(parent, new_element)
 *     elif isinstance(value, (list, tuple)):             # <<<<<<<<<<<<<<
 *         for item in value:
 *             _appendValue(parent, tag, item)
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":486
 *             _appendValue(parent, tag, item)
 *     else:
 *         new_element = cetree.makeElement(             # <<<<<<<<<<<<<<
 *             tag, parent._doc, None, None, None, None, None)
 *         _setElementValue(new_element, value)
 */
  __Pyx_TraceLine(486,0,__PYX_ERR(0, 486, __pyx_L1_error))
  /*else*/ {

    /* "lxml/objectify.pyx":487
 *     else:
 *         new_element = cetree.makeElement(
 *             tag, parent._doc, None, None, None, None, None)             # <<<<<<<<<<<<<<
 *         _setElementValue(new_element, value)
 *         cetree.appendChildToElement(parent, new_element)
 */
    __Pyx_TraceLine(487,0,__PYX_ERR(0, 487, __pyx_L1_error))
    __pyx_t_4 = ((PyObject *)__pyx_v_parent->_doc);
    __Pyx_INCREF(__pyx_t_4);

    /* "lxml/objectify.pyx":486
 *             _appendValue(parent, tag, item)
 *     else:
 *         new_element = cetree.makeElement(             # <<<<<<<<<<<<<<
 *             tag, parent._doc, None, None, None, None, None)
 *         _setElementValue(new_element, value)
 */
    __Pyx_TraceLine(486,0,__PYX_ERR(0, 486, __pyx_L1_error))
    __pyx_t_3 = ((PyObject *)makeElement(__pyx_v_tag, ((struct LxmlDocument *)__pyx_t_4), Py_None, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 486, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":488
 *         new_element = cetree.makeElement(
 *             tag, parent._doc, None, None, None, None, None)
 *         _setElementValue(new_element, value)             # <<<<<<<<<<<<<<
 *         cetree.appendChildToElement(parent, new_element)
 * 
 */
    __Pyx_TraceLine(488,0,__PYX_ERR(0, 488, __pyx_L1_error))
    __pyx_t_3 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 488, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":489
 *             tag, parent._doc, None, None, None, None, None)
 *         _setElementValue(new_element, value)
 *         cetree.appendChildToElement(parent, new_element)             # <<<<<<<<<<<<<<
 * 
 * cdef _setElementValue(_Element element, value):
 */
    __Pyx_TraceLine(489,0,__PYX_ERR(0, 489, __pyx_L1_error))
    __pyx_t_5 = appendChildToElement(__pyx_v_parent, __pyx_v_new_element); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 489, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":474
 *     element.getparent().replace(element, new_element)
 * 
 * cdef _appendValue(_Element parent, tag, value):             # <<<<<<<<<<<<<<
 *     cdef _Element new_element
 *     if isinstance(value, _Element):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify._appendValue", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_new_element);
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":491
 *         cetree.appendChildToElement(parent, new_element)
 * 
 * cdef _setElementValue(_Element element, value):             # <<<<<<<<<<<<<<
 *     if value is None:
 *         cetree.setAttributeValue(
 */

static PyObject *__pyx_f_4lxml_9objectify__setElementValue(struct LxmlElement *__pyx_v_element, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_pytype_name = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_py_type = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("_setElementValue", 0);
  __Pyx_TraceCall("_setElementValue", __pyx_f[0], 491, 0, __PYX_ERR(0, 491, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_value);

  /* "lxml/objectify.pyx":492
 * 
 * cdef _setElementValue(_Element element, value):
 *     if value is None:             # <<<<<<<<<<<<<<
 *         cetree.setAttributeValue(
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 */
  __Pyx_TraceLine(492,0,__PYX_ERR(0, 492, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_value == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":494
 *     if value is None:
 *         cetree.setAttributeValue(
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")             # <<<<<<<<<<<<<<
 *     elif isinstance(value, _Element):
 *         _replaceElement(element, value)
 */
    __Pyx_TraceLine(494,0,__PYX_ERR(0, 494, __pyx_L1_error))
    __pyx_t_3 = __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR;
    __Pyx_INCREF(__pyx_t_3);

    /* "lxml/objectify.pyx":493
 * cdef _setElementValue(_Element element, value):
 *     if value is None:
 *         cetree.setAttributeValue(             # <<<<<<<<<<<<<<
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *     elif isinstance(value, _Element):
 */
    __Pyx_TraceLine(493,0,__PYX_ERR(0, 493, __pyx_L1_error))
    __pyx_t_4 = setAttributeValue(__pyx_v_element, __pyx_t_3, __pyx_n_u_true); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 493, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":492
 * 
 * cdef _setElementValue(_Element element, value):
 *     if value is None:             # <<<<<<<<<<<<<<
 *         cetree.setAttributeValue(
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":495
 *         cetree.setAttributeValue(
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *     elif isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         _replaceElement(element, value)
 *         return
 */
  __Pyx_TraceLine(495,0,__PYX_ERR(0, 495, __pyx_L1_error))
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_value, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":496
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *     elif isinstance(value, _Element):
 *         _replaceElement(element, value)             # <<<<<<<<<<<<<<
 *         return
 *     else:
 */
    __Pyx_TraceLine(496,0,__PYX_ERR(0, 496, __pyx_L1_error))
    __pyx_t_3 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":497
 *     elif isinstance(value, _Element):
 *         _replaceElement(element, value)
 *         return             # <<<<<<<<<<<<<<
 *     else:
 *         cetree.delAttributeFromNsName(
 */
    __Pyx_TraceLine(497,0,__PYX_ERR(0, 497, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":495
 *         cetree.setAttributeValue(
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *     elif isinstance(value, _Element):             # <<<<<<<<<<<<<<
 *         _replaceElement(element, value)
 *         return
 */
  }

  /* "lxml/objectify.pyx":499
 *         return
 *     else:
 *         cetree.delAttributeFromNsName(             # <<<<<<<<<<<<<<
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil")
 *         if python._isString(value):
 */
  __Pyx_TraceLine(499,0,__PYX_ERR(0, 499, __pyx_L1_error))
  /*else*/ {

    /* "lxml/objectify.pyx":500
 *     else:
 *         cetree.delAttributeFromNsName(
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil")             # <<<<<<<<<<<<<<
 *         if python._isString(value):
 *             pytype_name = u"str"
 */
    __Pyx_TraceLine(500,0,__PYX_ERR(0, 500, __pyx_L1_error))
    (void)(delAttributeFromNsName(__pyx_v_element->_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"nil")))));

    /* "lxml/objectify.pyx":501
 *         cetree.delAttributeFromNsName(
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil")
 *         if python._isString(value):             # <<<<<<<<<<<<<<
 *             pytype_name = u"str"
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 */
    __Pyx_TraceLine(501,0,__PYX_ERR(0, 501, __pyx_L1_error))
    __pyx_t_1 = (_isString(__pyx_v_value) != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":502
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil")
 *         if python._isString(value):
 *             pytype_name = u"str"             # <<<<<<<<<<<<<<
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *         else:
 */
      __Pyx_TraceLine(502,0,__PYX_ERR(0, 502, __pyx_L1_error))
      __Pyx_INCREF(__pyx_n_u_str);
      __pyx_v_pytype_name = __pyx_n_u_str;

      /* "lxml/objectify.pyx":503
 *         if python._isString(value):
 *             pytype_name = u"str"
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)             # <<<<<<<<<<<<<<
 *         else:
 *             pytype_name = _typename(value)
 */
      __Pyx_TraceLine(503,0,__PYX_ERR(0, 503, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 503, __pyx_L1_error)
      }
      __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_pytype_name, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 503, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __pyx_t_3;
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_py_type = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":501
 *         cetree.delAttributeFromNsName(
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil")
 *         if python._isString(value):             # <<<<<<<<<<<<<<
 *             pytype_name = u"str"
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 */
      goto __pyx_L4;
    }

    /* "lxml/objectify.pyx":505
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *         else:
 *             pytype_name = _typename(value)             # <<<<<<<<<<<<<<
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *             if py_type is not None:
 */
    __Pyx_TraceLine(505,0,__PYX_ERR(0, 505, __pyx_L1_error))
    /*else*/ {
      __pyx_t_5 = __pyx_f_4lxml_9objectify__typename(__pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 505, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_v_pytype_name = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":506
 *         else:
 *             pytype_name = _typename(value)
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)             # <<<<<<<<<<<<<<
 *             if py_type is not None:
 *                 value = py_type.stringify(value)
 */
      __Pyx_TraceLine(506,0,__PYX_ERR(0, 506, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 506, __pyx_L1_error)
      }
      __pyx_t_5 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_pytype_name, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 506, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = __pyx_t_5;
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_py_type = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":507
 *             pytype_name = _typename(value)
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 value = py_type.stringify(value)
 *             else:
 */
      __Pyx_TraceLine(507,0,__PYX_ERR(0, 507, __pyx_L1_error))
      __pyx_t_1 = (((PyObject *)__pyx_v_py_type) != Py_None);
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":508
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *             if py_type is not None:
 *                 value = py_type.stringify(value)             # <<<<<<<<<<<<<<
 *             else:
 *                 value = unicode(value)
 */
        __Pyx_TraceLine(508,0,__PYX_ERR(0, 508, __pyx_L1_error))
        __Pyx_INCREF(__pyx_v_py_type->stringify);
        __pyx_t_5 = __pyx_v_py_type->stringify; __pyx_t_6 = NULL;
        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);
          }
        }
        if (!__pyx_t_6) {
          __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 508, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        } else {
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_5)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 508, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_3);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 508, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_3);
          } else
          #endif
          {
            __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 508, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
            __Pyx_INCREF(__pyx_v_value);
            __Pyx_GIVEREF(__pyx_v_value);
            PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_value);
            __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 508, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "lxml/objectify.pyx":507
 *             pytype_name = _typename(value)
 *             py_type = <PyType>_PYTYPE_DICT.get(pytype_name)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 value = py_type.stringify(value)
 *             else:
 */
        goto __pyx_L5;
      }

      /* "lxml/objectify.pyx":510
 *                 value = py_type.stringify(value)
 *             else:
 *                 value = unicode(value)             # <<<<<<<<<<<<<<
 *         if py_type is not None:
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 */
      __Pyx_TraceLine(510,0,__PYX_ERR(0, 510, __pyx_L1_error))
      /*else*/ {
        __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 510, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
        __pyx_t_3 = 0;
      }
      __pyx_L5:;
    }
    __pyx_L4:;

    /* "lxml/objectify.pyx":511
 *             else:
 *                 value = unicode(value)
 *         if py_type is not None:             # <<<<<<<<<<<<<<
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 *         else:
 */
    __Pyx_TraceLine(511,0,__PYX_ERR(0, 511, __pyx_L1_error))
    __pyx_t_2 = (((PyObject *)__pyx_v_py_type) != Py_None);
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":512
 *                 value = unicode(value)
 *         if py_type is not None:
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)             # <<<<<<<<<<<<<<
 *         else:
 *             cetree.delAttributeFromNsName(
 */
      __Pyx_TraceLine(512,0,__PYX_ERR(0, 512, __pyx_L1_error))
      __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 512, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = setAttributeValue(__pyx_v_element, __pyx_t_3, __pyx_v_pytype_name); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 512, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":511
 *             else:
 *                 value = unicode(value)
 *         if py_type is not None:             # <<<<<<<<<<<<<<
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 *         else:
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":514
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 *         else:
 *             cetree.delAttributeFromNsName(             # <<<<<<<<<<<<<<
 *                 element._c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     cetree.setNodeText(element._c_node, value)
 */
    __Pyx_TraceLine(514,0,__PYX_ERR(0, 514, __pyx_L1_error))
    /*else*/ {

      /* "lxml/objectify.pyx":515
 *         else:
 *             cetree.delAttributeFromNsName(
 *                 element._c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
 *     cetree.setNodeText(element._c_node, value)
 * 
 */
      __Pyx_TraceLine(515,0,__PYX_ERR(0, 515, __pyx_L1_error))
      (void)(delAttributeFromNsName(__pyx_v_element->_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME));
    }
    __pyx_L6:;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":516
 *             cetree.delAttributeFromNsName(
 *                 element._c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     cetree.setNodeText(element._c_node, value)             # <<<<<<<<<<<<<<
 * 
 * cdef _setSlice(sliceobject, _Element target, items):
 */
  __Pyx_TraceLine(516,0,__PYX_ERR(0, 516, __pyx_L1_error))
  __pyx_t_4 = setNodeText(__pyx_v_element->_c_node, __pyx_v_value); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 516, __pyx_L1_error)

  /* "lxml/objectify.pyx":491
 *         cetree.appendChildToElement(parent, new_element)
 * 
 * cdef _setElementValue(_Element element, value):             # <<<<<<<<<<<<<<
 *     if value is None:
 *         cetree.setAttributeValue(
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify._setElementValue", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pytype_name);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_type);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":518
 *     cetree.setNodeText(element._c_node, value)
 * 
 * cdef _setSlice(sliceobject, _Element target, items):             # <<<<<<<<<<<<<<
 *     cdef _Element parent
 *     cdef tree.xmlNode* c_node
 */

static PyObject *__pyx_f_4lxml_9objectify__setSlice(PyObject *__pyx_v_sliceobject, struct LxmlElement *__pyx_v_target, PyObject *__pyx_v_items) {
  struct LxmlElement *__pyx_v_parent = 0;
  xmlNode *__pyx_v_c_node;
  Py_ssize_t __pyx_v_c_step;
  Py_ssize_t __pyx_v_pos;
  PyObject *__pyx_v_del_items = 0;
  PyObject *__pyx_v_new_items = NULL;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_v_item = NULL;
  struct LxmlElement *__pyx_v_new_element = NULL;
  PyObject *__pyx_v_replace = NULL;
  PyObject *__pyx_v_remove = NULL;
  PyObject *__pyx_v_add = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *(*__pyx_t_5)(PyObject *);
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  Py_UCS4 __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  PyObject *__pyx_t_14 = NULL;
  xmlNode *__pyx_t_15;
  __Pyx_RefNannySetupContext("_setSlice", 0);
  __Pyx_TraceCall("_setSlice", __pyx_f[0], 518, 0, __PYX_ERR(0, 518, __pyx_L1_error));

  /* "lxml/objectify.pyx":523
 *     cdef Py_ssize_t c_step, c_start, pos
 *     # collect existing slice
 *     if (<slice>sliceobject).step is None:             # <<<<<<<<<<<<<<
 *         c_step = 1
 *     else:
 */
  __Pyx_TraceLine(523,0,__PYX_ERR(0, 523, __pyx_L1_error))
  __pyx_t_1 = (((PySliceObject*)((PyObject*)__pyx_v_sliceobject))->step == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":524
 *     # collect existing slice
 *     if (<slice>sliceobject).step is None:
 *         c_step = 1             # <<<<<<<<<<<<<<
 *     else:
 *         c_step = (<slice>sliceobject).step
 */
    __Pyx_TraceLine(524,0,__PYX_ERR(0, 524, __pyx_L1_error))
    __pyx_v_c_step = 1;

    /* "lxml/objectify.pyx":523
 *     cdef Py_ssize_t c_step, c_start, pos
 *     # collect existing slice
 *     if (<slice>sliceobject).step is None:             # <<<<<<<<<<<<<<
 *         c_step = 1
 *     else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":526
 *         c_step = 1
 *     else:
 *         c_step = (<slice>sliceobject).step             # <<<<<<<<<<<<<<
 *     if c_step == 0:
 *         raise ValueError, u"Invalid slice"
 */
  __Pyx_TraceLine(526,0,__PYX_ERR(0, 526, __pyx_L1_error))
  /*else*/ {
    __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(((PySliceObject*)((PyObject*)__pyx_v_sliceobject))->step); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 526, __pyx_L1_error)
    __pyx_v_c_step = __pyx_t_3;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":527
 *     else:
 *         c_step = (<slice>sliceobject).step
 *     if c_step == 0:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"Invalid slice"
 *     cdef list del_items = target[sliceobject]
 */
  __Pyx_TraceLine(527,0,__PYX_ERR(0, 527, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_c_step == 0) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "lxml/objectify.pyx":528
 *         c_step = (<slice>sliceobject).step
 *     if c_step == 0:
 *         raise ValueError, u"Invalid slice"             # <<<<<<<<<<<<<<
 *     cdef list del_items = target[sliceobject]
 * 
 */
    __Pyx_TraceLine(528,0,__PYX_ERR(0, 528, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Invalid_slice, 0, 0);
    __PYX_ERR(0, 528, __pyx_L1_error)

    /* "lxml/objectify.pyx":527
 *     else:
 *         c_step = (<slice>sliceobject).step
 *     if c_step == 0:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"Invalid slice"
 *     cdef list del_items = target[sliceobject]
 */
  }

  /* "lxml/objectify.pyx":529
 *     if c_step == 0:
 *         raise ValueError, u"Invalid slice"
 *     cdef list del_items = target[sliceobject]             # <<<<<<<<<<<<<<
 * 
 *     # collect new values
 */
  __Pyx_TraceLine(529,0,__PYX_ERR(0, 529, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_target), __pyx_v_sliceobject); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 529, __pyx_L1_error)
  __pyx_v_del_items = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":532
 * 
 *     # collect new values
 *     new_items = []             # <<<<<<<<<<<<<<
 *     tag = target.tag
 *     for item in items:
 */
  __Pyx_TraceLine(532,0,__PYX_ERR(0, 532, __pyx_L1_error))
  __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_new_items = ((PyObject*)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":533
 *     # collect new values
 *     new_items = []
 *     tag = target.tag             # <<<<<<<<<<<<<<
 *     for item in items:
 *         if isinstance(item, _Element):
 */
  __Pyx_TraceLine(533,0,__PYX_ERR(0, 533, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_target), __pyx_n_s_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_v_tag = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":534
 *     new_items = []
 *     tag = target.tag
 *     for item in items:             # <<<<<<<<<<<<<<
 *         if isinstance(item, _Element):
 *             # deep copy the new element
 */
  __Pyx_TraceLine(534,0,__PYX_ERR(0, 534, __pyx_L1_error))
  if (likely(PyList_CheckExact(__pyx_v_items)) || PyTuple_CheckExact(__pyx_v_items)) {
    __pyx_t_4 = __pyx_v_items; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_3 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_items); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 534, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_6 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
        #else
        __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 534, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
      } else {
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
        #else
        __pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 534, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
      }
    } else {
      __pyx_t_6 = __pyx_t_5(__pyx_t_4);
      if (unlikely(!__pyx_t_6)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 534, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_6);
    }
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "lxml/objectify.pyx":535
 *     tag = target.tag
 *     for item in items:
 *         if isinstance(item, _Element):             # <<<<<<<<<<<<<<
 *             # deep copy the new element
 *             new_element = cetree.deepcopyNodeToDocument(
 */
    __Pyx_TraceLine(535,0,__PYX_ERR(0, 535, __pyx_L1_error))
    __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_item, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":538
 *             # deep copy the new element
 *             new_element = cetree.deepcopyNodeToDocument(
 *                 target._doc, (<_Element>item)._c_node)             # <<<<<<<<<<<<<<
 *             new_element.tag = tag
 *         else:
 */
      __Pyx_TraceLine(538,0,__PYX_ERR(0, 538, __pyx_L1_error))
      __pyx_t_6 = ((PyObject *)__pyx_v_target->_doc);
      __Pyx_INCREF(__pyx_t_6);

      /* "lxml/objectify.pyx":537
 *         if isinstance(item, _Element):
 *             # deep copy the new element
 *             new_element = cetree.deepcopyNodeToDocument(             # <<<<<<<<<<<<<<
 *                 target._doc, (<_Element>item)._c_node)
 *             new_element.tag = tag
 */
      __Pyx_TraceLine(537,0,__PYX_ERR(0, 537, __pyx_L1_error))
      __pyx_t_7 = ((PyObject *)deepcopyNodeToDocument(((struct LxmlDocument *)__pyx_t_6), ((struct LxmlElement *)__pyx_v_item)->_c_node)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_v_new_element, ((struct LxmlElement *)__pyx_t_7));
      __pyx_t_7 = 0;

      /* "lxml/objectify.pyx":539
 *             new_element = cetree.deepcopyNodeToDocument(
 *                 target._doc, (<_Element>item)._c_node)
 *             new_element.tag = tag             # <<<<<<<<<<<<<<
 *         else:
 *             new_element = cetree.makeElement(
 */
      __Pyx_TraceLine(539,0,__PYX_ERR(0, 539, __pyx_L1_error))
      if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_new_element), __pyx_n_s_tag, __pyx_v_tag) < 0) __PYX_ERR(0, 539, __pyx_L1_error)

      /* "lxml/objectify.pyx":535
 *     tag = target.tag
 *     for item in items:
 *         if isinstance(item, _Element):             # <<<<<<<<<<<<<<
 *             # deep copy the new element
 *             new_element = cetree.deepcopyNodeToDocument(
 */
      goto __pyx_L7;
    }

    /* "lxml/objectify.pyx":541
 *             new_element.tag = tag
 *         else:
 *             new_element = cetree.makeElement(             # <<<<<<<<<<<<<<
 *                 tag, target._doc, None, None, None, None, None)
 *             _setElementValue(new_element, item)
 */
    __Pyx_TraceLine(541,0,__PYX_ERR(0, 541, __pyx_L1_error))
    /*else*/ {

      /* "lxml/objectify.pyx":542
 *         else:
 *             new_element = cetree.makeElement(
 *                 tag, target._doc, None, None, None, None, None)             # <<<<<<<<<<<<<<
 *             _setElementValue(new_element, item)
 *         new_items.append(new_element)
 */
      __Pyx_TraceLine(542,0,__PYX_ERR(0, 542, __pyx_L1_error))
      __pyx_t_7 = ((PyObject *)__pyx_v_target->_doc);
      __Pyx_INCREF(__pyx_t_7);

      /* "lxml/objectify.pyx":541
 *             new_element.tag = tag
 *         else:
 *             new_element = cetree.makeElement(             # <<<<<<<<<<<<<<
 *                 tag, target._doc, None, None, None, None, None)
 *             _setElementValue(new_element, item)
 */
      __Pyx_TraceLine(541,0,__PYX_ERR(0, 541, __pyx_L1_error))
      __pyx_t_6 = ((PyObject *)makeElement(__pyx_v_tag, ((struct LxmlDocument *)__pyx_t_7), Py_None, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 541, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF_SET(__pyx_v_new_element, ((struct LxmlElement *)__pyx_t_6));
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":543
 *             new_element = cetree.makeElement(
 *                 tag, target._doc, None, None, None, None, None)
 *             _setElementValue(new_element, item)             # <<<<<<<<<<<<<<
 *         new_items.append(new_element)
 * 
 */
      __Pyx_TraceLine(543,0,__PYX_ERR(0, 543, __pyx_L1_error))
      __pyx_t_6 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_item); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 543, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __pyx_L7:;

    /* "lxml/objectify.pyx":544
 *                 tag, target._doc, None, None, None, None, None)
 *             _setElementValue(new_element, item)
 *         new_items.append(new_element)             # <<<<<<<<<<<<<<
 * 
 *     # sanity check - raise what a list would raise
 */
    __Pyx_TraceLine(544,0,__PYX_ERR(0, 544, __pyx_L1_error))
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_new_items, ((PyObject *)__pyx_v_new_element)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 544, __pyx_L1_error)

    /* "lxml/objectify.pyx":534
 *     new_items = []
 *     tag = target.tag
 *     for item in items:             # <<<<<<<<<<<<<<
 *         if isinstance(item, _Element):
 *             # deep copy the new element
 */
    __Pyx_TraceLine(534,0,__PYX_ERR(0, 534, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":547
 * 
 *     # sanity check - raise what a list would raise
 *     if c_step != 1 and len(del_items) != len(new_items):             # <<<<<<<<<<<<<<
 *         raise ValueError, \
 *             f"attempt to assign sequence of size {len(new_items)} to extended slice of size {len(del_items)}"
 */
  __Pyx_TraceLine(547,0,__PYX_ERR(0, 547, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_c_step != 1) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L9_bool_binop_done;
  }
  if (unlikely(__pyx_v_del_items == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 547, __pyx_L1_error)
  }
  __pyx_t_3 = PyList_GET_SIZE(__pyx_v_del_items); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 547, __pyx_L1_error)
  __pyx_t_9 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 547, __pyx_L1_error)
  __pyx_t_2 = ((__pyx_t_3 != __pyx_t_9) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L9_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":549
 *     if c_step != 1 and len(del_items) != len(new_items):
 *         raise ValueError, \
 *             f"attempt to assign sequence of size {len(new_items)} to extended slice of size {len(del_items)}"             # <<<<<<<<<<<<<<
 * 
 *     # replace existing items
 */
    __Pyx_TraceLine(549,0,__PYX_ERR(0, 549, __pyx_L1_error))
    __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = 0;
    __pyx_t_10 = 127;
    __Pyx_INCREF(__pyx_kp_u_attempt_to_assign_sequence_of_si);
    __pyx_t_9 += 35;
    __Pyx_GIVEREF(__pyx_kp_u_attempt_to_assign_sequence_of_si);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_attempt_to_assign_sequence_of_si);
    __pyx_t_3 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 549, __pyx_L1_error)
    __pyx_t_6 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_3, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_INCREF(__pyx_kp_u_to_extended_slice_of_size);
    __pyx_t_9 += 27;
    __Pyx_GIVEREF(__pyx_kp_u_to_extended_slice_of_size);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_to_extended_slice_of_size);
    if (unlikely(__pyx_v_del_items == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(0, 549, __pyx_L1_error)
    }
    __pyx_t_3 = PyList_GET_SIZE(__pyx_v_del_items); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 549, __pyx_L1_error)
    __pyx_t_6 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_t_3, 0, ' ', 'd'); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_6, 0, 0);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __PYX_ERR(0, 548, __pyx_L1_error)

    /* "lxml/objectify.pyx":547
 * 
 *     # sanity check - raise what a list would raise
 *     if c_step != 1 and len(del_items) != len(new_items):             # <<<<<<<<<<<<<<
 *         raise ValueError, \
 *             f"attempt to assign sequence of size {len(new_items)} to extended slice of size {len(del_items)}"
 */
  }

  /* "lxml/objectify.pyx":552
 * 
 *     # replace existing items
 *     pos = 0             # <<<<<<<<<<<<<<
 *     parent = target.getparent()
 *     replace = parent.replace
 */
  __Pyx_TraceLine(552,0,__PYX_ERR(0, 552, __pyx_L1_error))
  __pyx_v_pos = 0;

  /* "lxml/objectify.pyx":553
 *     # replace existing items
 *     pos = 0
 *     parent = target.getparent()             # <<<<<<<<<<<<<<
 *     replace = parent.replace
 *     while pos < len(new_items) and pos < len(del_items):
 */
  __Pyx_TraceLine(553,0,__PYX_ERR(0, 553, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_target), __pyx_n_s_getparent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  if (__pyx_t_7) {
    __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 553, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  } else {
    __pyx_t_6 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 553, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 553, __pyx_L1_error)
  __pyx_v_parent = ((struct LxmlElement *)__pyx_t_6);
  __pyx_t_6 = 0;

  /* "lxml/objectify.pyx":554
 *     pos = 0
 *     parent = target.getparent()
 *     replace = parent.replace             # <<<<<<<<<<<<<<
 *     while pos < len(new_items) and pos < len(del_items):
 *         replace(del_items[pos], new_items[pos])
 */
  __Pyx_TraceLine(554,0,__PYX_ERR(0, 554, __pyx_L1_error))
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parent), __pyx_n_s_replace); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 554, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v_replace = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "lxml/objectify.pyx":555
 *     parent = target.getparent()
 *     replace = parent.replace
 *     while pos < len(new_items) and pos < len(del_items):             # <<<<<<<<<<<<<<
 *         replace(del_items[pos], new_items[pos])
 *         pos += 1
 */
  __Pyx_TraceLine(555,0,__PYX_ERR(0, 555, __pyx_L1_error))
  while (1) {
    __pyx_t_9 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 555, __pyx_L1_error)
    __pyx_t_2 = ((__pyx_v_pos < __pyx_t_9) != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L13_bool_binop_done;
    }
    if (unlikely(__pyx_v_del_items == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(0, 555, __pyx_L1_error)
    }
    __pyx_t_9 = PyList_GET_SIZE(__pyx_v_del_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 555, __pyx_L1_error)
    __pyx_t_2 = ((__pyx_v_pos < __pyx_t_9) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L13_bool_binop_done:;
    if (!__pyx_t_1) break;

    /* "lxml/objectify.pyx":556
 *     replace = parent.replace
 *     while pos < len(new_items) and pos < len(del_items):
 *         replace(del_items[pos], new_items[pos])             # <<<<<<<<<<<<<<
 *         pos += 1
 *     # remove leftover items
 */
    __Pyx_TraceLine(556,0,__PYX_ERR(0, 556, __pyx_L1_error))
    if (unlikely(__pyx_v_del_items == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 556, __pyx_L1_error)
    }
    __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_del_items, __pyx_v_pos, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = __Pyx_GetItemInt_List(__pyx_v_new_items, __pyx_v_pos, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_INCREF(__pyx_v_replace);
    __pyx_t_11 = __pyx_v_replace; __pyx_t_12 = NULL;
    __pyx_t_13 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
      if (likely(__pyx_t_12)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_11, function);
        __pyx_t_13 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_11)) {
      PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_t_4, __pyx_t_7};
      __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 556, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_11)) {
      PyObject *__pyx_temp[3] = {__pyx_t_12, __pyx_t_4, __pyx_t_7};
      __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_11, __pyx_temp+1-__pyx_t_13, 2+__pyx_t_13); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 556, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    } else
    #endif
    {
      __pyx_t_14 = PyTuple_New(2+__pyx_t_13); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      if (__pyx_t_12) {
        __Pyx_GIVEREF(__pyx_t_12); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_12); __pyx_t_12 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_14, 0+__pyx_t_13, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_14, 1+__pyx_t_13, __pyx_t_7);
      __pyx_t_4 = 0;
      __pyx_t_7 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_11, __pyx_t_14, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 556, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
    }
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "lxml/objectify.pyx":557
 *     while pos < len(new_items) and pos < len(del_items):
 *         replace(del_items[pos], new_items[pos])
 *         pos += 1             # <<<<<<<<<<<<<<
 *     # remove leftover items
 *     if pos < len(del_items):
 */
    __Pyx_TraceLine(557,0,__PYX_ERR(0, 557, __pyx_L1_error))
    __pyx_v_pos = (__pyx_v_pos + 1);
  }

  /* "lxml/objectify.pyx":559
 *         pos += 1
 *     # remove leftover items
 *     if pos < len(del_items):             # <<<<<<<<<<<<<<
 *         remove = parent.remove
 *         while pos < len(del_items):
 */
  __Pyx_TraceLine(559,0,__PYX_ERR(0, 559, __pyx_L1_error))
  if (unlikely(__pyx_v_del_items == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 559, __pyx_L1_error)
  }
  __pyx_t_9 = PyList_GET_SIZE(__pyx_v_del_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 559, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_v_pos < __pyx_t_9) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":560
 *     # remove leftover items
 *     if pos < len(del_items):
 *         remove = parent.remove             # <<<<<<<<<<<<<<
 *         while pos < len(del_items):
 *             remove(del_items[pos])
 */
    __Pyx_TraceLine(560,0,__PYX_ERR(0, 560, __pyx_L1_error))
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parent), __pyx_n_s_remove); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_v_remove = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "lxml/objectify.pyx":561
 *     if pos < len(del_items):
 *         remove = parent.remove
 *         while pos < len(del_items):             # <<<<<<<<<<<<<<
 *             remove(del_items[pos])
 *             pos += 1
 */
    __Pyx_TraceLine(561,0,__PYX_ERR(0, 561, __pyx_L1_error))
    while (1) {
      if (unlikely(__pyx_v_del_items == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
        __PYX_ERR(0, 561, __pyx_L1_error)
      }
      __pyx_t_9 = PyList_GET_SIZE(__pyx_v_del_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 561, __pyx_L1_error)
      __pyx_t_1 = ((__pyx_v_pos < __pyx_t_9) != 0);
      if (!__pyx_t_1) break;

      /* "lxml/objectify.pyx":562
 *         remove = parent.remove
 *         while pos < len(del_items):
 *             remove(del_items[pos])             # <<<<<<<<<<<<<<
 *             pos += 1
 *     # append remaining new items
 */
      __Pyx_TraceLine(562,0,__PYX_ERR(0, 562, __pyx_L1_error))
      if (unlikely(__pyx_v_del_items == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 562, __pyx_L1_error)
      }
      __pyx_t_11 = __Pyx_GetItemInt_List(__pyx_v_del_items, __pyx_v_pos, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 562, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_INCREF(__pyx_v_remove);
      __pyx_t_14 = __pyx_v_remove; __pyx_t_7 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
        }
      }
      if (!__pyx_t_7) {
        __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_t_11); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        __Pyx_GOTREF(__pyx_t_6);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_14)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_11};
          __pyx_t_6 = __Pyx_PyFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_14)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_11};
          __pyx_t_6 = __Pyx_PyCFunction_FastCall(__pyx_t_14, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        } else
        #endif
        {
          __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 562, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_7); __pyx_t_7 = NULL;
          __Pyx_GIVEREF(__pyx_t_11);
          PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_11);
          __pyx_t_11 = 0;
          __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 562, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":563
 *         while pos < len(del_items):
 *             remove(del_items[pos])
 *             pos += 1             # <<<<<<<<<<<<<<
 *     # append remaining new items
 *     if pos < len(new_items):
 */
      __Pyx_TraceLine(563,0,__PYX_ERR(0, 563, __pyx_L1_error))
      __pyx_v_pos = (__pyx_v_pos + 1);
    }

    /* "lxml/objectify.pyx":559
 *         pos += 1
 *     # remove leftover items
 *     if pos < len(del_items):             # <<<<<<<<<<<<<<
 *         remove = parent.remove
 *         while pos < len(del_items):
 */
  }

  /* "lxml/objectify.pyx":565
 *             pos += 1
 *     # append remaining new items
 *     if pos < len(new_items):             # <<<<<<<<<<<<<<
 *         # the sanity check above guarantees (step == 1)
 *         if pos > 0:
 */
  __Pyx_TraceLine(565,0,__PYX_ERR(0, 565, __pyx_L1_error))
  __pyx_t_9 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 565, __pyx_L1_error)
  __pyx_t_1 = ((__pyx_v_pos < __pyx_t_9) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":567
 *     if pos < len(new_items):
 *         # the sanity check above guarantees (step == 1)
 *         if pos > 0:             # <<<<<<<<<<<<<<
 *             item = new_items[pos-1]
 *         else:
 */
    __Pyx_TraceLine(567,0,__PYX_ERR(0, 567, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_pos > 0) != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":568
 *         # the sanity check above guarantees (step == 1)
 *         if pos > 0:
 *             item = new_items[pos-1]             # <<<<<<<<<<<<<<
 *         else:
 *             if (<slice>sliceobject).start > 0:
 */
      __Pyx_TraceLine(568,0,__PYX_ERR(0, 568, __pyx_L1_error))
      __pyx_t_9 = (__pyx_v_pos - 1);
      __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_new_items, __pyx_t_9, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":567
 *     if pos < len(new_items):
 *         # the sanity check above guarantees (step == 1)
 *         if pos > 0:             # <<<<<<<<<<<<<<
 *             item = new_items[pos-1]
 *         else:
 */
      goto __pyx_L19;
    }

    /* "lxml/objectify.pyx":570
 *             item = new_items[pos-1]
 *         else:
 *             if (<slice>sliceobject).start > 0:             # <<<<<<<<<<<<<<
 *                 c_node = parent._c_node.children
 *             else:
 */
    __Pyx_TraceLine(570,0,__PYX_ERR(0, 570, __pyx_L1_error))
    /*else*/ {
      __pyx_t_6 = PyObject_RichCompare(((PySliceObject*)((PyObject*)__pyx_v_sliceobject))->start, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 570, __pyx_L1_error)
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 570, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":571
 *         else:
 *             if (<slice>sliceobject).start > 0:
 *                 c_node = parent._c_node.children             # <<<<<<<<<<<<<<
 *             else:
 *                 c_node = parent._c_node.last
 */
        __Pyx_TraceLine(571,0,__PYX_ERR(0, 571, __pyx_L1_error))
        __pyx_t_15 = __pyx_v_parent->_c_node->children;
        __pyx_v_c_node = __pyx_t_15;

        /* "lxml/objectify.pyx":570
 *             item = new_items[pos-1]
 *         else:
 *             if (<slice>sliceobject).start > 0:             # <<<<<<<<<<<<<<
 *                 c_node = parent._c_node.children
 *             else:
 */
        goto __pyx_L20;
      }

      /* "lxml/objectify.pyx":573
 *                 c_node = parent._c_node.children
 *             else:
 *                 c_node = parent._c_node.last             # <<<<<<<<<<<<<<
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
 */
      __Pyx_TraceLine(573,0,__PYX_ERR(0, 573, __pyx_L1_error))
      /*else*/ {
        __pyx_t_15 = __pyx_v_parent->_c_node->last;
        __pyx_v_c_node = __pyx_t_15;
      }
      __pyx_L20:;

      /* "lxml/objectify.pyx":576
 *             c_node = _findFollowingSibling(
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
 *                 (<slice>sliceobject).start - 1)             # <<<<<<<<<<<<<<
 *             if c_node is NULL:
 *                 while pos < len(new_items):
 */
      __Pyx_TraceLine(576,0,__PYX_ERR(0, 576, __pyx_L1_error))
      __pyx_t_6 = __Pyx_PyInt_SubtractObjC(((PySliceObject*)((PyObject*)__pyx_v_sliceobject))->start, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 576, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_6); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 576, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":574
 *             else:
 *                 c_node = parent._c_node.last
 *             c_node = _findFollowingSibling(             # <<<<<<<<<<<<<<
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
 *                 (<slice>sliceobject).start - 1)
 */
      __Pyx_TraceLine(574,0,__PYX_ERR(0, 574, __pyx_L1_error))
      __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_target->_c_node), __pyx_v_target->_c_node->name, __pyx_t_9);

      /* "lxml/objectify.pyx":577
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
 *                 (<slice>sliceobject).start - 1)
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
 *                 while pos < len(new_items):
 *                     cetree.appendChildToElement(parent, new_items[pos])
 */
      __Pyx_TraceLine(577,0,__PYX_ERR(0, 577, __pyx_L1_error))
      __pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":578
 *                 (<slice>sliceobject).start - 1)
 *             if c_node is NULL:
 *                 while pos < len(new_items):             # <<<<<<<<<<<<<<
 *                     cetree.appendChildToElement(parent, new_items[pos])
 *                     pos += 1
 */
        __Pyx_TraceLine(578,0,__PYX_ERR(0, 578, __pyx_L1_error))
        while (1) {
          __pyx_t_9 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 578, __pyx_L1_error)
          __pyx_t_1 = ((__pyx_v_pos < __pyx_t_9) != 0);
          if (!__pyx_t_1) break;

          /* "lxml/objectify.pyx":579
 *             if c_node is NULL:
 *                 while pos < len(new_items):
 *                     cetree.appendChildToElement(parent, new_items[pos])             # <<<<<<<<<<<<<<
 *                     pos += 1
 *                 return
 */
          __Pyx_TraceLine(579,0,__PYX_ERR(0, 579, __pyx_L1_error))
          __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_new_items, __pyx_v_pos, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 579, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 579, __pyx_L1_error)
          __pyx_t_13 = appendChildToElement(__pyx_v_parent, ((struct LxmlElement *)__pyx_t_6)); if (unlikely(__pyx_t_13 == ((int)-1))) __PYX_ERR(0, 579, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

          /* "lxml/objectify.pyx":580
 *                 while pos < len(new_items):
 *                     cetree.appendChildToElement(parent, new_items[pos])
 *                     pos += 1             # <<<<<<<<<<<<<<
 *                 return
 *             item = cetree.elementFactory(parent._doc, c_node)
 */
          __Pyx_TraceLine(580,0,__PYX_ERR(0, 580, __pyx_L1_error))
          __pyx_v_pos = (__pyx_v_pos + 1);
        }

        /* "lxml/objectify.pyx":581
 *                     cetree.appendChildToElement(parent, new_items[pos])
 *                     pos += 1
 *                 return             # <<<<<<<<<<<<<<
 *             item = cetree.elementFactory(parent._doc, c_node)
 *         while pos < len(new_items):
 */
        __Pyx_TraceLine(581,0,__PYX_ERR(0, 581, __pyx_L1_error))
        __Pyx_XDECREF(__pyx_r);
        __pyx_r = Py_None; __Pyx_INCREF(Py_None);
        goto __pyx_L0;

        /* "lxml/objectify.pyx":577
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
 *                 (<slice>sliceobject).start - 1)
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
 *                 while pos < len(new_items):
 *                     cetree.appendChildToElement(parent, new_items[pos])
 */
      }

      /* "lxml/objectify.pyx":582
 *                     pos += 1
 *                 return
 *             item = cetree.elementFactory(parent._doc, c_node)             # <<<<<<<<<<<<<<
 *         while pos < len(new_items):
 *             add = item.addnext
 */
      __Pyx_TraceLine(582,0,__PYX_ERR(0, 582, __pyx_L1_error))
      __pyx_t_6 = ((PyObject *)__pyx_v_parent->_doc);
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_14 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_6), __pyx_v_c_node)); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 582, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_14);
      __pyx_t_14 = 0;
    }
    __pyx_L19:;

    /* "lxml/objectify.pyx":583
 *                 return
 *             item = cetree.elementFactory(parent._doc, c_node)
 *         while pos < len(new_items):             # <<<<<<<<<<<<<<
 *             add = item.addnext
 *             item = new_items[pos]
 */
    __Pyx_TraceLine(583,0,__PYX_ERR(0, 583, __pyx_L1_error))
    while (1) {
      __pyx_t_9 = PyList_GET_SIZE(__pyx_v_new_items); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 583, __pyx_L1_error)
      __pyx_t_1 = ((__pyx_v_pos < __pyx_t_9) != 0);
      if (!__pyx_t_1) break;

      /* "lxml/objectify.pyx":584
 *             item = cetree.elementFactory(parent._doc, c_node)
 *         while pos < len(new_items):
 *             add = item.addnext             # <<<<<<<<<<<<<<
 *             item = new_items[pos]
 *             add(item)
 */
      __Pyx_TraceLine(584,0,__PYX_ERR(0, 584, __pyx_L1_error))
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_addnext); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 584, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_XDECREF_SET(__pyx_v_add, __pyx_t_14);
      __pyx_t_14 = 0;

      /* "lxml/objectify.pyx":585
 *         while pos < len(new_items):
 *             add = item.addnext
 *             item = new_items[pos]             # <<<<<<<<<<<<<<
 *             add(item)
 *             pos += 1
 */
      __Pyx_TraceLine(585,0,__PYX_ERR(0, 585, __pyx_L1_error))
      __pyx_t_14 = __Pyx_GetItemInt_List(__pyx_v_new_items, __pyx_v_pos, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 585, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_14);
      __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_14);
      __pyx_t_14 = 0;

      /* "lxml/objectify.pyx":586
 *             add = item.addnext
 *             item = new_items[pos]
 *             add(item)             # <<<<<<<<<<<<<<
 *             pos += 1
 * 
 */
      __Pyx_TraceLine(586,0,__PYX_ERR(0, 586, __pyx_L1_error))
      __Pyx_INCREF(__pyx_v_add);
      __pyx_t_6 = __pyx_v_add; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_item); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 586, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_14);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_6)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_item};
          __pyx_t_14 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 586, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_14);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_item};
          __pyx_t_14 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 586, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_14);
        } else
        #endif
        {
          __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 586, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_11);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(__pyx_v_item);
          __Pyx_GIVEREF(__pyx_v_item);
          PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_v_item);
          __pyx_t_14 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_11, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 586, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_14);
          __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;

      /* "lxml/objectify.pyx":587
 *             item = new_items[pos]
 *             add(item)
 *             pos += 1             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
      __Pyx_TraceLine(587,0,__PYX_ERR(0, 587, __pyx_L1_error))
      __pyx_v_pos = (__pyx_v_pos + 1);
    }

    /* "lxml/objectify.pyx":565
 *             pos += 1
 *     # append remaining new items
 *     if pos < len(new_items):             # <<<<<<<<<<<<<<
 *         # the sanity check above guarantees (step == 1)
 *         if pos > 0:
 */
  }

  /* "lxml/objectify.pyx":518
 *     cetree.setNodeText(element._c_node, value)
 * 
 * cdef _setSlice(sliceobject, _Element target, items):             # <<<<<<<<<<<<<<
 *     cdef _Element parent
 *     cdef tree.xmlNode* c_node
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("lxml.objectify._setSlice", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_parent);
  __Pyx_XDECREF(__pyx_v_del_items);
  __Pyx_XDECREF(__pyx_v_new_items);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF((PyObject *)__pyx_v_new_element);
  __Pyx_XDECREF(__pyx_v_replace);
  __Pyx_XDECREF(__pyx_v_remove);
  __Pyx_XDECREF(__pyx_v_add);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":597
 *     """
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5pyval_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5pyval_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_5pyval___get__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 597, 0, __PYX_ERR(0, 597, __pyx_L1_error));

  /* "lxml/objectify.pyx":598
 *     property pyval:
 *         def __get__(self):
 *             return textOf(self._c_node)             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_TraceLine(598,0,__PYX_ERR(0, 598, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":597
 *     """
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.pyval.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":600
 *             return textOf(self._c_node)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return textOf(self._c_node) or ''
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_1__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_1__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[0], 600, 0, __PYX_ERR(0, 600, __pyx_L1_error));

  /* "lxml/objectify.pyx":601
 * 
 *     def __str__(self):
 *         return textOf(self._c_node) or ''             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(601,0,__PYX_ERR(0, 601, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 601, __pyx_L1_error)
  if (!__pyx_t_3) {
    __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_INCREF(__pyx_kp_s__3);
  __pyx_t_1 = __pyx_kp_s__3;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":600
 *             return textOf(self._c_node)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return textOf(self._c_node) or ''
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":603
 *         return textOf(self._c_node) or ''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return strrepr(textOf(self._c_node) or '')
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_2__repr__(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_2__repr__(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 603, 0, __PYX_ERR(0, 603, __pyx_L1_error));

  /* "lxml/objectify.pyx":604
 * 
 *     def __repr__(self):
 *         return strrepr(textOf(self._c_node) or '')             # <<<<<<<<<<<<<<
 * 
 *     def _setText(self, s):
 */
  __Pyx_TraceLine(604,0,__PYX_ERR(0, 604, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 604, __pyx_L1_error)
  if (!__pyx_t_3) {
    __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_INCREF(__pyx_kp_s__3);
  __pyx_t_1 = __pyx_kp_s__3;
  __pyx_L3_bool_binop_done:;
  __pyx_t_2 = __pyx_f_4lxml_9objectify_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 604, __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;

  /* "lxml/objectify.pyx":603
 *         return textOf(self._c_node) or ''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return strrepr(textOf(self._c_node) or '')
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":606
 *         return strrepr(textOf(self._c_node) or '')
 * 
 *     def _setText(self, s):             # <<<<<<<<<<<<<<
 *         u"""For use in subclasses only. Don't use unless you know what you are
 *         doing.
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5_setText(PyObject *__pyx_v_self, PyObject *__pyx_v_s); /*proto*/
static char __pyx_doc_4lxml_9objectify_22ObjectifiedDataElement_4_setText[] = "For use in subclasses only. Don't use unless you know what you are\n        doing.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_22ObjectifiedDataElement_5_setText = {"_setText", (PyCFunction)__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5_setText, METH_O, __pyx_doc_4lxml_9objectify_22ObjectifiedDataElement_4_setText};
static PyObject *__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5_setText(PyObject *__pyx_v_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_setText (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_4_setText(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self), ((PyObject *)__pyx_v_s));

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

static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_4_setText(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *__pyx_v_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_TraceFrameInit(__pyx_codeobj__11)
  __Pyx_RefNannySetupContext("_setText", 0);
  __Pyx_TraceCall("_setText", __pyx_f[0], 606, 0, __PYX_ERR(0, 606, __pyx_L1_error));

  /* "lxml/objectify.pyx":610
 *         doing.
 *         """
 *         cetree.setNodeText(self._c_node, s)             # <<<<<<<<<<<<<<
 * 
 * cdef class NumberElement(ObjectifiedDataElement):
 */
  __Pyx_TraceLine(610,0,__PYX_ERR(0, 610, __pyx_L1_error))
  __pyx_t_1 = setNodeText(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base._c_node, __pyx_v_s); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 610, __pyx_L1_error)

  /* "lxml/objectify.pyx":606
 *         return strrepr(textOf(self._c_node) or '')
 * 
 *     def _setText(self, s):             # <<<<<<<<<<<<<<
 *         u"""For use in subclasses only. Don't use unless you know what you are
 *         doing.
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement._setText", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":614
 * cdef class NumberElement(ObjectifiedDataElement):
 *     cdef object _parse_value
 *     def _setValueParser(self, function):             # <<<<<<<<<<<<<<
 *         u"""Set the function that parses the Python value from a string.
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_1_setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_v_function); /*proto*/
static char __pyx_doc_4lxml_9objectify_13NumberElement__setValueParser[] = "Set the function that parses the Python value from a string.\n\n        Do not use this unless you know what you are doing.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_13NumberElement_1_setValueParser = {"_setValueParser", (PyCFunction)__pyx_pw_4lxml_9objectify_13NumberElement_1_setValueParser, METH_O, __pyx_doc_4lxml_9objectify_13NumberElement__setValueParser};
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_1_setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_v_function) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_setValueParser (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement__setValueParser(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self), ((PyObject *)__pyx_v_function));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self, PyObject *__pyx_v_function) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_TraceFrameInit(__pyx_codeobj__12)
  __Pyx_RefNannySetupContext("_setValueParser", 0);
  __Pyx_TraceCall("_setValueParser", __pyx_f[0], 614, 0, __PYX_ERR(0, 614, __pyx_L1_error));

  /* "lxml/objectify.pyx":619
 *         Do not use this unless you know what you are doing.
 *         """
 *         self._parse_value = function             # <<<<<<<<<<<<<<
 * 
 *     property pyval:
 */
  __Pyx_TraceLine(619,0,__PYX_ERR(0, 619, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_function);
  __Pyx_GIVEREF(__pyx_v_function);
  __Pyx_GOTREF(__pyx_v_self->_parse_value);
  __Pyx_DECREF(__pyx_v_self->_parse_value);
  __pyx_v_self->_parse_value = __pyx_v_function;

  /* "lxml/objectify.pyx":614
 * cdef class NumberElement(ObjectifiedDataElement):
 *     cdef object _parse_value
 *     def _setValueParser(self, function):             # <<<<<<<<<<<<<<
 *         u"""Set the function that parses the Python value from a string.
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NumberElement._setValueParser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":622
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return _parseNumber(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_5pyval_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_5pyval_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_5pyval___get__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 622, 0, __PYX_ERR(0, 622, __pyx_L1_error));

  /* "lxml/objectify.pyx":623
 *     property pyval:
 *         def __get__(self):
 *             return _parseNumber(self)             # <<<<<<<<<<<<<<
 * 
 *     def __int__(self):
 */
  __Pyx_TraceLine(623,0,__PYX_ERR(0, 623, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":622
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return _parseNumber(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.pyval.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":625
 *             return _parseNumber(self)
 * 
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return int(_parseNumber(self))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_3__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_3__int__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_2__int__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_2__int__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__int__", 0);
  __Pyx_TraceCall("__int__", __pyx_f[0], 625, 0, __PYX_ERR(0, 625, __pyx_L1_error));

  /* "lxml/objectify.pyx":626
 * 
 *     def __int__(self):
 *         return int(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __long__(self):
 */
  __Pyx_TraceLine(626,0,__PYX_ERR(0, 626, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 626, __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;

  /* "lxml/objectify.pyx":625
 *             return _parseNumber(self)
 * 
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return int(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":628
 *         return int(_parseNumber(self))
 * 
 *     def __long__(self):             # <<<<<<<<<<<<<<
 *         return long(_parseNumber(self))
 * 
 */

/* Python wrapper */
#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_5__long__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_5__long__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__long__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_4__long__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3)*/

#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_4__long__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__long__", 0);
  __Pyx_TraceCall("__long__", __pyx_f[0], 628, 0, __PYX_ERR(0, 628, __pyx_L1_error));

  /* "lxml/objectify.pyx":629
 * 
 *     def __long__(self):
 *         return long(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __float__(self):
 */
  __Pyx_TraceLine(629,0,__PYX_ERR(0, 629, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyLong_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 629, __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;

  /* "lxml/objectify.pyx":628
 *         return int(_parseNumber(self))
 * 
 *     def __long__(self):             # <<<<<<<<<<<<<<
 *         return long(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__long__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3)*/

/* "lxml/objectify.pyx":631
 *         return long(_parseNumber(self))
 * 
 *     def __float__(self):             # <<<<<<<<<<<<<<
 *         return float(_parseNumber(self))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_7__float__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_7__float__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__float__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_6__float__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_6__float__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__float__", 0);
  __Pyx_TraceCall("__float__", __pyx_f[0], 631, 0, __PYX_ERR(0, 631, __pyx_L1_error));

  /* "lxml/objectify.pyx":632
 * 
 *     def __float__(self):
 *         return float(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __complex__(self):
 */
  __Pyx_TraceLine(632,0,__PYX_ERR(0, 632, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Float(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 632, __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;

  /* "lxml/objectify.pyx":631
 *         return long(_parseNumber(self))
 * 
 *     def __float__(self):             # <<<<<<<<<<<<<<
 *         return float(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__float__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":634
 *         return float(_parseNumber(self))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(_parseNumber(self))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_9__complex__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_13NumberElement_9__complex__ = {"__complex__", (PyCFunction)__pyx_pw_4lxml_9objectify_13NumberElement_9__complex__, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_9__complex__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__complex__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_8__complex__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_8__complex__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__13)
  __Pyx_RefNannySetupContext("__complex__", 0);
  __Pyx_TraceCall("__complex__", __pyx_f[0], 634, 0, __PYX_ERR(0, 634, __pyx_L1_error));

  /* "lxml/objectify.pyx":635
 * 
 *     def __complex__(self):
 *         return complex(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_TraceLine(635,0,__PYX_ERR(0, 635, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyComplex_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 635, __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;

  /* "lxml/objectify.pyx":634
 *         return float(_parseNumber(self))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__complex__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":637
 *         return complex(_parseNumber(self))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return unicode(_parseNumber(self))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_11__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_11__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_10__str__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_10__str__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[0], 637, 0, __PYX_ERR(0, 637, __pyx_L1_error));

  /* "lxml/objectify.pyx":638
 * 
 *     def __str__(self):
 *         return unicode(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(638,0,__PYX_ERR(0, 638, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 638, __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;

  /* "lxml/objectify.pyx":637
 *         return complex(_parseNumber(self))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return unicode(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":640
 *         return unicode(_parseNumber(self))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(_parseNumber(self))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_13__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_13__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_12__repr__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_12__repr__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 640, 0, __PYX_ERR(0, 640, __pyx_L1_error));

  /* "lxml/objectify.pyx":641
 * 
 *     def __repr__(self):
 *         return repr(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __oct__(self):
 */
  __Pyx_TraceLine(641,0,__PYX_ERR(0, 641, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 641, __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;

  /* "lxml/objectify.pyx":640
 *         return unicode(_parseNumber(self))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":643
 *         return repr(_parseNumber(self))
 * 
 *     def __oct__(self):             # <<<<<<<<<<<<<<
 *         return oct(_parseNumber(self))
 * 
 */

/* Python wrapper */
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_15__oct__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_15__oct__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__oct__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_14__oct__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_14__oct__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__oct__", 0);
  __Pyx_TraceCall("__oct__", __pyx_f[0], 643, 0, __PYX_ERR(0, 643, __pyx_L1_error));

  /* "lxml/objectify.pyx":644
 * 
 *     def __oct__(self):
 *         return oct(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __hex__(self):
 */
  __Pyx_TraceLine(644,0,__PYX_ERR(0, 644, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_oct, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 644, __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;

  /* "lxml/objectify.pyx":643
 *         return repr(_parseNumber(self))
 * 
 *     def __oct__(self):             # <<<<<<<<<<<<<<
 *         return oct(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__oct__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

/* "lxml/objectify.pyx":646
 *         return oct(_parseNumber(self))
 * 
 *     def __hex__(self):             # <<<<<<<<<<<<<<
 *         return hex(_parseNumber(self))
 * 
 */

/* Python wrapper */
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_17__hex__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_17__hex__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hex__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_16__hex__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_16__hex__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__hex__", 0);
  __Pyx_TraceCall("__hex__", __pyx_f[0], 646, 0, __PYX_ERR(0, 646, __pyx_L1_error));

  /* "lxml/objectify.pyx":647
 * 
 *     def __hex__(self):
 *         return hex(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, other, int op):
 */
  __Pyx_TraceLine(647,0,__PYX_ERR(0, 647, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_hex, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 647, __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;

  /* "lxml/objectify.pyx":646
 *         return oct(_parseNumber(self))
 * 
 *     def __hex__(self):             # <<<<<<<<<<<<<<
 *         return hex(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__hex__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

/* "lxml/objectify.pyx":649
 *         return hex(_parseNumber(self))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_19__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_19__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_18__richcmp__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((int)__pyx_v_op));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_18__richcmp__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__richcmp__", 0);
  __Pyx_TraceCall("__richcmp__", __pyx_f[0], 649, 0, __PYX_ERR(0, 649, __pyx_L1_error));

  /* "lxml/objectify.pyx":650
 * 
 *     def __richcmp__(self, other, int op):
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_TraceLine(650,0,__PYX_ERR(0, 650, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(((PyObject *)__pyx_v_self), __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":649
 *         return hex(_parseNumber(self))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":652
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(_parseNumber(self))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_4lxml_9objectify_13NumberElement_21__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4lxml_9objectify_13NumberElement_21__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_20__hash__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static Py_hash_t __pyx_pf_4lxml_9objectify_13NumberElement_20__hash__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  __Pyx_RefNannySetupContext("__hash__", 0);
  __Pyx_TraceCall("__hash__", __pyx_f[0], 652, 0, __PYX_ERR(0, 652, __pyx_L1_error));

  /* "lxml/objectify.pyx":653
 * 
 *     def __hash__(self):
 *         return hash(_parseNumber(self))             # <<<<<<<<<<<<<<
 * 
 *     def __add__(self, other):
 */
  __Pyx_TraceLine(653,0,__PYX_ERR(0, 653, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 653, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":652
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(_parseNumber(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":655
 *         return hash(_parseNumber(self))
 * 
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) + _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_23__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_23__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_22__add__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_22__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__add__", 0);
  __Pyx_TraceCall("__add__", __pyx_f[0], 655, 0, __PYX_ERR(0, 655, __pyx_L1_error));

  /* "lxml/objectify.pyx":656
 * 
 *     def __add__(self, other):
 *         return _numericValueOf(self) + _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __sub__(self, other):
 */
  __Pyx_TraceLine(656,0,__PYX_ERR(0, 656, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 656, __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;

  /* "lxml/objectify.pyx":655
 *         return hash(_parseNumber(self))
 * 
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) + _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":658
 *         return _numericValueOf(self) + _numericValueOf(other)
 * 
 *     def __sub__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) - _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_25__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_25__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_24__sub__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_24__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__sub__", 0);
  __Pyx_TraceCall("__sub__", __pyx_f[0], 658, 0, __PYX_ERR(0, 658, __pyx_L1_error));

  /* "lxml/objectify.pyx":659
 * 
 *     def __sub__(self, other):
 *         return _numericValueOf(self) - _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other):
 */
  __Pyx_TraceLine(659,0,__PYX_ERR(0, 659, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 659, __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;

  /* "lxml/objectify.pyx":658
 *         return _numericValueOf(self) + _numericValueOf(other)
 * 
 *     def __sub__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) - _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":661
 *         return _numericValueOf(self) - _numericValueOf(other)
 * 
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) * _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_27__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_27__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_26__mul__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_26__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__mul__", 0);
  __Pyx_TraceCall("__mul__", __pyx_f[0], 661, 0, __PYX_ERR(0, 661, __pyx_L1_error));

  /* "lxml/objectify.pyx":662
 * 
 *     def __mul__(self, other):
 *         return _numericValueOf(self) * _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __div__(self, other):
 */
  __Pyx_TraceLine(662,0,__PYX_ERR(0, 662, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 662, __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;

  /* "lxml/objectify.pyx":661
 *         return _numericValueOf(self) - _numericValueOf(other)
 * 
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) * _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":664
 *         return _numericValueOf(self) * _numericValueOf(other)
 * 
 *     def __div__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 */

/* Python wrapper */
#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_29__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_29__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__div__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_28__div__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_28__div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__div__", 0);
  __Pyx_TraceCall("__div__", __pyx_f[0], 664, 0, __PYX_ERR(0, 664, __pyx_L1_error));

  /* "lxml/objectify.pyx":665
 * 
 *     def __div__(self, other):
 *         return _numericValueOf(self) / _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __truediv__(self, other):
 */
  __Pyx_TraceLine(665,0,__PYX_ERR(0, 665, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 665, __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;

  /* "lxml/objectify.pyx":664
 *         return _numericValueOf(self) * _numericValueOf(other)
 * 
 *     def __div__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__div__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000))*/

/* "lxml/objectify.pyx":667
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 *     def __truediv__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__truediv__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_30__truediv__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_30__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__truediv__", 0);
  __Pyx_TraceCall("__truediv__", __pyx_f[0], 667, 0, __PYX_ERR(0, 667, __pyx_L1_error));

  /* "lxml/objectify.pyx":668
 * 
 *     def __truediv__(self, other):
 *         return _numericValueOf(self) / _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __mod__(self, other):
 */
  __Pyx_TraceLine(668,0,__PYX_ERR(0, 668, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 668, __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;

  /* "lxml/objectify.pyx":667
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 *     def __truediv__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__truediv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":670
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) % _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_33__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_33__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mod__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_32__mod__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_32__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__mod__", 0);
  __Pyx_TraceCall("__mod__", __pyx_f[0], 670, 0, __PYX_ERR(0, 670, __pyx_L1_error));

  /* "lxml/objectify.pyx":671
 * 
 *     def __mod__(self, other):
 *         return _numericValueOf(self) % _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __pow__(self, other, modulo):
 */
  __Pyx_TraceLine(671,0,__PYX_ERR(0, 671, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Remainder(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 671, __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;

  /* "lxml/objectify.pyx":670
 *         return _numericValueOf(self) / _numericValueOf(other)
 * 
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) % _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__mod__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":673
 *         return _numericValueOf(self) % _numericValueOf(other)
 * 
 *     def __pow__(self, other, modulo):             # <<<<<<<<<<<<<<
 *         if modulo is None:
 *             return _numericValueOf(self) ** _numericValueOf(other)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_35__pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_35__pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pow__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_34__pow__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((PyObject *)__pyx_v_modulo));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_34__pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__pow__", 0);
  __Pyx_TraceCall("__pow__", __pyx_f[0], 673, 0, __PYX_ERR(0, 673, __pyx_L1_error));

  /* "lxml/objectify.pyx":674
 * 
 *     def __pow__(self, other, modulo):
 *         if modulo is None:             # <<<<<<<<<<<<<<
 *             return _numericValueOf(self) ** _numericValueOf(other)
 *         else:
 */
  __Pyx_TraceLine(674,0,__PYX_ERR(0, 674, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_modulo == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":675
 *     def __pow__(self, other, modulo):
 *         if modulo is None:
 *             return _numericValueOf(self) ** _numericValueOf(other)             # <<<<<<<<<<<<<<
 *         else:
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)
 */
    __Pyx_TraceLine(675,0,__PYX_ERR(0, 675, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_Power(__pyx_t_3, __pyx_t_4, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":674
 * 
 *     def __pow__(self, other, modulo):
 *         if modulo is None:             # <<<<<<<<<<<<<<
 *             return _numericValueOf(self) ** _numericValueOf(other)
 *         else:
 */
  }

  /* "lxml/objectify.pyx":677
 *             return _numericValueOf(self) ** _numericValueOf(other)
 *         else:
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)             # <<<<<<<<<<<<<<
 * 
 *     def __neg__(self):
 */
  __Pyx_TraceLine(677,0,__PYX_ERR(0, 677, __pyx_L1_error))
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_5 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Power(__pyx_t_5, __pyx_t_4, __pyx_v_modulo); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
  }

  /* "lxml/objectify.pyx":673
 *         return _numericValueOf(self) % _numericValueOf(other)
 * 
 *     def __pow__(self, other, modulo):             # <<<<<<<<<<<<<<
 *         if modulo is None:
 *             return _numericValueOf(self) ** _numericValueOf(other)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__pow__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":679
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)
 * 
 *     def __neg__(self):             # <<<<<<<<<<<<<<
 *         return - _numericValueOf(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_37__neg__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_37__neg__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__neg__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_36__neg__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_36__neg__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__neg__", 0);
  __Pyx_TraceCall("__neg__", __pyx_f[0], 679, 0, __PYX_ERR(0, 679, __pyx_L1_error));

  /* "lxml/objectify.pyx":680
 * 
 *     def __neg__(self):
 *         return - _numericValueOf(self)             # <<<<<<<<<<<<<<
 * 
 *     def __pos__(self):
 */
  __Pyx_TraceLine(680,0,__PYX_ERR(0, 680, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 680, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Negative(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 680, __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;

  /* "lxml/objectify.pyx":679
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)
 * 
 *     def __neg__(self):             # <<<<<<<<<<<<<<
 *         return - _numericValueOf(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__neg__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":682
 *         return - _numericValueOf(self)
 * 
 *     def __pos__(self):             # <<<<<<<<<<<<<<
 *         return + _numericValueOf(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_39__pos__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_39__pos__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__pos__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_38__pos__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_38__pos__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__pos__", 0);
  __Pyx_TraceCall("__pos__", __pyx_f[0], 682, 0, __PYX_ERR(0, 682, __pyx_L1_error));

  /* "lxml/objectify.pyx":683
 * 
 *     def __pos__(self):
 *         return + _numericValueOf(self)             # <<<<<<<<<<<<<<
 * 
 *     def __abs__(self):
 */
  __Pyx_TraceLine(683,0,__PYX_ERR(0, 683, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Positive(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 683, __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;

  /* "lxml/objectify.pyx":682
 *         return - _numericValueOf(self)
 * 
 *     def __pos__(self):             # <<<<<<<<<<<<<<
 *         return + _numericValueOf(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__pos__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":685
 *         return + _numericValueOf(self)
 * 
 *     def __abs__(self):             # <<<<<<<<<<<<<<
 *         return abs( _numericValueOf(self) )
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_41__abs__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_41__abs__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__abs__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_40__abs__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_40__abs__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__abs__", 0);
  __Pyx_TraceCall("__abs__", __pyx_f[0], 685, 0, __PYX_ERR(0, 685, __pyx_L1_error));

  /* "lxml/objectify.pyx":686
 * 
 *     def __abs__(self):
 *         return abs( _numericValueOf(self) )             # <<<<<<<<<<<<<<
 * 
 *     def __nonzero__(self):
 */
  __Pyx_TraceLine(686,0,__PYX_ERR(0, 686, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Absolute(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 686, __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;

  /* "lxml/objectify.pyx":685
 *         return + _numericValueOf(self)
 * 
 *     def __abs__(self):             # <<<<<<<<<<<<<<
 *         return abs( _numericValueOf(self) )
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__abs__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":688
 *         return abs( _numericValueOf(self) )
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return bool(_numericValueOf(self))
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_13NumberElement_43__nonzero__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_9objectify_13NumberElement_43__nonzero__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__nonzero__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_42__nonzero__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static int __pyx_pf_4lxml_9objectify_13NumberElement_42__nonzero__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__nonzero__", 0);
  __Pyx_TraceCall("__nonzero__", __pyx_f[0], 688, 0, __PYX_ERR(0, 688, __pyx_L1_error));

  /* "lxml/objectify.pyx":689
 * 
 *     def __nonzero__(self):
 *         return bool(_numericValueOf(self))             # <<<<<<<<<<<<<<
 * 
 *     def __invert__(self):
 */
  __Pyx_TraceLine(689,0,__PYX_ERR(0, 689, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 689, __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, 689, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = (!(!__pyx_t_2));
  goto __pyx_L0;

  /* "lxml/objectify.pyx":688
 *         return abs( _numericValueOf(self) )
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return bool(_numericValueOf(self))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__nonzero__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":691
 *         return bool(_numericValueOf(self))
 * 
 *     def __invert__(self):             # <<<<<<<<<<<<<<
 *         return ~ _numericValueOf(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_45__invert__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_45__invert__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__invert__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_44__invert__(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_44__invert__(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__invert__", 0);
  __Pyx_TraceCall("__invert__", __pyx_f[0], 691, 0, __PYX_ERR(0, 691, __pyx_L1_error));

  /* "lxml/objectify.pyx":692
 * 
 *     def __invert__(self):
 *         return ~ _numericValueOf(self)             # <<<<<<<<<<<<<<
 * 
 *     def __lshift__(self, other):
 */
  __Pyx_TraceLine(692,0,__PYX_ERR(0, 692, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Invert(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 692, __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;

  /* "lxml/objectify.pyx":691
 *         return bool(_numericValueOf(self))
 * 
 *     def __invert__(self):             # <<<<<<<<<<<<<<
 *         return ~ _numericValueOf(self)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__invert__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":694
 *         return ~ _numericValueOf(self)
 * 
 *     def __lshift__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) << _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_47__lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_47__lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__lshift__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_46__lshift__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_46__lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__lshift__", 0);
  __Pyx_TraceCall("__lshift__", __pyx_f[0], 694, 0, __PYX_ERR(0, 694, __pyx_L1_error));

  /* "lxml/objectify.pyx":695
 * 
 *     def __lshift__(self, other):
 *         return _numericValueOf(self) << _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __rshift__(self, other):
 */
  __Pyx_TraceLine(695,0,__PYX_ERR(0, 695, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Lshift(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 695, __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;

  /* "lxml/objectify.pyx":694
 *         return ~ _numericValueOf(self)
 * 
 *     def __lshift__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) << _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__lshift__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":697
 *         return _numericValueOf(self) << _numericValueOf(other)
 * 
 *     def __rshift__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) >> _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_49__rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_49__rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__rshift__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_48__rshift__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_48__rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__rshift__", 0);
  __Pyx_TraceCall("__rshift__", __pyx_f[0], 697, 0, __PYX_ERR(0, 697, __pyx_L1_error));

  /* "lxml/objectify.pyx":698
 * 
 *     def __rshift__(self, other):
 *         return _numericValueOf(self) >> _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __and__(self, other):
 */
  __Pyx_TraceLine(698,0,__PYX_ERR(0, 698, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Rshift(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 698, __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;

  /* "lxml/objectify.pyx":697
 *         return _numericValueOf(self) << _numericValueOf(other)
 * 
 *     def __rshift__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) >> _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__rshift__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":700
 *         return _numericValueOf(self) >> _numericValueOf(other)
 * 
 *     def __and__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) & _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_51__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_51__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__and__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_50__and__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_50__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__and__", 0);
  __Pyx_TraceCall("__and__", __pyx_f[0], 700, 0, __PYX_ERR(0, 700, __pyx_L1_error));

  /* "lxml/objectify.pyx":701
 * 
 *     def __and__(self, other):
 *         return _numericValueOf(self) & _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __or__(self, other):
 */
  __Pyx_TraceLine(701,0,__PYX_ERR(0, 701, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_And(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 701, __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;

  /* "lxml/objectify.pyx":700
 *         return _numericValueOf(self) >> _numericValueOf(other)
 * 
 *     def __and__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) & _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__and__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":703
 *         return _numericValueOf(self) & _numericValueOf(other)
 * 
 *     def __or__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) | _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_53__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_53__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__or__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_52__or__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_52__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__or__", 0);
  __Pyx_TraceCall("__or__", __pyx_f[0], 703, 0, __PYX_ERR(0, 703, __pyx_L1_error));

  /* "lxml/objectify.pyx":704
 * 
 *     def __or__(self, other):
 *         return _numericValueOf(self) | _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 *     def __xor__(self, other):
 */
  __Pyx_TraceLine(704,0,__PYX_ERR(0, 704, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Or(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 704, __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;

  /* "lxml/objectify.pyx":703
 *         return _numericValueOf(self) & _numericValueOf(other)
 * 
 *     def __or__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) | _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__or__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":706
 *         return _numericValueOf(self) | _numericValueOf(other)
 * 
 *     def __xor__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) ^ _numericValueOf(other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_55__xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13NumberElement_55__xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__xor__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13NumberElement_54__xor__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_54__xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__xor__", 0);
  __Pyx_TraceCall("__xor__", __pyx_f[0], 706, 0, __PYX_ERR(0, 706, __pyx_L1_error));

  /* "lxml/objectify.pyx":707
 * 
 *     def __xor__(self, other):
 *         return _numericValueOf(self) ^ _numericValueOf(other)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntElement(NumberElement):
 */
  __Pyx_TraceLine(707,0,__PYX_ERR(0, 707, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Xor(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 707, __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;

  /* "lxml/objectify.pyx":706
 *         return _numericValueOf(self) | _numericValueOf(other)
 * 
 *     def __xor__(self, other):             # <<<<<<<<<<<<<<
 *         return _numericValueOf(self) ^ _numericValueOf(other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__xor__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":710
 * 
 * cdef class IntElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = int
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10IntElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_10IntElement_1_init = {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_10IntElement_1_init, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_10IntElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_10IntElement__init(((struct __pyx_obj_4lxml_9objectify_IntElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_10IntElement__init(struct __pyx_obj_4lxml_9objectify_IntElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_TraceFrameInit(__pyx_codeobj__14)
  __Pyx_RefNannySetupContext("_init", 0);
  __Pyx_TraceCall("_init", __pyx_f[0], 710, 0, __PYX_ERR(0, 710, __pyx_L1_error));

  /* "lxml/objectify.pyx":711
 * cdef class IntElement(NumberElement):
 *     def _init(self):
 *         self._parse_value = int             # <<<<<<<<<<<<<<
 * 
 * cdef class LongElement(NumberElement):
 */
  __Pyx_TraceLine(711,0,__PYX_ERR(0, 711, __pyx_L1_error))
  __Pyx_INCREF(((PyObject *)(&PyInt_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyInt_Type)));
  __Pyx_GOTREF(__pyx_v_self->__pyx_base._parse_value);
  __Pyx_DECREF(__pyx_v_self->__pyx_base._parse_value);
  __pyx_v_self->__pyx_base._parse_value = ((PyObject *)(&PyInt_Type));

  /* "lxml/objectify.pyx":710
 * 
 * cdef class IntElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = int
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.IntElement._init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":714
 * 
 * cdef class LongElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = long
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11LongElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_11LongElement_1_init = {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_11LongElement_1_init, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_11LongElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11LongElement__init(((struct __pyx_obj_4lxml_9objectify_LongElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11LongElement__init(struct __pyx_obj_4lxml_9objectify_LongElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_TraceFrameInit(__pyx_codeobj__15)
  __Pyx_RefNannySetupContext("_init", 0);
  __Pyx_TraceCall("_init", __pyx_f[0], 714, 0, __PYX_ERR(0, 714, __pyx_L1_error));

  /* "lxml/objectify.pyx":715
 * cdef class LongElement(NumberElement):
 *     def _init(self):
 *         self._parse_value = long             # <<<<<<<<<<<<<<
 * 
 * cdef class FloatElement(NumberElement):
 */
  __Pyx_TraceLine(715,0,__PYX_ERR(0, 715, __pyx_L1_error))
  __Pyx_INCREF(((PyObject *)(&PyLong_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyLong_Type)));
  __Pyx_GOTREF(__pyx_v_self->__pyx_base._parse_value);
  __Pyx_DECREF(__pyx_v_self->__pyx_base._parse_value);
  __pyx_v_self->__pyx_base._parse_value = ((PyObject *)(&PyLong_Type));

  /* "lxml/objectify.pyx":714
 * 
 * cdef class LongElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = long
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.LongElement._init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":718
 * 
 * cdef class FloatElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = float
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_12FloatElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_12FloatElement_1_init = {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_12FloatElement_1_init, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_12FloatElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_12FloatElement__init(((struct __pyx_obj_4lxml_9objectify_FloatElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_12FloatElement__init(struct __pyx_obj_4lxml_9objectify_FloatElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_TraceFrameInit(__pyx_codeobj__16)
  __Pyx_RefNannySetupContext("_init", 0);
  __Pyx_TraceCall("_init", __pyx_f[0], 718, 0, __PYX_ERR(0, 718, __pyx_L1_error));

  /* "lxml/objectify.pyx":719
 * cdef class FloatElement(NumberElement):
 *     def _init(self):
 *         self._parse_value = float             # <<<<<<<<<<<<<<
 * 
 * cdef class StringElement(ObjectifiedDataElement):
 */
  __Pyx_TraceLine(719,0,__PYX_ERR(0, 719, __pyx_L1_error))
  __Pyx_INCREF(((PyObject *)(&PyFloat_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyFloat_Type)));
  __Pyx_GOTREF(__pyx_v_self->__pyx_base._parse_value);
  __Pyx_DECREF(__pyx_v_self->__pyx_base._parse_value);
  __pyx_v_self->__pyx_base._parse_value = ((PyObject *)(&PyFloat_Type));

  /* "lxml/objectify.pyx":718
 * 
 * cdef class FloatElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = float
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.FloatElement._init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":729
 *     """
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node) or u''
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_5pyval_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_5pyval_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_5pyval___get__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 729, 0, __PYX_ERR(0, 729, __pyx_L1_error));

  /* "lxml/objectify.pyx":730
 *     property pyval:
 *         def __get__(self):
 *             return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(730,0,__PYX_ERR(0, 730, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 730, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 730, __pyx_L1_error)
  if (!__pyx_t_3) {
    __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_INCREF(__pyx_kp_u__3);
  __pyx_t_1 = __pyx_kp_u__3;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":729
 *     """
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return textOf(self._c_node) or u''
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.pyval.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":732
 *             return textOf(self._c_node) or u''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(textOf(self._c_node) or u'')
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_1__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_1__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement___repr__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___repr__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 732, 0, __PYX_ERR(0, 732, __pyx_L1_error));

  /* "lxml/objectify.pyx":733
 * 
 *     def __repr__(self):
 *         return repr(textOf(self._c_node) or u'')             # <<<<<<<<<<<<<<
 * 
 *     def strlen(self):
 */
  __Pyx_TraceLine(733,0,__PYX_ERR(0, 733, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 733, __pyx_L1_error)
  if (!__pyx_t_3) {
    __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_INCREF(__pyx_kp_u__3);
  __pyx_t_1 = __pyx_kp_u__3;
  __pyx_L3_bool_binop_done:;
  __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 733, __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;

  /* "lxml/objectify.pyx":732
 *             return textOf(self._c_node) or u''
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(textOf(self._c_node) or u'')
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":735
 *         return repr(textOf(self._c_node) or u'')
 * 
 *     def strlen(self):             # <<<<<<<<<<<<<<
 *         text = textOf(self._c_node)
 *         if text is None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_3strlen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_13StringElement_3strlen = {"strlen", (PyCFunction)__pyx_pw_4lxml_9objectify_13StringElement_3strlen, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_3strlen(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("strlen (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_2strlen(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_2strlen(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_v_text = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  __Pyx_TraceFrameInit(__pyx_codeobj__17)
  __Pyx_RefNannySetupContext("strlen", 0);
  __Pyx_TraceCall("strlen", __pyx_f[0], 735, 0, __PYX_ERR(0, 735, __pyx_L1_error));

  /* "lxml/objectify.pyx":736
 * 
 *     def strlen(self):
 *         text = textOf(self._c_node)             # <<<<<<<<<<<<<<
 *         if text is None:
 *             return 0
 */
  __Pyx_TraceLine(736,0,__PYX_ERR(0, 736, __pyx_L1_error))
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_text = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":737
 *     def strlen(self):
 *         text = textOf(self._c_node)
 *         if text is None:             # <<<<<<<<<<<<<<
 *             return 0
 *         else:
 */
  __Pyx_TraceLine(737,0,__PYX_ERR(0, 737, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_text == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":738
 *         text = textOf(self._c_node)
 *         if text is None:
 *             return 0             # <<<<<<<<<<<<<<
 *         else:
 *             return len(text)
 */
    __Pyx_TraceLine(738,0,__PYX_ERR(0, 738, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_int_0);
    __pyx_r = __pyx_int_0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":737
 *     def strlen(self):
 *         text = textOf(self._c_node)
 *         if text is None:             # <<<<<<<<<<<<<<
 *             return 0
 *         else:
 */
  }

  /* "lxml/objectify.pyx":740
 *             return 0
 *         else:
 *             return len(text)             # <<<<<<<<<<<<<<
 * 
 *     def __nonzero__(self):
 */
  __Pyx_TraceLine(740,0,__PYX_ERR(0, 740, __pyx_L1_error))
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 740, __pyx_L1_error)
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
  }

  /* "lxml/objectify.pyx":735
 *         return repr(textOf(self._c_node) or u'')
 * 
 *     def strlen(self):             # <<<<<<<<<<<<<<
 *         text = textOf(self._c_node)
 *         if text is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.StringElement.strlen", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_text);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":742
 *             return len(text)
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return bool(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_13StringElement_5__nonzero__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_9objectify_13StringElement_5__nonzero__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__nonzero__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_4__nonzero__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static int __pyx_pf_4lxml_9objectify_13StringElement_4__nonzero__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__nonzero__", 0);
  __Pyx_TraceCall("__nonzero__", __pyx_f[0], 742, 0, __PYX_ERR(0, 742, __pyx_L1_error));

  /* "lxml/objectify.pyx":743
 * 
 *     def __nonzero__(self):
 *         return bool(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, other, int op):
 */
  __Pyx_TraceLine(743,0,__PYX_ERR(0, 743, __pyx_L1_error))
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 743, __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, 743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = (!(!__pyx_t_2));
  goto __pyx_L0;

  /* "lxml/objectify.pyx":742
 *             return len(text)
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return bool(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__nonzero__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":745
 *         return bool(textOf(self._c_node))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_7__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_7__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_6__richcmp__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((int)__pyx_v_op));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_6__richcmp__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__richcmp__", 0);
  __Pyx_TraceCall("__richcmp__", __pyx_f[0], 745, 0, __PYX_ERR(0, 745, __pyx_L1_error));

  /* "lxml/objectify.pyx":746
 * 
 *     def __richcmp__(self, other, int op):
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_TraceLine(746,0,__PYX_ERR(0, 746, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(((PyObject *)__pyx_v_self), __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":745
 *         return bool(textOf(self._c_node))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":748
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(textOf(self._c_node) or u'')
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_4lxml_9objectify_13StringElement_9__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4lxml_9objectify_13StringElement_9__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_8__hash__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static Py_hash_t __pyx_pf_4lxml_9objectify_13StringElement_8__hash__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_hash_t __pyx_t_4;
  __Pyx_RefNannySetupContext("__hash__", 0);
  __Pyx_TraceCall("__hash__", __pyx_f[0], 748, 0, __PYX_ERR(0, 748, __pyx_L1_error));

  /* "lxml/objectify.pyx":749
 * 
 *     def __hash__(self):
 *         return hash(textOf(self._c_node) or u'')             # <<<<<<<<<<<<<<
 * 
 *     def __add__(self, other):
 */
  __Pyx_TraceLine(749,0,__PYX_ERR(0, 749, __pyx_L1_error))
  __pyx_t_2 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 749, __pyx_L1_error)
  if (!__pyx_t_3) {
    __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_INCREF(__pyx_kp_u__3);
  __pyx_t_1 = __pyx_kp_u__3;
  __pyx_L3_bool_binop_done:;
  __pyx_t_4 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_4 == ((Py_hash_t)-1))) __PYX_ERR(0, 749, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":748
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(textOf(self._c_node) or u'')
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":751
 *         return hash(textOf(self._c_node) or u'')
 * 
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
 *         text  = _strValueOf(self)
 *         other = _strValueOf(other)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_11__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_11__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_10__add__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_10__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_v_text = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("__add__", 0);
  __Pyx_TraceCall("__add__", __pyx_f[0], 751, 0, __PYX_ERR(0, 751, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_other);

  /* "lxml/objectify.pyx":752
 * 
 *     def __add__(self, other):
 *         text  = _strValueOf(self)             # <<<<<<<<<<<<<<
 *         other = _strValueOf(other)
 *         if text is None:
 */
  __Pyx_TraceLine(752,0,__PYX_ERR(0, 752, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_text = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":753
 *     def __add__(self, other):
 *         text  = _strValueOf(self)
 *         other = _strValueOf(other)             # <<<<<<<<<<<<<<
 *         if text is None:
 *             return other
 */
  __Pyx_TraceLine(753,0,__PYX_ERR(0, 753, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_other); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_other, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":754
 *         text  = _strValueOf(self)
 *         other = _strValueOf(other)
 *         if text is None:             # <<<<<<<<<<<<<<
 *             return other
 *         if other is None:
 */
  __Pyx_TraceLine(754,0,__PYX_ERR(0, 754, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_text == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":755
 *         other = _strValueOf(other)
 *         if text is None:
 *             return other             # <<<<<<<<<<<<<<
 *         if other is None:
 *             return text
 */
    __Pyx_TraceLine(755,0,__PYX_ERR(0, 755, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_other);
    __pyx_r = __pyx_v_other;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":754
 *         text  = _strValueOf(self)
 *         other = _strValueOf(other)
 *         if text is None:             # <<<<<<<<<<<<<<
 *             return other
 *         if other is None:
 */
  }

  /* "lxml/objectify.pyx":756
 *         if text is None:
 *             return other
 *         if other is None:             # <<<<<<<<<<<<<<
 *             return text
 *         return text + other
 */
  __Pyx_TraceLine(756,0,__PYX_ERR(0, 756, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v_other == Py_None);
  __pyx_t_2 = (__pyx_t_3 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":757
 *             return other
 *         if other is None:
 *             return text             # <<<<<<<<<<<<<<
 *         return text + other
 * 
 */
    __Pyx_TraceLine(757,0,__PYX_ERR(0, 757, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_text);
    __pyx_r = __pyx_v_text;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":756
 *         if text is None:
 *             return other
 *         if other is None:             # <<<<<<<<<<<<<<
 *             return text
 *         return text + other
 */
  }

  /* "lxml/objectify.pyx":758
 *         if other is None:
 *             return text
 *         return text + other             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other):
 */
  __Pyx_TraceLine(758,0,__PYX_ERR(0, 758, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyNumber_Add(__pyx_v_text, __pyx_v_other); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":751
 *         return hash(textOf(self._c_node) or u'')
 * 
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
 *         text  = _strValueOf(self)
 *         other = _strValueOf(other)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_text);
  __Pyx_XDECREF(__pyx_v_other);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":760
 *         return text + other
 * 
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
 *         if isinstance(self, StringElement):
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_13__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_13__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_12__mul__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_12__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__mul__", 0);
  __Pyx_TraceCall("__mul__", __pyx_f[0], 760, 0, __PYX_ERR(0, 760, __pyx_L1_error));

  /* "lxml/objectify.pyx":761
 * 
 *     def __mul__(self, other):
 *         if isinstance(self, StringElement):             # <<<<<<<<<<<<<<
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 *         elif isinstance(other, StringElement):
 */
  __Pyx_TraceLine(761,0,__PYX_ERR(0, 761, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_self, __pyx_ptype_4lxml_9objectify_StringElement); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":762
 *     def __mul__(self, other):
 *         if isinstance(self, StringElement):
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)             # <<<<<<<<<<<<<<
 *         elif isinstance(other, StringElement):
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
 */
    __Pyx_TraceLine(762,0,__PYX_ERR(0, 762, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyNumber_Multiply(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":761
 * 
 *     def __mul__(self, other):
 *         if isinstance(self, StringElement):             # <<<<<<<<<<<<<<
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 *         elif isinstance(other, StringElement):
 */
  }

  /* "lxml/objectify.pyx":763
 *         if isinstance(self, StringElement):
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 *         elif isinstance(other, StringElement):             # <<<<<<<<<<<<<<
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
 *         else:
 */
  __Pyx_TraceLine(763,0,__PYX_ERR(0, 763, __pyx_L1_error))
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_4lxml_9objectify_StringElement); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":764
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 *         elif isinstance(other, StringElement):
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)             # <<<<<<<<<<<<<<
 *         else:
 *             raise TypeError, u"invalid types for * operator"
 */
    __Pyx_TraceLine(764,0,__PYX_ERR(0, 764, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_5 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_other)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Multiply(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":763
 *         if isinstance(self, StringElement):
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 *         elif isinstance(other, StringElement):             # <<<<<<<<<<<<<<
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
 *         else:
 */
  }

  /* "lxml/objectify.pyx":766
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
 *         else:
 *             raise TypeError, u"invalid types for * operator"             # <<<<<<<<<<<<<<
 * 
 *     def __mod__(self, other):
 */
  __Pyx_TraceLine(766,0,__PYX_ERR(0, 766, __pyx_L1_error))
  /*else*/ {
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_invalid_types_for_operator, 0, 0);
    __PYX_ERR(0, 766, __pyx_L1_error)
  }

  /* "lxml/objectify.pyx":760
 *         return text + other
 * 
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
 *         if isinstance(self, StringElement):
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":768
 *             raise TypeError, u"invalid types for * operator"
 * 
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
 *         return _strValueOf(self) % other
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_15__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_15__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mod__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_14__mod__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_14__mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__mod__", 0);
  __Pyx_TraceCall("__mod__", __pyx_f[0], 768, 0, __PYX_ERR(0, 768, __pyx_L1_error));

  /* "lxml/objectify.pyx":769
 * 
 *     def __mod__(self, other):
 *         return _strValueOf(self) % other             # <<<<<<<<<<<<<<
 * 
 *     def __int__(self):
 */
  __Pyx_TraceLine(769,0,__PYX_ERR(0, 769, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Remainder(__pyx_t_1, __pyx_v_other); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 769, __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;

  /* "lxml/objectify.pyx":768
 *             raise TypeError, u"invalid types for * operator"
 * 
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
 *         return _strValueOf(self) % other
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__mod__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":771
 *         return _strValueOf(self) % other
 * 
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return int(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_17__int__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_17__int__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__int__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_16__int__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_16__int__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__int__", 0);
  __Pyx_TraceCall("__int__", __pyx_f[0], 771, 0, __PYX_ERR(0, 771, __pyx_L1_error));

  /* "lxml/objectify.pyx":772
 * 
 *     def __int__(self):
 *         return int(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 *     def __long__(self):
 */
  __Pyx_TraceLine(772,0,__PYX_ERR(0, 772, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 772, __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;

  /* "lxml/objectify.pyx":771
 *         return _strValueOf(self) % other
 * 
 *     def __int__(self):             # <<<<<<<<<<<<<<
 *         return int(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__int__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":774
 *         return int(textOf(self._c_node))
 * 
 *     def __long__(self):             # <<<<<<<<<<<<<<
 *         return long(textOf(self._c_node))
 * 
 */

/* Python wrapper */
#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_19__long__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_19__long__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__long__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_18__long__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3)*/

#if PY_MAJOR_VERSION < 3
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_18__long__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__long__", 0);
  __Pyx_TraceCall("__long__", __pyx_f[0], 774, 0, __PYX_ERR(0, 774, __pyx_L1_error));

  /* "lxml/objectify.pyx":775
 * 
 *     def __long__(self):
 *         return long(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 *     def __float__(self):
 */
  __Pyx_TraceLine(775,0,__PYX_ERR(0, 775, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyLong_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __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;

  /* "lxml/objectify.pyx":774
 *         return int(textOf(self._c_node))
 * 
 *     def __long__(self):             # <<<<<<<<<<<<<<
 *         return long(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__long__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
#endif /*!(#if PY_MAJOR_VERSION < 3)*/

/* "lxml/objectify.pyx":777
 *         return long(textOf(self._c_node))
 * 
 *     def __float__(self):             # <<<<<<<<<<<<<<
 *         return float(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_21__float__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_21__float__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__float__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_20__float__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_20__float__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__float__", 0);
  __Pyx_TraceCall("__float__", __pyx_f[0], 777, 0, __PYX_ERR(0, 777, __pyx_L1_error));

  /* "lxml/objectify.pyx":778
 * 
 *     def __float__(self):
 *         return float(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 *     def __complex__(self):
 */
  __Pyx_TraceLine(778,0,__PYX_ERR(0, 778, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Float(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 778, __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;

  /* "lxml/objectify.pyx":777
 *         return long(textOf(self._c_node))
 * 
 *     def __float__(self):             # <<<<<<<<<<<<<<
 *         return float(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__float__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":780
 *         return float(textOf(self._c_node))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_23__complex__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_13StringElement_23__complex__ = {"__complex__", (PyCFunction)__pyx_pw_4lxml_9objectify_13StringElement_23__complex__, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_13StringElement_23__complex__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__complex__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_13StringElement_22__complex__(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_22__complex__(struct __pyx_obj_4lxml_9objectify_StringElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__18)
  __Pyx_RefNannySetupContext("__complex__", 0);
  __Pyx_TraceCall("__complex__", __pyx_f[0], 780, 0, __PYX_ERR(0, 780, __pyx_L1_error));

  /* "lxml/objectify.pyx":781
 * 
 *     def __complex__(self):
 *         return complex(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 * cdef class NoneElement(ObjectifiedDataElement):
 */
  __Pyx_TraceLine(781,0,__PYX_ERR(0, 781, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyComplex_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 781, __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;

  /* "lxml/objectify.pyx":780
 *         return float(textOf(self._c_node))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.StringElement.__complex__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":784
 * 
 * cdef class NoneElement(ObjectifiedDataElement):
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return u"None"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_1__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_1__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement___str__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___str__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[0], 784, 0, __PYX_ERR(0, 784, __pyx_L1_error));

  /* "lxml/objectify.pyx":785
 * cdef class NoneElement(ObjectifiedDataElement):
 *     def __str__(self):
 *         return u"None"             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(785,0,__PYX_ERR(0, 785, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_n_u_None);
  __pyx_r = __pyx_n_u_None;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":784
 * 
 * cdef class NoneElement(ObjectifiedDataElement):
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return u"None"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":787
 *         return u"None"
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "None"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement_2__repr__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_2__repr__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 787, 0, __PYX_ERR(0, 787, __pyx_L1_error));

  /* "lxml/objectify.pyx":788
 * 
 *     def __repr__(self):
 *         return "None"             # <<<<<<<<<<<<<<
 * 
 *     def __nonzero__(self):
 */
  __Pyx_TraceLine(788,0,__PYX_ERR(0, 788, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_n_s_None);
  __pyx_r = __pyx_n_s_None;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":787
 *         return u"None"
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "None"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":790
 *         return "None"
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return False
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_11NoneElement_5__nonzero__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_9objectify_11NoneElement_5__nonzero__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__nonzero__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement_4__nonzero__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self));

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

static int __pyx_pf_4lxml_9objectify_11NoneElement_4__nonzero__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__nonzero__", 0);
  __Pyx_TraceCall("__nonzero__", __pyx_f[0], 790, 0, __PYX_ERR(0, 790, __pyx_L1_error));

  /* "lxml/objectify.pyx":791
 * 
 *     def __nonzero__(self):
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, other, int op):
 */
  __Pyx_TraceLine(791,0,__PYX_ERR(0, 791, __pyx_L1_error))
  __pyx_r = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":790
 *         return "None"
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return False
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__nonzero__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":793
 *         return False
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         if other is None or self is None:
 *             return python.PyObject_RichCompare(None, None, op)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_7__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_7__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement_6__richcmp__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((int)__pyx_v_op));

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

static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_6__richcmp__(struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__richcmp__", 0);
  __Pyx_TraceCall("__richcmp__", __pyx_f[0], 793, 0, __PYX_ERR(0, 793, __pyx_L1_error));

  /* "lxml/objectify.pyx":794
 * 
 *     def __richcmp__(self, other, int op):
 *         if other is None or self is None:             # <<<<<<<<<<<<<<
 *             return python.PyObject_RichCompare(None, None, op)
 *         if isinstance(self, NoneElement):
 */
  __Pyx_TraceLine(794,0,__PYX_ERR(0, 794, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_other == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = (((PyObject *)__pyx_v_self) == Py_None);
  __pyx_t_2 = (__pyx_t_3 != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":795
 *     def __richcmp__(self, other, int op):
 *         if other is None or self is None:
 *             return python.PyObject_RichCompare(None, None, op)             # <<<<<<<<<<<<<<
 *         if isinstance(self, NoneElement):
 *             return python.PyObject_RichCompare(None, other, op)
 */
    __Pyx_TraceLine(795,0,__PYX_ERR(0, 795, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = PyObject_RichCompare(Py_None, Py_None, __pyx_v_op); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":794
 * 
 *     def __richcmp__(self, other, int op):
 *         if other is None or self is None:             # <<<<<<<<<<<<<<
 *             return python.PyObject_RichCompare(None, None, op)
 *         if isinstance(self, NoneElement):
 */
  }

  /* "lxml/objectify.pyx":796
 *         if other is None or self is None:
 *             return python.PyObject_RichCompare(None, None, op)
 *         if isinstance(self, NoneElement):             # <<<<<<<<<<<<<<
 *             return python.PyObject_RichCompare(None, other, op)
 *         else:
 */
  __Pyx_TraceLine(796,0,__PYX_ERR(0, 796, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_self), __pyx_ptype_4lxml_9objectify_NoneElement); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":797
 *             return python.PyObject_RichCompare(None, None, op)
 *         if isinstance(self, NoneElement):
 *             return python.PyObject_RichCompare(None, other, op)             # <<<<<<<<<<<<<<
 *         else:
 *             return python.PyObject_RichCompare(self, None, op)
 */
    __Pyx_TraceLine(797,0,__PYX_ERR(0, 797, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = PyObject_RichCompare(Py_None, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 797, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":796
 *         if other is None or self is None:
 *             return python.PyObject_RichCompare(None, None, op)
 *         if isinstance(self, NoneElement):             # <<<<<<<<<<<<<<
 *             return python.PyObject_RichCompare(None, other, op)
 *         else:
 */
  }

  /* "lxml/objectify.pyx":799
 *             return python.PyObject_RichCompare(None, other, op)
 *         else:
 *             return python.PyObject_RichCompare(self, None, op)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_TraceLine(799,0,__PYX_ERR(0, 799, __pyx_L1_error))
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = PyObject_RichCompare(((PyObject *)__pyx_v_self), Py_None, __pyx_v_op); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
  }

  /* "lxml/objectify.pyx":793
 *         return False
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         if other is None or self is None:
 *             return python.PyObject_RichCompare(None, None, op)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":801
 *             return python.PyObject_RichCompare(self, None, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(None)
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_4lxml_9objectify_11NoneElement_9__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4lxml_9objectify_11NoneElement_9__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement_8__hash__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self));

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

static Py_hash_t __pyx_pf_4lxml_9objectify_11NoneElement_8__hash__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  Py_hash_t __pyx_t_1;
  __Pyx_RefNannySetupContext("__hash__", 0);
  __Pyx_TraceCall("__hash__", __pyx_f[0], 801, 0, __PYX_ERR(0, 801, __pyx_L1_error));

  /* "lxml/objectify.pyx":802
 * 
 *     def __hash__(self):
 *         return hash(None)             # <<<<<<<<<<<<<<
 * 
 *     property pyval:
 */
  __Pyx_TraceLine(802,0,__PYX_ERR(0, 802, __pyx_L1_error))
  __pyx_t_1 = PyObject_Hash(Py_None); if (unlikely(__pyx_t_1 == ((Py_hash_t)-1))) __PYX_ERR(0, 802, __pyx_L1_error)
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":801
 *             return python.PyObject_RichCompare(self, None, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":805
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return None
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_5pyval_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11NoneElement_5pyval_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11NoneElement_5pyval___get__(((struct __pyx_obj_4lxml_9objectify_NoneElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_5pyval___get__(CYTHON_UNUSED struct __pyx_obj_4lxml_9objectify_NoneElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 805, 0, __PYX_ERR(0, 805, __pyx_L1_error));

  /* "lxml/objectify.pyx":806
 *     property pyval:
 *         def __get__(self):
 *             return None             # <<<<<<<<<<<<<<
 * 
 * cdef class BoolElement(IntElement):
 */
  __Pyx_TraceLine(806,0,__PYX_ERR(0, 806, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":805
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return None
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.NoneElement.pyval.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":814
 *     Python's bool type.
 *     """
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = __parseBool
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_11BoolElement_1_init = {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_11BoolElement_1_init, METH_NOARGS, 0};
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_1_init(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_init (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement__init(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement__init(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__19)
  __Pyx_RefNannySetupContext("_init", 0);
  __Pyx_TraceCall("_init", __pyx_f[0], 814, 0, __PYX_ERR(0, 814, __pyx_L1_error));

  /* "lxml/objectify.pyx":815
 *     """
 *     def _init(self):
 *         self._parse_value = __parseBool             # <<<<<<<<<<<<<<
 * 
 *     def __nonzero__(self):
 */
  __Pyx_TraceLine(815,0,__PYX_ERR(0, 815, __pyx_L1_error))
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_parseBool); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->__pyx_base.__pyx_base._parse_value);
  __Pyx_DECREF(__pyx_v_self->__pyx_base.__pyx_base._parse_value);
  __pyx_v_self->__pyx_base.__pyx_base._parse_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":814
 *     Python's bool type.
 *     """
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = __parseBool
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.BoolElement._init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":817
 *         self._parse_value = __parseBool
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return __parseBool(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_11BoolElement_3__nonzero__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_4lxml_9objectify_11BoolElement_3__nonzero__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__nonzero__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_2__nonzero__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static int __pyx_pf_4lxml_9objectify_11BoolElement_2__nonzero__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__nonzero__", 0);
  __Pyx_TraceCall("__nonzero__", __pyx_f[0], 817, 0, __PYX_ERR(0, 817, __pyx_L1_error));

  /* "lxml/objectify.pyx":818
 * 
 *     def __nonzero__(self):
 *         return __parseBool(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 *     def __richcmp__(self, other, int op):
 */
  __Pyx_TraceLine(818,0,__PYX_ERR(0, 818, __pyx_L1_error))
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 818, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":817
 *         self._parse_value = __parseBool
 * 
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
 *         return __parseBool(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__nonzero__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":820
 *         return __parseBool(textOf(self._c_node))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_5__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_5__richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__richcmp__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_4__richcmp__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self), ((PyObject *)__pyx_v_other), ((int)__pyx_v_op));

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

static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_4__richcmp__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__richcmp__", 0);
  __Pyx_TraceCall("__richcmp__", __pyx_f[0], 820, 0, __PYX_ERR(0, 820, __pyx_L1_error));

  /* "lxml/objectify.pyx":821
 * 
 *     def __richcmp__(self, other, int op):
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_TraceLine(821,0,__PYX_ERR(0, 821, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(((PyObject *)__pyx_v_self), __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":820
 *         return __parseBool(textOf(self._c_node))
 * 
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
 *         return _richcmpPyvals(self, other, op)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":823
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(__parseBool(textOf(self._c_node)))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_4lxml_9objectify_11BoolElement_7__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_4lxml_9objectify_11BoolElement_7__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_6__hash__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static Py_hash_t __pyx_pf_4lxml_9objectify_11BoolElement_6__hash__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  Py_hash_t __pyx_t_3;
  __Pyx_RefNannySetupContext("__hash__", 0);
  __Pyx_TraceCall("__hash__", __pyx_f[0], 823, 0, __PYX_ERR(0, 823, __pyx_L1_error));

  /* "lxml/objectify.pyx":824
 * 
 *     def __hash__(self):
 *         return hash(__parseBool(textOf(self._c_node)))             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_TraceLine(824,0,__PYX_ERR(0, 824, __pyx_L1_error))
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_3 == ((Py_hash_t)-1))) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":823
 *         return _richcmpPyvals(self, other, op)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(__parseBool(textOf(self._c_node)))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":826
 *         return hash(__parseBool(textOf(self._c_node)))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return unicode(__parseBool(textOf(self._c_node)))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_9__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_9__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_8__str__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_8__str__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[0], 826, 0, __PYX_ERR(0, 826, __pyx_L1_error));

  /* "lxml/objectify.pyx":827
 * 
 *     def __str__(self):
 *         return unicode(__parseBool(textOf(self._c_node)))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(827,0,__PYX_ERR(0, 827, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":826
 *         return hash(__parseBool(textOf(self._c_node)))
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return unicode(__parseBool(textOf(self._c_node)))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":829
 *         return unicode(__parseBool(textOf(self._c_node)))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(__parseBool(textOf(self._c_node)))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_11__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_11__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_10__repr__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_10__repr__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 829, 0, __PYX_ERR(0, 829, __pyx_L1_error));

  /* "lxml/objectify.pyx":830
 * 
 *     def __repr__(self):
 *         return repr(__parseBool(textOf(self._c_node)))             # <<<<<<<<<<<<<<
 * 
 *     property pyval:
 */
  __Pyx_TraceLine(830,0,__PYX_ERR(0, 830, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 830, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":829
 *         return unicode(__parseBool(textOf(self._c_node)))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return repr(__parseBool(textOf(self._c_node)))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":833
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return __parseBool(textOf(self._c_node))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_5pyval_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_11BoolElement_5pyval_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_11BoolElement_5pyval___get__(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_5pyval___get__(struct __pyx_obj_4lxml_9objectify_BoolElement *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 833, 0, __PYX_ERR(0, 833, __pyx_L1_error));

  /* "lxml/objectify.pyx":834
 *     property pyval:
 *         def __get__(self):
 *             return __parseBool(textOf(self._c_node))             # <<<<<<<<<<<<<<
 * 
 * def __checkBool(s):
 */
  __Pyx_TraceLine(834,0,__PYX_ERR(0, 834, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":833
 * 
 *     property pyval:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return __parseBool(textOf(self._c_node))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.BoolElement.pyval.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":836
 *             return __parseBool(textOf(self._c_node))
 * 
 * def __checkBool(s):             # <<<<<<<<<<<<<<
 *     cdef int value = -1
 *     if s is not None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_3__checkBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_3__checkBool = {"__checkBool", (PyCFunction)__pyx_pw_4lxml_9objectify_3__checkBool, METH_O, 0};
static PyObject *__pyx_pw_4lxml_9objectify_3__checkBool(PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__checkBool (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_2__checkBool(__pyx_self, ((PyObject *)__pyx_v_s));

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

static PyObject *__pyx_pf_4lxml_9objectify_2__checkBool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  int __pyx_v_value;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_TraceFrameInit(__pyx_codeobj__20)
  __Pyx_RefNannySetupContext("__checkBool", 0);
  __Pyx_TraceCall("__checkBool", __pyx_f[0], 836, 0, __PYX_ERR(0, 836, __pyx_L1_error));

  /* "lxml/objectify.pyx":837
 * 
 * def __checkBool(s):
 *     cdef int value = -1             # <<<<<<<<<<<<<<
 *     if s is not None:
 *         value = __parseBoolAsInt(s)
 */
  __Pyx_TraceLine(837,0,__PYX_ERR(0, 837, __pyx_L1_error))
  __pyx_v_value = -1;

  /* "lxml/objectify.pyx":838
 * def __checkBool(s):
 *     cdef int value = -1
 *     if s is not None:             # <<<<<<<<<<<<<<
 *         value = __parseBoolAsInt(s)
 *     if value == -1:
 */
  __Pyx_TraceLine(838,0,__PYX_ERR(0, 838, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_s != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":839
 *     cdef int value = -1
 *     if s is not None:
 *         value = __parseBoolAsInt(s)             # <<<<<<<<<<<<<<
 *     if value == -1:
 *         raise ValueError
 */
    __Pyx_TraceLine(839,0,__PYX_ERR(0, 839, __pyx_L1_error))
    __pyx_t_3 = __pyx_f_4lxml_9objectify___parseBoolAsInt(__pyx_v_s); if (unlikely(__pyx_t_3 == ((int)-2))) __PYX_ERR(0, 839, __pyx_L1_error)
    __pyx_v_value = __pyx_t_3;

    /* "lxml/objectify.pyx":838
 * def __checkBool(s):
 *     cdef int value = -1
 *     if s is not None:             # <<<<<<<<<<<<<<
 *         value = __parseBoolAsInt(s)
 *     if value == -1:
 */
  }

  /* "lxml/objectify.pyx":840
 *     if s is not None:
 *         value = __parseBoolAsInt(s)
 *     if value == -1:             # <<<<<<<<<<<<<<
 *         raise ValueError
 * 
 */
  __Pyx_TraceLine(840,0,__PYX_ERR(0, 840, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_value == -1L) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "lxml/objectify.pyx":841
 *         value = __parseBoolAsInt(s)
 *     if value == -1:
 *         raise ValueError             # <<<<<<<<<<<<<<
 * 
 * cpdef bint __parseBool(s) except -1:
 */
    __Pyx_TraceLine(841,0,__PYX_ERR(0, 841, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_ValueError, 0, 0, 0);
    __PYX_ERR(0, 841, __pyx_L1_error)

    /* "lxml/objectify.pyx":840
 *     if s is not None:
 *         value = __parseBoolAsInt(s)
 *     if value == -1:             # <<<<<<<<<<<<<<
 *         raise ValueError
 * 
 */
  }

  /* "lxml/objectify.pyx":836
 *             return __parseBool(textOf(self._c_node))
 * 
 * def __checkBool(s):             # <<<<<<<<<<<<<<
 *     cdef int value = -1
 *     if s is not None:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.__checkBool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":843
 *         raise ValueError
 * 
 * cpdef bint __parseBool(s) except -1:             # <<<<<<<<<<<<<<
 *     cdef int value
 *     if s is None:
 */

static PyObject *__pyx_pw_4lxml_9objectify_5__parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
static int __pyx_f_4lxml_9objectify___parseBool(PyObject *__pyx_v_s, CYTHON_UNUSED int __pyx_skip_dispatch) {
  int __pyx_v_value;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  Py_UCS4 __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__21)
  __Pyx_RefNannySetupContext("__parseBool", 0);
  __Pyx_TraceCall("__parseBool", __pyx_f[0], 843, 0, __PYX_ERR(0, 843, __pyx_L1_error));

  /* "lxml/objectify.pyx":845
 * cpdef bint __parseBool(s) except -1:
 *     cdef int value
 *     if s is None:             # <<<<<<<<<<<<<<
 *         return False
 *     value = __parseBoolAsInt(s)
 */
  __Pyx_TraceLine(845,0,__PYX_ERR(0, 845, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_s == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":846
 *     cdef int value
 *     if s is None:
 *         return False             # <<<<<<<<<<<<<<
 *     value = __parseBoolAsInt(s)
 *     if value == -1:
 */
    __Pyx_TraceLine(846,0,__PYX_ERR(0, 846, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":845
 * cpdef bint __parseBool(s) except -1:
 *     cdef int value
 *     if s is None:             # <<<<<<<<<<<<<<
 *         return False
 *     value = __parseBoolAsInt(s)
 */
  }

  /* "lxml/objectify.pyx":847
 *     if s is None:
 *         return False
 *     value = __parseBoolAsInt(s)             # <<<<<<<<<<<<<<
 *     if value == -1:
 *         raise ValueError, f"Invalid boolean value: '{s}'"
 */
  __Pyx_TraceLine(847,0,__PYX_ERR(0, 847, __pyx_L1_error))
  __pyx_t_3 = __pyx_f_4lxml_9objectify___parseBoolAsInt(__pyx_v_s); if (unlikely(__pyx_t_3 == ((int)-2))) __PYX_ERR(0, 847, __pyx_L1_error)
  __pyx_v_value = __pyx_t_3;

  /* "lxml/objectify.pyx":848
 *         return False
 *     value = __parseBoolAsInt(s)
 *     if value == -1:             # <<<<<<<<<<<<<<
 *         raise ValueError, f"Invalid boolean value: '{s}'"
 *     return value
 */
  __Pyx_TraceLine(848,0,__PYX_ERR(0, 848, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_value == -1L) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "lxml/objectify.pyx":849
 *     value = __parseBoolAsInt(s)
 *     if value == -1:
 *         raise ValueError, f"Invalid boolean value: '{s}'"             # <<<<<<<<<<<<<<
 *     return value
 * 
 */
    __Pyx_TraceLine(849,0,__PYX_ERR(0, 849, __pyx_L1_error))
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_6 = 127;
    __Pyx_INCREF(__pyx_kp_u_Invalid_boolean_value);
    __pyx_t_5 += 24;
    __Pyx_GIVEREF(__pyx_kp_u_Invalid_boolean_value);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Invalid_boolean_value);
    __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_s, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
    __pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_INCREF(__pyx_kp_u__22);
    __pyx_t_5 += 1;
    __Pyx_GIVEREF(__pyx_kp_u__22);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__22);
    __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_7, 0, 0);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __PYX_ERR(0, 849, __pyx_L1_error)

    /* "lxml/objectify.pyx":848
 *         return False
 *     value = __parseBoolAsInt(s)
 *     if value == -1:             # <<<<<<<<<<<<<<
 *         raise ValueError, f"Invalid boolean value: '{s}'"
 *     return value
 */
  }

  /* "lxml/objectify.pyx":850
 *     if value == -1:
 *         raise ValueError, f"Invalid boolean value: '{s}'"
 *     return value             # <<<<<<<<<<<<<<
 * 
 * cdef inline int __parseBoolAsInt(text) except -2:
 */
  __Pyx_TraceLine(850,0,__PYX_ERR(0, 850, __pyx_L1_error))
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":843
 *         raise ValueError
 * 
 * cpdef bint __parseBool(s) except -1:             # <<<<<<<<<<<<<<
 *     cdef int value
 *     if s is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify.__parseBool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_5__parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_5__parseBool = {"__parseBool", (PyCFunction)__pyx_pw_4lxml_9objectify_5__parseBool, METH_O, 0};
static PyObject *__pyx_pw_4lxml_9objectify_5__parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__parseBool (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_4__parseBool(__pyx_self, ((PyObject *)__pyx_v_s));

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

static PyObject *__pyx_pf_4lxml_9objectify_4__parseBool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__21)
  __Pyx_RefNannySetupContext("__parseBool", 0);
  __Pyx_TraceCall("__parseBool (wrapper)", __pyx_f[0], 843, 0, __PYX_ERR(0, 843, __pyx_L1_error));
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify___parseBool(__pyx_v_s, 0); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 843, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.__parseBool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":852
 *     return value
 * 
 * cdef inline int __parseBoolAsInt(text) except -2:             # <<<<<<<<<<<<<<
 *     if text == 'false':
 *         return 0
 */

static CYTHON_INLINE int __pyx_f_4lxml_9objectify___parseBoolAsInt(PyObject *__pyx_v_text) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__parseBoolAsInt", 0);
  __Pyx_TraceCall("__parseBoolAsInt", __pyx_f[0], 852, 0, __PYX_ERR(0, 852, __pyx_L1_error));

  /* "lxml/objectify.pyx":853
 * 
 * cdef inline int __parseBoolAsInt(text) except -2:
 *     if text == 'false':             # <<<<<<<<<<<<<<
 *         return 0
 *     elif text == 'true':
 */
  __Pyx_TraceLine(853,0,__PYX_ERR(0, 853, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_text, __pyx_n_s_false, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 853, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":854
 * cdef inline int __parseBoolAsInt(text) except -2:
 *     if text == 'false':
 *         return 0             # <<<<<<<<<<<<<<
 *     elif text == 'true':
 *         return 1
 */
    __Pyx_TraceLine(854,0,__PYX_ERR(0, 854, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":853
 * 
 * cdef inline int __parseBoolAsInt(text) except -2:
 *     if text == 'false':             # <<<<<<<<<<<<<<
 *         return 0
 *     elif text == 'true':
 */
  }

  /* "lxml/objectify.pyx":855
 *     if text == 'false':
 *         return 0
 *     elif text == 'true':             # <<<<<<<<<<<<<<
 *         return 1
 *     elif text == '0':
 */
  __Pyx_TraceLine(855,0,__PYX_ERR(0, 855, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_text, __pyx_n_s_true, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 855, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":856
 *         return 0
 *     elif text == 'true':
 *         return 1             # <<<<<<<<<<<<<<
 *     elif text == '0':
 *         return 0
 */
    __Pyx_TraceLine(856,0,__PYX_ERR(0, 856, __pyx_L1_error))
    __pyx_r = 1;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":855
 *     if text == 'false':
 *         return 0
 *     elif text == 'true':             # <<<<<<<<<<<<<<
 *         return 1
 *     elif text == '0':
 */
  }

  /* "lxml/objectify.pyx":857
 *     elif text == 'true':
 *         return 1
 *     elif text == '0':             # <<<<<<<<<<<<<<
 *         return 0
 *     elif text == '1':
 */
  __Pyx_TraceLine(857,0,__PYX_ERR(0, 857, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_text, __pyx_kp_s_0, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 857, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":858
 *         return 1
 *     elif text == '0':
 *         return 0             # <<<<<<<<<<<<<<
 *     elif text == '1':
 *         return 1
 */
    __Pyx_TraceLine(858,0,__PYX_ERR(0, 858, __pyx_L1_error))
    __pyx_r = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":857
 *     elif text == 'true':
 *         return 1
 *     elif text == '0':             # <<<<<<<<<<<<<<
 *         return 0
 *     elif text == '1':
 */
  }

  /* "lxml/objectify.pyx":859
 *     elif text == '0':
 *         return 0
 *     elif text == '1':             # <<<<<<<<<<<<<<
 *         return 1
 *     return -1
 */
  __Pyx_TraceLine(859,0,__PYX_ERR(0, 859, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_text, __pyx_kp_s_1, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 859, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":860
 *         return 0
 *     elif text == '1':
 *         return 1             # <<<<<<<<<<<<<<
 *     return -1
 * 
 */
    __Pyx_TraceLine(860,0,__PYX_ERR(0, 860, __pyx_L1_error))
    __pyx_r = 1;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":859
 *     elif text == '0':
 *         return 0
 *     elif text == '1':             # <<<<<<<<<<<<<<
 *         return 1
 *     return -1
 */
  }

  /* "lxml/objectify.pyx":861
 *     elif text == '1':
 *         return 1
 *     return -1             # <<<<<<<<<<<<<<
 * 
 * cdef object _parseNumber(NumberElement element):
 */
  __Pyx_TraceLine(861,0,__PYX_ERR(0, 861, __pyx_L1_error))
  __pyx_r = -1;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":852
 *     return value
 * 
 * cdef inline int __parseBoolAsInt(text) except -2:             # <<<<<<<<<<<<<<
 *     if text == 'false':
 *         return 0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.__parseBoolAsInt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -2;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":863
 *     return -1
 * 
 * cdef object _parseNumber(NumberElement element):             # <<<<<<<<<<<<<<
 *     return element._parse_value(textOf(element._c_node))
 * 
 */

static PyObject *__pyx_f_4lxml_9objectify__parseNumber(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_element) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  __Pyx_RefNannySetupContext("_parseNumber", 0);
  __Pyx_TraceCall("_parseNumber", __pyx_f[0], 863, 0, __PYX_ERR(0, 863, __pyx_L1_error));

  /* "lxml/objectify.pyx":864
 * 
 * cdef object _parseNumber(NumberElement element):
 *     return element._parse_value(textOf(element._c_node))             # <<<<<<<<<<<<<<
 * 
 * cdef object _strValueOf(obj):
 */
  __Pyx_TraceLine(864,0,__PYX_ERR(0, 864, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = textOf(__pyx_v_element->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 864, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_element->_parse_value);
  __pyx_t_3 = __pyx_v_element->_parse_value; __pyx_t_4 = NULL;
  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);
    }
  }
  if (!__pyx_t_4) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_2};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 864, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
      __Pyx_GIVEREF(__pyx_t_2);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_2);
      __pyx_t_2 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":863
 *     return -1
 * 
 * cdef object _parseNumber(NumberElement element):             # <<<<<<<<<<<<<<
 *     return element._parse_value(textOf(element._c_node))
 * 
 */

  /* 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("lxml.objectify._parseNumber", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":866
 *     return element._parse_value(textOf(element._c_node))
 * 
 * cdef object _strValueOf(obj):             # <<<<<<<<<<<<<<
 *     if python._isString(obj):
 *         return obj
 */

static PyObject *__pyx_f_4lxml_9objectify__strValueOf(PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("_strValueOf", 0);
  __Pyx_TraceCall("_strValueOf", __pyx_f[0], 866, 0, __PYX_ERR(0, 866, __pyx_L1_error));

  /* "lxml/objectify.pyx":867
 * 
 * cdef object _strValueOf(obj):
 *     if python._isString(obj):             # <<<<<<<<<<<<<<
 *         return obj
 *     if isinstance(obj, _Element):
 */
  __Pyx_TraceLine(867,0,__PYX_ERR(0, 867, __pyx_L1_error))
  __pyx_t_1 = (_isString(__pyx_v_obj) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":868
 * cdef object _strValueOf(obj):
 *     if python._isString(obj):
 *         return obj             # <<<<<<<<<<<<<<
 *     if isinstance(obj, _Element):
 *         return textOf((<_Element>obj)._c_node) or u''
 */
    __Pyx_TraceLine(868,0,__PYX_ERR(0, 868, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_obj);
    __pyx_r = __pyx_v_obj;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":867
 * 
 * cdef object _strValueOf(obj):
 *     if python._isString(obj):             # <<<<<<<<<<<<<<
 *         return obj
 *     if isinstance(obj, _Element):
 */
  }

  /* "lxml/objectify.pyx":869
 *     if python._isString(obj):
 *         return obj
 *     if isinstance(obj, _Element):             # <<<<<<<<<<<<<<
 *         return textOf((<_Element>obj)._c_node) or u''
 *     if obj is None:
 */
  __Pyx_TraceLine(869,0,__PYX_ERR(0, 869, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":870
 *         return obj
 *     if isinstance(obj, _Element):
 *         return textOf((<_Element>obj)._c_node) or u''             # <<<<<<<<<<<<<<
 *     if obj is None:
 *         return u''
 */
    __Pyx_TraceLine(870,0,__PYX_ERR(0, 870, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = textOf(((struct LxmlElement *)__pyx_v_obj)->_c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 870, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 870, __pyx_L1_error)
    if (!__pyx_t_2) {
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_3 = __pyx_t_4;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L5_bool_binop_done;
    }
    __Pyx_INCREF(__pyx_kp_u__3);
    __pyx_t_3 = __pyx_kp_u__3;
    __pyx_L5_bool_binop_done:;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":869
 *     if python._isString(obj):
 *         return obj
 *     if isinstance(obj, _Element):             # <<<<<<<<<<<<<<
 *         return textOf((<_Element>obj)._c_node) or u''
 *     if obj is None:
 */
  }

  /* "lxml/objectify.pyx":871
 *     if isinstance(obj, _Element):
 *         return textOf((<_Element>obj)._c_node) or u''
 *     if obj is None:             # <<<<<<<<<<<<<<
 *         return u''
 *     return unicode(obj)
 */
  __Pyx_TraceLine(871,0,__PYX_ERR(0, 871, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_obj == Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":872
 *         return textOf((<_Element>obj)._c_node) or u''
 *     if obj is None:
 *         return u''             # <<<<<<<<<<<<<<
 *     return unicode(obj)
 * 
 */
    __Pyx_TraceLine(872,0,__PYX_ERR(0, 872, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_kp_u__3);
    __pyx_r = __pyx_kp_u__3;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":871
 *     if isinstance(obj, _Element):
 *         return textOf((<_Element>obj)._c_node) or u''
 *     if obj is None:             # <<<<<<<<<<<<<<
 *         return u''
 *     return unicode(obj)
 */
  }

  /* "lxml/objectify.pyx":873
 *     if obj is None:
 *         return u''
 *     return unicode(obj)             # <<<<<<<<<<<<<<
 * 
 * cdef object _numericValueOf(obj):
 */
  __Pyx_TraceLine(873,0,__PYX_ERR(0, 873, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_obj); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":866
 *     return element._parse_value(textOf(element._c_node))
 * 
 * cdef object _strValueOf(obj):             # <<<<<<<<<<<<<<
 *     if python._isString(obj):
 *         return obj
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify._strValueOf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":875
 *     return unicode(obj)
 * 
 * cdef object _numericValueOf(obj):             # <<<<<<<<<<<<<<
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)
 */

static PyObject *__pyx_f_4lxml_9objectify__numericValueOf(PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __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;
  __Pyx_RefNannySetupContext("_numericValueOf", 0);
  __Pyx_TraceCall("_numericValueOf", __pyx_f[0], 875, 0, __PYX_ERR(0, 875, __pyx_L1_error));

  /* "lxml/objectify.pyx":876
 * 
 * cdef object _numericValueOf(obj):
 *     if isinstance(obj, NumberElement):             # <<<<<<<<<<<<<<
 *         return _parseNumber(<NumberElement>obj)
 *     try:
 */
  __Pyx_TraceLine(876,0,__PYX_ERR(0, 876, __pyx_L1_error))
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_ptype_4lxml_9objectify_NumberElement); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":877
 * cdef object _numericValueOf(obj):
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)             # <<<<<<<<<<<<<<
 *     try:
 *         # not always numeric, but Python will raise the right exception
 */
    __Pyx_TraceLine(877,0,__PYX_ERR(0, 877, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_obj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":876
 * 
 * cdef object _numericValueOf(obj):
 *     if isinstance(obj, NumberElement):             # <<<<<<<<<<<<<<
 *         return _parseNumber(<NumberElement>obj)
 *     try:
 */
  }

  /* "lxml/objectify.pyx":878
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)
 *     try:             # <<<<<<<<<<<<<<
 *         # not always numeric, but Python will raise the right exception
 *         return obj.pyval
 */
  __Pyx_TraceLine(878,0,__PYX_ERR(0, 878, __pyx_L4_error))
  {
    __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:*/ {

      /* "lxml/objectify.pyx":880
 *     try:
 *         # not always numeric, but Python will raise the right exception
 *         return obj.pyval             # <<<<<<<<<<<<<<
 *     except AttributeError:
 *         pass
 */
      __Pyx_TraceLine(880,0,__PYX_ERR(0, 880, __pyx_L4_error))
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_obj, __pyx_n_s_pyval); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 880, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L8_try_return;

      /* "lxml/objectify.pyx":878
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)
 *     try:             # <<<<<<<<<<<<<<
 *         # not always numeric, but Python will raise the right exception
 *         return obj.pyval
 */
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":881
 *         # not always numeric, but Python will raise the right exception
 *         return obj.pyval
 *     except AttributeError:             # <<<<<<<<<<<<<<
 *         pass
 *     return obj
 */
    __Pyx_TraceLine(881,0,__PYX_ERR(0, 881, __pyx_L6_except_error))
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
    if (__pyx_t_7) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "lxml/objectify.pyx":878
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)
 *     try:             # <<<<<<<<<<<<<<
 *         # not always numeric, but Python will raise the right exception
 *         return obj.pyval
 */
    __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_L8_try_return:;
    __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_L0;
    __pyx_L5_exception_handled:;
    __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);
  }

  /* "lxml/objectify.pyx":883
 *     except AttributeError:
 *         pass
 *     return obj             # <<<<<<<<<<<<<<
 * 
 * cdef _richcmpPyvals(left, right, int op):
 */
  __Pyx_TraceLine(883,0,__PYX_ERR(0, 883, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_obj);
  __pyx_r = __pyx_v_obj;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":875
 *     return unicode(obj)
 * 
 * cdef object _numericValueOf(obj):             # <<<<<<<<<<<<<<
 *     if isinstance(obj, NumberElement):
 *         return _parseNumber(<NumberElement>obj)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify._numericValueOf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":885
 *     return obj
 * 
 * cdef _richcmpPyvals(left, right, int op):             # <<<<<<<<<<<<<<
 *     left  = getattr(left,  'pyval', left)
 *     right = getattr(right, 'pyval', right)
 */

static PyObject *__pyx_f_4lxml_9objectify__richcmpPyvals(PyObject *__pyx_v_left, PyObject *__pyx_v_right, int __pyx_v_op) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("_richcmpPyvals", 0);
  __Pyx_TraceCall("_richcmpPyvals", __pyx_f[0], 885, 0, __PYX_ERR(0, 885, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_left);
  __Pyx_INCREF(__pyx_v_right);

  /* "lxml/objectify.pyx":886
 * 
 * cdef _richcmpPyvals(left, right, int op):
 *     left  = getattr(left,  'pyval', left)             # <<<<<<<<<<<<<<
 *     right = getattr(right, 'pyval', right)
 *     return python.PyObject_RichCompare(left, right, op)
 */
  __Pyx_TraceLine(886,0,__PYX_ERR(0, 886, __pyx_L1_error))
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_left, __pyx_n_s_pyval, __pyx_v_left); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_left, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":887
 * cdef _richcmpPyvals(left, right, int op):
 *     left  = getattr(left,  'pyval', left)
 *     right = getattr(right, 'pyval', right)             # <<<<<<<<<<<<<<
 *     return python.PyObject_RichCompare(left, right, op)
 * 
 */
  __Pyx_TraceLine(887,0,__PYX_ERR(0, 887, __pyx_L1_error))
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_right, __pyx_n_s_pyval, __pyx_v_right); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF_SET(__pyx_v_right, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":888
 *     left  = getattr(left,  'pyval', left)
 *     right = getattr(right, 'pyval', right)
 *     return python.PyObject_RichCompare(left, right, op)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(888,0,__PYX_ERR(0, 888, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_left, __pyx_v_right, __pyx_v_op); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":885
 *     return obj
 * 
 * cdef _richcmpPyvals(left, right, int op):             # <<<<<<<<<<<<<<
 *     left  = getattr(left,  'pyval', left)
 *     right = getattr(right, 'pyval', right)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify._richcmpPyvals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_left);
  __Pyx_XDECREF(__pyx_v_right);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":919
 *     cdef object _type
 *     cdef list _schema_types
 *     def __init__(self, name, type_check, type_class, stringify=None):             # <<<<<<<<<<<<<<
 *         if isinstance(name, bytes):
 *             name = (<bytes>name).decode('ascii')
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_6PyType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4lxml_9objectify_6PyType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_v_type_check = 0;
  PyObject *__pyx_v_type_class = 0;
  PyObject *__pyx_v_stringify = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_type_check,&__pyx_n_s_type_class,&__pyx_n_s_stringify,0};
    PyObject* values[4] = {0,0,0,0};
    values[3] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type_check)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 1); __PYX_ERR(0, 919, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type_class)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 2); __PYX_ERR(0, 919, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_stringify);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 919, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_name = values[0];
    __pyx_v_type_check = values[1];
    __pyx_v_type_class = values[2];
    __pyx_v_stringify = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 919, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType___init__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self), __pyx_v_name, __pyx_v_type_check, __pyx_v_type_class, __pyx_v_stringify);

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

static int __pyx_pf_4lxml_9objectify_6PyType___init__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_type_check, PyObject *__pyx_v_type_class, PyObject *__pyx_v_stringify) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_TraceCall("__init__", __pyx_f[0], 919, 0, __PYX_ERR(0, 919, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_INCREF(__pyx_v_stringify);

  /* "lxml/objectify.pyx":920
 *     cdef list _schema_types
 *     def __init__(self, name, type_check, type_class, stringify=None):
 *         if isinstance(name, bytes):             # <<<<<<<<<<<<<<
 *             name = (<bytes>name).decode('ascii')
 *         elif not isinstance(name, unicode):
 */
  __Pyx_TraceLine(920,0,__PYX_ERR(0, 920, __pyx_L1_error))
  __pyx_t_1 = PyBytes_Check(__pyx_v_name); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":921
 *     def __init__(self, name, type_check, type_class, stringify=None):
 *         if isinstance(name, bytes):
 *             name = (<bytes>name).decode('ascii')             # <<<<<<<<<<<<<<
 *         elif not isinstance(name, unicode):
 *             raise TypeError, u"Type name must be a string"
 */
    __Pyx_TraceLine(921,0,__PYX_ERR(0, 921, __pyx_L1_error))
    if (unlikely(__pyx_v_name == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
      __PYX_ERR(0, 921, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_decode_bytes(((PyObject*)__pyx_v_name), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 921, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":920
 *     cdef list _schema_types
 *     def __init__(self, name, type_check, type_class, stringify=None):
 *         if isinstance(name, bytes):             # <<<<<<<<<<<<<<
 *             name = (<bytes>name).decode('ascii')
 *         elif not isinstance(name, unicode):
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":922
 *         if isinstance(name, bytes):
 *             name = (<bytes>name).decode('ascii')
 *         elif not isinstance(name, unicode):             # <<<<<<<<<<<<<<
 *             raise TypeError, u"Type name must be a string"
 *         if type_check is not None and not callable(type_check):
 */
  __Pyx_TraceLine(922,0,__PYX_ERR(0, 922, __pyx_L1_error))
  __pyx_t_2 = PyUnicode_Check(__pyx_v_name); 
  __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":923
 *             name = (<bytes>name).decode('ascii')
 *         elif not isinstance(name, unicode):
 *             raise TypeError, u"Type name must be a string"             # <<<<<<<<<<<<<<
 *         if type_check is not None and not callable(type_check):
 *             raise TypeError, u"Type check function must be callable (or None)"
 */
    __Pyx_TraceLine(923,0,__PYX_ERR(0, 923, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Type_name_must_be_a_string, 0, 0);
    __PYX_ERR(0, 923, __pyx_L1_error)

    /* "lxml/objectify.pyx":922
 *         if isinstance(name, bytes):
 *             name = (<bytes>name).decode('ascii')
 *         elif not isinstance(name, unicode):             # <<<<<<<<<<<<<<
 *             raise TypeError, u"Type name must be a string"
 *         if type_check is not None and not callable(type_check):
 */
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":924
 *         elif not isinstance(name, unicode):
 *             raise TypeError, u"Type name must be a string"
 *         if type_check is not None and not callable(type_check):             # <<<<<<<<<<<<<<
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \
 */
  __Pyx_TraceLine(924,0,__PYX_ERR(0, 924, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_type_check != Py_None);
  __pyx_t_4 = (__pyx_t_2 != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = __Pyx_PyCallable_Check(__pyx_v_type_check); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 924, __pyx_L1_error)
  __pyx_t_2 = ((!(__pyx_t_4 != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":925
 *             raise TypeError, u"Type name must be a string"
 *         if type_check is not None and not callable(type_check):
 *             raise TypeError, u"Type check function must be callable (or None)"             # <<<<<<<<<<<<<<
 *         if name != TREE_PYTYPE_NAME and \
 *                not issubclass(type_class, ObjectifiedDataElement):
 */
    __Pyx_TraceLine(925,0,__PYX_ERR(0, 925, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Type_check_function_must_be_call, 0, 0);
    __PYX_ERR(0, 925, __pyx_L1_error)

    /* "lxml/objectify.pyx":924
 *         elif not isinstance(name, unicode):
 *             raise TypeError, u"Type name must be a string"
 *         if type_check is not None and not callable(type_check):             # <<<<<<<<<<<<<<
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \
 */
  }

  /* "lxml/objectify.pyx":926
 *         if type_check is not None and not callable(type_check):
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \             # <<<<<<<<<<<<<<
 *                not issubclass(type_class, ObjectifiedDataElement):
 *             raise TypeError, \
 */
  __Pyx_TraceLine(926,0,__PYX_ERR(0, 926, __pyx_L1_error))
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 926, __pyx_L1_error)
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L8_bool_binop_done;
  }

  /* "lxml/objectify.pyx":927
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \
 *                not issubclass(type_class, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *             raise TypeError, \
 *                 u"Data classes must inherit from ObjectifiedDataElement"
 */
  __Pyx_TraceLine(927,0,__PYX_ERR(0, 927, __pyx_L1_error))
  __pyx_t_2 = PyObject_IsSubclass(__pyx_v_type_class, ((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 927, __pyx_L1_error)
  __pyx_t_4 = ((!(__pyx_t_2 != 0)) != 0);
  __pyx_t_1 = __pyx_t_4;
  __pyx_L8_bool_binop_done:;

  /* "lxml/objectify.pyx":926
 *         if type_check is not None and not callable(type_check):
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \             # <<<<<<<<<<<<<<
 *                not issubclass(type_class, ObjectifiedDataElement):
 *             raise TypeError, \
 */
  __Pyx_TraceLine(926,0,__PYX_ERR(0, 926, __pyx_L1_error))
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":928
 *         if name != TREE_PYTYPE_NAME and \
 *                not issubclass(type_class, ObjectifiedDataElement):
 *             raise TypeError, \             # <<<<<<<<<<<<<<
 *                 u"Data classes must inherit from ObjectifiedDataElement"
 *         self.name  = name
 */
    __Pyx_TraceLine(928,0,__PYX_ERR(0, 928, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Data_classes_must_inherit_from_O, 0, 0);
    __PYX_ERR(0, 928, __pyx_L1_error)

    /* "lxml/objectify.pyx":926
 *         if type_check is not None and not callable(type_check):
 *             raise TypeError, u"Type check function must be callable (or None)"
 *         if name != TREE_PYTYPE_NAME and \             # <<<<<<<<<<<<<<
 *                not issubclass(type_class, ObjectifiedDataElement):
 *             raise TypeError, \
 */
  }

  /* "lxml/objectify.pyx":930
 *             raise TypeError, \
 *                 u"Data classes must inherit from ObjectifiedDataElement"
 *         self.name  = name             # <<<<<<<<<<<<<<
 *         self._type = type_class
 *         self.type_check = type_check
 */
  __Pyx_TraceLine(930,0,__PYX_ERR(0, 930, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_name;

  /* "lxml/objectify.pyx":931
 *                 u"Data classes must inherit from ObjectifiedDataElement"
 *         self.name  = name
 *         self._type = type_class             # <<<<<<<<<<<<<<
 *         self.type_check = type_check
 *         if stringify is None:
 */
  __Pyx_TraceLine(931,0,__PYX_ERR(0, 931, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_type_class);
  __Pyx_GIVEREF(__pyx_v_type_class);
  __Pyx_GOTREF(__pyx_v_self->_type);
  __Pyx_DECREF(__pyx_v_self->_type);
  __pyx_v_self->_type = __pyx_v_type_class;

  /* "lxml/objectify.pyx":932
 *         self.name  = name
 *         self._type = type_class
 *         self.type_check = type_check             # <<<<<<<<<<<<<<
 *         if stringify is None:
 *             stringify = unicode
 */
  __Pyx_TraceLine(932,0,__PYX_ERR(0, 932, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_type_check);
  __Pyx_GIVEREF(__pyx_v_type_check);
  __Pyx_GOTREF(__pyx_v_self->type_check);
  __Pyx_DECREF(__pyx_v_self->type_check);
  __pyx_v_self->type_check = __pyx_v_type_check;

  /* "lxml/objectify.pyx":933
 *         self._type = type_class
 *         self.type_check = type_check
 *         if stringify is None:             # <<<<<<<<<<<<<<
 *             stringify = unicode
 *         self.stringify = stringify
 */
  __Pyx_TraceLine(933,0,__PYX_ERR(0, 933, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_stringify == Py_None);
  __pyx_t_4 = (__pyx_t_1 != 0);
  if (__pyx_t_4) {

    /* "lxml/objectify.pyx":934
 *         self.type_check = type_check
 *         if stringify is None:
 *             stringify = unicode             # <<<<<<<<<<<<<<
 *         self.stringify = stringify
 *         self._schema_types = []
 */
    __Pyx_TraceLine(934,0,__PYX_ERR(0, 934, __pyx_L1_error))
    __Pyx_INCREF(((PyObject *)(&PyUnicode_Type)));
    __Pyx_DECREF_SET(__pyx_v_stringify, ((PyObject *)(&PyUnicode_Type)));

    /* "lxml/objectify.pyx":933
 *         self._type = type_class
 *         self.type_check = type_check
 *         if stringify is None:             # <<<<<<<<<<<<<<
 *             stringify = unicode
 *         self.stringify = stringify
 */
  }

  /* "lxml/objectify.pyx":935
 *         if stringify is None:
 *             stringify = unicode
 *         self.stringify = stringify             # <<<<<<<<<<<<<<
 *         self._schema_types = []
 * 
 */
  __Pyx_TraceLine(935,0,__PYX_ERR(0, 935, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_stringify);
  __Pyx_GIVEREF(__pyx_v_stringify);
  __Pyx_GOTREF(__pyx_v_self->stringify);
  __Pyx_DECREF(__pyx_v_self->stringify);
  __pyx_v_self->stringify = __pyx_v_stringify;

  /* "lxml/objectify.pyx":936
 *             stringify = unicode
 *         self.stringify = stringify
 *         self._schema_types = []             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_TraceLine(936,0,__PYX_ERR(0, 936, __pyx_L1_error))
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_schema_types);
  __Pyx_DECREF(__pyx_v_self->_schema_types);
  __pyx_v_self->_schema_types = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":919
 *     cdef object _type
 *     cdef list _schema_types
 *     def __init__(self, name, type_check, type_class, stringify=None):             # <<<<<<<<<<<<<<
 *         if isinstance(name, bytes):
 *             name = (<bytes>name).decode('ascii')
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.PyType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_stringify);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":938
 *         self._schema_types = []
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_2__repr__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_2__repr__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);
  __Pyx_TraceCall("__repr__", __pyx_f[0], 938, 0, __PYX_ERR(0, 938, __pyx_L1_error));

  /* "lxml/objectify.pyx":939
 * 
 *     def __repr__(self):
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)             # <<<<<<<<<<<<<<
 * 
 *     def register(self, before=None, after=None):
 */
  __Pyx_TraceLine(939,0,__PYX_ERR(0, 939, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_type, __pyx_n_s_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_PyType_s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 939, __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;

  /* "lxml/objectify.pyx":938
 *         self._schema_types = []
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.PyType.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":941
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 *     def register(self, before=None, after=None):             # <<<<<<<<<<<<<<
 *         u"""register(self, before=None, after=None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_5register(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_6PyType_4register[] = "register(self, before=None, after=None)\n\n        Register the type.\n\n        The additional keyword arguments 'before' and 'after' accept a\n        sequence of type names that must appear before/after the new type in\n        the type list.  If any of them is not currently known, it is simply\n        ignored.  Raises ValueError if the dependencies cannot be fulfilled.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_6PyType_5register = {"register", (PyCFunction)__pyx_pw_4lxml_9objectify_6PyType_5register, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_6PyType_4register};
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_5register(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_before = 0;
  PyObject *__pyx_v_after = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("register (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_before,&__pyx_n_s_after,0};
    PyObject* values[2] = {0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_before);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_after);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "register") < 0)) __PYX_ERR(0, 941, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_before = values[0];
    __pyx_v_after = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("register", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 941, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.register", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_4register(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self), __pyx_v_before, __pyx_v_after);

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_4register(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_before, PyObject *__pyx_v_after) {
  PyObject *__pyx_v_item = NULL;
  PyObject *__pyx_v_entry = NULL;
  PyObject *__pyx_v_first_pos = NULL;
  PyObject *__pyx_v_last_pos = NULL;
  PyObject *__pyx_v_i = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_check = NULL;
  PyObject *__pyx_v_pytype = NULL;
  PyObject *__pyx_v_xs_type = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_t_11;
  int __pyx_t_12;
  __Pyx_TraceFrameInit(__pyx_codeobj__23)
  __Pyx_RefNannySetupContext("register", 0);
  __Pyx_TraceCall("register", __pyx_f[0], 941, 0, __PYX_ERR(0, 941, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_before);
  __Pyx_INCREF(__pyx_v_after);

  /* "lxml/objectify.pyx":951
 *         ignored.  Raises ValueError if the dependencies cannot be fulfilled.
 *         """
 *         if self.name == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:
 */
  __Pyx_TraceLine(951,0,__PYX_ERR(0, 951, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 951, __pyx_L1_error)
  if (unlikely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":952
 *         """
 *         if self.name == TREE_PYTYPE_NAME:
 *             raise ValueError, u"Cannot register tree type"             # <<<<<<<<<<<<<<
 *         if self.type_check is not None:
 *             for item in _TYPE_CHECKS:
 */
    __Pyx_TraceLine(952,0,__PYX_ERR(0, 952, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Cannot_register_tree_type, 0, 0);
    __PYX_ERR(0, 952, __pyx_L1_error)

    /* "lxml/objectify.pyx":951
 *         ignored.  Raises ValueError if the dependencies cannot be fulfilled.
 *         """
 *         if self.name == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:
 */
  }

  /* "lxml/objectify.pyx":953
 *         if self.name == TREE_PYTYPE_NAME:
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:             # <<<<<<<<<<<<<<
 *             for item in _TYPE_CHECKS:
 *                 if item[0] is self.type_check:
 */
  __Pyx_TraceLine(953,0,__PYX_ERR(0, 953, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_self->type_check != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":954
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:
 *             for item in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *                 if item[0] is self.type_check:
 *                     _TYPE_CHECKS.remove(item)
 */
    __Pyx_TraceLine(954,0,__PYX_ERR(0, 954, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
      __PYX_ERR(0, 954, __pyx_L1_error)
    }
    __pyx_t_3 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
    for (;;) {
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 954, __pyx_L1_error)
      #else
      __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 954, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":955
 *         if self.type_check is not None:
 *             for item in _TYPE_CHECKS:
 *                 if item[0] is self.type_check:             # <<<<<<<<<<<<<<
 *                     _TYPE_CHECKS.remove(item)
 *                     break
 */
      __Pyx_TraceLine(955,0,__PYX_ERR(0, 955, __pyx_L1_error))
      __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_item, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 955, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_2 = (__pyx_t_5 == __pyx_v_self->type_check);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_1 = (__pyx_t_2 != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":956
 *             for item in _TYPE_CHECKS:
 *                 if item[0] is self.type_check:
 *                     _TYPE_CHECKS.remove(item)             # <<<<<<<<<<<<<<
 *                     break
 *             entry = (self.type_check, self)
 */
        __Pyx_TraceLine(956,0,__PYX_ERR(0, 956, __pyx_L1_error))
        __pyx_t_5 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyList_Type_remove, __pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_v_item); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 956, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "lxml/objectify.pyx":957
 *                 if item[0] is self.type_check:
 *                     _TYPE_CHECKS.remove(item)
 *                     break             # <<<<<<<<<<<<<<
 *             entry = (self.type_check, self)
 *             first_pos = 0
 */
        __Pyx_TraceLine(957,0,__PYX_ERR(0, 957, __pyx_L1_error))
        goto __pyx_L6_break;

        /* "lxml/objectify.pyx":955
 *         if self.type_check is not None:
 *             for item in _TYPE_CHECKS:
 *                 if item[0] is self.type_check:             # <<<<<<<<<<<<<<
 *                     _TYPE_CHECKS.remove(item)
 *                     break
 */
      }

      /* "lxml/objectify.pyx":954
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:
 *             for item in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *                 if item[0] is self.type_check:
 *                     _TYPE_CHECKS.remove(item)
 */
      __Pyx_TraceLine(954,0,__PYX_ERR(0, 954, __pyx_L1_error))
    }
    __pyx_L6_break:;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":958
 *                     _TYPE_CHECKS.remove(item)
 *                     break
 *             entry = (self.type_check, self)             # <<<<<<<<<<<<<<
 *             first_pos = 0
 *             last_pos = -1
 */
    __Pyx_TraceLine(958,0,__PYX_ERR(0, 958, __pyx_L1_error))
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_self->type_check);
    __Pyx_GIVEREF(__pyx_v_self->type_check);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->type_check);
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
    PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_self));
    __pyx_v_entry = ((PyObject*)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":959
 *                     break
 *             entry = (self.type_check, self)
 *             first_pos = 0             # <<<<<<<<<<<<<<
 *             last_pos = -1
 *             if before or after:
 */
    __Pyx_TraceLine(959,0,__PYX_ERR(0, 959, __pyx_L1_error))
    __Pyx_INCREF(__pyx_int_0);
    __pyx_v_first_pos = __pyx_int_0;

    /* "lxml/objectify.pyx":960
 *             entry = (self.type_check, self)
 *             first_pos = 0
 *             last_pos = -1             # <<<<<<<<<<<<<<
 *             if before or after:
 *                 if before is None:
 */
    __Pyx_TraceLine(960,0,__PYX_ERR(0, 960, __pyx_L1_error))
    __Pyx_INCREF(__pyx_int_neg_1);
    __pyx_v_last_pos = __pyx_int_neg_1;

    /* "lxml/objectify.pyx":961
 *             first_pos = 0
 *             last_pos = -1
 *             if before or after:             # <<<<<<<<<<<<<<
 *                 if before is None:
 *                     before = ()
 */
    __Pyx_TraceLine(961,0,__PYX_ERR(0, 961, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_before); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 961, __pyx_L1_error)
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_after); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 961, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_2;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":962
 *             last_pos = -1
 *             if before or after:
 *                 if before is None:             # <<<<<<<<<<<<<<
 *                     before = ()
 *                 elif after is None:
 */
      __Pyx_TraceLine(962,0,__PYX_ERR(0, 962, __pyx_L1_error))
      __pyx_t_1 = (__pyx_v_before == Py_None);
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":963
 *             if before or after:
 *                 if before is None:
 *                     before = ()             # <<<<<<<<<<<<<<
 *                 elif after is None:
 *                     after = ()
 */
        __Pyx_TraceLine(963,0,__PYX_ERR(0, 963, __pyx_L1_error))
        __Pyx_INCREF(__pyx_empty_tuple);
        __Pyx_DECREF_SET(__pyx_v_before, __pyx_empty_tuple);

        /* "lxml/objectify.pyx":962
 *             last_pos = -1
 *             if before or after:
 *                 if before is None:             # <<<<<<<<<<<<<<
 *                     before = ()
 *                 elif after is None:
 */
        goto __pyx_L11;
      }

      /* "lxml/objectify.pyx":964
 *                 if before is None:
 *                     before = ()
 *                 elif after is None:             # <<<<<<<<<<<<<<
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 */
      __Pyx_TraceLine(964,0,__PYX_ERR(0, 964, __pyx_L1_error))
      __pyx_t_2 = (__pyx_v_after == Py_None);
      __pyx_t_1 = (__pyx_t_2 != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":965
 *                     before = ()
 *                 elif after is None:
 *                     after = ()             # <<<<<<<<<<<<<<
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 *                     if last_pos == -1 and pytype.name in before:
 */
        __Pyx_TraceLine(965,0,__PYX_ERR(0, 965, __pyx_L1_error))
        __Pyx_INCREF(__pyx_empty_tuple);
        __Pyx_DECREF_SET(__pyx_v_after, __pyx_empty_tuple);

        /* "lxml/objectify.pyx":964
 *                 if before is None:
 *                     before = ()
 *                 elif after is None:             # <<<<<<<<<<<<<<
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 */
      }
      __pyx_L11:;

      /* "lxml/objectify.pyx":966
 *                 elif after is None:
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):             # <<<<<<<<<<<<<<
 *                     if last_pos == -1 and pytype.name in before:
 *                         last_pos = i
 */
      __Pyx_TraceLine(966,0,__PYX_ERR(0, 966, __pyx_L1_error))
      __Pyx_INCREF(__pyx_int_0);
      __pyx_t_3 = __pyx_int_0;
      __pyx_t_5 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; __Pyx_INCREF(__pyx_t_5); __pyx_t_4 = 0;
      for (;;) {
        if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_5)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_6 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 966, __pyx_L1_error)
        #else
        __pyx_t_6 = PySequence_ITEM(__pyx_t_5, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
        if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
          PyObject* sequence = __pyx_t_6;
          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, 966, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_7 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_7 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_8 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_8);
          #else
          __pyx_t_7 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 966, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 966, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          #endif
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_9 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 966, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
          index = 0; __pyx_t_7 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_7)) goto __pyx_L14_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_7);
          index = 1; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L14_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_8);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 2) < 0) __PYX_ERR(0, 966, __pyx_L1_error)
          __pyx_t_10 = NULL;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          goto __pyx_L15_unpacking_done;
          __pyx_L14_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
          __pyx_t_10 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 966, __pyx_L1_error)
          __pyx_L15_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_check, __pyx_t_7);
        __pyx_t_7 = 0;
        __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_8);
        __pyx_t_8 = 0;
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
        __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_3);
        __pyx_t_3 = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "lxml/objectify.pyx":967
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 *                     if last_pos == -1 and pytype.name in before:             # <<<<<<<<<<<<<<
 *                         last_pos = i
 *                     if pytype.name in after:
 */
        __Pyx_TraceLine(967,0,__PYX_ERR(0, 967, __pyx_L1_error))
        __pyx_t_6 = __Pyx_PyInt_EqObjC(__pyx_v_last_pos, __pyx_int_neg_1, -1L, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 967, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 967, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        if (__pyx_t_2) {
        } else {
          __pyx_t_1 = __pyx_t_2;
          goto __pyx_L17_bool_binop_done;
        }
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_pytype, __pyx_n_s_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 967, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_6, __pyx_v_before, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 967, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_11 = (__pyx_t_2 != 0);
        __pyx_t_1 = __pyx_t_11;
        __pyx_L17_bool_binop_done:;
        if (__pyx_t_1) {

          /* "lxml/objectify.pyx":968
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 *                     if last_pos == -1 and pytype.name in before:
 *                         last_pos = i             # <<<<<<<<<<<<<<
 *                     if pytype.name in after:
 *                         first_pos = i+1
 */
          __Pyx_TraceLine(968,0,__PYX_ERR(0, 968, __pyx_L1_error))
          __Pyx_INCREF(__pyx_v_i);
          __Pyx_DECREF_SET(__pyx_v_last_pos, __pyx_v_i);

          /* "lxml/objectify.pyx":967
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
 *                     if last_pos == -1 and pytype.name in before:             # <<<<<<<<<<<<<<
 *                         last_pos = i
 *                     if pytype.name in after:
 */
        }

        /* "lxml/objectify.pyx":969
 *                     if last_pos == -1 and pytype.name in before:
 *                         last_pos = i
 *                     if pytype.name in after:             # <<<<<<<<<<<<<<
 *                         first_pos = i+1
 *             if last_pos == -1:
 */
        __Pyx_TraceLine(969,0,__PYX_ERR(0, 969, __pyx_L1_error))
        __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_pytype, __pyx_n_s_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 969, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_t_6, __pyx_v_after, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 969, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_11 = (__pyx_t_1 != 0);
        if (__pyx_t_11) {

          /* "lxml/objectify.pyx":970
 *                         last_pos = i
 *                     if pytype.name in after:
 *                         first_pos = i+1             # <<<<<<<<<<<<<<
 *             if last_pos == -1:
 *                 _TYPE_CHECKS.append(entry)
 */
          __Pyx_TraceLine(970,0,__PYX_ERR(0, 970, __pyx_L1_error))
          __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_i, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 970, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF_SET(__pyx_v_first_pos, __pyx_t_6);
          __pyx_t_6 = 0;

          /* "lxml/objectify.pyx":969
 *                     if last_pos == -1 and pytype.name in before:
 *                         last_pos = i
 *                     if pytype.name in after:             # <<<<<<<<<<<<<<
 *                         first_pos = i+1
 *             if last_pos == -1:
 */
        }

        /* "lxml/objectify.pyx":966
 *                 elif after is None:
 *                     after = ()
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):             # <<<<<<<<<<<<<<
 *                     if last_pos == -1 and pytype.name in before:
 *                         last_pos = i
 */
        __Pyx_TraceLine(966,0,__PYX_ERR(0, 966, __pyx_L1_error))
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":961
 *             first_pos = 0
 *             last_pos = -1
 *             if before or after:             # <<<<<<<<<<<<<<
 *                 if before is None:
 *                     before = ()
 */
    }

    /* "lxml/objectify.pyx":971
 *                     if pytype.name in after:
 *                         first_pos = i+1
 *             if last_pos == -1:             # <<<<<<<<<<<<<<
 *                 _TYPE_CHECKS.append(entry)
 *             elif first_pos > last_pos:
 */
    __Pyx_TraceLine(971,0,__PYX_ERR(0, 971, __pyx_L1_error))
    __pyx_t_3 = __Pyx_PyInt_EqObjC(__pyx_v_last_pos, __pyx_int_neg_1, -1L, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 971, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 971, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_11) {

      /* "lxml/objectify.pyx":972
 *                         first_pos = i+1
 *             if last_pos == -1:
 *                 _TYPE_CHECKS.append(entry)             # <<<<<<<<<<<<<<
 *             elif first_pos > last_pos:
 *                 raise ValueError, u"inconsistent before/after dependencies"
 */
      __Pyx_TraceLine(972,0,__PYX_ERR(0, 972, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
        __PYX_ERR(0, 972, __pyx_L1_error)
      }
      __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_v_entry); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(0, 972, __pyx_L1_error)

      /* "lxml/objectify.pyx":971
 *                     if pytype.name in after:
 *                         first_pos = i+1
 *             if last_pos == -1:             # <<<<<<<<<<<<<<
 *                 _TYPE_CHECKS.append(entry)
 *             elif first_pos > last_pos:
 */
      goto __pyx_L20;
    }

    /* "lxml/objectify.pyx":973
 *             if last_pos == -1:
 *                 _TYPE_CHECKS.append(entry)
 *             elif first_pos > last_pos:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"inconsistent before/after dependencies"
 *             else:
 */
    __Pyx_TraceLine(973,0,__PYX_ERR(0, 973, __pyx_L1_error))
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_first_pos, __pyx_v_last_pos, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 973, __pyx_L1_error)
    __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 973, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(__pyx_t_11)) {

      /* "lxml/objectify.pyx":974
 *                 _TYPE_CHECKS.append(entry)
 *             elif first_pos > last_pos:
 *                 raise ValueError, u"inconsistent before/after dependencies"             # <<<<<<<<<<<<<<
 *             else:
 *                 _TYPE_CHECKS.insert(last_pos, entry)
 */
      __Pyx_TraceLine(974,0,__PYX_ERR(0, 974, __pyx_L1_error))
      __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_inconsistent_before_after_depend, 0, 0);
      __PYX_ERR(0, 974, __pyx_L1_error)

      /* "lxml/objectify.pyx":973
 *             if last_pos == -1:
 *                 _TYPE_CHECKS.append(entry)
 *             elif first_pos > last_pos:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"inconsistent before/after dependencies"
 *             else:
 */
    }

    /* "lxml/objectify.pyx":976
 *                 raise ValueError, u"inconsistent before/after dependencies"
 *             else:
 *                 _TYPE_CHECKS.insert(last_pos, entry)             # <<<<<<<<<<<<<<
 * 
 *         _PYTYPE_DICT[self.name] = self
 */
    __Pyx_TraceLine(976,0,__PYX_ERR(0, 976, __pyx_L1_error))
    /*else*/ {
      if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "insert");
        __PYX_ERR(0, 976, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_last_pos); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 976, __pyx_L1_error)
      __pyx_t_12 = PyList_Insert(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_t_4, __pyx_v_entry); if (unlikely(__pyx_t_12 == ((int)-1))) __PYX_ERR(0, 976, __pyx_L1_error)
    }
    __pyx_L20:;

    /* "lxml/objectify.pyx":953
 *         if self.name == TREE_PYTYPE_NAME:
 *             raise ValueError, u"Cannot register tree type"
 *         if self.type_check is not None:             # <<<<<<<<<<<<<<
 *             for item in _TYPE_CHECKS:
 *                 if item[0] is self.type_check:
 */
  }

  /* "lxml/objectify.pyx":978
 *                 _TYPE_CHECKS.insert(last_pos, entry)
 * 
 *         _PYTYPE_DICT[self.name] = self             # <<<<<<<<<<<<<<
 *         for xs_type in self._schema_types:
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 */
  __Pyx_TraceLine(978,0,__PYX_ERR(0, 978, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
    __PYX_ERR(0, 978, __pyx_L1_error)
  }
  if (unlikely(PyDict_SetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_self->name, ((PyObject *)__pyx_v_self)) < 0)) __PYX_ERR(0, 978, __pyx_L1_error)

  /* "lxml/objectify.pyx":979
 * 
 *         _PYTYPE_DICT[self.name] = self
 *         for xs_type in self._schema_types:             # <<<<<<<<<<<<<<
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 */
  __Pyx_TraceLine(979,0,__PYX_ERR(0, 979, __pyx_L1_error))
  if (unlikely(__pyx_v_self->_schema_types == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 979, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_v_self->_schema_types; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 979, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 979, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_xs_type, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/objectify.pyx":980
 *         _PYTYPE_DICT[self.name] = self
 *         for xs_type in self._schema_types:
 *             _SCHEMA_TYPE_DICT[xs_type] = self             # <<<<<<<<<<<<<<
 * 
 *     def unregister(self):
 */
    __Pyx_TraceLine(980,0,__PYX_ERR(0, 980, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 980, __pyx_L1_error)
    }
    if (unlikely(PyDict_SetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type, ((PyObject *)__pyx_v_self)) < 0)) __PYX_ERR(0, 980, __pyx_L1_error)

    /* "lxml/objectify.pyx":979
 * 
 *         _PYTYPE_DICT[self.name] = self
 *         for xs_type in self._schema_types:             # <<<<<<<<<<<<<<
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 */
    __Pyx_TraceLine(979,0,__PYX_ERR(0, 979, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":941
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 *     def register(self, before=None, after=None):             # <<<<<<<<<<<<<<
 *         u"""register(self, before=None, after=None)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify.PyType.register", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF(__pyx_v_entry);
  __Pyx_XDECREF(__pyx_v_first_pos);
  __Pyx_XDECREF(__pyx_v_last_pos);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_check);
  __Pyx_XDECREF(__pyx_v_pytype);
  __Pyx_XDECREF(__pyx_v_xs_type);
  __Pyx_XDECREF(__pyx_v_before);
  __Pyx_XDECREF(__pyx_v_after);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":982
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 *     def unregister(self):             # <<<<<<<<<<<<<<
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_7unregister(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_4lxml_9objectify_6PyType_6unregister[] = "unregister(self)";
static PyMethodDef __pyx_mdef_4lxml_9objectify_6PyType_7unregister = {"unregister", (PyCFunction)__pyx_pw_4lxml_9objectify_6PyType_7unregister, METH_NOARGS, __pyx_doc_4lxml_9objectify_6PyType_6unregister};
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_7unregister(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("unregister (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_6unregister(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_6unregister(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_v_xs_type = NULL;
  PyObject *__pyx_v_pytype = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  __Pyx_TraceFrameInit(__pyx_codeobj__24)
  __Pyx_RefNannySetupContext("unregister", 0);
  __Pyx_TraceCall("unregister", __pyx_f[0], 982, 0, __PYX_ERR(0, 982, __pyx_L1_error));

  /* "lxml/objectify.pyx":984
 *     def unregister(self):
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:             # <<<<<<<<<<<<<<
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 */
  __Pyx_TraceLine(984,0,__PYX_ERR(0, 984, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(0, 984, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_self->name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__pyx_t_1 == ((PyObject *)__pyx_v_self));
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":985
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:
 *             del _PYTYPE_DICT[self.name]             # <<<<<<<<<<<<<<
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 *             if pytype is self:
 */
    __Pyx_TraceLine(985,0,__PYX_ERR(0, 985, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 985, __pyx_L1_error)
    }
    if (unlikely(PyDict_DelItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_self->name) < 0)) __PYX_ERR(0, 985, __pyx_L1_error)

    /* "lxml/objectify.pyx":984
 *     def unregister(self):
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:             # <<<<<<<<<<<<<<
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 */
  }

  /* "lxml/objectify.pyx":986
 *         if _PYTYPE_DICT.get(self.name) is self:
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):             # <<<<<<<<<<<<<<
 *             if pytype is self:
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 */
  __Pyx_TraceLine(986,0,__PYX_ERR(0, 986, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
    __PYX_ERR(0, 986, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_Items(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PySequence_List(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_4); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 986, __pyx_L1_error)
    #else
    __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      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, 986, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_6 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_7);
      #else
      __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 986, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 986, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 986, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
      index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 986, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_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, 986, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_xs_type, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":987
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 *             if pytype is self:             # <<<<<<<<<<<<<<
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 *         if self.type_check is None:
 */
    __Pyx_TraceLine(987,0,__PYX_ERR(0, 987, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_pytype == ((PyObject *)__pyx_v_self));
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":988
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 *             if pytype is self:
 *                 del _SCHEMA_TYPE_DICT[xs_type]             # <<<<<<<<<<<<<<
 *         if self.type_check is None:
 *             return
 */
      __Pyx_TraceLine(988,0,__PYX_ERR(0, 988, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 988, __pyx_L1_error)
      }
      if (unlikely(PyDict_DelItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type) < 0)) __PYX_ERR(0, 988, __pyx_L1_error)

      /* "lxml/objectify.pyx":987
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
 *             if pytype is self:             # <<<<<<<<<<<<<<
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 *         if self.type_check is None:
 */
    }

    /* "lxml/objectify.pyx":986
 *         if _PYTYPE_DICT.get(self.name) is self:
 *             del _PYTYPE_DICT[self.name]
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):             # <<<<<<<<<<<<<<
 *             if pytype is self:
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 */
    __Pyx_TraceLine(986,0,__PYX_ERR(0, 986, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":989
 *             if pytype is self:
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 *         if self.type_check is None:             # <<<<<<<<<<<<<<
 *             return
 *         try:
 */
  __Pyx_TraceLine(989,0,__PYX_ERR(0, 989, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_self->type_check == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":990
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 *         if self.type_check is None:
 *             return             # <<<<<<<<<<<<<<
 *         try:
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
 */
    __Pyx_TraceLine(990,0,__PYX_ERR(0, 990, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":989
 *             if pytype is self:
 *                 del _SCHEMA_TYPE_DICT[xs_type]
 *         if self.type_check is None:             # <<<<<<<<<<<<<<
 *             return
 *         try:
 */
  }

  /* "lxml/objectify.pyx":991
 *         if self.type_check is None:
 *             return
 *         try:             # <<<<<<<<<<<<<<
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
 *         except ValueError:
 */
  __Pyx_TraceLine(991,0,__PYX_ERR(0, 991, __pyx_L10_error))
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
    __Pyx_XGOTREF(__pyx_t_10);
    __Pyx_XGOTREF(__pyx_t_11);
    __Pyx_XGOTREF(__pyx_t_12);
    /*try:*/ {

      /* "lxml/objectify.pyx":992
 *             return
 *         try:
 *             _TYPE_CHECKS.remove( (self.type_check, self) )             # <<<<<<<<<<<<<<
 *         except ValueError:
 *             pass
 */
      __Pyx_TraceLine(992,0,__PYX_ERR(0, 992, __pyx_L10_error))
      __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 992, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_INCREF(__pyx_v_self->type_check);
      __Pyx_GIVEREF(__pyx_v_self->type_check);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->type_check);
      __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_4 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyList_Type_remove, __pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 992, __pyx_L10_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":991
 *         if self.type_check is None:
 *             return
 *         try:             # <<<<<<<<<<<<<<
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
 *         except ValueError:
 */
    }
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    goto __pyx_L15_try_end;
    __pyx_L10_error:;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":993
 *         try:
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
 *         except ValueError:             # <<<<<<<<<<<<<<
 *             pass
 * 
 */
    __Pyx_TraceLine(993,0,__PYX_ERR(0, 993, __pyx_L12_except_error))
    __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError);
    if (__pyx_t_13) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L11_exception_handled;
    }
    goto __pyx_L12_except_error;
    __pyx_L12_except_error:;

    /* "lxml/objectify.pyx":991
 *         if self.type_check is None:
 *             return
 *         try:             # <<<<<<<<<<<<<<
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
 *         except ValueError:
 */
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_XGIVEREF(__pyx_t_12);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    goto __pyx_L1_error;
    __pyx_L11_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_10);
    __Pyx_XGIVEREF(__pyx_t_11);
    __Pyx_XGIVEREF(__pyx_t_12);
    __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    __pyx_L15_try_end:;
  }

  /* "lxml/objectify.pyx":982
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 *     def unregister(self):             # <<<<<<<<<<<<<<
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:
 */

  /* 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_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify.PyType.unregister", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_xs_type);
  __Pyx_XDECREF(__pyx_v_pytype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1001
 *         Note that this must be set before registering the type!
 *         """
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return self._schema_types
 *         def __set__(self, types):
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___get__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 1001, 0, __PYX_ERR(0, 1001, __pyx_L1_error));

  /* "lxml/objectify.pyx":1002
 *         """
 *         def __get__(self):
 *             return self._schema_types             # <<<<<<<<<<<<<<
 *         def __set__(self, types):
 *             self._schema_types = list(map(unicode, types))
 */
  __Pyx_TraceLine(1002,0,__PYX_ERR(0, 1002, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_schema_types);
  __pyx_r = __pyx_v_self->_schema_types;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1001
 *         Note that this must be set before registering the type!
 *         """
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return self._schema_types
 *         def __set__(self, types):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.xmlSchemaTypes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1003
 *         def __get__(self):
 *             return self._schema_types
 *         def __set__(self, types):             # <<<<<<<<<<<<<<
 *             self._schema_types = list(map(unicode, types))
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types); /*proto*/
static int __pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes_2__set__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self), ((PyObject *)__pyx_v_types));

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

static int __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes_2__set__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self, PyObject *__pyx_v_types) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_TraceCall("__set__", __pyx_f[0], 1003, 0, __PYX_ERR(0, 1003, __pyx_L1_error));

  /* "lxml/objectify.pyx":1004
 *             return self._schema_types
 *         def __set__(self, types):
 *             self._schema_types = list(map(unicode, types))             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(1004,0,__PYX_ERR(0, 1004, __pyx_L1_error))
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)(&PyUnicode_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyUnicode_Type)));
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&PyUnicode_Type)));
  __Pyx_INCREF(__pyx_v_types);
  __Pyx_GIVEREF(__pyx_v_types);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_types);
  __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->_schema_types);
  __Pyx_DECREF(__pyx_v_self->_schema_types);
  __pyx_v_self->_schema_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1003
 *         def __get__(self):
 *             return self._schema_types
 *         def __set__(self, types):             # <<<<<<<<<<<<<<
 *             self._schema_types = list(map(unicode, types))
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.PyType.xmlSchemaTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":914
 *     matching type will be used.
 *     """
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 *     cdef readonly object type_check
 *     cdef readonly object stringify
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_4name___get__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_4name___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 914, 0, __PYX_ERR(0, 914, __pyx_L1_error));
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":915
 *     """
 *     cdef readonly object name
 *     cdef readonly object type_check             # <<<<<<<<<<<<<<
 *     cdef readonly object stringify
 *     cdef object _type
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_10type_check_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_10type_check_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_10type_check___get__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_10type_check___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 915, 0, __PYX_ERR(0, 915, __pyx_L1_error));
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->type_check);
  __pyx_r = __pyx_v_self->type_check;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.type_check.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":916
 *     cdef readonly object name
 *     cdef readonly object type_check
 *     cdef readonly object stringify             # <<<<<<<<<<<<<<
 *     cdef object _type
 *     cdef list _schema_types
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_9stringify_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_6PyType_9stringify_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6PyType_9stringify___get__(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_6PyType_9stringify___get__(struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[0], 916, 0, __PYX_ERR(0, 916, __pyx_L1_error));
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->stringify);
  __pyx_r = __pyx_v_self->stringify;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.PyType.stringify.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1011
 * cdef list _TYPE_CHECKS = []
 * 
 * def __lower_bool(b):             # <<<<<<<<<<<<<<
 *     return u"true" if b else u"false"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_7__lower_bool(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_7__lower_bool = {"__lower_bool", (PyCFunction)__pyx_pw_4lxml_9objectify_7__lower_bool, METH_O, 0};
static PyObject *__pyx_pw_4lxml_9objectify_7__lower_bool(PyObject *__pyx_self, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__lower_bool (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_6__lower_bool(__pyx_self, ((PyObject *)__pyx_v_b));

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

static PyObject *__pyx_pf_4lxml_9objectify_6__lower_bool(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_TraceFrameInit(__pyx_codeobj__25)
  __Pyx_RefNannySetupContext("__lower_bool", 0);
  __Pyx_TraceCall("__lower_bool", __pyx_f[0], 1011, 0, __PYX_ERR(0, 1011, __pyx_L1_error));

  /* "lxml/objectify.pyx":1012
 * 
 * def __lower_bool(b):
 *     return u"true" if b else u"false"             # <<<<<<<<<<<<<<
 * 
 * cdef _pytypename(obj):
 */
  __Pyx_TraceLine(1012,0,__PYX_ERR(0, 1012, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_b); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1012, __pyx_L1_error)
  if (__pyx_t_2) {
    __Pyx_INCREF(__pyx_n_u_true);
    __pyx_t_1 = __pyx_n_u_true;
  } else {
    __Pyx_INCREF(__pyx_n_u_false);
    __pyx_t_1 = __pyx_n_u_false;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1011
 * cdef list _TYPE_CHECKS = []
 * 
 * def __lower_bool(b):             # <<<<<<<<<<<<<<
 *     return u"true" if b else u"false"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.__lower_bool", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1014
 *     return u"true" if b else u"false"
 * 
 * cdef _pytypename(obj):             # <<<<<<<<<<<<<<
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 */

static PyObject *__pyx_f_4lxml_9objectify__pytypename(PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("_pytypename", 0);
  __Pyx_TraceCall("_pytypename", __pyx_f[0], 1014, 0, __PYX_ERR(0, 1014, __pyx_L1_error));

  /* "lxml/objectify.pyx":1015
 * 
 * cdef _pytypename(obj):
 *     return u"str" if python._isString(obj) else _typename(obj)             # <<<<<<<<<<<<<<
 * 
 * def pytypename(obj):
 */
  __Pyx_TraceLine(1015,0,__PYX_ERR(0, 1015, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  if ((_isString(__pyx_v_obj) != 0)) {
    __Pyx_INCREF(__pyx_n_u_str);
    __pyx_t_1 = __pyx_n_u_str;
  } else {
    __pyx_t_2 = __pyx_f_4lxml_9objectify__typename(__pyx_v_obj); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1014
 *     return u"true" if b else u"false"
 * 
 * cdef _pytypename(obj):             # <<<<<<<<<<<<<<
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify._pytypename", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1017
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 * def pytypename(obj):             # <<<<<<<<<<<<<<
 *     u"""pytypename(obj)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_9pytypename(PyObject *__pyx_self, PyObject *__pyx_v_obj); /*proto*/
static char __pyx_doc_4lxml_9objectify_8pytypename[] = "pytypename(obj)\n\n    Find the name of the corresponding PyType for a Python object.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_9pytypename = {"pytypename", (PyCFunction)__pyx_pw_4lxml_9objectify_9pytypename, METH_O, __pyx_doc_4lxml_9objectify_8pytypename};
static PyObject *__pyx_pw_4lxml_9objectify_9pytypename(PyObject *__pyx_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pytypename (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_8pytypename(__pyx_self, ((PyObject *)__pyx_v_obj));

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

static PyObject *__pyx_pf_4lxml_9objectify_8pytypename(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__26)
  __Pyx_RefNannySetupContext("pytypename", 0);
  __Pyx_TraceCall("pytypename", __pyx_f[0], 1017, 0, __PYX_ERR(0, 1017, __pyx_L1_error));

  /* "lxml/objectify.pyx":1022
 *     Find the name of the corresponding PyType for a Python object.
 *     """
 *     return _pytypename(obj)             # <<<<<<<<<<<<<<
 * 
 * cdef _registerPyTypes():
 */
  __Pyx_TraceLine(1022,0,__PYX_ERR(0, 1022, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1022, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1017
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 * def pytypename(obj):             # <<<<<<<<<<<<<<
 *     u"""pytypename(obj)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.pytypename", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1024
 *     return _pytypename(obj)
 * 
 * cdef _registerPyTypes():             # <<<<<<<<<<<<<<
 *     pytype = PyType(u'int', int, IntElement)
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",
 */

static PyObject *__pyx_f_4lxml_9objectify__registerPyTypes(void) {
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_pytype = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("_registerPyTypes", 0);
  __Pyx_TraceCall("_registerPyTypes", __pyx_f[0], 1024, 0, __PYX_ERR(0, 1024, __pyx_L1_error));

  /* "lxml/objectify.pyx":1025
 * 
 * cdef _registerPyTypes():
 *     pytype = PyType(u'int', int, IntElement)             # <<<<<<<<<<<<<<
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",
 *                              u"unsignedByte", u"nonPositiveInteger",
 */
  __Pyx_TraceLine(1025,0,__PYX_ERR(0, 1025, __pyx_L1_error))
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_u_int);
  __Pyx_GIVEREF(__pyx_n_u_int);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_int);
  __Pyx_INCREF(((PyObject *)(&PyInt_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyInt_Type)));
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)(&PyInt_Type)));
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1026
 * cdef _registerPyTypes():
 *     pytype = PyType(u'int', int, IntElement)
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",             # <<<<<<<<<<<<<<
 *                              u"unsignedByte", u"nonPositiveInteger",
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
 */
  __Pyx_TraceLine(1026,0,__PYX_ERR(0, 1026, __pyx_L1_error))
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_xmlSchemaTypes, __pyx_tuple__27) < 0) __PYX_ERR(0, 1026, __pyx_L1_error)

  /* "lxml/objectify.pyx":1030
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
 *                              u"unsignedLong", u"unsignedInt", u"positiveInteger",)
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     # 'long' type just for backwards compatibility
 */
  __Pyx_TraceLine(1030,0,__PYX_ERR(0, 1030, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1030, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1030, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1033
 * 
 *     # 'long' type just for backwards compatibility
 *     pytype = PyType(u'long', None, IntElement)             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __Pyx_TraceLine(1033,0,__PYX_ERR(0, 1033, __pyx_L1_error))
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_u_long);
  __Pyx_GIVEREF(__pyx_n_u_long);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_long);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement));
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1034
 *     # 'long' type just for backwards compatibility
 *     pytype = PyType(u'long', None, IntElement)
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     pytype = PyType(u'float', float, FloatElement, repr)
 */
  __Pyx_TraceLine(1034,0,__PYX_ERR(0, 1034, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1034, __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;

  /* "lxml/objectify.pyx":1036
 *     pytype.register()
 * 
 *     pytype = PyType(u'float', float, FloatElement, repr)             # <<<<<<<<<<<<<<
 *     pytype.xmlSchemaTypes = (u"double", u"float")
 *     pytype.register()
 */
  __Pyx_TraceLine(1036,0,__PYX_ERR(0, 1036, __pyx_L1_error))
  __pyx_t_1 = __Pyx_GetBuiltinName(__pyx_n_s_repr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_u_float);
  __Pyx_GIVEREF(__pyx_n_u_float);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_float);
  __Pyx_INCREF(((PyObject *)(&PyFloat_Type)));
  __Pyx_GIVEREF(((PyObject *)(&PyFloat_Type)));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)(&PyFloat_Type)));
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_FloatElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_FloatElement));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_FloatElement));
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1037
 * 
 *     pytype = PyType(u'float', float, FloatElement, repr)
 *     pytype.xmlSchemaTypes = (u"double", u"float")             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __Pyx_TraceLine(1037,0,__PYX_ERR(0, 1037, __pyx_L1_error))
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_xmlSchemaTypes, __pyx_tuple__28) < 0) __PYX_ERR(0, 1037, __pyx_L1_error)

  /* "lxml/objectify.pyx":1038
 *     pytype = PyType(u'float', float, FloatElement, repr)
 *     pytype.xmlSchemaTypes = (u"double", u"float")
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
 */
  __Pyx_TraceLine(1038,0,__PYX_ERR(0, 1038, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  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);
    }
  }
  if (__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __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;

  /* "lxml/objectify.pyx":1040
 *     pytype.register()
 * 
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)             # <<<<<<<<<<<<<<
 *     pytype.xmlSchemaTypes = (u"boolean",)
 *     pytype.register()
 */
  __Pyx_TraceLine(1040,0,__PYX_ERR(0, 1040, __pyx_L1_error))
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_checkBool); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_lower_bool); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_u_bool);
  __Pyx_GIVEREF(__pyx_n_u_bool);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_n_u_bool);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_BoolElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_BoolElement));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_BoolElement));
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1041
 * 
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
 *     pytype.xmlSchemaTypes = (u"boolean",)             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __Pyx_TraceLine(1041,0,__PYX_ERR(0, 1041, __pyx_L1_error))
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_xmlSchemaTypes, __pyx_tuple__29) < 0) __PYX_ERR(0, 1041, __pyx_L1_error)

  /* "lxml/objectify.pyx":1042
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
 *     pytype.xmlSchemaTypes = (u"boolean",)
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     pytype = PyType(u'str', None, StringElement)
 */
  __Pyx_TraceLine(1042,0,__PYX_ERR(0, 1042, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1042, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1042, __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;

  /* "lxml/objectify.pyx":1044
 *     pytype.register()
 * 
 *     pytype = PyType(u'str', None, StringElement)             # <<<<<<<<<<<<<<
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
 */
  __Pyx_TraceLine(1044,0,__PYX_ERR(0, 1044, __pyx_L1_error))
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_u_str);
  __Pyx_GIVEREF(__pyx_n_u_str);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_str);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3));
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1045
 * 
 *     pytype = PyType(u'str', None, StringElement)
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",             # <<<<<<<<<<<<<<
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
 *                              u"NMTOKEN", )
 */
  __Pyx_TraceLine(1045,0,__PYX_ERR(0, 1045, __pyx_L1_error))
  if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_xmlSchemaTypes, __pyx_tuple__30) < 0) __PYX_ERR(0, 1045, __pyx_L1_error)

  /* "lxml/objectify.pyx":1048
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
 *                              u"NMTOKEN", )
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     # since lxml 2.0
 */
  __Pyx_TraceLine(1048,0,__PYX_ERR(0, 1048, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1048, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (__pyx_t_1) {
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1048, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1048, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1051
 * 
 *     # since lxml 2.0
 *     pytype = PyType(u'NoneType', None, NoneElement)             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __Pyx_TraceLine(1051,0,__PYX_ERR(0, 1051, __pyx_L1_error))
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_u_NoneType);
  __Pyx_GIVEREF(__pyx_n_u_NoneType);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_n_u_NoneType);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_3, 1, Py_None);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1052
 *     # since lxml 2.0
 *     pytype = PyType(u'NoneType', None, NoneElement)
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 *     # backwards compatibility
 */
  __Pyx_TraceLine(1052,0,__PYX_ERR(0, 1052, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1052, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1052, __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;

  /* "lxml/objectify.pyx":1055
 * 
 *     # backwards compatibility
 *     pytype = PyType(u'none', None, NoneElement)             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __Pyx_TraceLine(1055,0,__PYX_ERR(0, 1055, __pyx_L1_error))
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_u_none);
  __Pyx_GIVEREF(__pyx_n_u_none);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_none);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3));
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1056
 *     # backwards compatibility
 *     pytype = PyType(u'none', None, NoneElement)
 *     pytype.register()             # <<<<<<<<<<<<<<
 * 
 * # non-registered PyType for inner tree elements
 */
  __Pyx_TraceLine(1056,0,__PYX_ERR(0, 1056, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_pytype), __pyx_n_s_register); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (__pyx_t_1) {
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1056, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1056, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1024
 *     return _pytypename(obj)
 * 
 * cdef _registerPyTypes():             # <<<<<<<<<<<<<<
 *     pytype = PyType(u'int', int, IntElement)
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",
 */

  /* 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_AddTraceback("lxml.objectify._registerPyTypes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pytype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1063
 * _registerPyTypes()
 * 
 * def getRegisteredTypes():             # <<<<<<<<<<<<<<
 *     u"""getRegisteredTypes()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_11getRegisteredTypes(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_4lxml_9objectify_10getRegisteredTypes[] = "getRegisteredTypes()\n\n    Returns a list of the currently registered PyType objects.\n\n    To add a new type, retrieve this list and call unregister() for all\n    entries.  Then add the new type at a suitable position (possibly replacing\n    an existing one) and call register() for all entries.\n\n    This is necessary if the new type interferes with the type check functions\n    of existing ones (normally only int/float/bool) and must the tried before\n    other types.  To add a type that is not yet parsable by the current type\n    check functions, you can simply register() it, which will append it to the\n    end of the type list.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_11getRegisteredTypes = {"getRegisteredTypes", (PyCFunction)__pyx_pw_4lxml_9objectify_11getRegisteredTypes, METH_NOARGS, __pyx_doc_4lxml_9objectify_10getRegisteredTypes};
static PyObject *__pyx_pw_4lxml_9objectify_11getRegisteredTypes(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("getRegisteredTypes (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_10getRegisteredTypes(__pyx_self);

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

static PyObject *__pyx_pf_4lxml_9objectify_10getRegisteredTypes(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_v_types = 0;
  PyObject *__pyx_v_known = 0;
  CYTHON_UNUSED PyObject *__pyx_v_check = NULL;
  PyObject *__pyx_v_pytype = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  PyObject *(*__pyx_t_7)(PyObject *);
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  PyObject *(*__pyx_t_11)(PyObject *);
  __Pyx_TraceFrameInit(__pyx_codeobj__31)
  __Pyx_RefNannySetupContext("getRegisteredTypes", 0);
  __Pyx_TraceCall("getRegisteredTypes", __pyx_f[0], 1063, 0, __PYX_ERR(0, 1063, __pyx_L1_error));

  /* "lxml/objectify.pyx":1078
 *     end of the type list.
 *     """
 *     cdef list types = []             # <<<<<<<<<<<<<<
 *     cdef set known = set()
 *     for check, pytype in _TYPE_CHECKS:
 */
  __Pyx_TraceLine(1078,0,__PYX_ERR(0, 1078, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1079
 *     """
 *     cdef list types = []
 *     cdef set known = set()             # <<<<<<<<<<<<<<
 *     for check, pytype in _TYPE_CHECKS:
 *         name = pytype.name
 */
  __Pyx_TraceLine(1079,0,__PYX_ERR(0, 1079, __pyx_L1_error))
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_known = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1080
 *     cdef list types = []
 *     cdef set known = set()
 *     for check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         name = pytype.name
 *         if name not in known:
 */
  __Pyx_TraceLine(1080,0,__PYX_ERR(0, 1080, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1080, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 1080, __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, 1080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
      PyObject* sequence = __pyx_t_3;
      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, 1080, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_4 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_5 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_6 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1080, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
      index = 0; __pyx_t_4 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 1080, __pyx_L1_error)
      __pyx_t_7 = NULL;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1080, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_check, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/objectify.pyx":1081
 *     cdef set known = set()
 *     for check, pytype in _TYPE_CHECKS:
 *         name = pytype.name             # <<<<<<<<<<<<<<
 *         if name not in known:
 *             known.add(name)
 */
    __Pyx_TraceLine(1081,0,__PYX_ERR(0, 1081, __pyx_L1_error))
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_pytype, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":1082
 *     for check, pytype in _TYPE_CHECKS:
 *         name = pytype.name
 *         if name not in known:             # <<<<<<<<<<<<<<
 *             known.add(name)
 *             types.append(pytype)
 */
    __Pyx_TraceLine(1082,0,__PYX_ERR(0, 1082, __pyx_L1_error))
    __pyx_t_8 = (__Pyx_PySet_ContainsTF(__pyx_v_name, __pyx_v_known, Py_NE)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 1082, __pyx_L1_error)
    __pyx_t_9 = (__pyx_t_8 != 0);
    if (__pyx_t_9) {

      /* "lxml/objectify.pyx":1083
 *         name = pytype.name
 *         if name not in known:
 *             known.add(name)             # <<<<<<<<<<<<<<
 *             types.append(pytype)
 *     for pytype in _PYTYPE_DICT.values():
 */
      __Pyx_TraceLine(1083,0,__PYX_ERR(0, 1083, __pyx_L1_error))
      __pyx_t_10 = PySet_Add(__pyx_v_known, __pyx_v_name); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 1083, __pyx_L1_error)

      /* "lxml/objectify.pyx":1084
 *         if name not in known:
 *             known.add(name)
 *             types.append(pytype)             # <<<<<<<<<<<<<<
 *     for pytype in _PYTYPE_DICT.values():
 *         name = pytype.name
 */
      __Pyx_TraceLine(1084,0,__PYX_ERR(0, 1084, __pyx_L1_error))
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_types, __pyx_v_pytype); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 1084, __pyx_L1_error)

      /* "lxml/objectify.pyx":1082
 *     for check, pytype in _TYPE_CHECKS:
 *         name = pytype.name
 *         if name not in known:             # <<<<<<<<<<<<<<
 *             known.add(name)
 *             types.append(pytype)
 */
    }

    /* "lxml/objectify.pyx":1080
 *     cdef list types = []
 *     cdef set known = set()
 *     for check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         name = pytype.name
 *         if name not in known:
 */
    __Pyx_TraceLine(1080,0,__PYX_ERR(0, 1080, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1085
 *             known.add(name)
 *             types.append(pytype)
 *     for pytype in _PYTYPE_DICT.values():             # <<<<<<<<<<<<<<
 *         name = pytype.name
 *         if name not in known:
 */
  __Pyx_TraceLine(1085,0,__PYX_ERR(0, 1085, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
    __PYX_ERR(0, 1085, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_Values(__pyx_v_4lxml_9objectify__PYTYPE_DICT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_2 = 0;
    __pyx_t_11 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_11 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1085, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_11)) {
      if (likely(PyList_CheckExact(__pyx_t_3))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 1085, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 1085, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1085, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_11(__pyx_t_3);
      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, 1085, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1086
 *             types.append(pytype)
 *     for pytype in _PYTYPE_DICT.values():
 *         name = pytype.name             # <<<<<<<<<<<<<<
 *         if name not in known:
 *             known.add(name)
 */
    __Pyx_TraceLine(1086,0,__PYX_ERR(0, 1086, __pyx_L1_error))
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_pytype, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1086, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1087
 *     for pytype in _PYTYPE_DICT.values():
 *         name = pytype.name
 *         if name not in known:             # <<<<<<<<<<<<<<
 *             known.add(name)
 *             types.append(pytype)
 */
    __Pyx_TraceLine(1087,0,__PYX_ERR(0, 1087, __pyx_L1_error))
    __pyx_t_9 = (__Pyx_PySet_ContainsTF(__pyx_v_name, __pyx_v_known, Py_NE)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 1087, __pyx_L1_error)
    __pyx_t_8 = (__pyx_t_9 != 0);
    if (__pyx_t_8) {

      /* "lxml/objectify.pyx":1088
 *         name = pytype.name
 *         if name not in known:
 *             known.add(name)             # <<<<<<<<<<<<<<
 *             types.append(pytype)
 *     return types
 */
      __Pyx_TraceLine(1088,0,__PYX_ERR(0, 1088, __pyx_L1_error))
      __pyx_t_10 = PySet_Add(__pyx_v_known, __pyx_v_name); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 1088, __pyx_L1_error)

      /* "lxml/objectify.pyx":1089
 *         if name not in known:
 *             known.add(name)
 *             types.append(pytype)             # <<<<<<<<<<<<<<
 *     return types
 * 
 */
      __Pyx_TraceLine(1089,0,__PYX_ERR(0, 1089, __pyx_L1_error))
      __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_types, __pyx_v_pytype); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 1089, __pyx_L1_error)

      /* "lxml/objectify.pyx":1087
 *     for pytype in _PYTYPE_DICT.values():
 *         name = pytype.name
 *         if name not in known:             # <<<<<<<<<<<<<<
 *             known.add(name)
 *             types.append(pytype)
 */
    }

    /* "lxml/objectify.pyx":1085
 *             known.add(name)
 *             types.append(pytype)
 *     for pytype in _PYTYPE_DICT.values():             # <<<<<<<<<<<<<<
 *         name = pytype.name
 *         if name not in known:
 */
    __Pyx_TraceLine(1085,0,__PYX_ERR(0, 1085, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1090
 *             known.add(name)
 *             types.append(pytype)
 *     return types             # <<<<<<<<<<<<<<
 * 
 * cdef PyType _guessPyType(value, PyType defaulttype):
 */
  __Pyx_TraceLine(1090,0,__PYX_ERR(0, 1090, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_types);
  __pyx_r = __pyx_v_types;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1063
 * _registerPyTypes()
 * 
 * def getRegisteredTypes():             # <<<<<<<<<<<<<<
 *     u"""getRegisteredTypes()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify.getRegisteredTypes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_types);
  __Pyx_XDECREF(__pyx_v_known);
  __Pyx_XDECREF(__pyx_v_check);
  __Pyx_XDECREF(__pyx_v_pytype);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1092
 *     return types
 * 
 * cdef PyType _guessPyType(value, PyType defaulttype):             # <<<<<<<<<<<<<<
 *     if value is None:
 *         return None
 */

static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__guessPyType(PyObject *__pyx_v_value, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_defaulttype) {
  PyObject *__pyx_v_type_check = NULL;
  PyObject *__pyx_v_tested_pytype = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  __Pyx_RefNannySetupContext("_guessPyType", 0);
  __Pyx_TraceCall("_guessPyType", __pyx_f[0], 1092, 0, __PYX_ERR(0, 1092, __pyx_L1_error));

  /* "lxml/objectify.pyx":1093
 * 
 * cdef PyType _guessPyType(value, PyType defaulttype):
 *     if value is None:             # <<<<<<<<<<<<<<
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 */
  __Pyx_TraceLine(1093,0,__PYX_ERR(0, 1093, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_value == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1094
 * cdef PyType _guessPyType(value, PyType defaulttype):
 *     if value is None:
 *         return None             # <<<<<<<<<<<<<<
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 *         try:
 */
    __Pyx_TraceLine(1094,0,__PYX_ERR(0, 1094, __pyx_L1_error))
    __Pyx_XDECREF(((PyObject *)__pyx_r));
    __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1093
 * 
 * cdef PyType _guessPyType(value, PyType defaulttype):
 *     if value is None:             # <<<<<<<<<<<<<<
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 */
  }

  /* "lxml/objectify.pyx":1095
 *     if value is None:
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         try:
 *             type_check(value)
 */
  __Pyx_TraceLine(1095,0,__PYX_ERR(0, 1095, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1095, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1095, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
      PyObject* sequence = __pyx_t_5;
      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, 1095, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_6 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_7);
      #else
      __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1095, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1095, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1095, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
      index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 1095, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_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, 1095, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_type_check, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_tested_pytype, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":1096
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return <PyType>tested_pytype
 */
    __Pyx_TraceLine(1096,0,__PYX_ERR(0, 1096, __pyx_L8_error))
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "lxml/objectify.pyx":1097
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 *         try:
 *             type_check(value)             # <<<<<<<<<<<<<<
 *             return <PyType>tested_pytype
 *         except IGNORABLE_ERRORS:
 */
        __Pyx_TraceLine(1097,0,__PYX_ERR(0, 1097, __pyx_L8_error))
        __Pyx_INCREF(__pyx_v_type_check);
        __pyx_t_7 = __pyx_v_type_check; __pyx_t_6 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_7, function);
          }
        }
        if (!__pyx_t_6) {
          __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L8_error)
          __Pyx_GOTREF(__pyx_t_5);
        } else {
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_7)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L8_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_5);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L8_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_5);
          } else
          #endif
          {
            __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1097, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
            __Pyx_INCREF(__pyx_v_value);
            __Pyx_GIVEREF(__pyx_v_value);
            PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_v_value);
            __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L8_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "lxml/objectify.pyx":1098
 *         try:
 *             type_check(value)
 *             return <PyType>tested_pytype             # <<<<<<<<<<<<<<
 *         except IGNORABLE_ERRORS:
 *             # could not be parsed as the specified type => ignore
 */
        __Pyx_TraceLine(1098,0,__PYX_ERR(0, 1098, __pyx_L8_error))
        __Pyx_XDECREF(((PyObject *)__pyx_r));
        __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_tested_pytype)));
        __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_tested_pytype);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L12_try_return;

        /* "lxml/objectify.pyx":1096
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return <PyType>tested_pytype
 */
      }
      __pyx_L8_error:;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1099
 *             type_check(value)
 *             return <PyType>tested_pytype
 *         except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
 *             # could not be parsed as the specified type => ignore
 *             pass
 */
      __Pyx_TraceLine(1099,0,__PYX_ERR(0, 1099, __pyx_L10_except_error))
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
      if (__pyx_t_13) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L9_exception_handled;
      }
      goto __pyx_L10_except_error;
      __pyx_L10_except_error:;

      /* "lxml/objectify.pyx":1096
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return <PyType>tested_pytype
 */
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L12_try_return:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L0;
      __pyx_L9_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    }

    /* "lxml/objectify.pyx":1095
 *     if value is None:
 *         return None
 *     for type_check, tested_pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         try:
 *             type_check(value)
 */
    __Pyx_TraceLine(1095,0,__PYX_ERR(0, 1095, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1102
 *             # could not be parsed as the specified type => ignore
 *             pass
 *     return defaulttype             # <<<<<<<<<<<<<<
 * 
 * cdef object _guessElementClass(tree.xmlNode* c_node):
 */
  __Pyx_TraceLine(1102,0,__PYX_ERR(0, 1102, __pyx_L1_error))
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_defaulttype));
  __pyx_r = __pyx_v_defaulttype;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1092
 *     return types
 * 
 * cdef PyType _guessPyType(value, PyType defaulttype):             # <<<<<<<<<<<<<<
 *     if value is None:
 *         return None
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify._guessPyType", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_type_check);
  __Pyx_XDECREF(__pyx_v_tested_pytype);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1104
 *     return defaulttype
 * 
 * cdef object _guessElementClass(tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
 *     value = textOf(c_node)
 *     if value is None:
 */

static PyObject *__pyx_f_4lxml_9objectify__guessElementClass(xmlNode *__pyx_v_c_node) {
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_type_check = NULL;
  PyObject *__pyx_v_pytype = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  int __pyx_t_13;
  __Pyx_RefNannySetupContext("_guessElementClass", 0);
  __Pyx_TraceCall("_guessElementClass", __pyx_f[0], 1104, 0, __PYX_ERR(0, 1104, __pyx_L1_error));

  /* "lxml/objectify.pyx":1105
 * 
 * cdef object _guessElementClass(tree.xmlNode* c_node):
 *     value = textOf(c_node)             # <<<<<<<<<<<<<<
 *     if value is None:
 *         return None
 */
  __Pyx_TraceLine(1105,0,__PYX_ERR(0, 1105, __pyx_L1_error))
  __pyx_t_1 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1106
 * cdef object _guessElementClass(tree.xmlNode* c_node):
 *     value = textOf(c_node)
 *     if value is None:             # <<<<<<<<<<<<<<
 *         return None
 *     if value == '':
 */
  __Pyx_TraceLine(1106,0,__PYX_ERR(0, 1106, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_value == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1107
 *     value = textOf(c_node)
 *     if value is None:
 *         return None             # <<<<<<<<<<<<<<
 *     if value == '':
 *         return StringElement
 */
    __Pyx_TraceLine(1107,0,__PYX_ERR(0, 1107, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1106
 * cdef object _guessElementClass(tree.xmlNode* c_node):
 *     value = textOf(c_node)
 *     if value is None:             # <<<<<<<<<<<<<<
 *         return None
 *     if value == '':
 */
  }

  /* "lxml/objectify.pyx":1108
 *     if value is None:
 *         return None
 *     if value == '':             # <<<<<<<<<<<<<<
 *         return StringElement
 * 
 */
  __Pyx_TraceLine(1108,0,__PYX_ERR(0, 1108, __pyx_L1_error))
  __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_value, __pyx_kp_s__3, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1108, __pyx_L1_error)
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1109
 *         return None
 *     if value == '':
 *         return StringElement             # <<<<<<<<<<<<<<
 * 
 *     for type_check, pytype in _TYPE_CHECKS:
 */
    __Pyx_TraceLine(1109,0,__PYX_ERR(0, 1109, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));
    __pyx_r = ((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1108
 *     if value is None:
 *         return None
 *     if value == '':             # <<<<<<<<<<<<<<
 *         return StringElement
 * 
 */
  }

  /* "lxml/objectify.pyx":1111
 *         return StringElement
 * 
 *     for type_check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         try:
 *             type_check(value)
 */
  __Pyx_TraceLine(1111,0,__PYX_ERR(0, 1111, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__TYPE_CHECKS == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 1111, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1111, __pyx_L1_error)
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    #endif
    if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
      PyObject* sequence = __pyx_t_5;
      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, 1111, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_6 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_7);
      #else
      __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1111, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1111, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1111, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
      index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L7_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L7_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 1111, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L8_unpacking_done;
      __pyx_L7_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, 1111, __pyx_L1_error)
      __pyx_L8_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_type_check, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "lxml/objectify.pyx":1112
 * 
 *     for type_check, pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return (<PyType>pytype)._type
 */
    __Pyx_TraceLine(1112,0,__PYX_ERR(0, 1112, __pyx_L9_error))
    {
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __Pyx_ExceptionSave(&__pyx_t_10, &__pyx_t_11, &__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      /*try:*/ {

        /* "lxml/objectify.pyx":1113
 *     for type_check, pytype in _TYPE_CHECKS:
 *         try:
 *             type_check(value)             # <<<<<<<<<<<<<<
 *             return (<PyType>pytype)._type
 *         except IGNORABLE_ERRORS:
 */
        __Pyx_TraceLine(1113,0,__PYX_ERR(0, 1113, __pyx_L9_error))
        __Pyx_INCREF(__pyx_v_type_check);
        __pyx_t_7 = __pyx_v_type_check; __pyx_t_6 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
          __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
          if (likely(__pyx_t_6)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
            __Pyx_INCREF(__pyx_t_6);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_7, function);
          }
        }
        if (!__pyx_t_6) {
          __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1113, __pyx_L9_error)
          __Pyx_GOTREF(__pyx_t_5);
        } else {
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_7)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1113, __pyx_L9_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_5);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
            PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_value};
            __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1113, __pyx_L9_error)
            __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
            __Pyx_GOTREF(__pyx_t_5);
          } else
          #endif
          {
            __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1113, __pyx_L9_error)
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
            __Pyx_INCREF(__pyx_v_value);
            __Pyx_GIVEREF(__pyx_v_value);
            PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_v_value);
            __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_8, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1113, __pyx_L9_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

        /* "lxml/objectify.pyx":1114
 *         try:
 *             type_check(value)
 *             return (<PyType>pytype)._type             # <<<<<<<<<<<<<<
 *         except IGNORABLE_ERRORS:
 *             pass
 */
        __Pyx_TraceLine(1114,0,__PYX_ERR(0, 1114, __pyx_L9_error))
        __Pyx_XDECREF(__pyx_r);
        __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->_type);
        __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->_type;
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        goto __pyx_L13_try_return;

        /* "lxml/objectify.pyx":1112
 * 
 *     for type_check, pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return (<PyType>pytype)._type
 */
      }
      __pyx_L9_error:;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1115
 *             type_check(value)
 *             return (<PyType>pytype)._type
 *         except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
 *             pass
 *     return None
 */
      __Pyx_TraceLine(1115,0,__PYX_ERR(0, 1115, __pyx_L11_except_error))
      __pyx_t_13 = __Pyx_PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
      if (__pyx_t_13) {
        __Pyx_ErrRestore(0,0,0);
        goto __pyx_L10_exception_handled;
      }
      goto __pyx_L11_except_error;
      __pyx_L11_except_error:;

      /* "lxml/objectify.pyx":1112
 * 
 *     for type_check, pytype in _TYPE_CHECKS:
 *         try:             # <<<<<<<<<<<<<<
 *             type_check(value)
 *             return (<PyType>pytype)._type
 */
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L1_error;
      __pyx_L13_try_return:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
      goto __pyx_L0;
      __pyx_L10_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_ExceptionReset(__pyx_t_10, __pyx_t_11, __pyx_t_12);
    }

    /* "lxml/objectify.pyx":1111
 *         return StringElement
 * 
 *     for type_check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
 *         try:
 *             type_check(value)
 */
    __Pyx_TraceLine(1111,0,__PYX_ERR(0, 1111, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1117
 *         except IGNORABLE_ERRORS:
 *             pass
 *     return None             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
  __Pyx_TraceLine(1117,0,__PYX_ERR(0, 1117, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1104
 *     return defaulttype
 * 
 * cdef object _guessElementClass(tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
 *     value = textOf(c_node)
 *     if value is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify._guessElementClass", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_type_check);
  __Pyx_XDECREF(__pyx_v_pytype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1130
 *     cdef bint _annotate
 * 
 *     def __call__(self, *children, **attrib):             # <<<<<<<<<<<<<<
 *         u"__call__(self, *children, **attrib)"
 *         cdef _ObjectifyElementMakerCaller elementMaker
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_28_ObjectifyElementMakerCaller_1__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__[] = "__call__(self, *children, **attrib)";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__;
#endif
static PyObject *__pyx_pw_4lxml_9objectify_28_ObjectifyElementMakerCaller_1__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_children = 0;
  PyObject *__pyx_v_attrib = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__call__", 1))) return NULL;
  __pyx_v_attrib = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_attrib)) return NULL;
  __Pyx_GOTREF(__pyx_v_attrib);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_children = __pyx_args;
  __pyx_r = __pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self), __pyx_v_children, __pyx_v_attrib);

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

static PyObject *__pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__(struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *__pyx_v_self, PyObject *__pyx_v_children, PyObject *__pyx_v_attrib) {
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *__pyx_v_elementMaker = 0;
  struct LxmlElement *__pyx_v_element = 0;
  struct LxmlElement *__pyx_v_childElement = 0;
  int __pyx_v_has_children;
  int __pyx_v_has_string_value;
  PyObject *__pyx_v_pytype_name = NULL;
  PyObject *__pyx_v_child = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_pytype = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  Py_ssize_t __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  PyObject *__pyx_t_12 = NULL;
  PyObject *(*__pyx_t_13)(PyObject *);
  __Pyx_RefNannySetupContext("__call__", 0);
  __Pyx_TraceCall("__call__", __pyx_f[0], 1130, 0, __PYX_ERR(0, 1130, __pyx_L1_error));

  /* "lxml/objectify.pyx":1137
 *         cdef bint has_children
 *         cdef bint has_string_value
 *         if self._element_factory is None:             # <<<<<<<<<<<<<<
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)
 *         else:
 */
  __Pyx_TraceLine(1137,0,__PYX_ERR(0, 1137, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_self->_element_factory == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1138
 *         cdef bint has_string_value
 *         if self._element_factory is None:
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)             # <<<<<<<<<<<<<<
 *         else:
 *             element = self._element_factory(self._tag, attrib, self._nsmap)
 */
    __Pyx_TraceLine(1138,0,__PYX_ERR(0, 1138, __pyx_L1_error))
    __pyx_t_3 = __pyx_v_self->_tag;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_t_4 = __pyx_v_self->_nsmap;
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(__pyx_t_3, Py_None, __pyx_v_attrib, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "lxml/objectify.pyx":1137
 *         cdef bint has_children
 *         cdef bint has_string_value
 *         if self._element_factory is None:             # <<<<<<<<<<<<<<
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1140
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)
 *         else:
 *             element = self._element_factory(self._tag, attrib, self._nsmap)             # <<<<<<<<<<<<<<
 * 
 *         pytype_name = None
 */
  __Pyx_TraceLine(1140,0,__PYX_ERR(0, 1140, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(__pyx_v_self->_element_factory);
    __pyx_t_4 = __pyx_v_self->_element_factory; __pyx_t_3 = NULL;
    __pyx_t_6 = 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_6 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_self->_tag, __pyx_v_attrib, __pyx_v_self->_nsmap};
      __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1140, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_5);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_v_self->_tag, __pyx_v_attrib, __pyx_v_self->_nsmap};
      __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1140, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_5);
    } else
    #endif
    {
      __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1140, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__pyx_t_3) {
        __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3); __pyx_t_3 = NULL;
      }
      __Pyx_INCREF(__pyx_v_self->_tag);
      __Pyx_GIVEREF(__pyx_v_self->_tag);
      PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_self->_tag);
      __Pyx_INCREF(__pyx_v_attrib);
      __Pyx_GIVEREF(__pyx_v_attrib);
      PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_attrib);
      __Pyx_INCREF(__pyx_v_self->_nsmap);
      __Pyx_GIVEREF(__pyx_v_self->_nsmap);
      PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_self->_nsmap);
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1140, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 1140, __pyx_L1_error)
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_5);
    __pyx_t_5 = 0;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1142
 *             element = self._element_factory(self._tag, attrib, self._nsmap)
 * 
 *         pytype_name = None             # <<<<<<<<<<<<<<
 *         has_children = False
 *         has_string_value = False
 */
  __Pyx_TraceLine(1142,0,__PYX_ERR(0, 1142, __pyx_L1_error))
  __Pyx_INCREF(Py_None);
  __pyx_v_pytype_name = Py_None;

  /* "lxml/objectify.pyx":1143
 * 
 *         pytype_name = None
 *         has_children = False             # <<<<<<<<<<<<<<
 *         has_string_value = False
 *         for child in children:
 */
  __Pyx_TraceLine(1143,0,__PYX_ERR(0, 1143, __pyx_L1_error))
  __pyx_v_has_children = 0;

  /* "lxml/objectify.pyx":1144
 *         pytype_name = None
 *         has_children = False
 *         has_string_value = False             # <<<<<<<<<<<<<<
 *         for child in children:
 *             if child is None:
 */
  __Pyx_TraceLine(1144,0,__PYX_ERR(0, 1144, __pyx_L1_error))
  __pyx_v_has_string_value = 0;

  /* "lxml/objectify.pyx":1145
 *         has_children = False
 *         has_string_value = False
 *         for child in children:             # <<<<<<<<<<<<<<
 *             if child is None:
 *                 if len(children) == 1:
 */
  __Pyx_TraceLine(1145,0,__PYX_ERR(0, 1145, __pyx_L1_error))
  __pyx_t_5 = __pyx_v_children; __Pyx_INCREF(__pyx_t_5); __pyx_t_8 = 0;
  for (;;) {
    if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_8); __Pyx_INCREF(__pyx_t_4); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 1145, __pyx_L1_error)
    #else
    __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_child, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1146
 *         has_string_value = False
 *         for child in children:
 *             if child is None:             # <<<<<<<<<<<<<<
 *                 if len(children) == 1:
 *                     cetree.setAttributeValue(
 */
    __Pyx_TraceLine(1146,0,__PYX_ERR(0, 1146, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_child == Py_None);
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1147
 *         for child in children:
 *             if child is None:
 *                 if len(children) == 1:             # <<<<<<<<<<<<<<
 *                     cetree.setAttributeValue(
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 */
      __Pyx_TraceLine(1147,0,__PYX_ERR(0, 1147, __pyx_L1_error))
      __pyx_t_9 = PyTuple_GET_SIZE(__pyx_v_children); if (unlikely(__pyx_t_9 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1147, __pyx_L1_error)
      __pyx_t_1 = ((__pyx_t_9 == 1) != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":1149
 *                 if len(children) == 1:
 *                     cetree.setAttributeValue(
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")             # <<<<<<<<<<<<<<
 *             elif python._isString(child):
 *                 _add_text(element, child)
 */
        __Pyx_TraceLine(1149,0,__PYX_ERR(0, 1149, __pyx_L1_error))
        __pyx_t_4 = __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR;
        __Pyx_INCREF(__pyx_t_4);

        /* "lxml/objectify.pyx":1148
 *             if child is None:
 *                 if len(children) == 1:
 *                     cetree.setAttributeValue(             # <<<<<<<<<<<<<<
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *             elif python._isString(child):
 */
        __Pyx_TraceLine(1148,0,__PYX_ERR(0, 1148, __pyx_L1_error))
        __pyx_t_6 = setAttributeValue(__pyx_v_element, __pyx_t_4, __pyx_n_u_true); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1148, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "lxml/objectify.pyx":1147
 *         for child in children:
 *             if child is None:
 *                 if len(children) == 1:             # <<<<<<<<<<<<<<
 *                     cetree.setAttributeValue(
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 */
      }

      /* "lxml/objectify.pyx":1146
 *         has_string_value = False
 *         for child in children:
 *             if child is None:             # <<<<<<<<<<<<<<
 *                 if len(children) == 1:
 *                     cetree.setAttributeValue(
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":1150
 *                     cetree.setAttributeValue(
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *             elif python._isString(child):             # <<<<<<<<<<<<<<
 *                 _add_text(element, child)
 *                 has_string_value = True
 */
    __Pyx_TraceLine(1150,0,__PYX_ERR(0, 1150, __pyx_L1_error))
    __pyx_t_1 = (_isString(__pyx_v_child) != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1151
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *             elif python._isString(child):
 *                 _add_text(element, child)             # <<<<<<<<<<<<<<
 *                 has_string_value = True
 *             elif isinstance(child, _Element):
 */
      __Pyx_TraceLine(1151,0,__PYX_ERR(0, 1151, __pyx_L1_error))
      __pyx_t_4 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1151, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1152
 *             elif python._isString(child):
 *                 _add_text(element, child)
 *                 has_string_value = True             # <<<<<<<<<<<<<<
 *             elif isinstance(child, _Element):
 *                 cetree.appendChildToElement(element, <_Element>child)
 */
      __Pyx_TraceLine(1152,0,__PYX_ERR(0, 1152, __pyx_L1_error))
      __pyx_v_has_string_value = 1;

      /* "lxml/objectify.pyx":1150
 *                     cetree.setAttributeValue(
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 *             elif python._isString(child):             # <<<<<<<<<<<<<<
 *                 _add_text(element, child)
 *                 has_string_value = True
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":1153
 *                 _add_text(element, child)
 *                 has_string_value = True
 *             elif isinstance(child, _Element):             # <<<<<<<<<<<<<<
 *                 cetree.appendChildToElement(element, <_Element>child)
 *                 has_children = True
 */
    __Pyx_TraceLine(1153,0,__PYX_ERR(0, 1153, __pyx_L1_error))
    __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_child, __pyx_ptype_4lxml_8includes_11etreepublic__Element); 
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1154
 *                 has_string_value = True
 *             elif isinstance(child, _Element):
 *                 cetree.appendChildToElement(element, <_Element>child)             # <<<<<<<<<<<<<<
 *                 has_children = True
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
 */
      __Pyx_TraceLine(1154,0,__PYX_ERR(0, 1154, __pyx_L1_error))
      __pyx_t_6 = appendChildToElement(__pyx_v_element, ((struct LxmlElement *)__pyx_v_child)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1154, __pyx_L1_error)

      /* "lxml/objectify.pyx":1155
 *             elif isinstance(child, _Element):
 *                 cetree.appendChildToElement(element, <_Element>child)
 *                 has_children = True             # <<<<<<<<<<<<<<
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 */
      __Pyx_TraceLine(1155,0,__PYX_ERR(0, 1155, __pyx_L1_error))
      __pyx_v_has_children = 1;

      /* "lxml/objectify.pyx":1153
 *                 _add_text(element, child)
 *                 has_string_value = True
 *             elif isinstance(child, _Element):             # <<<<<<<<<<<<<<
 *                 cetree.appendChildToElement(element, <_Element>child)
 *                 has_children = True
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":1156
 *                 cetree.appendChildToElement(element, <_Element>child)
 *                 has_children = True
 *             elif isinstance(child, _ObjectifyElementMakerCaller):             # <<<<<<<<<<<<<<
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 *                 if elementMaker._element_factory is None:
 */
    __Pyx_TraceLine(1156,0,__PYX_ERR(0, 1156, __pyx_L1_error))
    __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_child, __pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller); 
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1157
 *                 has_children = True
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
 *                 elementMaker = <_ObjectifyElementMakerCaller>child             # <<<<<<<<<<<<<<
 *                 if elementMaker._element_factory is None:
 *                     cetree.makeSubElement(element, elementMaker._tag,
 */
      __Pyx_TraceLine(1157,0,__PYX_ERR(0, 1157, __pyx_L1_error))
      __pyx_t_4 = __pyx_v_child;
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_elementMaker, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_t_4));
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1158
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 *                 if elementMaker._element_factory is None:             # <<<<<<<<<<<<<<
 *                     cetree.makeSubElement(element, elementMaker._tag,
 *                                           None, None, None, None)
 */
      __Pyx_TraceLine(1158,0,__PYX_ERR(0, 1158, __pyx_L1_error))
      __pyx_t_1 = (__pyx_v_elementMaker->_element_factory == Py_None);
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1159
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 *                 if elementMaker._element_factory is None:
 *                     cetree.makeSubElement(element, elementMaker._tag,             # <<<<<<<<<<<<<<
 *                                           None, None, None, None)
 *                 else:
 */
        __Pyx_TraceLine(1159,0,__PYX_ERR(0, 1159, __pyx_L1_error))
        __pyx_t_4 = __pyx_v_elementMaker->_tag;
        __Pyx_INCREF(__pyx_t_4);

        /* "lxml/objectify.pyx":1160
 *                 if elementMaker._element_factory is None:
 *                     cetree.makeSubElement(element, elementMaker._tag,
 *                                           None, None, None, None)             # <<<<<<<<<<<<<<
 *                 else:
 *                     childElement = elementMaker._element_factory(
 */
        __Pyx_TraceLine(1160,0,__PYX_ERR(0, 1160, __pyx_L1_error))
        __pyx_t_7 = ((PyObject *)makeSubElement(__pyx_v_element, __pyx_t_4, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1159, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "lxml/objectify.pyx":1158
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 *                 if elementMaker._element_factory is None:             # <<<<<<<<<<<<<<
 *                     cetree.makeSubElement(element, elementMaker._tag,
 *                                           None, None, None, None)
 */
        goto __pyx_L8;
      }

      /* "lxml/objectify.pyx":1162
 *                                           None, None, None, None)
 *                 else:
 *                     childElement = elementMaker._element_factory(             # <<<<<<<<<<<<<<
 *                         elementMaker._tag)
 *                     cetree.appendChildToElement(element, childElement)
 */
      __Pyx_TraceLine(1162,0,__PYX_ERR(0, 1162, __pyx_L1_error))
      /*else*/ {

        /* "lxml/objectify.pyx":1163
 *                 else:
 *                     childElement = elementMaker._element_factory(
 *                         elementMaker._tag)             # <<<<<<<<<<<<<<
 *                     cetree.appendChildToElement(element, childElement)
 *                 has_children = True
 */
        __Pyx_TraceLine(1163,0,__PYX_ERR(0, 1163, __pyx_L1_error))
        __Pyx_INCREF(__pyx_v_elementMaker->_element_factory);
        __pyx_t_4 = __pyx_v_elementMaker->_element_factory; __pyx_t_3 = NULL;
        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);
          }
        }
        if (!__pyx_t_3) {
          __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_elementMaker->_tag); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1162, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
        } else {
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_4)) {
            PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_elementMaker->_tag};
            __pyx_t_7 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1162, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_GOTREF(__pyx_t_7);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
            PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_elementMaker->_tag};
            __pyx_t_7 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1162, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
            __Pyx_GOTREF(__pyx_t_7);
          } else
          #endif
          {
            __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1162, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_10);
            __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_3); __pyx_t_3 = NULL;
            __Pyx_INCREF(__pyx_v_elementMaker->_tag);
            __Pyx_GIVEREF(__pyx_v_elementMaker->_tag);
            PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_v_elementMaker->_tag);
            __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1162, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "lxml/objectify.pyx":1162
 *                                           None, None, None, None)
 *                 else:
 *                     childElement = elementMaker._element_factory(             # <<<<<<<<<<<<<<
 *                         elementMaker._tag)
 *                     cetree.appendChildToElement(element, childElement)
 */
        __Pyx_TraceLine(1162,0,__PYX_ERR(0, 1162, __pyx_L1_error))
        if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 1162, __pyx_L1_error)
        __Pyx_XDECREF_SET(__pyx_v_childElement, ((struct LxmlElement *)__pyx_t_7));
        __pyx_t_7 = 0;

        /* "lxml/objectify.pyx":1164
 *                     childElement = elementMaker._element_factory(
 *                         elementMaker._tag)
 *                     cetree.appendChildToElement(element, childElement)             # <<<<<<<<<<<<<<
 *                 has_children = True
 *             elif isinstance(child, dict):
 */
        __Pyx_TraceLine(1164,0,__PYX_ERR(0, 1164, __pyx_L1_error))
        __pyx_t_6 = appendChildToElement(__pyx_v_element, __pyx_v_childElement); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1164, __pyx_L1_error)
      }
      __pyx_L8:;

      /* "lxml/objectify.pyx":1165
 *                         elementMaker._tag)
 *                     cetree.appendChildToElement(element, childElement)
 *                 has_children = True             # <<<<<<<<<<<<<<
 *             elif isinstance(child, dict):
 *                 for name, value in child.items():
 */
      __Pyx_TraceLine(1165,0,__PYX_ERR(0, 1165, __pyx_L1_error))
      __pyx_v_has_children = 1;

      /* "lxml/objectify.pyx":1156
 *                 cetree.appendChildToElement(element, <_Element>child)
 *                 has_children = True
 *             elif isinstance(child, _ObjectifyElementMakerCaller):             # <<<<<<<<<<<<<<
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
 *                 if elementMaker._element_factory is None:
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":1166
 *                     cetree.appendChildToElement(element, childElement)
 *                 has_children = True
 *             elif isinstance(child, dict):             # <<<<<<<<<<<<<<
 *                 for name, value in child.items():
 *                     # keyword arguments in attrib take precedence
 */
    __Pyx_TraceLine(1166,0,__PYX_ERR(0, 1166, __pyx_L1_error))
    __pyx_t_2 = PyDict_Check(__pyx_v_child); 
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1167
 *                 has_children = True
 *             elif isinstance(child, dict):
 *                 for name, value in child.items():             # <<<<<<<<<<<<<<
 *                     # keyword arguments in attrib take precedence
 *                     if name in attrib:
 */
      __Pyx_TraceLine(1167,0,__PYX_ERR(0, 1167, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_child, __pyx_n_s_items); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1167, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_10 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      if (__pyx_t_10) {
        __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_10); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1167, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      } else {
        __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1167, __pyx_L1_error)
      }
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (likely(PyList_CheckExact(__pyx_t_7)) || PyTuple_CheckExact(__pyx_t_7)) {
        __pyx_t_4 = __pyx_t_7; __Pyx_INCREF(__pyx_t_4); __pyx_t_9 = 0;
        __pyx_t_11 = NULL;
      } else {
        __pyx_t_9 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1167, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_11 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1167, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      for (;;) {
        if (likely(!__pyx_t_11)) {
          if (likely(PyList_CheckExact(__pyx_t_4))) {
            if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_4)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_9); __Pyx_INCREF(__pyx_t_7); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1167, __pyx_L1_error)
            #else
            __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1167, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            #endif
          } else {
            if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_9); __Pyx_INCREF(__pyx_t_7); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 1167, __pyx_L1_error)
            #else
            __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1167, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            #endif
          }
        } else {
          __pyx_t_7 = __pyx_t_11(__pyx_t_4);
          if (unlikely(!__pyx_t_7)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 1167, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_7);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
          PyObject* sequence = __pyx_t_7;
          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, 1167, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_10 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_3 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(__pyx_t_3);
          #else
          __pyx_t_10 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1167, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_10);
          __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1167, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          #endif
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_12 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1167, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_12);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_13 = Py_TYPE(__pyx_t_12)->tp_iternext;
          index = 0; __pyx_t_10 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_10)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_10);
          index = 1; __pyx_t_3 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_3)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_3);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 2) < 0) __PYX_ERR(0, 1167, __pyx_L1_error)
          __pyx_t_13 = NULL;
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          goto __pyx_L12_unpacking_done;
          __pyx_L11_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          __pyx_t_13 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1167, __pyx_L1_error)
          __pyx_L12_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_10);
        __pyx_t_10 = 0;
        __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "lxml/objectify.pyx":1169
 *                 for name, value in child.items():
 *                     # keyword arguments in attrib take precedence
 *                     if name in attrib:             # <<<<<<<<<<<<<<
 *                         continue
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 */
        __Pyx_TraceLine(1169,0,__PYX_ERR(0, 1169, __pyx_L1_error))
        __pyx_t_1 = (__Pyx_PyDict_ContainsTF(__pyx_v_name, __pyx_v_attrib, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1169, __pyx_L1_error)
        __pyx_t_2 = (__pyx_t_1 != 0);
        if (__pyx_t_2) {

          /* "lxml/objectify.pyx":1170
 *                     # keyword arguments in attrib take precedence
 *                     if name in attrib:
 *                         continue             # <<<<<<<<<<<<<<
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 *                     if pytype is not None:
 */
          __Pyx_TraceLine(1170,0,__PYX_ERR(0, 1170, __pyx_L1_error))
          goto __pyx_L9_continue;

          /* "lxml/objectify.pyx":1169
 *                 for name, value in child.items():
 *                     # keyword arguments in attrib take precedence
 *                     if name in attrib:             # <<<<<<<<<<<<<<
 *                         continue
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 */
        }

        /* "lxml/objectify.pyx":1171
 *                     if name in attrib:
 *                         continue
 *                     pytype = _PYTYPE_DICT.get(_typename(value))             # <<<<<<<<<<<<<<
 *                     if pytype is not None:
 *                         value = (<PyType>pytype).stringify(value)
 */
        __Pyx_TraceLine(1171,0,__PYX_ERR(0, 1171, __pyx_L1_error))
        if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(0, 1171, __pyx_L1_error)
        }
        __pyx_t_7 = __pyx_f_4lxml_9objectify__typename(__pyx_v_value); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1171, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_t_7, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1171, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_3);
        __pyx_t_3 = 0;

        /* "lxml/objectify.pyx":1172
 *                         continue
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 *                     if pytype is not None:             # <<<<<<<<<<<<<<
 *                         value = (<PyType>pytype).stringify(value)
 *                     elif not python._isString(value):
 */
        __Pyx_TraceLine(1172,0,__PYX_ERR(0, 1172, __pyx_L1_error))
        __pyx_t_2 = (__pyx_v_pytype != Py_None);
        __pyx_t_1 = (__pyx_t_2 != 0);
        if (__pyx_t_1) {

          /* "lxml/objectify.pyx":1173
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 *                     if pytype is not None:
 *                         value = (<PyType>pytype).stringify(value)             # <<<<<<<<<<<<<<
 *                     elif not python._isString(value):
 *                         value = unicode(value)
 */
          __Pyx_TraceLine(1173,0,__PYX_ERR(0, 1173, __pyx_L1_error))
          __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify);
          __pyx_t_7 = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify; __pyx_t_10 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
            __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_7);
            if (likely(__pyx_t_10)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
              __Pyx_INCREF(__pyx_t_10);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_7, function);
            }
          }
          if (!__pyx_t_10) {
            __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
          } else {
            #if CYTHON_FAST_PYCALL
            if (PyFunction_Check(__pyx_t_7)) {
              PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_value};
              __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
              __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
              __Pyx_GOTREF(__pyx_t_3);
            } else
            #endif
            #if CYTHON_FAST_PYCCALL
            if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
              PyObject *__pyx_temp[2] = {__pyx_t_10, __pyx_v_value};
              __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
              __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
              __Pyx_GOTREF(__pyx_t_3);
            } else
            #endif
            {
              __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1173, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_12);
              __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_10); __pyx_t_10 = NULL;
              __Pyx_INCREF(__pyx_v_value);
              __Pyx_GIVEREF(__pyx_v_value);
              PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_v_value);
              __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1173, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_3);
              __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            }
          }
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
          __pyx_t_3 = 0;

          /* "lxml/objectify.pyx":1172
 *                         continue
 *                     pytype = _PYTYPE_DICT.get(_typename(value))
 *                     if pytype is not None:             # <<<<<<<<<<<<<<
 *                         value = (<PyType>pytype).stringify(value)
 *                     elif not python._isString(value):
 */
          goto __pyx_L14;
        }

        /* "lxml/objectify.pyx":1174
 *                     if pytype is not None:
 *                         value = (<PyType>pytype).stringify(value)
 *                     elif not python._isString(value):             # <<<<<<<<<<<<<<
 *                         value = unicode(value)
 *                     cetree.setAttributeValue(element, name, value)
 */
        __Pyx_TraceLine(1174,0,__PYX_ERR(0, 1174, __pyx_L1_error))
        __pyx_t_1 = ((!(_isString(__pyx_v_value) != 0)) != 0);
        if (__pyx_t_1) {

          /* "lxml/objectify.pyx":1175
 *                         value = (<PyType>pytype).stringify(value)
 *                     elif not python._isString(value):
 *                         value = unicode(value)             # <<<<<<<<<<<<<<
 *                     cetree.setAttributeValue(element, name, value)
 *             else:
 */
          __Pyx_TraceLine(1175,0,__PYX_ERR(0, 1175, __pyx_L1_error))
          __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1175, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_3);
          __pyx_t_3 = 0;

          /* "lxml/objectify.pyx":1174
 *                     if pytype is not None:
 *                         value = (<PyType>pytype).stringify(value)
 *                     elif not python._isString(value):             # <<<<<<<<<<<<<<
 *                         value = unicode(value)
 *                     cetree.setAttributeValue(element, name, value)
 */
        }
        __pyx_L14:;

        /* "lxml/objectify.pyx":1176
 *                     elif not python._isString(value):
 *                         value = unicode(value)
 *                     cetree.setAttributeValue(element, name, value)             # <<<<<<<<<<<<<<
 *             else:
 *                 if pytype_name is not None:
 */
        __Pyx_TraceLine(1176,0,__PYX_ERR(0, 1176, __pyx_L1_error))
        __pyx_t_6 = setAttributeValue(__pyx_v_element, __pyx_v_name, __pyx_v_value); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1176, __pyx_L1_error)

        /* "lxml/objectify.pyx":1167
 *                 has_children = True
 *             elif isinstance(child, dict):
 *                 for name, value in child.items():             # <<<<<<<<<<<<<<
 *                     # keyword arguments in attrib take precedence
 *                     if name in attrib:
 */
        __Pyx_TraceLine(1167,0,__PYX_ERR(0, 1167, __pyx_L1_error))
        __pyx_L9_continue:;
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1166
 *                     cetree.appendChildToElement(element, childElement)
 *                 has_children = True
 *             elif isinstance(child, dict):             # <<<<<<<<<<<<<<
 *                 for name, value in child.items():
 *                     # keyword arguments in attrib take precedence
 */
      goto __pyx_L6;
    }

    /* "lxml/objectify.pyx":1178
 *                     cetree.setAttributeValue(element, name, value)
 *             else:
 *                 if pytype_name is not None:             # <<<<<<<<<<<<<<
 *                     # concatenation always makes the result a string
 *                     has_string_value = True
 */
    __Pyx_TraceLine(1178,0,__PYX_ERR(0, 1178, __pyx_L1_error))
    /*else*/ {
      __pyx_t_1 = (__pyx_v_pytype_name != Py_None);
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1180
 *                 if pytype_name is not None:
 *                     # concatenation always makes the result a string
 *                     has_string_value = True             # <<<<<<<<<<<<<<
 *                 pytype_name = _typename(child)
 *                 pytype = _PYTYPE_DICT.get(_typename(child))
 */
        __Pyx_TraceLine(1180,0,__PYX_ERR(0, 1180, __pyx_L1_error))
        __pyx_v_has_string_value = 1;

        /* "lxml/objectify.pyx":1178
 *                     cetree.setAttributeValue(element, name, value)
 *             else:
 *                 if pytype_name is not None:             # <<<<<<<<<<<<<<
 *                     # concatenation always makes the result a string
 *                     has_string_value = True
 */
      }

      /* "lxml/objectify.pyx":1181
 *                     # concatenation always makes the result a string
 *                     has_string_value = True
 *                 pytype_name = _typename(child)             # <<<<<<<<<<<<<<
 *                 pytype = _PYTYPE_DICT.get(_typename(child))
 *                 if pytype is not None:
 */
      __Pyx_TraceLine(1181,0,__PYX_ERR(0, 1181, __pyx_L1_error))
      __pyx_t_4 = __pyx_f_4lxml_9objectify__typename(__pyx_v_child); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1181, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_pytype_name, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1182
 *                     has_string_value = True
 *                 pytype_name = _typename(child)
 *                 pytype = _PYTYPE_DICT.get(_typename(child))             # <<<<<<<<<<<<<<
 *                 if pytype is not None:
 *                     _add_text(element, (<PyType>pytype).stringify(child))
 */
      __Pyx_TraceLine(1182,0,__PYX_ERR(0, 1182, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 1182, __pyx_L1_error)
      }
      __pyx_t_4 = __pyx_f_4lxml_9objectify__typename(__pyx_v_child); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_t_4, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1182, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_v_pytype, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1183
 *                 pytype_name = _typename(child)
 *                 pytype = _PYTYPE_DICT.get(_typename(child))
 *                 if pytype is not None:             # <<<<<<<<<<<<<<
 *                     _add_text(element, (<PyType>pytype).stringify(child))
 *                 else:
 */
      __Pyx_TraceLine(1183,0,__PYX_ERR(0, 1183, __pyx_L1_error))
      __pyx_t_2 = (__pyx_v_pytype != Py_None);
      __pyx_t_1 = (__pyx_t_2 != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":1184
 *                 pytype = _PYTYPE_DICT.get(_typename(child))
 *                 if pytype is not None:
 *                     _add_text(element, (<PyType>pytype).stringify(child))             # <<<<<<<<<<<<<<
 *                 else:
 *                     has_string_value = True
 */
        __Pyx_TraceLine(1184,0,__PYX_ERR(0, 1184, __pyx_L1_error))
        __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify);
        __pyx_t_4 = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify; __pyx_t_7 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_7)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_7);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        if (!__pyx_t_7) {
          __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_child); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1184, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
        } else {
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_4)) {
            PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_child};
            __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1184, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            __Pyx_GOTREF(__pyx_t_3);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
            PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_child};
            __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1184, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
            __Pyx_GOTREF(__pyx_t_3);
          } else
          #endif
          {
            __pyx_t_12 = PyTuple_New(1+1); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1184, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_7); __pyx_t_7 = NULL;
            __Pyx_INCREF(__pyx_v_child);
            __Pyx_GIVEREF(__pyx_v_child);
            PyTuple_SET_ITEM(__pyx_t_12, 0+1, __pyx_v_child);
            __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_12, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1184, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
          }
        }
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_4 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1184, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

        /* "lxml/objectify.pyx":1183
 *                 pytype_name = _typename(child)
 *                 pytype = _PYTYPE_DICT.get(_typename(child))
 *                 if pytype is not None:             # <<<<<<<<<<<<<<
 *                     _add_text(element, (<PyType>pytype).stringify(child))
 *                 else:
 */
        goto __pyx_L16;
      }

      /* "lxml/objectify.pyx":1186
 *                     _add_text(element, (<PyType>pytype).stringify(child))
 *                 else:
 *                     has_string_value = True             # <<<<<<<<<<<<<<
 *                     child = unicode(child)
 *                     _add_text(element, child)
 */
      __Pyx_TraceLine(1186,0,__PYX_ERR(0, 1186, __pyx_L1_error))
      /*else*/ {
        __pyx_v_has_string_value = 1;

        /* "lxml/objectify.pyx":1187
 *                 else:
 *                     has_string_value = True
 *                     child = unicode(child)             # <<<<<<<<<<<<<<
 *                     _add_text(element, child)
 * 
 */
        __Pyx_TraceLine(1187,0,__PYX_ERR(0, 1187, __pyx_L1_error))
        __pyx_t_4 = __Pyx_PyObject_Unicode(__pyx_v_child); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1187, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF_SET(__pyx_v_child, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "lxml/objectify.pyx":1188
 *                     has_string_value = True
 *                     child = unicode(child)
 *                     _add_text(element, child)             # <<<<<<<<<<<<<<
 * 
 *         if self._annotate and not has_children:
 */
        __Pyx_TraceLine(1188,0,__PYX_ERR(0, 1188, __pyx_L1_error))
        __pyx_t_4 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1188, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      }
      __pyx_L16:;
    }
    __pyx_L6:;

    /* "lxml/objectify.pyx":1145
 *         has_children = False
 *         has_string_value = False
 *         for child in children:             # <<<<<<<<<<<<<<
 *             if child is None:
 *                 if len(children) == 1:
 */
    __Pyx_TraceLine(1145,0,__PYX_ERR(0, 1145, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "lxml/objectify.pyx":1190
 *                     _add_text(element, child)
 * 
 *         if self._annotate and not has_children:             # <<<<<<<<<<<<<<
 *             if has_string_value:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 */
  __Pyx_TraceLine(1190,0,__PYX_ERR(0, 1190, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_self->_annotate != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L18_bool_binop_done;
  }
  __pyx_t_2 = ((!(__pyx_v_has_children != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L18_bool_binop_done:;
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1191
 * 
 *         if self._annotate and not has_children:
 *             if has_string_value:             # <<<<<<<<<<<<<<
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 *             elif pytype_name is not None:
 */
    __Pyx_TraceLine(1191,0,__PYX_ERR(0, 1191, __pyx_L1_error))
    __pyx_t_1 = (__pyx_v_has_string_value != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1192
 *         if self._annotate and not has_children:
 *             if has_string_value:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")             # <<<<<<<<<<<<<<
 *             elif pytype_name is not None:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 */
      __Pyx_TraceLine(1192,0,__PYX_ERR(0, 1192, __pyx_L1_error))
      __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1192, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = setAttributeValue(__pyx_v_element, __pyx_t_5, __pyx_n_u_str); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1192, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1191
 * 
 *         if self._annotate and not has_children:
 *             if has_string_value:             # <<<<<<<<<<<<<<
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 *             elif pytype_name is not None:
 */
      goto __pyx_L20;
    }

    /* "lxml/objectify.pyx":1193
 *             if has_string_value:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 *             elif pytype_name is not None:             # <<<<<<<<<<<<<<
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 * 
 */
    __Pyx_TraceLine(1193,0,__PYX_ERR(0, 1193, __pyx_L1_error))
    __pyx_t_1 = (__pyx_v_pytype_name != Py_None);
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1194
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 *             elif pytype_name is not None:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)             # <<<<<<<<<<<<<<
 * 
 *         return element
 */
      __Pyx_TraceLine(1194,0,__PYX_ERR(0, 1194, __pyx_L1_error))
      __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = setAttributeValue(__pyx_v_element, __pyx_t_5, __pyx_v_pytype_name); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1194, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1193
 *             if has_string_value:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 *             elif pytype_name is not None:             # <<<<<<<<<<<<<<
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 * 
 */
    }
    __pyx_L20:;

    /* "lxml/objectify.pyx":1190
 *                     _add_text(element, child)
 * 
 *         if self._annotate and not has_children:             # <<<<<<<<<<<<<<
 *             if has_string_value:
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
 */
  }

  /* "lxml/objectify.pyx":1196
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
 * 
 *         return element             # <<<<<<<<<<<<<<
 * 
 * cdef _add_text(_Element elem, text):
 */
  __Pyx_TraceLine(1196,0,__PYX_ERR(0, 1196, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_element));
  __pyx_r = ((PyObject *)__pyx_v_element);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1130
 *     cdef bint _annotate
 * 
 *     def __call__(self, *children, **attrib):             # <<<<<<<<<<<<<<
 *         u"__call__(self, *children, **attrib)"
 *         cdef _ObjectifyElementMakerCaller elementMaker
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("lxml.objectify._ObjectifyElementMakerCaller.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_elementMaker);
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XDECREF((PyObject *)__pyx_v_childElement);
  __Pyx_XDECREF(__pyx_v_pytype_name);
  __Pyx_XDECREF(__pyx_v_child);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_pytype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1198
 *         return element
 * 
 * cdef _add_text(_Element elem, text):             # <<<<<<<<<<<<<<
 *     # add text to the tree in construction, either as element text or
 *     # tail text, depending on the current tree state
 */

static PyObject *__pyx_f_4lxml_9objectify__add_text(struct LxmlElement *__pyx_v_elem, PyObject *__pyx_v_text) {
  xmlNode *__pyx_v_c_child;
  PyObject *__pyx_v_old = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("_add_text", 0);
  __Pyx_TraceCall("_add_text", __pyx_f[0], 1198, 0, __PYX_ERR(0, 1198, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_text);

  /* "lxml/objectify.pyx":1202
 *     # tail text, depending on the current tree state
 *     cdef tree.xmlNode* c_child
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)             # <<<<<<<<<<<<<<
 *     if c_child is not NULL:
 *         old = cetree.tailOf(c_child)
 */
  __Pyx_TraceLine(1202,0,__PYX_ERR(0, 1202, __pyx_L1_error))
  __pyx_v_c_child = findChildBackwards(__pyx_v_elem->_c_node, 0);

  /* "lxml/objectify.pyx":1203
 *     cdef tree.xmlNode* c_child
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)
 *     if c_child is not NULL:             # <<<<<<<<<<<<<<
 *         old = cetree.tailOf(c_child)
 *         if old is not None:
 */
  __Pyx_TraceLine(1203,0,__PYX_ERR(0, 1203, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_child != NULL) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1204
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)
 *     if c_child is not NULL:
 *         old = cetree.tailOf(c_child)             # <<<<<<<<<<<<<<
 *         if old is not None:
 *             text = old + text
 */
    __Pyx_TraceLine(1204,0,__PYX_ERR(0, 1204, __pyx_L1_error))
    __pyx_t_2 = tailOf(__pyx_v_c_child); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_old = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1205
 *     if c_child is not NULL:
 *         old = cetree.tailOf(c_child)
 *         if old is not None:             # <<<<<<<<<<<<<<
 *             text = old + text
 *         cetree.setTailText(c_child, text)
 */
    __Pyx_TraceLine(1205,0,__PYX_ERR(0, 1205, __pyx_L1_error))
    __pyx_t_1 = (__pyx_v_old != Py_None);
    __pyx_t_3 = (__pyx_t_1 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1206
 *         old = cetree.tailOf(c_child)
 *         if old is not None:
 *             text = old + text             # <<<<<<<<<<<<<<
 *         cetree.setTailText(c_child, text)
 *     else:
 */
      __Pyx_TraceLine(1206,0,__PYX_ERR(0, 1206, __pyx_L1_error))
      __pyx_t_2 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1206, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "lxml/objectify.pyx":1205
 *     if c_child is not NULL:
 *         old = cetree.tailOf(c_child)
 *         if old is not None:             # <<<<<<<<<<<<<<
 *             text = old + text
 *         cetree.setTailText(c_child, text)
 */
    }

    /* "lxml/objectify.pyx":1207
 *         if old is not None:
 *             text = old + text
 *         cetree.setTailText(c_child, text)             # <<<<<<<<<<<<<<
 *     else:
 *         old = cetree.textOf(elem._c_node)
 */
    __Pyx_TraceLine(1207,0,__PYX_ERR(0, 1207, __pyx_L1_error))
    __pyx_t_4 = setTailText(__pyx_v_c_child, __pyx_v_text); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1207, __pyx_L1_error)

    /* "lxml/objectify.pyx":1203
 *     cdef tree.xmlNode* c_child
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)
 *     if c_child is not NULL:             # <<<<<<<<<<<<<<
 *         old = cetree.tailOf(c_child)
 *         if old is not None:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1209
 *         cetree.setTailText(c_child, text)
 *     else:
 *         old = cetree.textOf(elem._c_node)             # <<<<<<<<<<<<<<
 *         if old is not None:
 *             text = old + text
 */
  __Pyx_TraceLine(1209,0,__PYX_ERR(0, 1209, __pyx_L1_error))
  /*else*/ {
    __pyx_t_2 = textOf(__pyx_v_elem->_c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_old = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1210
 *     else:
 *         old = cetree.textOf(elem._c_node)
 *         if old is not None:             # <<<<<<<<<<<<<<
 *             text = old + text
 *         cetree.setNodeText(elem._c_node, text)
 */
    __Pyx_TraceLine(1210,0,__PYX_ERR(0, 1210, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_old != Py_None);
    __pyx_t_1 = (__pyx_t_3 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1211
 *         old = cetree.textOf(elem._c_node)
 *         if old is not None:
 *             text = old + text             # <<<<<<<<<<<<<<
 *         cetree.setNodeText(elem._c_node, text)
 * 
 */
      __Pyx_TraceLine(1211,0,__PYX_ERR(0, 1211, __pyx_L1_error))
      __pyx_t_2 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1211, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_text, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "lxml/objectify.pyx":1210
 *     else:
 *         old = cetree.textOf(elem._c_node)
 *         if old is not None:             # <<<<<<<<<<<<<<
 *             text = old + text
 *         cetree.setNodeText(elem._c_node, text)
 */
    }

    /* "lxml/objectify.pyx":1212
 *         if old is not None:
 *             text = old + text
 *         cetree.setNodeText(elem._c_node, text)             # <<<<<<<<<<<<<<
 * 
 * cdef class ElementMaker:
 */
    __Pyx_TraceLine(1212,0,__PYX_ERR(0, 1212, __pyx_L1_error))
    __pyx_t_4 = setNodeText(__pyx_v_elem->_c_node, __pyx_v_text); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 1212, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1198
 *         return element
 * 
 * cdef _add_text(_Element elem, text):             # <<<<<<<<<<<<<<
 *     # add text to the tree in construction, either as element text or
 *     # tail text, depending on the current tree state
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify._add_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_old);
  __Pyx_XDECREF(__pyx_v_text);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1245
 *     cdef bint _annotate
 *     cdef dict _cache
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,             # <<<<<<<<<<<<<<
 *                  makeelement=None):
 *         if nsmap is None:
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_12ElementMaker_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4lxml_9objectify_12ElementMaker_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_namespace = 0;
  PyObject *__pyx_v_nsmap = 0;
  PyObject *__pyx_v_annotate = 0;
  PyObject *__pyx_v_makeelement = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_namespace,&__pyx_n_s_nsmap,&__pyx_n_s_annotate,&__pyx_n_s_makeelement,0};
    PyObject* values[4] = {0,0,0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    values[2] = ((PyObject *)Py_True);

    /* "lxml/objectify.pyx":1246
 *     cdef dict _cache
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,
 *                  makeelement=None):             # <<<<<<<<<<<<<<
 *         if nsmap is None:
 *             nsmap = _DEFAULT_NSMAP if annotate else {}
 */
    values[3] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      if (kw_args > 0 && likely(kw_args <= 4)) {
        Py_ssize_t index;
        for (index = 0; index < 4 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(0, 1245, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 0) {
      goto __pyx_L5_argtuple_error;
    } else {
    }
    __pyx_v_namespace = values[0];
    __pyx_v_nsmap = values[1];
    __pyx_v_annotate = values[2];
    __pyx_v_makeelement = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1245, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ElementMaker.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_12ElementMaker___init__(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self), __pyx_v_namespace, __pyx_v_nsmap, __pyx_v_annotate, __pyx_v_makeelement);

  /* "lxml/objectify.pyx":1245
 *     cdef bint _annotate
 *     cdef dict _cache
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,             # <<<<<<<<<<<<<<
 *                  makeelement=None):
 *         if nsmap is None:
 */

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

static int __pyx_pf_4lxml_9objectify_12ElementMaker___init__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_namespace, PyObject *__pyx_v_nsmap, PyObject *__pyx_v_annotate, PyObject *__pyx_v_makeelement) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_TraceCall("__init__", __pyx_f[0], 1245, 0, __PYX_ERR(0, 1245, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_nsmap);

  /* "lxml/objectify.pyx":1247
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,
 *                  makeelement=None):
 *         if nsmap is None:             # <<<<<<<<<<<<<<
 *             nsmap = _DEFAULT_NSMAP if annotate else {}
 *         self._nsmap = nsmap
 */
  __Pyx_TraceLine(1247,0,__PYX_ERR(0, 1247, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1248
 *                  makeelement=None):
 *         if nsmap is None:
 *             nsmap = _DEFAULT_NSMAP if annotate else {}             # <<<<<<<<<<<<<<
 *         self._nsmap = nsmap
 *         self._namespace = None if namespace is None else u"{%s}" % namespace
 */
    __Pyx_TraceLine(1248,0,__PYX_ERR(0, 1248, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_annotate); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1248, __pyx_L1_error)
    if (__pyx_t_2) {
      __Pyx_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
      __pyx_t_3 = __pyx_v_4lxml_9objectify__DEFAULT_NSMAP;
    } else {
      __pyx_t_4 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1248, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __pyx_t_4;
      __pyx_t_4 = 0;
    }
    __Pyx_DECREF_SET(__pyx_v_nsmap, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":1247
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,
 *                  makeelement=None):
 *         if nsmap is None:             # <<<<<<<<<<<<<<
 *             nsmap = _DEFAULT_NSMAP if annotate else {}
 *         self._nsmap = nsmap
 */
  }

  /* "lxml/objectify.pyx":1249
 *         if nsmap is None:
 *             nsmap = _DEFAULT_NSMAP if annotate else {}
 *         self._nsmap = nsmap             # <<<<<<<<<<<<<<
 *         self._namespace = None if namespace is None else u"{%s}" % namespace
 *         self._annotate = annotate
 */
  __Pyx_TraceLine(1249,0,__PYX_ERR(0, 1249, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_nsmap);
  __Pyx_GIVEREF(__pyx_v_nsmap);
  __Pyx_GOTREF(__pyx_v_self->_nsmap);
  __Pyx_DECREF(__pyx_v_self->_nsmap);
  __pyx_v_self->_nsmap = __pyx_v_nsmap;

  /* "lxml/objectify.pyx":1250
 *             nsmap = _DEFAULT_NSMAP if annotate else {}
 *         self._nsmap = nsmap
 *         self._namespace = None if namespace is None else u"{%s}" % namespace             # <<<<<<<<<<<<<<
 *         self._annotate = annotate
 *         if makeelement is not None:
 */
  __Pyx_TraceLine(1250,0,__PYX_ERR(0, 1250, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_namespace == Py_None);
  if ((__pyx_t_2 != 0)) {
    __Pyx_INCREF(Py_None);
    __pyx_t_3 = Py_None;
  } else {
    __pyx_t_4 = PyUnicode_Format(__pyx_kp_u_s_2, __pyx_v_namespace); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __pyx_t_4 = 0;
  }
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_namespace);
  __Pyx_DECREF(__pyx_v_self->_namespace);
  __pyx_v_self->_namespace = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1251
 *         self._nsmap = nsmap
 *         self._namespace = None if namespace is None else u"{%s}" % namespace
 *         self._annotate = annotate             # <<<<<<<<<<<<<<
 *         if makeelement is not None:
 *             if not callable(makeelement):
 */
  __Pyx_TraceLine(1251,0,__PYX_ERR(0, 1251, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_annotate); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1251, __pyx_L1_error)
  __pyx_v_self->_annotate = __pyx_t_2;

  /* "lxml/objectify.pyx":1252
 *         self._namespace = None if namespace is None else u"{%s}" % namespace
 *         self._annotate = annotate
 *         if makeelement is not None:             # <<<<<<<<<<<<<<
 *             if not callable(makeelement):
 *                 raise TypeError(
 */
  __Pyx_TraceLine(1252,0,__PYX_ERR(0, 1252, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_makeelement != Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1253
 *         self._annotate = annotate
 *         if makeelement is not None:
 *             if not callable(makeelement):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     f"argument of 'makeelement' parameter must be callable, got {type(makeelement)}")
 */
    __Pyx_TraceLine(1253,0,__PYX_ERR(0, 1253, __pyx_L1_error))
    __pyx_t_1 = __Pyx_PyCallable_Check(__pyx_v_makeelement); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1253, __pyx_L1_error)
    __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
    if (unlikely(__pyx_t_2)) {

      /* "lxml/objectify.pyx":1255
 *             if not callable(makeelement):
 *                 raise TypeError(
 *                     f"argument of 'makeelement' parameter must be callable, got {type(makeelement)}")             # <<<<<<<<<<<<<<
 *             self._makeelement = makeelement
 *         else:
 */
      __Pyx_TraceLine(1255,0,__PYX_ERR(0, 1255, __pyx_L1_error))
      __pyx_t_3 = __Pyx_PyObject_FormatSimple(((PyObject *)Py_TYPE(__pyx_v_makeelement)), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1255, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_argument_of_makeelement_paramete, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1255, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1254
 *         if makeelement is not None:
 *             if not callable(makeelement):
 *                 raise TypeError(             # <<<<<<<<<<<<<<
 *                     f"argument of 'makeelement' parameter must be callable, got {type(makeelement)}")
 *             self._makeelement = makeelement
 */
      __Pyx_TraceLine(1254,0,__PYX_ERR(0, 1254, __pyx_L1_error))
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1254, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(0, 1254, __pyx_L1_error)

      /* "lxml/objectify.pyx":1253
 *         self._annotate = annotate
 *         if makeelement is not None:
 *             if not callable(makeelement):             # <<<<<<<<<<<<<<
 *                 raise TypeError(
 *                     f"argument of 'makeelement' parameter must be callable, got {type(makeelement)}")
 */
    }

    /* "lxml/objectify.pyx":1256
 *                 raise TypeError(
 *                     f"argument of 'makeelement' parameter must be callable, got {type(makeelement)}")
 *             self._makeelement = makeelement             # <<<<<<<<<<<<<<
 *         else:
 *             self._makeelement = None
 */
    __Pyx_TraceLine(1256,0,__PYX_ERR(0, 1256, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_makeelement);
    __Pyx_GIVEREF(__pyx_v_makeelement);
    __Pyx_GOTREF(__pyx_v_self->_makeelement);
    __Pyx_DECREF(__pyx_v_self->_makeelement);
    __pyx_v_self->_makeelement = __pyx_v_makeelement;

    /* "lxml/objectify.pyx":1252
 *         self._namespace = None if namespace is None else u"{%s}" % namespace
 *         self._annotate = annotate
 *         if makeelement is not None:             # <<<<<<<<<<<<<<
 *             if not callable(makeelement):
 *                 raise TypeError(
 */
    goto __pyx_L4;
  }

  /* "lxml/objectify.pyx":1258
 *             self._makeelement = makeelement
 *         else:
 *             self._makeelement = None             # <<<<<<<<<<<<<<
 *         self._cache = {}
 * 
 */
  __Pyx_TraceLine(1258,0,__PYX_ERR(0, 1258, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->_makeelement);
    __Pyx_DECREF(__pyx_v_self->_makeelement);
    __pyx_v_self->_makeelement = Py_None;
  }
  __pyx_L4:;

  /* "lxml/objectify.pyx":1259
 *         else:
 *             self._makeelement = None
 *         self._cache = {}             # <<<<<<<<<<<<<<
 * 
 *     @cython.final
 */
  __Pyx_TraceLine(1259,0,__PYX_ERR(0, 1259, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_cache);
  __Pyx_DECREF(__pyx_v_self->_cache);
  __pyx_v_self->_cache = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1245
 *     cdef bint _annotate
 *     cdef dict _cache
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,             # <<<<<<<<<<<<<<
 *                  makeelement=None):
 *         if nsmap is None:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify.ElementMaker.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_nsmap);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1262
 * 
 *     @cython.final
 *     cdef _build_element_maker(self, tag, bint caching):             # <<<<<<<<<<<<<<
 *         cdef _ObjectifyElementMakerCaller element_maker
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)
 */

static PyObject *__pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag, int __pyx_v_caching) {
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *__pyx_v_element_maker = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("_build_element_maker", 0);
  __Pyx_TraceCall("_build_element_maker", __pyx_f[0], 1262, 0, __PYX_ERR(0, 1262, __pyx_L1_error));

  /* "lxml/objectify.pyx":1264
 *     cdef _build_element_maker(self, tag, bint caching):
 *         cdef _ObjectifyElementMakerCaller element_maker
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)             # <<<<<<<<<<<<<<
 *         if self._namespace is not None and tag[0] != u"{":
 *             element_maker._tag = self._namespace + tag
 */
  __Pyx_TraceLine(1264,0,__PYX_ERR(0, 1264, __pyx_L1_error))
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_4lxml_9objectify__ObjectifyElementMakerCaller(((PyTypeObject *)__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1264, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_element_maker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1265
 *         cdef _ObjectifyElementMakerCaller element_maker
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)
 *         if self._namespace is not None and tag[0] != u"{":             # <<<<<<<<<<<<<<
 *             element_maker._tag = self._namespace + tag
 *         else:
 */
  __Pyx_TraceLine(1265,0,__PYX_ERR(0, 1265, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v_self->_namespace != Py_None);
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tag, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_kp_u__32, Py_NE)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_2 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1266
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)
 *         if self._namespace is not None and tag[0] != u"{":
 *             element_maker._tag = self._namespace + tag             # <<<<<<<<<<<<<<
 *         else:
 *             element_maker._tag = tag
 */
    __Pyx_TraceLine(1266,0,__PYX_ERR(0, 1266, __pyx_L1_error))
    __pyx_t_1 = PyNumber_Add(__pyx_v_self->_namespace, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_element_maker->_tag);
    __Pyx_DECREF(__pyx_v_element_maker->_tag);
    __pyx_v_element_maker->_tag = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1265
 *         cdef _ObjectifyElementMakerCaller element_maker
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)
 *         if self._namespace is not None and tag[0] != u"{":             # <<<<<<<<<<<<<<
 *             element_maker._tag = self._namespace + tag
 *         else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1268
 *             element_maker._tag = self._namespace + tag
 *         else:
 *             element_maker._tag = tag             # <<<<<<<<<<<<<<
 *         element_maker._nsmap = self._nsmap
 *         element_maker._annotate = self._annotate
 */
  __Pyx_TraceLine(1268,0,__PYX_ERR(0, 1268, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(__pyx_v_tag);
    __Pyx_GIVEREF(__pyx_v_tag);
    __Pyx_GOTREF(__pyx_v_element_maker->_tag);
    __Pyx_DECREF(__pyx_v_element_maker->_tag);
    __pyx_v_element_maker->_tag = __pyx_v_tag;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1269
 *         else:
 *             element_maker._tag = tag
 *         element_maker._nsmap = self._nsmap             # <<<<<<<<<<<<<<
 *         element_maker._annotate = self._annotate
 *         element_maker._element_factory = self._makeelement
 */
  __Pyx_TraceLine(1269,0,__PYX_ERR(0, 1269, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_self->_nsmap;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_element_maker->_nsmap);
  __Pyx_DECREF(__pyx_v_element_maker->_nsmap);
  __pyx_v_element_maker->_nsmap = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1270
 *             element_maker._tag = tag
 *         element_maker._nsmap = self._nsmap
 *         element_maker._annotate = self._annotate             # <<<<<<<<<<<<<<
 *         element_maker._element_factory = self._makeelement
 *         if caching:
 */
  __Pyx_TraceLine(1270,0,__PYX_ERR(0, 1270, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_self->_annotate;
  __pyx_v_element_maker->_annotate = __pyx_t_2;

  /* "lxml/objectify.pyx":1271
 *         element_maker._nsmap = self._nsmap
 *         element_maker._annotate = self._annotate
 *         element_maker._element_factory = self._makeelement             # <<<<<<<<<<<<<<
 *         if caching:
 *             if len(self._cache) > 200:
 */
  __Pyx_TraceLine(1271,0,__PYX_ERR(0, 1271, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_self->_makeelement;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_element_maker->_element_factory);
  __Pyx_DECREF(__pyx_v_element_maker->_element_factory);
  __pyx_v_element_maker->_element_factory = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1272
 *         element_maker._annotate = self._annotate
 *         element_maker._element_factory = self._makeelement
 *         if caching:             # <<<<<<<<<<<<<<
 *             if len(self._cache) > 200:
 *                 self._cache.clear()
 */
  __Pyx_TraceLine(1272,0,__PYX_ERR(0, 1272, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_caching != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1273
 *         element_maker._element_factory = self._makeelement
 *         if caching:
 *             if len(self._cache) > 200:             # <<<<<<<<<<<<<<
 *                 self._cache.clear()
 *             self._cache[tag] = element_maker
 */
    __Pyx_TraceLine(1273,0,__PYX_ERR(0, 1273, __pyx_L1_error))
    __pyx_t_1 = __pyx_v_self->_cache;
    __Pyx_INCREF(__pyx_t_1);
    if (unlikely(__pyx_t_1 == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
      __PYX_ERR(0, 1273, __pyx_L1_error)
    }
    __pyx_t_5 = PyDict_Size(__pyx_t_1); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1273, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_2 = ((__pyx_t_5 > 0xC8) != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1274
 *         if caching:
 *             if len(self._cache) > 200:
 *                 self._cache.clear()             # <<<<<<<<<<<<<<
 *             self._cache[tag] = element_maker
 *         return element_maker
 */
      __Pyx_TraceLine(1274,0,__PYX_ERR(0, 1274, __pyx_L1_error))
      if (unlikely(__pyx_v_self->_cache == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "clear");
        __PYX_ERR(0, 1274, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_PyDict_Clear(__pyx_v_self->_cache); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1274, __pyx_L1_error)

      /* "lxml/objectify.pyx":1273
 *         element_maker._element_factory = self._makeelement
 *         if caching:
 *             if len(self._cache) > 200:             # <<<<<<<<<<<<<<
 *                 self._cache.clear()
 *             self._cache[tag] = element_maker
 */
    }

    /* "lxml/objectify.pyx":1275
 *             if len(self._cache) > 200:
 *                 self._cache.clear()
 *             self._cache[tag] = element_maker             # <<<<<<<<<<<<<<
 *         return element_maker
 * 
 */
    __Pyx_TraceLine(1275,0,__PYX_ERR(0, 1275, __pyx_L1_error))
    if (unlikely(__pyx_v_self->_cache == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 1275, __pyx_L1_error)
    }
    if (unlikely(PyDict_SetItem(__pyx_v_self->_cache, __pyx_v_tag, ((PyObject *)__pyx_v_element_maker)) < 0)) __PYX_ERR(0, 1275, __pyx_L1_error)

    /* "lxml/objectify.pyx":1272
 *         element_maker._annotate = self._annotate
 *         element_maker._element_factory = self._makeelement
 *         if caching:             # <<<<<<<<<<<<<<
 *             if len(self._cache) > 200:
 *                 self._cache.clear()
 */
  }

  /* "lxml/objectify.pyx":1276
 *                 self._cache.clear()
 *             self._cache[tag] = element_maker
 *         return element_maker             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, tag):
 */
  __Pyx_TraceLine(1276,0,__PYX_ERR(0, 1276, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_element_maker));
  __pyx_r = ((PyObject *)__pyx_v_element_maker);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1262
 * 
 *     @cython.final
 *     cdef _build_element_maker(self, tag, bint caching):             # <<<<<<<<<<<<<<
 *         cdef _ObjectifyElementMakerCaller element_maker
 *         element_maker = _ObjectifyElementMakerCaller.__new__(_ObjectifyElementMakerCaller)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.ElementMaker._build_element_maker", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element_maker);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1278
 *         return element_maker
 * 
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_12ElementMaker_3__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_12ElementMaker_3__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_12ElementMaker_2__getattr__(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self), ((PyObject *)__pyx_v_tag));

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

static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker_2__getattr__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag) {
  PyObject *__pyx_v_element_maker = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__getattr__", 0);
  __Pyx_TraceCall("__getattr__", __pyx_f[0], 1278, 0, __PYX_ERR(0, 1278, __pyx_L1_error));

  /* "lxml/objectify.pyx":1279
 * 
 *     def __getattr__(self, tag):
 *         element_maker = self._cache.get(tag)             # <<<<<<<<<<<<<<
 *         if element_maker is None:
 *             if is_special_method(tag):
 */
  __Pyx_TraceLine(1279,0,__PYX_ERR(0, 1279, __pyx_L1_error))
  if (unlikely(__pyx_v_self->_cache == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(0, 1279, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_cache, __pyx_v_tag, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element_maker = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1280
 *     def __getattr__(self, tag):
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:             # <<<<<<<<<<<<<<
 *             if is_special_method(tag):
 *                 return object.__getattr__(self, tag)
 */
  __Pyx_TraceLine(1280,0,__PYX_ERR(0, 1280, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_element_maker == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1281
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 *             if is_special_method(tag):             # <<<<<<<<<<<<<<
 *                 return object.__getattr__(self, tag)
 *             return self._build_element_maker(tag, caching=True)
 */
    __Pyx_TraceLine(1281,0,__PYX_ERR(0, 1281, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_is_special_method);
    __pyx_t_4 = __pyx_v_4lxml_9objectify_is_special_method; __pyx_t_5 = NULL;
    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);
      }
    }
    if (!__pyx_t_5) {
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      {
        __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
        __Pyx_INCREF(__pyx_v_tag);
        __Pyx_GIVEREF(__pyx_v_tag);
        PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_tag);
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1282
 *         if element_maker is None:
 *             if is_special_method(tag):
 *                 return object.__getattr__(self, tag)             # <<<<<<<<<<<<<<
 *             return self._build_element_maker(tag, caching=True)
 *         return element_maker
 */
      __Pyx_TraceLine(1282,0,__PYX_ERR(0, 1282, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_builtin_object, __pyx_n_s_getattr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1282, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = NULL;
      __pyx_t_7 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
          __pyx_t_7 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1282, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[3] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1282, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      {
        __pyx_t_5 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1282, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (__pyx_t_6) {
          __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL;
        }
        __Pyx_INCREF(((PyObject *)__pyx_v_self));
        __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
        PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_7, ((PyObject *)__pyx_v_self));
        __Pyx_INCREF(__pyx_v_tag);
        __Pyx_GIVEREF(__pyx_v_tag);
        PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_7, __pyx_v_tag);
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1282, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L0;

      /* "lxml/objectify.pyx":1281
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 *             if is_special_method(tag):             # <<<<<<<<<<<<<<
 *                 return object.__getattr__(self, tag)
 *             return self._build_element_maker(tag, caching=True)
 */
    }

    /* "lxml/objectify.pyx":1283
 *             if is_special_method(tag):
 *                 return object.__getattr__(self, tag)
 *             return self._build_element_maker(tag, caching=True)             # <<<<<<<<<<<<<<
 *         return element_maker
 * 
 */
    __Pyx_TraceLine(1283,0,__PYX_ERR(0, 1283, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker(__pyx_v_self, __pyx_v_tag, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1283, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1280
 *     def __getattr__(self, tag):
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:             # <<<<<<<<<<<<<<
 *             if is_special_method(tag):
 *                 return object.__getattr__(self, tag)
 */
  }

  /* "lxml/objectify.pyx":1284
 *                 return object.__getattr__(self, tag)
 *             return self._build_element_maker(tag, caching=True)
 *         return element_maker             # <<<<<<<<<<<<<<
 * 
 *     def __call__(self, tag, *args, **kwargs):
 */
  __Pyx_TraceLine(1284,0,__PYX_ERR(0, 1284, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_element_maker);
  __pyx_r = __pyx_v_element_maker;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1278
 *         return element_maker
 * 
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 */

  /* 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("lxml.objectify.ElementMaker.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_element_maker);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1286
 *         return element_maker
 * 
 *     def __call__(self, tag, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_12ElementMaker_5__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_12ElementMaker_5__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_tag = 0;
  PyObject *__pyx_v_args = 0;
  PyObject *__pyx_v_kwargs = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL;
  __Pyx_GOTREF(__pyx_v_kwargs);
  if (PyTuple_GET_SIZE(__pyx_args) > 1) {
    __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args));
    if (unlikely(!__pyx_v_args)) {
      __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
      __Pyx_RefNannyFinishContext();
      return NULL;
    }
    __Pyx_GOTREF(__pyx_v_args);
  } else {
    __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple);
  }
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tag,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        default:
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tag)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__call__") < 0)) __PYX_ERR(0, 1286, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_tag = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1286, __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("lxml.objectify.ElementMaker.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_12ElementMaker_4__call__(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self), __pyx_v_tag, __pyx_v_args, __pyx_v_kwargs);

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

static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker_4__call__(struct __pyx_obj_4lxml_9objectify_ElementMaker *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) {
  PyObject *__pyx_v_element_maker = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__call__", 0);
  __Pyx_TraceCall("__call__", __pyx_f[0], 1286, 0, __PYX_ERR(0, 1286, __pyx_L1_error));

  /* "lxml/objectify.pyx":1287
 * 
 *     def __call__(self, tag, *args, **kwargs):
 *         element_maker = self._cache.get(tag)             # <<<<<<<<<<<<<<
 *         if element_maker is None:
 *             element_maker = self._build_element_maker(
 */
  __Pyx_TraceLine(1287,0,__PYX_ERR(0, 1287, __pyx_L1_error))
  if (unlikely(__pyx_v_self->_cache == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(0, 1287, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_self->_cache, __pyx_v_tag, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element_maker = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1288
 *     def __call__(self, tag, *args, **kwargs):
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:             # <<<<<<<<<<<<<<
 *             element_maker = self._build_element_maker(
 *                 tag, caching=not is_special_method(tag))
 */
  __Pyx_TraceLine(1288,0,__PYX_ERR(0, 1288, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_element_maker == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1290
 *         if element_maker is None:
 *             element_maker = self._build_element_maker(
 *                 tag, caching=not is_special_method(tag))             # <<<<<<<<<<<<<<
 *         return element_maker(*args, **kwargs)
 * 
 */
    __Pyx_TraceLine(1290,0,__PYX_ERR(0, 1290, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_is_special_method);
    __pyx_t_4 = __pyx_v_4lxml_9objectify_is_special_method; __pyx_t_5 = NULL;
    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);
      }
    }
    if (!__pyx_t_5) {
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1290, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1290, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_tag};
        __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1290, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_1);
      } else
      #endif
      {
        __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1290, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
        __Pyx_INCREF(__pyx_v_tag);
        __Pyx_GIVEREF(__pyx_v_tag);
        PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_tag);
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1290, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1289
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 *             element_maker = self._build_element_maker(             # <<<<<<<<<<<<<<
 *                 tag, caching=not is_special_method(tag))
 *         return element_maker(*args, **kwargs)
 */
    __Pyx_TraceLine(1289,0,__PYX_ERR(0, 1289, __pyx_L1_error))
    __pyx_t_1 = __pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker(__pyx_v_self, __pyx_v_tag, (!__pyx_t_3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_element_maker, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1288
 *     def __call__(self, tag, *args, **kwargs):
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:             # <<<<<<<<<<<<<<
 *             element_maker = self._build_element_maker(
 *                 tag, caching=not is_special_method(tag))
 */
  }

  /* "lxml/objectify.pyx":1291
 *             element_maker = self._build_element_maker(
 *                 tag, caching=not is_special_method(tag))
 *         return element_maker(*args, **kwargs)             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
  __Pyx_TraceLine(1291,0,__PYX_ERR(0, 1291, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_element_maker, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1286
 *         return element_maker
 * 
 *     def __call__(self, tag, *args, **kwargs):             # <<<<<<<<<<<<<<
 *         element_maker = self._cache.get(tag)
 *         if element_maker is None:
 */

  /* 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("lxml.objectify.ElementMaker.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_element_maker);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1298
 * cdef bint __RECURSIVE_STR = 0 # default: off
 * 
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
 *     u"""enable_recursive_str(on=True)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_13enable_recursive_str(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_12enable_recursive_str[] = "enable_recursive_str(on=True)\n\n    Enable a recursively generated tree representation for str(element),\n    based on objectify.dump(element).\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_13enable_recursive_str = {"enable_recursive_str", (PyCFunction)__pyx_pw_4lxml_9objectify_13enable_recursive_str, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_12enable_recursive_str};
static PyObject *__pyx_pw_4lxml_9objectify_13enable_recursive_str(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_on = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("enable_recursive_str (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_on,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)((PyObject *)Py_True));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_on);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "enable_recursive_str") < 0)) __PYX_ERR(0, 1298, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_on = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("enable_recursive_str", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1298, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.enable_recursive_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_12enable_recursive_str(__pyx_self, __pyx_v_on);

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

static PyObject *__pyx_pf_4lxml_9objectify_12enable_recursive_str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_on) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_TraceFrameInit(__pyx_codeobj__33)
  __Pyx_RefNannySetupContext("enable_recursive_str", 0);
  __Pyx_TraceCall("enable_recursive_str", __pyx_f[0], 1298, 0, __PYX_ERR(0, 1298, __pyx_L1_error));

  /* "lxml/objectify.pyx":1305
 *     """
 *     global __RECURSIVE_STR
 *     __RECURSIVE_STR = on             # <<<<<<<<<<<<<<
 * 
 * def dump(_Element element not None):
 */
  __Pyx_TraceLine(1305,0,__PYX_ERR(0, 1305, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_on); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1305, __pyx_L1_error)
  __pyx_v_4lxml_9objectify___RECURSIVE_STR = __pyx_t_1;

  /* "lxml/objectify.pyx":1298
 * cdef bint __RECURSIVE_STR = 0 # default: off
 * 
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
 *     u"""enable_recursive_str(on=True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.enable_recursive_str", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1307
 *     __RECURSIVE_STR = on
 * 
 * def dump(_Element element not None):             # <<<<<<<<<<<<<<
 *     u"""dump(_Element element not None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_15dump(PyObject *__pyx_self, PyObject *__pyx_v_element); /*proto*/
static char __pyx_doc_4lxml_9objectify_14dump[] = "dump(_Element element not None)\n\n    Return a recursively generated string representation of an element.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_15dump = {"dump", (PyCFunction)__pyx_pw_4lxml_9objectify_15dump, METH_O, __pyx_doc_4lxml_9objectify_14dump};
static PyObject *__pyx_pw_4lxml_9objectify_15dump(PyObject *__pyx_self, PyObject *__pyx_v_element) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dump (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_8includes_11etreepublic__Element, 0, "element", 0))) __PYX_ERR(0, 1307, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_9objectify_14dump(__pyx_self, ((struct LxmlElement *)__pyx_v_element));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_9objectify_14dump(CYTHON_UNUSED PyObject *__pyx_self, struct LxmlElement *__pyx_v_element) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__34)
  __Pyx_RefNannySetupContext("dump", 0);
  __Pyx_TraceCall("dump", __pyx_f[0], 1307, 0, __PYX_ERR(0, 1307, __pyx_L1_error));

  /* "lxml/objectify.pyx":1312
 *     Return a recursively generated string representation of an element.
 *     """
 *     return _dump(element, 0)             # <<<<<<<<<<<<<<
 * 
 * cdef object _dump(_Element element, int indent):
 */
  __Pyx_TraceLine(1312,0,__PYX_ERR(0, 1312, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__dump(__pyx_v_element, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1307
 *     __RECURSIVE_STR = on
 * 
 * def dump(_Element element not None):             # <<<<<<<<<<<<<<
 *     u"""dump(_Element element not None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1314
 *     return _dump(element, 0)
 * 
 * cdef object _dump(_Element element, int indent):             # <<<<<<<<<<<<<<
 *     indentstr = u"    " * indent
 *     if isinstance(element, ObjectifiedDataElement):
 */

static PyObject *__pyx_f_4lxml_9objectify__dump(struct LxmlElement *__pyx_v_element, int __pyx_v_indent) {
  PyObject *__pyx_v_indentstr = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_xsi_ns = NULL;
  PyObject *__pyx_v_pytype_ns = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_child = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  Py_UCS4 __pyx_t_7;
  PyObject *(*__pyx_t_8)(PyObject *);
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  int __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  __Pyx_RefNannySetupContext("_dump", 0);
  __Pyx_TraceCall("_dump", __pyx_f[0], 1314, 0, __PYX_ERR(0, 1314, __pyx_L1_error));

  /* "lxml/objectify.pyx":1315
 * 
 * cdef object _dump(_Element element, int indent):
 *     indentstr = u"    " * indent             # <<<<<<<<<<<<<<
 *     if isinstance(element, ObjectifiedDataElement):
 *         value = repr(element)
 */
  __Pyx_TraceLine(1315,0,__PYX_ERR(0, 1315, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_indent); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyNumber_Multiply(__pyx_kp_u__35, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (!(likely(PyUnicode_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 1315, __pyx_L1_error)
  __pyx_v_indentstr = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1316
 * cdef object _dump(_Element element, int indent):
 *     indentstr = u"    " * indent
 *     if isinstance(element, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *         value = repr(element)
 *     else:
 */
  __Pyx_TraceLine(1316,0,__PYX_ERR(0, 1316, __pyx_L1_error))
  __pyx_t_3 = __Pyx_TypeCheck(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement); 
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {

    /* "lxml/objectify.pyx":1317
 *     indentstr = u"    " * indent
 *     if isinstance(element, ObjectifiedDataElement):
 *         value = repr(element)             # <<<<<<<<<<<<<<
 *     else:
 *         value = textOf(element._c_node)
 */
    __Pyx_TraceLine(1317,0,__PYX_ERR(0, 1317, __pyx_L1_error))
    __pyx_t_2 = PyObject_Repr(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1316
 * cdef object _dump(_Element element, int indent):
 *     indentstr = u"    " * indent
 *     if isinstance(element, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *         value = repr(element)
 *     else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1319
 *         value = repr(element)
 *     else:
 *         value = textOf(element._c_node)             # <<<<<<<<<<<<<<
 *         if value is not None:
 *             if not value.strip():
 */
  __Pyx_TraceLine(1319,0,__PYX_ERR(0, 1319, __pyx_L1_error))
  /*else*/ {
    __pyx_t_2 = textOf(__pyx_v_element->_c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1319, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1320
 *     else:
 *         value = textOf(element._c_node)
 *         if value is not None:             # <<<<<<<<<<<<<<
 *             if not value.strip():
 *                 value = None
 */
    __Pyx_TraceLine(1320,0,__PYX_ERR(0, 1320, __pyx_L1_error))
    __pyx_t_4 = (__pyx_v_value != Py_None);
    __pyx_t_3 = (__pyx_t_4 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1321
 *         value = textOf(element._c_node)
 *         if value is not None:
 *             if not value.strip():             # <<<<<<<<<<<<<<
 *                 value = None
 *             else:
 */
      __Pyx_TraceLine(1321,0,__PYX_ERR(0, 1321, __pyx_L1_error))
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_strip); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1321, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_1, function);
        }
      }
      if (__pyx_t_5) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1321, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      } else {
        __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1321, __pyx_L1_error)
      }
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1321, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_4 = ((!__pyx_t_3) != 0);
      if (__pyx_t_4) {

        /* "lxml/objectify.pyx":1322
 *         if value is not None:
 *             if not value.strip():
 *                 value = None             # <<<<<<<<<<<<<<
 *             else:
 *                 value = repr(value)
 */
        __Pyx_TraceLine(1322,0,__PYX_ERR(0, 1322, __pyx_L1_error))
        __Pyx_INCREF(Py_None);
        __Pyx_DECREF_SET(__pyx_v_value, Py_None);

        /* "lxml/objectify.pyx":1321
 *         value = textOf(element._c_node)
 *         if value is not None:
 *             if not value.strip():             # <<<<<<<<<<<<<<
 *                 value = None
 *             else:
 */
        goto __pyx_L5;
      }

      /* "lxml/objectify.pyx":1324
 *                 value = None
 *             else:
 *                 value = repr(value)             # <<<<<<<<<<<<<<
 *     result = f"{indentstr}{element.tag} = {value} [{_typename(element)}]\n"
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
 */
      __Pyx_TraceLine(1324,0,__PYX_ERR(0, 1324, __pyx_L1_error))
      /*else*/ {
        __pyx_t_2 = PyObject_Repr(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1324, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
        __pyx_t_2 = 0;
      }
      __pyx_L5:;

      /* "lxml/objectify.pyx":1320
 *     else:
 *         value = textOf(element._c_node)
 *         if value is not None:             # <<<<<<<<<<<<<<
 *             if not value.strip():
 *                 value = None
 */
    }
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1325
 *             else:
 *                 value = repr(value)
 *     result = f"{indentstr}{element.tag} = {value} [{_typename(element)}]\n"             # <<<<<<<<<<<<<<
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 */
  __Pyx_TraceLine(1325,0,__PYX_ERR(0, 1325, __pyx_L1_error))
  __pyx_t_2 = PyTuple_New(7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = 0;
  __pyx_t_7 = 127;
  __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_indentstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_7;
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_1, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_7;
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__36);
  __pyx_t_6 += 3;
  __Pyx_GIVEREF(__pyx_kp_u__36);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u__36);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_7;
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__37);
  __pyx_t_6 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__37);
  PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_kp_u__37);
  __pyx_t_5 = __pyx_f_4lxml_9objectify__typename(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_7;
  __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 5, __pyx_t_1);
  __pyx_t_1 = 0;
  __Pyx_INCREF(__pyx_kp_u__38);
  __pyx_t_6 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__38);
  PyTuple_SET_ITEM(__pyx_t_2, 6, __pyx_kp_u__38);
  __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_2, 7, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1326
 *                 value = repr(value)
 *     result = f"{indentstr}{element.tag} = {value} [{_typename(element)}]\n"
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 *     for name, value in cetree.iterattributes(element, 3):
 */
  __Pyx_TraceLine(1326,0,__PYX_ERR(0, 1326, __pyx_L1_error))
  __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s_2, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_xsi_ns = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1327
 *     result = f"{indentstr}{element.tag} = {value} [{_typename(element)}]\n"
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE             # <<<<<<<<<<<<<<
 *     for name, value in cetree.iterattributes(element, 3):
 *         if u'{' in name:
 */
  __Pyx_TraceLine(1327,0,__PYX_ERR(0, 1327, __pyx_L1_error))
  __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s_2, __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_pytype_ns = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1328
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 *     for name, value in cetree.iterattributes(element, 3):             # <<<<<<<<<<<<<<
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:
 */
  __Pyx_TraceLine(1328,0,__PYX_ERR(0, 1328, __pyx_L1_error))
  __pyx_t_1 = iterattributes(__pyx_v_element, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1328, __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_6 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_8 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1328, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_6 >= 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_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1328, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1328, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_6 >= 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_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1328, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1328, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_8(__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, 1328, __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, 1328, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 1); 
      } else {
        __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_9 = PyList_GET_ITEM(sequence, 1); 
      }
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_9);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1328, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1328, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_10 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1328, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext;
      index = 0; __pyx_t_5 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_5)) goto __pyx_L8_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L8_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 1328, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L9_unpacking_done;
      __pyx_L8_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 1328, __pyx_L1_error)
      __pyx_L9_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_9);
    __pyx_t_9 = 0;

    /* "lxml/objectify.pyx":1329
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 *     for name, value in cetree.iterattributes(element, 3):
 *         if u'{' in name:             # <<<<<<<<<<<<<<
 *             if name == PYTYPE_ATTRIBUTE:
 *                 if value == TREE_PYTYPE_NAME:
 */
    __Pyx_TraceLine(1329,0,__PYX_ERR(0, 1329, __pyx_L1_error))
    __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__32, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1329, __pyx_L1_error)
    __pyx_t_3 = (__pyx_t_4 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1330
 *     for name, value in cetree.iterattributes(element, 3):
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:             # <<<<<<<<<<<<<<
 *                 if value == TREE_PYTYPE_NAME:
 *                     continue
 */
      __Pyx_TraceLine(1330,0,__PYX_ERR(0, 1330, __pyx_L1_error))
      __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1330, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_9 = PyObject_RichCompare(__pyx_v_name, __pyx_t_1, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1330, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1330, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      if (__pyx_t_3) {

        /* "lxml/objectify.pyx":1331
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:
 *                 if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *                     continue
 *                 else:
 */
        __Pyx_TraceLine(1331,0,__PYX_ERR(0, 1331, __pyx_L1_error))
        __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1331, __pyx_L1_error)
        if (__pyx_t_3) {

          /* "lxml/objectify.pyx":1332
 *             if name == PYTYPE_ATTRIBUTE:
 *                 if value == TREE_PYTYPE_NAME:
 *                     continue             # <<<<<<<<<<<<<<
 *                 else:
 *                     name = name.replace(pytype_ns, u'py:')
 */
          __Pyx_TraceLine(1332,0,__PYX_ERR(0, 1332, __pyx_L1_error))
          goto __pyx_L6_continue;

          /* "lxml/objectify.pyx":1331
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:
 *                 if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *                     continue
 *                 else:
 */
        }

        /* "lxml/objectify.pyx":1334
 *                     continue
 *                 else:
 *                     name = name.replace(pytype_ns, u'py:')             # <<<<<<<<<<<<<<
 *             name = name.replace(xsi_ns, u'xsi:')
 *         result += f"{indentstr}  * {name} = {value!r}\n"
 */
        __Pyx_TraceLine(1334,0,__PYX_ERR(0, 1334, __pyx_L1_error))
        /*else*/ {
          __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1334, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __pyx_t_5 = NULL;
          __pyx_t_12 = 0;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
            __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
            if (likely(__pyx_t_5)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
              __Pyx_INCREF(__pyx_t_5);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_1, function);
              __pyx_t_12 = 1;
            }
          }
          #if CYTHON_FAST_PYCALL
          if (PyFunction_Check(__pyx_t_1)) {
            PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pytype_ns, __pyx_kp_u_py};
            __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1334, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_GOTREF(__pyx_t_9);
          } else
          #endif
          #if CYTHON_FAST_PYCCALL
          if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
            PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_pytype_ns, __pyx_kp_u_py};
            __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1334, __pyx_L1_error)
            __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_GOTREF(__pyx_t_9);
          } else
          #endif
          {
            __pyx_t_10 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1334, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_10);
            if (__pyx_t_5) {
              __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5); __pyx_t_5 = NULL;
            }
            __Pyx_INCREF(__pyx_v_pytype_ns);
            __Pyx_GIVEREF(__pyx_v_pytype_ns);
            PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_12, __pyx_v_pytype_ns);
            __Pyx_INCREF(__pyx_kp_u_py);
            __Pyx_GIVEREF(__pyx_kp_u_py);
            PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_12, __pyx_kp_u_py);
            __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_10, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1334, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_9);
            __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
          }
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_9);
          __pyx_t_9 = 0;
        }

        /* "lxml/objectify.pyx":1330
 *     for name, value in cetree.iterattributes(element, 3):
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:             # <<<<<<<<<<<<<<
 *                 if value == TREE_PYTYPE_NAME:
 *                     continue
 */
      }

      /* "lxml/objectify.pyx":1335
 *                 else:
 *                     name = name.replace(pytype_ns, u'py:')
 *             name = name.replace(xsi_ns, u'xsi:')             # <<<<<<<<<<<<<<
 *         result += f"{indentstr}  * {name} = {value!r}\n"
 * 
 */
      __Pyx_TraceLine(1335,0,__PYX_ERR(0, 1335, __pyx_L1_error))
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1335, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_10 = NULL;
      __pyx_t_12 = 0;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_1);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_1, function);
          __pyx_t_12 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_v_xsi_ns, __pyx_kp_u_xsi};
        __pyx_t_9 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1335, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_GOTREF(__pyx_t_9);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
        PyObject *__pyx_temp[3] = {__pyx_t_10, __pyx_v_xsi_ns, __pyx_kp_u_xsi};
        __pyx_t_9 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1335, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
        __Pyx_GOTREF(__pyx_t_9);
      } else
      #endif
      {
        __pyx_t_5 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1335, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        if (__pyx_t_10) {
          __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_10); __pyx_t_10 = NULL;
        }
        __Pyx_INCREF(__pyx_v_xsi_ns);
        __Pyx_GIVEREF(__pyx_v_xsi_ns);
        PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_12, __pyx_v_xsi_ns);
        __Pyx_INCREF(__pyx_kp_u_xsi);
        __Pyx_GIVEREF(__pyx_kp_u_xsi);
        PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_12, __pyx_kp_u_xsi);
        __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_5, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1335, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_9);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_9);
      __pyx_t_9 = 0;

      /* "lxml/objectify.pyx":1329
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 *     for name, value in cetree.iterattributes(element, 3):
 *         if u'{' in name:             # <<<<<<<<<<<<<<
 *             if name == PYTYPE_ATTRIBUTE:
 *                 if value == TREE_PYTYPE_NAME:
 */
    }

    /* "lxml/objectify.pyx":1336
 *                     name = name.replace(pytype_ns, u'py:')
 *             name = name.replace(xsi_ns, u'xsi:')
 *         result += f"{indentstr}  * {name} = {value!r}\n"             # <<<<<<<<<<<<<<
 * 
 *     indent += 1
 */
    __Pyx_TraceLine(1336,0,__PYX_ERR(0, 1336, __pyx_L1_error))
    __pyx_t_9 = PyTuple_New(6); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_13 = 0;
    __pyx_t_7 = 127;
    __pyx_t_1 = __Pyx_PyUnicode_Unicode(__pyx_v_indentstr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_7;
    __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u__39);
    __pyx_t_13 += 4;
    __Pyx_GIVEREF(__pyx_kp_u__39);
    PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_kp_u__39);
    __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_7;
    __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u__36);
    __pyx_t_13 += 3;
    __Pyx_GIVEREF(__pyx_kp_u__36);
    PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_kp_u__36);
    __pyx_t_1 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_v_value), __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_7;
    __pyx_t_13 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_9, 4, __pyx_t_1);
    __pyx_t_1 = 0;
    __Pyx_INCREF(__pyx_kp_u__40);
    __pyx_t_13 += 1;
    __Pyx_GIVEREF(__pyx_kp_u__40);
    PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_kp_u__40);
    __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_9, 6, __pyx_t_13, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = __Pyx_PyUnicode_ConcatSafe(__pyx_v_result, __pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_9);
    __pyx_t_9 = 0;

    /* "lxml/objectify.pyx":1328
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
 *     for name, value in cetree.iterattributes(element, 3):             # <<<<<<<<<<<<<<
 *         if u'{' in name:
 *             if name == PYTYPE_ATTRIBUTE:
 */
    __Pyx_TraceLine(1328,0,__PYX_ERR(0, 1328, __pyx_L1_error))
    __pyx_L6_continue:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1338
 *         result += f"{indentstr}  * {name} = {value!r}\n"
 * 
 *     indent += 1             # <<<<<<<<<<<<<<
 *     for child in element.iterchildren():
 *         result += _dump(child, indent)
 */
  __Pyx_TraceLine(1338,0,__PYX_ERR(0, 1338, __pyx_L1_error))
  __pyx_v_indent = (__pyx_v_indent + 1);

  /* "lxml/objectify.pyx":1339
 * 
 *     indent += 1
 *     for child in element.iterchildren():             # <<<<<<<<<<<<<<
 *         result += _dump(child, indent)
 *     if indent == 1:
 */
  __Pyx_TraceLine(1339,0,__PYX_ERR(0, 1339, __pyx_L1_error))
  __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_iterchildren); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_9);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_9, function);
    }
  }
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
    __pyx_t_9 = __pyx_t_2; __Pyx_INCREF(__pyx_t_9); __pyx_t_6 = 0;
    __pyx_t_8 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = Py_TYPE(__pyx_t_9)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1339, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  for (;;) {
    if (likely(!__pyx_t_8)) {
      if (likely(PyList_CheckExact(__pyx_t_9))) {
        if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_9)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1339, __pyx_L1_error)
        #else
        __pyx_t_2 = PySequence_ITEM(__pyx_t_9, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
      } else {
        if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_9)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1339, __pyx_L1_error)
        #else
        __pyx_t_2 = PySequence_ITEM(__pyx_t_9, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
        #endif
      }
    } else {
      __pyx_t_2 = __pyx_t_8(__pyx_t_9);
      if (unlikely(!__pyx_t_2)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 1339, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_XDECREF_SET(__pyx_v_child, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1340
 *     indent += 1
 *     for child in element.iterchildren():
 *         result += _dump(child, indent)             # <<<<<<<<<<<<<<
 *     if indent == 1:
 *         return result[:-1] # strip last '\n'
 */
    __Pyx_TraceLine(1340,0,__PYX_ERR(0, 1340, __pyx_L1_error))
    if (!(likely(((__pyx_v_child) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_child, __pyx_ptype_4lxml_8includes_11etreepublic__Element))))) __PYX_ERR(0, 1340, __pyx_L1_error)
    __pyx_t_2 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_child), __pyx_v_indent); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1339
 * 
 *     indent += 1
 *     for child in element.iterchildren():             # <<<<<<<<<<<<<<
 *         result += _dump(child, indent)
 *     if indent == 1:
 */
    __Pyx_TraceLine(1339,0,__PYX_ERR(0, 1339, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

  /* "lxml/objectify.pyx":1341
 *     for child in element.iterchildren():
 *         result += _dump(child, indent)
 *     if indent == 1:             # <<<<<<<<<<<<<<
 *         return result[:-1] # strip last '\n'
 *     else:
 */
  __Pyx_TraceLine(1341,0,__PYX_ERR(0, 1341, __pyx_L1_error))
  __pyx_t_3 = ((__pyx_v_indent == 1) != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1342
 *         result += _dump(child, indent)
 *     if indent == 1:
 *         return result[:-1] # strip last '\n'             # <<<<<<<<<<<<<<
 *     else:
 *         return result
 */
    __Pyx_TraceLine(1342,0,__PYX_ERR(0, 1342, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_9 = __Pyx_PyObject_GetSlice(__pyx_v_result, 0, -1L, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_r = __pyx_t_9;
    __pyx_t_9 = 0;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1341
 *     for child in element.iterchildren():
 *         result += _dump(child, indent)
 *     if indent == 1:             # <<<<<<<<<<<<<<
 *         return result[:-1] # strip last '\n'
 *     else:
 */
  }

  /* "lxml/objectify.pyx":1344
 *         return result[:-1] # strip last '\n'
 *     else:
 *         return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(1344,0,__PYX_ERR(0, 1344, __pyx_L1_error))
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_result);
    __pyx_r = __pyx_v_result;
    goto __pyx_L0;
  }

  /* "lxml/objectify.pyx":1314
 *     return _dump(element, 0)
 * 
 * cdef object _dump(_Element element, int indent):             # <<<<<<<<<<<<<<
 *     indentstr = u"    " * indent
 *     if isinstance(element, ObjectifiedDataElement):
 */

  /* 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_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("lxml.objectify._dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_indentstr);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_xsi_ns);
  __Pyx_XDECREF(__pyx_v_pytype_ns);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_child);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1350
 * # Pickle support for objectified ElementTree
 * 
 * def __unpickleElementTree(data):             # <<<<<<<<<<<<<<
 *     return etree.ElementTree(fromstring(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_17__unpickleElementTree(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_17__unpickleElementTree = {"__unpickleElementTree", (PyCFunction)__pyx_pw_4lxml_9objectify_17__unpickleElementTree, METH_O, 0};
static PyObject *__pyx_pw_4lxml_9objectify_17__unpickleElementTree(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__unpickleElementTree (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_16__unpickleElementTree(__pyx_self, ((PyObject *)__pyx_v_data));

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

static PyObject *__pyx_pf_4lxml_9objectify_16__unpickleElementTree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__42)
  __Pyx_RefNannySetupContext("__unpickleElementTree", 0);
  __Pyx_TraceCall("__unpickleElementTree", __pyx_f[0], 1350, 0, __PYX_ERR(0, 1350, __pyx_L1_error));

  /* "lxml/objectify.pyx":1351
 * 
 * def __unpickleElementTree(data):
 *     return etree.ElementTree(fromstring(data))             # <<<<<<<<<<<<<<
 * 
 * cdef _setupPickle(elementTreeReduceFunction):
 */
  __Pyx_TraceLine(1351,0,__PYX_ERR(0, 1351, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_ElementTree); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_fromstring); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  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);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_data); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_data};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_data};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    {
      __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_INCREF(__pyx_v_data);
      __Pyx_GIVEREF(__pyx_v_data);
      PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_data);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_4) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    {
      __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1351, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1350
 * # Pickle support for objectified ElementTree
 * 
 * def __unpickleElementTree(data):             # <<<<<<<<<<<<<<
 *     return etree.ElementTree(fromstring(data))
 * 
 */

  /* 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_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify.__unpickleElementTree", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1353
 *     return etree.ElementTree(fromstring(data))
 * 
 * cdef _setupPickle(elementTreeReduceFunction):             # <<<<<<<<<<<<<<
 *     if python.IS_PYTHON2:
 *         import copy_reg as copyreg
 */

static PyObject *__pyx_f_4lxml_9objectify__setupPickle(PyObject *__pyx_v_elementTreeReduceFunction) {
  PyObject *__pyx_v_copyreg = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("_setupPickle", 0);
  __Pyx_TraceCall("_setupPickle", __pyx_f[0], 1353, 0, __PYX_ERR(0, 1353, __pyx_L1_error));

  /* "lxml/objectify.pyx":1354
 * 
 * cdef _setupPickle(elementTreeReduceFunction):
 *     if python.IS_PYTHON2:             # <<<<<<<<<<<<<<
 *         import copy_reg as copyreg
 *     else:
 */
  __Pyx_TraceLine(1354,0,__PYX_ERR(0, 1354, __pyx_L1_error))
  __pyx_t_1 = (IS_PYTHON2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1355
 * cdef _setupPickle(elementTreeReduceFunction):
 *     if python.IS_PYTHON2:
 *         import copy_reg as copyreg             # <<<<<<<<<<<<<<
 *     else:
 *         import copyreg
 */
    __Pyx_TraceLine(1355,0,__PYX_ERR(0, 1355, __pyx_L1_error))
    __pyx_t_2 = __Pyx_Import(__pyx_n_s_copy_reg, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1355, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_copyreg = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "lxml/objectify.pyx":1354
 * 
 * cdef _setupPickle(elementTreeReduceFunction):
 *     if python.IS_PYTHON2:             # <<<<<<<<<<<<<<
 *         import copy_reg as copyreg
 *     else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1357
 *         import copy_reg as copyreg
 *     else:
 *         import copyreg             # <<<<<<<<<<<<<<
 *     copyreg.pickle(etree._ElementTree,
 *                    elementTreeReduceFunction, __unpickleElementTree)
 */
  __Pyx_TraceLine(1357,0,__PYX_ERR(0, 1357, __pyx_L1_error))
  /*else*/ {
    __pyx_t_2 = __Pyx_Import(__pyx_n_s_copyreg, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1357, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_copyreg = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1358
 *     else:
 *         import copyreg
 *     copyreg.pickle(etree._ElementTree,             # <<<<<<<<<<<<<<
 *                    elementTreeReduceFunction, __unpickleElementTree)
 * 
 */
  __Pyx_TraceLine(1358,0,__PYX_ERR(0, 1358, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_copyreg, __pyx_n_s_pickle); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_ElementTree_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "lxml/objectify.pyx":1359
 *         import copyreg
 *     copyreg.pickle(etree._ElementTree,
 *                    elementTreeReduceFunction, __unpickleElementTree)             # <<<<<<<<<<<<<<
 * 
 * def pickleReduceElementTree(obj):
 */
  __Pyx_TraceLine(1359,0,__PYX_ERR(0, 1359, __pyx_L1_error))
  __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_unpickleElementTree); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1359, __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_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_3)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_v_elementTreeReduceFunction, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_t_4, __pyx_v_elementTreeReduceFunction, __pyx_t_5};
    __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4);
    __Pyx_INCREF(__pyx_v_elementTreeReduceFunction);
    __Pyx_GIVEREF(__pyx_v_elementTreeReduceFunction);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_elementTreeReduceFunction);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1353
 *     return etree.ElementTree(fromstring(data))
 * 
 * cdef _setupPickle(elementTreeReduceFunction):             # <<<<<<<<<<<<<<
 *     if python.IS_PYTHON2:
 *         import copy_reg as copyreg
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify._setupPickle", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_copyreg);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1361
 *                    elementTreeReduceFunction, __unpickleElementTree)
 * 
 * def pickleReduceElementTree(obj):             # <<<<<<<<<<<<<<
 *     return (__unpickleElementTree, (etree.tostring(obj),))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_19pickleReduceElementTree(PyObject *__pyx_self, PyObject *__pyx_v_obj); /*proto*/
static PyMethodDef __pyx_mdef_4lxml_9objectify_19pickleReduceElementTree = {"pickleReduceElementTree", (PyCFunction)__pyx_pw_4lxml_9objectify_19pickleReduceElementTree, METH_O, 0};
static PyObject *__pyx_pw_4lxml_9objectify_19pickleReduceElementTree(PyObject *__pyx_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pickleReduceElementTree (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_18pickleReduceElementTree(__pyx_self, ((PyObject *)__pyx_v_obj));

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

static PyObject *__pyx_pf_4lxml_9objectify_18pickleReduceElementTree(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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;
  __Pyx_TraceFrameInit(__pyx_codeobj__43)
  __Pyx_RefNannySetupContext("pickleReduceElementTree", 0);
  __Pyx_TraceCall("pickleReduceElementTree", __pyx_f[0], 1361, 0, __PYX_ERR(0, 1361, __pyx_L1_error));

  /* "lxml/objectify.pyx":1362
 * 
 * def pickleReduceElementTree(obj):
 *     return (__unpickleElementTree, (etree.tostring(obj),))             # <<<<<<<<<<<<<<
 * 
 * _setupPickle(pickleReduceElementTree)
 */
  __Pyx_TraceLine(1362,0,__PYX_ERR(0, 1362, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_unpickleElementTree); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_tostring); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  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);
    }
  }
  if (!__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_obj); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_obj};
      __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_obj};
      __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1362, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
      __Pyx_INCREF(__pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_obj);
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1362, __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;
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1361
 *                    elementTreeReduceFunction, __unpickleElementTree)
 * 
 * def pickleReduceElementTree(obj):             # <<<<<<<<<<<<<<
 *     return (__unpickleElementTree, (etree.tostring(obj),))
 * 
 */

  /* 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("lxml.objectify.pickleReduceElementTree", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1376
 *     cdef object empty_data_class
 *     cdef object tree_class
 *     def __init__(self, tree_class=None, empty_data_class=None):             # <<<<<<<<<<<<<<
 *         u"""Lookup mechanism for objectify.
 * 
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_27ObjectifyElementClassLookup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_27ObjectifyElementClassLookup___init__[] = "Lookup mechanism for objectify.\n\n        The default Element classes can be replaced by passing subclasses of\n        ObjectifiedElement and ObjectifiedDataElement as keyword arguments.\n        'tree_class' defines inner tree classes (defaults to\n        ObjectifiedElement), 'empty_data_class' defines the default class for\n        empty data elements (defaults to StringElement).\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_27ObjectifyElementClassLookup___init__;
#endif
static int __pyx_pw_4lxml_9objectify_27ObjectifyElementClassLookup_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_tree_class = 0;
  PyObject *__pyx_v_empty_data_class = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tree_class,&__pyx_n_s_empty_data_class,0};
    PyObject* values[2] = {0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tree_class);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_empty_data_class);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1376, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_tree_class = values[0];
    __pyx_v_empty_data_class = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1376, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifyElementClassLookup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_27ObjectifyElementClassLookup___init__(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self), __pyx_v_tree_class, __pyx_v_empty_data_class);

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

static int __pyx_pf_4lxml_9objectify_27ObjectifyElementClassLookup___init__(struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *__pyx_v_self, PyObject *__pyx_v_tree_class, PyObject *__pyx_v_empty_data_class) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_TraceCall("__init__", __pyx_f[0], 1376, 0, __PYX_ERR(0, 1376, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_tree_class);
  __Pyx_INCREF(__pyx_v_empty_data_class);

  /* "lxml/objectify.pyx":1385
 *         empty data elements (defaults to StringElement).
 *         """
 *         self._lookup_function = _lookupElementClass             # <<<<<<<<<<<<<<
 *         if tree_class is None:
 *             tree_class = ObjectifiedElement
 */
  __Pyx_TraceLine(1385,0,__PYX_ERR(0, 1385, __pyx_L1_error))
  __pyx_v_self->__pyx_base._lookup_function = __pyx_f_4lxml_9objectify__lookupElementClass;

  /* "lxml/objectify.pyx":1386
 *         """
 *         self._lookup_function = _lookupElementClass
 *         if tree_class is None:             # <<<<<<<<<<<<<<
 *             tree_class = ObjectifiedElement
 *         self.tree_class = tree_class
 */
  __Pyx_TraceLine(1386,0,__PYX_ERR(0, 1386, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_tree_class == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1387
 *         self._lookup_function = _lookupElementClass
 *         if tree_class is None:
 *             tree_class = ObjectifiedElement             # <<<<<<<<<<<<<<
 *         self.tree_class = tree_class
 *         if empty_data_class is None:
 */
    __Pyx_TraceLine(1387,0,__PYX_ERR(0, 1387, __pyx_L1_error))
    __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));
    __Pyx_DECREF_SET(__pyx_v_tree_class, ((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));

    /* "lxml/objectify.pyx":1386
 *         """
 *         self._lookup_function = _lookupElementClass
 *         if tree_class is None:             # <<<<<<<<<<<<<<
 *             tree_class = ObjectifiedElement
 *         self.tree_class = tree_class
 */
  }

  /* "lxml/objectify.pyx":1388
 *         if tree_class is None:
 *             tree_class = ObjectifiedElement
 *         self.tree_class = tree_class             # <<<<<<<<<<<<<<
 *         if empty_data_class is None:
 *             empty_data_class = StringElement
 */
  __Pyx_TraceLine(1388,0,__PYX_ERR(0, 1388, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_tree_class);
  __Pyx_GIVEREF(__pyx_v_tree_class);
  __Pyx_GOTREF(__pyx_v_self->tree_class);
  __Pyx_DECREF(__pyx_v_self->tree_class);
  __pyx_v_self->tree_class = __pyx_v_tree_class;

  /* "lxml/objectify.pyx":1389
 *             tree_class = ObjectifiedElement
 *         self.tree_class = tree_class
 *         if empty_data_class is None:             # <<<<<<<<<<<<<<
 *             empty_data_class = StringElement
 *         self.empty_data_class = empty_data_class
 */
  __Pyx_TraceLine(1389,0,__PYX_ERR(0, 1389, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_empty_data_class == Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1390
 *         self.tree_class = tree_class
 *         if empty_data_class is None:
 *             empty_data_class = StringElement             # <<<<<<<<<<<<<<
 *         self.empty_data_class = empty_data_class
 * 
 */
    __Pyx_TraceLine(1390,0,__PYX_ERR(0, 1390, __pyx_L1_error))
    __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));
    __Pyx_DECREF_SET(__pyx_v_empty_data_class, ((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement));

    /* "lxml/objectify.pyx":1389
 *             tree_class = ObjectifiedElement
 *         self.tree_class = tree_class
 *         if empty_data_class is None:             # <<<<<<<<<<<<<<
 *             empty_data_class = StringElement
 *         self.empty_data_class = empty_data_class
 */
  }

  /* "lxml/objectify.pyx":1391
 *         if empty_data_class is None:
 *             empty_data_class = StringElement
 *         self.empty_data_class = empty_data_class             # <<<<<<<<<<<<<<
 * 
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):
 */
  __Pyx_TraceLine(1391,0,__PYX_ERR(0, 1391, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_empty_data_class);
  __Pyx_GIVEREF(__pyx_v_empty_data_class);
  __Pyx_GOTREF(__pyx_v_self->empty_data_class);
  __Pyx_DECREF(__pyx_v_self->empty_data_class);
  __pyx_v_self->empty_data_class = __pyx_v_empty_data_class;

  /* "lxml/objectify.pyx":1376
 *     cdef object empty_data_class
 *     cdef object tree_class
 *     def __init__(self, tree_class=None, empty_data_class=None):             # <<<<<<<<<<<<<<
 *         u"""Lookup mechanism for objectify.
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectifyElementClassLookup.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tree_class);
  __Pyx_XDECREF(__pyx_v_empty_data_class);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1393
 *         self.empty_data_class = empty_data_class
 * 
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
 *     cdef ObjectifyElementClassLookup lookup
 *     lookup = <ObjectifyElementClassLookup>state
 */

static PyObject *__pyx_f_4lxml_9objectify__lookupElementClass(PyObject *__pyx_v_state, CYTHON_UNUSED struct LxmlDocument *__pyx_v_doc, xmlNode *__pyx_v_c_node) {
  struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *__pyx_v_lookup = 0;
  PyObject *__pyx_v_value = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_py_type = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_schema_type = NULL;
  CYTHON_UNUSED PyObject *__pyx_v_prefix = NULL;
  PyObject *__pyx_v_el_class = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  __Pyx_RefNannySetupContext("_lookupElementClass", 0);
  __Pyx_TraceCall("_lookupElementClass", __pyx_f[0], 1393, 0, __PYX_ERR(0, 1393, __pyx_L1_error));

  /* "lxml/objectify.pyx":1395
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):
 *     cdef ObjectifyElementClassLookup lookup
 *     lookup = <ObjectifyElementClassLookup>state             # <<<<<<<<<<<<<<
 *     # if element has children => no data class
 *     if cetree.hasChild(c_node):
 */
  __Pyx_TraceLine(1395,0,__PYX_ERR(0, 1395, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_state;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_lookup = ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1397
 *     lookup = <ObjectifyElementClassLookup>state
 *     # if element has children => no data class
 *     if cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *         return lookup.tree_class
 * 
 */
  __Pyx_TraceLine(1397,0,__PYX_ERR(0, 1397, __pyx_L1_error))
  __pyx_t_2 = (hasChild(__pyx_v_c_node) != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1398
 *     # if element has children => no data class
 *     if cetree.hasChild(c_node):
 *         return lookup.tree_class             # <<<<<<<<<<<<<<
 * 
 *     # if element is defined as xsi:nil, return NoneElement class
 */
    __Pyx_TraceLine(1398,0,__PYX_ERR(0, 1398, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_lookup->tree_class);
    __pyx_r = __pyx_v_lookup->tree_class;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1397
 *     lookup = <ObjectifyElementClassLookup>state
 *     # if element has children => no data class
 *     if cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *         return lookup.tree_class
 * 
 */
  }

  /* "lxml/objectify.pyx":1401
 * 
 *     # if element is defined as xsi:nil, return NoneElement class
 *     if u"true" == cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil"):
 *         return NoneElement
 */
  __Pyx_TraceLine(1401,0,__PYX_ERR(0, 1401, __pyx_L1_error))
  __pyx_t_1 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"nil")))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_n_u_true, __pyx_t_1, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1403
 *     if u"true" == cetree.attributeValueFromNsName(
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil"):
 *         return NoneElement             # <<<<<<<<<<<<<<
 * 
 *     # check for Python type hint
 */
    __Pyx_TraceLine(1403,0,__PYX_ERR(0, 1403, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement));
    __pyx_r = ((PyObject *)__pyx_ptype_4lxml_9objectify_NoneElement);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1401
 * 
 *     # if element is defined as xsi:nil, return NoneElement class
 *     if u"true" == cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil"):
 *         return NoneElement
 */
  }

  /* "lxml/objectify.pyx":1406
 * 
 *     # check for Python type hint
 *     value = cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     if value is not None:
 */
  __Pyx_TraceLine(1406,0,__PYX_ERR(0, 1406, __pyx_L1_error))
  __pyx_t_1 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1408
 *     value = cetree.attributeValueFromNsName(
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     if value is not None:             # <<<<<<<<<<<<<<
 *         if value == TREE_PYTYPE_NAME:
 *             return lookup.tree_class
 */
  __Pyx_TraceLine(1408,0,__PYX_ERR(0, 1408, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_value != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1409
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     if value is not None:
 *         if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *             return lookup.tree_class
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 */
    __Pyx_TraceLine(1409,0,__PYX_ERR(0, 1409, __pyx_L1_error))
    __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1409, __pyx_L1_error)
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1410
 *     if value is not None:
 *         if value == TREE_PYTYPE_NAME:
 *             return lookup.tree_class             # <<<<<<<<<<<<<<
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 *         if py_type is not None:
 */
      __Pyx_TraceLine(1410,0,__PYX_ERR(0, 1410, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_lookup->tree_class);
      __pyx_r = __pyx_v_lookup->tree_class;
      goto __pyx_L0;

      /* "lxml/objectify.pyx":1409
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     if value is not None:
 *         if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *             return lookup.tree_class
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 */
    }

    /* "lxml/objectify.pyx":1411
 *         if value == TREE_PYTYPE_NAME:
 *             return lookup.tree_class
 *         py_type = <PyType>_PYTYPE_DICT.get(value)             # <<<<<<<<<<<<<<
 *         if py_type is not None:
 *             return py_type._type
 */
    __Pyx_TraceLine(1411,0,__PYX_ERR(0, 1411, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 1411, __pyx_L1_error)
    }
    __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_value, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __pyx_t_1;
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_py_type = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1412
 *             return lookup.tree_class
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 *         if py_type is not None:             # <<<<<<<<<<<<<<
 *             return py_type._type
 *         # unknown 'pyval' => try to figure it out ourself, just go on
 */
    __Pyx_TraceLine(1412,0,__PYX_ERR(0, 1412, __pyx_L1_error))
    __pyx_t_3 = (((PyObject *)__pyx_v_py_type) != Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1413
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 *         if py_type is not None:
 *             return py_type._type             # <<<<<<<<<<<<<<
 *         # unknown 'pyval' => try to figure it out ourself, just go on
 * 
 */
      __Pyx_TraceLine(1413,0,__PYX_ERR(0, 1413, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_py_type->_type);
      __pyx_r = __pyx_v_py_type->_type;
      goto __pyx_L0;

      /* "lxml/objectify.pyx":1412
 *             return lookup.tree_class
 *         py_type = <PyType>_PYTYPE_DICT.get(value)
 *         if py_type is not None:             # <<<<<<<<<<<<<<
 *             return py_type._type
 *         # unknown 'pyval' => try to figure it out ourself, just go on
 */
    }

    /* "lxml/objectify.pyx":1408
 *     value = cetree.attributeValueFromNsName(
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *     if value is not None:             # <<<<<<<<<<<<<<
 *         if value == TREE_PYTYPE_NAME:
 *             return lookup.tree_class
 */
  }

  /* "lxml/objectify.pyx":1417
 * 
 *     # check for XML Schema type hint
 *     value = cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 * 
 */
  __Pyx_TraceLine(1417,0,__PYX_ERR(0, 1417, __pyx_L1_error))
  __pyx_t_4 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"type")))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1420
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 * 
 *     if value is not None:             # <<<<<<<<<<<<<<
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:
 */
  __Pyx_TraceLine(1420,0,__PYX_ERR(0, 1420, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_value != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1421
 * 
 *     if value is not None:
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)             # <<<<<<<<<<<<<<
 *         if schema_type is None and u':' in value:
 *             prefix, value = value.split(u':', 1)
 */
    __Pyx_TraceLine(1421,0,__PYX_ERR(0, 1421, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 1421, __pyx_L1_error)
    }
    __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_value, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_1 = __pyx_t_4;
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_schema_type = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1422
 *     if value is not None:
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:             # <<<<<<<<<<<<<<
 *             prefix, value = value.split(u':', 1)
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 */
    __Pyx_TraceLine(1422,0,__PYX_ERR(0, 1422, __pyx_L1_error))
    __pyx_t_2 = (((PyObject *)__pyx_v_schema_type) == Py_None);
    __pyx_t_5 = (__pyx_t_2 != 0);
    if (__pyx_t_5) {
    } else {
      __pyx_t_3 = __pyx_t_5;
      goto __pyx_L10_bool_binop_done;
    }
    __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__44, __pyx_v_value, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1422, __pyx_L1_error)
    __pyx_t_2 = (__pyx_t_5 != 0);
    __pyx_t_3 = __pyx_t_2;
    __pyx_L10_bool_binop_done:;
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1423
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:
 *             prefix, value = value.split(u':', 1)             # <<<<<<<<<<<<<<
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is not None:
 */
      __Pyx_TraceLine(1423,0,__PYX_ERR(0, 1423, __pyx_L1_error))
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1423, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1423, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
        PyObject* sequence = __pyx_t_4;
        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, 1423, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); 
          __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
        } else {
          __pyx_t_1 = PyList_GET_ITEM(sequence, 0); 
          __pyx_t_6 = PyList_GET_ITEM(sequence, 1); 
        }
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_6);
        #else
        __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1423, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1423, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_7 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1423, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
        index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_1)) goto __pyx_L12_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_1);
        index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L12_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_6);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(0, 1423, __pyx_L1_error)
        __pyx_t_8 = NULL;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        goto __pyx_L13_unpacking_done;
        __pyx_L12_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __pyx_t_8 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1423, __pyx_L1_error)
        __pyx_L13_unpacking_done:;
      }
      __pyx_v_prefix = __pyx_t_1;
      __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":1424
 *         if schema_type is None and u':' in value:
 *             prefix, value = value.split(u':', 1)
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)             # <<<<<<<<<<<<<<
 *         if schema_type is not None:
 *             return schema_type._type
 */
      __Pyx_TraceLine(1424,0,__PYX_ERR(0, 1424, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 1424, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_value, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1424, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_6 = __pyx_t_4;
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_schema_type, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_6));
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":1422
 *     if value is not None:
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:             # <<<<<<<<<<<<<<
 *             prefix, value = value.split(u':', 1)
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 */
    }

    /* "lxml/objectify.pyx":1425
 *             prefix, value = value.split(u':', 1)
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is not None:             # <<<<<<<<<<<<<<
 *             return schema_type._type
 * 
 */
    __Pyx_TraceLine(1425,0,__PYX_ERR(0, 1425, __pyx_L1_error))
    __pyx_t_3 = (((PyObject *)__pyx_v_schema_type) != Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1426
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is not None:
 *             return schema_type._type             # <<<<<<<<<<<<<<
 * 
 *     # otherwise determine class based on text content type
 */
      __Pyx_TraceLine(1426,0,__PYX_ERR(0, 1426, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_schema_type->_type);
      __pyx_r = __pyx_v_schema_type->_type;
      goto __pyx_L0;

      /* "lxml/objectify.pyx":1425
 *             prefix, value = value.split(u':', 1)
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is not None:             # <<<<<<<<<<<<<<
 *             return schema_type._type
 * 
 */
    }

    /* "lxml/objectify.pyx":1420
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 * 
 *     if value is not None:             # <<<<<<<<<<<<<<
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:
 */
  }

  /* "lxml/objectify.pyx":1429
 * 
 *     # otherwise determine class based on text content type
 *     el_class = _guessElementClass(c_node)             # <<<<<<<<<<<<<<
 *     if el_class is not None:
 *         return el_class
 */
  __Pyx_TraceLine(1429,0,__PYX_ERR(0, 1429, __pyx_L1_error))
  __pyx_t_6 = __pyx_f_4lxml_9objectify__guessElementClass(__pyx_v_c_node); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_v_el_class = __pyx_t_6;
  __pyx_t_6 = 0;

  /* "lxml/objectify.pyx":1430
 *     # otherwise determine class based on text content type
 *     el_class = _guessElementClass(c_node)
 *     if el_class is not None:             # <<<<<<<<<<<<<<
 *         return el_class
 * 
 */
  __Pyx_TraceLine(1430,0,__PYX_ERR(0, 1430, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_el_class != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1431
 *     el_class = _guessElementClass(c_node)
 *     if el_class is not None:
 *         return el_class             # <<<<<<<<<<<<<<
 * 
 *     # if element is a root node => default to tree node
 */
    __Pyx_TraceLine(1431,0,__PYX_ERR(0, 1431, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_el_class);
    __pyx_r = __pyx_v_el_class;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1430
 *     # otherwise determine class based on text content type
 *     el_class = _guessElementClass(c_node)
 *     if el_class is not None:             # <<<<<<<<<<<<<<
 *         return el_class
 * 
 */
  }

  /* "lxml/objectify.pyx":1434
 * 
 *     # if element is a root node => default to tree node
 *     if c_node.parent is NULL or not tree._isElement(c_node.parent):             # <<<<<<<<<<<<<<
 *         return lookup.tree_class
 * 
 */
  __Pyx_TraceLine(1434,0,__PYX_ERR(0, 1434, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_c_node->parent == NULL) != 0);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __pyx_t_2;
    goto __pyx_L17_bool_binop_done;
  }
  __pyx_t_2 = ((!(_isElement(__pyx_v_c_node->parent) != 0)) != 0);
  __pyx_t_3 = __pyx_t_2;
  __pyx_L17_bool_binop_done:;
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1435
 *     # if element is a root node => default to tree node
 *     if c_node.parent is NULL or not tree._isElement(c_node.parent):
 *         return lookup.tree_class             # <<<<<<<<<<<<<<
 * 
 *     return lookup.empty_data_class
 */
    __Pyx_TraceLine(1435,0,__PYX_ERR(0, 1435, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_lookup->tree_class);
    __pyx_r = __pyx_v_lookup->tree_class;
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1434
 * 
 *     # if element is a root node => default to tree node
 *     if c_node.parent is NULL or not tree._isElement(c_node.parent):             # <<<<<<<<<<<<<<
 *         return lookup.tree_class
 * 
 */
  }

  /* "lxml/objectify.pyx":1437
 *         return lookup.tree_class
 * 
 *     return lookup.empty_data_class             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(1437,0,__PYX_ERR(0, 1437, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_lookup->empty_data_class);
  __pyx_r = __pyx_v_lookup->empty_data_class;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1393
 *         self.empty_data_class = empty_data_class
 * 
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
 *     cdef ObjectifyElementClassLookup lookup
 *     lookup = <ObjectifyElementClassLookup>state
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify._lookupElementClass", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_lookup);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_type);
  __Pyx_XDECREF((PyObject *)__pyx_v_schema_type);
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XDECREF(__pyx_v_el_class);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1443
 * # Type annotations
 * 
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):             # <<<<<<<<<<<<<<
 *     if pytype is None:
 *         return None
 */

static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__check_type(xmlNode *__pyx_v_c_node, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_pytype) {
  PyObject *__pyx_v_value = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("_check_type", 0);
  __Pyx_TraceCall("_check_type", __pyx_f[0], 1443, 0, __PYX_ERR(0, 1443, __pyx_L1_error));

  /* "lxml/objectify.pyx":1444
 * 
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         return None
 *     value = textOf(c_node)
 */
  __Pyx_TraceLine(1444,0,__PYX_ERR(0, 1444, __pyx_L1_error))
  __pyx_t_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1445
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):
 *     if pytype is None:
 *         return None             # <<<<<<<<<<<<<<
 *     value = textOf(c_node)
 *     try:
 */
    __Pyx_TraceLine(1445,0,__PYX_ERR(0, 1445, __pyx_L1_error))
    __Pyx_XDECREF(((PyObject *)__pyx_r));
    __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1444
 * 
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         return None
 *     value = textOf(c_node)
 */
  }

  /* "lxml/objectify.pyx":1446
 *     if pytype is None:
 *         return None
 *     value = textOf(c_node)             # <<<<<<<<<<<<<<
 *     try:
 *         pytype.type_check(value)
 */
  __Pyx_TraceLine(1446,0,__PYX_ERR(0, 1446, __pyx_L1_error))
  __pyx_t_3 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_value = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1447
 *         return None
 *     value = textOf(c_node)
 *     try:             # <<<<<<<<<<<<<<
 *         pytype.type_check(value)
 *         return pytype
 */
  __Pyx_TraceLine(1447,0,__PYX_ERR(0, 1447, __pyx_L4_error))
  {
    __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:*/ {

      /* "lxml/objectify.pyx":1448
 *     value = textOf(c_node)
 *     try:
 *         pytype.type_check(value)             # <<<<<<<<<<<<<<
 *         return pytype
 *     except IGNORABLE_ERRORS:
 */
      __Pyx_TraceLine(1448,0,__PYX_ERR(0, 1448, __pyx_L4_error))
      __Pyx_INCREF(__pyx_v_pytype->type_check);
      __pyx_t_7 = __pyx_v_pytype->type_check; __pyx_t_8 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
        if (likely(__pyx_t_8)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_8);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_7, function);
        }
      }
      if (!__pyx_t_8) {
        __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1448, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_3);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_7)) {
          PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_value};
          __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1448, __pyx_L4_error)
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_t_3);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
          PyObject *__pyx_temp[2] = {__pyx_t_8, __pyx_v_value};
          __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1448, __pyx_L4_error)
          __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
          __Pyx_GOTREF(__pyx_t_3);
        } else
        #endif
        {
          __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1448, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_9);
          __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL;
          __Pyx_INCREF(__pyx_v_value);
          __Pyx_GIVEREF(__pyx_v_value);
          PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_value);
          __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1448, __pyx_L4_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1449
 *     try:
 *         pytype.type_check(value)
 *         return pytype             # <<<<<<<<<<<<<<
 *     except IGNORABLE_ERRORS:
 *         # could not be parsed as the specified type => ignore
 */
      __Pyx_TraceLine(1449,0,__PYX_ERR(0, 1449, __pyx_L4_error))
      __Pyx_XDECREF(((PyObject *)__pyx_r));
      __Pyx_INCREF(((PyObject *)__pyx_v_pytype));
      __pyx_r = __pyx_v_pytype;
      goto __pyx_L8_try_return;

      /* "lxml/objectify.pyx":1447
 *         return None
 *     value = textOf(c_node)
 *     try:             # <<<<<<<<<<<<<<
 *         pytype.type_check(value)
 *         return pytype
 */
    }
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":1450
 *         pytype.type_check(value)
 *         return pytype
 *     except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
 *         # could not be parsed as the specified type => ignore
 *         pass
 */
    __Pyx_TraceLine(1450,0,__PYX_ERR(0, 1450, __pyx_L6_except_error))
    __pyx_t_10 = __Pyx_PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
    if (__pyx_t_10) {
      __Pyx_ErrRestore(0,0,0);
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "lxml/objectify.pyx":1447
 *         return None
 *     value = textOf(c_node)
 *     try:             # <<<<<<<<<<<<<<
 *         pytype.type_check(value)
 *         return pytype
 */
    __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_L8_try_return:;
    __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_L0;
    __pyx_L5_exception_handled:;
    __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);
  }

  /* "lxml/objectify.pyx":1453
 *         # could not be parsed as the specified type => ignore
 *         pass
 *     return None             # <<<<<<<<<<<<<<
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,
 */
  __Pyx_TraceLine(1453,0,__PYX_ERR(0, 1453, __pyx_L1_error))
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1443
 * # Type annotations
 * 
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):             # <<<<<<<<<<<<<<
 *     if pytype is None:
 *         return None
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify._check_type", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1455
 *     return None
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None):
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_21pyannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_20pyannotate[] = "pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)\n\n    Recursively annotates the elements of an XML tree with 'pytype'\n    attributes.\n\n    If the 'ignore_old' keyword argument is True (the default), current 'pytype'\n    attributes will be ignored and replaced.  Otherwise, they will be checked\n    and only replaced if they no longer fit the current text value.\n\n    Setting the keyword argument ``ignore_xsi`` to True makes the function\n    additionally ignore existing ``xsi:type`` annotations.  The default is to\n    use them as a type hint.\n\n    The default annotation of empty elements can be set with the\n    ``empty_pytype`` keyword argument.  The default is not to annotate empty\n    elements.  Pass 'str', for example, to make string values the default.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_21pyannotate = {"pyannotate", (PyCFunction)__pyx_pw_4lxml_9objectify_21pyannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_20pyannotate};
static PyObject *__pyx_pw_4lxml_9objectify_21pyannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_element_or_tree = 0;
  PyObject *__pyx_v_ignore_old = 0;
  PyObject *__pyx_v_ignore_xsi = 0;
  PyObject *__pyx_v_empty_pytype = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("pyannotate (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_element_or_tree,&__pyx_n_s_ignore_old,&__pyx_n_s_ignore_xsi,&__pyx_n_s_empty_pytype,0};
    PyObject* values[4] = {0,0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_False));
    values[2] = ((PyObject *)((PyObject *)Py_False));

    /* "lxml/objectify.pyx":1456
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,
 *              empty_pytype=None):             # <<<<<<<<<<<<<<
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 * 
 */
    values[3] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element_or_tree)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (kw_args > 0 && likely(kw_args <= 3)) {
        Py_ssize_t index;
        for (index = 1; index < 4 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "pyannotate") < 0)) __PYX_ERR(0, 1455, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_element_or_tree = values[0];
    __pyx_v_ignore_old = values[1];
    __pyx_v_ignore_xsi = values[2];
    __pyx_v_empty_pytype = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("pyannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1455, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.pyannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_20pyannotate(__pyx_self, __pyx_v_element_or_tree, __pyx_v_ignore_old, __pyx_v_ignore_xsi, __pyx_v_empty_pytype);

  /* "lxml/objectify.pyx":1455
 *     return None
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None):
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 */

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

static PyObject *__pyx_pf_4lxml_9objectify_20pyannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_xsi, PyObject *__pyx_v_empty_pytype) {
  struct LxmlElement *__pyx_v_element = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_TraceFrameInit(__pyx_codeobj__46)
  __Pyx_RefNannySetupContext("pyannotate", 0);
  __Pyx_TraceCall("pyannotate", __pyx_f[0], 1455, 0, __PYX_ERR(0, 1455, __pyx_L1_error));

  /* "lxml/objectify.pyx":1475
 *     """
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 */
  __Pyx_TraceLine(1475,0,__PYX_ERR(0, 1475, __pyx_L1_error))
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1476
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)             # <<<<<<<<<<<<<<
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,
 */
  __Pyx_TraceLine(1476,0,__PYX_ERR(0, 1476, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1476, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1476, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 0, 1, __pyx_t_2, __pyx_t_3, Py_None, __pyx_v_empty_pytype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1455
 *     return None
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None):
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.pyannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1478
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
 *                 empty_type=None):
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_23xsiannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_22xsiannotate[] = "xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)\n\n    Recursively annotates the elements of an XML tree with 'xsi:type'\n    attributes.\n\n    If the 'ignore_old' keyword argument is True (the default), current\n    'xsi:type' attributes will be ignored and replaced.  Otherwise, they will be\n    checked and only replaced if they no longer fit the current text value.\n\n    Note that the mapping from Python types to XSI types is usually ambiguous.\n    Currently, only the first XSI type name in the corresponding PyType\n    definition will be used for annotation.  Thus, you should consider naming\n    the widest type first if you define additional types.\n\n    Setting the keyword argument ``ignore_pytype`` to True makes the function\n    additionally ignore existing ``pytype`` annotations.  The default is to\n    use them as a type hint.\n\n    The default annotation of empty elements can be set with the\n    ``empty_type`` keyword argument.  The default is not to annotate empty\n    elements.  Pass 'string', for example, to make string values the default.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_23xsiannotate = {"xsiannotate", (PyCFunction)__pyx_pw_4lxml_9objectify_23xsiannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_22xsiannotate};
static PyObject *__pyx_pw_4lxml_9objectify_23xsiannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_element_or_tree = 0;
  PyObject *__pyx_v_ignore_old = 0;
  PyObject *__pyx_v_ignore_pytype = 0;
  PyObject *__pyx_v_empty_type = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("xsiannotate (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_element_or_tree,&__pyx_n_s_ignore_old,&__pyx_n_s_ignore_pytype,&__pyx_n_s_empty_type,0};
    PyObject* values[4] = {0,0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_False));
    values[2] = ((PyObject *)((PyObject *)Py_False));

    /* "lxml/objectify.pyx":1479
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,
 *                 empty_type=None):             # <<<<<<<<<<<<<<
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 * 
 */
    values[3] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element_or_tree)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (kw_args > 0 && likely(kw_args <= 3)) {
        Py_ssize_t index;
        for (index = 1; index < 4 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "xsiannotate") < 0)) __PYX_ERR(0, 1478, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_element_or_tree = values[0];
    __pyx_v_ignore_old = values[1];
    __pyx_v_ignore_pytype = values[2];
    __pyx_v_empty_type = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("xsiannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1478, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.xsiannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_22xsiannotate(__pyx_self, __pyx_v_element_or_tree, __pyx_v_ignore_old, __pyx_v_ignore_pytype, __pyx_v_empty_type);

  /* "lxml/objectify.pyx":1478
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
 *                 empty_type=None):
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 */

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

static PyObject *__pyx_pf_4lxml_9objectify_22xsiannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_pytype, PyObject *__pyx_v_empty_type) {
  struct LxmlElement *__pyx_v_element = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_TraceFrameInit(__pyx_codeobj__47)
  __Pyx_RefNannySetupContext("xsiannotate", 0);
  __Pyx_TraceCall("xsiannotate", __pyx_f[0], 1478, 0, __PYX_ERR(0, 1478, __pyx_L1_error));

  /* "lxml/objectify.pyx":1503
 *     """
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 */
  __Pyx_TraceLine(1503,0,__PYX_ERR(0, 1503, __pyx_L1_error))
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1504
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)             # <<<<<<<<<<<<<<
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,
 */
  __Pyx_TraceLine(1504,0,__PYX_ERR(0, 1504, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_pytype); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L1_error)
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 1, 0, __pyx_t_2, __pyx_t_3, __pyx_v_empty_type, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1478
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
 *                 empty_type=None):
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.xsiannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1506
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
 *              annotate_pytype=1):
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_25annotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_24annotate[] = "annotate(element_or_tree, ignore_old=True, ignore_xsi=False, empty_pytype=None, empty_type=None, annotate_xsi=0, annotate_pytype=1)\n\n    Recursively annotates the elements of an XML tree with 'xsi:type'\n    and/or 'py:pytype' attributes.\n\n    If the 'ignore_old' keyword argument is True (the default), current\n    'py:pytype' attributes will be ignored for the type annotation. Set to False\n    if you want reuse existing 'py:pytype' information (iff appropriate for the\n    element text value).\n\n    If the 'ignore_xsi' keyword argument is False (the default), existing\n    'xsi:type' attributes will be used for the type annotation, if they fit the\n    element text values. \n    \n    Note that the mapping from Python types to XSI types is usually ambiguous.\n    Currently, only the first XSI type name in the corresponding PyType\n    definition will be used for annotation.  Thus, you should consider naming\n    the widest type first if you define additional types.\n\n    The default 'py:pytype' annotation of empty elements can be set with the\n    ``empty_pytype`` keyword argument. Pass 'str', for example, to make\n    string values the default.\n\n    The default 'xsi:type' annotation of empty elements can be set with the\n    ``empty_type`` keyword argument.  The default is not to annotate empty\n    elements.  Pass 'string', for example, to make string values the default.\n\n    The keyword arguments 'annotate_xsi' (default: 0) and 'annotate_pytype'\n    (default: 1) control which kind(s) of annotation to use. \n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_25annotate = {"annotate", (PyCFunction)__pyx_pw_4lxml_9objectify_25annotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_24annotate};
static PyObject *__pyx_pw_4lxml_9objectify_25annotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_element_or_tree = 0;
  PyObject *__pyx_v_ignore_old = 0;
  PyObject *__pyx_v_ignore_xsi = 0;
  PyObject *__pyx_v_empty_pytype = 0;
  PyObject *__pyx_v_empty_type = 0;
  PyObject *__pyx_v_annotate_xsi = 0;
  PyObject *__pyx_v_annotate_pytype = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("annotate (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_element_or_tree,&__pyx_n_s_ignore_old,&__pyx_n_s_ignore_xsi,&__pyx_n_s_empty_pytype,&__pyx_n_s_empty_type,&__pyx_n_s_annotate_xsi,&__pyx_n_s_annotate_pytype,0};
    PyObject* values[7] = {0,0,0,0,0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_True));
    values[2] = ((PyObject *)((PyObject *)Py_False));

    /* "lxml/objectify.pyx":1507
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,             # <<<<<<<<<<<<<<
 *              annotate_pytype=1):
 *     u"""annotate(element_or_tree, ignore_old=True, ignore_xsi=False, empty_pytype=None, empty_type=None, annotate_xsi=0, annotate_pytype=1)
 */
    values[3] = ((PyObject *)((PyObject *)Py_None));
    values[4] = ((PyObject *)((PyObject *)Py_None));
    values[5] = ((PyObject *)((PyObject *)__pyx_int_0));
    values[6] = ((PyObject *)((PyObject *)__pyx_int_1));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element_or_tree)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (kw_args > 0 && likely(kw_args <= 6)) {
        Py_ssize_t index;
        for (index = 1; index < 7 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "annotate") < 0)) __PYX_ERR(0, 1506, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_element_or_tree = values[0];
    __pyx_v_ignore_old = values[1];
    __pyx_v_ignore_xsi = values[2];
    __pyx_v_empty_pytype = values[3];
    __pyx_v_empty_type = values[4];
    __pyx_v_annotate_xsi = values[5];
    __pyx_v_annotate_pytype = values[6];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("annotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1506, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.annotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_24annotate(__pyx_self, __pyx_v_element_or_tree, __pyx_v_ignore_old, __pyx_v_ignore_xsi, __pyx_v_empty_pytype, __pyx_v_empty_type, __pyx_v_annotate_xsi, __pyx_v_annotate_pytype);

  /* "lxml/objectify.pyx":1506
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
 *              annotate_pytype=1):
 */

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

static PyObject *__pyx_pf_4lxml_9objectify_24annotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, PyObject *__pyx_v_ignore_old, PyObject *__pyx_v_ignore_xsi, PyObject *__pyx_v_empty_pytype, PyObject *__pyx_v_empty_type, PyObject *__pyx_v_annotate_xsi, PyObject *__pyx_v_annotate_pytype) {
  struct LxmlElement *__pyx_v_element = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_TraceFrameInit(__pyx_codeobj__48)
  __Pyx_RefNannySetupContext("annotate", 0);
  __Pyx_TraceCall("annotate", __pyx_f[0], 1506, 0, __PYX_ERR(0, 1506, __pyx_L1_error));

  /* "lxml/objectify.pyx":1540
 *     """
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,
 *               ignore_old, empty_type, empty_pytype)
 */
  __Pyx_TraceLine(1540,0,__PYX_ERR(0, 1540, __pyx_L1_error))
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1541
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,             # <<<<<<<<<<<<<<
 *               ignore_old, empty_type, empty_pytype)
 * 
 */
  __Pyx_TraceLine(1541,0,__PYX_ERR(0, 1541, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_xsi); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1541, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_pytype); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1541, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1541, __pyx_L1_error)

  /* "lxml/objectify.pyx":1542
 *     element = cetree.rootNodeOrRaise(element_or_tree)
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,
 *               ignore_old, empty_type, empty_pytype)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(1542,0,__PYX_ERR(0, 1542, __pyx_L1_error))
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1542, __pyx_L1_error)

  /* "lxml/objectify.pyx":1541
 *     cdef _Element  element
 *     element = cetree.rootNodeOrRaise(element_or_tree)
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,             # <<<<<<<<<<<<<<
 *               ignore_old, empty_type, empty_pytype)
 * 
 */
  __Pyx_TraceLine(1541,0,__PYX_ERR(0, 1541, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_v_empty_type, __pyx_v_empty_pytype); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1506
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
 *              annotate_pytype=1):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.annotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1545
 * 
 * 
 * cdef _annotate(_Element element, bint annotate_xsi, bint annotate_pytype,             # <<<<<<<<<<<<<<
 *                bint ignore_xsi, bint ignore_pytype,
 *                empty_type_name, empty_pytype_name):
 */

static PyObject *__pyx_f_4lxml_9objectify__annotate(struct LxmlElement *__pyx_v_element, int __pyx_v_annotate_xsi, int __pyx_v_annotate_pytype, int __pyx_v_ignore_xsi, int __pyx_v_ignore_pytype, PyObject *__pyx_v_empty_type_name, PyObject *__pyx_v_empty_pytype_name) {
  struct LxmlDocument *__pyx_v_doc = 0;
  xmlNode *__pyx_v_c_node;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_empty_pytype = 0;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_StrType = 0;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_NoneType = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  xmlNode *__pyx_t_5;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("_annotate", 0);
  __Pyx_TraceCall("_annotate", __pyx_f[0], 1545, 0, __PYX_ERR(0, 1545, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_empty_type_name);
  __Pyx_INCREF(__pyx_v_empty_pytype_name);

  /* "lxml/objectify.pyx":1552
 *     cdef PyType empty_pytype, StrType, NoneType
 * 
 *     if not annotate_xsi and not annotate_pytype:             # <<<<<<<<<<<<<<
 *         return
 * 
 */
  __Pyx_TraceLine(1552,0,__PYX_ERR(0, 1552, __pyx_L1_error))
  __pyx_t_2 = ((!(__pyx_v_annotate_xsi != 0)) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = ((!(__pyx_v_annotate_pytype != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1553
 * 
 *     if not annotate_xsi and not annotate_pytype:
 *         return             # <<<<<<<<<<<<<<
 * 
 *     if empty_type_name is not None:
 */
    __Pyx_TraceLine(1553,0,__PYX_ERR(0, 1553, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "lxml/objectify.pyx":1552
 *     cdef PyType empty_pytype, StrType, NoneType
 * 
 *     if not annotate_xsi and not annotate_pytype:             # <<<<<<<<<<<<<<
 *         return
 * 
 */
  }

  /* "lxml/objectify.pyx":1555
 *         return
 * 
 *     if empty_type_name is not None:             # <<<<<<<<<<<<<<
 *         if isinstance(empty_type_name, bytes):
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 */
  __Pyx_TraceLine(1555,0,__PYX_ERR(0, 1555, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_empty_type_name != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1556
 * 
 *     if empty_type_name is not None:
 *         if isinstance(empty_type_name, bytes):             # <<<<<<<<<<<<<<
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 */
    __Pyx_TraceLine(1556,0,__PYX_ERR(0, 1556, __pyx_L1_error))
    __pyx_t_2 = PyBytes_Check(__pyx_v_empty_type_name); 
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1557
 *     if empty_type_name is not None:
 *         if isinstance(empty_type_name, bytes):
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")             # <<<<<<<<<<<<<<
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 *     elif empty_pytype_name is not None:
 */
      __Pyx_TraceLine(1557,0,__PYX_ERR(0, 1557, __pyx_L1_error))
      if (unlikely(__pyx_v_empty_type_name == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
        __PYX_ERR(0, 1557, __pyx_L1_error)
      }
      __pyx_t_3 = __Pyx_decode_bytes(((PyObject*)__pyx_v_empty_type_name), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1557, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF_SET(__pyx_v_empty_type_name, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1556
 * 
 *     if empty_type_name is not None:
 *         if isinstance(empty_type_name, bytes):             # <<<<<<<<<<<<<<
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 */
    }

    /* "lxml/objectify.pyx":1558
 *         if isinstance(empty_type_name, bytes):
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)             # <<<<<<<<<<<<<<
 *     elif empty_pytype_name is not None:
 *         if isinstance(empty_pytype_name, bytes):
 */
    __Pyx_TraceLine(1558,0,__PYX_ERR(0, 1558, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 1558, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_empty_type_name, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_t_3;
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1555
 *         return
 * 
 *     if empty_type_name is not None:             # <<<<<<<<<<<<<<
 *         if isinstance(empty_type_name, bytes):
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 */
    goto __pyx_L6;
  }

  /* "lxml/objectify.pyx":1559
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 *     elif empty_pytype_name is not None:             # <<<<<<<<<<<<<<
 *         if isinstance(empty_pytype_name, bytes):
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")
 */
  __Pyx_TraceLine(1559,0,__PYX_ERR(0, 1559, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_empty_pytype_name != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1560
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 *     elif empty_pytype_name is not None:
 *         if isinstance(empty_pytype_name, bytes):             # <<<<<<<<<<<<<<
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")
 *         empty_pytype = <PyType>_PYTYPE_DICT.get(empty_pytype_name)
 */
    __Pyx_TraceLine(1560,0,__PYX_ERR(0, 1560, __pyx_L1_error))
    __pyx_t_2 = PyBytes_Check(__pyx_v_empty_pytype_name); 
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1561
 *     elif empty_pytype_name is not None:
 *         if isinstance(empty_pytype_name, bytes):
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")             # <<<<<<<<<<<<<<
 *         empty_pytype = <PyType>_PYTYPE_DICT.get(empty_pytype_name)
 *     else:
 */
      __Pyx_TraceLine(1561,0,__PYX_ERR(0, 1561, __pyx_L1_error))
      if (unlikely(__pyx_v_empty_pytype_name == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
        __PYX_ERR(0, 1561, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_decode_bytes(((PyObject*)__pyx_v_empty_pytype_name), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1561, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_empty_pytype_name, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1560
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 *     elif empty_pytype_name is not None:
 *         if isinstance(empty_pytype_name, bytes):             # <<<<<<<<<<<<<<
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")
 *         empty_pytype = <PyType>_PYTYPE_DICT.get(empty_pytype_name)
 */
    }

    /* "lxml/objectify.pyx":1562
 *         if isinstance(empty_pytype_name, bytes):
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")
 *         empty_pytype = <PyType>_PYTYPE_DICT.get(empty_pytype_name)             # <<<<<<<<<<<<<<
 *     else:
 *         empty_pytype = None
 */
    __Pyx_TraceLine(1562,0,__PYX_ERR(0, 1562, __pyx_L1_error))
    if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 1562, __pyx_L1_error)
    }
    __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_empty_pytype_name, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3);
    __pyx_t_3 = 0;

    /* "lxml/objectify.pyx":1559
 *             empty_type_name = (<bytes>empty_type_name).decode("ascii")
 *         empty_pytype = <PyType>_SCHEMA_TYPE_DICT.get(empty_type_name)
 *     elif empty_pytype_name is not None:             # <<<<<<<<<<<<<<
 *         if isinstance(empty_pytype_name, bytes):
 *             empty_pytype_name = (<bytes>empty_pytype_name).decode("ascii")
 */
    goto __pyx_L6;
  }

  /* "lxml/objectify.pyx":1564
 *         empty_pytype = <PyType>_PYTYPE_DICT.get(empty_pytype_name)
 *     else:
 *         empty_pytype = None             # <<<<<<<<<<<<<<
 * 
 *     StrType  = <PyType>_PYTYPE_DICT.get(u'str')
 */
  __Pyx_TraceLine(1564,0,__PYX_ERR(0, 1564, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(Py_None);
    __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
  }
  __pyx_L6:;

  /* "lxml/objectify.pyx":1566
 *         empty_pytype = None
 * 
 *     StrType  = <PyType>_PYTYPE_DICT.get(u'str')             # <<<<<<<<<<<<<<
 *     NoneType = <PyType>_PYTYPE_DICT.get(u'NoneType')
 * 
 */
  __Pyx_TraceLine(1566,0,__PYX_ERR(0, 1566, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(0, 1566, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_n_u_str, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_t_3;
  __Pyx_INCREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_StrType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1567
 * 
 *     StrType  = <PyType>_PYTYPE_DICT.get(u'str')
 *     NoneType = <PyType>_PYTYPE_DICT.get(u'NoneType')             # <<<<<<<<<<<<<<
 * 
 *     doc = element._doc
 */
  __Pyx_TraceLine(1567,0,__PYX_ERR(0, 1567, __pyx_L1_error))
  if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
    __PYX_ERR(0, 1567, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_n_u_NoneType, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __pyx_t_4;
  __Pyx_INCREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_NoneType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1569
 *     NoneType = <PyType>_PYTYPE_DICT.get(u'NoneType')
 * 
 *     doc = element._doc             # <<<<<<<<<<<<<<
 *     c_node = element._c_node
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
 */
  __Pyx_TraceLine(1569,0,__PYX_ERR(0, 1569, __pyx_L1_error))
  __pyx_t_3 = ((PyObject *)__pyx_v_element->_doc);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1570
 * 
 *     doc = element._doc
 *     c_node = element._c_node             # <<<<<<<<<<<<<<
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
 *     if c_node.type == tree.XML_ELEMENT_NODE:
 */
  __Pyx_TraceLine(1570,0,__PYX_ERR(0, 1570, __pyx_L1_error))
  __pyx_t_5 = __pyx_v_element->_c_node;
  __pyx_v_c_node = __pyx_t_5;

  /* "lxml/objectify.pyx":1571
 *     doc = element._doc
 *     c_node = element._c_node
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)             # <<<<<<<<<<<<<<
 *     if c_node.type == tree.XML_ELEMENT_NODE:
 *         _annotate_element(c_node, doc, annotate_xsi, annotate_pytype,
 */
  __Pyx_TraceLine(1571,0,__PYX_ERR(0, 1571, __pyx_L1_error))
  BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node, __pyx_v_c_node, 1);

  /* "lxml/objectify.pyx":1572
 *     c_node = element._c_node
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
 *     if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
 *         _annotate_element(c_node, doc, annotate_xsi, annotate_pytype,
 *                           ignore_xsi, ignore_pytype,
 */
  __Pyx_TraceLine(1572,0,__PYX_ERR(0, 1572, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1573
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
 *     if c_node.type == tree.XML_ELEMENT_NODE:
 *         _annotate_element(c_node, doc, annotate_xsi, annotate_pytype,             # <<<<<<<<<<<<<<
 *                           ignore_xsi, ignore_pytype,
 *                           empty_type_name, empty_pytype, StrType, NoneType)
 */
    __Pyx_TraceLine(1573,0,__PYX_ERR(0, 1573, __pyx_L1_error))
    __pyx_t_6 = __pyx_f_4lxml_9objectify__annotate_element(__pyx_v_c_node, __pyx_v_doc, __pyx_v_annotate_xsi, __pyx_v_annotate_pytype, __pyx_v_ignore_xsi, __pyx_v_ignore_pytype, __pyx_v_empty_type_name, __pyx_v_empty_pytype, __pyx_v_StrType, __pyx_v_NoneType); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1573, __pyx_L1_error)

    /* "lxml/objectify.pyx":1572
 *     c_node = element._c_node
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
 *     if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
 *         _annotate_element(c_node, doc, annotate_xsi, annotate_pytype,
 *                           ignore_xsi, ignore_pytype,
 */
  }

  /* "lxml/objectify.pyx":1576
 *                           ignore_xsi, ignore_pytype,
 *                           empty_type_name, empty_pytype, StrType, NoneType)
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)             # <<<<<<<<<<<<<<
 * 
 * cdef int _annotate_element(tree.xmlNode* c_node, _Document doc,
 */
  __Pyx_TraceLine(1576,0,__PYX_ERR(0, 1576, __pyx_L1_error))
  END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);

  /* "lxml/objectify.pyx":1545
 * 
 * 
 * cdef _annotate(_Element element, bint annotate_xsi, bint annotate_pytype,             # <<<<<<<<<<<<<<
 *                bint ignore_xsi, bint ignore_pytype,
 *                empty_type_name, empty_pytype_name):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("lxml.objectify._annotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_doc);
  __Pyx_XDECREF((PyObject *)__pyx_v_empty_pytype);
  __Pyx_XDECREF((PyObject *)__pyx_v_StrType);
  __Pyx_XDECREF((PyObject *)__pyx_v_NoneType);
  __Pyx_XDECREF(__pyx_v_empty_type_name);
  __Pyx_XDECREF(__pyx_v_empty_pytype_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1578
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
 * 
 * cdef int _annotate_element(tree.xmlNode* c_node, _Document doc,             # <<<<<<<<<<<<<<
 *                            bint annotate_xsi, bint annotate_pytype,
 *                            bint ignore_xsi, bint ignore_pytype,
 */

static int __pyx_f_4lxml_9objectify__annotate_element(xmlNode *__pyx_v_c_node, struct LxmlDocument *__pyx_v_doc, int __pyx_v_annotate_xsi, int __pyx_v_annotate_pytype, int __pyx_v_ignore_xsi, int __pyx_v_ignore_pytype, PyObject *__pyx_v_empty_type_name, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_empty_pytype, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_StrType, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_NoneType) {
  xmlNs *__pyx_v_c_ns;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_pytype = 0;
  PyObject *__pyx_v_typename = NULL;
  long __pyx_v_istree;
  PyObject *__pyx_v_prefix = NULL;
  PyObject *__pyx_v_old_pytypename = NULL;
  PyObject *__pyx_v_typename_utf8 = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_pytype_name = NULL;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  __Pyx_RefNannySetupContext("_annotate_element", 0);
  __Pyx_TraceCall("_annotate_element", __pyx_f[0], 1578, 0, __PYX_ERR(0, 1578, __pyx_L1_error));

  /* "lxml/objectify.pyx":1584
 *                            PyType StrType, PyType NoneType) except -1:
 *     cdef tree.xmlNs*   c_ns
 *     cdef PyType pytype = None             # <<<<<<<<<<<<<<
 *     typename = None
 *     istree = 0
 */
  __Pyx_TraceLine(1584,0,__PYX_ERR(0, 1584, __pyx_L1_error))
  __Pyx_INCREF(Py_None);
  __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);

  /* "lxml/objectify.pyx":1585
 *     cdef tree.xmlNs*   c_ns
 *     cdef PyType pytype = None
 *     typename = None             # <<<<<<<<<<<<<<
 *     istree = 0
 * 
 */
  __Pyx_TraceLine(1585,0,__PYX_ERR(0, 1585, __pyx_L1_error))
  __Pyx_INCREF(Py_None);
  __pyx_v_typename = Py_None;

  /* "lxml/objectify.pyx":1586
 *     cdef PyType pytype = None
 *     typename = None
 *     istree = 0             # <<<<<<<<<<<<<<
 * 
 *     # if element is defined as xsi:nil, represent it as None
 */
  __Pyx_TraceLine(1586,0,__PYX_ERR(0, 1586, __pyx_L1_error))
  __pyx_v_istree = 0;

  /* "lxml/objectify.pyx":1589
 * 
 *     # if element is defined as xsi:nil, represent it as None
 *     if cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil") == "true":
 *         pytype = NoneType
 */
  __Pyx_TraceLine(1589,0,__PYX_ERR(0, 1589, __pyx_L1_error))
  __pyx_t_1 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"nil")))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_true, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1590, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1591
 *     if cetree.attributeValueFromNsName(
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil") == "true":
 *         pytype = NoneType             # <<<<<<<<<<<<<<
 * 
 *     if pytype is None and not ignore_xsi:
 */
    __Pyx_TraceLine(1591,0,__PYX_ERR(0, 1591, __pyx_L1_error))
    __Pyx_INCREF(((PyObject *)__pyx_v_NoneType));
    __Pyx_DECREF_SET(__pyx_v_pytype, __pyx_v_NoneType);

    /* "lxml/objectify.pyx":1589
 * 
 *     # if element is defined as xsi:nil, represent it as None
 *     if cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *         c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"nil") == "true":
 *         pytype = NoneType
 */
  }

  /* "lxml/objectify.pyx":1593
 *         pytype = NoneType
 * 
 *     if pytype is None and not ignore_xsi:             # <<<<<<<<<<<<<<
 *         # check that old xsi type value is valid
 *         typename = cetree.attributeValueFromNsName(
 */
  __Pyx_TraceLine(1593,0,__PYX_ERR(0, 1593, __pyx_L1_error))
  __pyx_t_3 = (((PyObject *)__pyx_v_pytype) == Py_None);
  __pyx_t_4 = (__pyx_t_3 != 0);
  if (__pyx_t_4) {
  } else {
    __pyx_t_2 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = ((!(__pyx_v_ignore_xsi != 0)) != 0);
  __pyx_t_2 = __pyx_t_4;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1595
 *     if pytype is None and not ignore_xsi:
 *         # check that old xsi type value is valid
 *         typename = cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *             c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 *         if typename is not None:
 */
    __Pyx_TraceLine(1595,0,__PYX_ERR(0, 1595, __pyx_L1_error))
    __pyx_t_1 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"type")))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_typename, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1597
 *         typename = cetree.attributeValueFromNsName(
 *             c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 *         if typename is not None:             # <<<<<<<<<<<<<<
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:
 */
    __Pyx_TraceLine(1597,0,__PYX_ERR(0, 1597, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_typename != Py_None);
    __pyx_t_4 = (__pyx_t_2 != 0);
    if (__pyx_t_4) {

      /* "lxml/objectify.pyx":1598
 *             c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 *         if typename is not None:
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)             # <<<<<<<<<<<<<<
 *             if pytype is None and u':' in typename:
 *                 prefix, typename = typename.split(u':', 1)
 */
      __Pyx_TraceLine(1598,0,__PYX_ERR(0, 1598, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 1598, __pyx_L1_error)
      }
      __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_typename, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1598, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_5 = __pyx_t_1;
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_5));
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1599
 *         if typename is not None:
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:             # <<<<<<<<<<<<<<
 *                 prefix, typename = typename.split(u':', 1)
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 */
      __Pyx_TraceLine(1599,0,__PYX_ERR(0, 1599, __pyx_L1_error))
      __pyx_t_2 = (((PyObject *)__pyx_v_pytype) == Py_None);
      __pyx_t_3 = (__pyx_t_2 != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_4 = __pyx_t_3;
        goto __pyx_L9_bool_binop_done;
      }
      __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__44, __pyx_v_typename, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1599, __pyx_L1_error)
      __pyx_t_2 = (__pyx_t_3 != 0);
      __pyx_t_4 = __pyx_t_2;
      __pyx_L9_bool_binop_done:;
      if (__pyx_t_4) {

        /* "lxml/objectify.pyx":1600
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:
 *                 prefix, typename = typename.split(u':', 1)             # <<<<<<<<<<<<<<
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is not None and pytype is not StrType:
 */
        __Pyx_TraceLine(1600,0,__PYX_ERR(0, 1600, __pyx_L1_error))
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_typename, __pyx_n_s_split); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1600, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1600, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        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, 1600, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_6 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          #else
          __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1600, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1600, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          #endif
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1600, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
          index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_5);
          index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L11_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_6);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(0, 1600, __pyx_L1_error)
          __pyx_t_8 = NULL;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          goto __pyx_L12_unpacking_done;
          __pyx_L11_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_8 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1600, __pyx_L1_error)
          __pyx_L12_unpacking_done:;
        }
        __pyx_v_prefix = __pyx_t_5;
        __pyx_t_5 = 0;
        __Pyx_DECREF_SET(__pyx_v_typename, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "lxml/objectify.pyx":1601
 *             if pytype is None and u':' in typename:
 *                 prefix, typename = typename.split(u':', 1)
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)             # <<<<<<<<<<<<<<
 *             if pytype is not None and pytype is not StrType:
 *                 # StrType does not have a typecheck but is the default
 */
        __Pyx_TraceLine(1601,0,__PYX_ERR(0, 1601, __pyx_L1_error))
        if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(0, 1601, __pyx_L1_error)
        }
        __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_typename, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1601, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_t_6 = __pyx_t_1;
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "lxml/objectify.pyx":1599
 *         if typename is not None:
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:             # <<<<<<<<<<<<<<
 *                 prefix, typename = typename.split(u':', 1)
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 */
      }

      /* "lxml/objectify.pyx":1602
 *                 prefix, typename = typename.split(u':', 1)
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is not None and pytype is not StrType:             # <<<<<<<<<<<<<<
 *                 # StrType does not have a typecheck but is the default
 *                 # anyway, so just accept it if given as type
 */
      __Pyx_TraceLine(1602,0,__PYX_ERR(0, 1602, __pyx_L1_error))
      __pyx_t_2 = (((PyObject *)__pyx_v_pytype) != Py_None);
      __pyx_t_3 = (__pyx_t_2 != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_4 = __pyx_t_3;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_3 = (__pyx_v_pytype != __pyx_v_StrType);
      __pyx_t_2 = (__pyx_t_3 != 0);
      __pyx_t_4 = __pyx_t_2;
      __pyx_L14_bool_binop_done:;
      if (__pyx_t_4) {

        /* "lxml/objectify.pyx":1606
 *                 # anyway, so just accept it if given as type
 *                 # information
 *                 pytype = _check_type(c_node, pytype)             # <<<<<<<<<<<<<<
 *                 if pytype is None:
 *                     typename = None
 */
        __Pyx_TraceLine(1606,0,__PYX_ERR(0, 1606, __pyx_L1_error))
        __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1606, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_6));
        __pyx_t_6 = 0;

        /* "lxml/objectify.pyx":1607
 *                 # information
 *                 pytype = _check_type(c_node, pytype)
 *                 if pytype is None:             # <<<<<<<<<<<<<<
 *                     typename = None
 * 
 */
        __Pyx_TraceLine(1607,0,__PYX_ERR(0, 1607, __pyx_L1_error))
        __pyx_t_4 = (((PyObject *)__pyx_v_pytype) == Py_None);
        __pyx_t_2 = (__pyx_t_4 != 0);
        if (__pyx_t_2) {

          /* "lxml/objectify.pyx":1608
 *                 pytype = _check_type(c_node, pytype)
 *                 if pytype is None:
 *                     typename = None             # <<<<<<<<<<<<<<
 * 
 *     if pytype is None and not ignore_pytype:
 */
          __Pyx_TraceLine(1608,0,__PYX_ERR(0, 1608, __pyx_L1_error))
          __Pyx_INCREF(Py_None);
          __Pyx_DECREF_SET(__pyx_v_typename, Py_None);

          /* "lxml/objectify.pyx":1607
 *                 # information
 *                 pytype = _check_type(c_node, pytype)
 *                 if pytype is None:             # <<<<<<<<<<<<<<
 *                     typename = None
 * 
 */
        }

        /* "lxml/objectify.pyx":1602
 *                 prefix, typename = typename.split(u':', 1)
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is not None and pytype is not StrType:             # <<<<<<<<<<<<<<
 *                 # StrType does not have a typecheck but is the default
 *                 # anyway, so just accept it if given as type
 */
      }

      /* "lxml/objectify.pyx":1597
 *         typename = cetree.attributeValueFromNsName(
 *             c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 *         if typename is not None:             # <<<<<<<<<<<<<<
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:
 */
    }

    /* "lxml/objectify.pyx":1593
 *         pytype = NoneType
 * 
 *     if pytype is None and not ignore_xsi:             # <<<<<<<<<<<<<<
 *         # check that old xsi type value is valid
 *         typename = cetree.attributeValueFromNsName(
 */
  }

  /* "lxml/objectify.pyx":1610
 *                     typename = None
 * 
 *     if pytype is None and not ignore_pytype:             # <<<<<<<<<<<<<<
 *         # check that old pytype value is valid
 *         old_pytypename = cetree.attributeValueFromNsName(
 */
  __Pyx_TraceLine(1610,0,__PYX_ERR(0, 1610, __pyx_L1_error))
  __pyx_t_4 = (((PyObject *)__pyx_v_pytype) == Py_None);
  __pyx_t_3 = (__pyx_t_4 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L18_bool_binop_done;
  }
  __pyx_t_3 = ((!(__pyx_v_ignore_pytype != 0)) != 0);
  __pyx_t_2 = __pyx_t_3;
  __pyx_L18_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1612
 *     if pytype is None and not ignore_pytype:
 *         # check that old pytype value is valid
 *         old_pytypename = cetree.attributeValueFromNsName(             # <<<<<<<<<<<<<<
 *             c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         if old_pytypename is not None:
 */
    __Pyx_TraceLine(1612,0,__PYX_ERR(0, 1612, __pyx_L1_error))
    __pyx_t_6 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1612, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_v_old_pytypename = __pyx_t_6;
    __pyx_t_6 = 0;

    /* "lxml/objectify.pyx":1614
 *         old_pytypename = cetree.attributeValueFromNsName(
 *             c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         if old_pytypename is not None:             # <<<<<<<<<<<<<<
 *             if old_pytypename == TREE_PYTYPE_NAME:
 *                 if not cetree.hasChild(c_node):
 */
    __Pyx_TraceLine(1614,0,__PYX_ERR(0, 1614, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_old_pytypename != Py_None);
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1615
 *             c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         if old_pytypename is not None:
 *             if old_pytypename == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *                 if not cetree.hasChild(c_node):
 *                     # only case where we should keep it,
 */
      __Pyx_TraceLine(1615,0,__PYX_ERR(0, 1615, __pyx_L1_error))
      __pyx_t_3 = (__Pyx_PyUnicode_Equals(__pyx_v_old_pytypename, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1615, __pyx_L1_error)
      if (__pyx_t_3) {

        /* "lxml/objectify.pyx":1616
 *         if old_pytypename is not None:
 *             if old_pytypename == TREE_PYTYPE_NAME:
 *                 if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *                     # only case where we should keep it,
 *                     # everything else is clear enough
 */
        __Pyx_TraceLine(1616,0,__PYX_ERR(0, 1616, __pyx_L1_error))
        __pyx_t_3 = ((!(hasChild(__pyx_v_c_node) != 0)) != 0);
        if (__pyx_t_3) {

          /* "lxml/objectify.pyx":1619
 *                     # only case where we should keep it,
 *                     # everything else is clear enough
 *                     pytype = TREE_PYTYPE             # <<<<<<<<<<<<<<
 *             else:
 *                 if old_pytypename == 'none':
 */
          __Pyx_TraceLine(1619,0,__PYX_ERR(0, 1619, __pyx_L1_error))
          __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify_TREE_PYTYPE));
          __Pyx_DECREF_SET(__pyx_v_pytype, __pyx_v_4lxml_9objectify_TREE_PYTYPE);

          /* "lxml/objectify.pyx":1616
 *         if old_pytypename is not None:
 *             if old_pytypename == TREE_PYTYPE_NAME:
 *                 if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *                     # only case where we should keep it,
 *                     # everything else is clear enough
 */
        }

        /* "lxml/objectify.pyx":1615
 *             c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         if old_pytypename is not None:
 *             if old_pytypename == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
 *                 if not cetree.hasChild(c_node):
 *                     # only case where we should keep it,
 */
        goto __pyx_L21;
      }

      /* "lxml/objectify.pyx":1621
 *                     pytype = TREE_PYTYPE
 *             else:
 *                 if old_pytypename == 'none':             # <<<<<<<<<<<<<<
 *                     # transition from lxml 1.x
 *                     old_pytypename = "NoneType"
 */
      __Pyx_TraceLine(1621,0,__PYX_ERR(0, 1621, __pyx_L1_error))
      /*else*/ {
        __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_old_pytypename, __pyx_n_s_none, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1621, __pyx_L1_error)
        if (__pyx_t_3) {

          /* "lxml/objectify.pyx":1623
 *                 if old_pytypename == 'none':
 *                     # transition from lxml 1.x
 *                     old_pytypename = "NoneType"             # <<<<<<<<<<<<<<
 *                 pytype = <PyType>_PYTYPE_DICT.get(old_pytypename)
 *                 if pytype is not None and pytype is not StrType:
 */
          __Pyx_TraceLine(1623,0,__PYX_ERR(0, 1623, __pyx_L1_error))
          __Pyx_INCREF(__pyx_n_s_NoneType);
          __Pyx_DECREF_SET(__pyx_v_old_pytypename, __pyx_n_s_NoneType);

          /* "lxml/objectify.pyx":1621
 *                     pytype = TREE_PYTYPE
 *             else:
 *                 if old_pytypename == 'none':             # <<<<<<<<<<<<<<
 *                     # transition from lxml 1.x
 *                     old_pytypename = "NoneType"
 */
        }

        /* "lxml/objectify.pyx":1624
 *                     # transition from lxml 1.x
 *                     old_pytypename = "NoneType"
 *                 pytype = <PyType>_PYTYPE_DICT.get(old_pytypename)             # <<<<<<<<<<<<<<
 *                 if pytype is not None and pytype is not StrType:
 *                     # StrType does not have a typecheck but is the
 */
        __Pyx_TraceLine(1624,0,__PYX_ERR(0, 1624, __pyx_L1_error))
        if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(0, 1624, __pyx_L1_error)
        }
        __pyx_t_6 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_old_pytypename, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1624, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_1 = __pyx_t_6;
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_1));
        __pyx_t_1 = 0;

        /* "lxml/objectify.pyx":1625
 *                     old_pytypename = "NoneType"
 *                 pytype = <PyType>_PYTYPE_DICT.get(old_pytypename)
 *                 if pytype is not None and pytype is not StrType:             # <<<<<<<<<<<<<<
 *                     # StrType does not have a typecheck but is the
 *                     # default anyway, so just accept it if given as
 */
        __Pyx_TraceLine(1625,0,__PYX_ERR(0, 1625, __pyx_L1_error))
        __pyx_t_2 = (((PyObject *)__pyx_v_pytype) != Py_None);
        __pyx_t_4 = (__pyx_t_2 != 0);
        if (__pyx_t_4) {
        } else {
          __pyx_t_3 = __pyx_t_4;
          goto __pyx_L25_bool_binop_done;
        }
        __pyx_t_4 = (__pyx_v_pytype != __pyx_v_StrType);
        __pyx_t_2 = (__pyx_t_4 != 0);
        __pyx_t_3 = __pyx_t_2;
        __pyx_L25_bool_binop_done:;
        if (__pyx_t_3) {

          /* "lxml/objectify.pyx":1629
 *                     # default anyway, so just accept it if given as
 *                     # type information
 *                     pytype = _check_type(c_node, pytype)             # <<<<<<<<<<<<<<
 * 
 *     if pytype is None:
 */
          __Pyx_TraceLine(1629,0,__PYX_ERR(0, 1629, __pyx_L1_error))
          __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1629, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_1));
          __pyx_t_1 = 0;

          /* "lxml/objectify.pyx":1625
 *                     old_pytypename = "NoneType"
 *                 pytype = <PyType>_PYTYPE_DICT.get(old_pytypename)
 *                 if pytype is not None and pytype is not StrType:             # <<<<<<<<<<<<<<
 *                     # StrType does not have a typecheck but is the
 *                     # default anyway, so just accept it if given as
 */
        }
      }
      __pyx_L21:;

      /* "lxml/objectify.pyx":1614
 *         old_pytypename = cetree.attributeValueFromNsName(
 *             c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         if old_pytypename is not None:             # <<<<<<<<<<<<<<
 *             if old_pytypename == TREE_PYTYPE_NAME:
 *                 if not cetree.hasChild(c_node):
 */
    }

    /* "lxml/objectify.pyx":1610
 *                     typename = None
 * 
 *     if pytype is None and not ignore_pytype:             # <<<<<<<<<<<<<<
 *         # check that old pytype value is valid
 *         old_pytypename = cetree.attributeValueFromNsName(
 */
  }

  /* "lxml/objectify.pyx":1631
 *                     pytype = _check_type(c_node, pytype)
 * 
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         # try to guess type
 *         if not cetree.hasChild(c_node):
 */
  __Pyx_TraceLine(1631,0,__PYX_ERR(0, 1631, __pyx_L1_error))
  __pyx_t_3 = (((PyObject *)__pyx_v_pytype) == Py_None);
  __pyx_t_2 = (__pyx_t_3 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1633
 *     if pytype is None:
 *         # try to guess type
 *         if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *             # element has no children => data class
 *             pytype = _guessPyType(textOf(c_node), StrType)
 */
    __Pyx_TraceLine(1633,0,__PYX_ERR(0, 1633, __pyx_L1_error))
    __pyx_t_2 = ((!(hasChild(__pyx_v_c_node) != 0)) != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1635
 *         if not cetree.hasChild(c_node):
 *             # element has no children => data class
 *             pytype = _guessPyType(textOf(c_node), StrType)             # <<<<<<<<<<<<<<
 *         else:
 *             istree = 1
 */
      __Pyx_TraceLine(1635,0,__PYX_ERR(0, 1635, __pyx_L1_error))
      __pyx_t_1 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1635, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_9objectify__guessPyType(__pyx_t_1, __pyx_v_StrType)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1635, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_pytype, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_6));
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":1633
 *     if pytype is None:
 *         # try to guess type
 *         if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
 *             # element has no children => data class
 *             pytype = _guessPyType(textOf(c_node), StrType)
 */
      goto __pyx_L28;
    }

    /* "lxml/objectify.pyx":1637
 *             pytype = _guessPyType(textOf(c_node), StrType)
 *         else:
 *             istree = 1             # <<<<<<<<<<<<<<
 * 
 *     if pytype is None:
 */
    __Pyx_TraceLine(1637,0,__PYX_ERR(0, 1637, __pyx_L1_error))
    /*else*/ {
      __pyx_v_istree = 1;
    }
    __pyx_L28:;

    /* "lxml/objectify.pyx":1631
 *                     pytype = _check_type(c_node, pytype)
 * 
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         # try to guess type
 *         if not cetree.hasChild(c_node):
 */
  }

  /* "lxml/objectify.pyx":1639
 *             istree = 1
 * 
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         # use default type for empty elements
 *         if cetree.hasText(c_node):
 */
  __Pyx_TraceLine(1639,0,__PYX_ERR(0, 1639, __pyx_L1_error))
  __pyx_t_2 = (((PyObject *)__pyx_v_pytype) == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1641
 *     if pytype is None:
 *         # use default type for empty elements
 *         if cetree.hasText(c_node):             # <<<<<<<<<<<<<<
 *             pytype = StrType
 *         else:
 */
    __Pyx_TraceLine(1641,0,__PYX_ERR(0, 1641, __pyx_L1_error))
    __pyx_t_3 = (hasText(__pyx_v_c_node) != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1642
 *         # use default type for empty elements
 *         if cetree.hasText(c_node):
 *             pytype = StrType             # <<<<<<<<<<<<<<
 *         else:
 *             pytype = empty_pytype
 */
      __Pyx_TraceLine(1642,0,__PYX_ERR(0, 1642, __pyx_L1_error))
      __Pyx_INCREF(((PyObject *)__pyx_v_StrType));
      __Pyx_DECREF_SET(__pyx_v_pytype, __pyx_v_StrType);

      /* "lxml/objectify.pyx":1641
 *     if pytype is None:
 *         # use default type for empty elements
 *         if cetree.hasText(c_node):             # <<<<<<<<<<<<<<
 *             pytype = StrType
 *         else:
 */
      goto __pyx_L30;
    }

    /* "lxml/objectify.pyx":1644
 *             pytype = StrType
 *         else:
 *             pytype = empty_pytype             # <<<<<<<<<<<<<<
 *             if typename is None:
 *                 typename = empty_type_name
 */
    __Pyx_TraceLine(1644,0,__PYX_ERR(0, 1644, __pyx_L1_error))
    /*else*/ {
      __Pyx_INCREF(((PyObject *)__pyx_v_empty_pytype));
      __Pyx_DECREF_SET(__pyx_v_pytype, __pyx_v_empty_pytype);

      /* "lxml/objectify.pyx":1645
 *         else:
 *             pytype = empty_pytype
 *             if typename is None:             # <<<<<<<<<<<<<<
 *                 typename = empty_type_name
 * 
 */
      __Pyx_TraceLine(1645,0,__PYX_ERR(0, 1645, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v_typename == Py_None);
      __pyx_t_2 = (__pyx_t_3 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1646
 *             pytype = empty_pytype
 *             if typename is None:
 *                 typename = empty_type_name             # <<<<<<<<<<<<<<
 * 
 *     if pytype is not None:
 */
        __Pyx_TraceLine(1646,0,__PYX_ERR(0, 1646, __pyx_L1_error))
        __Pyx_INCREF(__pyx_v_empty_type_name);
        __Pyx_DECREF_SET(__pyx_v_typename, __pyx_v_empty_type_name);

        /* "lxml/objectify.pyx":1645
 *         else:
 *             pytype = empty_pytype
 *             if typename is None:             # <<<<<<<<<<<<<<
 *                 typename = empty_type_name
 * 
 */
      }
    }
    __pyx_L30:;

    /* "lxml/objectify.pyx":1639
 *             istree = 1
 * 
 *     if pytype is None:             # <<<<<<<<<<<<<<
 *         # use default type for empty elements
 *         if cetree.hasText(c_node):
 */
  }

  /* "lxml/objectify.pyx":1648
 *                 typename = empty_type_name
 * 
 *     if pytype is not None:             # <<<<<<<<<<<<<<
 *         if typename is None:
 *             if not istree:
 */
  __Pyx_TraceLine(1648,0,__PYX_ERR(0, 1648, __pyx_L1_error))
  __pyx_t_2 = (((PyObject *)__pyx_v_pytype) != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1649
 * 
 *     if pytype is not None:
 *         if typename is None:             # <<<<<<<<<<<<<<
 *             if not istree:
 *                 if pytype._schema_types:
 */
    __Pyx_TraceLine(1649,0,__PYX_ERR(0, 1649, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_typename == Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1650
 *     if pytype is not None:
 *         if typename is None:
 *             if not istree:             # <<<<<<<<<<<<<<
 *                 if pytype._schema_types:
 *                     # pytype->xsi:type is a 1:n mapping
 */
      __Pyx_TraceLine(1650,0,__PYX_ERR(0, 1650, __pyx_L1_error))
      __pyx_t_2 = ((!(__pyx_v_istree != 0)) != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1651
 *         if typename is None:
 *             if not istree:
 *                 if pytype._schema_types:             # <<<<<<<<<<<<<<
 *                     # pytype->xsi:type is a 1:n mapping
 *                     # simply take the first
 */
        __Pyx_TraceLine(1651,0,__PYX_ERR(0, 1651, __pyx_L1_error))
        __pyx_t_2 = (__pyx_v_pytype->_schema_types != Py_None)&&(PyList_GET_SIZE(__pyx_v_pytype->_schema_types) != 0);
        if (__pyx_t_2) {

          /* "lxml/objectify.pyx":1654
 *                     # pytype->xsi:type is a 1:n mapping
 *                     # simply take the first
 *                     typename = pytype._schema_types[0]             # <<<<<<<<<<<<<<
 *         elif typename not in pytype._schema_types:
 *             typename = pytype._schema_types[0]
 */
          __Pyx_TraceLine(1654,0,__PYX_ERR(0, 1654, __pyx_L1_error))
          if (unlikely(__pyx_v_pytype->_schema_types == Py_None)) {
            PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
            __PYX_ERR(0, 1654, __pyx_L1_error)
          }
          __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_pytype->_schema_types, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1654, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF_SET(__pyx_v_typename, __pyx_t_6);
          __pyx_t_6 = 0;

          /* "lxml/objectify.pyx":1651
 *         if typename is None:
 *             if not istree:
 *                 if pytype._schema_types:             # <<<<<<<<<<<<<<
 *                     # pytype->xsi:type is a 1:n mapping
 *                     # simply take the first
 */
        }

        /* "lxml/objectify.pyx":1650
 *     if pytype is not None:
 *         if typename is None:
 *             if not istree:             # <<<<<<<<<<<<<<
 *                 if pytype._schema_types:
 *                     # pytype->xsi:type is a 1:n mapping
 */
      }

      /* "lxml/objectify.pyx":1649
 * 
 *     if pytype is not None:
 *         if typename is None:             # <<<<<<<<<<<<<<
 *             if not istree:
 *                 if pytype._schema_types:
 */
      goto __pyx_L33;
    }

    /* "lxml/objectify.pyx":1655
 *                     # simply take the first
 *                     typename = pytype._schema_types[0]
 *         elif typename not in pytype._schema_types:             # <<<<<<<<<<<<<<
 *             typename = pytype._schema_types[0]
 * 
 */
    __Pyx_TraceLine(1655,0,__PYX_ERR(0, 1655, __pyx_L1_error))
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_v_typename, __pyx_v_pytype->_schema_types, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1655, __pyx_L1_error)
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1656
 *                     typename = pytype._schema_types[0]
 *         elif typename not in pytype._schema_types:
 *             typename = pytype._schema_types[0]             # <<<<<<<<<<<<<<
 * 
 *     if annotate_xsi:
 */
      __Pyx_TraceLine(1656,0,__PYX_ERR(0, 1656, __pyx_L1_error))
      if (unlikely(__pyx_v_pytype->_schema_types == Py_None)) {
        PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
        __PYX_ERR(0, 1656, __pyx_L1_error)
      }
      __pyx_t_6 = __Pyx_GetItemInt_List(__pyx_v_pytype->_schema_types, 0, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1656, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF_SET(__pyx_v_typename, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":1655
 *                     # simply take the first
 *                     typename = pytype._schema_types[0]
 *         elif typename not in pytype._schema_types:             # <<<<<<<<<<<<<<
 *             typename = pytype._schema_types[0]
 * 
 */
    }
    __pyx_L33:;

    /* "lxml/objectify.pyx":1648
 *                 typename = empty_type_name
 * 
 *     if pytype is not None:             # <<<<<<<<<<<<<<
 *         if typename is None:
 *             if not istree:
 */
  }

  /* "lxml/objectify.pyx":1658
 *             typename = pytype._schema_types[0]
 * 
 *     if annotate_xsi:             # <<<<<<<<<<<<<<
 *         if typename is None or istree:
 *             cetree.delAttributeFromNsName(
 */
  __Pyx_TraceLine(1658,0,__PYX_ERR(0, 1658, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v_annotate_xsi != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1659
 * 
 *     if annotate_xsi:
 *         if typename is None or istree:             # <<<<<<<<<<<<<<
 *             cetree.delAttributeFromNsName(
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 */
    __Pyx_TraceLine(1659,0,__PYX_ERR(0, 1659, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_typename == Py_None);
    __pyx_t_4 = (__pyx_t_2 != 0);
    if (!__pyx_t_4) {
    } else {
      __pyx_t_3 = __pyx_t_4;
      goto __pyx_L38_bool_binop_done;
    }
    __pyx_t_4 = (__pyx_v_istree != 0);
    __pyx_t_3 = __pyx_t_4;
    __pyx_L38_bool_binop_done:;
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1660
 *     if annotate_xsi:
 *         if typename is None or istree:
 *             cetree.delAttributeFromNsName(             # <<<<<<<<<<<<<<
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 *         else:
 */
      __Pyx_TraceLine(1660,0,__PYX_ERR(0, 1660, __pyx_L1_error))
      (void)(delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"type")))));

      /* "lxml/objectify.pyx":1659
 * 
 *     if annotate_xsi:
 *         if typename is None or istree:             # <<<<<<<<<<<<<<
 *             cetree.delAttributeFromNsName(
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>"type")
 */
      goto __pyx_L37;
    }

    /* "lxml/objectify.pyx":1664
 *         else:
 *             # update or create attribute
 *             typename_utf8 = cetree.utf8(typename)             # <<<<<<<<<<<<<<
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 */
    __Pyx_TraceLine(1664,0,__PYX_ERR(0, 1664, __pyx_L1_error))
    /*else*/ {
      __pyx_t_6 = utf8(__pyx_v_typename); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1664, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_v_typename_utf8 = __pyx_t_6;
      __pyx_t_6 = 0;

      /* "lxml/objectify.pyx":1665
 *             # update or create attribute
 *             typename_utf8 = cetree.utf8(typename)
 *             c_ns = cetree.findOrBuildNodeNsPrefix(             # <<<<<<<<<<<<<<
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 *             if c_ns is not NULL:
 */
      __Pyx_TraceLine(1665,0,__PYX_ERR(0, 1665, __pyx_L1_error))
      __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_NS, ((unsigned char *)((unsigned char *)((char const *)"xsd"))));

      /* "lxml/objectify.pyx":1667
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 *             if c_ns is not NULL:             # <<<<<<<<<<<<<<
 *                 if b':' in typename_utf8:
 *                     prefix, name = typename_utf8.split(b':', 1)
 */
      __Pyx_TraceLine(1667,0,__PYX_ERR(0, 1667, __pyx_L1_error))
      __pyx_t_3 = ((__pyx_v_c_ns != NULL) != 0);
      if (__pyx_t_3) {

        /* "lxml/objectify.pyx":1668
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 *             if c_ns is not NULL:
 *                 if b':' in typename_utf8:             # <<<<<<<<<<<<<<
 *                     prefix, name = typename_utf8.split(b':', 1)
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 */
        __Pyx_TraceLine(1668,0,__PYX_ERR(0, 1668, __pyx_L1_error))
        __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__44, __pyx_v_typename_utf8, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1668, __pyx_L1_error)
        __pyx_t_4 = (__pyx_t_3 != 0);
        if (__pyx_t_4) {

          /* "lxml/objectify.pyx":1669
 *             if c_ns is not NULL:
 *                 if b':' in typename_utf8:
 *                     prefix, name = typename_utf8.split(b':', 1)             # <<<<<<<<<<<<<<
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 *                         typename_utf8 = name
 */
          __Pyx_TraceLine(1669,0,__PYX_ERR(0, 1669, __pyx_L1_error))
          __pyx_t_6 = __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyBytes_Type_split, __pyx_v_typename_utf8, __pyx_kp_b__44, __pyx_int_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1669, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) {
            PyObject* sequence = __pyx_t_6;
            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, 1669, __pyx_L1_error)
            }
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            if (likely(PyTuple_CheckExact(sequence))) {
              __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); 
              __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1); 
            } else {
              __pyx_t_1 = PyList_GET_ITEM(sequence, 0); 
              __pyx_t_5 = PyList_GET_ITEM(sequence, 1); 
            }
            __Pyx_INCREF(__pyx_t_1);
            __Pyx_INCREF(__pyx_t_5);
            #else
            __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1669, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_1);
            __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1669, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          } else {
            Py_ssize_t index = -1;
            __pyx_t_7 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1669, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
            index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_1)) goto __pyx_L42_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_1);
            index = 1; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L42_unpacking_failed;
            __Pyx_GOTREF(__pyx_t_5);
            if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(0, 1669, __pyx_L1_error)
            __pyx_t_8 = NULL;
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            goto __pyx_L43_unpacking_done;
            __pyx_L42_unpacking_failed:;
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            __pyx_t_8 = NULL;
            if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
            __PYX_ERR(0, 1669, __pyx_L1_error)
            __pyx_L43_unpacking_done:;
          }
          __Pyx_XDECREF_SET(__pyx_v_prefix, __pyx_t_1);
          __pyx_t_1 = 0;
          __pyx_v_name = __pyx_t_5;
          __pyx_t_5 = 0;

          /* "lxml/objectify.pyx":1670
 *                 if b':' in typename_utf8:
 *                     prefix, name = typename_utf8.split(b':', 1)
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':             # <<<<<<<<<<<<<<
 *                         typename_utf8 = name
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 */
          __Pyx_TraceLine(1670,0,__PYX_ERR(0, 1670, __pyx_L1_error))
          __pyx_t_3 = ((__pyx_v_c_ns->prefix == NULL) != 0);
          if (!__pyx_t_3) {
          } else {
            __pyx_t_4 = __pyx_t_3;
            goto __pyx_L45_bool_binop_done;
          }
          __pyx_t_3 = (((__pyx_v_c_ns->prefix[0]) == '\x00') != 0);
          __pyx_t_4 = __pyx_t_3;
          __pyx_L45_bool_binop_done:;
          if (__pyx_t_4) {

            /* "lxml/objectify.pyx":1671
 *                     prefix, name = typename_utf8.split(b':', 1)
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 *                         typename_utf8 = name             # <<<<<<<<<<<<<<
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 */
            __Pyx_TraceLine(1671,0,__PYX_ERR(0, 1671, __pyx_L1_error))
            __Pyx_INCREF(__pyx_v_name);
            __Pyx_DECREF_SET(__pyx_v_typename_utf8, __pyx_v_name);

            /* "lxml/objectify.pyx":1670
 *                 if b':' in typename_utf8:
 *                     prefix, name = typename_utf8.split(b':', 1)
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':             # <<<<<<<<<<<<<<
 *                         typename_utf8 = name
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 */
            goto __pyx_L44;
          }

          /* "lxml/objectify.pyx":1672
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 *                         typename_utf8 = name
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:             # <<<<<<<<<<<<<<
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':
 */
          __Pyx_TraceLine(1672,0,__PYX_ERR(0, 1672, __pyx_L1_error))
          __pyx_t_4 = ((xmlStrcmp((const xmlChar*)PyBytes_AS_STRING(__pyx_v_prefix), __pyx_v_c_ns->prefix) != 0) != 0);
          if (__pyx_t_4) {

            /* "lxml/objectify.pyx":1673
 *                         typename_utf8 = name
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name             # <<<<<<<<<<<<<<
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':
 *                     typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + typename_utf8
 */
            __Pyx_TraceLine(1673,0,__PYX_ERR(0, 1673, __pyx_L1_error))
            __pyx_t_6 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_ns->prefix)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1673, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_kp_b__44); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1673, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_v_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1673, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF_SET(__pyx_v_typename_utf8, __pyx_t_6);
            __pyx_t_6 = 0;

            /* "lxml/objectify.pyx":1672
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 *                         typename_utf8 = name
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:             # <<<<<<<<<<<<<<
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':
 */
          }
          __pyx_L44:;

          /* "lxml/objectify.pyx":1668
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 *             if c_ns is not NULL:
 *                 if b':' in typename_utf8:             # <<<<<<<<<<<<<<
 *                     prefix, name = typename_utf8.split(b':', 1)
 *                     if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
 */
          goto __pyx_L41;
        }

        /* "lxml/objectify.pyx":1674
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':             # <<<<<<<<<<<<<<
 *                     typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + typename_utf8
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 */
        __Pyx_TraceLine(1674,0,__PYX_ERR(0, 1674, __pyx_L1_error))
        __pyx_t_3 = ((__pyx_v_c_ns->prefix != NULL) != 0);
        if (__pyx_t_3) {
        } else {
          __pyx_t_4 = __pyx_t_3;
          goto __pyx_L47_bool_binop_done;
        }
        __pyx_t_3 = (((__pyx_v_c_ns->prefix[0]) != '\x00') != 0);
        __pyx_t_4 = __pyx_t_3;
        __pyx_L47_bool_binop_done:;
        if (__pyx_t_4) {

          /* "lxml/objectify.pyx":1675
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':
 *                     typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + typename_utf8             # <<<<<<<<<<<<<<
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 */
          __Pyx_TraceLine(1675,0,__PYX_ERR(0, 1675, __pyx_L1_error))
          __pyx_t_6 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_ns->prefix)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1675, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_kp_b__44); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1675, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_v_typename_utf8); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1675, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_DECREF_SET(__pyx_v_typename_utf8, __pyx_t_6);
          __pyx_t_6 = 0;

          /* "lxml/objectify.pyx":1674
 *                     elif tree.xmlStrcmp(_xcstr(prefix), c_ns.prefix) != 0:
 *                         typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + name
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':             # <<<<<<<<<<<<<<
 *                     typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + typename_utf8
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 */
        }
        __pyx_L41:;

        /* "lxml/objectify.pyx":1667
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _XML_SCHEMA_NS, <unsigned char*>'xsd')
 *             if c_ns is not NULL:             # <<<<<<<<<<<<<<
 *                 if b':' in typename_utf8:
 *                     prefix, name = typename_utf8.split(b':', 1)
 */
      }

      /* "lxml/objectify.pyx":1676
 *                 elif c_ns.prefix is not NULL and c_ns.prefix[0] != c'\0':
 *                     typename_utf8 = (<unsigned char*>c_ns.prefix) + b':' + typename_utf8
 *             c_ns = cetree.findOrBuildNodeNsPrefix(             # <<<<<<<<<<<<<<
 *                 doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 *             tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"type", _xcstr(typename_utf8))
 */
      __Pyx_TraceLine(1676,0,__PYX_ERR(0, 1676, __pyx_L1_error))
      __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"xsi"))));

      /* "lxml/objectify.pyx":1678
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 *             tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"type", _xcstr(typename_utf8))             # <<<<<<<<<<<<<<
 * 
 *     if annotate_pytype:
 */
      __Pyx_TraceLine(1678,0,__PYX_ERR(0, 1678, __pyx_L1_error))
      (void)(xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, ((unsigned char *)((unsigned char *)((char const *)"type"))), (const xmlChar*)PyBytes_AS_STRING(__pyx_v_typename_utf8)));
    }
    __pyx_L37:;

    /* "lxml/objectify.pyx":1658
 *             typename = pytype._schema_types[0]
 * 
 *     if annotate_xsi:             # <<<<<<<<<<<<<<
 *         if typename is None or istree:
 *             cetree.delAttributeFromNsName(
 */
  }

  /* "lxml/objectify.pyx":1680
 *             tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"type", _xcstr(typename_utf8))
 * 
 *     if annotate_pytype:             # <<<<<<<<<<<<<<
 *         if pytype is None:
 *             # delete attribute if it exists
 */
  __Pyx_TraceLine(1680,0,__PYX_ERR(0, 1680, __pyx_L1_error))
  __pyx_t_4 = (__pyx_v_annotate_pytype != 0);
  if (__pyx_t_4) {

    /* "lxml/objectify.pyx":1681
 * 
 *     if annotate_pytype:
 *         if pytype is None:             # <<<<<<<<<<<<<<
 *             # delete attribute if it exists
 *             cetree.delAttributeFromNsName(
 */
    __Pyx_TraceLine(1681,0,__PYX_ERR(0, 1681, __pyx_L1_error))
    __pyx_t_4 = (((PyObject *)__pyx_v_pytype) == Py_None);
    __pyx_t_3 = (__pyx_t_4 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1683
 *         if pytype is None:
 *             # delete attribute if it exists
 *             cetree.delAttributeFromNsName(             # <<<<<<<<<<<<<<
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 *         else:
 */
      __Pyx_TraceLine(1683,0,__PYX_ERR(0, 1683, __pyx_L1_error))
      (void)(delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME));

      /* "lxml/objectify.pyx":1681
 * 
 *     if annotate_pytype:
 *         if pytype is None:             # <<<<<<<<<<<<<<
 *             # delete attribute if it exists
 *             cetree.delAttributeFromNsName(
 */
      goto __pyx_L50;
    }

    /* "lxml/objectify.pyx":1687
 *         else:
 *             # update or create attribute
 *             c_ns = cetree.findOrBuildNodeNsPrefix(             # <<<<<<<<<<<<<<
 *                 doc, c_node, _PYTYPE_NAMESPACE, <unsigned char*>'py')
 *             pytype_name = cetree.utf8(pytype.name)
 */
    __Pyx_TraceLine(1687,0,__PYX_ERR(0, 1687, __pyx_L1_error))
    /*else*/ {

      /* "lxml/objectify.pyx":1688
 *             # update or create attribute
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _PYTYPE_NAMESPACE, <unsigned char*>'py')             # <<<<<<<<<<<<<<
 *             pytype_name = cetree.utf8(pytype.name)
 *             tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
 */
      __Pyx_TraceLine(1688,0,__PYX_ERR(0, 1688, __pyx_L1_error))
      __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, ((unsigned char *)((unsigned char *)((char const *)"py"))));

      /* "lxml/objectify.pyx":1689
 *             c_ns = cetree.findOrBuildNodeNsPrefix(
 *                 doc, c_node, _PYTYPE_NAMESPACE, <unsigned char*>'py')
 *             pytype_name = cetree.utf8(pytype.name)             # <<<<<<<<<<<<<<
 *             tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
 *                               _xcstr(pytype_name))
 */
      __Pyx_TraceLine(1689,0,__PYX_ERR(0, 1689, __pyx_L1_error))
      __pyx_t_6 = __pyx_v_pytype->name;
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_5 = utf8(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1689, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_v_pytype_name = ((PyObject*)__pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1690
 *                 doc, c_node, _PYTYPE_NAMESPACE, <unsigned char*>'py')
 *             pytype_name = cetree.utf8(pytype.name)
 *             tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,             # <<<<<<<<<<<<<<
 *                               _xcstr(pytype_name))
 *             if pytype is NoneType:
 */
      __Pyx_TraceLine(1690,0,__PYX_ERR(0, 1690, __pyx_L1_error))
      (void)(xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_pytype_name)));

      /* "lxml/objectify.pyx":1692
 *             tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
 *                               _xcstr(pytype_name))
 *             if pytype is NoneType:             # <<<<<<<<<<<<<<
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 */
      __Pyx_TraceLine(1692,0,__PYX_ERR(0, 1692, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v_pytype == __pyx_v_NoneType);
      __pyx_t_4 = (__pyx_t_3 != 0);
      if (__pyx_t_4) {

        /* "lxml/objectify.pyx":1693
 *                               _xcstr(pytype_name))
 *             if pytype is NoneType:
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(             # <<<<<<<<<<<<<<
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 *                 tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"nil", <unsigned char*>"true")
 */
        __Pyx_TraceLine(1693,0,__PYX_ERR(0, 1693, __pyx_L1_error))
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, ((unsigned char *)((unsigned char *)((char const *)"xsi"))));

        /* "lxml/objectify.pyx":1695
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 *                 tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"nil", <unsigned char*>"true")             # <<<<<<<<<<<<<<
 * 
 *     return 0
 */
        __Pyx_TraceLine(1695,0,__PYX_ERR(0, 1695, __pyx_L1_error))
        (void)(xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, ((unsigned char *)((unsigned char *)((char const *)"nil"))), ((unsigned char *)((unsigned char *)((char const *)"true")))));

        /* "lxml/objectify.pyx":1692
 *             tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
 *                               _xcstr(pytype_name))
 *             if pytype is NoneType:             # <<<<<<<<<<<<<<
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, <unsigned char*>'xsi')
 */
      }
    }
    __pyx_L50:;

    /* "lxml/objectify.pyx":1680
 *             tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"type", _xcstr(typename_utf8))
 * 
 *     if annotate_pytype:             # <<<<<<<<<<<<<<
 *         if pytype is None:
 *             # delete attribute if it exists
 */
  }

  /* "lxml/objectify.pyx":1697
 *                 tree.xmlSetNsProp(c_node, c_ns, <unsigned char*>"nil", <unsigned char*>"true")
 * 
 *     return 0             # <<<<<<<<<<<<<<
 * 
 * cdef object _strip_attributes = etree.strip_attributes
 */
  __Pyx_TraceLine(1697,0,__PYX_ERR(0, 1697, __pyx_L1_error))
  __pyx_r = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1578
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
 * 
 * cdef int _annotate_element(tree.xmlNode* c_node, _Document doc,             # <<<<<<<<<<<<<<
 *                            bint annotate_xsi, bint annotate_pytype,
 *                            bint ignore_xsi, bint ignore_pytype,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify._annotate_element", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_pytype);
  __Pyx_XDECREF(__pyx_v_typename);
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XDECREF(__pyx_v_old_pytypename);
  __Pyx_XDECREF(__pyx_v_typename_utf8);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_pytype_name);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_27deannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_26deannotate[] = "deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)\n\n    Recursively de-annotate the elements of an XML tree by removing 'py:pytype'\n    and/or 'xsi:type' attributes and/or 'xsi:nil' attributes.\n\n    If the 'pytype' keyword argument is True (the default), 'py:pytype'\n    attributes will be removed. If the 'xsi' keyword argument is True (the \n    default), 'xsi:type' attributes will be removed.\n    If the 'xsi_nil' keyword argument is True (default: False), 'xsi:nil'\n    attributes will be removed.\n\n    Note that this does not touch the namespace declarations by\n    default.  If you want to remove unused namespace declarations from\n    the tree, pass the option ``cleanup_namespaces=True``.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_27deannotate = {"deannotate", (PyCFunction)__pyx_pw_4lxml_9objectify_27deannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_26deannotate};
static PyObject *__pyx_pw_4lxml_9objectify_27deannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_element_or_tree = 0;
  int __pyx_v_pytype;
  int __pyx_v_xsi;
  int __pyx_v_xsi_nil;
  int __pyx_v_cleanup_namespaces;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("deannotate (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_element_or_tree,&__pyx_n_s_pytype,&__pyx_n_s_xsi_2,&__pyx_n_s_xsi_nil,&__pyx_n_s_cleanup_namespaces,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element_or_tree)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (kw_args > 0 && likely(kw_args <= 4)) {
        Py_ssize_t index;
        for (index = 1; index < 5 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "deannotate") < 0)) __PYX_ERR(0, 1702, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_element_or_tree = values[0];
    if (values[1]) {
      __pyx_v_pytype = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_pytype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1702, __pyx_L3_error)
    } else {
      __pyx_v_pytype = ((int)((int)1));
    }
    if (values[2]) {
      __pyx_v_xsi = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_xsi == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1702, __pyx_L3_error)
    } else {
      __pyx_v_xsi = ((int)((int)1));
    }
    if (values[3]) {
      __pyx_v_xsi_nil = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_xsi_nil == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1703, __pyx_L3_error)
    } else {

      /* "lxml/objectify.pyx":1703
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,
 *                bint xsi_nil=False, bint cleanup_namespaces=False):             # <<<<<<<<<<<<<<
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 * 
 */
      __pyx_v_xsi_nil = ((int)((int)0));
    }
    if (values[4]) {
      __pyx_v_cleanup_namespaces = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_cleanup_namespaces == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1703, __pyx_L3_error)
    } else {
      __pyx_v_cleanup_namespaces = ((int)((int)0));
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("deannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1702, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.deannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_26deannotate(__pyx_self, __pyx_v_element_or_tree, __pyx_v_pytype, __pyx_v_xsi, __pyx_v_xsi_nil, __pyx_v_cleanup_namespaces);

  /* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */

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

static PyObject *__pyx_pf_4lxml_9objectify_26deannotate(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_element_or_tree, int __pyx_v_pytype, int __pyx_v_xsi, int __pyx_v_xsi_nil, int __pyx_v_cleanup_namespaces) {
  PyObject *__pyx_v_attribute_names = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__50)
  __Pyx_RefNannySetupContext("deannotate", 0);
  __Pyx_TraceCall("deannotate", __pyx_f[0], 1702, 0, __PYX_ERR(0, 1702, __pyx_L1_error));

  /* "lxml/objectify.pyx":1719
 *     the tree, pass the option ``cleanup_namespaces=True``.
 *     """
 *     cdef list attribute_names = []             # <<<<<<<<<<<<<<
 * 
 *     if pytype:
 */
  __Pyx_TraceLine(1719,0,__PYX_ERR(0, 1719, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_attribute_names = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1721
 *     cdef list attribute_names = []
 * 
 *     if pytype:             # <<<<<<<<<<<<<<
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 *     if xsi:
 */
  __Pyx_TraceLine(1721,0,__PYX_ERR(0, 1721, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_pytype != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1722
 * 
 *     if pytype:
 *         attribute_names.append(PYTYPE_ATTRIBUTE)             # <<<<<<<<<<<<<<
 *     if xsi:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 */
    __Pyx_TraceLine(1722,0,__PYX_ERR(0, 1722, __pyx_L1_error))
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1722, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_attribute_names, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1722, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1721
 *     cdef list attribute_names = []
 * 
 *     if pytype:             # <<<<<<<<<<<<<<
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 *     if xsi:
 */
  }

  /* "lxml/objectify.pyx":1723
 *     if pytype:
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 *     if xsi:             # <<<<<<<<<<<<<<
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *     if xsi_nil:
 */
  __Pyx_TraceLine(1723,0,__PYX_ERR(0, 1723, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_xsi != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1724
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 *     if xsi:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)             # <<<<<<<<<<<<<<
 *     if xsi_nil:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 */
    __Pyx_TraceLine(1724,0,__PYX_ERR(0, 1724, __pyx_L1_error))
    __pyx_t_1 = __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_attribute_names, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1724, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1723
 *     if pytype:
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 *     if xsi:             # <<<<<<<<<<<<<<
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *     if xsi_nil:
 */
  }

  /* "lxml/objectify.pyx":1725
 *     if xsi:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *     if xsi_nil:             # <<<<<<<<<<<<<<
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 * 
 */
  __Pyx_TraceLine(1725,0,__PYX_ERR(0, 1725, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_xsi_nil != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1726
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *     if xsi_nil:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)             # <<<<<<<<<<<<<<
 * 
 *     _strip_attributes(element_or_tree, *attribute_names)
 */
    __Pyx_TraceLine(1726,0,__PYX_ERR(0, 1726, __pyx_L1_error))
    __pyx_t_1 = __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_attribute_names, __pyx_t_1); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1726, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "lxml/objectify.pyx":1725
 *     if xsi:
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *     if xsi_nil:             # <<<<<<<<<<<<<<
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 * 
 */
  }

  /* "lxml/objectify.pyx":1728
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 * 
 *     _strip_attributes(element_or_tree, *attribute_names)             # <<<<<<<<<<<<<<
 *     if cleanup_namespaces:
 *         _cleanup_namespaces(element_or_tree)
 */
  __Pyx_TraceLine(1728,0,__PYX_ERR(0, 1728, __pyx_L1_error))
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_element_or_tree);
  __Pyx_GIVEREF(__pyx_v_element_or_tree);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_element_or_tree);
  __pyx_t_4 = PySequence_Tuple(__pyx_v_attribute_names); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_4lxml_9objectify__strip_attributes, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1729
 * 
 *     _strip_attributes(element_or_tree, *attribute_names)
 *     if cleanup_namespaces:             # <<<<<<<<<<<<<<
 *         _cleanup_namespaces(element_or_tree)
 * 
 */
  __Pyx_TraceLine(1729,0,__PYX_ERR(0, 1729, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_cleanup_namespaces != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1730
 *     _strip_attributes(element_or_tree, *attribute_names)
 *     if cleanup_namespaces:
 *         _cleanup_namespaces(element_or_tree)             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
    __Pyx_TraceLine(1730,0,__PYX_ERR(0, 1730, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__cleanup_namespaces);
    __pyx_t_5 = __pyx_v_4lxml_9objectify__cleanup_namespaces; __pyx_t_1 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_1)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_1);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    if (!__pyx_t_1) {
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_element_or_tree); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_5)) {
        PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_element_or_tree};
        __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_GOTREF(__pyx_t_4);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
        PyObject *__pyx_temp[2] = {__pyx_t_1, __pyx_v_element_or_tree};
        __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_GOTREF(__pyx_t_4);
      } else
      #endif
      {
        __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1730, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1); __pyx_t_1 = NULL;
        __Pyx_INCREF(__pyx_v_element_or_tree);
        __Pyx_GIVEREF(__pyx_v_element_or_tree);
        PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_element_or_tree);
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1730, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1729
 * 
 *     _strip_attributes(element_or_tree, *attribute_names)
 *     if cleanup_namespaces:             # <<<<<<<<<<<<<<
 *         _cleanup_namespaces(element_or_tree)
 * 
 */
  }

  /* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */

  /* 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_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify.deannotate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_attribute_names);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1742
 * objectify_parser = __DEFAULT_PARSER
 * 
 * def set_default_parser(new_parser = None):             # <<<<<<<<<<<<<<
 *     u"""set_default_parser(new_parser = None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_29set_default_parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_28set_default_parser[] = "set_default_parser(new_parser = None)\n\n    Replace the default parser used by objectify's Element() and\n    fromstring() functions.\n\n    The new parser must be an etree.XMLParser.\n\n    Call without arguments to reset to the original parser.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_29set_default_parser = {"set_default_parser", (PyCFunction)__pyx_pw_4lxml_9objectify_29set_default_parser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_28set_default_parser};
static PyObject *__pyx_pw_4lxml_9objectify_29set_default_parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_new_parser = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_default_parser (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_new_parser,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_new_parser);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_default_parser") < 0)) __PYX_ERR(0, 1742, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_new_parser = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_default_parser", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1742, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.set_default_parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_28set_default_parser(__pyx_self, __pyx_v_new_parser);

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

static PyObject *__pyx_pf_4lxml_9objectify_28set_default_parser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_new_parser) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__51)
  __Pyx_RefNannySetupContext("set_default_parser", 0);
  __Pyx_TraceCall("set_default_parser", __pyx_f[0], 1742, 0, __PYX_ERR(0, 1742, __pyx_L1_error));

  /* "lxml/objectify.pyx":1753
 *     """
 *     global objectify_parser
 *     if new_parser is None:             # <<<<<<<<<<<<<<
 *         objectify_parser = __DEFAULT_PARSER
 *     elif isinstance(new_parser, etree.XMLParser):
 */
  __Pyx_TraceLine(1753,0,__PYX_ERR(0, 1753, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_new_parser == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1754
 *     global objectify_parser
 *     if new_parser is None:
 *         objectify_parser = __DEFAULT_PARSER             # <<<<<<<<<<<<<<
 *     elif isinstance(new_parser, etree.XMLParser):
 *         objectify_parser = new_parser
 */
    __Pyx_TraceLine(1754,0,__PYX_ERR(0, 1754, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_objectify_parser, __pyx_v_4lxml_9objectify___DEFAULT_PARSER);
    __Pyx_GIVEREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);

    /* "lxml/objectify.pyx":1753
 *     """
 *     global objectify_parser
 *     if new_parser is None:             # <<<<<<<<<<<<<<
 *         objectify_parser = __DEFAULT_PARSER
 *     elif isinstance(new_parser, etree.XMLParser):
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1755
 *     if new_parser is None:
 *         objectify_parser = __DEFAULT_PARSER
 *     elif isinstance(new_parser, etree.XMLParser):             # <<<<<<<<<<<<<<
 *         objectify_parser = new_parser
 *     else:
 */
  __Pyx_TraceLine(1755,0,__PYX_ERR(0, 1755, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_XMLParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_new_parser, __pyx_t_3); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1755, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "lxml/objectify.pyx":1756
 *         objectify_parser = __DEFAULT_PARSER
 *     elif isinstance(new_parser, etree.XMLParser):
 *         objectify_parser = new_parser             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
 */
    __Pyx_TraceLine(1756,0,__PYX_ERR(0, 1756, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_new_parser);
    __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
    __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_objectify_parser, __pyx_v_new_parser);
    __Pyx_GIVEREF(__pyx_v_new_parser);

    /* "lxml/objectify.pyx":1755
 *     if new_parser is None:
 *         objectify_parser = __DEFAULT_PARSER
 *     elif isinstance(new_parser, etree.XMLParser):             # <<<<<<<<<<<<<<
 *         objectify_parser = new_parser
 *     else:
 */
    goto __pyx_L3;
  }

  /* "lxml/objectify.pyx":1758
 *         objectify_parser = new_parser
 *     else:
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"             # <<<<<<<<<<<<<<
 * 
 * def makeparser(**kw):
 */
  __Pyx_TraceLine(1758,0,__PYX_ERR(0, 1758, __pyx_L1_error))
  /*else*/ {
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_parser_must_inherit_from_lxml_et, 0, 0);
    __PYX_ERR(0, 1758, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "lxml/objectify.pyx":1742
 * objectify_parser = __DEFAULT_PARSER
 * 
 * def set_default_parser(new_parser = None):             # <<<<<<<<<<<<<<
 *     u"""set_default_parser(new_parser = None)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.set_default_parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1760
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
 * 
 * def makeparser(**kw):             # <<<<<<<<<<<<<<
 *     u"""makeparser(remove_blank_text=True, **kw)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_31makeparser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_30makeparser[] = "makeparser(remove_blank_text=True, **kw)\n\n    Create a new XML parser for objectify trees.\n\n    You can pass all keyword arguments that are supported by\n    ``etree.XMLParser()``.  Note that this parser defaults to removing\n    blank text.  You can disable this by passing the\n    ``remove_blank_text`` boolean keyword option yourself.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_31makeparser = {"makeparser", (PyCFunction)__pyx_pw_4lxml_9objectify_31makeparser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_30makeparser};
static PyObject *__pyx_pw_4lxml_9objectify_31makeparser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_kw = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("makeparser (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("makeparser", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return NULL;}
  if (__pyx_kwds && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "makeparser", 1))) return NULL;
  __pyx_v_kw = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); if (unlikely(!__pyx_v_kw)) return NULL;
  __Pyx_GOTREF(__pyx_v_kw);
  __pyx_r = __pyx_pf_4lxml_9objectify_30makeparser(__pyx_self, __pyx_v_kw);

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

static PyObject *__pyx_pf_4lxml_9objectify_30makeparser(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_kw) {
  PyObject *__pyx_v_parser = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__52)
  __Pyx_RefNannySetupContext("makeparser", 0);
  __Pyx_TraceCall("makeparser", __pyx_f[0], 1760, 0, __PYX_ERR(0, 1760, __pyx_L1_error));

  /* "lxml/objectify.pyx":1770
 *     ``remove_blank_text`` boolean keyword option yourself.
 *     """
 *     if 'remove_blank_text' not in kw:             # <<<<<<<<<<<<<<
 *         kw['remove_blank_text'] = True
 *     parser = etree.XMLParser(**kw)
 */
  __Pyx_TraceLine(1770,0,__PYX_ERR(0, 1770, __pyx_L1_error))
  __pyx_t_1 = (__Pyx_PyDict_ContainsTF(__pyx_n_s_remove_blank_text, __pyx_v_kw, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1770, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1771
 *     """
 *     if 'remove_blank_text' not in kw:
 *         kw['remove_blank_text'] = True             # <<<<<<<<<<<<<<
 *     parser = etree.XMLParser(**kw)
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
 */
    __Pyx_TraceLine(1771,0,__PYX_ERR(0, 1771, __pyx_L1_error))
    if (unlikely(PyDict_SetItem(__pyx_v_kw, __pyx_n_s_remove_blank_text, Py_True) < 0)) __PYX_ERR(0, 1771, __pyx_L1_error)

    /* "lxml/objectify.pyx":1770
 *     ``remove_blank_text`` boolean keyword option yourself.
 *     """
 *     if 'remove_blank_text' not in kw:             # <<<<<<<<<<<<<<
 *         kw['remove_blank_text'] = True
 *     parser = etree.XMLParser(**kw)
 */
  }

  /* "lxml/objectify.pyx":1772
 *     if 'remove_blank_text' not in kw:
 *         kw['remove_blank_text'] = True
 *     parser = etree.XMLParser(**kw)             # <<<<<<<<<<<<<<
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
 *     return parser
 */
  __Pyx_TraceLine(1772,0,__PYX_ERR(0, 1772, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_XMLParser); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, __pyx_v_kw); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_parser = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1773
 *         kw['remove_blank_text'] = True
 *     parser = etree.XMLParser(**kw)
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )             # <<<<<<<<<<<<<<
 *     return parser
 * 
 */
  __Pyx_TraceLine(1773,0,__PYX_ERR(0, 1773, __pyx_L1_error))
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_parser, __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  if (!__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1773, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_4);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5};
      __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
      PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_t_5};
      __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else
    #endif
    {
      __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1773, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1774
 *     parser = etree.XMLParser(**kw)
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
 *     return parser             # <<<<<<<<<<<<<<
 * 
 * cdef _Element _makeElement(tag, text, attrib, nsmap):
 */
  __Pyx_TraceLine(1774,0,__PYX_ERR(0, 1774, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_parser);
  __pyx_r = __pyx_v_parser;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1760
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
 * 
 * def makeparser(**kw):             # <<<<<<<<<<<<<<
 *     u"""makeparser(remove_blank_text=True, **kw)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify.makeparser", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1776
 *     return parser
 * 
 * cdef _Element _makeElement(tag, text, attrib, nsmap):             # <<<<<<<<<<<<<<
 *     return cetree.makeElement(tag, None, objectify_parser, text, None, attrib, nsmap)
 * 
 */

static struct LxmlElement *__pyx_f_4lxml_9objectify__makeElement(PyObject *__pyx_v_tag, PyObject *__pyx_v_text, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap) {
  struct LxmlElement *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("_makeElement", 0);
  __Pyx_TraceCall("_makeElement", __pyx_f[0], 1776, 0, __PYX_ERR(0, 1776, __pyx_L1_error));

  /* "lxml/objectify.pyx":1777
 * 
 * cdef _Element _makeElement(tag, text, attrib, nsmap):
 *     return cetree.makeElement(tag, None, objectify_parser, text, None, attrib, nsmap)             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
  __Pyx_TraceLine(1777,0,__PYX_ERR(0, 1777, __pyx_L1_error))
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_1 = __pyx_v_4lxml_9objectify_objectify_parser;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((PyObject *)makeElement(__pyx_v_tag, ((struct LxmlDocument *)Py_None), __pyx_t_1, __pyx_v_text, Py_None, __pyx_v_attrib, __pyx_v_nsmap)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = ((struct LxmlElement *)__pyx_t_2);
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1776
 *     return parser
 * 
 * cdef _Element _makeElement(tag, text, attrib, nsmap):             # <<<<<<<<<<<<<<
 *     return cetree.makeElement(tag, None, objectify_parser, text, None, attrib, nsmap)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify._makeElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1787
 * SubElement = etree.SubElement
 * 
 * def fromstring(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""fromstring(xml, parser=None, base_url=None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_33fromstring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_32fromstring[] = "fromstring(xml, parser=None, base_url=None)\n\n    Objectify specific version of the lxml.etree fromstring() function\n    that uses the objectify parser.\n\n    You can pass a different parser as second argument.\n\n    The ``base_url`` keyword argument allows to set the original base URL of\n    the document to support relative Paths when looking up external entities\n    (DTD, XInclude, ...).\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_33fromstring = {"fromstring", (PyCFunction)__pyx_pw_4lxml_9objectify_33fromstring, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_32fromstring};
static PyObject *__pyx_pw_4lxml_9objectify_33fromstring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_xml = 0;
  PyObject *__pyx_v_parser = 0;
  PyObject *__pyx_v_base_url = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("fromstring (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xml,&__pyx_n_s_parser,&__pyx_n_s_base_url,0};
    PyObject* values[3] = {0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    values[2] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xml)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_parser);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (kw_args == 1) {
        const Py_ssize_t index = 2;
        PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
        if (value) { values[index] = value; kw_args--; }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fromstring") < 0)) __PYX_ERR(0, 1787, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_xml = values[0];
    __pyx_v_parser = values[1];
    __pyx_v_base_url = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("fromstring", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1787, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.fromstring", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_32fromstring(__pyx_self, __pyx_v_xml, __pyx_v_parser, __pyx_v_base_url);

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

static PyObject *__pyx_pf_4lxml_9objectify_32fromstring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_xml, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__53)
  __Pyx_RefNannySetupContext("fromstring", 0);
  __Pyx_TraceCall("fromstring", __pyx_f[0], 1787, 0, __PYX_ERR(0, 1787, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_parser);

  /* "lxml/objectify.pyx":1799
 *     (DTD, XInclude, ...).
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)
 */
  __Pyx_TraceLine(1799,0,__PYX_ERR(0, 1799, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_parser == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1800
 *     """
 *     if parser is None:
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 */
    __Pyx_TraceLine(1800,0,__PYX_ERR(0, 1800, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
    __Pyx_DECREF_SET(__pyx_v_parser, __pyx_v_4lxml_9objectify_objectify_parser);

    /* "lxml/objectify.pyx":1799
 *     (DTD, XInclude, ...).
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)
 */
  }

  /* "lxml/objectify.pyx":1801
 *     if parser is None:
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)             # <<<<<<<<<<<<<<
 * 
 * def XML(xml, parser=None, *, base_url=None):
 */
  __Pyx_TraceLine(1801,0,__PYX_ERR(0, 1801, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1801, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_xml);
  __Pyx_GIVEREF(__pyx_v_xml);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_xml);
  __Pyx_INCREF(__pyx_v_parser);
  __Pyx_GIVEREF(__pyx_v_parser);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_parser);
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1801, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_base_url, __pyx_v_base_url) < 0) __PYX_ERR(0, 1801, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_4lxml_9objectify__fromstring, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1801, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1787
 * SubElement = etree.SubElement
 * 
 * def fromstring(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""fromstring(xml, parser=None, base_url=None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.fromstring", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1803
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 * def XML(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""XML(xml, parser=None, base_url=None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_35XML(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_34XML[] = "XML(xml, parser=None, base_url=None)\n\n    Objectify specific version of the lxml.etree XML() literal factory\n    that uses the objectify parser.\n\n    You can pass a different parser as second argument.\n\n    The ``base_url`` keyword argument allows to set the original base URL of\n    the document to support relative Paths when looking up external entities\n    (DTD, XInclude, ...).\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_35XML = {"XML", (PyCFunction)__pyx_pw_4lxml_9objectify_35XML, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_34XML};
static PyObject *__pyx_pw_4lxml_9objectify_35XML(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_xml = 0;
  PyObject *__pyx_v_parser = 0;
  PyObject *__pyx_v_base_url = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("XML (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xml,&__pyx_n_s_parser,&__pyx_n_s_base_url,0};
    PyObject* values[3] = {0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    values[2] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xml)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_parser);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (kw_args == 1) {
        const Py_ssize_t index = 2;
        PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
        if (value) { values[index] = value; kw_args--; }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "XML") < 0)) __PYX_ERR(0, 1803, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_xml = values[0];
    __pyx_v_parser = values[1];
    __pyx_v_base_url = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("XML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1803, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.XML", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_34XML(__pyx_self, __pyx_v_xml, __pyx_v_parser, __pyx_v_base_url);

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

static PyObject *__pyx_pf_4lxml_9objectify_34XML(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_xml, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__54)
  __Pyx_RefNannySetupContext("XML", 0);
  __Pyx_TraceCall("XML", __pyx_f[0], 1803, 0, __PYX_ERR(0, 1803, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_parser);

  /* "lxml/objectify.pyx":1815
 *     (DTD, XInclude, ...).
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)
 */
  __Pyx_TraceLine(1815,0,__PYX_ERR(0, 1815, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_parser == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1816
 *     """
 *     if parser is None:
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 */
    __Pyx_TraceLine(1816,0,__PYX_ERR(0, 1816, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
    __Pyx_DECREF_SET(__pyx_v_parser, __pyx_v_4lxml_9objectify_objectify_parser);

    /* "lxml/objectify.pyx":1815
 *     (DTD, XInclude, ...).
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)
 */
  }

  /* "lxml/objectify.pyx":1817
 *     if parser is None:
 *         parser = objectify_parser
 *     return _fromstring(xml, parser, base_url=base_url)             # <<<<<<<<<<<<<<
 * 
 * cdef object _parse
 */
  __Pyx_TraceLine(1817,0,__PYX_ERR(0, 1817, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_xml);
  __Pyx_GIVEREF(__pyx_v_xml);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_xml);
  __Pyx_INCREF(__pyx_v_parser);
  __Pyx_GIVEREF(__pyx_v_parser);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_parser);
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_base_url, __pyx_v_base_url) < 0) __PYX_ERR(0, 1817, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_4lxml_9objectify__fromstring, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1803
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 * def XML(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""XML(xml, parser=None, base_url=None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.XML", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1822
 * _parse = etree.parse
 * 
 * def parse(f, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""parse(f, parser=None, base_url=None)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_37parse(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_36parse[] = "parse(f, parser=None, base_url=None)\n\n    Parse a file or file-like object with the objectify parser.\n\n    You can pass a different parser as second argument.\n\n    The ``base_url`` keyword allows setting a URL for the document\n    when parsing from a file-like object.  This is needed when looking\n    up external entities (DTD, XInclude, ...) with relative paths.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_37parse = {"parse", (PyCFunction)__pyx_pw_4lxml_9objectify_37parse, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_36parse};
static PyObject *__pyx_pw_4lxml_9objectify_37parse(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_f = 0;
  PyObject *__pyx_v_parser = 0;
  PyObject *__pyx_v_base_url = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("parse (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_f,&__pyx_n_s_parser,&__pyx_n_s_base_url,0};
    PyObject* values[3] = {0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    values[2] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_f)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_parser);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (kw_args == 1) {
        const Py_ssize_t index = 2;
        PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
        if (value) { values[index] = value; kw_args--; }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parse") < 0)) __PYX_ERR(0, 1822, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_f = values[0];
    __pyx_v_parser = values[1];
    __pyx_v_base_url = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1822, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_36parse(__pyx_self, __pyx_v_f, __pyx_v_parser, __pyx_v_base_url);

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

static PyObject *__pyx_pf_4lxml_9objectify_36parse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_f, PyObject *__pyx_v_parser, PyObject *__pyx_v_base_url) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__55)
  __Pyx_RefNannySetupContext("parse", 0);
  __Pyx_TraceCall("parse", __pyx_f[0], 1822, 0, __PYX_ERR(0, 1822, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_parser);

  /* "lxml/objectify.pyx":1833
 *     up external entities (DTD, XInclude, ...) with relative paths.
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _parse(f, parser, base_url=base_url)
 */
  __Pyx_TraceLine(1833,0,__PYX_ERR(0, 1833, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_parser == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1834
 *     """
 *     if parser is None:
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
 *     return _parse(f, parser, base_url=base_url)
 * 
 */
    __Pyx_TraceLine(1834,0,__PYX_ERR(0, 1834, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
    __Pyx_DECREF_SET(__pyx_v_parser, __pyx_v_4lxml_9objectify_objectify_parser);

    /* "lxml/objectify.pyx":1833
 *     up external entities (DTD, XInclude, ...) with relative paths.
 *     """
 *     if parser is None:             # <<<<<<<<<<<<<<
 *         parser = objectify_parser
 *     return _parse(f, parser, base_url=base_url)
 */
  }

  /* "lxml/objectify.pyx":1835
 *     if parser is None:
 *         parser = objectify_parser
 *     return _parse(f, parser, base_url=base_url)             # <<<<<<<<<<<<<<
 * 
 * cdef dict _DEFAULT_NSMAP = {
 */
  __Pyx_TraceLine(1835,0,__PYX_ERR(0, 1835, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_f);
  __Pyx_GIVEREF(__pyx_v_f);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_f);
  __Pyx_INCREF(__pyx_v_parser);
  __Pyx_GIVEREF(__pyx_v_parser);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_parser);
  __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_base_url, __pyx_v_base_url) < 0) __PYX_ERR(0, 1835, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyObject_Call(__pyx_v_4lxml_9objectify__parse, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1822
 * _parse = etree.parse
 * 
 * def parse(f, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""parse(f, parser=None, base_url=None)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("lxml.objectify.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_parser);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1845
 * E = ElementMaker()
 * 
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):             # <<<<<<<<<<<<<<
 *     u"""Element(_tag, attrib=None, nsmap=None, _pytype=None, **_attributes)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_39Element(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_38Element[] = "Element(_tag, attrib=None, nsmap=None, _pytype=None, **_attributes)\n\n    Objectify specific version of the lxml.etree Element() factory that\n    always creates a structural (tree) element.\n\n    NOTE: requires parser based element class lookup activated in lxml.etree!\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_39Element = {"Element", (PyCFunction)__pyx_pw_4lxml_9objectify_39Element, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_38Element};
static PyObject *__pyx_pw_4lxml_9objectify_39Element(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v__tag = 0;
  PyObject *__pyx_v_attrib = 0;
  PyObject *__pyx_v_nsmap = 0;
  PyObject *__pyx_v__pytype = 0;
  PyObject *__pyx_v__attributes = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("Element (wrapper)", 0);
  __pyx_v__attributes = PyDict_New(); if (unlikely(!__pyx_v__attributes)) return NULL;
  __Pyx_GOTREF(__pyx_v__attributes);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_tag_2,&__pyx_n_s_attrib,&__pyx_n_s_nsmap,&__pyx_n_s_pytype_2,0};
    PyObject* values[4] = {0,0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    values[2] = ((PyObject *)((PyObject *)Py_None));
    values[3] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tag_2)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_attrib);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nsmap);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (kw_args == 1) {
        const Py_ssize_t index = 3;
        PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
        if (value) { values[index] = value; kw_args--; }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, pos_args, "Element") < 0)) __PYX_ERR(0, 1845, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v__tag = values[0];
    __pyx_v_attrib = values[1];
    __pyx_v_nsmap = values[2];
    __pyx_v__pytype = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("Element", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1845, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v__attributes); __pyx_v__attributes = 0;
  __Pyx_AddTraceback("lxml.objectify.Element", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_38Element(__pyx_self, __pyx_v__tag, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__pytype, __pyx_v__attributes);

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

static PyObject *__pyx_pf_4lxml_9objectify_38Element(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v__tag, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap, PyObject *__pyx_v__pytype, PyObject *__pyx_v__attributes) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__56)
  __Pyx_RefNannySetupContext("Element", 0);
  __Pyx_TraceCall("Element", __pyx_f[0], 1845, 0, __PYX_ERR(0, 1845, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_attrib);
  __Pyx_INCREF(__pyx_v_nsmap);
  __Pyx_INCREF(__pyx_v__pytype);
  __Pyx_INCREF(__pyx_v__attributes);

  /* "lxml/objectify.pyx":1853
 *     NOTE: requires parser based element class lookup activated in lxml.etree!
 *     """
 *     if attrib is not None:             # <<<<<<<<<<<<<<
 *         if _attributes:
 *             attrib = dict(attrib)
 */
  __Pyx_TraceLine(1853,0,__PYX_ERR(0, 1853, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_attrib != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1854
 *     """
 *     if attrib is not None:
 *         if _attributes:             # <<<<<<<<<<<<<<
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 */
    __Pyx_TraceLine(1854,0,__PYX_ERR(0, 1854, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v__attributes); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1854, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1855
 *     if attrib is not None:
 *         if _attributes:
 *             attrib = dict(attrib)             # <<<<<<<<<<<<<<
 *             attrib.update(_attributes)
 *         _attributes = attrib
 */
      __Pyx_TraceLine(1855,0,__PYX_ERR(0, 1855, __pyx_L1_error))
      __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_attrib); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1855, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF_SET(__pyx_v_attrib, __pyx_t_3);
      __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1856
 *         if _attributes:
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)             # <<<<<<<<<<<<<<
 *         _attributes = attrib
 *     if _pytype is None:
 */
      __Pyx_TraceLine(1856,0,__PYX_ERR(0, 1856, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_attrib, __pyx_n_s_update); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1856, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(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);
        }
      }
      if (!__pyx_t_5) {
        __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v__attributes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1856, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_4)) {
          PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v__attributes};
          __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1856, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_GOTREF(__pyx_t_3);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
          PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v__attributes};
          __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1856, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
          __Pyx_GOTREF(__pyx_t_3);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1856, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
          __Pyx_INCREF(__pyx_v__attributes);
          __Pyx_GIVEREF(__pyx_v__attributes);
          PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v__attributes);
          __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1856, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "lxml/objectify.pyx":1854
 *     """
 *     if attrib is not None:
 *         if _attributes:             # <<<<<<<<<<<<<<
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 */
    }

    /* "lxml/objectify.pyx":1857
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 *         _attributes = attrib             # <<<<<<<<<<<<<<
 *     if _pytype is None:
 *         _pytype = TREE_PYTYPE_NAME
 */
    __Pyx_TraceLine(1857,0,__PYX_ERR(0, 1857, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_attrib);
    __Pyx_DECREF_SET(__pyx_v__attributes, __pyx_v_attrib);

    /* "lxml/objectify.pyx":1853
 *     NOTE: requires parser based element class lookup activated in lxml.etree!
 *     """
 *     if attrib is not None:             # <<<<<<<<<<<<<<
 *         if _attributes:
 *             attrib = dict(attrib)
 */
  }

  /* "lxml/objectify.pyx":1858
 *             attrib.update(_attributes)
 *         _attributes = attrib
 *     if _pytype is None:             # <<<<<<<<<<<<<<
 *         _pytype = TREE_PYTYPE_NAME
 *     if nsmap is None:
 */
  __Pyx_TraceLine(1858,0,__PYX_ERR(0, 1858, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v__pytype == Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1859
 *         _attributes = attrib
 *     if _pytype is None:
 *         _pytype = TREE_PYTYPE_NAME             # <<<<<<<<<<<<<<
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP
 */
    __Pyx_TraceLine(1859,0,__PYX_ERR(0, 1859, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
    __Pyx_DECREF_SET(__pyx_v__pytype, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);

    /* "lxml/objectify.pyx":1858
 *             attrib.update(_attributes)
 *         _attributes = attrib
 *     if _pytype is None:             # <<<<<<<<<<<<<<
 *         _pytype = TREE_PYTYPE_NAME
 *     if nsmap is None:
 */
  }

  /* "lxml/objectify.pyx":1860
 *     if _pytype is None:
 *         _pytype = TREE_PYTYPE_NAME
 *     if nsmap is None:             # <<<<<<<<<<<<<<
 *         nsmap = _DEFAULT_NSMAP
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
 */
  __Pyx_TraceLine(1860,0,__PYX_ERR(0, 1860, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1861
 *         _pytype = TREE_PYTYPE_NAME
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP             # <<<<<<<<<<<<<<
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
 *     return _makeElement(_tag, None, _attributes, nsmap)
 */
    __Pyx_TraceLine(1861,0,__PYX_ERR(0, 1861, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
    __Pyx_DECREF_SET(__pyx_v_nsmap, __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);

    /* "lxml/objectify.pyx":1860
 *     if _pytype is None:
 *         _pytype = TREE_PYTYPE_NAME
 *     if nsmap is None:             # <<<<<<<<<<<<<<
 *         nsmap = _DEFAULT_NSMAP
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
 */
  }

  /* "lxml/objectify.pyx":1862
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype             # <<<<<<<<<<<<<<
 *     return _makeElement(_tag, None, _attributes, nsmap)
 * 
 */
  __Pyx_TraceLine(1862,0,__PYX_ERR(0, 1862, __pyx_L1_error))
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (unlikely(PyObject_SetItem(__pyx_v__attributes, __pyx_t_3, __pyx_v__pytype) < 0)) __PYX_ERR(0, 1862, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "lxml/objectify.pyx":1863
 *         nsmap = _DEFAULT_NSMAP
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
 *     return _makeElement(_tag, None, _attributes, nsmap)             # <<<<<<<<<<<<<<
 * 
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,
 */
  __Pyx_TraceLine(1863,0,__PYX_ERR(0, 1863, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(__pyx_v__tag, Py_None, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1845
 * E = ElementMaker()
 * 
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):             # <<<<<<<<<<<<<<
 *     u"""Element(_tag, attrib=None, nsmap=None, _pytype=None, **_attributes)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify.Element", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__attributes);
  __Pyx_XDECREF(__pyx_v_attrib);
  __Pyx_XDECREF(__pyx_v_nsmap);
  __Pyx_XDECREF(__pyx_v__pytype);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "lxml/objectify.pyx":1865
 *     return _makeElement(_tag, None, _attributes, nsmap)
 * 
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,             # <<<<<<<<<<<<<<
 *                 **_attributes):
 *     u"""DataElement(_value, attrib=None, nsmap=None, _pytype=None, _xsi=None, **_attributes)
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_41DataElement(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_40DataElement[] = "DataElement(_value, attrib=None, nsmap=None, _pytype=None, _xsi=None, **_attributes)\n\n    Create a new element from a Python value and XML attributes taken from\n    keyword arguments or a dictionary passed as second argument.\n\n    Automatically adds a 'pytype' attribute for the Python type of the value,\n    if the type can be identified.  If '_pytype' or '_xsi' are among the\n    keyword arguments, they will be used instead.\n\n    If the _value argument is an ObjectifiedDataElement instance, its py:pytype,\n    xsi:type and other attributes and nsmap are reused unless they are redefined\n    in attrib and/or keyword arguments.\n    ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_41DataElement = {"DataElement", (PyCFunction)__pyx_pw_4lxml_9objectify_41DataElement, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_40DataElement};
static PyObject *__pyx_pw_4lxml_9objectify_41DataElement(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v__value = 0;
  PyObject *__pyx_v_attrib = 0;
  PyObject *__pyx_v_nsmap = 0;
  PyObject *__pyx_v__pytype = 0;
  PyObject *__pyx_v__xsi = 0;
  PyObject *__pyx_v__attributes = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("DataElement (wrapper)", 0);
  __pyx_v__attributes = PyDict_New(); if (unlikely(!__pyx_v__attributes)) return NULL;
  __Pyx_GOTREF(__pyx_v__attributes);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_value_2,&__pyx_n_s_attrib,&__pyx_n_s_nsmap,&__pyx_n_s_pytype_2,&__pyx_n_s_xsi_3,0};
    PyObject* values[5] = {0,0,0,0,0};
    values[1] = ((PyObject *)((PyObject *)Py_None));
    values[2] = ((PyObject *)((PyObject *)Py_None));
    values[3] = ((PyObject *)((PyObject *)Py_None));
    values[4] = ((PyObject *)((PyObject *)Py_None));
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value_2)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_attrib);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nsmap);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (kw_args > 0 && (kw_args <= 2)) {
        Py_ssize_t index;
        for (index = 3; index < 5 && kw_args > 0; index++) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, *__pyx_pyargnames[index]);
          if (value) { values[index] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, pos_args, "DataElement") < 0)) __PYX_ERR(0, 1865, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v__value = values[0];
    __pyx_v_attrib = values[1];
    __pyx_v_nsmap = values[2];
    __pyx_v__pytype = values[3];
    __pyx_v__xsi = values[4];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("DataElement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1865, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v__attributes); __pyx_v__attributes = 0;
  __Pyx_AddTraceback("lxml.objectify.DataElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_40DataElement(__pyx_self, __pyx_v__value, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__pytype, __pyx_v__xsi, __pyx_v__attributes);

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

static PyObject *__pyx_pf_4lxml_9objectify_40DataElement(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v__value, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap, PyObject *__pyx_v__pytype, PyObject *__pyx_v__xsi, PyObject *__pyx_v__attributes) {
  PyObject *__pyx_v_temp = NULL;
  PyObject *__pyx_v_prefix = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_ns = NULL;
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_py_type = NULL;
  PyObject *__pyx_v_strval = NULL;
  PyObject *__pyx_v_stringify = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  Py_ssize_t __pyx_t_10;
  PyObject *(*__pyx_t_11)(PyObject *);
  __Pyx_TraceFrameInit(__pyx_codeobj__57)
  __Pyx_RefNannySetupContext("DataElement", 0);
  __Pyx_TraceCall("DataElement", __pyx_f[0], 1865, 0, __PYX_ERR(0, 1865, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_attrib);
  __Pyx_INCREF(__pyx_v_nsmap);
  __Pyx_INCREF(__pyx_v__pytype);
  __Pyx_INCREF(__pyx_v__xsi);
  __Pyx_INCREF(__pyx_v__attributes);

  /* "lxml/objectify.pyx":1880
 *     in attrib and/or keyword arguments.
 *     """
 *     if nsmap is None:             # <<<<<<<<<<<<<<
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:
 */
  __Pyx_TraceLine(1880,0,__PYX_ERR(0, 1880, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1881
 *     """
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP             # <<<<<<<<<<<<<<
 *     if attrib is not None and attrib:
 *         if _attributes:
 */
    __Pyx_TraceLine(1881,0,__PYX_ERR(0, 1881, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
    __Pyx_DECREF_SET(__pyx_v_nsmap, __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);

    /* "lxml/objectify.pyx":1880
 *     in attrib and/or keyword arguments.
 *     """
 *     if nsmap is None:             # <<<<<<<<<<<<<<
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:
 */
  }

  /* "lxml/objectify.pyx":1882
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:             # <<<<<<<<<<<<<<
 *         if _attributes:
 *             attrib = dict(attrib)
 */
  __Pyx_TraceLine(1882,0,__PYX_ERR(0, 1882, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_attrib != Py_None);
  __pyx_t_3 = (__pyx_t_1 != 0);
  if (__pyx_t_3) {
  } else {
    __pyx_t_2 = __pyx_t_3;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_attrib); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1882, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_3;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1883
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:
 *         if _attributes:             # <<<<<<<<<<<<<<
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 */
    __Pyx_TraceLine(1883,0,__PYX_ERR(0, 1883, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v__attributes); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1883, __pyx_L1_error)
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1884
 *     if attrib is not None and attrib:
 *         if _attributes:
 *             attrib = dict(attrib)             # <<<<<<<<<<<<<<
 *             attrib.update(_attributes)
 *         _attributes = attrib
 */
      __Pyx_TraceLine(1884,0,__PYX_ERR(0, 1884, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_attrib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1884, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_attrib, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1885
 *         if _attributes:
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)             # <<<<<<<<<<<<<<
 *         _attributes = attrib
 *     if isinstance(_value, ObjectifiedElement):
 */
      __Pyx_TraceLine(1885,0,__PYX_ERR(0, 1885, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_attrib, __pyx_n_s_update); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1885, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      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);
        }
      }
      if (!__pyx_t_6) {
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v__attributes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1885, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v__attributes};
          __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1885, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v__attributes};
          __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1885, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        {
          __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1885, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
          __Pyx_INCREF(__pyx_v__attributes);
          __Pyx_GIVEREF(__pyx_v__attributes);
          PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v__attributes);
          __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1885, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1883
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:
 *         if _attributes:             # <<<<<<<<<<<<<<
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 */
    }

    /* "lxml/objectify.pyx":1886
 *             attrib = dict(attrib)
 *             attrib.update(_attributes)
 *         _attributes = attrib             # <<<<<<<<<<<<<<
 *     if isinstance(_value, ObjectifiedElement):
 *         if _pytype is None:
 */
    __Pyx_TraceLine(1886,0,__PYX_ERR(0, 1886, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_attrib);
    __Pyx_DECREF_SET(__pyx_v__attributes, __pyx_v_attrib);

    /* "lxml/objectify.pyx":1882
 *     if nsmap is None:
 *         nsmap = _DEFAULT_NSMAP
 *     if attrib is not None and attrib:             # <<<<<<<<<<<<<<
 *         if _attributes:
 *             attrib = dict(attrib)
 */
  }

  /* "lxml/objectify.pyx":1887
 *             attrib.update(_attributes)
 *         _attributes = attrib
 *     if isinstance(_value, ObjectifiedElement):             # <<<<<<<<<<<<<<
 *         if _pytype is None:
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
 */
  __Pyx_TraceLine(1887,0,__PYX_ERR(0, 1887, __pyx_L1_error))
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v__value, __pyx_ptype_4lxml_9objectify_ObjectifiedElement); 
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "lxml/objectify.pyx":1888
 *         _attributes = attrib
 *     if isinstance(_value, ObjectifiedElement):
 *         if _pytype is None:             # <<<<<<<<<<<<<<
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
 *                 # special case: no change!
 */
    __Pyx_TraceLine(1888,0,__PYX_ERR(0, 1888, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v__pytype == Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1889
 *     if isinstance(_value, ObjectifiedElement):
 *         if _pytype is None:
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
 *                 # special case: no change!
 *                 return _value.__copy__()
 */
      __Pyx_TraceLine(1889,0,__PYX_ERR(0, 1889, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v__xsi == Py_None);
      __pyx_t_1 = (__pyx_t_3 != 0);
      if (__pyx_t_1) {
      } else {
        __pyx_t_2 = __pyx_t_1;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v__attributes); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1889, __pyx_L1_error)
      __pyx_t_3 = ((!__pyx_t_1) != 0);
      if (__pyx_t_3) {
      } else {
        __pyx_t_2 = __pyx_t_3;
        goto __pyx_L11_bool_binop_done;
      }
      __pyx_t_3 = (__pyx_v_nsmap == __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
      __pyx_t_1 = (__pyx_t_3 != 0);
      __pyx_t_2 = __pyx_t_1;
      __pyx_L11_bool_binop_done:;
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1891
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
 *                 # special case: no change!
 *                 return _value.__copy__()             # <<<<<<<<<<<<<<
 *     if isinstance(_value, ObjectifiedDataElement):
 *         # reuse existing nsmap unless redefined in nsmap parameter
 */
        __Pyx_TraceLine(1891,0,__PYX_ERR(0, 1891, __pyx_L1_error))
        __Pyx_XDECREF(__pyx_r);
        __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v__value, __pyx_n_s_copy); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1891, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_7 = NULL;
        if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
          __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
          if (likely(__pyx_t_7)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
            __Pyx_INCREF(__pyx_t_7);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_5, function);
          }
        }
        if (__pyx_t_7) {
          __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1891, __pyx_L1_error)
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        } else {
          __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1891, __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;

        /* "lxml/objectify.pyx":1889
 *     if isinstance(_value, ObjectifiedElement):
 *         if _pytype is None:
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
 *                 # special case: no change!
 *                 return _value.__copy__()
 */
      }

      /* "lxml/objectify.pyx":1888
 *         _attributes = attrib
 *     if isinstance(_value, ObjectifiedElement):
 *         if _pytype is None:             # <<<<<<<<<<<<<<
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
 *                 # special case: no change!
 */
    }

    /* "lxml/objectify.pyx":1887
 *             attrib.update(_attributes)
 *         _attributes = attrib
 *     if isinstance(_value, ObjectifiedElement):             # <<<<<<<<<<<<<<
 *         if _pytype is None:
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
 */
  }

  /* "lxml/objectify.pyx":1892
 *                 # special case: no change!
 *                 return _value.__copy__()
 *     if isinstance(_value, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *         # reuse existing nsmap unless redefined in nsmap parameter
 *         temp = _value.nsmap
 */
  __Pyx_TraceLine(1892,0,__PYX_ERR(0, 1892, __pyx_L1_error))
  __pyx_t_2 = __Pyx_TypeCheck(__pyx_v__value, __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1894
 *     if isinstance(_value, ObjectifiedDataElement):
 *         # reuse existing nsmap unless redefined in nsmap parameter
 *         temp = _value.nsmap             # <<<<<<<<<<<<<<
 *         if temp is not None and temp:
 *             temp = dict(temp)
 */
    __Pyx_TraceLine(1894,0,__PYX_ERR(0, 1894, __pyx_L1_error))
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v__value, __pyx_n_s_nsmap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1894, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_temp = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1895
 *         # reuse existing nsmap unless redefined in nsmap parameter
 *         temp = _value.nsmap
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
 *             temp = dict(temp)
 *             temp.update(nsmap)
 */
    __Pyx_TraceLine(1895,0,__PYX_ERR(0, 1895, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_temp != Py_None);
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L16_bool_binop_done;
    }
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1895, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_3;
    __pyx_L16_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1896
 *         temp = _value.nsmap
 *         if temp is not None and temp:
 *             temp = dict(temp)             # <<<<<<<<<<<<<<
 *             temp.update(nsmap)
 *             nsmap = temp
 */
      __Pyx_TraceLine(1896,0,__PYX_ERR(0, 1896, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_temp); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1896, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_temp, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1897
 *         if temp is not None and temp:
 *             temp = dict(temp)
 *             temp.update(nsmap)             # <<<<<<<<<<<<<<
 *             nsmap = temp
 *         # reuse existing attributes unless redefined in attrib/_attributes
 */
      __Pyx_TraceLine(1897,0,__PYX_ERR(0, 1897, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_update); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1897, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_7 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      if (!__pyx_t_7) {
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_nsmap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1897, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_nsmap};
          __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1897, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_nsmap};
          __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1897, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1897, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL;
          __Pyx_INCREF(__pyx_v_nsmap);
          __Pyx_GIVEREF(__pyx_v_nsmap);
          PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_nsmap);
          __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1897, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1898
 *             temp = dict(temp)
 *             temp.update(nsmap)
 *             nsmap = temp             # <<<<<<<<<<<<<<
 *         # reuse existing attributes unless redefined in attrib/_attributes
 *         temp = _value.attrib
 */
      __Pyx_TraceLine(1898,0,__PYX_ERR(0, 1898, __pyx_L1_error))
      __Pyx_INCREF(__pyx_v_temp);
      __Pyx_DECREF_SET(__pyx_v_nsmap, __pyx_v_temp);

      /* "lxml/objectify.pyx":1895
 *         # reuse existing nsmap unless redefined in nsmap parameter
 *         temp = _value.nsmap
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
 *             temp = dict(temp)
 *             temp.update(nsmap)
 */
    }

    /* "lxml/objectify.pyx":1900
 *             nsmap = temp
 *         # reuse existing attributes unless redefined in attrib/_attributes
 *         temp = _value.attrib             # <<<<<<<<<<<<<<
 *         if temp is not None and temp:
 *             temp = dict(temp)
 */
    __Pyx_TraceLine(1900,0,__PYX_ERR(0, 1900, __pyx_L1_error))
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v__value, __pyx_n_s_attrib); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF_SET(__pyx_v_temp, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1901
 *         # reuse existing attributes unless redefined in attrib/_attributes
 *         temp = _value.attrib
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
 *             temp = dict(temp)
 *             temp.update(_attributes)
 */
    __Pyx_TraceLine(1901,0,__PYX_ERR(0, 1901, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_temp != Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L19_bool_binop_done;
    }
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1901, __pyx_L1_error)
    __pyx_t_1 = __pyx_t_2;
    __pyx_L19_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1902
 *         temp = _value.attrib
 *         if temp is not None and temp:
 *             temp = dict(temp)             # <<<<<<<<<<<<<<
 *             temp.update(_attributes)
 *             _attributes = temp
 */
      __Pyx_TraceLine(1902,0,__PYX_ERR(0, 1902, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_temp); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF_SET(__pyx_v_temp, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1903
 *         if temp is not None and temp:
 *             temp = dict(temp)
 *             temp.update(_attributes)             # <<<<<<<<<<<<<<
 *             _attributes = temp
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
 */
      __Pyx_TraceLine(1903,0,__PYX_ERR(0, 1903, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_temp, __pyx_n_s_update); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1903, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      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);
        }
      }
      if (!__pyx_t_6) {
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v__attributes); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1903, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v__attributes};
          __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1903, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v__attributes};
          __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1903, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        {
          __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1903, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL;
          __Pyx_INCREF(__pyx_v__attributes);
          __Pyx_GIVEREF(__pyx_v__attributes);
          PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v__attributes);
          __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_7, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1903, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1904
 *             temp = dict(temp)
 *             temp.update(_attributes)
 *             _attributes = temp             # <<<<<<<<<<<<<<
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
 *         # arguments
 */
      __Pyx_TraceLine(1904,0,__PYX_ERR(0, 1904, __pyx_L1_error))
      __Pyx_INCREF(__pyx_v_temp);
      __Pyx_DECREF_SET(__pyx_v__attributes, __pyx_v_temp);

      /* "lxml/objectify.pyx":1901
 *         # reuse existing attributes unless redefined in attrib/_attributes
 *         temp = _value.attrib
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
 *             temp = dict(temp)
 *             temp.update(_attributes)
 */
    }

    /* "lxml/objectify.pyx":1907
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
 *         # arguments
 *         if _xsi is None and _pytype is None:             # <<<<<<<<<<<<<<
 *             _xsi = _attributes.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)
 */
    __Pyx_TraceLine(1907,0,__PYX_ERR(0, 1907, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v__xsi == Py_None);
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {
    } else {
      __pyx_t_1 = __pyx_t_3;
      goto __pyx_L22_bool_binop_done;
    }
    __pyx_t_3 = (__pyx_v__pytype == Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L22_bool_binop_done:;
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1908
 *         # arguments
 *         if _xsi is None and _pytype is None:
 *             _xsi = _attributes.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)             # <<<<<<<<<<<<<<
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)
 * 
 */
      __Pyx_TraceLine(1908,0,__PYX_ERR(0, 1908, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v__attributes, __pyx_n_s_get); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1908, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_7 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      if (!__pyx_t_7) {
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1908, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR};
          __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1908, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR};
          __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1908, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1908, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7); __pyx_t_7 = NULL;
          __Pyx_INCREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
          __Pyx_GIVEREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
          PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
          __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1908, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v__xsi, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1909
 *         if _xsi is None and _pytype is None:
 *             _xsi = _attributes.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)             # <<<<<<<<<<<<<<
 * 
 *     if _xsi is not None:
 */
      __Pyx_TraceLine(1909,0,__PYX_ERR(0, 1909, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v__attributes, __pyx_n_s_get); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1909, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1909, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      if (!__pyx_t_7) {
        __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1909, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_GOTREF(__pyx_t_4);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6};
          __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1909, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
          PyObject *__pyx_temp[2] = {__pyx_t_7, __pyx_t_6};
          __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1909, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        } else
        #endif
        {
          __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1909, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_8);
          __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL;
          __Pyx_GIVEREF(__pyx_t_6);
          PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6);
          __pyx_t_6 = 0;
          __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1909, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF_SET(__pyx_v__pytype, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1907
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
 *         # arguments
 *         if _xsi is None and _pytype is None:             # <<<<<<<<<<<<<<
 *             _xsi = _attributes.get(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)
 */
    }

    /* "lxml/objectify.pyx":1892
 *                 # special case: no change!
 *                 return _value.__copy__()
 *     if isinstance(_value, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
 *         # reuse existing nsmap unless redefined in nsmap parameter
 *         temp = _value.nsmap
 */
  }

  /* "lxml/objectify.pyx":1911
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)
 * 
 *     if _xsi is not None:             # <<<<<<<<<<<<<<
 *         if u':' in _xsi:
 *             prefix, name = _xsi.split(u':', 1)
 */
  __Pyx_TraceLine(1911,0,__PYX_ERR(0, 1911, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v__xsi != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1912
 * 
 *     if _xsi is not None:
 *         if u':' in _xsi:             # <<<<<<<<<<<<<<
 *             prefix, name = _xsi.split(u':', 1)
 *             ns = nsmap.get(prefix)
 */
    __Pyx_TraceLine(1912,0,__PYX_ERR(0, 1912, __pyx_L1_error))
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__44, __pyx_v__xsi, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1912, __pyx_L1_error)
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1913
 *     if _xsi is not None:
 *         if u':' in _xsi:
 *             prefix, name = _xsi.split(u':', 1)             # <<<<<<<<<<<<<<
 *             ns = nsmap.get(prefix)
 *             if ns != XML_SCHEMA_NS:
 */
      __Pyx_TraceLine(1913,0,__PYX_ERR(0, 1913, __pyx_L1_error))
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v__xsi, __pyx_n_s_split); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1913, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1913, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
        PyObject* sequence = __pyx_t_5;
        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, 1913, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        if (likely(PyTuple_CheckExact(sequence))) {
          __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
          __pyx_t_8 = PyTuple_GET_ITEM(sequence, 1); 
        } else {
          __pyx_t_4 = PyList_GET_ITEM(sequence, 0); 
          __pyx_t_8 = PyList_GET_ITEM(sequence, 1); 
        }
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_8);
        #else
        __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1913, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1913, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        #endif
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      } else {
        Py_ssize_t index = -1;
        __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1913, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_9 = Py_TYPE(__pyx_t_6)->tp_iternext;
        index = 0; __pyx_t_4 = __pyx_t_9(__pyx_t_6); if (unlikely(!__pyx_t_4)) goto __pyx_L26_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_4);
        index = 1; __pyx_t_8 = __pyx_t_9(__pyx_t_6); if (unlikely(!__pyx_t_8)) goto __pyx_L26_unpacking_failed;
        __Pyx_GOTREF(__pyx_t_8);
        if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_6), 2) < 0) __PYX_ERR(0, 1913, __pyx_L1_error)
        __pyx_t_9 = NULL;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        goto __pyx_L27_unpacking_done;
        __pyx_L26_unpacking_failed:;
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_9 = NULL;
        if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
        __PYX_ERR(0, 1913, __pyx_L1_error)
        __pyx_L27_unpacking_done:;
      }
      __pyx_v_prefix = __pyx_t_4;
      __pyx_t_4 = 0;
      __pyx_v_name = __pyx_t_8;
      __pyx_t_8 = 0;

      /* "lxml/objectify.pyx":1914
 *         if u':' in _xsi:
 *             prefix, name = _xsi.split(u':', 1)
 *             ns = nsmap.get(prefix)             # <<<<<<<<<<<<<<
 *             if ns != XML_SCHEMA_NS:
 *                 raise ValueError, u"XSD types require the XSD namespace"
 */
      __Pyx_TraceLine(1914,0,__PYX_ERR(0, 1914, __pyx_L1_error))
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_nsmap, __pyx_n_s_get); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1914, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_prefix); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1914, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_8)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_prefix};
          __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1914, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_5);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, __pyx_v_prefix};
          __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1914, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_5);
        } else
        #endif
        {
          __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1914, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(__pyx_v_prefix);
          __Pyx_GIVEREF(__pyx_v_prefix);
          PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v_prefix);
          __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1914, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_v_ns = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1915
 *             prefix, name = _xsi.split(u':', 1)
 *             ns = nsmap.get(prefix)
 *             if ns != XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         elif nsmap is _DEFAULT_NSMAP:
 */
      __Pyx_TraceLine(1915,0,__PYX_ERR(0, 1915, __pyx_L1_error))
      __pyx_t_5 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_NE); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1915, __pyx_L1_error)
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1915, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(__pyx_t_1)) {

        /* "lxml/objectify.pyx":1916
 *             ns = nsmap.get(prefix)
 *             if ns != XML_SCHEMA_NS:
 *                 raise ValueError, u"XSD types require the XSD namespace"             # <<<<<<<<<<<<<<
 *         elif nsmap is _DEFAULT_NSMAP:
 *             name = _xsi
 */
        __Pyx_TraceLine(1916,0,__PYX_ERR(0, 1916, __pyx_L1_error))
        __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_XSD_types_require_the_XSD_namesp, 0, 0);
        __PYX_ERR(0, 1916, __pyx_L1_error)

        /* "lxml/objectify.pyx":1915
 *             prefix, name = _xsi.split(u':', 1)
 *             ns = nsmap.get(prefix)
 *             if ns != XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         elif nsmap is _DEFAULT_NSMAP:
 */
      }

      /* "lxml/objectify.pyx":1912
 * 
 *     if _xsi is not None:
 *         if u':' in _xsi:             # <<<<<<<<<<<<<<
 *             prefix, name = _xsi.split(u':', 1)
 *             ns = nsmap.get(prefix)
 */
      goto __pyx_L25;
    }

    /* "lxml/objectify.pyx":1917
 *             if ns != XML_SCHEMA_NS:
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         elif nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
 *             name = _xsi
 *             _xsi = u'xsd:' + _xsi
 */
    __Pyx_TraceLine(1917,0,__PYX_ERR(0, 1917, __pyx_L1_error))
    __pyx_t_1 = (__pyx_v_nsmap == __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
    __pyx_t_2 = (__pyx_t_1 != 0);
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1918
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         elif nsmap is _DEFAULT_NSMAP:
 *             name = _xsi             # <<<<<<<<<<<<<<
 *             _xsi = u'xsd:' + _xsi
 *         else:
 */
      __Pyx_TraceLine(1918,0,__PYX_ERR(0, 1918, __pyx_L1_error))
      __Pyx_INCREF(__pyx_v__xsi);
      __pyx_v_name = __pyx_v__xsi;

      /* "lxml/objectify.pyx":1919
 *         elif nsmap is _DEFAULT_NSMAP:
 *             name = _xsi
 *             _xsi = u'xsd:' + _xsi             # <<<<<<<<<<<<<<
 *         else:
 *             name = _xsi
 */
      __Pyx_TraceLine(1919,0,__PYX_ERR(0, 1919, __pyx_L1_error))
      __pyx_t_5 = PyNumber_Add(__pyx_kp_u_xsd, __pyx_v__xsi); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1919, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF_SET(__pyx_v__xsi, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "lxml/objectify.pyx":1917
 *             if ns != XML_SCHEMA_NS:
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         elif nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
 *             name = _xsi
 *             _xsi = u'xsd:' + _xsi
 */
      goto __pyx_L25;
    }

    /* "lxml/objectify.pyx":1921
 *             _xsi = u'xsd:' + _xsi
 *         else:
 *             name = _xsi             # <<<<<<<<<<<<<<
 *             for prefix, ns in nsmap.items():
 *                 if ns == XML_SCHEMA_NS:
 */
    __Pyx_TraceLine(1921,0,__PYX_ERR(0, 1921, __pyx_L1_error))
    /*else*/ {
      __Pyx_INCREF(__pyx_v__xsi);
      __pyx_v_name = __pyx_v__xsi;

      /* "lxml/objectify.pyx":1922
 *         else:
 *             name = _xsi
 *             for prefix, ns in nsmap.items():             # <<<<<<<<<<<<<<
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:
 */
      __Pyx_TraceLine(1922,0,__PYX_ERR(0, 1922, __pyx_L1_error))
      __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_nsmap, __pyx_n_s_items); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1922, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_8);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_8, function);
        }
      }
      if (__pyx_t_6) {
        __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1922, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      } else {
        __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1922, __pyx_L1_error)
      }
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
        __pyx_t_8 = __pyx_t_5; __Pyx_INCREF(__pyx_t_8); __pyx_t_10 = 0;
        __pyx_t_11 = NULL;
      } else {
        __pyx_t_10 = -1; __pyx_t_8 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1922, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        __pyx_t_11 = Py_TYPE(__pyx_t_8)->tp_iternext; if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1922, __pyx_L1_error)
      }
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      for (;;) {
        if (likely(!__pyx_t_11)) {
          if (likely(PyList_CheckExact(__pyx_t_8))) {
            if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_8)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyList_GET_ITEM(__pyx_t_8, __pyx_t_10); __Pyx_INCREF(__pyx_t_5); __pyx_t_10++; if (unlikely(0 < 0)) __PYX_ERR(0, 1922, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_8, __pyx_t_10); __pyx_t_10++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1922, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          } else {
            if (__pyx_t_10 >= PyTuple_GET_SIZE(__pyx_t_8)) break;
            #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
            __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_8, __pyx_t_10); __Pyx_INCREF(__pyx_t_5); __pyx_t_10++; if (unlikely(0 < 0)) __PYX_ERR(0, 1922, __pyx_L1_error)
            #else
            __pyx_t_5 = PySequence_ITEM(__pyx_t_8, __pyx_t_10); __pyx_t_10++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1922, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            #endif
          }
        } else {
          __pyx_t_5 = __pyx_t_11(__pyx_t_8);
          if (unlikely(!__pyx_t_5)) {
            PyObject* exc_type = PyErr_Occurred();
            if (exc_type) {
              if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
              else __PYX_ERR(0, 1922, __pyx_L1_error)
            }
            break;
          }
          __Pyx_GOTREF(__pyx_t_5);
        }
        if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
          PyObject* sequence = __pyx_t_5;
          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, 1922, __pyx_L1_error)
          }
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          if (likely(PyTuple_CheckExact(sequence))) {
            __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
          } else {
            __pyx_t_6 = PyList_GET_ITEM(sequence, 0); 
            __pyx_t_4 = PyList_GET_ITEM(sequence, 1); 
          }
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_4);
          #else
          __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1922, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_6);
          __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1922, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_4);
          #endif
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        } else {
          Py_ssize_t index = -1;
          __pyx_t_7 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1922, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
          __pyx_t_9 = Py_TYPE(__pyx_t_7)->tp_iternext;
          index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L31_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_6);
          index = 1; __pyx_t_4 = __pyx_t_9(__pyx_t_7); if (unlikely(!__pyx_t_4)) goto __pyx_L31_unpacking_failed;
          __Pyx_GOTREF(__pyx_t_4);
          if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_7), 2) < 0) __PYX_ERR(0, 1922, __pyx_L1_error)
          __pyx_t_9 = NULL;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          goto __pyx_L32_unpacking_done;
          __pyx_L31_unpacking_failed:;
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
          __pyx_t_9 = NULL;
          if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
          __PYX_ERR(0, 1922, __pyx_L1_error)
          __pyx_L32_unpacking_done:;
        }
        __Pyx_XDECREF_SET(__pyx_v_prefix, __pyx_t_6);
        __pyx_t_6 = 0;
        __Pyx_XDECREF_SET(__pyx_v_ns, __pyx_t_4);
        __pyx_t_4 = 0;

        /* "lxml/objectify.pyx":1923
 *             name = _xsi
 *             for prefix, ns in nsmap.items():
 *                 if ns == XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
 *                     if prefix is not None and prefix:
 *                         _xsi = prefix + u':' + _xsi
 */
        __Pyx_TraceLine(1923,0,__PYX_ERR(0, 1923, __pyx_L1_error))
        __pyx_t_5 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1923, __pyx_L1_error)
        __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1923, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (__pyx_t_2) {

          /* "lxml/objectify.pyx":1924
 *             for prefix, ns in nsmap.items():
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:             # <<<<<<<<<<<<<<
 *                         _xsi = prefix + u':' + _xsi
 *                     break
 */
          __Pyx_TraceLine(1924,0,__PYX_ERR(0, 1924, __pyx_L1_error))
          __pyx_t_1 = (__pyx_v_prefix != Py_None);
          __pyx_t_3 = (__pyx_t_1 != 0);
          if (__pyx_t_3) {
          } else {
            __pyx_t_2 = __pyx_t_3;
            goto __pyx_L35_bool_binop_done;
          }
          __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_prefix); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1924, __pyx_L1_error)
          __pyx_t_2 = __pyx_t_3;
          __pyx_L35_bool_binop_done:;
          if (__pyx_t_2) {

            /* "lxml/objectify.pyx":1925
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:
 *                         _xsi = prefix + u':' + _xsi             # <<<<<<<<<<<<<<
 *                     break
 *             else:
 */
            __Pyx_TraceLine(1925,0,__PYX_ERR(0, 1925, __pyx_L1_error))
            __pyx_t_5 = PyNumber_Add(__pyx_v_prefix, __pyx_kp_u__44); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1925, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_5);
            __pyx_t_4 = PyNumber_Add(__pyx_t_5, __pyx_v__xsi); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1925, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF_SET(__pyx_v__xsi, __pyx_t_4);
            __pyx_t_4 = 0;

            /* "lxml/objectify.pyx":1924
 *             for prefix, ns in nsmap.items():
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:             # <<<<<<<<<<<<<<
 *                         _xsi = prefix + u':' + _xsi
 *                     break
 */
          }

          /* "lxml/objectify.pyx":1926
 *                     if prefix is not None and prefix:
 *                         _xsi = prefix + u':' + _xsi
 *                     break             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError, u"XSD types require the XSD namespace"
 */
          __Pyx_TraceLine(1926,0,__PYX_ERR(0, 1926, __pyx_L1_error))
          goto __pyx_L30_break;

          /* "lxml/objectify.pyx":1923
 *             name = _xsi
 *             for prefix, ns in nsmap.items():
 *                 if ns == XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
 *                     if prefix is not None and prefix:
 *                         _xsi = prefix + u':' + _xsi
 */
        }

        /* "lxml/objectify.pyx":1922
 *         else:
 *             name = _xsi
 *             for prefix, ns in nsmap.items():             # <<<<<<<<<<<<<<
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:
 */
        __Pyx_TraceLine(1922,0,__PYX_ERR(0, 1922, __pyx_L1_error))
      }
      /*else*/ {

        /* "lxml/objectify.pyx":1928
 *                     break
 *             else:
 *                 raise ValueError, u"XSD types require the XSD namespace"             # <<<<<<<<<<<<<<
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi
 *         if _pytype is None:
 */
        __Pyx_TraceLine(1928,0,__PYX_ERR(0, 1928, __pyx_L1_error))
        __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_XSD_types_require_the_XSD_namesp, 0, 0);
        __PYX_ERR(0, 1928, __pyx_L1_error)
      }

      /* "lxml/objectify.pyx":1922
 *         else:
 *             name = _xsi
 *             for prefix, ns in nsmap.items():             # <<<<<<<<<<<<<<
 *                 if ns == XML_SCHEMA_NS:
 *                     if prefix is not None and prefix:
 */
      __Pyx_TraceLine(1922,0,__PYX_ERR(0, 1922, __pyx_L1_error))
      __pyx_L30_break:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    }
    __pyx_L25:;

    /* "lxml/objectify.pyx":1929
 *             else:
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi             # <<<<<<<<<<<<<<
 *         if _pytype is None:
 *             # allow using unregistered or even wrong xsi:type names
 */
    __Pyx_TraceLine(1929,0,__PYX_ERR(0, 1929, __pyx_L1_error))
    if (unlikely(PyObject_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR, __pyx_v__xsi) < 0)) __PYX_ERR(0, 1929, __pyx_L1_error)

    /* "lxml/objectify.pyx":1930
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi
 *         if _pytype is None:             # <<<<<<<<<<<<<<
 *             # allow using unregistered or even wrong xsi:type names
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)
 */
    __Pyx_TraceLine(1930,0,__PYX_ERR(0, 1930, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v__pytype == Py_None);
    __pyx_t_3 = (__pyx_t_2 != 0);
    if (__pyx_t_3) {

      /* "lxml/objectify.pyx":1932
 *         if _pytype is None:
 *             # allow using unregistered or even wrong xsi:type names
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)             # <<<<<<<<<<<<<<
 *             if py_type is None:
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 */
      __Pyx_TraceLine(1932,0,__PYX_ERR(0, 1932, __pyx_L1_error))
      if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 1932, __pyx_L1_error)
      }
      __pyx_t_8 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v__xsi, Py_None); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1932, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_4 = __pyx_t_8;
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_v_py_type = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
      __pyx_t_4 = 0;

      /* "lxml/objectify.pyx":1933
 *             # allow using unregistered or even wrong xsi:type names
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)
 *             if py_type is None:             # <<<<<<<<<<<<<<
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 *             if py_type is not None:
 */
      __Pyx_TraceLine(1933,0,__PYX_ERR(0, 1933, __pyx_L1_error))
      __pyx_t_3 = (((PyObject *)__pyx_v_py_type) == Py_None);
      __pyx_t_2 = (__pyx_t_3 != 0);
      if (__pyx_t_2) {

        /* "lxml/objectify.pyx":1934
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)
 *             if py_type is None:
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)             # <<<<<<<<<<<<<<
 *             if py_type is not None:
 *                 _pytype = py_type.name
 */
        __Pyx_TraceLine(1934,0,__PYX_ERR(0, 1934, __pyx_L1_error))
        if (unlikely(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT == Py_None)) {
          PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
          __PYX_ERR(0, 1934, __pyx_L1_error)
        }
        __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_name, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1934, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = __pyx_t_4;
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF_SET(__pyx_v_py_type, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_8));
        __pyx_t_8 = 0;

        /* "lxml/objectify.pyx":1933
 *             # allow using unregistered or even wrong xsi:type names
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)
 *             if py_type is None:             # <<<<<<<<<<<<<<
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 *             if py_type is not None:
 */
      }

      /* "lxml/objectify.pyx":1935
 *             if py_type is None:
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 _pytype = py_type.name
 * 
 */
      __Pyx_TraceLine(1935,0,__PYX_ERR(0, 1935, __pyx_L1_error))
      __pyx_t_2 = (((PyObject *)__pyx_v_py_type) != Py_None);
      __pyx_t_3 = (__pyx_t_2 != 0);
      if (__pyx_t_3) {

        /* "lxml/objectify.pyx":1936
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 *             if py_type is not None:
 *                 _pytype = py_type.name             # <<<<<<<<<<<<<<
 * 
 *     if _pytype is None:
 */
        __Pyx_TraceLine(1936,0,__PYX_ERR(0, 1936, __pyx_L1_error))
        __pyx_t_8 = __pyx_v_py_type->name;
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_DECREF_SET(__pyx_v__pytype, __pyx_t_8);
        __pyx_t_8 = 0;

        /* "lxml/objectify.pyx":1935
 *             if py_type is None:
 *                 py_type = <PyType>_SCHEMA_TYPE_DICT.get(name)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 _pytype = py_type.name
 * 
 */
      }

      /* "lxml/objectify.pyx":1930
 *                 raise ValueError, u"XSD types require the XSD namespace"
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi
 *         if _pytype is None:             # <<<<<<<<<<<<<<
 *             # allow using unregistered or even wrong xsi:type names
 *             py_type = <PyType>_SCHEMA_TYPE_DICT.get(_xsi)
 */
    }

    /* "lxml/objectify.pyx":1911
 *             _pytype = _attributes.get(PYTYPE_ATTRIBUTE)
 * 
 *     if _xsi is not None:             # <<<<<<<<<<<<<<
 *         if u':' in _xsi:
 *             prefix, name = _xsi.split(u':', 1)
 */
  }

  /* "lxml/objectify.pyx":1938
 *                 _pytype = py_type.name
 * 
 *     if _pytype is None:             # <<<<<<<<<<<<<<
 *         _pytype = _pytypename(_value)
 * 
 */
  __Pyx_TraceLine(1938,0,__PYX_ERR(0, 1938, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v__pytype == Py_None);
  __pyx_t_2 = (__pyx_t_3 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1939
 * 
 *     if _pytype is None:
 *         _pytype = _pytypename(_value)             # <<<<<<<<<<<<<<
 * 
 *     if _value is None and _pytype != u"str":
 */
    __Pyx_TraceLine(1939,0,__PYX_ERR(0, 1939, __pyx_L1_error))
    __pyx_t_8 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v__value); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1939, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF_SET(__pyx_v__pytype, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "lxml/objectify.pyx":1938
 *                 _pytype = py_type.name
 * 
 *     if _pytype is None:             # <<<<<<<<<<<<<<
 *         _pytype = _pytypename(_value)
 * 
 */
  }

  /* "lxml/objectify.pyx":1941
 *         _pytype = _pytypename(_value)
 * 
 *     if _value is None and _pytype != u"str":             # <<<<<<<<<<<<<<
 *         _pytype = _pytype or u"NoneType"
 *         strval = None
 */
  __Pyx_TraceLine(1941,0,__PYX_ERR(0, 1941, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v__value == Py_None);
  __pyx_t_1 = (__pyx_t_3 != 0);
  if (__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L43_bool_binop_done;
  }
  __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v__pytype, __pyx_n_u_str, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1941, __pyx_L1_error)
  __pyx_t_2 = __pyx_t_1;
  __pyx_L43_bool_binop_done:;
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1942
 * 
 *     if _value is None and _pytype != u"str":
 *         _pytype = _pytype or u"NoneType"             # <<<<<<<<<<<<<<
 *         strval = None
 *     elif python._isString(_value):
 */
    __Pyx_TraceLine(1942,0,__PYX_ERR(0, 1942, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v__pytype); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1942, __pyx_L1_error)
    if (!__pyx_t_2) {
    } else {
      __Pyx_INCREF(__pyx_v__pytype);
      __pyx_t_8 = __pyx_v__pytype;
      goto __pyx_L45_bool_binop_done;
    }
    __Pyx_INCREF(__pyx_n_u_NoneType);
    __pyx_t_8 = __pyx_n_u_NoneType;
    __pyx_L45_bool_binop_done:;
    __Pyx_DECREF_SET(__pyx_v__pytype, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "lxml/objectify.pyx":1943
 *     if _value is None and _pytype != u"str":
 *         _pytype = _pytype or u"NoneType"
 *         strval = None             # <<<<<<<<<<<<<<
 *     elif python._isString(_value):
 *         strval = _value
 */
    __Pyx_TraceLine(1943,0,__PYX_ERR(0, 1943, __pyx_L1_error))
    __Pyx_INCREF(Py_None);
    __pyx_v_strval = Py_None;

    /* "lxml/objectify.pyx":1941
 *         _pytype = _pytypename(_value)
 * 
 *     if _value is None and _pytype != u"str":             # <<<<<<<<<<<<<<
 *         _pytype = _pytype or u"NoneType"
 *         strval = None
 */
    goto __pyx_L42;
  }

  /* "lxml/objectify.pyx":1944
 *         _pytype = _pytype or u"NoneType"
 *         strval = None
 *     elif python._isString(_value):             # <<<<<<<<<<<<<<
 *         strval = _value
 *     elif isinstance(_value, bool):
 */
  __Pyx_TraceLine(1944,0,__PYX_ERR(0, 1944, __pyx_L1_error))
  __pyx_t_2 = (_isString(__pyx_v__value) != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1945
 *         strval = None
 *     elif python._isString(_value):
 *         strval = _value             # <<<<<<<<<<<<<<
 *     elif isinstance(_value, bool):
 *         if _value:
 */
    __Pyx_TraceLine(1945,0,__PYX_ERR(0, 1945, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v__value);
    __pyx_v_strval = __pyx_v__value;

    /* "lxml/objectify.pyx":1944
 *         _pytype = _pytype or u"NoneType"
 *         strval = None
 *     elif python._isString(_value):             # <<<<<<<<<<<<<<
 *         strval = _value
 *     elif isinstance(_value, bool):
 */
    goto __pyx_L42;
  }

  /* "lxml/objectify.pyx":1946
 *     elif python._isString(_value):
 *         strval = _value
 *     elif isinstance(_value, bool):             # <<<<<<<<<<<<<<
 *         if _value:
 *             strval = u"true"
 */
  __Pyx_TraceLine(1946,0,__PYX_ERR(0, 1946, __pyx_L1_error))
  __pyx_t_8 = ((PyObject*)&PyBool_Type);
  __Pyx_INCREF(__pyx_t_8);
  __pyx_t_2 = PyObject_IsInstance(__pyx_v__value, __pyx_t_8); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1946, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "lxml/objectify.pyx":1947
 *         strval = _value
 *     elif isinstance(_value, bool):
 *         if _value:             # <<<<<<<<<<<<<<
 *             strval = u"true"
 *         else:
 */
    __Pyx_TraceLine(1947,0,__PYX_ERR(0, 1947, __pyx_L1_error))
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v__value); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1947, __pyx_L1_error)
    if (__pyx_t_1) {

      /* "lxml/objectify.pyx":1948
 *     elif isinstance(_value, bool):
 *         if _value:
 *             strval = u"true"             # <<<<<<<<<<<<<<
 *         else:
 *             strval = u"false"
 */
      __Pyx_TraceLine(1948,0,__PYX_ERR(0, 1948, __pyx_L1_error))
      __Pyx_INCREF(__pyx_n_u_true);
      __pyx_v_strval = __pyx_n_u_true;

      /* "lxml/objectify.pyx":1947
 *         strval = _value
 *     elif isinstance(_value, bool):
 *         if _value:             # <<<<<<<<<<<<<<
 *             strval = u"true"
 *         else:
 */
      goto __pyx_L47;
    }

    /* "lxml/objectify.pyx":1950
 *             strval = u"true"
 *         else:
 *             strval = u"false"             # <<<<<<<<<<<<<<
 *     else:
 *         py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 */
    __Pyx_TraceLine(1950,0,__PYX_ERR(0, 1950, __pyx_L1_error))
    /*else*/ {
      __Pyx_INCREF(__pyx_n_u_false);
      __pyx_v_strval = __pyx_n_u_false;
    }
    __pyx_L47:;

    /* "lxml/objectify.pyx":1946
 *     elif python._isString(_value):
 *         strval = _value
 *     elif isinstance(_value, bool):             # <<<<<<<<<<<<<<
 *         if _value:
 *             strval = u"true"
 */
    goto __pyx_L42;
  }

  /* "lxml/objectify.pyx":1952
 *             strval = u"false"
 *     else:
 *         py_type = <PyType>_PYTYPE_DICT.get(_pytype)             # <<<<<<<<<<<<<<
 *         stringify = unicode if py_type is None else py_type.stringify
 *         strval = stringify(_value)
 */
  __Pyx_TraceLine(1952,0,__PYX_ERR(0, 1952, __pyx_L1_error))
  /*else*/ {
    if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
      __PYX_ERR(0, 1952, __pyx_L1_error)
    }
    __pyx_t_8 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v__pytype, Py_None); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1952, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_4 = __pyx_t_8;
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF_SET(__pyx_v_py_type, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1953
 *     else:
 *         py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *         stringify = unicode if py_type is None else py_type.stringify             # <<<<<<<<<<<<<<
 *         strval = stringify(_value)
 * 
 */
    __Pyx_TraceLine(1953,0,__PYX_ERR(0, 1953, __pyx_L1_error))
    __pyx_t_1 = (((PyObject *)__pyx_v_py_type) == Py_None);
    if ((__pyx_t_1 != 0)) {
      __Pyx_INCREF(((PyObject *)(&PyUnicode_Type)));
      __pyx_t_4 = ((PyObject *)(&PyUnicode_Type));
    } else {
      __Pyx_INCREF(__pyx_v_py_type->stringify);
      __pyx_t_4 = __pyx_v_py_type->stringify;
    }
    __pyx_v_stringify = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "lxml/objectify.pyx":1954
 *         py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *         stringify = unicode if py_type is None else py_type.stringify
 *         strval = stringify(_value)             # <<<<<<<<<<<<<<
 * 
 *     if _pytype is not None:
 */
    __Pyx_TraceLine(1954,0,__PYX_ERR(0, 1954, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_stringify);
    __pyx_t_8 = __pyx_v_stringify; __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    if (!__pyx_t_5) {
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v__value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1954, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
    } else {
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_8)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v__value};
        __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1954, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_4);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_8)) {
        PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v__value};
        __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_8, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1954, __pyx_L1_error)
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        __Pyx_GOTREF(__pyx_t_4);
      } else
      #endif
      {
        __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1954, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL;
        __Pyx_INCREF(__pyx_v__value);
        __Pyx_GIVEREF(__pyx_v__value);
        PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_v__value);
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_6, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1954, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      }
    }
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_v_strval = __pyx_t_4;
    __pyx_t_4 = 0;
  }
  __pyx_L42:;

  /* "lxml/objectify.pyx":1956
 *         strval = stringify(_value)
 * 
 *     if _pytype is not None:             # <<<<<<<<<<<<<<
 *         if _pytype == u"NoneType" or _pytype == u"none":
 *             strval = None
 */
  __Pyx_TraceLine(1956,0,__PYX_ERR(0, 1956, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v__pytype != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "lxml/objectify.pyx":1957
 * 
 *     if _pytype is not None:
 *         if _pytype == u"NoneType" or _pytype == u"none":             # <<<<<<<<<<<<<<
 *             strval = None
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"
 */
    __Pyx_TraceLine(1957,0,__PYX_ERR(0, 1957, __pyx_L1_error))
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v__pytype, __pyx_n_u_NoneType, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1957, __pyx_L1_error)
    if (!__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L50_bool_binop_done;
    }
    __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v__pytype, __pyx_n_u_none, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1957, __pyx_L1_error)
    __pyx_t_2 = __pyx_t_1;
    __pyx_L50_bool_binop_done:;
    if (__pyx_t_2) {

      /* "lxml/objectify.pyx":1958
 *     if _pytype is not None:
 *         if _pytype == u"NoneType" or _pytype == u"none":
 *             strval = None             # <<<<<<<<<<<<<<
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"
 *         else:
 */
      __Pyx_TraceLine(1958,0,__PYX_ERR(0, 1958, __pyx_L1_error))
      __Pyx_INCREF(Py_None);
      __Pyx_DECREF_SET(__pyx_v_strval, Py_None);

      /* "lxml/objectify.pyx":1959
 *         if _pytype == u"NoneType" or _pytype == u"none":
 *             strval = None
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"             # <<<<<<<<<<<<<<
 *         else:
 *             # check if type information from arguments is valid
 */
      __Pyx_TraceLine(1959,0,__PYX_ERR(0, 1959, __pyx_L1_error))
      if (unlikely(PyObject_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, __pyx_n_u_true) < 0)) __PYX_ERR(0, 1959, __pyx_L1_error)

      /* "lxml/objectify.pyx":1957
 * 
 *     if _pytype is not None:
 *         if _pytype == u"NoneType" or _pytype == u"none":             # <<<<<<<<<<<<<<
 *             strval = None
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"
 */
      goto __pyx_L49;
    }

    /* "lxml/objectify.pyx":1962
 *         else:
 *             # check if type information from arguments is valid
 *             py_type = <PyType>_PYTYPE_DICT.get(_pytype)             # <<<<<<<<<<<<<<
 *             if py_type is not None:
 *                 if py_type.type_check is not None:
 */
    __Pyx_TraceLine(1962,0,__PYX_ERR(0, 1962, __pyx_L1_error))
    /*else*/ {
      if (unlikely(__pyx_v_4lxml_9objectify__PYTYPE_DICT == Py_None)) {
        PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "get");
        __PYX_ERR(0, 1962, __pyx_L1_error)
      }
      __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v__pytype, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1962, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = __pyx_t_4;
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF_SET(__pyx_v_py_type, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "lxml/objectify.pyx":1963
 *             # check if type information from arguments is valid
 *             py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 if py_type.type_check is not None:
 *                     py_type.type_check(strval)
 */
      __Pyx_TraceLine(1963,0,__PYX_ERR(0, 1963, __pyx_L1_error))
      __pyx_t_2 = (((PyObject *)__pyx_v_py_type) != Py_None);
      __pyx_t_1 = (__pyx_t_2 != 0);
      if (__pyx_t_1) {

        /* "lxml/objectify.pyx":1964
 *             py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *             if py_type is not None:
 *                 if py_type.type_check is not None:             # <<<<<<<<<<<<<<
 *                     py_type.type_check(strval)
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
 */
        __Pyx_TraceLine(1964,0,__PYX_ERR(0, 1964, __pyx_L1_error))
        __pyx_t_1 = (__pyx_v_py_type->type_check != Py_None);
        __pyx_t_2 = (__pyx_t_1 != 0);
        if (__pyx_t_2) {

          /* "lxml/objectify.pyx":1965
 *             if py_type is not None:
 *                 if py_type.type_check is not None:
 *                     py_type.type_check(strval)             # <<<<<<<<<<<<<<
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
 * 
 */
          __Pyx_TraceLine(1965,0,__PYX_ERR(0, 1965, __pyx_L1_error))
          __Pyx_INCREF(__pyx_v_py_type->type_check);
          __pyx_t_4 = __pyx_v_py_type->type_check; __pyx_t_6 = NULL;
          if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
            __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
            if (likely(__pyx_t_6)) {
              PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
              __Pyx_INCREF(__pyx_t_6);
              __Pyx_INCREF(function);
              __Pyx_DECREF_SET(__pyx_t_4, function);
            }
          }
          if (!__pyx_t_6) {
            __pyx_t_8 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_strval); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1965, __pyx_L1_error)
            __Pyx_GOTREF(__pyx_t_8);
          } else {
            #if CYTHON_FAST_PYCALL
            if (PyFunction_Check(__pyx_t_4)) {
              PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_strval};
              __pyx_t_8 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1965, __pyx_L1_error)
              __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
              __Pyx_GOTREF(__pyx_t_8);
            } else
            #endif
            #if CYTHON_FAST_PYCCALL
            if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
              PyObject *__pyx_temp[2] = {__pyx_t_6, __pyx_v_strval};
              __pyx_t_8 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1965, __pyx_L1_error)
              __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
              __Pyx_GOTREF(__pyx_t_8);
            } else
            #endif
            {
              __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1965, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_5);
              __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6); __pyx_t_6 = NULL;
              __Pyx_INCREF(__pyx_v_strval);
              __Pyx_GIVEREF(__pyx_v_strval);
              PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_strval);
              __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1965, __pyx_L1_error)
              __Pyx_GOTREF(__pyx_t_8);
              __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            }
          }
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

          /* "lxml/objectify.pyx":1964
 *             py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *             if py_type is not None:
 *                 if py_type.type_check is not None:             # <<<<<<<<<<<<<<
 *                     py_type.type_check(strval)
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
 */
        }

        /* "lxml/objectify.pyx":1966
 *                 if py_type.type_check is not None:
 *                     py_type.type_check(strval)
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype             # <<<<<<<<<<<<<<
 * 
 *     return _makeElement(u"value", strval, _attributes, nsmap)
 */
        __Pyx_TraceLine(1966,0,__PYX_ERR(0, 1966, __pyx_L1_error))
        __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1966, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_8);
        if (unlikely(PyObject_SetItem(__pyx_v__attributes, __pyx_t_8, __pyx_v__pytype) < 0)) __PYX_ERR(0, 1966, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;

        /* "lxml/objectify.pyx":1963
 *             # check if type information from arguments is valid
 *             py_type = <PyType>_PYTYPE_DICT.get(_pytype)
 *             if py_type is not None:             # <<<<<<<<<<<<<<
 *                 if py_type.type_check is not None:
 *                     py_type.type_check(strval)
 */
      }
    }
    __pyx_L49:;

    /* "lxml/objectify.pyx":1956
 *         strval = stringify(_value)
 * 
 *     if _pytype is not None:             # <<<<<<<<<<<<<<
 *         if _pytype == u"NoneType" or _pytype == u"none":
 *             strval = None
 */
  }

  /* "lxml/objectify.pyx":1968
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
 * 
 *     return _makeElement(u"value", strval, _attributes, nsmap)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(1968,0,__PYX_ERR(0, 1968, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_8 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(__pyx_n_u_value, __pyx_v_strval, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_r = __pyx_t_8;
  __pyx_t_8 = 0;
  goto __pyx_L0;

  /* "lxml/objectify.pyx":1865
 *     return _makeElement(_tag, None, _attributes, nsmap)
 * 
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,             # <<<<<<<<<<<<<<
 *                 **_attributes):
 *     u"""DataElement(_value, attrib=None, nsmap=None, _pytype=None, _xsi=None, **_attributes)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify.DataElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__attributes);
  __Pyx_XDECREF(__pyx_v_temp);
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF((PyObject *)__pyx_v_py_type);
  __Pyx_XDECREF(__pyx_v_strval);
  __Pyx_XDECREF(__pyx_v_stringify);
  __Pyx_XDECREF(__pyx_v_attrib);
  __Pyx_XDECREF(__pyx_v_nsmap);
  __Pyx_XDECREF(__pyx_v__pytype);
  __Pyx_XDECREF(__pyx_v__xsi);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":24
 *     cdef _ObjectPath*  _c_path
 *     cdef Py_ssize_t _path_len
 *     def __init__(self, path):             # <<<<<<<<<<<<<<
 *         if python._isString(path):
 *             self._path = _parse_object_path_string(path)
 */

/* Python wrapper */
static int __pyx_pw_4lxml_9objectify_10ObjectPath_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_4lxml_9objectify_10ObjectPath_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_path = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_path,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(1, 24, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_path = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 24, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath___init__(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self), __pyx_v_path);

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

static int __pyx_pf_4lxml_9objectify_10ObjectPath___init__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, PyObject *__pyx_v_path) {
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_t_4;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_TraceCall("__init__", __pyx_f[1], 24, 0, __PYX_ERR(1, 24, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":25
 *     cdef Py_ssize_t _path_len
 *     def __init__(self, path):
 *         if python._isString(path):             # <<<<<<<<<<<<<<
 *             self._path = _parse_object_path_string(path)
 *             self._path_str = path
 */
  __Pyx_TraceLine(25,0,__PYX_ERR(1, 25, __pyx_L1_error))
  __pyx_t_1 = (_isString(__pyx_v_path) != 0);
  if (__pyx_t_1) {

    /* "src/lxml/objectpath.pxi":26
 *     def __init__(self, path):
 *         if python._isString(path):
 *             self._path = _parse_object_path_string(path)             # <<<<<<<<<<<<<<
 *             self._path_str = path
 *         else:
 */
    __Pyx_TraceLine(26,0,__PYX_ERR(1, 26, __pyx_L1_error))
    __pyx_t_2 = __pyx_f_4lxml_9objectify__parse_object_path_string(__pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 26, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->_path);
    __Pyx_DECREF(__pyx_v_self->_path);
    __pyx_v_self->_path = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/lxml/objectpath.pxi":27
 *         if python._isString(path):
 *             self._path = _parse_object_path_string(path)
 *             self._path_str = path             # <<<<<<<<<<<<<<
 *         else:
 *             self._path = _parse_object_path_list(path)
 */
    __Pyx_TraceLine(27,0,__PYX_ERR(1, 27, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_path);
    __Pyx_GIVEREF(__pyx_v_path);
    __Pyx_GOTREF(__pyx_v_self->_path_str);
    __Pyx_DECREF(__pyx_v_self->_path_str);
    __pyx_v_self->_path_str = __pyx_v_path;

    /* "src/lxml/objectpath.pxi":25
 *     cdef Py_ssize_t _path_len
 *     def __init__(self, path):
 *         if python._isString(path):             # <<<<<<<<<<<<<<
 *             self._path = _parse_object_path_string(path)
 *             self._path_str = path
 */
    goto __pyx_L3;
  }

  /* "src/lxml/objectpath.pxi":29
 *             self._path_str = path
 *         else:
 *             self._path = _parse_object_path_list(path)             # <<<<<<<<<<<<<<
 *             self._path_str = u'.'.join(path)
 *         self._path_len = len(self._path)
 */
  __Pyx_TraceLine(29,0,__PYX_ERR(1, 29, __pyx_L1_error))
  /*else*/ {
    __pyx_t_2 = __pyx_f_4lxml_9objectify__parse_object_path_list(__pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 29, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->_path);
    __Pyx_DECREF(__pyx_v_self->_path);
    __pyx_v_self->_path = ((PyObject*)__pyx_t_2);
    __pyx_t_2 = 0;

    /* "src/lxml/objectpath.pxi":30
 *         else:
 *             self._path = _parse_object_path_list(path)
 *             self._path_str = u'.'.join(path)             # <<<<<<<<<<<<<<
 *         self._path_len = len(self._path)
 *         self._c_path = _build_object_path_segments(self._path)
 */
    __Pyx_TraceLine(30,0,__PYX_ERR(1, 30, __pyx_L1_error))
    __pyx_t_2 = PyUnicode_Join(__pyx_kp_u__9, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 30, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(__pyx_v_self->_path_str);
    __Pyx_DECREF(__pyx_v_self->_path_str);
    __pyx_v_self->_path_str = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L3:;

  /* "src/lxml/objectpath.pxi":31
 *             self._path = _parse_object_path_list(path)
 *             self._path_str = u'.'.join(path)
 *         self._path_len = len(self._path)             # <<<<<<<<<<<<<<
 *         self._c_path = _build_object_path_segments(self._path)
 *         self.find = self.__call__
 */
  __Pyx_TraceLine(31,0,__PYX_ERR(1, 31, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_self->_path;
  __Pyx_INCREF(__pyx_t_2);
  if (unlikely(__pyx_t_2 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 31, __pyx_L1_error)
  }
  __pyx_t_3 = PyList_GET_SIZE(__pyx_t_2); if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(1, 31, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_path_len = __pyx_t_3;

  /* "src/lxml/objectpath.pxi":32
 *             self._path_str = u'.'.join(path)
 *         self._path_len = len(self._path)
 *         self._c_path = _build_object_path_segments(self._path)             # <<<<<<<<<<<<<<
 *         self.find = self.__call__
 * 
 */
  __Pyx_TraceLine(32,0,__PYX_ERR(1, 32, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_self->_path;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_4 = __pyx_f_4lxml_9objectify__build_object_path_segments(((PyObject*)__pyx_t_2)); if (unlikely(__pyx_t_4 == ((__pyx_t_4lxml_9objectify__ObjectPath *)NULL))) __PYX_ERR(1, 32, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_self->_c_path = __pyx_t_4;

  /* "src/lxml/objectpath.pxi":33
 *         self._path_len = len(self._path)
 *         self._c_path = _build_object_path_segments(self._path)
 *         self.find = self.__call__             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __Pyx_TraceLine(33,0,__PYX_ERR(1, 33, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_call); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 33, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(__pyx_v_self->find);
  __Pyx_DECREF(__pyx_v_self->find);
  __pyx_v_self->find = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "src/lxml/objectpath.pxi":24
 *     cdef _ObjectPath*  _c_path
 *     cdef Py_ssize_t _path_len
 *     def __init__(self, path):             # <<<<<<<<<<<<<<
 *         if python._isString(path):
 *             self._path = _parse_object_path_string(path)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":35
 *         self.find = self.__call__
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._c_path is not NULL:
 *             python.lxml_free(self._c_path)
 */

/* Python wrapper */
static void __pyx_pw_4lxml_9objectify_10ObjectPath_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_4lxml_9objectify_10ObjectPath_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_4lxml_9objectify_10ObjectPath_2__dealloc__(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self));

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

static void __pyx_pf_4lxml_9objectify_10ObjectPath_2__dealloc__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self) {
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);
  __Pyx_TraceCall("__dealloc__", __pyx_f[1], 35, 0, __PYX_ERR(1, 35, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":36
 * 
 *     def __dealloc__(self):
 *         if self._c_path is not NULL:             # <<<<<<<<<<<<<<
 *             python.lxml_free(self._c_path)
 * 
 */
  __Pyx_TraceLine(36,0,__PYX_ERR(1, 36, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_self->_c_path != NULL) != 0);
  if (__pyx_t_1) {

    /* "src/lxml/objectpath.pxi":37
 *     def __dealloc__(self):
 *         if self._c_path is not NULL:
 *             python.lxml_free(self._c_path)             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
    __Pyx_TraceLine(37,0,__PYX_ERR(1, 37, __pyx_L1_error))
    lxml_free(__pyx_v_self->_c_path);

    /* "src/lxml/objectpath.pxi":36
 * 
 *     def __dealloc__(self):
 *         if self._c_path is not NULL:             # <<<<<<<<<<<<<<
 *             python.lxml_free(self._c_path)
 * 
 */
  }

  /* "src/lxml/objectpath.pxi":35
 *         self.find = self.__call__
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         if self._c_path is not NULL:
 *             python.lxml_free(self._c_path)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("lxml.objectify.ObjectPath.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
}

/* "src/lxml/objectpath.pxi":39
 *             python.lxml_free(self._c_path)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self._path_str
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_4__str__(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_4__str__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__", 0);
  __Pyx_TraceCall("__str__", __pyx_f[1], 39, 0, __PYX_ERR(1, 39, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":40
 * 
 *     def __str__(self):
 *         return self._path_str             # <<<<<<<<<<<<<<
 * 
 *     def __call__(self, _Element root not None, *_default):
 */
  __Pyx_TraceLine(40,0,__PYX_ERR(1, 40, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_path_str);
  __pyx_r = __pyx_v_self->_path_str;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":39
 *             python.lxml_free(self._c_path)
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self._path_str
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":42
 *         return self._path_str
 * 
 *     def __call__(self, _Element root not None, *_default):             # <<<<<<<<<<<<<<
 *         u"""Follow the attribute path in the object structure and return the
 *         target attribute value.
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_7__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_10ObjectPath_6__call__[] = "Follow the attribute path in the object structure and return the\n        target attribute value.\n\n        If it it not found, either returns a default value (if one was passed\n        as second argument) or raises AttributeError.\n        ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_4lxml_9objectify_10ObjectPath_6__call__;
#endif
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_7__call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct LxmlElement *__pyx_v_root = 0;
  PyObject *__pyx_v__default = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__call__ (wrapper)", 0);
  if (PyTuple_GET_SIZE(__pyx_args) > 1) {
    __pyx_v__default = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args));
    if (unlikely(!__pyx_v__default)) {
      __Pyx_RefNannyFinishContext();
      return NULL;
    }
    __Pyx_GOTREF(__pyx_v__default);
  } else {
    __pyx_v__default = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple);
  }
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_root,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        default:
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "__call__") < 0)) __PYX_ERR(1, 42, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_root = ((struct LxmlElement *)values[0]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 42, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v__default); __pyx_v__default = 0;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_8includes_11etreepublic__Element, 0, "root", 0))) __PYX_ERR(1, 42, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_6__call__(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self), __pyx_v_root, __pyx_v__default);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v__default);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_6__call__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v__default) {
  PyObject *__pyx_v_default = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__call__", 0);
  __Pyx_TraceCall("__call__", __pyx_f[1], 42, 0, __PYX_ERR(1, 42, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":49
 *         as second argument) or raises AttributeError.
 *         """
 *         if _default:             # <<<<<<<<<<<<<<
 *             if len(_default) > 1:
 *                 raise TypeError, u"invalid number of arguments: needs one or two"
 */
  __Pyx_TraceLine(49,0,__PYX_ERR(1, 49, __pyx_L1_error))
  __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v__default) != 0);
  if (__pyx_t_1) {

    /* "src/lxml/objectpath.pxi":50
 *         """
 *         if _default:
 *             if len(_default) > 1:             # <<<<<<<<<<<<<<
 *                 raise TypeError, u"invalid number of arguments: needs one or two"
 *             default = _default[0]
 */
    __Pyx_TraceLine(50,0,__PYX_ERR(1, 50, __pyx_L1_error))
    __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v__default); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(1, 50, __pyx_L1_error)
    __pyx_t_1 = ((__pyx_t_2 > 1) != 0);
    if (unlikely(__pyx_t_1)) {

      /* "src/lxml/objectpath.pxi":51
 *         if _default:
 *             if len(_default) > 1:
 *                 raise TypeError, u"invalid number of arguments: needs one or two"             # <<<<<<<<<<<<<<
 *             default = _default[0]
 *         else:
 */
      __Pyx_TraceLine(51,0,__PYX_ERR(1, 51, __pyx_L1_error))
      __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_invalid_number_of_arguments_need, 0, 0);
      __PYX_ERR(1, 51, __pyx_L1_error)

      /* "src/lxml/objectpath.pxi":50
 *         """
 *         if _default:
 *             if len(_default) > 1:             # <<<<<<<<<<<<<<
 *                 raise TypeError, u"invalid number of arguments: needs one or two"
 *             default = _default[0]
 */
    }

    /* "src/lxml/objectpath.pxi":52
 *             if len(_default) > 1:
 *                 raise TypeError, u"invalid number of arguments: needs one or two"
 *             default = _default[0]             # <<<<<<<<<<<<<<
 *         else:
 *             default = _NO_DEFAULT
 */
    __Pyx_TraceLine(52,0,__PYX_ERR(1, 52, __pyx_L1_error))
    __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v__default, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 52, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_default = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "src/lxml/objectpath.pxi":49
 *         as second argument) or raises AttributeError.
 *         """
 *         if _default:             # <<<<<<<<<<<<<<
 *             if len(_default) > 1:
 *                 raise TypeError, u"invalid number of arguments: needs one or two"
 */
    goto __pyx_L3;
  }

  /* "src/lxml/objectpath.pxi":54
 *             default = _default[0]
 *         else:
 *             default = _NO_DEFAULT             # <<<<<<<<<<<<<<
 *         return _find_object_path(root, self._c_path, self._path_len, default)
 * 
 */
  __Pyx_TraceLine(54,0,__PYX_ERR(1, 54, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__NO_DEFAULT);
    __pyx_v_default = __pyx_v_4lxml_9objectify__NO_DEFAULT;
  }
  __pyx_L3:;

  /* "src/lxml/objectpath.pxi":55
 *         else:
 *             default = _NO_DEFAULT
 *         return _find_object_path(root, self._c_path, self._path_len, default)             # <<<<<<<<<<<<<<
 * 
 *     def hasattr(self, _Element root not None):
 */
  __Pyx_TraceLine(55,0,__PYX_ERR(1, 55, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __pyx_f_4lxml_9objectify__find_object_path(__pyx_v_root, __pyx_v_self->_c_path, __pyx_v_self->_path_len, __pyx_v_default); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":42
 *         return self._path_str
 * 
 *     def __call__(self, _Element root not None, *_default):             # <<<<<<<<<<<<<<
 *         u"""Follow the attribute path in the object structure and return the
 *         target attribute value.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_default);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":57
 *         return _find_object_path(root, self._c_path, self._path_len, default)
 * 
 *     def hasattr(self, _Element root not None):             # <<<<<<<<<<<<<<
 *         u"hasattr(self, root)"
 *         try:
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_9hasattr(PyObject *__pyx_v_self, PyObject *__pyx_v_root); /*proto*/
static char __pyx_doc_4lxml_9objectify_10ObjectPath_8hasattr[] = "hasattr(self, root)";
static PyMethodDef __pyx_mdef_4lxml_9objectify_10ObjectPath_9hasattr = {"hasattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_9hasattr, METH_O, __pyx_doc_4lxml_9objectify_10ObjectPath_8hasattr};
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_9hasattr(PyObject *__pyx_v_self, PyObject *__pyx_v_root) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("hasattr (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_8includes_11etreepublic__Element, 0, "root", 0))) __PYX_ERR(1, 57, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_8hasattr(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_root));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_8hasattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __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_t_6;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__59)
  __Pyx_RefNannySetupContext("hasattr", 0);
  __Pyx_TraceCall("hasattr", __pyx_f[1], 57, 0, __PYX_ERR(1, 57, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":59
 *     def hasattr(self, _Element root not None):
 *         u"hasattr(self, root)"
 *         try:             # <<<<<<<<<<<<<<
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)
 *         except AttributeError:
 */
  __Pyx_TraceLine(59,0,__PYX_ERR(1, 59, __pyx_L3_error))
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "src/lxml/objectpath.pxi":60
 *         u"hasattr(self, root)"
 *         try:
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)             # <<<<<<<<<<<<<<
 *         except AttributeError:
 *             return False
 */
      __Pyx_TraceLine(60,0,__PYX_ERR(1, 60, __pyx_L3_error))
      __pyx_t_4 = __pyx_v_4lxml_9objectify__NO_DEFAULT;
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_5 = __pyx_f_4lxml_9objectify__find_object_path(__pyx_v_root, __pyx_v_self->_c_path, __pyx_v_self->_path_len, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 60, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "src/lxml/objectpath.pxi":59
 *     def hasattr(self, _Element root not None):
 *         u"hasattr(self, root)"
 *         try:             # <<<<<<<<<<<<<<
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)
 *         except AttributeError:
 */
    }
    __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_L8_try_end;
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "src/lxml/objectpath.pxi":61
 *         try:
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)
 *         except AttributeError:             # <<<<<<<<<<<<<<
 *             return False
 *         return True
 */
    __Pyx_TraceLine(61,0,__PYX_ERR(1, 61, __pyx_L5_except_error))
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("lxml.objectify.ObjectPath.hasattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_7) < 0) __PYX_ERR(1, 61, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_t_7);

      /* "src/lxml/objectpath.pxi":62
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)
 *         except AttributeError:
 *             return False             # <<<<<<<<<<<<<<
 *         return True
 * 
 */
      __Pyx_TraceLine(62,0,__PYX_ERR(1, 62, __pyx_L5_except_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_False);
      __pyx_r = Py_False;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      goto __pyx_L6_except_return;
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "src/lxml/objectpath.pxi":59
 *     def hasattr(self, _Element root not None):
 *         u"hasattr(self, root)"
 *         try:             # <<<<<<<<<<<<<<
 *             _find_object_path(root, self._c_path, self._path_len, _NO_DEFAULT)
 *         except AttributeError:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L8_try_end:;
  }

  /* "src/lxml/objectpath.pxi":63
 *         except AttributeError:
 *             return False
 *         return True             # <<<<<<<<<<<<<<
 * 
 *     def setattr(self, _Element root not None, value):
 */
  __Pyx_TraceLine(63,0,__PYX_ERR(1, 63, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_True);
  __pyx_r = Py_True;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":57
 *         return _find_object_path(root, self._c_path, self._path_len, default)
 * 
 *     def hasattr(self, _Element root not None):             # <<<<<<<<<<<<<<
 *         u"hasattr(self, root)"
 *         try:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.hasattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":65
 *         return True
 * 
 *     def setattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""setattr(self, root, value)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_11setattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_10ObjectPath_10setattr[] = "setattr(self, root, value)\n\n        Set the value of the target element in a subtree.\n\n        If any of the children on the path does not exist, it is created.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_10ObjectPath_11setattr = {"setattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_11setattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_10setattr};
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_11setattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct LxmlElement *__pyx_v_root = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("setattr (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_root,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("setattr", 1, 2, 2, 1); __PYX_ERR(1, 65, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setattr") < 0)) __PYX_ERR(1, 65, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_root = ((struct LxmlElement *)values[0]);
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("setattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 65, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_8includes_11etreepublic__Element, 0, "root", 0))) __PYX_ERR(1, 65, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_10setattr(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self), __pyx_v_root, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_10setattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__60)
  __Pyx_RefNannySetupContext("setattr", 0);
  __Pyx_TraceCall("setattr", __pyx_f[1], 65, 0, __PYX_ERR(1, 65, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":72
 *         If any of the children on the path does not exist, it is created.
 *         """
 *         _create_object_path(root, self._c_path, self._path_len, 1, value)             # <<<<<<<<<<<<<<
 * 
 *     def addattr(self, _Element root not None, value):
 */
  __Pyx_TraceLine(72,0,__PYX_ERR(1, 72, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__create_object_path(__pyx_v_root, __pyx_v_self->_c_path, __pyx_v_self->_path_len, 1, __pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":65
 *         return True
 * 
 *     def setattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""setattr(self, root, value)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.setattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":74
 *         _create_object_path(root, self._c_path, self._path_len, 1, value)
 * 
 *     def addattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, root, value)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_13addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4lxml_9objectify_10ObjectPath_12addattr[] = "addattr(self, root, value)\n\n        Append a value to the target element in a subtree.\n\n        If any of the children on the path does not exist, it is created.\n        ";
static PyMethodDef __pyx_mdef_4lxml_9objectify_10ObjectPath_13addattr = {"addattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_13addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_12addattr};
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_13addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct LxmlElement *__pyx_v_root = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("addattr (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_root,&__pyx_n_s_value,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_root)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, 1); __PYX_ERR(1, 74, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "addattr") < 0)) __PYX_ERR(1, 74, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_root = ((struct LxmlElement *)values[0]);
    __pyx_v_value = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 74, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.addattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_8includes_11etreepublic__Element, 0, "root", 0))) __PYX_ERR(1, 74, __pyx_L1_error)
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_12addattr(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self), __pyx_v_root, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_12addattr(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self, struct LxmlElement *__pyx_v_root, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_TraceFrameInit(__pyx_codeobj__61)
  __Pyx_RefNannySetupContext("addattr", 0);
  __Pyx_TraceCall("addattr", __pyx_f[1], 74, 0, __PYX_ERR(1, 74, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":81
 *         If any of the children on the path does not exist, it is created.
 *         """
 *         _create_object_path(root, self._c_path, self._path_len, 0, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(81,0,__PYX_ERR(1, 81, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__create_object_path(__pyx_v_root, __pyx_v_self->_c_path, __pyx_v_self->_path_len, 0, __pyx_v_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":74
 *         _create_object_path(root, self._c_path, self._path_len, 1, value)
 * 
 *     def addattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, root, value)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.addattr", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":19
 *     Example for a path: 'root.child[1].{other}child[25]'
 *     """
 *     cdef readonly object find             # <<<<<<<<<<<<<<
 *     cdef list _path
 *     cdef object _path_str
 */

/* Python wrapper */
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_4find_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_4lxml_9objectify_10ObjectPath_4find_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_4lxml_9objectify_10ObjectPath_4find___get__(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self));

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

static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_4find___get__(struct __pyx_obj_4lxml_9objectify_ObjectPath *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_TraceCall("__get__", __pyx_f[1], 19, 0, __PYX_ERR(1, 19, __pyx_L1_error));
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->find);
  __pyx_r = __pyx_v_self->find;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.find.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":91
 * 
 * 
 * cdef list _parse_object_path_string(_path):             # <<<<<<<<<<<<<<
 *     u"""Parse object path string into a (ns, name, index) list.
 *     """
 */

static PyObject *__pyx_f_4lxml_9objectify__parse_object_path_string(PyObject *__pyx_v__path) {
  int __pyx_v_has_dot;
  PyObject *__pyx_v_path = 0;
  PyObject *__pyx_v_new_path = NULL;
  PyObject *__pyx_v_path_pos = NULL;
  PyObject *__pyx_v_match = NULL;
  PyObject *__pyx_v_dot = NULL;
  PyObject *__pyx_v_ns = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_index = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *(*__pyx_t_10)(PyObject *);
  int __pyx_t_11;
  int __pyx_t_12;
  Py_ssize_t __pyx_t_13;
  __Pyx_RefNannySetupContext("_parse_object_path_string", 0);
  __Pyx_TraceCall("_parse_object_path_string", __pyx_f[1], 91, 0, __PYX_ERR(1, 91, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":96
 *     cdef bint has_dot
 *     cdef unicode path
 *     new_path = []             # <<<<<<<<<<<<<<
 *     if isinstance(_path, bytes):
 *         path = (<bytes>_path).decode('ascii')
 */
  __Pyx_TraceLine(96,0,__PYX_ERR(1, 96, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_new_path = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":97
 *     cdef unicode path
 *     new_path = []
 *     if isinstance(_path, bytes):             # <<<<<<<<<<<<<<
 *         path = (<bytes>_path).decode('ascii')
 *     elif type(_path) is not unicode:
 */
  __Pyx_TraceLine(97,0,__PYX_ERR(1, 97, __pyx_L1_error))
  __pyx_t_2 = PyBytes_Check(__pyx_v__path); 
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "src/lxml/objectpath.pxi":98
 *     new_path = []
 *     if isinstance(_path, bytes):
 *         path = (<bytes>_path).decode('ascii')             # <<<<<<<<<<<<<<
 *     elif type(_path) is not unicode:
 *         path = unicode(_path)
 */
    __Pyx_TraceLine(98,0,__PYX_ERR(1, 98, __pyx_L1_error))
    if (unlikely(__pyx_v__path == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
      __PYX_ERR(1, 98, __pyx_L1_error)
    }
    __pyx_t_1 = __Pyx_decode_bytes(((PyObject*)__pyx_v__path), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 98, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_path = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":97
 *     cdef unicode path
 *     new_path = []
 *     if isinstance(_path, bytes):             # <<<<<<<<<<<<<<
 *         path = (<bytes>_path).decode('ascii')
 *     elif type(_path) is not unicode:
 */
    goto __pyx_L3;
  }

  /* "src/lxml/objectpath.pxi":99
 *     if isinstance(_path, bytes):
 *         path = (<bytes>_path).decode('ascii')
 *     elif type(_path) is not unicode:             # <<<<<<<<<<<<<<
 *         path = unicode(_path)
 *     else:
 */
  __Pyx_TraceLine(99,0,__PYX_ERR(1, 99, __pyx_L1_error))
  __pyx_t_3 = (((PyObject *)Py_TYPE(__pyx_v__path)) != ((PyObject *)(&PyUnicode_Type)));
  __pyx_t_2 = (__pyx_t_3 != 0);
  if (__pyx_t_2) {

    /* "src/lxml/objectpath.pxi":100
 *         path = (<bytes>_path).decode('ascii')
 *     elif type(_path) is not unicode:
 *         path = unicode(_path)             # <<<<<<<<<<<<<<
 *     else:
 *         path = _path
 */
    __Pyx_TraceLine(100,0,__PYX_ERR(1, 100, __pyx_L1_error))
    __pyx_t_1 = __Pyx_PyObject_Unicode(__pyx_v__path); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_v_path = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":99
 *     if isinstance(_path, bytes):
 *         path = (<bytes>_path).decode('ascii')
 *     elif type(_path) is not unicode:             # <<<<<<<<<<<<<<
 *         path = unicode(_path)
 *     else:
 */
    goto __pyx_L3;
  }

  /* "src/lxml/objectpath.pxi":102
 *         path = unicode(_path)
 *     else:
 *         path = _path             # <<<<<<<<<<<<<<
 *     path = path.strip()
 *     if path == u'.':
 */
  __Pyx_TraceLine(102,0,__PYX_ERR(1, 102, __pyx_L1_error))
  /*else*/ {
    if (!(likely(PyUnicode_CheckExact(__pyx_v__path))||((__pyx_v__path) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_v__path)->tp_name), 0))) __PYX_ERR(1, 102, __pyx_L1_error)
    __pyx_t_1 = __pyx_v__path;
    __Pyx_INCREF(__pyx_t_1);
    __pyx_v_path = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L3:;

  /* "src/lxml/objectpath.pxi":103
 *     else:
 *         path = _path
 *     path = path.strip()             # <<<<<<<<<<<<<<
 *     if path == u'.':
 *         return [_RELATIVE_PATH_SEGMENT]
 */
  __Pyx_TraceLine(103,0,__PYX_ERR(1, 103, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyUnicode_Type_strip, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "unicode", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(1, 103, __pyx_L1_error)
  __Pyx_DECREF_SET(__pyx_v_path, ((PyObject*)__pyx_t_1));
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":104
 *         path = _path
 *     path = path.strip()
 *     if path == u'.':             # <<<<<<<<<<<<<<
 *         return [_RELATIVE_PATH_SEGMENT]
 *     path_pos = 0
 */
  __Pyx_TraceLine(104,0,__PYX_ERR(1, 104, __pyx_L1_error))
  __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_path, __pyx_kp_u__9, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 104, __pyx_L1_error)
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "src/lxml/objectpath.pxi":105
 *     path = path.strip()
 *     if path == u'.':
 *         return [_RELATIVE_PATH_SEGMENT]             # <<<<<<<<<<<<<<
 *     path_pos = 0
 *     while path:
 */
    __Pyx_TraceLine(105,0,__PYX_ERR(1, 105, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 105, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
    __Pyx_GIVEREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
    PyList_SET_ITEM(__pyx_t_1, 0, __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
    __pyx_r = ((PyObject*)__pyx_t_1);
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "src/lxml/objectpath.pxi":104
 *         path = _path
 *     path = path.strip()
 *     if path == u'.':             # <<<<<<<<<<<<<<
 *         return [_RELATIVE_PATH_SEGMENT]
 *     path_pos = 0
 */
  }

  /* "src/lxml/objectpath.pxi":106
 *     if path == u'.':
 *         return [_RELATIVE_PATH_SEGMENT]
 *     path_pos = 0             # <<<<<<<<<<<<<<
 *     while path:
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
 */
  __Pyx_TraceLine(106,0,__PYX_ERR(1, 106, __pyx_L1_error))
  __Pyx_INCREF(__pyx_int_0);
  __pyx_v_path_pos = __pyx_int_0;

  /* "src/lxml/objectpath.pxi":107
 *         return [_RELATIVE_PATH_SEGMENT]
 *     path_pos = 0
 *     while path:             # <<<<<<<<<<<<<<
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
 *         if match is None:
 */
  __Pyx_TraceLine(107,0,__PYX_ERR(1, 107, __pyx_L1_error))
  while (1) {
    __pyx_t_3 = (__pyx_v_path != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_path) != 0);
    if (!__pyx_t_3) break;

    /* "src/lxml/objectpath.pxi":108
 *     path_pos = 0
 *     while path:
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)             # <<<<<<<<<<<<<<
 *         if match is None:
 *             break
 */
    __Pyx_TraceLine(108,0,__PYX_ERR(1, 108, __pyx_L1_error))
    __Pyx_INCREF(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
    __pyx_t_4 = __pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT; __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;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_path, __pyx_v_path_pos};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 108, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_v_path, __pyx_v_path_pos};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 108, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_7 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 108, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      if (__pyx_t_5) {
        __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
      }
      __Pyx_INCREF(__pyx_v_path);
      __Pyx_GIVEREF(__pyx_v_path);
      PyTuple_SET_ITEM(__pyx_t_7, 0+__pyx_t_6, __pyx_v_path);
      __Pyx_INCREF(__pyx_v_path_pos);
      __Pyx_GIVEREF(__pyx_v_path_pos);
      PyTuple_SET_ITEM(__pyx_t_7, 1+__pyx_t_6, __pyx_v_path_pos);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 108, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_match, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":109
 *     while path:
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
 *         if match is None:             # <<<<<<<<<<<<<<
 *             break
 * 
 */
    __Pyx_TraceLine(109,0,__PYX_ERR(1, 109, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_match == Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "src/lxml/objectpath.pxi":110
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
 *         if match is None:
 *             break             # <<<<<<<<<<<<<<
 * 
 *         dot, ns, name, index = match.groups()
 */
      __Pyx_TraceLine(110,0,__PYX_ERR(1, 110, __pyx_L1_error))
      goto __pyx_L6_break;

      /* "src/lxml/objectpath.pxi":109
 *     while path:
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
 *         if match is None:             # <<<<<<<<<<<<<<
 *             break
 * 
 */
    }

    /* "src/lxml/objectpath.pxi":112
 *             break
 * 
 *         dot, ns, name, index = match.groups()             # <<<<<<<<<<<<<<
 *         index = int(index) if index else 0
 *         has_dot = dot == u'.'
 */
    __Pyx_TraceLine(112,0,__PYX_ERR(1, 112, __pyx_L1_error))
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_match, __pyx_n_s_groups); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    if (__pyx_t_7) {
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    } else {
      __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error)
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    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 != 4)) {
        if (size > 4) __Pyx_RaiseTooManyValuesError(4);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(1, 112, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); 
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2); 
        __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3); 
      } else {
        __pyx_t_4 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 1); 
        __pyx_t_5 = PyList_GET_ITEM(sequence, 2); 
        __pyx_t_8 = PyList_GET_ITEM(sequence, 3); 
      }
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_8);
      #else
      {
        Py_ssize_t i;
        PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_7,&__pyx_t_5,&__pyx_t_8};
        for (i=0; i < 4; i++) {
          PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(1, 112, __pyx_L1_error)
          __Pyx_GOTREF(item);
          *(temps[i]) = item;
        }
      }
      #endif
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    } else {
      Py_ssize_t index = -1;
      PyObject** temps[4] = {&__pyx_t_4,&__pyx_t_7,&__pyx_t_5,&__pyx_t_8};
      __pyx_t_9 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 112, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
      for (index=0; index < 4; index++) {
        PyObject* item = __pyx_t_10(__pyx_t_9); if (unlikely(!item)) goto __pyx_L8_unpacking_failed;
        __Pyx_GOTREF(item);
        *(temps[index]) = item;
      }
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 4) < 0) __PYX_ERR(1, 112, __pyx_L1_error)
      __pyx_t_10 = NULL;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      goto __pyx_L9_unpacking_done;
      __pyx_L8_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_10 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(1, 112, __pyx_L1_error)
      __pyx_L9_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_dot, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_ns, __pyx_t_7);
    __pyx_t_7 = 0;
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_8);
    __pyx_t_8 = 0;

    /* "src/lxml/objectpath.pxi":113
 * 
 *         dot, ns, name, index = match.groups()
 *         index = int(index) if index else 0             # <<<<<<<<<<<<<<
 *         has_dot = dot == u'.'
 *         if not new_path:
 */
    __Pyx_TraceLine(113,0,__PYX_ERR(1, 113, __pyx_L1_error))
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_index); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 113, __pyx_L1_error)
    if (__pyx_t_2) {
      __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_v_index); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 113, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_1 = __pyx_t_8;
      __pyx_t_8 = 0;
    } else {
      __Pyx_INCREF(__pyx_int_0);
      __pyx_t_1 = __pyx_int_0;
    }
    __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":114
 *         dot, ns, name, index = match.groups()
 *         index = int(index) if index else 0
 *         has_dot = dot == u'.'             # <<<<<<<<<<<<<<
 *         if not new_path:
 *             if has_dot:
 */
    __Pyx_TraceLine(114,0,__PYX_ERR(1, 114, __pyx_L1_error))
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_dot, __pyx_kp_u__9, Py_EQ); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 114, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 114, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_has_dot = __pyx_t_2;

    /* "src/lxml/objectpath.pxi":115
 *         index = int(index) if index else 0
 *         has_dot = dot == u'.'
 *         if not new_path:             # <<<<<<<<<<<<<<
 *             if has_dot:
 *                 # path '.child' => ignore root
 */
    __Pyx_TraceLine(115,0,__PYX_ERR(1, 115, __pyx_L1_error))
    __pyx_t_2 = (PyList_GET_SIZE(__pyx_v_new_path) != 0);
    __pyx_t_3 = ((!__pyx_t_2) != 0);
    if (__pyx_t_3) {

      /* "src/lxml/objectpath.pxi":116
 *         has_dot = dot == u'.'
 *         if not new_path:
 *             if has_dot:             # <<<<<<<<<<<<<<
 *                 # path '.child' => ignore root
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
 */
      __Pyx_TraceLine(116,0,__PYX_ERR(1, 116, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v_has_dot != 0);
      if (__pyx_t_3) {

        /* "src/lxml/objectpath.pxi":118
 *             if has_dot:
 *                 # path '.child' => ignore root
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)             # <<<<<<<<<<<<<<
 *             elif index:
 *                 raise ValueError, u"index not allowed on root node"
 */
        __Pyx_TraceLine(118,0,__PYX_ERR(1, 118, __pyx_L1_error))
        __pyx_t_1 = __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT;
        __Pyx_INCREF(__pyx_t_1);
        __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_new_path, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(1, 118, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

        /* "src/lxml/objectpath.pxi":116
 *         has_dot = dot == u'.'
 *         if not new_path:
 *             if has_dot:             # <<<<<<<<<<<<<<
 *                 # path '.child' => ignore root
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
 */
        goto __pyx_L11;
      }

      /* "src/lxml/objectpath.pxi":119
 *                 # path '.child' => ignore root
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
 *             elif index:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"index not allowed on root node"
 *         elif not has_dot:
 */
      __Pyx_TraceLine(119,0,__PYX_ERR(1, 119, __pyx_L1_error))
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_index); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(1, 119, __pyx_L1_error)
      if (unlikely(__pyx_t_3)) {

        /* "src/lxml/objectpath.pxi":120
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
 *             elif index:
 *                 raise ValueError, u"index not allowed on root node"             # <<<<<<<<<<<<<<
 *         elif not has_dot:
 *             raise ValueError, u"invalid path"
 */
        __Pyx_TraceLine(120,0,__PYX_ERR(1, 120, __pyx_L1_error))
        __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_index_not_allowed_on_root_node, 0, 0);
        __PYX_ERR(1, 120, __pyx_L1_error)

        /* "src/lxml/objectpath.pxi":119
 *                 # path '.child' => ignore root
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
 *             elif index:             # <<<<<<<<<<<<<<
 *                 raise ValueError, u"index not allowed on root node"
 *         elif not has_dot:
 */
      }
      __pyx_L11:;

      /* "src/lxml/objectpath.pxi":115
 *         index = int(index) if index else 0
 *         has_dot = dot == u'.'
 *         if not new_path:             # <<<<<<<<<<<<<<
 *             if has_dot:
 *                 # path '.child' => ignore root
 */
      goto __pyx_L10;
    }

    /* "src/lxml/objectpath.pxi":121
 *             elif index:
 *                 raise ValueError, u"index not allowed on root node"
 *         elif not has_dot:             # <<<<<<<<<<<<<<
 *             raise ValueError, u"invalid path"
 *         if ns is not None:
 */
    __Pyx_TraceLine(121,0,__PYX_ERR(1, 121, __pyx_L1_error))
    __pyx_t_3 = ((!(__pyx_v_has_dot != 0)) != 0);
    if (unlikely(__pyx_t_3)) {

      /* "src/lxml/objectpath.pxi":122
 *                 raise ValueError, u"index not allowed on root node"
 *         elif not has_dot:
 *             raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
 *         if ns is not None:
 *             ns = python.PyUnicode_AsUTF8String(ns)
 */
      __Pyx_TraceLine(122,0,__PYX_ERR(1, 122, __pyx_L1_error))
      __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_invalid_path, 0, 0);
      __PYX_ERR(1, 122, __pyx_L1_error)

      /* "src/lxml/objectpath.pxi":121
 *             elif index:
 *                 raise ValueError, u"index not allowed on root node"
 *         elif not has_dot:             # <<<<<<<<<<<<<<
 *             raise ValueError, u"invalid path"
 *         if ns is not None:
 */
    }
    __pyx_L10:;

    /* "src/lxml/objectpath.pxi":123
 *         elif not has_dot:
 *             raise ValueError, u"invalid path"
 *         if ns is not None:             # <<<<<<<<<<<<<<
 *             ns = python.PyUnicode_AsUTF8String(ns)
 *         name = python.PyUnicode_AsUTF8String(name)
 */
    __Pyx_TraceLine(123,0,__PYX_ERR(1, 123, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_ns != Py_None);
    __pyx_t_2 = (__pyx_t_3 != 0);
    if (__pyx_t_2) {

      /* "src/lxml/objectpath.pxi":124
 *             raise ValueError, u"invalid path"
 *         if ns is not None:
 *             ns = python.PyUnicode_AsUTF8String(ns)             # <<<<<<<<<<<<<<
 *         name = python.PyUnicode_AsUTF8String(name)
 *         new_path.append( (ns, name, index) )
 */
      __Pyx_TraceLine(124,0,__PYX_ERR(1, 124, __pyx_L1_error))
      __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_ns); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 124, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_ns, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "src/lxml/objectpath.pxi":123
 *         elif not has_dot:
 *             raise ValueError, u"invalid path"
 *         if ns is not None:             # <<<<<<<<<<<<<<
 *             ns = python.PyUnicode_AsUTF8String(ns)
 *         name = python.PyUnicode_AsUTF8String(name)
 */
    }

    /* "src/lxml/objectpath.pxi":125
 *         if ns is not None:
 *             ns = python.PyUnicode_AsUTF8String(ns)
 *         name = python.PyUnicode_AsUTF8String(name)             # <<<<<<<<<<<<<<
 *         new_path.append( (ns, name, index) )
 * 
 */
    __Pyx_TraceLine(125,0,__PYX_ERR(1, 125, __pyx_L1_error))
    __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":126
 *             ns = python.PyUnicode_AsUTF8String(ns)
 *         name = python.PyUnicode_AsUTF8String(name)
 *         new_path.append( (ns, name, index) )             # <<<<<<<<<<<<<<
 * 
 *         path_pos = match.end()
 */
    __Pyx_TraceLine(126,0,__PYX_ERR(1, 126, __pyx_L1_error))
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_ns);
    __Pyx_GIVEREF(__pyx_v_ns);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_ns);
    __Pyx_INCREF(__pyx_v_name);
    __Pyx_GIVEREF(__pyx_v_name);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_name);
    __Pyx_INCREF(__pyx_v_index);
    __Pyx_GIVEREF(__pyx_v_index);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_index);
    __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_new_path, __pyx_t_1); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(1, 126, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":128
 *         new_path.append( (ns, name, index) )
 * 
 *         path_pos = match.end()             # <<<<<<<<<<<<<<
 *     if not new_path or len(path) > path_pos:
 *         raise ValueError, u"invalid path"
 */
    __Pyx_TraceLine(128,0,__PYX_ERR(1, 128, __pyx_L1_error))
    __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_match, __pyx_n_s_end); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    if (__pyx_t_5) {
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 128, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    } else {
      __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 128, __pyx_L1_error)
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF_SET(__pyx_v_path_pos, __pyx_t_1);
    __pyx_t_1 = 0;
  }
  __pyx_L6_break:;

  /* "src/lxml/objectpath.pxi":129
 * 
 *         path_pos = match.end()
 *     if not new_path or len(path) > path_pos:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"invalid path"
 *     return new_path
 */
  __Pyx_TraceLine(129,0,__PYX_ERR(1, 129, __pyx_L1_error))
  __pyx_t_3 = (PyList_GET_SIZE(__pyx_v_new_path) != 0);
  __pyx_t_12 = ((!__pyx_t_3) != 0);
  if (!__pyx_t_12) {
  } else {
    __pyx_t_2 = __pyx_t_12;
    goto __pyx_L14_bool_binop_done;
  }
  if (unlikely(__pyx_v_path == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 129, __pyx_L1_error)
  }
  __pyx_t_13 = __Pyx_PyUnicode_GET_LENGTH(__pyx_v_path); if (unlikely(__pyx_t_13 == ((Py_ssize_t)-1))) __PYX_ERR(1, 129, __pyx_L1_error)
  __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_13); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = PyObject_RichCompare(__pyx_t_1, __pyx_v_path_pos, Py_GT); __Pyx_XGOTREF(__pyx_t_8); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_12 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_12 < 0)) __PYX_ERR(1, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_2 = __pyx_t_12;
  __pyx_L14_bool_binop_done:;
  if (unlikely(__pyx_t_2)) {

    /* "src/lxml/objectpath.pxi":130
 *         path_pos = match.end()
 *     if not new_path or len(path) > path_pos:
 *         raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
 *     return new_path
 * 
 */
    __Pyx_TraceLine(130,0,__PYX_ERR(1, 130, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_invalid_path, 0, 0);
    __PYX_ERR(1, 130, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":129
 * 
 *         path_pos = match.end()
 *     if not new_path or len(path) > path_pos:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"invalid path"
 *     return new_path
 */
  }

  /* "src/lxml/objectpath.pxi":131
 *     if not new_path or len(path) > path_pos:
 *         raise ValueError, u"invalid path"
 *     return new_path             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(131,0,__PYX_ERR(1, 131, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_new_path);
  __pyx_r = __pyx_v_new_path;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":91
 * 
 * 
 * cdef list _parse_object_path_string(_path):             # <<<<<<<<<<<<<<
 *     u"""Parse object path string into a (ns, name, index) list.
 *     """
 */

  /* 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_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify._parse_object_path_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_path);
  __Pyx_XDECREF(__pyx_v_new_path);
  __Pyx_XDECREF(__pyx_v_path_pos);
  __Pyx_XDECREF(__pyx_v_match);
  __Pyx_XDECREF(__pyx_v_dot);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":134
 * 
 * 
 * cdef list _parse_object_path_list(path):             # <<<<<<<<<<<<<<
 *     u"""Parse object path sequence into a (ns, name, index) list.
 *     """
 */

static PyObject *__pyx_f_4lxml_9objectify__parse_object_path_list(PyObject *__pyx_v_path) {
  PyObject *__pyx_v_new_path = NULL;
  PyObject *__pyx_v_item = NULL;
  PyObject *__pyx_v_ns = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_index = NULL;
  const xmlChar *__pyx_v_c_name;
  const xmlChar *__pyx_v_index_pos;
  const xmlChar *__pyx_v_index_end;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("_parse_object_path_list", 0);
  __Pyx_TraceCall("_parse_object_path_list", __pyx_f[1], 134, 0, __PYX_ERR(1, 134, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":137
 *     u"""Parse object path sequence into a (ns, name, index) list.
 *     """
 *     new_path = []             # <<<<<<<<<<<<<<
 *     for item in path:
 *         item = item.strip()
 */
  __Pyx_TraceLine(137,0,__PYX_ERR(1, 137, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_new_path = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":138
 *     """
 *     new_path = []
 *     for item in path:             # <<<<<<<<<<<<<<
 *         item = item.strip()
 *         if not new_path and item == u'':
 */
  __Pyx_TraceLine(138,0,__PYX_ERR(1, 138, __pyx_L1_error))
  if (likely(PyList_CheckExact(__pyx_v_path)) || PyTuple_CheckExact(__pyx_v_path)) {
    __pyx_t_1 = __pyx_v_path; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 138, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(1, 138, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 138, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(1, 138, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 138, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      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(1, 138, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "src/lxml/objectpath.pxi":139
 *     new_path = []
 *     for item in path:
 *         item = item.strip()             # <<<<<<<<<<<<<<
 *         if not new_path and item == u'':
 *             # path '.child' => ignore root
 */
    __Pyx_TraceLine(139,0,__PYX_ERR(1, 139, __pyx_L1_error))
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_strip); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 139, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    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);
      }
    }
    if (__pyx_t_6) {
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 139, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    } else {
      __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 139, __pyx_L1_error)
    }
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF_SET(__pyx_v_item, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "src/lxml/objectpath.pxi":140
 *     for item in path:
 *         item = item.strip()
 *         if not new_path and item == u'':             # <<<<<<<<<<<<<<
 *             # path '.child' => ignore root
 *             ns = name = None
 */
    __Pyx_TraceLine(140,0,__PYX_ERR(1, 140, __pyx_L1_error))
    __pyx_t_8 = (PyList_GET_SIZE(__pyx_v_new_path) != 0);
    __pyx_t_9 = ((!__pyx_t_8) != 0);
    if (__pyx_t_9) {
    } else {
      __pyx_t_7 = __pyx_t_9;
      goto __pyx_L6_bool_binop_done;
    }
    __pyx_t_9 = (__Pyx_PyUnicode_Equals(__pyx_v_item, __pyx_kp_u__3, Py_EQ)); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(1, 140, __pyx_L1_error)
    __pyx_t_7 = __pyx_t_9;
    __pyx_L6_bool_binop_done:;
    if (__pyx_t_7) {

      /* "src/lxml/objectpath.pxi":142
 *         if not new_path and item == u'':
 *             # path '.child' => ignore root
 *             ns = name = None             # <<<<<<<<<<<<<<
 *             index = 0
 *         else:
 */
      __Pyx_TraceLine(142,0,__PYX_ERR(1, 142, __pyx_L1_error))
      __Pyx_INCREF(Py_None);
      __Pyx_XDECREF_SET(__pyx_v_ns, Py_None);
      __Pyx_INCREF(Py_None);
      __Pyx_XDECREF_SET(__pyx_v_name, Py_None);

      /* "src/lxml/objectpath.pxi":143
 *             # path '.child' => ignore root
 *             ns = name = None
 *             index = 0             # <<<<<<<<<<<<<<
 *         else:
 *             ns, name = cetree.getNsTag(item)
 */
      __Pyx_TraceLine(143,0,__PYX_ERR(1, 143, __pyx_L1_error))
      __Pyx_INCREF(__pyx_int_0);
      __Pyx_XDECREF_SET(__pyx_v_index, __pyx_int_0);

      /* "src/lxml/objectpath.pxi":140
 *     for item in path:
 *         item = item.strip()
 *         if not new_path and item == u'':             # <<<<<<<<<<<<<<
 *             # path '.child' => ignore root
 *             ns = name = None
 */
      goto __pyx_L5;
    }

    /* "src/lxml/objectpath.pxi":145
 *             index = 0
 *         else:
 *             ns, name = cetree.getNsTag(item)             # <<<<<<<<<<<<<<
 *             c_name = _xcstr(name)
 *             index_pos = tree.xmlStrchr(c_name, c'[')
 */
    __Pyx_TraceLine(145,0,__PYX_ERR(1, 145, __pyx_L1_error))
    /*else*/ {
      __pyx_t_4 = getNsTag(__pyx_v_item); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 145, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (likely(__pyx_t_4 != Py_None)) {
        PyObject* sequence = __pyx_t_4;
        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(1, 145, __pyx_L1_error)
        }
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        #else
        __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 145, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 145, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        #endif
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      } else {
        __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 145, __pyx_L1_error)
      }
      __Pyx_XDECREF_SET(__pyx_v_ns, __pyx_t_5);
      __pyx_t_5 = 0;
      __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "src/lxml/objectpath.pxi":146
 *         else:
 *             ns, name = cetree.getNsTag(item)
 *             c_name = _xcstr(name)             # <<<<<<<<<<<<<<
 *             index_pos = tree.xmlStrchr(c_name, c'[')
 *             if index_pos is NULL:
 */
      __Pyx_TraceLine(146,0,__PYX_ERR(1, 146, __pyx_L1_error))
      __pyx_v_c_name = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_name);

      /* "src/lxml/objectpath.pxi":147
 *             ns, name = cetree.getNsTag(item)
 *             c_name = _xcstr(name)
 *             index_pos = tree.xmlStrchr(c_name, c'[')             # <<<<<<<<<<<<<<
 *             if index_pos is NULL:
 *                 index = 0
 */
      __Pyx_TraceLine(147,0,__PYX_ERR(1, 147, __pyx_L1_error))
      __pyx_v_index_pos = xmlStrchr(__pyx_v_c_name, '[');

      /* "src/lxml/objectpath.pxi":148
 *             c_name = _xcstr(name)
 *             index_pos = tree.xmlStrchr(c_name, c'[')
 *             if index_pos is NULL:             # <<<<<<<<<<<<<<
 *                 index = 0
 *             else:
 */
      __Pyx_TraceLine(148,0,__PYX_ERR(1, 148, __pyx_L1_error))
      __pyx_t_7 = ((__pyx_v_index_pos == NULL) != 0);
      if (__pyx_t_7) {

        /* "src/lxml/objectpath.pxi":149
 *             index_pos = tree.xmlStrchr(c_name, c'[')
 *             if index_pos is NULL:
 *                 index = 0             # <<<<<<<<<<<<<<
 *             else:
 *                 index_end = tree.xmlStrchr(index_pos + 1, c']')
 */
        __Pyx_TraceLine(149,0,__PYX_ERR(1, 149, __pyx_L1_error))
        __Pyx_INCREF(__pyx_int_0);
        __Pyx_XDECREF_SET(__pyx_v_index, __pyx_int_0);

        /* "src/lxml/objectpath.pxi":148
 *             c_name = _xcstr(name)
 *             index_pos = tree.xmlStrchr(c_name, c'[')
 *             if index_pos is NULL:             # <<<<<<<<<<<<<<
 *                 index = 0
 *             else:
 */
        goto __pyx_L8;
      }

      /* "src/lxml/objectpath.pxi":151
 *                 index = 0
 *             else:
 *                 index_end = tree.xmlStrchr(index_pos + 1, c']')             # <<<<<<<<<<<<<<
 *                 if index_end is NULL:
 *                     raise ValueError, u"index must be enclosed in []"
 */
      __Pyx_TraceLine(151,0,__PYX_ERR(1, 151, __pyx_L1_error))
      /*else*/ {
        __pyx_v_index_end = xmlStrchr((__pyx_v_index_pos + 1), ']');

        /* "src/lxml/objectpath.pxi":152
 *             else:
 *                 index_end = tree.xmlStrchr(index_pos + 1, c']')
 *                 if index_end is NULL:             # <<<<<<<<<<<<<<
 *                     raise ValueError, u"index must be enclosed in []"
 *                 index = int(index_pos[1:index_end - index_pos])
 */
        __Pyx_TraceLine(152,0,__PYX_ERR(1, 152, __pyx_L1_error))
        __pyx_t_7 = ((__pyx_v_index_end == NULL) != 0);
        if (unlikely(__pyx_t_7)) {

          /* "src/lxml/objectpath.pxi":153
 *                 index_end = tree.xmlStrchr(index_pos + 1, c']')
 *                 if index_end is NULL:
 *                     raise ValueError, u"index must be enclosed in []"             # <<<<<<<<<<<<<<
 *                 index = int(index_pos[1:index_end - index_pos])
 *                 if not new_path and index != 0:
 */
          __Pyx_TraceLine(153,0,__PYX_ERR(1, 153, __pyx_L1_error))
          __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_index_must_be_enclosed_in, 0, 0);
          __PYX_ERR(1, 153, __pyx_L1_error)

          /* "src/lxml/objectpath.pxi":152
 *             else:
 *                 index_end = tree.xmlStrchr(index_pos + 1, c']')
 *                 if index_end is NULL:             # <<<<<<<<<<<<<<
 *                     raise ValueError, u"index must be enclosed in []"
 *                 index = int(index_pos[1:index_end - index_pos])
 */
        }

        /* "src/lxml/objectpath.pxi":154
 *                 if index_end is NULL:
 *                     raise ValueError, u"index must be enclosed in []"
 *                 index = int(index_pos[1:index_end - index_pos])             # <<<<<<<<<<<<<<
 *                 if not new_path and index != 0:
 *                     raise ValueError, u"index not allowed on root node"
 */
        __Pyx_TraceLine(154,0,__PYX_ERR(1, 154, __pyx_L1_error))
        __pyx_t_4 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_index_pos) + 1, (__pyx_v_index_end - __pyx_v_index_pos) - 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 154, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_6 = __Pyx_PyNumber_Int(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 154, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_6);
        __pyx_t_6 = 0;

        /* "src/lxml/objectpath.pxi":155
 *                     raise ValueError, u"index must be enclosed in []"
 *                 index = int(index_pos[1:index_end - index_pos])
 *                 if not new_path and index != 0:             # <<<<<<<<<<<<<<
 *                     raise ValueError, u"index not allowed on root node"
 *                 name = <bytes>c_name[:index_pos - c_name]
 */
        __Pyx_TraceLine(155,0,__PYX_ERR(1, 155, __pyx_L1_error))
        __pyx_t_9 = (PyList_GET_SIZE(__pyx_v_new_path) != 0);
        __pyx_t_8 = ((!__pyx_t_9) != 0);
        if (__pyx_t_8) {
        } else {
          __pyx_t_7 = __pyx_t_8;
          goto __pyx_L11_bool_binop_done;
        }
        __pyx_t_6 = PyObject_RichCompare(__pyx_v_index, __pyx_int_0, Py_NE); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 155, __pyx_L1_error)
        __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 155, __pyx_L1_error)
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __pyx_t_7 = __pyx_t_8;
        __pyx_L11_bool_binop_done:;
        if (unlikely(__pyx_t_7)) {

          /* "src/lxml/objectpath.pxi":156
 *                 index = int(index_pos[1:index_end - index_pos])
 *                 if not new_path and index != 0:
 *                     raise ValueError, u"index not allowed on root node"             # <<<<<<<<<<<<<<
 *                 name = <bytes>c_name[:index_pos - c_name]
 *         new_path.append( (ns, name, index) )
 */
          __Pyx_TraceLine(156,0,__PYX_ERR(1, 156, __pyx_L1_error))
          __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_index_not_allowed_on_root_node, 0, 0);
          __PYX_ERR(1, 156, __pyx_L1_error)

          /* "src/lxml/objectpath.pxi":155
 *                     raise ValueError, u"index must be enclosed in []"
 *                 index = int(index_pos[1:index_end - index_pos])
 *                 if not new_path and index != 0:             # <<<<<<<<<<<<<<
 *                     raise ValueError, u"index not allowed on root node"
 *                 name = <bytes>c_name[:index_pos - c_name]
 */
        }

        /* "src/lxml/objectpath.pxi":157
 *                 if not new_path and index != 0:
 *                     raise ValueError, u"index not allowed on root node"
 *                 name = <bytes>c_name[:index_pos - c_name]             # <<<<<<<<<<<<<<
 *         new_path.append( (ns, name, index) )
 *     if not new_path:
 */
        __Pyx_TraceLine(157,0,__PYX_ERR(1, 157, __pyx_L1_error))
        __pyx_t_6 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_c_name) + 0, (__pyx_v_index_pos - __pyx_v_c_name) - 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 157, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_6);
        __pyx_t_4 = __pyx_t_6;
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_4);
        __pyx_t_4 = 0;
      }
      __pyx_L8:;
    }
    __pyx_L5:;

    /* "src/lxml/objectpath.pxi":158
 *                     raise ValueError, u"index not allowed on root node"
 *                 name = <bytes>c_name[:index_pos - c_name]
 *         new_path.append( (ns, name, index) )             # <<<<<<<<<<<<<<
 *     if not new_path:
 *         raise ValueError, u"invalid path"
 */
    __Pyx_TraceLine(158,0,__PYX_ERR(1, 158, __pyx_L1_error))
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v_ns);
    __Pyx_GIVEREF(__pyx_v_ns);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_ns);
    __Pyx_INCREF(__pyx_v_name);
    __Pyx_GIVEREF(__pyx_v_name);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_name);
    __Pyx_INCREF(__pyx_v_index);
    __Pyx_GIVEREF(__pyx_v_index);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_index);
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_new_path, __pyx_t_4); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(1, 158, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "src/lxml/objectpath.pxi":138
 *     """
 *     new_path = []
 *     for item in path:             # <<<<<<<<<<<<<<
 *         item = item.strip()
 *         if not new_path and item == u'':
 */
    __Pyx_TraceLine(138,0,__PYX_ERR(1, 138, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":159
 *                 name = <bytes>c_name[:index_pos - c_name]
 *         new_path.append( (ns, name, index) )
 *     if not new_path:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"invalid path"
 *     return new_path
 */
  __Pyx_TraceLine(159,0,__PYX_ERR(1, 159, __pyx_L1_error))
  __pyx_t_7 = (PyList_GET_SIZE(__pyx_v_new_path) != 0);
  __pyx_t_8 = ((!__pyx_t_7) != 0);
  if (unlikely(__pyx_t_8)) {

    /* "src/lxml/objectpath.pxi":160
 *         new_path.append( (ns, name, index) )
 *     if not new_path:
 *         raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
 *     return new_path
 * 
 */
    __Pyx_TraceLine(160,0,__PYX_ERR(1, 160, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_invalid_path, 0, 0);
    __PYX_ERR(1, 160, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":159
 *                 name = <bytes>c_name[:index_pos - c_name]
 *         new_path.append( (ns, name, index) )
 *     if not new_path:             # <<<<<<<<<<<<<<
 *         raise ValueError, u"invalid path"
 *     return new_path
 */
  }

  /* "src/lxml/objectpath.pxi":161
 *     if not new_path:
 *         raise ValueError, u"invalid path"
 *     return new_path             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(161,0,__PYX_ERR(1, 161, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_new_path);
  __pyx_r = __pyx_v_new_path;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":134
 * 
 * 
 * cdef list _parse_object_path_list(path):             # <<<<<<<<<<<<<<
 *     u"""Parse object path sequence into a (ns, name, index) list.
 *     """
 */

  /* 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("lxml.objectify._parse_object_path_list", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_new_path);
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF(__pyx_v_ns);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":164
 * 
 * 
 * cdef _ObjectPath* _build_object_path_segments(list path_list) except NULL:             # <<<<<<<<<<<<<<
 *     cdef _ObjectPath* c_path
 *     cdef _ObjectPath* c_path_segments
 */

static __pyx_t_4lxml_9objectify__ObjectPath *__pyx_f_4lxml_9objectify__build_object_path_segments(PyObject *__pyx_v_path_list) {
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_v_c_path;
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_v_c_path_segments;
  PyObject *__pyx_v_href = NULL;
  PyObject *__pyx_v_name = NULL;
  PyObject *__pyx_v_index = NULL;
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *(*__pyx_t_9)(PyObject *);
  const xmlChar *__pyx_t_10;
  Py_ssize_t __pyx_t_11;
  __Pyx_RefNannySetupContext("_build_object_path_segments", 0);
  __Pyx_TraceCall("_build_object_path_segments", __pyx_f[1], 164, 0, __PYX_ERR(1, 164, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":167
 *     cdef _ObjectPath* c_path
 *     cdef _ObjectPath* c_path_segments
 *     c_path_segments = <_ObjectPath*>python.lxml_malloc(len(path_list), sizeof(_ObjectPath))             # <<<<<<<<<<<<<<
 *     if c_path_segments is NULL:
 *         raise MemoryError()
 */
  __Pyx_TraceLine(167,0,__PYX_ERR(1, 167, __pyx_L1_error))
  if (unlikely(__pyx_v_path_list == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(1, 167, __pyx_L1_error)
  }
  __pyx_t_1 = PyList_GET_SIZE(__pyx_v_path_list); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(1, 167, __pyx_L1_error)
  __pyx_v_c_path_segments = ((__pyx_t_4lxml_9objectify__ObjectPath *)lxml_malloc(__pyx_t_1, (sizeof(__pyx_t_4lxml_9objectify__ObjectPath))));

  /* "src/lxml/objectpath.pxi":168
 *     cdef _ObjectPath* c_path_segments
 *     c_path_segments = <_ObjectPath*>python.lxml_malloc(len(path_list), sizeof(_ObjectPath))
 *     if c_path_segments is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     c_path = c_path_segments
 */
  __Pyx_TraceLine(168,0,__PYX_ERR(1, 168, __pyx_L1_error))
  __pyx_t_2 = ((__pyx_v_c_path_segments == NULL) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "src/lxml/objectpath.pxi":169
 *     c_path_segments = <_ObjectPath*>python.lxml_malloc(len(path_list), sizeof(_ObjectPath))
 *     if c_path_segments is NULL:
 *         raise MemoryError()             # <<<<<<<<<<<<<<
 *     c_path = c_path_segments
 *     for href, name, index in path_list:
 */
    __Pyx_TraceLine(169,0,__PYX_ERR(1, 169, __pyx_L1_error))
    PyErr_NoMemory(); __PYX_ERR(1, 169, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":168
 *     cdef _ObjectPath* c_path_segments
 *     c_path_segments = <_ObjectPath*>python.lxml_malloc(len(path_list), sizeof(_ObjectPath))
 *     if c_path_segments is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     c_path = c_path_segments
 */
  }

  /* "src/lxml/objectpath.pxi":170
 *     if c_path_segments is NULL:
 *         raise MemoryError()
 *     c_path = c_path_segments             # <<<<<<<<<<<<<<
 *     for href, name, index in path_list:
 *         c_path[0].href = _xcstr(href) if href is not None else NULL
 */
  __Pyx_TraceLine(170,0,__PYX_ERR(1, 170, __pyx_L1_error))
  __pyx_v_c_path = __pyx_v_c_path_segments;

  /* "src/lxml/objectpath.pxi":171
 *         raise MemoryError()
 *     c_path = c_path_segments
 *     for href, name, index in path_list:             # <<<<<<<<<<<<<<
 *         c_path[0].href = _xcstr(href) if href is not None else NULL
 *         c_path[0].name = _xcstr(name) if name is not None else NULL
 */
  __Pyx_TraceLine(171,0,__PYX_ERR(1, 171, __pyx_L1_error))
  if (unlikely(__pyx_v_path_list == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(1, 171, __pyx_L1_error)
  }
  __pyx_t_3 = __pyx_v_path_list; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0;
  for (;;) {
    if (__pyx_t_1 >= 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_1); __Pyx_INCREF(__pyx_t_4); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(1, 171, __pyx_L1_error)
    #else
    __pyx_t_4 = PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
      PyObject* sequence = __pyx_t_4;
      Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(1, 171, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); 
        __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2); 
      } else {
        __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_6 = PyList_GET_ITEM(sequence, 1); 
        __pyx_t_7 = PyList_GET_ITEM(sequence, 2); 
      }
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_t_7);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_7);
      #endif
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_8 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 171, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
      index = 0; __pyx_t_5 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_5)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_6);
      index = 2; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L6_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_7);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 3) < 0) __PYX_ERR(1, 171, __pyx_L1_error)
      __pyx_t_9 = NULL;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L7_unpacking_done;
      __pyx_L6_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_9 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(1, 171, __pyx_L1_error)
      __pyx_L7_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_href, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_6);
    __pyx_t_6 = 0;
    __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_7);
    __pyx_t_7 = 0;

    /* "src/lxml/objectpath.pxi":172
 *     c_path = c_path_segments
 *     for href, name, index in path_list:
 *         c_path[0].href = _xcstr(href) if href is not None else NULL             # <<<<<<<<<<<<<<
 *         c_path[0].name = _xcstr(name) if name is not None else NULL
 *         c_path[0].index = index
 */
    __Pyx_TraceLine(172,0,__PYX_ERR(1, 172, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_href != Py_None);
    if ((__pyx_t_2 != 0)) {
      __pyx_t_10 = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_href);
    } else {
      __pyx_t_10 = NULL;
    }
    (__pyx_v_c_path[0]).href = __pyx_t_10;

    /* "src/lxml/objectpath.pxi":173
 *     for href, name, index in path_list:
 *         c_path[0].href = _xcstr(href) if href is not None else NULL
 *         c_path[0].name = _xcstr(name) if name is not None else NULL             # <<<<<<<<<<<<<<
 *         c_path[0].index = index
 *         c_path += 1
 */
    __Pyx_TraceLine(173,0,__PYX_ERR(1, 173, __pyx_L1_error))
    __pyx_t_2 = (__pyx_v_name != Py_None);
    if ((__pyx_t_2 != 0)) {
      __pyx_t_10 = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_name);
    } else {
      __pyx_t_10 = NULL;
    }
    (__pyx_v_c_path[0]).name = __pyx_t_10;

    /* "src/lxml/objectpath.pxi":174
 *         c_path[0].href = _xcstr(href) if href is not None else NULL
 *         c_path[0].name = _xcstr(name) if name is not None else NULL
 *         c_path[0].index = index             # <<<<<<<<<<<<<<
 *         c_path += 1
 *     return c_path_segments
 */
    __Pyx_TraceLine(174,0,__PYX_ERR(1, 174, __pyx_L1_error))
    __pyx_t_11 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_11 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 174, __pyx_L1_error)
    (__pyx_v_c_path[0]).index = __pyx_t_11;

    /* "src/lxml/objectpath.pxi":175
 *         c_path[0].name = _xcstr(name) if name is not None else NULL
 *         c_path[0].index = index
 *         c_path += 1             # <<<<<<<<<<<<<<
 *     return c_path_segments
 * 
 */
    __Pyx_TraceLine(175,0,__PYX_ERR(1, 175, __pyx_L1_error))
    __pyx_v_c_path = (__pyx_v_c_path + 1);

    /* "src/lxml/objectpath.pxi":171
 *         raise MemoryError()
 *     c_path = c_path_segments
 *     for href, name, index in path_list:             # <<<<<<<<<<<<<<
 *         c_path[0].href = _xcstr(href) if href is not None else NULL
 *         c_path[0].name = _xcstr(name) if name is not None else NULL
 */
    __Pyx_TraceLine(171,0,__PYX_ERR(1, 171, __pyx_L1_error))
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "src/lxml/objectpath.pxi":176
 *         c_path[0].index = index
 *         c_path += 1
 *     return c_path_segments             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(176,0,__PYX_ERR(1, 176, __pyx_L1_error))
  __pyx_r = __pyx_v_c_path_segments;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":164
 * 
 * 
 * cdef _ObjectPath* _build_object_path_segments(list path_list) except NULL:             # <<<<<<<<<<<<<<
 *     cdef _ObjectPath* c_path
 *     cdef _ObjectPath* c_path_segments
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("lxml.objectify._build_object_path_segments", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_href);
  __Pyx_XDECREF(__pyx_v_name);
  __Pyx_XDECREF(__pyx_v_index);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":179
 * 
 * 
 * cdef _find_object_path(_Element root, _ObjectPath* c_path, Py_ssize_t c_path_len, default_value):             # <<<<<<<<<<<<<<
 *     u"""Follow the path to find the target element.
 *     """
 */

static PyObject *__pyx_f_4lxml_9objectify__find_object_path(struct LxmlElement *__pyx_v_root, __pyx_t_4lxml_9objectify__ObjectPath *__pyx_v_c_path, Py_ssize_t __pyx_v_c_path_len, PyObject *__pyx_v_default_value) {
  xmlNode *__pyx_v_c_node;
  Py_ssize_t __pyx_v_c_index;
  const xmlChar *__pyx_v_c_name;
  const xmlChar *__pyx_v_c_href;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  xmlNode *__pyx_t_1;
  const xmlChar *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  Py_UCS4 __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("_find_object_path", 0);
  __Pyx_TraceCall("_find_object_path", __pyx_f[1], 179, 0, __PYX_ERR(1, 179, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":184
 *     cdef tree.xmlNode* c_node
 *     cdef Py_ssize_t c_index
 *     c_node = root._c_node             # <<<<<<<<<<<<<<
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 */
  __Pyx_TraceLine(184,0,__PYX_ERR(1, 184, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_root->_c_node;
  __pyx_v_c_node = __pyx_t_1;

  /* "src/lxml/objectpath.pxi":185
 *     cdef Py_ssize_t c_index
 *     c_node = root._c_node
 *     c_name = c_path[0].name             # <<<<<<<<<<<<<<
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':
 */
  __Pyx_TraceLine(185,0,__PYX_ERR(1, 185, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_c_path[0]).name;
  __pyx_v_c_name = __pyx_t_2;

  /* "src/lxml/objectpath.pxi":186
 *     c_node = root._c_node
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href             # <<<<<<<<<<<<<<
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 */
  __Pyx_TraceLine(186,0,__PYX_ERR(1, 186, __pyx_L1_error))
  __pyx_t_2 = (__pyx_v_c_path[0]).href;
  __pyx_v_c_href = __pyx_t_2;

  /* "src/lxml/objectpath.pxi":187
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 */
  __Pyx_TraceLine(187,0,__PYX_ERR(1, 187, __pyx_L1_error))
  __pyx_t_4 = ((__pyx_v_c_href == NULL) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_3 = __pyx_t_4;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_4 = (((__pyx_v_c_href[0]) == '\x00') != 0);
  __pyx_t_3 = __pyx_t_4;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_3) {

    /* "src/lxml/objectpath.pxi":188
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         if default_value is not _NO_DEFAULT:
 */
    __Pyx_TraceLine(188,0,__PYX_ERR(1, 188, __pyx_L1_error))
    __pyx_v_c_href = _getNs(__pyx_v_c_node);

    /* "src/lxml/objectpath.pxi":187
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 */
  }

  /* "src/lxml/objectpath.pxi":189
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
 *         if default_value is not _NO_DEFAULT:
 *             return default_value
 */
  __Pyx_TraceLine(189,0,__PYX_ERR(1, 189, __pyx_L1_error))
  __pyx_t_3 = ((!(tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name) != 0)) != 0);
  if (__pyx_t_3) {

    /* "src/lxml/objectpath.pxi":190
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         if default_value is not _NO_DEFAULT:             # <<<<<<<<<<<<<<
 *             return default_value
 *         else:
 */
    __Pyx_TraceLine(190,0,__PYX_ERR(1, 190, __pyx_L1_error))
    __pyx_t_3 = (__pyx_v_default_value != __pyx_v_4lxml_9objectify__NO_DEFAULT);
    __pyx_t_4 = (__pyx_t_3 != 0);
    if (likely(__pyx_t_4)) {

      /* "src/lxml/objectpath.pxi":191
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         if default_value is not _NO_DEFAULT:
 *             return default_value             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError(
 */
      __Pyx_TraceLine(191,0,__PYX_ERR(1, 191, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_v_default_value);
      __pyx_r = __pyx_v_default_value;
      goto __pyx_L0;

      /* "src/lxml/objectpath.pxi":190
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         if default_value is not _NO_DEFAULT:             # <<<<<<<<<<<<<<
 *             return default_value
 *         else:
 */
    }

    /* "src/lxml/objectpath.pxi":193
 *             return default_value
 *         else:
 *             raise ValueError(             # <<<<<<<<<<<<<<
 *                 f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 * 
 */
    __Pyx_TraceLine(193,0,__PYX_ERR(1, 193, __pyx_L1_error))
    /*else*/ {

      /* "src/lxml/objectpath.pxi":194
 *         else:
 *             raise ValueError(
 *                 f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")             # <<<<<<<<<<<<<<
 * 
 *     while c_node is not NULL:
 */
      __Pyx_TraceLine(194,0,__PYX_ERR(1, 194, __pyx_L1_error))
      __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = 0;
      __pyx_t_7 = 127;
      __Pyx_INCREF(__pyx_kp_u_root_element_does_not_match_need);
      __pyx_t_6 += 34;
      __Pyx_GIVEREF(__pyx_kp_u_root_element_does_not_match_need);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_root_element_does_not_match_need);
      __pyx_t_8 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_7;
      __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
      __Pyx_GIVEREF(__pyx_t_9);
      PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_9);
      __pyx_t_9 = 0;
      __Pyx_INCREF(__pyx_kp_u_got);
      __pyx_t_6 += 6;
      __Pyx_GIVEREF(__pyx_kp_u_got);
      PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_got);
      __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_root), __pyx_n_s_tag); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_t_9, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_7;
      __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8);
      __Pyx_GIVEREF(__pyx_t_8);
      PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_8);
      __pyx_t_8 = 0;
      __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 4, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 194, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "src/lxml/objectpath.pxi":193
 *             return default_value
 *         else:
 *             raise ValueError(             # <<<<<<<<<<<<<<
 *                 f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 * 
 */
      __Pyx_TraceLine(193,0,__PYX_ERR(1, 193, __pyx_L1_error))
      __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 193, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_Raise(__pyx_t_5, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __PYX_ERR(1, 193, __pyx_L1_error)
    }

    /* "src/lxml/objectpath.pxi":189
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
 *         if default_value is not _NO_DEFAULT:
 *             return default_value
 */
  }

  /* "src/lxml/objectpath.pxi":196
 *                 f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 * 
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
 *         c_path_len -= 1
 *         if c_path_len <= 0:
 */
  __Pyx_TraceLine(196,0,__PYX_ERR(1, 196, __pyx_L1_error))
  while (1) {
    __pyx_t_4 = ((__pyx_v_c_node != NULL) != 0);
    if (!__pyx_t_4) break;

    /* "src/lxml/objectpath.pxi":197
 * 
 *     while c_node is not NULL:
 *         c_path_len -= 1             # <<<<<<<<<<<<<<
 *         if c_path_len <= 0:
 *             break
 */
    __Pyx_TraceLine(197,0,__PYX_ERR(1, 197, __pyx_L1_error))
    __pyx_v_c_path_len = (__pyx_v_c_path_len - 1);

    /* "src/lxml/objectpath.pxi":198
 *     while c_node is not NULL:
 *         c_path_len -= 1
 *         if c_path_len <= 0:             # <<<<<<<<<<<<<<
 *             break
 * 
 */
    __Pyx_TraceLine(198,0,__PYX_ERR(1, 198, __pyx_L1_error))
    __pyx_t_4 = ((__pyx_v_c_path_len <= 0) != 0);
    if (__pyx_t_4) {

      /* "src/lxml/objectpath.pxi":199
 *         c_path_len -= 1
 *         if c_path_len <= 0:
 *             break             # <<<<<<<<<<<<<<
 * 
 *         c_path += 1
 */
      __Pyx_TraceLine(199,0,__PYX_ERR(1, 199, __pyx_L1_error))
      goto __pyx_L9_break;

      /* "src/lxml/objectpath.pxi":198
 *     while c_node is not NULL:
 *         c_path_len -= 1
 *         if c_path_len <= 0:             # <<<<<<<<<<<<<<
 *             break
 * 
 */
    }

    /* "src/lxml/objectpath.pxi":201
 *             break
 * 
 *         c_path += 1             # <<<<<<<<<<<<<<
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 */
    __Pyx_TraceLine(201,0,__PYX_ERR(1, 201, __pyx_L1_error))
    __pyx_v_c_path = (__pyx_v_c_path + 1);

    /* "src/lxml/objectpath.pxi":202
 * 
 *         c_path += 1
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 */
    __Pyx_TraceLine(202,0,__PYX_ERR(1, 202, __pyx_L1_error))
    __pyx_t_4 = (((__pyx_v_c_path[0]).href != NULL) != 0);
    if (__pyx_t_4) {

      /* "src/lxml/objectpath.pxi":203
 *         c_path += 1
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace             # <<<<<<<<<<<<<<
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:
 */
      __Pyx_TraceLine(203,0,__PYX_ERR(1, 203, __pyx_L1_error))
      __pyx_t_2 = (__pyx_v_c_path[0]).href;
      __pyx_v_c_href = __pyx_t_2;

      /* "src/lxml/objectpath.pxi":202
 * 
 *         c_path += 1
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 */
    }

    /* "src/lxml/objectpath.pxi":204
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)             # <<<<<<<<<<<<<<
 *         if c_name is NULL:
 *             c_name = c_path[0].name
 */
    __Pyx_TraceLine(204,0,__PYX_ERR(1, 204, __pyx_L1_error))
    __pyx_v_c_name = xmlDictExists(__pyx_v_c_node->doc->dict, (__pyx_v_c_path[0]).name, -1);

    /* "src/lxml/objectpath.pxi":205
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
 *             c_name = c_path[0].name
 *             c_node = NULL
 */
    __Pyx_TraceLine(205,0,__PYX_ERR(1, 205, __pyx_L1_error))
    __pyx_t_4 = ((__pyx_v_c_name == NULL) != 0);
    if (__pyx_t_4) {

      /* "src/lxml/objectpath.pxi":206
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:
 *             c_name = c_path[0].name             # <<<<<<<<<<<<<<
 *             c_node = NULL
 *             break
 */
      __Pyx_TraceLine(206,0,__PYX_ERR(1, 206, __pyx_L1_error))
      __pyx_t_2 = (__pyx_v_c_path[0]).name;
      __pyx_v_c_name = __pyx_t_2;

      /* "src/lxml/objectpath.pxi":207
 *         if c_name is NULL:
 *             c_name = c_path[0].name
 *             c_node = NULL             # <<<<<<<<<<<<<<
 *             break
 *         c_index = c_path[0].index
 */
      __Pyx_TraceLine(207,0,__PYX_ERR(1, 207, __pyx_L1_error))
      __pyx_v_c_node = NULL;

      /* "src/lxml/objectpath.pxi":208
 *             c_name = c_path[0].name
 *             c_node = NULL
 *             break             # <<<<<<<<<<<<<<
 *         c_index = c_path[0].index
 *         c_node = c_node.last if c_index < 0 else c_node.children
 */
      __Pyx_TraceLine(208,0,__PYX_ERR(1, 208, __pyx_L1_error))
      goto __pyx_L9_break;

      /* "src/lxml/objectpath.pxi":205
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
 *             c_name = c_path[0].name
 *             c_node = NULL
 */
    }

    /* "src/lxml/objectpath.pxi":209
 *             c_node = NULL
 *             break
 *         c_index = c_path[0].index             # <<<<<<<<<<<<<<
 *         c_node = c_node.last if c_index < 0 else c_node.children
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)
 */
    __Pyx_TraceLine(209,0,__PYX_ERR(1, 209, __pyx_L1_error))
    __pyx_t_6 = (__pyx_v_c_path[0]).index;
    __pyx_v_c_index = __pyx_t_6;

    /* "src/lxml/objectpath.pxi":210
 *             break
 *         c_index = c_path[0].index
 *         c_node = c_node.last if c_index < 0 else c_node.children             # <<<<<<<<<<<<<<
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)
 * 
 */
    __Pyx_TraceLine(210,0,__PYX_ERR(1, 210, __pyx_L1_error))
    if (((__pyx_v_c_index < 0) != 0)) {
      __pyx_t_1 = __pyx_v_c_node->last;
    } else {
      __pyx_t_1 = __pyx_v_c_node->children;
    }
    __pyx_v_c_node = __pyx_t_1;

    /* "src/lxml/objectpath.pxi":211
 *         c_index = c_path[0].index
 *         c_node = c_node.last if c_index < 0 else c_node.children
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)             # <<<<<<<<<<<<<<
 * 
 *     if c_node is not NULL:
 */
    __Pyx_TraceLine(211,0,__PYX_ERR(1, 211, __pyx_L1_error))
    __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name, __pyx_v_c_index);
  }
  __pyx_L9_break:;

  /* "src/lxml/objectpath.pxi":213
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)
 * 
 *     if c_node is not NULL:             # <<<<<<<<<<<<<<
 *         return cetree.elementFactory(root._doc, c_node)
 *     elif default_value is not _NO_DEFAULT:
 */
  __Pyx_TraceLine(213,0,__PYX_ERR(1, 213, __pyx_L1_error))
  __pyx_t_4 = ((__pyx_v_c_node != NULL) != 0);
  if (__pyx_t_4) {

    /* "src/lxml/objectpath.pxi":214
 * 
 *     if c_node is not NULL:
 *         return cetree.elementFactory(root._doc, c_node)             # <<<<<<<<<<<<<<
 *     elif default_value is not _NO_DEFAULT:
 *         return default_value
 */
    __Pyx_TraceLine(214,0,__PYX_ERR(1, 214, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_5 = ((PyObject *)__pyx_v_root->_doc);
    __Pyx_INCREF(__pyx_t_5);
    __pyx_t_8 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_r = __pyx_t_8;
    __pyx_t_8 = 0;
    goto __pyx_L0;

    /* "src/lxml/objectpath.pxi":213
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)
 * 
 *     if c_node is not NULL:             # <<<<<<<<<<<<<<
 *         return cetree.elementFactory(root._doc, c_node)
 *     elif default_value is not _NO_DEFAULT:
 */
  }

  /* "src/lxml/objectpath.pxi":215
 *     if c_node is not NULL:
 *         return cetree.elementFactory(root._doc, c_node)
 *     elif default_value is not _NO_DEFAULT:             # <<<<<<<<<<<<<<
 *         return default_value
 *     else:
 */
  __Pyx_TraceLine(215,0,__PYX_ERR(1, 215, __pyx_L1_error))
  __pyx_t_4 = (__pyx_v_default_value != __pyx_v_4lxml_9objectify__NO_DEFAULT);
  __pyx_t_3 = (__pyx_t_4 != 0);
  if (likely(__pyx_t_3)) {

    /* "src/lxml/objectpath.pxi":216
 *         return cetree.elementFactory(root._doc, c_node)
 *     elif default_value is not _NO_DEFAULT:
 *         return default_value             # <<<<<<<<<<<<<<
 *     else:
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)
 */
    __Pyx_TraceLine(216,0,__PYX_ERR(1, 216, __pyx_L1_error))
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_default_value);
    __pyx_r = __pyx_v_default_value;
    goto __pyx_L0;

    /* "src/lxml/objectpath.pxi":215
 *     if c_node is not NULL:
 *         return cetree.elementFactory(root._doc, c_node)
 *     elif default_value is not _NO_DEFAULT:             # <<<<<<<<<<<<<<
 *         return default_value
 *     else:
 */
  }

  /* "src/lxml/objectpath.pxi":218
 *         return default_value
 *     else:
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)             # <<<<<<<<<<<<<<
 *         raise AttributeError, f"no such child: {tag}"
 * 
 */
  __Pyx_TraceLine(218,0,__PYX_ERR(1, 218, __pyx_L1_error))
  /*else*/ {
    __pyx_t_8 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 218, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_v_tag = __pyx_t_8;
    __pyx_t_8 = 0;

    /* "src/lxml/objectpath.pxi":219
 *     else:
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)
 *         raise AttributeError, f"no such child: {tag}"             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __Pyx_TraceLine(219,0,__PYX_ERR(1, 219, __pyx_L1_error))
    __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_tag, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_no_such_child, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_5, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(1, 219, __pyx_L1_error)
  }

  /* "src/lxml/objectpath.pxi":179
 * 
 * 
 * cdef _find_object_path(_Element root, _ObjectPath* c_path, Py_ssize_t c_path_len, default_value):             # <<<<<<<<<<<<<<
 *     u"""Follow the path to find the target element.
 *     """
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify._find_object_path", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":222
 * 
 * 
 * cdef _create_object_path(_Element root, _ObjectPath* c_path,             # <<<<<<<<<<<<<<
 *                          Py_ssize_t c_path_len, int replace, value):
 *     u"""Follow the path to find the target element, build the missing children
 */

static PyObject *__pyx_f_4lxml_9objectify__create_object_path(struct LxmlElement *__pyx_v_root, __pyx_t_4lxml_9objectify__ObjectPath *__pyx_v_c_path, Py_ssize_t __pyx_v_c_path_len, int __pyx_v_replace, PyObject *__pyx_v_value) {
  struct LxmlElement *__pyx_v_child = 0;
  xmlNode *__pyx_v_c_node;
  xmlNode *__pyx_v_c_child;
  Py_ssize_t __pyx_v_c_index;
  const xmlChar *__pyx_v_c_name;
  const xmlChar *__pyx_v_c_href;
  struct LxmlElement *__pyx_v_element = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  xmlNode *__pyx_t_2;
  const xmlChar *__pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  Py_UCS4 __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("_create_object_path", 0);
  __Pyx_TraceCall("_create_object_path", __pyx_f[1], 222, 0, __PYX_ERR(1, 222, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":232
 *     cdef tree.xmlNode* c_child
 *     cdef Py_ssize_t c_index
 *     if c_path_len == 1:             # <<<<<<<<<<<<<<
 *         raise TypeError, u"cannot update root node"
 * 
 */
  __Pyx_TraceLine(232,0,__PYX_ERR(1, 232, __pyx_L1_error))
  __pyx_t_1 = ((__pyx_v_c_path_len == 1) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "src/lxml/objectpath.pxi":233
 *     cdef Py_ssize_t c_index
 *     if c_path_len == 1:
 *         raise TypeError, u"cannot update root node"             # <<<<<<<<<<<<<<
 * 
 *     c_node = root._c_node
 */
    __Pyx_TraceLine(233,0,__PYX_ERR(1, 233, __pyx_L1_error))
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_cannot_update_root_node, 0, 0);
    __PYX_ERR(1, 233, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":232
 *     cdef tree.xmlNode* c_child
 *     cdef Py_ssize_t c_index
 *     if c_path_len == 1:             # <<<<<<<<<<<<<<
 *         raise TypeError, u"cannot update root node"
 * 
 */
  }

  /* "src/lxml/objectpath.pxi":235
 *         raise TypeError, u"cannot update root node"
 * 
 *     c_node = root._c_node             # <<<<<<<<<<<<<<
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 */
  __Pyx_TraceLine(235,0,__PYX_ERR(1, 235, __pyx_L1_error))
  __pyx_t_2 = __pyx_v_root->_c_node;
  __pyx_v_c_node = __pyx_t_2;

  /* "src/lxml/objectpath.pxi":236
 * 
 *     c_node = root._c_node
 *     c_name = c_path[0].name             # <<<<<<<<<<<<<<
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':
 */
  __Pyx_TraceLine(236,0,__PYX_ERR(1, 236, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v_c_path[0]).name;
  __pyx_v_c_name = __pyx_t_3;

  /* "src/lxml/objectpath.pxi":237
 *     c_node = root._c_node
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href             # <<<<<<<<<<<<<<
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 */
  __Pyx_TraceLine(237,0,__PYX_ERR(1, 237, __pyx_L1_error))
  __pyx_t_3 = (__pyx_v_c_path[0]).href;
  __pyx_v_c_href = __pyx_t_3;

  /* "src/lxml/objectpath.pxi":238
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 */
  __Pyx_TraceLine(238,0,__PYX_ERR(1, 238, __pyx_L1_error))
  __pyx_t_4 = ((__pyx_v_c_href == NULL) != 0);
  if (!__pyx_t_4) {
  } else {
    __pyx_t_1 = __pyx_t_4;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_4 = (((__pyx_v_c_href[0]) == '\x00') != 0);
  __pyx_t_1 = __pyx_t_4;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_1) {

    /* "src/lxml/objectpath.pxi":239
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         raise ValueError(
 */
    __Pyx_TraceLine(239,0,__PYX_ERR(1, 239, __pyx_L1_error))
    __pyx_v_c_href = _getNs(__pyx_v_c_node);

    /* "src/lxml/objectpath.pxi":238
 *     c_name = c_path[0].name
 *     c_href = c_path[0].href
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 */
  }

  /* "src/lxml/objectpath.pxi":240
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 */
  __Pyx_TraceLine(240,0,__PYX_ERR(1, 240, __pyx_L1_error))
  __pyx_t_1 = ((!(tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name) != 0)) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "src/lxml/objectpath.pxi":242
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         raise ValueError(
 *             f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")             # <<<<<<<<<<<<<<
 * 
 *     while c_path_len > 1:
 */
    __Pyx_TraceLine(242,0,__PYX_ERR(1, 242, __pyx_L1_error))
    __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = 0;
    __pyx_t_7 = 127;
    __Pyx_INCREF(__pyx_kp_u_root_element_does_not_match_need);
    __pyx_t_6 += 34;
    __Pyx_GIVEREF(__pyx_kp_u_root_element_does_not_match_need);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_root_element_does_not_match_need);
    __pyx_t_8 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_t_8, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_7;
    __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_9);
    __pyx_t_9 = 0;
    __Pyx_INCREF(__pyx_kp_u_got);
    __pyx_t_6 += 6;
    __Pyx_GIVEREF(__pyx_kp_u_got);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u_got);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_root), __pyx_n_s_tag); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_t_9, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_7;
    __pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_8);
    __pyx_t_8 = 0;
    __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_5, 4, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 242, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "src/lxml/objectpath.pxi":241
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 *         raise ValueError(             # <<<<<<<<<<<<<<
 *             f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 * 
 */
    __Pyx_TraceLine(241,0,__PYX_ERR(1, 241, __pyx_L1_error))
    __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(1, 241, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":240
 *     if c_href is NULL or c_href[0] == c'\0':
 *         c_href = tree._getNs(c_node)
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
 *         raise ValueError(
 *             f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 */
  }

  /* "src/lxml/objectpath.pxi":244
 *             f"root element does not match: need {cetree.namespacedNameFromNsName(c_href, c_name)}, got {root.tag}")
 * 
 *     while c_path_len > 1:             # <<<<<<<<<<<<<<
 *         c_path_len -= 1
 *         c_path += 1
 */
  __Pyx_TraceLine(244,0,__PYX_ERR(1, 244, __pyx_L1_error))
  while (1) {
    __pyx_t_1 = ((__pyx_v_c_path_len > 1) != 0);
    if (!__pyx_t_1) break;

    /* "src/lxml/objectpath.pxi":245
 * 
 *     while c_path_len > 1:
 *         c_path_len -= 1             # <<<<<<<<<<<<<<
 *         c_path += 1
 *         if c_path[0].href is not NULL:
 */
    __Pyx_TraceLine(245,0,__PYX_ERR(1, 245, __pyx_L1_error))
    __pyx_v_c_path_len = (__pyx_v_c_path_len - 1);

    /* "src/lxml/objectpath.pxi":246
 *     while c_path_len > 1:
 *         c_path_len -= 1
 *         c_path += 1             # <<<<<<<<<<<<<<
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 */
    __Pyx_TraceLine(246,0,__PYX_ERR(1, 246, __pyx_L1_error))
    __pyx_v_c_path = (__pyx_v_c_path + 1);

    /* "src/lxml/objectpath.pxi":247
 *         c_path_len -= 1
 *         c_path += 1
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_index = c_path[0].index
 */
    __Pyx_TraceLine(247,0,__PYX_ERR(1, 247, __pyx_L1_error))
    __pyx_t_1 = (((__pyx_v_c_path[0]).href != NULL) != 0);
    if (__pyx_t_1) {

      /* "src/lxml/objectpath.pxi":248
 *         c_path += 1
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace             # <<<<<<<<<<<<<<
 *         c_index = c_path[0].index
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 */
      __Pyx_TraceLine(248,0,__PYX_ERR(1, 248, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v_c_path[0]).href;
      __pyx_v_c_href = __pyx_t_3;

      /* "src/lxml/objectpath.pxi":247
 *         c_path_len -= 1
 *         c_path += 1
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_index = c_path[0].index
 */
    }

    /* "src/lxml/objectpath.pxi":249
 *         if c_path[0].href is not NULL:
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_index = c_path[0].index             # <<<<<<<<<<<<<<
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:
 */
    __Pyx_TraceLine(249,0,__PYX_ERR(1, 249, __pyx_L1_error))
    __pyx_t_6 = (__pyx_v_c_path[0]).index;
    __pyx_v_c_index = __pyx_t_6;

    /* "src/lxml/objectpath.pxi":250
 *             c_href = c_path[0].href # otherwise: keep parent namespace
 *         c_index = c_path[0].index
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)             # <<<<<<<<<<<<<<
 *         if c_name is NULL:
 *             c_name = c_path[0].name
 */
    __Pyx_TraceLine(250,0,__PYX_ERR(1, 250, __pyx_L1_error))
    __pyx_v_c_name = xmlDictExists(__pyx_v_c_node->doc->dict, (__pyx_v_c_path[0]).name, -1);

    /* "src/lxml/objectpath.pxi":251
 *         c_index = c_path[0].index
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
 *             c_name = c_path[0].name
 *             c_child = NULL
 */
    __Pyx_TraceLine(251,0,__PYX_ERR(1, 251, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_c_name == NULL) != 0);
    if (__pyx_t_1) {

      /* "src/lxml/objectpath.pxi":252
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:
 *             c_name = c_path[0].name             # <<<<<<<<<<<<<<
 *             c_child = NULL
 *         else:
 */
      __Pyx_TraceLine(252,0,__PYX_ERR(1, 252, __pyx_L1_error))
      __pyx_t_3 = (__pyx_v_c_path[0]).name;
      __pyx_v_c_name = __pyx_t_3;

      /* "src/lxml/objectpath.pxi":253
 *         if c_name is NULL:
 *             c_name = c_path[0].name
 *             c_child = NULL             # <<<<<<<<<<<<<<
 *         else:
 *             c_child = c_node.last if c_index < 0 else c_node.children
 */
      __Pyx_TraceLine(253,0,__PYX_ERR(1, 253, __pyx_L1_error))
      __pyx_v_c_child = NULL;

      /* "src/lxml/objectpath.pxi":251
 *         c_index = c_path[0].index
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
 *             c_name = c_path[0].name
 *             c_child = NULL
 */
      goto __pyx_L11;
    }

    /* "src/lxml/objectpath.pxi":255
 *             c_child = NULL
 *         else:
 *             c_child = c_node.last if c_index < 0 else c_node.children             # <<<<<<<<<<<<<<
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)
 * 
 */
    __Pyx_TraceLine(255,0,__PYX_ERR(1, 255, __pyx_L1_error))
    /*else*/ {
      if (((__pyx_v_c_index < 0) != 0)) {
        __pyx_t_2 = __pyx_v_c_node->last;
      } else {
        __pyx_t_2 = __pyx_v_c_node->children;
      }
      __pyx_v_c_child = __pyx_t_2;

      /* "src/lxml/objectpath.pxi":256
 *         else:
 *             c_child = c_node.last if c_index < 0 else c_node.children
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)             # <<<<<<<<<<<<<<
 * 
 *         if c_child is not NULL:
 */
      __Pyx_TraceLine(256,0,__PYX_ERR(1, 256, __pyx_L1_error))
      __pyx_v_c_child = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_child, __pyx_v_c_href, __pyx_v_c_name, __pyx_v_c_index);
    }
    __pyx_L11:;

    /* "src/lxml/objectpath.pxi":258
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)
 * 
 *         if c_child is not NULL:             # <<<<<<<<<<<<<<
 *             c_node = c_child
 *         elif c_index != 0:
 */
    __Pyx_TraceLine(258,0,__PYX_ERR(1, 258, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_c_child != NULL) != 0);
    if (__pyx_t_1) {

      /* "src/lxml/objectpath.pxi":259
 * 
 *         if c_child is not NULL:
 *             c_node = c_child             # <<<<<<<<<<<<<<
 *         elif c_index != 0:
 *             raise TypeError, u"creating indexed path attributes is not supported"
 */
      __Pyx_TraceLine(259,0,__PYX_ERR(1, 259, __pyx_L1_error))
      __pyx_v_c_node = __pyx_v_c_child;

      /* "src/lxml/objectpath.pxi":258
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)
 * 
 *         if c_child is not NULL:             # <<<<<<<<<<<<<<
 *             c_node = c_child
 *         elif c_index != 0:
 */
      goto __pyx_L12;
    }

    /* "src/lxml/objectpath.pxi":260
 *         if c_child is not NULL:
 *             c_node = c_child
 *         elif c_index != 0:             # <<<<<<<<<<<<<<
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:
 */
    __Pyx_TraceLine(260,0,__PYX_ERR(1, 260, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_c_index != 0) != 0);
    if (unlikely(__pyx_t_1)) {

      /* "src/lxml/objectpath.pxi":261
 *             c_node = c_child
 *         elif c_index != 0:
 *             raise TypeError, u"creating indexed path attributes is not supported"             # <<<<<<<<<<<<<<
 *         elif c_path_len == 1:
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
 */
      __Pyx_TraceLine(261,0,__PYX_ERR(1, 261, __pyx_L1_error))
      __Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_creating_indexed_path_attributes, 0, 0);
      __PYX_ERR(1, 261, __pyx_L1_error)

      /* "src/lxml/objectpath.pxi":260
 *         if c_child is not NULL:
 *             c_node = c_child
 *         elif c_index != 0:             # <<<<<<<<<<<<<<
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:
 */
    }

    /* "src/lxml/objectpath.pxi":262
 *         elif c_index != 0:
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:             # <<<<<<<<<<<<<<
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
 */
    __Pyx_TraceLine(262,0,__PYX_ERR(1, 262, __pyx_L1_error))
    __pyx_t_1 = ((__pyx_v_c_path_len == 1) != 0);
    if (__pyx_t_1) {

      /* "src/lxml/objectpath.pxi":263
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:
 *             _appendValue(cetree.elementFactory(root._doc, c_node),             # <<<<<<<<<<<<<<
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
 *                          value)
 */
      __Pyx_TraceLine(263,0,__PYX_ERR(1, 263, __pyx_L1_error))
      __pyx_t_5 = ((PyObject *)__pyx_v_root->_doc);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_t_8 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

      /* "src/lxml/objectpath.pxi":264
 *         elif c_path_len == 1:
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
 *                          cetree.namespacedNameFromNsName(c_href, c_name),             # <<<<<<<<<<<<<<
 *                          value)
 *             return
 */
      __Pyx_TraceLine(264,0,__PYX_ERR(1, 264, __pyx_L1_error))
      __pyx_t_5 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 264, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);

      /* "src/lxml/objectpath.pxi":263
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:
 *             _appendValue(cetree.elementFactory(root._doc, c_node),             # <<<<<<<<<<<<<<
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
 *                          value)
 */
      __Pyx_TraceLine(263,0,__PYX_ERR(1, 263, __pyx_L1_error))
      __pyx_t_9 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_t_8), __pyx_t_5, __pyx_v_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 263, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "src/lxml/objectpath.pxi":266
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
 *                          value)
 *             return             # <<<<<<<<<<<<<<
 *         else:
 *             child = cetree.makeSubElement(
 */
      __Pyx_TraceLine(266,0,__PYX_ERR(1, 266, __pyx_L1_error))
      __Pyx_XDECREF(__pyx_r);
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
      goto __pyx_L0;

      /* "src/lxml/objectpath.pxi":262
 *         elif c_index != 0:
 *             raise TypeError, u"creating indexed path attributes is not supported"
 *         elif c_path_len == 1:             # <<<<<<<<<<<<<<
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
 */
    }

    /* "src/lxml/objectpath.pxi":268
 *             return
 *         else:
 *             child = cetree.makeSubElement(             # <<<<<<<<<<<<<<
 *                 cetree.elementFactory(root._doc, c_node),
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
 */
    __Pyx_TraceLine(268,0,__PYX_ERR(1, 268, __pyx_L1_error))
    /*else*/ {

      /* "src/lxml/objectpath.pxi":269
 *         else:
 *             child = cetree.makeSubElement(
 *                 cetree.elementFactory(root._doc, c_node),             # <<<<<<<<<<<<<<
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
 *                 None, None, None, None)
 */
      __Pyx_TraceLine(269,0,__PYX_ERR(1, 269, __pyx_L1_error))
      __pyx_t_9 = ((PyObject *)__pyx_v_root->_doc);
      __Pyx_INCREF(__pyx_t_9);
      __pyx_t_5 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_9), __pyx_v_c_node)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 269, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

      /* "src/lxml/objectpath.pxi":270
 *             child = cetree.makeSubElement(
 *                 cetree.elementFactory(root._doc, c_node),
 *                 cetree.namespacedNameFromNsName(c_href, c_name),             # <<<<<<<<<<<<<<
 *                 None, None, None, None)
 *             c_node = child._c_node
 */
      __Pyx_TraceLine(270,0,__PYX_ERR(1, 270, __pyx_L1_error))
      __pyx_t_9 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 270, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);

      /* "src/lxml/objectpath.pxi":268
 *             return
 *         else:
 *             child = cetree.makeSubElement(             # <<<<<<<<<<<<<<
 *                 cetree.elementFactory(root._doc, c_node),
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
 */
      __Pyx_TraceLine(268,0,__PYX_ERR(1, 268, __pyx_L1_error))
      __pyx_t_8 = ((PyObject *)makeSubElement(((struct LxmlElement *)__pyx_t_5), __pyx_t_9, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 268, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_XDECREF_SET(__pyx_v_child, ((struct LxmlElement *)__pyx_t_8));
      __pyx_t_8 = 0;

      /* "src/lxml/objectpath.pxi":272
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
 *                 None, None, None, None)
 *             c_node = child._c_node             # <<<<<<<<<<<<<<
 * 
 *     # if we get here, the entire path was already there
 */
      __Pyx_TraceLine(272,0,__PYX_ERR(1, 272, __pyx_L1_error))
      __pyx_t_2 = __pyx_v_child->_c_node;
      __pyx_v_c_node = __pyx_t_2;
    }
    __pyx_L12:;
  }

  /* "src/lxml/objectpath.pxi":275
 * 
 *     # if we get here, the entire path was already there
 *     if replace:             # <<<<<<<<<<<<<<
 *         element = cetree.elementFactory(root._doc, c_node)
 *         _replaceElement(element, value)
 */
  __Pyx_TraceLine(275,0,__PYX_ERR(1, 275, __pyx_L1_error))
  __pyx_t_1 = (__pyx_v_replace != 0);
  if (__pyx_t_1) {

    /* "src/lxml/objectpath.pxi":276
 *     # if we get here, the entire path was already there
 *     if replace:
 *         element = cetree.elementFactory(root._doc, c_node)             # <<<<<<<<<<<<<<
 *         _replaceElement(element, value)
 *     else:
 */
    __Pyx_TraceLine(276,0,__PYX_ERR(1, 276, __pyx_L1_error))
    __pyx_t_8 = ((PyObject *)__pyx_v_root->_doc);
    __Pyx_INCREF(__pyx_t_8);
    __pyx_t_9 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_8), __pyx_v_c_node)); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_9);
    __pyx_t_9 = 0;

    /* "src/lxml/objectpath.pxi":277
 *     if replace:
 *         element = cetree.elementFactory(root._doc, c_node)
 *         _replaceElement(element, value)             # <<<<<<<<<<<<<<
 *     else:
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),
 */
    __Pyx_TraceLine(277,0,__PYX_ERR(1, 277, __pyx_L1_error))
    __pyx_t_9 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "src/lxml/objectpath.pxi":275
 * 
 *     # if we get here, the entire path was already there
 *     if replace:             # <<<<<<<<<<<<<<
 *         element = cetree.elementFactory(root._doc, c_node)
 *         _replaceElement(element, value)
 */
    goto __pyx_L13;
  }

  /* "src/lxml/objectpath.pxi":279
 *         _replaceElement(element, value)
 *     else:
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),             # <<<<<<<<<<<<<<
 *                      cetree.namespacedName(c_node), value)
 * 
 */
  __Pyx_TraceLine(279,0,__PYX_ERR(1, 279, __pyx_L1_error))
  /*else*/ {
    __pyx_t_9 = ((PyObject *)__pyx_v_root->_doc);
    __Pyx_INCREF(__pyx_t_9);
    __pyx_t_8 = ((PyObject *)elementFactory(((struct LxmlDocument *)__pyx_t_9), __pyx_v_c_node->parent)); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "src/lxml/objectpath.pxi":280
 *     else:
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),
 *                      cetree.namespacedName(c_node), value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __Pyx_TraceLine(280,0,__PYX_ERR(1, 280, __pyx_L1_error))
    __pyx_t_9 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "src/lxml/objectpath.pxi":279
 *         _replaceElement(element, value)
 *     else:
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),             # <<<<<<<<<<<<<<
 *                      cetree.namespacedName(c_node), value)
 * 
 */
    __Pyx_TraceLine(279,0,__PYX_ERR(1, 279, __pyx_L1_error))
    __pyx_t_5 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_t_8), __pyx_t_9, __pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __pyx_L13:;

  /* "src/lxml/objectpath.pxi":222
 * 
 * 
 * cdef _create_object_path(_Element root, _ObjectPath* c_path,             # <<<<<<<<<<<<<<
 *                          Py_ssize_t c_path_len, int replace, value):
 *     u"""Follow the path to find the target element, build the missing children
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("lxml.objectify._create_object_path", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_child);
  __Pyx_XDECREF((PyObject *)__pyx_v_element);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":283
 * 
 * 
 * cdef list _build_descendant_paths(tree.xmlNode* c_node, prefix_string):             # <<<<<<<<<<<<<<
 *     u"""Returns a list of all descendant paths.
 *     """
 */

static PyObject *__pyx_f_4lxml_9objectify__build_descendant_paths(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_prefix_string) {
  PyObject *__pyx_v_path = 0;
  PyObject *__pyx_v_path_list = 0;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("_build_descendant_paths", 0);
  __Pyx_TraceCall("_build_descendant_paths", __pyx_f[1], 283, 0, __PYX_ERR(1, 283, __pyx_L1_error));
  __Pyx_INCREF(__pyx_v_prefix_string);

  /* "src/lxml/objectpath.pxi":287
 *     """
 *     cdef list path, path_list
 *     tag = cetree.namespacedName(c_node)             # <<<<<<<<<<<<<<
 *     if prefix_string:
 *         if prefix_string[-1] != u'.':
 */
  __Pyx_TraceLine(287,0,__PYX_ERR(1, 287, __pyx_L1_error))
  __pyx_t_1 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tag = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":288
 *     cdef list path, path_list
 *     tag = cetree.namespacedName(c_node)
 *     if prefix_string:             # <<<<<<<<<<<<<<
 *         if prefix_string[-1] != u'.':
 *             prefix_string += u'.'
 */
  __Pyx_TraceLine(288,0,__PYX_ERR(1, 288, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_prefix_string); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 288, __pyx_L1_error)
  if (__pyx_t_2) {

    /* "src/lxml/objectpath.pxi":289
 *     tag = cetree.namespacedName(c_node)
 *     if prefix_string:
 *         if prefix_string[-1] != u'.':             # <<<<<<<<<<<<<<
 *             prefix_string += u'.'
 *         prefix_string = prefix_string + tag
 */
    __Pyx_TraceLine(289,0,__PYX_ERR(1, 289, __pyx_L1_error))
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_prefix_string, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_1, __pyx_kp_u__9, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 289, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_2) {

      /* "src/lxml/objectpath.pxi":290
 *     if prefix_string:
 *         if prefix_string[-1] != u'.':
 *             prefix_string += u'.'             # <<<<<<<<<<<<<<
 *         prefix_string = prefix_string + tag
 *     else:
 */
      __Pyx_TraceLine(290,0,__PYX_ERR(1, 290, __pyx_L1_error))
      __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_prefix_string, __pyx_kp_u__9); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 290, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF_SET(__pyx_v_prefix_string, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "src/lxml/objectpath.pxi":289
 *     tag = cetree.namespacedName(c_node)
 *     if prefix_string:
 *         if prefix_string[-1] != u'.':             # <<<<<<<<<<<<<<
 *             prefix_string += u'.'
 *         prefix_string = prefix_string + tag
 */
    }

    /* "src/lxml/objectpath.pxi":291
 *         if prefix_string[-1] != u'.':
 *             prefix_string += u'.'
 *         prefix_string = prefix_string + tag             # <<<<<<<<<<<<<<
 *     else:
 *         prefix_string = tag
 */
    __Pyx_TraceLine(291,0,__PYX_ERR(1, 291, __pyx_L1_error))
    __pyx_t_1 = PyNumber_Add(__pyx_v_prefix_string, __pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 291, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF_SET(__pyx_v_prefix_string, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "src/lxml/objectpath.pxi":288
 *     cdef list path, path_list
 *     tag = cetree.namespacedName(c_node)
 *     if prefix_string:             # <<<<<<<<<<<<<<
 *         if prefix_string[-1] != u'.':
 *             prefix_string += u'.'
 */
    goto __pyx_L3;
  }

  /* "src/lxml/objectpath.pxi":293
 *         prefix_string = prefix_string + tag
 *     else:
 *         prefix_string = tag             # <<<<<<<<<<<<<<
 *     path = [prefix_string]
 *     path_list = []
 */
  __Pyx_TraceLine(293,0,__PYX_ERR(1, 293, __pyx_L1_error))
  /*else*/ {
    __Pyx_INCREF(__pyx_v_tag);
    __Pyx_DECREF_SET(__pyx_v_prefix_string, __pyx_v_tag);
  }
  __pyx_L3:;

  /* "src/lxml/objectpath.pxi":294
 *     else:
 *         prefix_string = tag
 *     path = [prefix_string]             # <<<<<<<<<<<<<<
 *     path_list = []
 *     _recursive_build_descendant_paths(c_node, path, path_list)
 */
  __Pyx_TraceLine(294,0,__PYX_ERR(1, 294, __pyx_L1_error))
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_prefix_string);
  __Pyx_GIVEREF(__pyx_v_prefix_string);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_v_prefix_string);
  __pyx_v_path = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":295
 *         prefix_string = tag
 *     path = [prefix_string]
 *     path_list = []             # <<<<<<<<<<<<<<
 *     _recursive_build_descendant_paths(c_node, path, path_list)
 *     return path_list
 */
  __Pyx_TraceLine(295,0,__PYX_ERR(1, 295, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_path_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":296
 *     path = [prefix_string]
 *     path_list = []
 *     _recursive_build_descendant_paths(c_node, path, path_list)             # <<<<<<<<<<<<<<
 *     return path_list
 * 
 */
  __Pyx_TraceLine(296,0,__PYX_ERR(1, 296, __pyx_L1_error))
  __pyx_t_3 = __pyx_f_4lxml_9objectify__recursive_build_descendant_paths(__pyx_v_c_node, __pyx_v_path, __pyx_v_path_list); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(1, 296, __pyx_L1_error)

  /* "src/lxml/objectpath.pxi":297
 *     path_list = []
 *     _recursive_build_descendant_paths(c_node, path, path_list)
 *     return path_list             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(297,0,__PYX_ERR(1, 297, __pyx_L1_error))
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_path_list);
  __pyx_r = __pyx_v_path_list;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":283
 * 
 * 
 * cdef list _build_descendant_paths(tree.xmlNode* c_node, prefix_string):             # <<<<<<<<<<<<<<
 *     u"""Returns a list of all descendant paths.
 *     """
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("lxml.objectify._build_descendant_paths", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_path);
  __Pyx_XDECREF(__pyx_v_path_list);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XDECREF(__pyx_v_prefix_string);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_TraceReturn(__pyx_r, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "src/lxml/objectpath.pxi":300
 * 
 * 
 * cdef int _recursive_build_descendant_paths(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
 *                                            list path, list path_list) except -1:
 *     u"""Fills the list 'path_list' with all descendant paths, initial prefix
 */

static int __pyx_f_4lxml_9objectify__recursive_build_descendant_paths(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_path, PyObject *__pyx_v_path_list) {
  xmlNode *__pyx_v_c_child;
  PyObject *__pyx_v_tags = NULL;
  const xmlChar *__pyx_v_c_href;
  PyObject *__pyx_v_tag = NULL;
  PyObject *__pyx_v_count = NULL;
  int __pyx_r;
  __Pyx_TraceDeclarations
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  xmlNode *__pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  Py_ssize_t __pyx_t_7;
  Py_UCS4 __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("_recursive_build_descendant_paths", 0);
  __Pyx_TraceCall("_recursive_build_descendant_paths", __pyx_f[1], 300, 0, __PYX_ERR(1, 300, __pyx_L1_error));

  /* "src/lxml/objectpath.pxi":306
 *     """
 *     cdef tree.xmlNode* c_child
 *     tags = {}             # <<<<<<<<<<<<<<
 *     path_list.append(u'.'.join(path))
 *     c_href = tree._getNs(c_node)
 */
  __Pyx_TraceLine(306,0,__PYX_ERR(1, 306, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_tags = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":307
 *     cdef tree.xmlNode* c_child
 *     tags = {}
 *     path_list.append(u'.'.join(path))             # <<<<<<<<<<<<<<
 *     c_href = tree._getNs(c_node)
 *     c_child = c_node.children
 */
  __Pyx_TraceLine(307,0,__PYX_ERR(1, 307, __pyx_L1_error))
  if (unlikely(__pyx_v_path_list == Py_None)) {
    PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
    __PYX_ERR(1, 307, __pyx_L1_error)
  }
  __pyx_t_1 = PyUnicode_Join(__pyx_kp_u__9, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyList_Append(__pyx_v_path_list, __pyx_t_1); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "src/lxml/objectpath.pxi":308
 *     tags = {}
 *     path_list.append(u'.'.join(path))
 *     c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
 *     c_child = c_node.children
 *     while c_child is not NULL:
 */
  __Pyx_TraceLine(308,0,__PYX_ERR(1, 308, __pyx_L1_error))
  __pyx_v_c_href = _getNs(__pyx_v_c_node);

  /* "src/lxml/objectpath.pxi":309
 *     path_list.append(u'.'.join(path))
 *     c_href = tree._getNs(c_node)
 *     c_child = c_node.children             # <<<<<<<<<<<<<<
 *     while c_child is not NULL:
 *         while c_child.type != tree.XML_ELEMENT_NODE:
 */
  __Pyx_TraceLine(309,0,__PYX_ERR(1, 309, __pyx_L1_error))
  __pyx_t_3 = __pyx_v_c_node->children;
  __pyx_v_c_child = __pyx_t_3;

  /* "src/lxml/objectpath.pxi":310
 *     c_href = tree._getNs(c_node)
 *     c_child = c_node.children
 *     while c_child is not NULL:             # <<<<<<<<<<<<<<
 *         while c_child.type != tree.XML_ELEMENT_NODE:
 *             c_child = c_child.next
 */
  __Pyx_TraceLine(310,0,__PYX_ERR(1, 310, __pyx_L1_error))
  while (1) {
    __pyx_t_4 = ((__pyx_v_c_child != NULL) != 0);
    if (!__pyx_t_4) break;

    /* "src/lxml/objectpath.pxi":311
 *     c_child = c_node.children
 *     while c_child is not NULL:
 *         while c_child.type != tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
 *             c_child = c_child.next
 *             if c_child is NULL:
 */
    __Pyx_TraceLine(311,0,__PYX_ERR(1, 311, __pyx_L1_error))
    while (1) {
      __pyx_t_4 = ((__pyx_v_c_child->type != XML_ELEMENT_NODE) != 0);
      if (!__pyx_t_4) break;

      /* "src/lxml/objectpath.pxi":312
 *     while c_child is not NULL:
 *         while c_child.type != tree.XML_ELEMENT_NODE:
 *             c_child = c_child.next             # <<<<<<<<<<<<<<
 *             if c_child is NULL:
 *                 return 0
 */
      __Pyx_TraceLine(312,0,__PYX_ERR(1, 312, __pyx_L1_error))
      __pyx_t_3 = __pyx_v_c_child->next;
      __pyx_v_c_child = __pyx_t_3;

      /* "src/lxml/objectpath.pxi":313
 *         while c_child.type != tree.XML_ELEMENT_NODE:
 *             c_child = c_child.next
 *             if c_child is NULL:             # <<<<<<<<<<<<<<
 *                 return 0
 *         if c_href is tree._getNs(c_child):
 */
      __Pyx_TraceLine(313,0,__PYX_ERR(1, 313, __pyx_L1_error))
      __pyx_t_4 = ((__pyx_v_c_child == NULL) != 0);
      if (__pyx_t_4) {

        /* "src/lxml/objectpath.pxi":314
 *             c_child = c_child.next
 *             if c_child is NULL:
 *                 return 0             # <<<<<<<<<<<<<<
 *         if c_href is tree._getNs(c_child):
 *             tag = pyunicode(c_child.name)
 */
        __Pyx_TraceLine(314,0,__PYX_ERR(1, 314, __pyx_L1_error))
        __pyx_r = 0;
        goto __pyx_L0;

        /* "src/lxml/objectpath.pxi":313
 *         while c_child.type != tree.XML_ELEMENT_NODE:
 *             c_child = c_child.next
 *             if c_child is NULL:             # <<<<<<<<<<<<<<
 *                 return 0
 *         if c_href is tree._getNs(c_child):
 */
      }
    }

    /* "src/lxml/objectpath.pxi":315
 *             if c_child is NULL:
 *                 return 0
 *         if c_href is tree._getNs(c_child):             # <<<<<<<<<<<<<<
 *             tag = pyunicode(c_child.name)
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
 */
    __Pyx_TraceLine(315,0,__PYX_ERR(1, 315, __pyx_L1_error))
    __pyx_t_4 = ((__pyx_v_c_href == _getNs(__pyx_v_c_child)) != 0);
    if (__pyx_t_4) {

      /* "src/lxml/objectpath.pxi":316
 *                 return 0
 *         if c_href is tree._getNs(c_child):
 *             tag = pyunicode(c_child.name)             # <<<<<<<<<<<<<<
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
 *             # special case: parent has namespace, child does not
 */
      __Pyx_TraceLine(316,0,__PYX_ERR(1, 316, __pyx_L1_error))
      __pyx_t_1 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 316, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_v_tag, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "src/lxml/objectpath.pxi":315
 *             if c_child is NULL:
 *                 return 0
 *         if c_href is tree._getNs(c_child):             # <<<<<<<<<<<<<<
 *             tag = pyunicode(c_child.name)
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
 */
      goto __pyx_L8;
    }

    /* "src/lxml/objectpath.pxi":317
 *         if c_href is tree._getNs(c_child):
 *             tag = pyunicode(c_child.name)
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:             # <<<<<<<<<<<<<<
 *             # special case: parent has namespace, child does not
 *             tag = u'{}' + pyunicode(c_child.name)
 */
    __Pyx_TraceLine(317,0,__PYX_ERR(1, 317, __pyx_L1_error))
    __pyx_t_5 = ((__pyx_v_c_href != NULL) != 0);
    if (__pyx_t_5) {
    } else {
      __pyx_t_4 = __pyx_t_5;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_5 = ((_getNs(__pyx_v_c_child) == NULL) != 0);
    __pyx_t_4 = __pyx_t_5;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_4) {

      /* "src/lxml/objectpath.pxi":319
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
 *             # special case: parent has namespace, child does not
 *             tag = u'{}' + pyunicode(c_child.name)             # <<<<<<<<<<<<<<
 *         else:
 *             tag = cetree.namespacedName(c_child)
 */
      __Pyx_TraceLine(319,0,__PYX_ERR(1, 319, __pyx_L1_error))
      __pyx_t_1 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 319, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_6 = PyNumber_Add(__pyx_kp_u__62, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 319, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF_SET(__pyx_v_tag, __pyx_t_6);
      __pyx_t_6 = 0;

      /* "src/lxml/objectpath.pxi":317
 *         if c_href is tree._getNs(c_child):
 *             tag = pyunicode(c_child.name)
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:             # <<<<<<<<<<<<<<
 *             # special case: parent has namespace, child does not
 *             tag = u'{}' + pyunicode(c_child.name)
 */
      goto __pyx_L8;
    }

    /* "src/lxml/objectpath.pxi":321
 *             tag = u'{}' + pyunicode(c_child.name)
 *         else:
 *             tag = cetree.namespacedName(c_child)             # <<<<<<<<<<<<<<
 *         count = tags.get(tag)
 *         if count is None:
 */
    __Pyx_TraceLine(321,0,__PYX_ERR(1, 321, __pyx_L1_error))
    /*else*/ {
      __pyx_t_6 = namespacedName(__pyx_v_c_child); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 321, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_v_tag, __pyx_t_6);
      __pyx_t_6 = 0;
    }
    __pyx_L8:;

    /* "src/lxml/objectpath.pxi":322
 *         else:
 *             tag = cetree.namespacedName(c_child)
 *         count = tags.get(tag)             # <<<<<<<<<<<<<<
 *         if count is None:
 *             tags[tag] = 1
 */
    __Pyx_TraceLine(322,0,__PYX_ERR(1, 322, __pyx_L1_error))
    __pyx_t_6 = __Pyx_PyDict_GetItemDefault(__pyx_v_tags, __pyx_v_tag, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_XDECREF_SET(__pyx_v_count, __pyx_t_6);
    __pyx_t_6 = 0;

    /* "src/lxml/objectpath.pxi":323
 *             tag = cetree.namespacedName(c_child)
 *         count = tags.get(tag)
 *         if count is None:             # <<<<<<<<<<<<<<
 *             tags[tag] = 1
 *         else:
 */
    __Pyx_TraceLine(323,0,__PYX_ERR(1, 323, __pyx_L1_error))
    __pyx_t_4 = (__pyx_v_count == Py_None);
    __pyx_t_5 = (__pyx_t_4 != 0);
    if (__pyx_t_5) {

      /* "src/lxml/objectpath.pxi":324
 *         count = tags.get(tag)
 *         if count is None:
 *             tags[tag] = 1             # <<<<<<<<<<<<<<
 *         else:
 *             tags[tag] = count + 1
 */
      __Pyx_TraceLine(324,0,__PYX_ERR(1, 324, __pyx_L1_error))
      if (unlikely(PyDict_SetItem(__pyx_v_tags, __pyx_v_tag, __pyx_int_1) < 0)) __PYX_ERR(1, 324, __pyx_L1_error)

      /* "src/lxml/objectpath.pxi":323
 *             tag = cetree.namespacedName(c_child)
 *         count = tags.get(tag)
 *         if count is None:             # <<<<<<<<<<<<<<
 *             tags[tag] = 1
 *         else:
 */
      goto __pyx_L11;
    }

    /* "src/lxml/objectpath.pxi":326
 *             tags[tag] = 1
 *         else:
 *             tags[tag] = count + 1             # <<<<<<<<<<<<<<
 *             tag += f'[{count}]'
 *         path.append(tag)
 */
    __Pyx_TraceLine(326,0,__PYX_ERR(1, 326, __pyx_L1_error))
    /*else*/ {
      __pyx_t_6 = __Pyx_PyInt_AddObjC(__pyx_v_count, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 326, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely(PyDict_SetItem(__pyx_v_tags, __pyx_v_tag, __pyx_t_6) < 0)) __PYX_ERR(1, 326, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "src/lxml/objectpath.pxi":327
 *         else:
 *             tags[tag] = count + 1
 *             tag += f'[{count}]'             # <<<<<<<<<<<<<<
 *         path.append(tag)
 *         _recursive_build_descendant_paths(c_child, path, path_list)
 */
      __Pyx_TraceLine(327,0,__PYX_ERR(1, 327, __pyx_L1_error))
      __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = 0;
      __pyx_t_8 = 127;
      __Pyx_INCREF(__pyx_kp_u__63);
      __pyx_t_7 += 1;
      __Pyx_GIVEREF(__pyx_kp_u__63);
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u__63);
      __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_count, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_8;
      __pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
      __pyx_t_1 = 0;
      __Pyx_INCREF(__pyx_kp_u__64);
      __pyx_t_7 += 1;
      __Pyx_GIVEREF(__pyx_kp_u__64);
      PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u__64);
      __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_tag, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 327, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_6);
      __pyx_t_6 = 0;
    }
    __pyx_L11:;

    /* "src/lxml/objectpath.pxi":328
 *             tags[tag] = count + 1
 *             tag += f'[{count}]'
 *         path.append(tag)             # <<<<<<<<<<<<<<
 *         _recursive_build_descendant_paths(c_child, path, path_list)
 *         del path[-1]
 */
    __Pyx_TraceLine(328,0,__PYX_ERR(1, 328, __pyx_L1_error))
    if (unlikely(__pyx_v_path == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
      __PYX_ERR(1, 328, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PyList_Append(__pyx_v_path, __pyx_v_tag); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(1, 328, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":329
 *             tag += f'[{count}]'
 *         path.append(tag)
 *         _recursive_build_descendant_paths(c_child, path, path_list)             # <<<<<<<<<<<<<<
 *         del path[-1]
 *         c_child = c_child.next
 */
    __Pyx_TraceLine(329,0,__PYX_ERR(1, 329, __pyx_L1_error))
    __pyx_t_9 = __pyx_f_4lxml_9objectify__recursive_build_descendant_paths(__pyx_v_c_child, __pyx_v_path, __pyx_v_path_list); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(1, 329, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":330
 *         path.append(tag)
 *         _recursive_build_descendant_paths(c_child, path, path_list)
 *         del path[-1]             # <<<<<<<<<<<<<<
 *         c_child = c_child.next
 *     return 0
 */
    __Pyx_TraceLine(330,0,__PYX_ERR(1, 330, __pyx_L1_error))
    if (unlikely(__pyx_v_path == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 330, __pyx_L1_error)
    }
    if (unlikely(__Pyx_DelItemInt(__pyx_v_path, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1) < 0)) __PYX_ERR(1, 330, __pyx_L1_error)

    /* "src/lxml/objectpath.pxi":331
 *         _recursive_build_descendant_paths(c_child, path, path_list)
 *         del path[-1]
 *         c_child = c_child.next             # <<<<<<<<<<<<<<
 *     return 0
 */
    __Pyx_TraceLine(331,0,__PYX_ERR(1, 331, __pyx_L1_error))
    __pyx_t_3 = __pyx_v_c_child->next;
    __pyx_v_c_child = __pyx_t_3;
  }

  /* "src/lxml/objectpath.pxi":332
 *         del path[-1]
 *         c_child = c_child.next
 *     return 0             # <<<<<<<<<<<<<<
 */
  __Pyx_TraceLine(332,0,__PYX_ERR(1, 332, __pyx_L1_error))
  __pyx_r = 0;
  goto __pyx_L0;

  /* "src/lxml/objectpath.pxi":300
 * 
 * 
 * cdef int _recursive_build_descendant_paths(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
 *                                            list path, list path_list) except -1:
 *     u"""Fills the list 'path_list' with all descendant paths, initial prefix
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("lxml.objectify._recursive_build_descendant_paths", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tags);
  __Pyx_XDECREF(__pyx_v_tag);
  __Pyx_XDECREF(__pyx_v_count);
  __Pyx_TraceReturn(Py_None, 0);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifiedElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase)) __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement);
}

static int __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement(PyObject *o, visitproc v, void *a) {
  int e;
  e = ((likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase)) ? ((__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_traverse) ? __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement)); if (e) return e;
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement(PyObject *o) {
  if (likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase)) { if (__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_clear) __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement);
  return 0;
}
static PyObject *__pyx_sq_item_4lxml_9objectify_ObjectifiedElement(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_4lxml_9objectify_ObjectifiedElement(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_23__setitem__(o, i, v);
  }
  else {
    return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_25__delitem__(o, i);
  }
}

static PyObject *__pyx_tp_getattro_4lxml_9objectify_ObjectifiedElement(PyObject *o, PyObject *n) {
  PyObject *v = PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_4lxml_9objectify_18ObjectifiedElement_13__getattr__(o, n);
  }
  return v;
}

static int __pyx_tp_setattro_4lxml_9objectify_ObjectifiedElement(PyObject *o, PyObject *n, PyObject *v) {
  if (v) {
    return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_15__setattr__(o, n, v);
  }
  else {
    return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_17__delattr__(o, n);
  }
}

static PyObject *__pyx_getprop_4lxml_9objectify_18ObjectifiedElement_text(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_4text_1__get__(o);
}

static PyObject *__pyx_getprop_4lxml_9objectify_18ObjectifiedElement___dict__(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_18ObjectifiedElement_8__dict___1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_ObjectifiedElement[] = {
  {"__reduce__", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_5__reduce__, METH_NOARGS, 0},
  {"countchildren", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_9countchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_8countchildren},
  {"getchildren", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_11getchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_10getchildren},
  {"__getattr__", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_13__getattr__, METH_O|METH_COEXIST, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_12__getattr__},
  {"addattr", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_19addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_18addattr},
  {"descendantpaths", (PyCFunction)__pyx_pw_4lxml_9objectify_18ObjectifiedElement_27descendantpaths, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_26descendantpaths},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_ObjectifiedElement[] = {
  {(char *)"text", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement_text, 0, (char *)0, 0},
  {(char *)"__dict__", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement___dict__, 0, (char *)"A fake implementation for __dict__ to support dir() etc.\n\n        Note that this only considers the first child with a given name.\n        ", 0},
  {0, 0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_ObjectifiedElement = {
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_7__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_4lxml_9objectify_ObjectifiedElement, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ObjectifiedElement = {
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_7__len__, /*mp_length*/
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_21__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_4lxml_9objectify_ObjectifiedElement, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_4lxml_9objectify_ObjectifiedElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.ObjectifiedElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
  0, /*tp_print*/
  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*/
  &__pyx_tp_as_sequence_ObjectifiedElement, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ObjectifiedElement, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_3__str__, /*tp_str*/
  __pyx_tp_getattro_4lxml_9objectify_ObjectifiedElement, /*tp_getattro*/
  __pyx_tp_setattro_4lxml_9objectify_ObjectifiedElement, /*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*/
  "Main XML Element class.\n\n    Element children are accessed as object attributes.  Multiple children\n    with the same name are available through a list index.  Example::\n\n       >>> root = XML(\"<root><c1><c2>0</c2><c2>1</c2></c1></root>\")\n       >>> second_c2 = root.c1.c2[1]\n       >>> print(second_c2.text)\n       1\n\n    Note that you cannot (and must not) instantiate this class or its\n    subclasses.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_ObjectifiedElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_ObjectifiedElement, /*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_4lxml_9objectify_ObjectifiedElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifiedDataElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_ObjectifiedElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyObject *__pyx_getprop_4lxml_9objectify_22ObjectifiedDataElement_pyval(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5pyval_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_ObjectifiedDataElement[] = {
  {"_setText", (PyCFunction)__pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_5_setText, METH_O, __pyx_doc_4lxml_9objectify_22ObjectifiedDataElement_4_setText},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_ObjectifiedDataElement[] = {
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_22ObjectifiedDataElement_pyval, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_ObjectifiedDataElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.ObjectifiedDataElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_22ObjectifiedDataElement_3__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_1__str__, /*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*/
  "This is the base class for all data type Elements.  Subclasses should\n    override the 'pyval' property and possibly the __str__ method.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_ObjectifiedDataElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_ObjectifiedDataElement, /*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_4lxml_9objectify_ObjectifiedDataElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_NumberElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4lxml_9objectify_NumberElement *p;
  PyObject *o = __pyx_tp_new_4lxml_9objectify_ObjectifiedDataElement(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify_NumberElement *)o);
  p->_parse_value = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_NumberElement(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_NumberElement *p = (struct __pyx_obj_4lxml_9objectify_NumberElement *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  Py_CLEAR(p->_parse_value);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement(o);
}

static int __pyx_tp_traverse_4lxml_9objectify_NumberElement(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify_NumberElement *p = (struct __pyx_obj_4lxml_9objectify_NumberElement *)o;
  e = __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement(o, v, a); if (e) return e;
  if (p->_parse_value) {
    e = (*v)(p->_parse_value, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_NumberElement(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_NumberElement *p = (struct __pyx_obj_4lxml_9objectify_NumberElement *)o;
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement(o);
  Py_CLEAR(p->_parse_value);
  return 0;
}

static PyObject *__pyx_getprop_4lxml_9objectify_13NumberElement_pyval(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_13NumberElement_5pyval_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_NumberElement[] = {
  {"_setValueParser", (PyCFunction)__pyx_pw_4lxml_9objectify_13NumberElement_1_setValueParser, METH_O, __pyx_doc_4lxml_9objectify_13NumberElement__setValueParser},
  {"__complex__", (PyCFunction)__pyx_pw_4lxml_9objectify_13NumberElement_9__complex__, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_NumberElement[] = {
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_13NumberElement_pyval, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_NumberElement = {
  __pyx_pw_4lxml_9objectify_13NumberElement_23__add__, /*nb_add*/
  __pyx_pw_4lxml_9objectify_13NumberElement_25__sub__, /*nb_subtract*/
  __pyx_pw_4lxml_9objectify_13NumberElement_27__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  __pyx_pw_4lxml_9objectify_13NumberElement_29__div__, /*nb_divide*/
  #endif
  __pyx_pw_4lxml_9objectify_13NumberElement_33__mod__, /*nb_remainder*/
  0, /*nb_divmod*/
  __pyx_pw_4lxml_9objectify_13NumberElement_35__pow__, /*nb_power*/
  __pyx_pw_4lxml_9objectify_13NumberElement_37__neg__, /*nb_negative*/
  __pyx_pw_4lxml_9objectify_13NumberElement_39__pos__, /*nb_positive*/
  __pyx_pw_4lxml_9objectify_13NumberElement_41__abs__, /*nb_absolute*/
  __pyx_pw_4lxml_9objectify_13NumberElement_43__nonzero__, /*nb_nonzero*/
  __pyx_pw_4lxml_9objectify_13NumberElement_45__invert__, /*nb_invert*/
  __pyx_pw_4lxml_9objectify_13NumberElement_47__lshift__, /*nb_lshift*/
  __pyx_pw_4lxml_9objectify_13NumberElement_49__rshift__, /*nb_rshift*/
  __pyx_pw_4lxml_9objectify_13NumberElement_51__and__, /*nb_and*/
  __pyx_pw_4lxml_9objectify_13NumberElement_55__xor__, /*nb_xor*/
  __pyx_pw_4lxml_9objectify_13NumberElement_53__or__, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  __pyx_pw_4lxml_9objectify_13NumberElement_3__int__, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  __pyx_pw_4lxml_9objectify_13NumberElement_5__long__, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  __pyx_pw_4lxml_9objectify_13NumberElement_7__float__, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  __pyx_pw_4lxml_9objectify_13NumberElement_15__oct__, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  __pyx_pw_4lxml_9objectify_13NumberElement_17__hex__, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  __pyx_pw_4lxml_9objectify_13NumberElement_31__truediv__, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_4lxml_9objectify_NumberElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.NumberElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_NumberElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_13NumberElement_13__repr__, /*tp_repr*/
  &__pyx_tp_as_number_NumberElement, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4lxml_9objectify_13NumberElement_21__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4lxml_9objectify_13NumberElement_11__str__, /*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*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
  __pyx_pw_4lxml_9objectify_13NumberElement_19__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_NumberElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_NumberElement, /*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_4lxml_9objectify_NumberElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_IntElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_NumberElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyMethodDef __pyx_methods_4lxml_9objectify_IntElement[] = {
  {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_10IntElement_1_init, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_IntElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.IntElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_IntElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_13NumberElement_13__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*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  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*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_IntElement, /*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_4lxml_9objectify_IntElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_LongElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_NumberElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyMethodDef __pyx_methods_4lxml_9objectify_LongElement[] = {
  {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_11LongElement_1_init, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_LongElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.LongElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_LongElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_13NumberElement_13__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*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  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*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_LongElement, /*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_4lxml_9objectify_LongElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_FloatElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_NumberElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyMethodDef __pyx_methods_4lxml_9objectify_FloatElement[] = {
  {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_12FloatElement_1_init, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_FloatElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.FloatElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_FloatElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_13NumberElement_13__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*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  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*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_FloatElement, /*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_4lxml_9objectify_FloatElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_StringElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_ObjectifiedDataElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyObject *__pyx_getprop_4lxml_9objectify_13StringElement_pyval(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_13StringElement_5pyval_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_StringElement[] = {
  {"strlen", (PyCFunction)__pyx_pw_4lxml_9objectify_13StringElement_3strlen, METH_NOARGS, 0},
  {"__complex__", (PyCFunction)__pyx_pw_4lxml_9objectify_13StringElement_23__complex__, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_StringElement[] = {
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_13StringElement_pyval, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_StringElement = {
  __pyx_pw_4lxml_9objectify_13StringElement_11__add__, /*nb_add*/
  0, /*nb_subtract*/
  __pyx_pw_4lxml_9objectify_13StringElement_13__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  __pyx_pw_4lxml_9objectify_13StringElement_15__mod__, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  __pyx_pw_4lxml_9objectify_13StringElement_5__nonzero__, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  __pyx_pw_4lxml_9objectify_13StringElement_17__int__, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  __pyx_pw_4lxml_9objectify_13StringElement_19__long__, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  __pyx_pw_4lxml_9objectify_13StringElement_21__float__, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_4lxml_9objectify_StringElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.StringElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_StringElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_13StringElement_1__repr__, /*tp_repr*/
  &__pyx_tp_as_number_StringElement, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4lxml_9objectify_13StringElement_9__hash__, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_22ObjectifiedDataElement_1__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  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*/
  "String data class.\n\n    Note that this class does *not* support the sequence protocol of strings:\n    len(), iter(), str_attr[0], str_attr[0:1], etc. are *not* supported.\n    Instead, use the .text attribute to get a 'real' string.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
  __pyx_pw_4lxml_9objectify_13StringElement_7__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_StringElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_StringElement, /*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_4lxml_9objectify_StringElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_NoneElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_ObjectifiedDataElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyObject *__pyx_getprop_4lxml_9objectify_11NoneElement_pyval(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_11NoneElement_5pyval_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_NoneElement[] = {
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_NoneElement[] = {
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_11NoneElement_pyval, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_NoneElement = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  __pyx_pw_4lxml_9objectify_11NoneElement_5__nonzero__, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_4lxml_9objectify_NoneElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.NoneElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_NoneElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_11NoneElement_3__repr__, /*tp_repr*/
  &__pyx_tp_as_number_NoneElement, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4lxml_9objectify_11NoneElement_9__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4lxml_9objectify_11NoneElement_1__str__, /*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*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
  __pyx_pw_4lxml_9objectify_11NoneElement_7__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_NoneElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_NoneElement, /*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_4lxml_9objectify_NoneElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_BoolElement(PyTypeObject *t, PyObject *a, PyObject *k) {
  PyObject *o = __pyx_tp_new_4lxml_9objectify_IntElement(t, a, k);
  if (unlikely(!o)) return 0;
  return o;
}

static PyObject *__pyx_getprop_4lxml_9objectify_11BoolElement_pyval(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_11BoolElement_5pyval_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_BoolElement[] = {
  {"_init", (PyCFunction)__pyx_pw_4lxml_9objectify_11BoolElement_1_init, METH_NOARGS, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_BoolElement[] = {
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_11BoolElement_pyval, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_BoolElement = {
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_23__add__, /*nb_add*/
  #else
  0, /*nb_add*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_25__sub__, /*nb_subtract*/
  #else
  0, /*nb_subtract*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_27__mul__, /*nb_multiply*/
  #else
  0, /*nb_multiply*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_29__div__, /*nb_divide*/
  #else
  0, /*nb_divide*/
  #endif
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_33__mod__, /*nb_remainder*/
  #else
  0, /*nb_remainder*/
  #endif
  0, /*nb_divmod*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_35__pow__, /*nb_power*/
  #else
  0, /*nb_power*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_37__neg__, /*nb_negative*/
  #else
  0, /*nb_negative*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_39__pos__, /*nb_positive*/
  #else
  0, /*nb_positive*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_41__abs__, /*nb_absolute*/
  #else
  0, /*nb_absolute*/
  #endif
  __pyx_pw_4lxml_9objectify_11BoolElement_3__nonzero__, /*nb_nonzero*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_45__invert__, /*nb_invert*/
  #else
  0, /*nb_invert*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_47__lshift__, /*nb_lshift*/
  #else
  0, /*nb_lshift*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_49__rshift__, /*nb_rshift*/
  #else
  0, /*nb_rshift*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_51__and__, /*nb_and*/
  #else
  0, /*nb_and*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_55__xor__, /*nb_xor*/
  #else
  0, /*nb_xor*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_53__or__, /*nb_or*/
  #else
  0, /*nb_or*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_3__int__, /*nb_int*/
  #else
  0, /*nb_int*/
  #endif
  #if PY_MAJOR_VERSION < 3
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_5__long__, /*nb_long*/
  #else
  0, /*nb_long*/
  #endif
  #else
  0, /*reserved*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_7__float__, /*nb_float*/
  #else
  0, /*nb_float*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_15__oct__, /*nb_oct*/
  #else
  0, /*nb_oct*/
  #endif
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_17__hex__, /*nb_hex*/
  #else
  0, /*nb_hex*/
  #endif
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_13NumberElement_31__truediv__, /*nb_true_divide*/
  #else
  0, /*nb_true_divide*/
  #endif
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_4lxml_9objectify_BoolElement = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.BoolElement", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_BoolElement), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_11BoolElement_11__repr__, /*tp_repr*/
  &__pyx_tp_as_number_BoolElement, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_4lxml_9objectify_11BoolElement_7__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_4lxml_9objectify_11BoolElement_9__str__, /*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*/
  "Boolean type base on string values: 'true' or 'false'.\n\n    Note that this inherits from IntElement to mimic the behaviour of\n    Python's bool type.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
  __pyx_pw_4lxml_9objectify_11BoolElement_5__richcmp__, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_4lxml_9objectify_18ObjectifiedElement_1__iter__, /*tp_iter*/
  #else
  0, /*tp_iter*/
  #endif
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_BoolElement, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_BoolElement, /*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_4lxml_9objectify_BoolElement, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_PyType(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4lxml_9objectify_PyType *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify_PyType *)o);
  p->name = Py_None; Py_INCREF(Py_None);
  p->type_check = Py_None; Py_INCREF(Py_None);
  p->stringify = Py_None; Py_INCREF(Py_None);
  p->_type = Py_None; Py_INCREF(Py_None);
  p->_schema_types = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_PyType(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_PyType *p = (struct __pyx_obj_4lxml_9objectify_PyType *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  Py_CLEAR(p->name);
  Py_CLEAR(p->type_check);
  Py_CLEAR(p->stringify);
  Py_CLEAR(p->_type);
  Py_CLEAR(p->_schema_types);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4lxml_9objectify_PyType(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify_PyType *p = (struct __pyx_obj_4lxml_9objectify_PyType *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  if (p->type_check) {
    e = (*v)(p->type_check, a); if (e) return e;
  }
  if (p->stringify) {
    e = (*v)(p->stringify, a); if (e) return e;
  }
  if (p->_type) {
    e = (*v)(p->_type, a); if (e) return e;
  }
  if (p->_schema_types) {
    e = (*v)(p->_schema_types, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_PyType(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_PyType *p = (struct __pyx_obj_4lxml_9objectify_PyType *)o;
  Py_CLEAR(p->name);
  Py_CLEAR(p->type_check);
  Py_CLEAR(p->stringify);
  Py_CLEAR(p->_type);
  Py_CLEAR(p->_schema_types);
  return 0;
}

static PyObject *__pyx_getprop_4lxml_9objectify_6PyType_xmlSchemaTypes(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_1__get__(o);
}

static int __pyx_setprop_4lxml_9objectify_6PyType_xmlSchemaTypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_4lxml_9objectify_6PyType_14xmlSchemaTypes_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4lxml_9objectify_6PyType_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_6PyType_4name_1__get__(o);
}

static PyObject *__pyx_getprop_4lxml_9objectify_6PyType_type_check(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_6PyType_10type_check_1__get__(o);
}

static PyObject *__pyx_getprop_4lxml_9objectify_6PyType_stringify(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_6PyType_9stringify_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_PyType[] = {
  {"register", (PyCFunction)__pyx_pw_4lxml_9objectify_6PyType_5register, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_6PyType_4register},
  {"unregister", (PyCFunction)__pyx_pw_4lxml_9objectify_6PyType_7unregister, METH_NOARGS, __pyx_doc_4lxml_9objectify_6PyType_6unregister},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_PyType[] = {
  {(char *)"xmlSchemaTypes", __pyx_getprop_4lxml_9objectify_6PyType_xmlSchemaTypes, __pyx_setprop_4lxml_9objectify_6PyType_xmlSchemaTypes, (char *)"The list of XML Schema datatypes this Python type maps to.\n\n        Note that this must be set before registering the type!\n        ", 0},
  {(char *)"name", __pyx_getprop_4lxml_9objectify_6PyType_name, 0, (char *)0, 0},
  {(char *)"type_check", __pyx_getprop_4lxml_9objectify_6PyType_type_check, 0, (char *)0, 0},
  {(char *)"stringify", __pyx_getprop_4lxml_9objectify_6PyType_stringify, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_PyType = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.PyType", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_PyType), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_PyType, /*tp_dealloc*/
  0, /*tp_print*/
  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_4lxml_9objectify_6PyType_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*/
  "PyType(self, name, type_check, type_class, stringify=None)\n    User defined type.\n\n    Named type that contains a type check function, a type class that\n    inherits from ObjectifiedDataElement and an optional \"stringification\"\n    function.  The type check must take a string as argument and raise\n    ValueError or TypeError if it cannot handle the string value.  It may be\n    None in which case it is not considered for type guessing.  For registered\n    named types, the 'stringify' function (or unicode() if None) is used to\n    convert a Python object with type name 'name' to the string representation\n    stored in the XML tree.\n\n    Example::\n\n        PyType('int', int, MyIntClass).register()\n\n    Note that the order in which types are registered matters.  The first\n    matching type will be used.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_PyType, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_PyType, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_PyType, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_PyType, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_4lxml_9objectify_6PyType_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_9objectify_PyType, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify__ObjectifyElementMakerCaller(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *p;
  PyObject *o;
  o = (*t->tp_alloc)(t, 0);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)o);
  p->_tag = Py_None; Py_INCREF(Py_None);
  p->_nsmap = Py_None; Py_INCREF(Py_None);
  p->_element_factory = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify__ObjectifyElementMakerCaller(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *p = (struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)o;
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_tag);
  Py_CLEAR(p->_nsmap);
  Py_CLEAR(p->_element_factory);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4lxml_9objectify__ObjectifyElementMakerCaller(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *p = (struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)o;
  if (p->_tag) {
    e = (*v)(p->_tag, a); if (e) return e;
  }
  if (p->_nsmap) {
    e = (*v)(p->_nsmap, a); if (e) return e;
  }
  if (p->_element_factory) {
    e = (*v)(p->_element_factory, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify__ObjectifyElementMakerCaller(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *p = (struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)o;
  Py_CLEAR(p->_tag);
  Py_CLEAR(p->_nsmap);
  Py_CLEAR(p->_element_factory);
  return 0;
}

static PyMethodDef __pyx_methods_4lxml_9objectify__ObjectifyElementMakerCaller[] = {
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify._ObjectifyElementMakerCaller", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify__ObjectifyElementMakerCaller, /*tp_dealloc*/
  0, /*tp_print*/
  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*/
  __pyx_pw_4lxml_9objectify_28_ObjectifyElementMakerCaller_1__call__, /*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_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify__ObjectifyElementMakerCaller, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify__ObjectifyElementMakerCaller, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify__ObjectifyElementMakerCaller, /*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_4lxml_9objectify__ObjectifyElementMakerCaller, /*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
};
static struct __pyx_vtabstruct_4lxml_9objectify_ElementMaker __pyx_vtable_4lxml_9objectify_ElementMaker;

static PyObject *__pyx_tp_new_4lxml_9objectify_ElementMaker(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4lxml_9objectify_ElementMaker *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)o);
  p->__pyx_vtab = __pyx_vtabptr_4lxml_9objectify_ElementMaker;
  p->_makeelement = Py_None; Py_INCREF(Py_None);
  p->_namespace = Py_None; Py_INCREF(Py_None);
  p->_nsmap = Py_None; Py_INCREF(Py_None);
  p->_cache = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_ElementMaker(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ElementMaker *p = (struct __pyx_obj_4lxml_9objectify_ElementMaker *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  Py_CLEAR(p->_makeelement);
  Py_CLEAR(p->_namespace);
  Py_CLEAR(p->_nsmap);
  Py_CLEAR(p->_cache);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4lxml_9objectify_ElementMaker(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify_ElementMaker *p = (struct __pyx_obj_4lxml_9objectify_ElementMaker *)o;
  if (p->_makeelement) {
    e = (*v)(p->_makeelement, a); if (e) return e;
  }
  if (p->_namespace) {
    e = (*v)(p->_namespace, a); if (e) return e;
  }
  if (p->_nsmap) {
    e = (*v)(p->_nsmap, a); if (e) return e;
  }
  if (p->_cache) {
    e = (*v)(p->_cache, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_ElementMaker(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ElementMaker *p = (struct __pyx_obj_4lxml_9objectify_ElementMaker *)o;
  Py_CLEAR(p->_makeelement);
  Py_CLEAR(p->_namespace);
  Py_CLEAR(p->_nsmap);
  Py_CLEAR(p->_cache);
  return 0;
}

static PyObject *__pyx_tp_getattro_4lxml_9objectify_ElementMaker(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_4lxml_9objectify_12ElementMaker_3__getattr__(o, n);
  }
  return v;
}

static PyMethodDef __pyx_methods_4lxml_9objectify_ElementMaker[] = {
  {"__getattr__", (PyCFunction)__pyx_pw_4lxml_9objectify_12ElementMaker_3__getattr__, METH_O|METH_COEXIST, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_ElementMaker = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.ElementMaker", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_ElementMaker), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ElementMaker, /*tp_dealloc*/
  0, /*tp_print*/
  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*/
  __pyx_pw_4lxml_9objectify_12ElementMaker_5__call__, /*tp_call*/
  0, /*tp_str*/
  __pyx_tp_getattro_4lxml_9objectify_ElementMaker, /*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*/
  "ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)\n\n    An ElementMaker that can be used for constructing trees.\n\n    Example::\n\n      >>> M = ElementMaker(annotate=False)\n      >>> attributes = {'class': 'par'}\n      >>> html = M.html( M.body( M.p('hello', attributes, M.br, 'objectify', style=\"font-weight: bold\") ) )\n\n      >>> from lxml.etree import tostring\n      >>> print(tostring(html, method='html').decode('ascii'))\n      <html><body><p style=\"font-weight: bold\" class=\"par\">hello<br>objectify</p></body></html>\n\n    To create tags that are not valid Python identifiers, call the factory\n    directly and pass the tag name as first argument::\n\n      >>> root = M('tricky-tag', 'some text')\n      >>> print(root.tag)\n      tricky-tag\n      >>> print(root.text)\n      some text\n\n    Note that this module has a predefined ElementMaker instance called ``E``.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ElementMaker, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ElementMaker, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_ElementMaker, /*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*/
  __pyx_pw_4lxml_9objectify_12ElementMaker_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_9objectify_ElementMaker, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectifyElementClassLookup(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *p;
  PyObject *o = __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)o);
  p->empty_data_class = Py_None; Py_INCREF(Py_None);
  p->tree_class = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_ObjectifyElementClassLookup(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  Py_CLEAR(p->empty_data_class);
  Py_CLEAR(p->tree_class);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup)) __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_4lxml_9objectify_ObjectifyElementClassLookup);
}

static int __pyx_tp_traverse_4lxml_9objectify_ObjectifyElementClassLookup(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)o;
  e = ((likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup)) ? ((__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_traverse) ? __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_4lxml_9objectify_ObjectifyElementClassLookup)); if (e) return e;
  if (p->empty_data_class) {
    e = (*v)(p->empty_data_class, a); if (e) return e;
  }
  if (p->tree_class) {
    e = (*v)(p->tree_class, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_ObjectifyElementClassLookup(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)o;
  if (likely(__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup)) { if (__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_clear) __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_4lxml_9objectify_ObjectifyElementClassLookup);
  Py_CLEAR(p->empty_data_class);
  Py_CLEAR(p->tree_class);
  return 0;
}

static PyMethodDef __pyx_methods_4lxml_9objectify_ObjectifyElementClassLookup[] = {
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.ObjectifyElementClassLookup", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_dealloc*/
  0, /*tp_print*/
  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*/
  "ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None)\n    Element class lookup method that uses the objectify classes.\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_ObjectifyElementClassLookup, /*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*/
  __pyx_pw_4lxml_9objectify_27ObjectifyElementClassLookup_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_9objectify_ObjectifyElementClassLookup, /*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
};

static PyObject *__pyx_tp_new_4lxml_9objectify_ObjectPath(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_4lxml_9objectify_ObjectPath *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)o);
  p->find = Py_None; Py_INCREF(Py_None);
  p->_path = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->_path_str = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_4lxml_9objectify_ObjectPath(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ObjectPath *p = (struct __pyx_obj_4lxml_9objectify_ObjectPath *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(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);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_4lxml_9objectify_10ObjectPath_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->find);
  Py_CLEAR(p->_path);
  Py_CLEAR(p->_path_str);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4lxml_9objectify_ObjectPath(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4lxml_9objectify_ObjectPath *p = (struct __pyx_obj_4lxml_9objectify_ObjectPath *)o;
  if (p->find) {
    e = (*v)(p->find, a); if (e) return e;
  }
  if (p->_path) {
    e = (*v)(p->_path, a); if (e) return e;
  }
  if (p->_path_str) {
    e = (*v)(p->_path_str, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4lxml_9objectify_ObjectPath(PyObject *o) {
  struct __pyx_obj_4lxml_9objectify_ObjectPath *p = (struct __pyx_obj_4lxml_9objectify_ObjectPath *)o;
  Py_CLEAR(p->find);
  Py_CLEAR(p->_path);
  Py_CLEAR(p->_path_str);
  return 0;
}

static PyObject *__pyx_getprop_4lxml_9objectify_10ObjectPath_find(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_4lxml_9objectify_10ObjectPath_4find_1__get__(o);
}

static PyMethodDef __pyx_methods_4lxml_9objectify_ObjectPath[] = {
  {"hasattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_9hasattr, METH_O, __pyx_doc_4lxml_9objectify_10ObjectPath_8hasattr},
  {"setattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_11setattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_10setattr},
  {"addattr", (PyCFunction)__pyx_pw_4lxml_9objectify_10ObjectPath_13addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_12addattr},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_ObjectPath[] = {
  {(char *)"find", __pyx_getprop_4lxml_9objectify_10ObjectPath_find, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_4lxml_9objectify_ObjectPath = {
  PyVarObject_HEAD_INIT(0, 0)
  "lxml.objectify.ObjectPath", /*tp_name*/
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectPath), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4lxml_9objectify_ObjectPath, /*tp_dealloc*/
  0, /*tp_print*/
  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*/
  __pyx_pw_4lxml_9objectify_10ObjectPath_7__call__, /*tp_call*/
  __pyx_pw_4lxml_9objectify_10ObjectPath_5__str__, /*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*/
  "ObjectPath(path)\n    Immutable object that represents a compiled object path.\n\n    Example for a path: 'root.child[1].{other}child[25]'\n    ", /*tp_doc*/
  __pyx_tp_traverse_4lxml_9objectify_ObjectPath, /*tp_traverse*/
  __pyx_tp_clear_4lxml_9objectify_ObjectPath, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4lxml_9objectify_ObjectPath, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4lxml_9objectify_ObjectPath, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_4lxml_9objectify_10ObjectPath_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4lxml_9objectify_ObjectPath, /*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
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#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_objectify(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_objectify},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "objectify",
    __pyx_k_The_lxml_objectify_module_imple, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* 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
    NULL, /* m_traverse */
    NULL, /* m_clear */
    (freefunc)__pyx_module_cleanup /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_s_0, __pyx_k_0, sizeof(__pyx_k_0), 0, 0, 1, 0},
  {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
  {&__pyx_n_s_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 0, 0, 1, 1},
  {&__pyx_n_u_BoolElement, __pyx_k_BoolElement, sizeof(__pyx_k_BoolElement), 0, 1, 0, 1},
  {&__pyx_n_s_BoolElement__init, __pyx_k_BoolElement__init, sizeof(__pyx_k_BoolElement__init), 0, 0, 1, 1},
  {&__pyx_kp_u_Cannot_register_tree_type, __pyx_k_Cannot_register_tree_type, sizeof(__pyx_k_Cannot_register_tree_type), 0, 1, 0, 0},
  {&__pyx_n_s_DataElement, __pyx_k_DataElement, sizeof(__pyx_k_DataElement), 0, 0, 1, 1},
  {&__pyx_n_u_DataElement, __pyx_k_DataElement, sizeof(__pyx_k_DataElement), 0, 1, 0, 1},
  {&__pyx_kp_u_Data_classes_must_inherit_from_O, __pyx_k_Data_classes_must_inherit_from_O, sizeof(__pyx_k_Data_classes_must_inherit_from_O), 0, 1, 0, 0},
  {&__pyx_n_s_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 0, 1, 1},
  {&__pyx_n_u_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 1, 0, 1},
  {&__pyx_n_u_ENTITY, __pyx_k_ENTITY, sizeof(__pyx_k_ENTITY), 0, 1, 0, 1},
  {&__pyx_n_s_Element, __pyx_k_Element, sizeof(__pyx_k_Element), 0, 0, 1, 1},
  {&__pyx_n_u_Element, __pyx_k_Element, sizeof(__pyx_k_Element), 0, 1, 0, 1},
  {&__pyx_n_s_ElementChildIterator, __pyx_k_ElementChildIterator, sizeof(__pyx_k_ElementChildIterator), 0, 0, 1, 1},
  {&__pyx_n_u_ElementMaker, __pyx_k_ElementMaker, sizeof(__pyx_k_ElementMaker), 0, 1, 0, 1},
  {&__pyx_n_s_ElementTree, __pyx_k_ElementTree, sizeof(__pyx_k_ElementTree), 0, 0, 1, 1},
  {&__pyx_n_s_ElementTree_2, __pyx_k_ElementTree_2, sizeof(__pyx_k_ElementTree_2), 0, 0, 1, 1},
  {&__pyx_n_u_FloatElement, __pyx_k_FloatElement, sizeof(__pyx_k_FloatElement), 0, 1, 0, 1},
  {&__pyx_n_s_FloatElement__init, __pyx_k_FloatElement__init, sizeof(__pyx_k_FloatElement__init), 0, 0, 1, 1},
  {&__pyx_n_u_ID, __pyx_k_ID, sizeof(__pyx_k_ID), 0, 1, 0, 1},
  {&__pyx_n_u_IDREF, __pyx_k_IDREF, sizeof(__pyx_k_IDREF), 0, 1, 0, 1},
  {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
  {&__pyx_n_u_IntElement, __pyx_k_IntElement, sizeof(__pyx_k_IntElement), 0, 1, 0, 1},
  {&__pyx_n_s_IntElement__init, __pyx_k_IntElement__init, sizeof(__pyx_k_IntElement__init), 0, 0, 1, 1},
  {&__pyx_kp_u_Invalid_boolean_value, __pyx_k_Invalid_boolean_value, sizeof(__pyx_k_Invalid_boolean_value), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_slice, __pyx_k_Invalid_slice, sizeof(__pyx_k_Invalid_slice), 0, 1, 0, 0},
  {&__pyx_n_u_LongElement, __pyx_k_LongElement, sizeof(__pyx_k_LongElement), 0, 1, 0, 1},
  {&__pyx_n_s_LongElement__init, __pyx_k_LongElement__init, sizeof(__pyx_k_LongElement__init), 0, 0, 1, 1},
  {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
  {&__pyx_n_u_NCName, __pyx_k_NCName, sizeof(__pyx_k_NCName), 0, 1, 0, 1},
  {&__pyx_n_u_NMTOKEN, __pyx_k_NMTOKEN, sizeof(__pyx_k_NMTOKEN), 0, 1, 0, 1},
  {&__pyx_n_u_Name, __pyx_k_Name, sizeof(__pyx_k_Name), 0, 1, 0, 1},
  {&__pyx_n_s_None, __pyx_k_None, sizeof(__pyx_k_None), 0, 0, 1, 1},
  {&__pyx_n_u_None, __pyx_k_None, sizeof(__pyx_k_None), 0, 1, 0, 1},
  {&__pyx_n_u_NoneElement, __pyx_k_NoneElement, sizeof(__pyx_k_NoneElement), 0, 1, 0, 1},
  {&__pyx_n_s_NoneType, __pyx_k_NoneType, sizeof(__pyx_k_NoneType), 0, 0, 1, 1},
  {&__pyx_n_u_NoneType, __pyx_k_NoneType, sizeof(__pyx_k_NoneType), 0, 1, 0, 1},
  {&__pyx_n_u_NumberElement, __pyx_k_NumberElement, sizeof(__pyx_k_NumberElement), 0, 1, 0, 1},
  {&__pyx_n_s_NumberElement___complex, __pyx_k_NumberElement___complex, sizeof(__pyx_k_NumberElement___complex), 0, 0, 1, 1},
  {&__pyx_n_s_NumberElement__setValueParser, __pyx_k_NumberElement__setValueParser, sizeof(__pyx_k_NumberElement__setValueParser), 0, 0, 1, 1},
  {&__pyx_n_u_ObjectPath, __pyx_k_ObjectPath, sizeof(__pyx_k_ObjectPath), 0, 1, 0, 1},
  {&__pyx_n_s_ObjectPath_addattr, __pyx_k_ObjectPath_addattr, sizeof(__pyx_k_ObjectPath_addattr), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectPath_hasattr, __pyx_k_ObjectPath_hasattr, sizeof(__pyx_k_ObjectPath_hasattr), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectPath_setattr, __pyx_k_ObjectPath_setattr, sizeof(__pyx_k_ObjectPath_setattr), 0, 0, 1, 1},
  {&__pyx_n_u_ObjectifiedDataElement, __pyx_k_ObjectifiedDataElement, sizeof(__pyx_k_ObjectifiedDataElement), 0, 1, 0, 1},
  {&__pyx_n_s_ObjectifiedDataElement__setText, __pyx_k_ObjectifiedDataElement__setText, sizeof(__pyx_k_ObjectifiedDataElement__setText), 0, 0, 1, 1},
  {&__pyx_n_u_ObjectifiedElement, __pyx_k_ObjectifiedElement, sizeof(__pyx_k_ObjectifiedElement), 0, 1, 0, 1},
  {&__pyx_n_s_ObjectifiedElement___reduce, __pyx_k_ObjectifiedElement___reduce, sizeof(__pyx_k_ObjectifiedElement___reduce), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectifiedElement_addattr, __pyx_k_ObjectifiedElement_addattr, sizeof(__pyx_k_ObjectifiedElement_addattr), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectifiedElement_countchildren, __pyx_k_ObjectifiedElement_countchildren, sizeof(__pyx_k_ObjectifiedElement_countchildren), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectifiedElement_descendantpat, __pyx_k_ObjectifiedElement_descendantpat, sizeof(__pyx_k_ObjectifiedElement_descendantpat), 0, 0, 1, 1},
  {&__pyx_n_s_ObjectifiedElement_getchildren, __pyx_k_ObjectifiedElement_getchildren, sizeof(__pyx_k_ObjectifiedElement_getchildren), 0, 0, 1, 1},
  {&__pyx_n_u_ObjectifyElementClassLookup, __pyx_k_ObjectifyElementClassLookup, sizeof(__pyx_k_ObjectifyElementClassLookup), 0, 1, 0, 1},
  {&__pyx_n_s_PYTYPE_ATTRIBUTE, __pyx_k_PYTYPE_ATTRIBUTE, sizeof(__pyx_k_PYTYPE_ATTRIBUTE), 0, 0, 1, 1},
  {&__pyx_n_u_PYTYPE_ATTRIBUTE, __pyx_k_PYTYPE_ATTRIBUTE, sizeof(__pyx_k_PYTYPE_ATTRIBUTE), 0, 1, 0, 1},
  {&__pyx_n_u_PyType, __pyx_k_PyType, sizeof(__pyx_k_PyType), 0, 1, 0, 1},
  {&__pyx_n_s_PyType_register, __pyx_k_PyType_register, sizeof(__pyx_k_PyType_register), 0, 0, 1, 1},
  {&__pyx_kp_s_PyType_s_s, __pyx_k_PyType_s_s, sizeof(__pyx_k_PyType_s_s), 0, 0, 1, 0},
  {&__pyx_n_s_PyType_unregister, __pyx_k_PyType_unregister, sizeof(__pyx_k_PyType_unregister), 0, 0, 1, 1},
  {&__pyx_n_u_StringElement, __pyx_k_StringElement, sizeof(__pyx_k_StringElement), 0, 1, 0, 1},
  {&__pyx_n_s_StringElement___complex, __pyx_k_StringElement___complex, sizeof(__pyx_k_StringElement___complex), 0, 0, 1, 1},
  {&__pyx_n_s_StringElement_strlen, __pyx_k_StringElement_strlen, sizeof(__pyx_k_StringElement_strlen), 0, 0, 1, 1},
  {&__pyx_n_s_SubElement, __pyx_k_SubElement, sizeof(__pyx_k_SubElement), 0, 0, 1, 1},
  {&__pyx_n_u_SubElement, __pyx_k_SubElement, sizeof(__pyx_k_SubElement), 0, 1, 0, 1},
  {&__pyx_n_u_TREE, __pyx_k_TREE, sizeof(__pyx_k_TREE), 0, 1, 0, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_kp_u_Type_check_function_must_be_call, __pyx_k_Type_check_function_must_be_call, sizeof(__pyx_k_Type_check_function_must_be_call), 0, 1, 0, 0},
  {&__pyx_kp_u_Type_name_must_be_a_string, __pyx_k_Type_name_must_be_a_string, sizeof(__pyx_k_Type_name_must_be_a_string), 0, 1, 0, 0},
  {&__pyx_n_s_U, __pyx_k_U, sizeof(__pyx_k_U), 0, 0, 1, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_n_s_XML, __pyx_k_XML, sizeof(__pyx_k_XML), 0, 0, 1, 1},
  {&__pyx_n_u_XML, __pyx_k_XML, sizeof(__pyx_k_XML), 0, 1, 0, 1},
  {&__pyx_n_s_XMLParser, __pyx_k_XMLParser, sizeof(__pyx_k_XMLParser), 0, 0, 1, 1},
  {&__pyx_kp_u_XSD_types_require_the_XSD_namesp, __pyx_k_XSD_types_require_the_XSD_namesp, sizeof(__pyx_k_XSD_types_require_the_XSD_namesp), 0, 1, 0, 0},
  {&__pyx_kp_u__22, __pyx_k__22, sizeof(__pyx_k__22), 0, 1, 0, 0},
  {&__pyx_kp_s__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 0, 1, 0},
  {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0},
  {&__pyx_kp_u__32, __pyx_k__32, sizeof(__pyx_k__32), 0, 1, 0, 0},
  {&__pyx_kp_u__35, __pyx_k__35, sizeof(__pyx_k__35), 0, 1, 0, 0},
  {&__pyx_kp_u__36, __pyx_k__36, sizeof(__pyx_k__36), 0, 1, 0, 0},
  {&__pyx_kp_u__37, __pyx_k__37, sizeof(__pyx_k__37), 0, 1, 0, 0},
  {&__pyx_kp_u__38, __pyx_k__38, sizeof(__pyx_k__38), 0, 1, 0, 0},
  {&__pyx_kp_u__39, __pyx_k__39, sizeof(__pyx_k__39), 0, 1, 0, 0},
  {&__pyx_kp_u__40, __pyx_k__40, sizeof(__pyx_k__40), 0, 1, 0, 0},
  {&__pyx_kp_b__44, __pyx_k__44, sizeof(__pyx_k__44), 0, 0, 0, 0},
  {&__pyx_kp_u__44, __pyx_k__44, sizeof(__pyx_k__44), 0, 1, 0, 0},
  {&__pyx_kp_u__62, __pyx_k__62, sizeof(__pyx_k__62), 0, 1, 0, 0},
  {&__pyx_kp_u__63, __pyx_k__63, sizeof(__pyx_k__63), 0, 1, 0, 0},
  {&__pyx_kp_u__64, __pyx_k__64, sizeof(__pyx_k__64), 0, 1, 0, 0},
  {&__pyx_kp_u__66, __pyx_k__66, sizeof(__pyx_k__66), 0, 1, 0, 0},
  {&__pyx_kp_u__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 1, 0, 0},
  {&__pyx_n_s_addattr, __pyx_k_addattr, sizeof(__pyx_k_addattr), 0, 0, 1, 1},
  {&__pyx_n_s_addnext, __pyx_k_addnext, sizeof(__pyx_k_addnext), 0, 0, 1, 1},
  {&__pyx_n_s_after, __pyx_k_after, sizeof(__pyx_k_after), 0, 0, 1, 1},
  {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
  {&__pyx_n_s_annotate, __pyx_k_annotate, sizeof(__pyx_k_annotate), 0, 0, 1, 1},
  {&__pyx_n_u_annotate, __pyx_k_annotate, sizeof(__pyx_k_annotate), 0, 1, 0, 1},
  {&__pyx_n_s_annotate_pytype, __pyx_k_annotate_pytype, sizeof(__pyx_k_annotate_pytype), 0, 0, 1, 1},
  {&__pyx_n_s_annotate_xsi, __pyx_k_annotate_xsi, sizeof(__pyx_k_annotate_xsi), 0, 0, 1, 1},
  {&__pyx_kp_u_argument_of_makeelement_paramete, __pyx_k_argument_of_makeelement_paramete, sizeof(__pyx_k_argument_of_makeelement_paramete), 0, 1, 0, 0},
  {&__pyx_kp_u_assignment_to_root_element_is_in, __pyx_k_assignment_to_root_element_is_in, sizeof(__pyx_k_assignment_to_root_element_is_in), 0, 1, 0, 0},
  {&__pyx_kp_u_attempt_to_assign_sequence_of_si, __pyx_k_attempt_to_assign_sequence_of_si, sizeof(__pyx_k_attempt_to_assign_sequence_of_si), 0, 1, 0, 0},
  {&__pyx_n_s_attrib, __pyx_k_attrib, sizeof(__pyx_k_attrib), 0, 0, 1, 1},
  {&__pyx_kp_u_attribute, __pyx_k_attribute, sizeof(__pyx_k_attribute), 0, 1, 0, 0},
  {&__pyx_n_s_attribute_names, __pyx_k_attribute_names, sizeof(__pyx_k_attribute_names), 0, 0, 1, 1},
  {&__pyx_n_s_attribute_tag, __pyx_k_attribute_tag, sizeof(__pyx_k_attribute_tag), 0, 0, 1, 1},
  {&__pyx_n_s_attributes, __pyx_k_attributes, sizeof(__pyx_k_attributes), 0, 0, 1, 1},
  {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1},
  {&__pyx_n_s_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 0, 1, 1},
  {&__pyx_n_u_base, __pyx_k_base, sizeof(__pyx_k_base), 0, 1, 0, 1},
  {&__pyx_n_s_base_url, __pyx_k_base_url, sizeof(__pyx_k_base_url), 0, 0, 1, 1},
  {&__pyx_n_s_before, __pyx_k_before, sizeof(__pyx_k_before), 0, 0, 1, 1},
  {&__pyx_n_u_bool, __pyx_k_bool, sizeof(__pyx_k_bool), 0, 1, 0, 1},
  {&__pyx_n_u_boolean, __pyx_k_boolean, sizeof(__pyx_k_boolean), 0, 1, 0, 1},
  {&__pyx_n_u_byte, __pyx_k_byte, sizeof(__pyx_k_byte), 0, 1, 0, 1},
  {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1},
  {&__pyx_n_s_c_node, __pyx_k_c_node, sizeof(__pyx_k_c_node), 0, 0, 1, 1},
  {&__pyx_n_s_call, __pyx_k_call, sizeof(__pyx_k_call), 0, 0, 1, 1},
  {&__pyx_kp_u_cannot_update_root_node, __pyx_k_cannot_update_root_node, sizeof(__pyx_k_cannot_update_root_node), 0, 1, 0, 0},
  {&__pyx_n_s_check, __pyx_k_check, sizeof(__pyx_k_check), 0, 0, 1, 1},
  {&__pyx_n_s_checkBool, __pyx_k_checkBool, sizeof(__pyx_k_checkBool), 0, 0, 1, 1},
  {&__pyx_n_s_cleanup_namespaces, __pyx_k_cleanup_namespaces, sizeof(__pyx_k_cleanup_namespaces), 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_compile, __pyx_k_compile, sizeof(__pyx_k_compile), 0, 0, 1, 1},
  {&__pyx_n_s_complex, __pyx_k_complex, sizeof(__pyx_k_complex), 0, 0, 1, 1},
  {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1},
  {&__pyx_n_s_copy_reg, __pyx_k_copy_reg, sizeof(__pyx_k_copy_reg), 0, 0, 1, 1},
  {&__pyx_n_s_copyreg, __pyx_k_copyreg, sizeof(__pyx_k_copyreg), 0, 0, 1, 1},
  {&__pyx_n_s_countchildren, __pyx_k_countchildren, sizeof(__pyx_k_countchildren), 0, 0, 1, 1},
  {&__pyx_kp_u_creating_indexed_path_attributes, __pyx_k_creating_indexed_path_attributes, sizeof(__pyx_k_creating_indexed_path_attributes), 0, 1, 0, 0},
  {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1},
  {&__pyx_n_s_deannotate, __pyx_k_deannotate, sizeof(__pyx_k_deannotate), 0, 0, 1, 1},
  {&__pyx_n_u_deannotate, __pyx_k_deannotate, sizeof(__pyx_k_deannotate), 0, 1, 0, 1},
  {&__pyx_kp_u_deleting_items_not_supported_by, __pyx_k_deleting_items_not_supported_by, sizeof(__pyx_k_deleting_items_not_supported_by), 0, 1, 0, 0},
  {&__pyx_n_s_descendantpaths, __pyx_k_descendantpaths, sizeof(__pyx_k_descendantpaths), 0, 0, 1, 1},
  {&__pyx_n_u_double, __pyx_k_double, sizeof(__pyx_k_double), 0, 1, 0, 1},
  {&__pyx_n_s_dump, __pyx_k_dump, sizeof(__pyx_k_dump), 0, 0, 1, 1},
  {&__pyx_n_u_dump, __pyx_k_dump, sizeof(__pyx_k_dump), 0, 1, 0, 1},
  {&__pyx_n_s_element, __pyx_k_element, sizeof(__pyx_k_element), 0, 0, 1, 1},
  {&__pyx_n_s_element_or_tree, __pyx_k_element_or_tree, sizeof(__pyx_k_element_or_tree), 0, 0, 1, 1},
  {&__pyx_n_s_empty_data_class, __pyx_k_empty_data_class, sizeof(__pyx_k_empty_data_class), 0, 0, 1, 1},
  {&__pyx_n_s_empty_pytype, __pyx_k_empty_pytype, sizeof(__pyx_k_empty_pytype), 0, 0, 1, 1},
  {&__pyx_n_s_empty_type, __pyx_k_empty_type, sizeof(__pyx_k_empty_type), 0, 0, 1, 1},
  {&__pyx_n_s_enable_recursive_str, __pyx_k_enable_recursive_str, sizeof(__pyx_k_enable_recursive_str), 0, 0, 1, 1},
  {&__pyx_n_u_enable_recursive_str, __pyx_k_enable_recursive_str, sizeof(__pyx_k_enable_recursive_str), 0, 1, 0, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_end, __pyx_k_end, sizeof(__pyx_k_end), 0, 0, 1, 1},
  {&__pyx_n_s_entry, __pyx_k_entry, sizeof(__pyx_k_entry), 0, 0, 1, 1},
  {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1},
  {&__pyx_n_s_etree, __pyx_k_etree, sizeof(__pyx_k_etree), 0, 0, 1, 1},
  {&__pyx_n_s_f, __pyx_k_f, sizeof(__pyx_k_f), 0, 0, 1, 1},
  {&__pyx_n_s_false, __pyx_k_false, sizeof(__pyx_k_false), 0, 0, 1, 1},
  {&__pyx_n_u_false, __pyx_k_false, sizeof(__pyx_k_false), 0, 1, 0, 1},
  {&__pyx_n_s_first_pos, __pyx_k_first_pos, sizeof(__pyx_k_first_pos), 0, 0, 1, 1},
  {&__pyx_n_u_float, __pyx_k_float, sizeof(__pyx_k_float), 0, 1, 0, 1},
  {&__pyx_n_s_fromstring, __pyx_k_fromstring, sizeof(__pyx_k_fromstring), 0, 0, 1, 1},
  {&__pyx_n_u_fromstring, __pyx_k_fromstring, sizeof(__pyx_k_fromstring), 0, 1, 0, 1},
  {&__pyx_n_s_function, __pyx_k_function, sizeof(__pyx_k_function), 0, 0, 1, 1},
  {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {&__pyx_n_s_getRegisteredTypes, __pyx_k_getRegisteredTypes, sizeof(__pyx_k_getRegisteredTypes), 0, 0, 1, 1},
  {&__pyx_n_u_getRegisteredTypes, __pyx_k_getRegisteredTypes, sizeof(__pyx_k_getRegisteredTypes), 0, 1, 0, 1},
  {&__pyx_n_s_getattr, __pyx_k_getattr, sizeof(__pyx_k_getattr), 0, 0, 1, 1},
  {&__pyx_n_s_getchildren, __pyx_k_getchildren, sizeof(__pyx_k_getchildren), 0, 0, 1, 1},
  {&__pyx_n_s_getitem, __pyx_k_getitem, sizeof(__pyx_k_getitem), 0, 0, 1, 1},
  {&__pyx_n_s_getparent, __pyx_k_getparent, sizeof(__pyx_k_getparent), 0, 0, 1, 1},
  {&__pyx_kp_u_got, __pyx_k_got, sizeof(__pyx_k_got), 0, 1, 0, 0},
  {&__pyx_n_s_groups, __pyx_k_groups, sizeof(__pyx_k_groups), 0, 0, 1, 1},
  {&__pyx_n_s_hasattr, __pyx_k_hasattr, sizeof(__pyx_k_hasattr), 0, 0, 1, 1},
  {&__pyx_n_s_hex, __pyx_k_hex, sizeof(__pyx_k_hex), 0, 0, 1, 1},
  {&__pyx_kp_u_http_codespeak_net_lxml_objectif, __pyx_k_http_codespeak_net_lxml_objectif, sizeof(__pyx_k_http_codespeak_net_lxml_objectif), 0, 1, 0, 0},
  {&__pyx_kp_u_http_www_w3_org_2001_XMLSchema, __pyx_k_http_www_w3_org_2001_XMLSchema, sizeof(__pyx_k_http_www_w3_org_2001_XMLSchema), 0, 1, 0, 0},
  {&__pyx_kp_u_http_www_w3_org_2001_XMLSchema_i, __pyx_k_http_www_w3_org_2001_XMLSchema_i, sizeof(__pyx_k_http_www_w3_org_2001_XMLSchema_i), 0, 1, 0, 0},
  {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
  {&__pyx_n_s_ignore_old, __pyx_k_ignore_old, sizeof(__pyx_k_ignore_old), 0, 0, 1, 1},
  {&__pyx_n_s_ignore_pytype, __pyx_k_ignore_pytype, sizeof(__pyx_k_ignore_pytype), 0, 0, 1, 1},
  {&__pyx_n_s_ignore_xsi, __pyx_k_ignore_xsi, sizeof(__pyx_k_ignore_xsi), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_kp_u_inconsistent_before_after_depend, __pyx_k_inconsistent_before_after_depend, sizeof(__pyx_k_inconsistent_before_after_depend), 0, 1, 0, 0},
  {&__pyx_kp_u_index_must_be_enclosed_in, __pyx_k_index_must_be_enclosed_in, sizeof(__pyx_k_index_must_be_enclosed_in), 0, 1, 0, 0},
  {&__pyx_kp_u_index_not_allowed_on_root_node, __pyx_k_index_not_allowed_on_root_node, sizeof(__pyx_k_index_not_allowed_on_root_node), 0, 1, 0, 0},
  {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
  {&__pyx_n_u_int, __pyx_k_int, sizeof(__pyx_k_int), 0, 1, 0, 1},
  {&__pyx_n_u_integer, __pyx_k_integer, sizeof(__pyx_k_integer), 0, 1, 0, 1},
  {&__pyx_kp_u_invalid_number_of_arguments_need, __pyx_k_invalid_number_of_arguments_need, sizeof(__pyx_k_invalid_number_of_arguments_need), 0, 1, 0, 0},
  {&__pyx_kp_u_invalid_path, __pyx_k_invalid_path, sizeof(__pyx_k_invalid_path), 0, 1, 0, 0},
  {&__pyx_kp_u_invalid_types_for_operator, __pyx_k_invalid_types_for_operator, sizeof(__pyx_k_invalid_types_for_operator), 0, 1, 0, 0},
  {&__pyx_n_s_item, __pyx_k_item, sizeof(__pyx_k_item), 0, 0, 1, 1},
  {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {&__pyx_n_s_iterchildren, __pyx_k_iterchildren, sizeof(__pyx_k_iterchildren), 0, 0, 1, 1},
  {&__pyx_n_s_known, __pyx_k_known, sizeof(__pyx_k_known), 0, 0, 1, 1},
  {&__pyx_n_s_kw, __pyx_k_kw, sizeof(__pyx_k_kw), 0, 0, 1, 1},
  {&__pyx_n_u_language, __pyx_k_language, sizeof(__pyx_k_language), 0, 1, 0, 1},
  {&__pyx_n_s_last_pos, __pyx_k_last_pos, sizeof(__pyx_k_last_pos), 0, 0, 1, 1},
  {&__pyx_n_u_long, __pyx_k_long, sizeof(__pyx_k_long), 0, 1, 0, 1},
  {&__pyx_n_s_lower_bool, __pyx_k_lower_bool, sizeof(__pyx_k_lower_bool), 0, 0, 1, 1},
  {&__pyx_n_s_lxml, __pyx_k_lxml, sizeof(__pyx_k_lxml), 0, 0, 1, 1},
  {&__pyx_n_s_lxml_objectify, __pyx_k_lxml_objectify, sizeof(__pyx_k_lxml_objectify), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_makeelement, __pyx_k_makeelement, sizeof(__pyx_k_makeelement), 0, 0, 1, 1},
  {&__pyx_n_s_makeparser, __pyx_k_makeparser, sizeof(__pyx_k_makeparser), 0, 0, 1, 1},
  {&__pyx_n_u_makeparser, __pyx_k_makeparser, sizeof(__pyx_k_makeparser), 0, 1, 0, 1},
  {&__pyx_n_s_map, __pyx_k_map, sizeof(__pyx_k_map), 0, 0, 1, 1},
  {&__pyx_n_s_match, __pyx_k_match, sizeof(__pyx_k_match), 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_namespace, __pyx_k_namespace, sizeof(__pyx_k_namespace), 0, 0, 1, 1},
  {&__pyx_n_u_negativeInteger, __pyx_k_negativeInteger, sizeof(__pyx_k_negativeInteger), 0, 1, 0, 1},
  {&__pyx_n_s_new_parser, __pyx_k_new_parser, sizeof(__pyx_k_new_parser), 0, 0, 1, 1},
  {&__pyx_kp_u_no_such_child, __pyx_k_no_such_child, sizeof(__pyx_k_no_such_child), 0, 1, 0, 0},
  {&__pyx_n_u_nonNegativeInteger, __pyx_k_nonNegativeInteger, sizeof(__pyx_k_nonNegativeInteger), 0, 1, 0, 1},
  {&__pyx_n_u_nonPositiveInteger, __pyx_k_nonPositiveInteger, sizeof(__pyx_k_nonPositiveInteger), 0, 1, 0, 1},
  {&__pyx_n_s_none, __pyx_k_none, sizeof(__pyx_k_none), 0, 0, 1, 1},
  {&__pyx_n_u_none, __pyx_k_none, sizeof(__pyx_k_none), 0, 1, 0, 1},
  {&__pyx_n_u_normalizedString, __pyx_k_normalizedString, sizeof(__pyx_k_normalizedString), 0, 1, 0, 1},
  {&__pyx_n_s_ns, __pyx_k_ns, sizeof(__pyx_k_ns), 0, 0, 1, 1},
  {&__pyx_n_s_nsmap, __pyx_k_nsmap, sizeof(__pyx_k_nsmap), 0, 0, 1, 1},
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
  {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1},
  {&__pyx_kp_u_objects_is_not_writable, __pyx_k_objects_is_not_writable, sizeof(__pyx_k_objects_is_not_writable), 0, 1, 0, 0},
  {&__pyx_n_s_oct, __pyx_k_oct, sizeof(__pyx_k_oct), 0, 0, 1, 1},
  {&__pyx_kp_u_of, __pyx_k_of, sizeof(__pyx_k_of), 0, 1, 0, 0},
  {&__pyx_n_s_on, __pyx_k_on, sizeof(__pyx_k_on), 0, 0, 1, 1},
  {&__pyx_n_s_parse, __pyx_k_parse, sizeof(__pyx_k_parse), 0, 0, 1, 1},
  {&__pyx_n_u_parse, __pyx_k_parse, sizeof(__pyx_k_parse), 0, 1, 0, 1},
  {&__pyx_n_s_parseBool, __pyx_k_parseBool, sizeof(__pyx_k_parseBool), 0, 0, 1, 1},
  {&__pyx_n_s_parser, __pyx_k_parser, sizeof(__pyx_k_parser), 0, 0, 1, 1},
  {&__pyx_kp_u_parser_must_inherit_from_lxml_et, __pyx_k_parser_must_inherit_from_lxml_et, sizeof(__pyx_k_parser_must_inherit_from_lxml_et), 0, 1, 0, 0},
  {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1},
  {&__pyx_n_s_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 0, 0, 1, 1},
  {&__pyx_n_s_pickleReduceElementTree, __pyx_k_pickleReduceElementTree, sizeof(__pyx_k_pickleReduceElementTree), 0, 0, 1, 1},
  {&__pyx_n_u_positiveInteger, __pyx_k_positiveInteger, sizeof(__pyx_k_positiveInteger), 0, 1, 0, 1},
  {&__pyx_n_s_prefix, __pyx_k_prefix, sizeof(__pyx_k_prefix), 0, 0, 1, 1},
  {&__pyx_kp_u_py, __pyx_k_py, sizeof(__pyx_k_py), 0, 1, 0, 0},
  {&__pyx_n_s_py_2, __pyx_k_py_2, sizeof(__pyx_k_py_2), 0, 0, 1, 1},
  {&__pyx_n_s_py_type, __pyx_k_py_type, sizeof(__pyx_k_py_type), 0, 0, 1, 1},
  {&__pyx_n_s_pyannotate, __pyx_k_pyannotate, sizeof(__pyx_k_pyannotate), 0, 0, 1, 1},
  {&__pyx_n_u_pyannotate, __pyx_k_pyannotate, sizeof(__pyx_k_pyannotate), 0, 1, 0, 1},
  {&__pyx_n_s_pytype, __pyx_k_pytype, sizeof(__pyx_k_pytype), 0, 0, 1, 1},
  {&__pyx_n_u_pytype, __pyx_k_pytype, sizeof(__pyx_k_pytype), 0, 1, 0, 1},
  {&__pyx_n_s_pytype_2, __pyx_k_pytype_2, sizeof(__pyx_k_pytype_2), 0, 0, 1, 1},
  {&__pyx_n_s_pytypename, __pyx_k_pytypename, sizeof(__pyx_k_pytypename), 0, 0, 1, 1},
  {&__pyx_n_u_pytypename, __pyx_k_pytypename, sizeof(__pyx_k_pytypename), 0, 1, 0, 1},
  {&__pyx_n_s_pyval, __pyx_k_pyval, sizeof(__pyx_k_pyval), 0, 0, 1, 1},
  {&__pyx_n_u_pyval, __pyx_k_pyval, sizeof(__pyx_k_pyval), 0, 1, 0, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_re, __pyx_k_re, sizeof(__pyx_k_re), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_register, __pyx_k_register, sizeof(__pyx_k_register), 0, 0, 1, 1},
  {&__pyx_n_s_remove, __pyx_k_remove, sizeof(__pyx_k_remove), 0, 0, 1, 1},
  {&__pyx_n_s_remove_blank_text, __pyx_k_remove_blank_text, sizeof(__pyx_k_remove_blank_text), 0, 0, 1, 1},
  {&__pyx_n_s_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1},
  {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1},
  {&__pyx_n_s_result, __pyx_k_result, sizeof(__pyx_k_result), 0, 0, 1, 1},
  {&__pyx_n_s_root, __pyx_k_root, sizeof(__pyx_k_root), 0, 0, 1, 1},
  {&__pyx_kp_u_root_element_does_not_match_need, __pyx_k_root_element_does_not_match_need, sizeof(__pyx_k_root_element_does_not_match_need), 0, 1, 0, 0},
  {&__pyx_kp_u_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 1, 0, 0},
  {&__pyx_kp_u_s_2, __pyx_k_s_2, sizeof(__pyx_k_s_2), 0, 1, 0, 0},
  {&__pyx_n_s_s_3, __pyx_k_s_3, sizeof(__pyx_k_s_3), 0, 0, 1, 1},
  {&__pyx_kp_u_s_nil, __pyx_k_s_nil, sizeof(__pyx_k_s_nil), 0, 1, 0, 0},
  {&__pyx_kp_u_s_s_s_s_s_0_9_s, __pyx_k_s_s_s_s_s_0_9_s, sizeof(__pyx_k_s_s_s_s_s_0_9_s), 0, 1, 0, 0},
  {&__pyx_kp_u_s_type, __pyx_k_s_type, sizeof(__pyx_k_s_type), 0, 1, 0, 0},
  {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1},
  {&__pyx_n_s_set, __pyx_k_set, sizeof(__pyx_k_set), 0, 0, 1, 1},
  {&__pyx_n_s_setText, __pyx_k_setText, sizeof(__pyx_k_setText), 0, 0, 1, 1},
  {&__pyx_n_s_setValueParser, __pyx_k_setValueParser, sizeof(__pyx_k_setValueParser), 0, 0, 1, 1},
  {&__pyx_n_s_set_default_parser, __pyx_k_set_default_parser, sizeof(__pyx_k_set_default_parser), 0, 0, 1, 1},
  {&__pyx_n_u_set_default_parser, __pyx_k_set_default_parser, sizeof(__pyx_k_set_default_parser), 0, 1, 0, 1},
  {&__pyx_n_s_set_element_class_lookup, __pyx_k_set_element_class_lookup, sizeof(__pyx_k_set_element_class_lookup), 0, 0, 1, 1},
  {&__pyx_n_s_set_pytype_attribute_tag, __pyx_k_set_pytype_attribute_tag, sizeof(__pyx_k_set_pytype_attribute_tag), 0, 0, 1, 1},
  {&__pyx_n_u_set_pytype_attribute_tag, __pyx_k_set_pytype_attribute_tag, sizeof(__pyx_k_set_pytype_attribute_tag), 0, 1, 0, 1},
  {&__pyx_n_s_setattr, __pyx_k_setattr, sizeof(__pyx_k_setattr), 0, 0, 1, 1},
  {&__pyx_n_u_short, __pyx_k_short, sizeof(__pyx_k_short), 0, 1, 0, 1},
  {&__pyx_n_s_split, __pyx_k_split, sizeof(__pyx_k_split), 0, 0, 1, 1},
  {&__pyx_kp_s_src_lxml_objectify_pyx, __pyx_k_src_lxml_objectify_pyx, sizeof(__pyx_k_src_lxml_objectify_pyx), 0, 0, 1, 0},
  {&__pyx_kp_s_src_lxml_objectpath_pxi, __pyx_k_src_lxml_objectpath_pxi, sizeof(__pyx_k_src_lxml_objectpath_pxi), 0, 0, 1, 0},
  {&__pyx_n_u_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 1, 0, 1},
  {&__pyx_n_u_string, __pyx_k_string, sizeof(__pyx_k_string), 0, 1, 0, 1},
  {&__pyx_n_s_stringify, __pyx_k_stringify, sizeof(__pyx_k_stringify), 0, 0, 1, 1},
  {&__pyx_n_s_strip, __pyx_k_strip, sizeof(__pyx_k_strip), 0, 0, 1, 1},
  {&__pyx_n_s_strip_attributes, __pyx_k_strip_attributes, sizeof(__pyx_k_strip_attributes), 0, 0, 1, 1},
  {&__pyx_n_s_strlen, __pyx_k_strlen, sizeof(__pyx_k_strlen), 0, 0, 1, 1},
  {&__pyx_n_s_strval, __pyx_k_strval, sizeof(__pyx_k_strval), 0, 0, 1, 1},
  {&__pyx_n_s_tag, __pyx_k_tag, sizeof(__pyx_k_tag), 0, 0, 1, 1},
  {&__pyx_n_u_tag, __pyx_k_tag, sizeof(__pyx_k_tag), 0, 1, 0, 1},
  {&__pyx_n_s_tag_2, __pyx_k_tag_2, sizeof(__pyx_k_tag_2), 0, 0, 1, 1},
  {&__pyx_n_u_tail, __pyx_k_tail, sizeof(__pyx_k_tail), 0, 1, 0, 1},
  {&__pyx_n_s_temp, __pyx_k_temp, sizeof(__pyx_k_temp), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 0, 1, 1},
  {&__pyx_n_u_text, __pyx_k_text, sizeof(__pyx_k_text), 0, 1, 0, 1},
  {&__pyx_kp_u_to_extended_slice_of_size, __pyx_k_to_extended_slice_of_size, sizeof(__pyx_k_to_extended_slice_of_size), 0, 1, 0, 0},
  {&__pyx_n_u_token, __pyx_k_token, sizeof(__pyx_k_token), 0, 1, 0, 1},
  {&__pyx_n_s_tostring, __pyx_k_tostring, sizeof(__pyx_k_tostring), 0, 0, 1, 1},
  {&__pyx_n_s_tree_class, __pyx_k_tree_class, sizeof(__pyx_k_tree_class), 0, 0, 1, 1},
  {&__pyx_n_s_true, __pyx_k_true, sizeof(__pyx_k_true), 0, 0, 1, 1},
  {&__pyx_n_u_true, __pyx_k_true, sizeof(__pyx_k_true), 0, 1, 0, 1},
  {&__pyx_n_s_type_check, __pyx_k_type_check, sizeof(__pyx_k_type_check), 0, 0, 1, 1},
  {&__pyx_n_s_type_class, __pyx_k_type_class, sizeof(__pyx_k_type_class), 0, 0, 1, 1},
  {&__pyx_n_s_types, __pyx_k_types, sizeof(__pyx_k_types), 0, 0, 1, 1},
  {&__pyx_kp_s_unicode_escape, __pyx_k_unicode_escape, sizeof(__pyx_k_unicode_escape), 0, 0, 1, 0},
  {&__pyx_n_s_unpickleElementTree, __pyx_k_unpickleElementTree, sizeof(__pyx_k_unpickleElementTree), 0, 0, 1, 1},
  {&__pyx_n_s_unregister, __pyx_k_unregister, sizeof(__pyx_k_unregister), 0, 0, 1, 1},
  {&__pyx_n_u_unsignedByte, __pyx_k_unsignedByte, sizeof(__pyx_k_unsignedByte), 0, 1, 0, 1},
  {&__pyx_n_u_unsignedInt, __pyx_k_unsignedInt, sizeof(__pyx_k_unsignedInt), 0, 1, 0, 1},
  {&__pyx_n_u_unsignedLong, __pyx_k_unsignedLong, sizeof(__pyx_k_unsignedLong), 0, 1, 0, 1},
  {&__pyx_n_u_unsignedShort, __pyx_k_unsignedShort, sizeof(__pyx_k_unsignedShort), 0, 1, 0, 1},
  {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1},
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {&__pyx_n_u_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 1, 0, 1},
  {&__pyx_n_s_value_2, __pyx_k_value_2, sizeof(__pyx_k_value_2), 0, 0, 1, 1},
  {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {&__pyx_n_s_version, __pyx_k_version, sizeof(__pyx_k_version), 0, 0, 1, 1},
  {&__pyx_n_s_xml, __pyx_k_xml, sizeof(__pyx_k_xml), 0, 0, 1, 1},
  {&__pyx_n_s_xmlSchemaTypes, __pyx_k_xmlSchemaTypes, sizeof(__pyx_k_xmlSchemaTypes), 0, 0, 1, 1},
  {&__pyx_n_s_xs_type, __pyx_k_xs_type, sizeof(__pyx_k_xs_type), 0, 0, 1, 1},
  {&__pyx_kp_u_xsd, __pyx_k_xsd, sizeof(__pyx_k_xsd), 0, 1, 0, 0},
  {&__pyx_n_s_xsd_2, __pyx_k_xsd_2, sizeof(__pyx_k_xsd_2), 0, 0, 1, 1},
  {&__pyx_kp_u_xsi, __pyx_k_xsi, sizeof(__pyx_k_xsi), 0, 1, 0, 0},
  {&__pyx_n_s_xsi_2, __pyx_k_xsi_2, sizeof(__pyx_k_xsi_2), 0, 0, 1, 1},
  {&__pyx_n_s_xsi_3, __pyx_k_xsi_3, sizeof(__pyx_k_xsi_3), 0, 0, 1, 1},
  {&__pyx_n_s_xsi_nil, __pyx_k_xsi_nil, sizeof(__pyx_k_xsi_nil), 0, 0, 1, 1},
  {&__pyx_n_s_xsiannotate, __pyx_k_xsiannotate, sizeof(__pyx_k_xsiannotate), 0, 0, 1, 1},
  {&__pyx_n_u_xsiannotate, __pyx_k_xsiannotate, sizeof(__pyx_k_xsiannotate), 0, 1, 0, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 43, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(0, 43, __pyx_L1_error)
  __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(1, 10, __pyx_L1_error)
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 299, __pyx_L1_error)
  __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) __PYX_ERR(0, 450, __pyx_L1_error)
  __pyx_builtin_oct = __Pyx_GetBuiltinName(__pyx_n_s_oct); if (!__pyx_builtin_oct) __PYX_ERR(0, 644, __pyx_L1_error)
  __pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s_hex); if (!__pyx_builtin_hex) __PYX_ERR(0, 647, __pyx_L1_error)
  __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 966, __pyx_L1_error)
  __pyx_builtin_map = __Pyx_GetBuiltinName(__pyx_n_s_map); if (!__pyx_builtin_map) __PYX_ERR(0, 1004, __pyx_L1_error)
  __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(1, 169, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "lxml/objectify.pyx":53
 *     methods, e.g. _Element.__repr__().
 *     """
 *     return s.encode('unicode-escape') if python.IS_PYTHON2 else s             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_unicode_escape); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "lxml/objectify.pyx":467
 *         new_element.tag = element.tag
 *     elif isinstance(value, (list, tuple)):
 *         element[:] = value             # <<<<<<<<<<<<<<
 *         return
 *     else:
 */
  __pyx_slice__10 = PySlice_New(Py_None, Py_None, Py_None); if (unlikely(!__pyx_slice__10)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_slice__10);
  __Pyx_GIVEREF(__pyx_slice__10);

  /* "lxml/objectify.pyx":1026
 * cdef _registerPyTypes():
 *     pytype = PyType(u'int', int, IntElement)
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",             # <<<<<<<<<<<<<<
 *                              u"unsignedByte", u"nonPositiveInteger",
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
 */
  __pyx_tuple__27 = PyTuple_Pack(13, __pyx_n_u_integer, __pyx_n_u_int, __pyx_n_u_short, __pyx_n_u_byte, __pyx_n_u_unsignedShort, __pyx_n_u_unsignedByte, __pyx_n_u_nonPositiveInteger, __pyx_n_u_negativeInteger, __pyx_n_u_long, __pyx_n_u_nonNegativeInteger, __pyx_n_u_unsignedLong, __pyx_n_u_unsignedInt, __pyx_n_u_positiveInteger); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "lxml/objectify.pyx":1037
 * 
 *     pytype = PyType(u'float', float, FloatElement, repr)
 *     pytype.xmlSchemaTypes = (u"double", u"float")             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __pyx_tuple__28 = PyTuple_Pack(2, __pyx_n_u_double, __pyx_n_u_float); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "lxml/objectify.pyx":1041
 * 
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
 *     pytype.xmlSchemaTypes = (u"boolean",)             # <<<<<<<<<<<<<<
 *     pytype.register()
 * 
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_n_u_boolean); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 1041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "lxml/objectify.pyx":1045
 * 
 *     pytype = PyType(u'str', None, StringElement)
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",             # <<<<<<<<<<<<<<
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
 *                              u"NMTOKEN", )
 */
  __pyx_tuple__30 = PyTuple_Pack(10, __pyx_n_u_string, __pyx_n_u_normalizedString, __pyx_n_u_token, __pyx_n_u_language, __pyx_n_u_Name, __pyx_n_u_NCName, __pyx_n_u_ID, __pyx_n_u_IDREF, __pyx_n_u_ENTITY, __pyx_n_u_NMTOKEN); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 1045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "lxml/objectify.pyx":1342
 *         result += _dump(child, indent)
 *     if indent == 1:
 *         return result[:-1] # strip last '\n'             # <<<<<<<<<<<<<<
 *     else:
 *         return result
 */
  __pyx_slice__41 = PySlice_New(Py_None, __pyx_int_neg_1, Py_None); if (unlikely(!__pyx_slice__41)) __PYX_ERR(0, 1342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_slice__41);
  __Pyx_GIVEREF(__pyx_slice__41);

  /* "lxml/objectify.pyx":1423
 *         schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is None and u':' in value:
 *             prefix, value = value.split(u':', 1)             # <<<<<<<<<<<<<<
 *             schema_type = <PyType>_SCHEMA_TYPE_DICT.get(value)
 *         if schema_type is not None:
 */
  __pyx_tuple__45 = PyTuple_Pack(2, __pyx_kp_u__44, __pyx_int_1); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 1423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);

  /* "lxml/objectify.pyx":1600
 *             pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is None and u':' in typename:
 *                 prefix, typename = typename.split(u':', 1)             # <<<<<<<<<<<<<<
 *                 pytype = <PyType>_SCHEMA_TYPE_DICT.get(typename)
 *             if pytype is not None and pytype is not StrType:
 */
  __pyx_tuple__49 = PyTuple_Pack(2, __pyx_kp_u__44, __pyx_int_1); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 1600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);

  /* "lxml/objectify.pyx":1913
 *     if _xsi is not None:
 *         if u':' in _xsi:
 *             prefix, name = _xsi.split(u':', 1)             # <<<<<<<<<<<<<<
 *             ns = nsmap.get(prefix)
 *             if ns != XML_SCHEMA_NS:
 */
  __pyx_tuple__58 = PyTuple_Pack(2, __pyx_kp_u__44, __pyx_int_1); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 1913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);

  /* "lxml/objectify.pyx":43
 * import re
 * 
 * cdef tuple IGNORABLE_ERRORS = (ValueError, TypeError)             # <<<<<<<<<<<<<<
 * cdef object is_special_method = re.compile(u'__.*__$').match
 * 
 */
  __pyx_tuple__65 = PyTuple_Pack(2, __pyx_builtin_ValueError, __pyx_builtin_TypeError); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__65);
  __Pyx_GIVEREF(__pyx_tuple__65);

  /* "lxml/objectify.pyx":44
 * 
 * cdef tuple IGNORABLE_ERRORS = (ValueError, TypeError)
 * cdef object is_special_method = re.compile(u'__.*__$').match             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__67 = PyTuple_Pack(1, __pyx_kp_u__66); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__67);
  __Pyx_GIVEREF(__pyx_tuple__67);

  /* "lxml/objectify.pyx":81
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 * def set_pytype_attribute_tag(attribute_tag=None):             # <<<<<<<<<<<<<<
 *     u"""set_pytype_attribute_tag(attribute_tag=None)
 *     Change name and namespace of the XML attribute that holds Python type
 */
  __pyx_tuple__68 = PyTuple_Pack(1, __pyx_n_s_attribute_tag); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);
  __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_set_pytype_attribute_tag, 81, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) __PYX_ERR(0, 81, __pyx_L1_error)
  __pyx_tuple__69 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__69);
  __Pyx_GIVEREF(__pyx_tuple__69);

  /* "lxml/objectify.pyx":161
 * 
 *     # pickle support for objectified Element
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         return (fromstring, (etree.tostring(self),))
 * 
 */
  __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);
  __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 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_lxml_objectify_pyx, __pyx_n_s_reduce, 161, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 161, __pyx_L1_error)

  /* "lxml/objectify.pyx":192
 *         return _countSiblings(self._c_node)
 * 
 *     def countchildren(self):             # <<<<<<<<<<<<<<
 *         u"""countchildren(self)
 * 
 */
  __pyx_tuple__71 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_c, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__71);
  __Pyx_GIVEREF(__pyx_tuple__71);
  __pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_countchildren, 192, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 192, __pyx_L1_error)

  /* "lxml/objectify.pyx":209
 *         return c
 * 
 *     def getchildren(self):             # <<<<<<<<<<<<<<
 *         u"""getchildren(self)
 * 
 */
  __pyx_tuple__72 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_c_node, __pyx_n_s_result); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__72);
  __Pyx_GIVEREF(__pyx_tuple__72);
  __pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 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_lxml_objectify_pyx, __pyx_n_s_getchildren, 209, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 209, __pyx_L1_error)

  /* "lxml/objectify.pyx":262
 *         self.remove(child)
 * 
 *     def addattr(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, tag, value)
 * 
 */
  __pyx_tuple__73 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_value); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__73);
  __Pyx_GIVEREF(__pyx_tuple__73);
  __pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_addattr, 262, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(0, 262, __pyx_L1_error)

  /* "lxml/objectify.pyx":369
 *             parent.remove(sibling)
 * 
 *     def descendantpaths(self, prefix=None):             # <<<<<<<<<<<<<<
 *         u"""descendantpaths(self, prefix=None)
 * 
 */
  __pyx_tuple__74 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_prefix); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__74);
  __Pyx_GIVEREF(__pyx_tuple__74);
  __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_lxml_objectify_pyx, __pyx_n_s_descendantpaths, 369, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) __PYX_ERR(0, 369, __pyx_L1_error)

  /* "lxml/objectify.pyx":606
 *         return strrepr(textOf(self._c_node) or '')
 * 
 *     def _setText(self, s):             # <<<<<<<<<<<<<<
 *         u"""For use in subclasses only. Don't use unless you know what you are
 *         doing.
 */
  __pyx_tuple__75 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_s_3); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__75);
  __Pyx_GIVEREF(__pyx_tuple__75);
  __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_setText, 606, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) __PYX_ERR(0, 606, __pyx_L1_error)

  /* "lxml/objectify.pyx":614
 * cdef class NumberElement(ObjectifiedDataElement):
 *     cdef object _parse_value
 *     def _setValueParser(self, function):             # <<<<<<<<<<<<<<
 *         u"""Set the function that parses the Python value from a string.
 * 
 */
  __pyx_tuple__76 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_function); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__76);
  __Pyx_GIVEREF(__pyx_tuple__76);
  __pyx_codeobj__12 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 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_lxml_objectify_pyx, __pyx_n_s_setValueParser, 614, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__12)) __PYX_ERR(0, 614, __pyx_L1_error)

  /* "lxml/objectify.pyx":634
 *         return float(_parseNumber(self))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(_parseNumber(self))
 * 
 */
  __pyx_tuple__77 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__77);
  __Pyx_GIVEREF(__pyx_tuple__77);
  __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_complex, 634, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) __PYX_ERR(0, 634, __pyx_L1_error)

  /* "lxml/objectify.pyx":710
 * 
 * cdef class IntElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = int
 * 
 */
  __pyx_tuple__78 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__78);
  __Pyx_GIVEREF(__pyx_tuple__78);
  __pyx_codeobj__14 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_init, 710, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__14)) __PYX_ERR(0, 710, __pyx_L1_error)

  /* "lxml/objectify.pyx":714
 * 
 * cdef class LongElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = long
 * 
 */
  __pyx_tuple__79 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__79);
  __Pyx_GIVEREF(__pyx_tuple__79);
  __pyx_codeobj__15 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_init, 714, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__15)) __PYX_ERR(0, 714, __pyx_L1_error)

  /* "lxml/objectify.pyx":718
 * 
 * cdef class FloatElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = float
 * 
 */
  __pyx_tuple__80 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);
  __pyx_codeobj__16 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_init, 718, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__16)) __PYX_ERR(0, 718, __pyx_L1_error)

  /* "lxml/objectify.pyx":735
 *         return repr(textOf(self._c_node) or u'')
 * 
 *     def strlen(self):             # <<<<<<<<<<<<<<
 *         text = textOf(self._c_node)
 *         if text is None:
 */
  __pyx_tuple__81 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_text); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__81);
  __Pyx_GIVEREF(__pyx_tuple__81);
  __pyx_codeobj__17 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_strlen, 735, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__17)) __PYX_ERR(0, 735, __pyx_L1_error)

  /* "lxml/objectify.pyx":780
 *         return float(textOf(self._c_node))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(textOf(self._c_node))
 * 
 */
  __pyx_tuple__82 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);
  __pyx_codeobj__18 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_complex, 780, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__18)) __PYX_ERR(0, 780, __pyx_L1_error)

  /* "lxml/objectify.pyx":814
 *     Python's bool type.
 *     """
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = __parseBool
 * 
 */
  __pyx_tuple__83 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__83);
  __Pyx_GIVEREF(__pyx_tuple__83);
  __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_init, 814, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) __PYX_ERR(0, 814, __pyx_L1_error)

  /* "lxml/objectify.pyx":836
 *             return __parseBool(textOf(self._c_node))
 * 
 * def __checkBool(s):             # <<<<<<<<<<<<<<
 *     cdef int value = -1
 *     if s is not None:
 */
  __pyx_tuple__84 = PyTuple_Pack(2, __pyx_n_s_s_3, __pyx_n_s_value); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__84);
  __Pyx_GIVEREF(__pyx_tuple__84);
  __pyx_codeobj__20 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 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_lxml_objectify_pyx, __pyx_n_s_checkBool, 836, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__20)) __PYX_ERR(0, 836, __pyx_L1_error)

  /* "lxml/objectify.pyx":843
 *         raise ValueError
 * 
 * cpdef bint __parseBool(s) except -1:             # <<<<<<<<<<<<<<
 *     cdef int value
 *     if s is None:
 */
  __pyx_tuple__85 = PyTuple_Pack(1, __pyx_n_s_s_3); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__85);
  __Pyx_GIVEREF(__pyx_tuple__85);
  __pyx_codeobj__21 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_parseBool, 843, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__21)) __PYX_ERR(0, 843, __pyx_L1_error)

  /* "lxml/objectify.pyx":941
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 *     def register(self, before=None, after=None):             # <<<<<<<<<<<<<<
 *         u"""register(self, before=None, after=None)
 * 
 */
  __pyx_tuple__86 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_before, __pyx_n_s_after, __pyx_n_s_item, __pyx_n_s_entry, __pyx_n_s_first_pos, __pyx_n_s_last_pos, __pyx_n_s_i, __pyx_n_s_check, __pyx_n_s_pytype, __pyx_n_s_xs_type); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__86);
  __Pyx_GIVEREF(__pyx_tuple__86);
  __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(3, 0, 11, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_register, 941, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) __PYX_ERR(0, 941, __pyx_L1_error)

  /* "lxml/objectify.pyx":982
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 *     def unregister(self):             # <<<<<<<<<<<<<<
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:
 */
  __pyx_tuple__87 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_xs_type, __pyx_n_s_pytype); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__87);
  __Pyx_GIVEREF(__pyx_tuple__87);
  __pyx_codeobj__24 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_unregister, 982, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__24)) __PYX_ERR(0, 982, __pyx_L1_error)

  /* "lxml/objectify.pyx":1011
 * cdef list _TYPE_CHECKS = []
 * 
 * def __lower_bool(b):             # <<<<<<<<<<<<<<
 *     return u"true" if b else u"false"
 * 
 */
  __pyx_tuple__88 = PyTuple_Pack(1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__88);
  __Pyx_GIVEREF(__pyx_tuple__88);
  __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_lower_bool, 1011, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) __PYX_ERR(0, 1011, __pyx_L1_error)

  /* "lxml/objectify.pyx":1017
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 * def pytypename(obj):             # <<<<<<<<<<<<<<
 *     u"""pytypename(obj)
 * 
 */
  __pyx_tuple__89 = PyTuple_Pack(1, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__89);
  __Pyx_GIVEREF(__pyx_tuple__89);
  __pyx_codeobj__26 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_pytypename, 1017, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__26)) __PYX_ERR(0, 1017, __pyx_L1_error)

  /* "lxml/objectify.pyx":1063
 * _registerPyTypes()
 * 
 * def getRegisteredTypes():             # <<<<<<<<<<<<<<
 *     u"""getRegisteredTypes()
 * 
 */
  __pyx_tuple__90 = PyTuple_Pack(5, __pyx_n_s_types, __pyx_n_s_known, __pyx_n_s_check, __pyx_n_s_pytype, __pyx_n_s_name); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__90);
  __Pyx_GIVEREF(__pyx_tuple__90);
  __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(0, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_getRegisteredTypes, 1063, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) __PYX_ERR(0, 1063, __pyx_L1_error)

  /* "lxml/objectify.pyx":1298
 * cdef bint __RECURSIVE_STR = 0 # default: off
 * 
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
 *     u"""enable_recursive_str(on=True)
 * 
 */
  __pyx_tuple__91 = PyTuple_Pack(1, __pyx_n_s_on); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__91);
  __Pyx_GIVEREF(__pyx_tuple__91);
  __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_enable_recursive_str, 1298, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __pyx_tuple__92 = PyTuple_Pack(1, ((PyObject *)Py_True)); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__92);
  __Pyx_GIVEREF(__pyx_tuple__92);

  /* "lxml/objectify.pyx":1307
 *     __RECURSIVE_STR = on
 * 
 * def dump(_Element element not None):             # <<<<<<<<<<<<<<
 *     u"""dump(_Element element not None)
 * 
 */
  __pyx_tuple__93 = PyTuple_Pack(1, __pyx_n_s_element); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__93);
  __Pyx_GIVEREF(__pyx_tuple__93);
  __pyx_codeobj__34 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_dump, 1307, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__34)) __PYX_ERR(0, 1307, __pyx_L1_error)

  /* "lxml/objectify.pyx":1350
 * # Pickle support for objectified ElementTree
 * 
 * def __unpickleElementTree(data):             # <<<<<<<<<<<<<<
 *     return etree.ElementTree(fromstring(data))
 * 
 */
  __pyx_tuple__94 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 1350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__94);
  __Pyx_GIVEREF(__pyx_tuple__94);
  __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 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_lxml_objectify_pyx, __pyx_n_s_unpickleElementTree, 1350, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 1350, __pyx_L1_error)

  /* "lxml/objectify.pyx":1361
 *                    elementTreeReduceFunction, __unpickleElementTree)
 * 
 * def pickleReduceElementTree(obj):             # <<<<<<<<<<<<<<
 *     return (__unpickleElementTree, (etree.tostring(obj),))
 * 
 */
  __pyx_tuple__95 = PyTuple_Pack(1, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__95);
  __Pyx_GIVEREF(__pyx_tuple__95);
  __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_pickleReduceElementTree, 1361, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(0, 1361, __pyx_L1_error)

  /* "lxml/objectify.pyx":1455
 *     return None
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None):
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 */
  __pyx_tuple__96 = PyTuple_Pack(5, __pyx_n_s_element_or_tree, __pyx_n_s_ignore_old, __pyx_n_s_ignore_xsi, __pyx_n_s_empty_pytype, __pyx_n_s_element); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__96);
  __Pyx_GIVEREF(__pyx_tuple__96);
  __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(1, 3, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_pyannotate, 1455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 1455, __pyx_L1_error)

  /* "lxml/objectify.pyx":1478
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
 *                 empty_type=None):
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 */
  __pyx_tuple__97 = PyTuple_Pack(5, __pyx_n_s_element_or_tree, __pyx_n_s_ignore_old, __pyx_n_s_ignore_pytype, __pyx_n_s_empty_type, __pyx_n_s_element); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 1478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__97);
  __Pyx_GIVEREF(__pyx_tuple__97);
  __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(1, 3, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_xsiannotate, 1478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) __PYX_ERR(0, 1478, __pyx_L1_error)

  /* "lxml/objectify.pyx":1506
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
 *              annotate_pytype=1):
 */
  __pyx_tuple__98 = PyTuple_Pack(8, __pyx_n_s_element_or_tree, __pyx_n_s_ignore_old, __pyx_n_s_ignore_xsi, __pyx_n_s_empty_pytype, __pyx_n_s_empty_type, __pyx_n_s_annotate_xsi, __pyx_n_s_annotate_pytype, __pyx_n_s_element); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 1506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__98);
  __Pyx_GIVEREF(__pyx_tuple__98);
  __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(1, 6, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_annotate, 1506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 1506, __pyx_L1_error)

  /* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */
  __pyx_tuple__99 = PyTuple_Pack(6, __pyx_n_s_element_or_tree, __pyx_n_s_pytype, __pyx_n_s_xsi_2, __pyx_n_s_xsi_nil, __pyx_n_s_cleanup_namespaces, __pyx_n_s_attribute_names); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__99);
  __Pyx_GIVEREF(__pyx_tuple__99);
  __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(1, 4, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_deannotate, 1702, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 1702, __pyx_L1_error)

  /* "lxml/objectify.pyx":1742
 * objectify_parser = __DEFAULT_PARSER
 * 
 * def set_default_parser(new_parser = None):             # <<<<<<<<<<<<<<
 *     u"""set_default_parser(new_parser = None)
 * 
 */
  __pyx_tuple__100 = PyTuple_Pack(1, __pyx_n_s_new_parser); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(0, 1742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__100);
  __Pyx_GIVEREF(__pyx_tuple__100);
  __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_set_default_parser, 1742, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 1742, __pyx_L1_error)
  __pyx_tuple__101 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 1742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__101);
  __Pyx_GIVEREF(__pyx_tuple__101);

  /* "lxml/objectify.pyx":1760
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
 * 
 * def makeparser(**kw):             # <<<<<<<<<<<<<<
 *     u"""makeparser(remove_blank_text=True, **kw)
 * 
 */
  __pyx_tuple__102 = PyTuple_Pack(2, __pyx_n_s_kw, __pyx_n_s_parser); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 1760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__102);
  __Pyx_GIVEREF(__pyx_tuple__102);
  __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_makeparser, 1760, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 1760, __pyx_L1_error)

  /* "lxml/objectify.pyx":1787
 * SubElement = etree.SubElement
 * 
 * def fromstring(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""fromstring(xml, parser=None, base_url=None)
 * 
 */
  __pyx_tuple__103 = PyTuple_Pack(3, __pyx_n_s_xml, __pyx_n_s_parser, __pyx_n_s_base_url); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__103);
  __Pyx_GIVEREF(__pyx_tuple__103);
  __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(2, 1, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_fromstring, 1787, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __pyx_tuple__104 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__104);
  __Pyx_GIVEREF(__pyx_tuple__104);

  /* "lxml/objectify.pyx":1803
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 * def XML(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""XML(xml, parser=None, base_url=None)
 * 
 */
  __pyx_tuple__105 = PyTuple_Pack(3, __pyx_n_s_xml, __pyx_n_s_parser, __pyx_n_s_base_url); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 1803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__105);
  __Pyx_GIVEREF(__pyx_tuple__105);
  __pyx_codeobj__54 = (PyObject*)__Pyx_PyCode_New(2, 1, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_XML, 1803, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__54)) __PYX_ERR(0, 1803, __pyx_L1_error)
  __pyx_tuple__106 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(0, 1803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__106);
  __Pyx_GIVEREF(__pyx_tuple__106);

  /* "lxml/objectify.pyx":1822
 * _parse = etree.parse
 * 
 * def parse(f, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""parse(f, parser=None, base_url=None)
 * 
 */
  __pyx_tuple__107 = PyTuple_Pack(3, __pyx_n_s_f, __pyx_n_s_parser, __pyx_n_s_base_url); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__107);
  __Pyx_GIVEREF(__pyx_tuple__107);
  __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(2, 1, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_parse, 1822, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __pyx_tuple__108 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__108);
  __Pyx_GIVEREF(__pyx_tuple__108);

  /* "lxml/objectify.pyx":1845
 * E = ElementMaker()
 * 
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):             # <<<<<<<<<<<<<<
 *     u"""Element(_tag, attrib=None, nsmap=None, _pytype=None, **_attributes)
 * 
 */
  __pyx_tuple__109 = PyTuple_Pack(5, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_pytype_2, __pyx_n_s_attributes); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__109);
  __Pyx_GIVEREF(__pyx_tuple__109);
  __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(3, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_Element, 1845, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __pyx_tuple__110 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__110);
  __Pyx_GIVEREF(__pyx_tuple__110);

  /* "lxml/objectify.pyx":1865
 *     return _makeElement(_tag, None, _attributes, nsmap)
 * 
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,             # <<<<<<<<<<<<<<
 *                 **_attributes):
 *     u"""DataElement(_value, attrib=None, nsmap=None, _pytype=None, _xsi=None, **_attributes)
 */
  __pyx_tuple__111 = PyTuple_Pack(13, __pyx_n_s_value_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_pytype_2, __pyx_n_s_xsi_3, __pyx_n_s_attributes, __pyx_n_s_temp, __pyx_n_s_prefix, __pyx_n_s_name, __pyx_n_s_ns, __pyx_n_s_py_type, __pyx_n_s_strval, __pyx_n_s_stringify); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__111);
  __Pyx_GIVEREF(__pyx_tuple__111);
  __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(3, 2, 13, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectify_pyx, __pyx_n_s_DataElement, 1865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __pyx_tuple__112 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__112);
  __Pyx_GIVEREF(__pyx_tuple__112);

  /* "src/lxml/objectpath.pxi":57
 *         return _find_object_path(root, self._c_path, self._path_len, default)
 * 
 *     def hasattr(self, _Element root not None):             # <<<<<<<<<<<<<<
 *         u"hasattr(self, root)"
 *         try:
 */
  __pyx_tuple__113 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_root); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(1, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__113);
  __Pyx_GIVEREF(__pyx_tuple__113);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectpath_pxi, __pyx_n_s_hasattr, 57, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(1, 57, __pyx_L1_error)

  /* "src/lxml/objectpath.pxi":65
 *         return True
 * 
 *     def setattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""setattr(self, root, value)
 * 
 */
  __pyx_tuple__114 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_root, __pyx_n_s_value); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__114);
  __Pyx_GIVEREF(__pyx_tuple__114);
  __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectpath_pxi, __pyx_n_s_setattr, 65, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) __PYX_ERR(1, 65, __pyx_L1_error)

  /* "src/lxml/objectpath.pxi":74
 *         _create_object_path(root, self._c_path, self._path_len, 1, value)
 * 
 *     def addattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, root, value)
 * 
 */
  __pyx_tuple__115 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_root, __pyx_n_s_value); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(1, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__115);
  __Pyx_GIVEREF(__pyx_tuple__115);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_objectpath_pxi, __pyx_n_s_addattr, 74, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(1, 74, __pyx_L1_error)

  /* "src/lxml/objectpath.pxi":88
 *     re.U).match
 * 
 * cdef tuple _RELATIVE_PATH_SEGMENT = (None, None, 0)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_tuple__116 = PyTuple_Pack(3, Py_None, Py_None, __pyx_int_0); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(1, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_InitGlobals(void) {
  __pyx_umethod_PyBytes_Type_split.type = (PyObject*)&PyBytes_Type;
  __pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_umethod_PyList_Type_remove.type = (PyObject*)&PyList_Type;
  __pyx_umethod_PyUnicode_Type_strip.type = (PyObject*)&PyUnicode_Type;
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_modinit_global_init_code(void); /*proto*/
static int __Pyx_modinit_variable_export_code(void); /*proto*/
static int __Pyx_modinit_function_export_code(void); /*proto*/
static int __Pyx_modinit_type_init_code(void); /*proto*/
static int __Pyx_modinit_type_import_code(void); /*proto*/
static int __Pyx_modinit_variable_import_code(void); /*proto*/
static 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_4lxml_9objectify_etree = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_re = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_is_special_method = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_NS = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__PYTYPE_DICT = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__TYPE_CHECKS = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_TREE_PYTYPE = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__strip_attributes = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__cleanup_namespaces = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify___DEFAULT_PARSER = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify_objectify_parser = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__fromstring = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__parse = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__DEFAULT_NSMAP = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__NO_DEFAULT = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = Py_None; Py_INCREF(Py_None);
  __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = ((PyObject*)Py_None); Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

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
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase = __Pyx_ImportType("lxml.etree", "ElementBase", sizeof(struct LxmlElementBase), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectifiedElement.tp_base = __pyx_ptype_4lxml_8includes_11etreepublic_ElementBase;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) __PYX_ERR(0, 132, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectifiedElement.tp_print = 0;
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement___iter__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement___iter__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement___iter__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement___iter__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__len__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_6__len__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_6__len__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement_6__len__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_6__len__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__getattr__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_12__getattr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_12__getattr__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement_12__getattr__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_12__getattr__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__setattr__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_14__setattr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_14__setattr__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement_14__setattr__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_14__setattr__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_20__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_20__getitem__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement_20__getitem__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_20__getitem__;
    }
  }
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement, "__setitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 132, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_22__setitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_22__setitem__.doc = __pyx_doc_4lxml_9objectify_18ObjectifiedElement_22__setitem__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_18ObjectifiedElement_22__setitem__;
    }
  }
  #endif
  if (PyObject_SetAttrString(__pyx_m, "ObjectifiedElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) __PYX_ERR(0, 132, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_ObjectifiedElement = &__pyx_type_4lxml_9objectify_ObjectifiedElement;
  __pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_dictoffset && __pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "ObjectifiedDataElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement = &__pyx_type_4lxml_9objectify_ObjectifiedDataElement;
  __pyx_type_4lxml_9objectify_NumberElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NumberElement) < 0) __PYX_ERR(0, 612, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_NumberElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_NumberElement.tp_dictoffset && __pyx_type_4lxml_9objectify_NumberElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_NumberElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "NumberElement", (PyObject *)&__pyx_type_4lxml_9objectify_NumberElement) < 0) __PYX_ERR(0, 612, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_NumberElement = &__pyx_type_4lxml_9objectify_NumberElement;
  __pyx_type_4lxml_9objectify_IntElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_IntElement) < 0) __PYX_ERR(0, 709, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_IntElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_IntElement.tp_dictoffset && __pyx_type_4lxml_9objectify_IntElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_IntElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "IntElement", (PyObject *)&__pyx_type_4lxml_9objectify_IntElement) < 0) __PYX_ERR(0, 709, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_IntElement = &__pyx_type_4lxml_9objectify_IntElement;
  __pyx_type_4lxml_9objectify_LongElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_LongElement) < 0) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_LongElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_LongElement.tp_dictoffset && __pyx_type_4lxml_9objectify_LongElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_LongElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "LongElement", (PyObject *)&__pyx_type_4lxml_9objectify_LongElement) < 0) __PYX_ERR(0, 713, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_LongElement = &__pyx_type_4lxml_9objectify_LongElement;
  __pyx_type_4lxml_9objectify_FloatElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_FloatElement) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_FloatElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_FloatElement.tp_dictoffset && __pyx_type_4lxml_9objectify_FloatElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_FloatElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "FloatElement", (PyObject *)&__pyx_type_4lxml_9objectify_FloatElement) < 0) __PYX_ERR(0, 717, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_FloatElement = &__pyx_type_4lxml_9objectify_FloatElement;
  __pyx_type_4lxml_9objectify_StringElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_StringElement) < 0) __PYX_ERR(0, 721, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_StringElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_StringElement.tp_dictoffset && __pyx_type_4lxml_9objectify_StringElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_StringElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "StringElement", (PyObject *)&__pyx_type_4lxml_9objectify_StringElement) < 0) __PYX_ERR(0, 721, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_StringElement = &__pyx_type_4lxml_9objectify_StringElement;
  __pyx_type_4lxml_9objectify_NoneElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NoneElement) < 0) __PYX_ERR(0, 783, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_NoneElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_NoneElement.tp_dictoffset && __pyx_type_4lxml_9objectify_NoneElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_NoneElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "NoneElement", (PyObject *)&__pyx_type_4lxml_9objectify_NoneElement) < 0) __PYX_ERR(0, 783, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_NoneElement = &__pyx_type_4lxml_9objectify_NoneElement;
  __pyx_type_4lxml_9objectify_BoolElement.tp_base = __pyx_ptype_4lxml_9objectify_IntElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_BoolElement) < 0) __PYX_ERR(0, 808, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_BoolElement.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_BoolElement.tp_dictoffset && __pyx_type_4lxml_9objectify_BoolElement.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_BoolElement.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "BoolElement", (PyObject *)&__pyx_type_4lxml_9objectify_BoolElement) < 0) __PYX_ERR(0, 808, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_BoolElement = &__pyx_type_4lxml_9objectify_BoolElement;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_PyType) < 0) __PYX_ERR(0, 894, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_PyType.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_PyType.tp_dictoffset && __pyx_type_4lxml_9objectify_PyType.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_PyType.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttrString(__pyx_m, "PyType", (PyObject *)&__pyx_type_4lxml_9objectify_PyType) < 0) __PYX_ERR(0, 894, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_PyType = &__pyx_type_4lxml_9objectify_PyType;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller) < 0) __PYX_ERR(0, 1124, __pyx_L1_error)
  __pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller.tp_dictoffset && __pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller, "__call__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1124, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__.doc = __pyx_doc_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__;
    }
  }
  #endif
  __pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller = &__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller;
  __pyx_vtabptr_4lxml_9objectify_ElementMaker = &__pyx_vtable_4lxml_9objectify_ElementMaker;
  __pyx_vtable_4lxml_9objectify_ElementMaker._build_element_maker = (PyObject *(*)(struct __pyx_obj_4lxml_9objectify_ElementMaker *, PyObject *, int))__pyx_f_4lxml_9objectify_12ElementMaker__build_element_maker;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ElementMaker) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ElementMaker.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_4lxml_9objectify_ElementMaker.tp_dict, __pyx_vtabptr_4lxml_9objectify_ElementMaker) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ElementMaker", (PyObject *)&__pyx_type_4lxml_9objectify_ElementMaker) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_ElementMaker = &__pyx_type_4lxml_9objectify_ElementMaker;
  __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup = __Pyx_ImportType("lxml.etree", "ElementClassLookup", sizeof(struct LxmlElementClassLookup), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_base = __pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) __PYX_ERR(0, 1370, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_dictoffset && __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup, "__init__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1370, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_27ObjectifyElementClassLookup___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_27ObjectifyElementClassLookup___init__.doc = __pyx_doc_4lxml_9objectify_27ObjectifyElementClassLookup___init__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_27ObjectifyElementClassLookup___init__;
    }
  }
  #endif
  if (PyObject_SetAttrString(__pyx_m, "ObjectifyElementClassLookup", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) __PYX_ERR(0, 1370, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup = &__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup;
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectPath) < 0) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_type_4lxml_9objectify_ObjectPath.tp_print = 0;
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_9objectify_ObjectPath.tp_dictoffset && __pyx_type_4lxml_9objectify_ObjectPath.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_4lxml_9objectify_ObjectPath.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  #if CYTHON_COMPILING_IN_CPYTHON
  {
    PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_9objectify_ObjectPath, "__call__"); if (unlikely(!wrapper)) __PYX_ERR(1, 13, __pyx_L1_error)
    if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
      __pyx_wrapperbase_4lxml_9objectify_10ObjectPath_6__call__ = *((PyWrapperDescrObject *)wrapper)->d_base;
      __pyx_wrapperbase_4lxml_9objectify_10ObjectPath_6__call__.doc = __pyx_doc_4lxml_9objectify_10ObjectPath_6__call__;
      ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_4lxml_9objectify_10ObjectPath_6__call__;
    }
  }
  #endif
  if (PyObject_SetAttrString(__pyx_m, "ObjectPath", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectPath) < 0) __PYX_ERR(1, 13, __pyx_L1_error)
  __pyx_ptype_4lxml_9objectify_ObjectPath = &__pyx_type_4lxml_9objectify_ObjectPath;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_ptype_4lxml_8includes_11etreepublic__Document = __Pyx_ImportType("lxml.etree", "_Document", sizeof(struct LxmlDocument), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic__Document)) __PYX_ERR(2, 30, __pyx_L1_error)
  __pyx_ptype_4lxml_8includes_11etreepublic__Element = __Pyx_ImportType("lxml.etree", "_Element", sizeof(struct LxmlElement), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic__Element)) __PYX_ERR(2, 33, __pyx_L1_error)
  __pyx_ptype_4lxml_8includes_11etreepublic__ElementTree = __Pyx_ImportType("lxml.etree", "_ElementTree", sizeof(struct LxmlElementTree), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic__ElementTree)) __PYX_ERR(2, 40, __pyx_L1_error)
  __pyx_ptype_4lxml_8includes_11etreepublic_FallbackElementClassLookup = __Pyx_ImportType("lxml.etree", "FallbackElementClassLookup", sizeof(struct LxmlFallbackElementClassLookup), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic_FallbackElementClassLookup)) __PYX_ERR(2, 47, __pyx_L1_error)
  __pyx_ptype_4lxml_8includes_11etreepublic__ElementTagMatcher = __Pyx_ImportType("lxml.etree", "_ElementTagMatcher", sizeof(struct LxmlElementTagMatcher), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic__ElementTagMatcher)) __PYX_ERR(2, 159, __pyx_L1_error)
  __pyx_ptype_4lxml_8includes_11etreepublic__ElementIterator = __Pyx_ImportType("lxml.etree", "_ElementIterator", sizeof(struct LxmlElementIterator), 0); if (unlikely(!__pyx_ptype_4lxml_8includes_11etreepublic__ElementIterator)) __PYX_ERR(2, 168, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}


#if PY_MAJOR_VERSION < 3
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC void
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#else
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)))
    #define CYTHON_SMALL_CODE __attribute__((optimize("Os")))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initobjectify(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initobjectify(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_objectify(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_objectify(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        result = PyDict_SetItemString(moddict, to_name, value);
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    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;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__") < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__") < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__") < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__") < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static int __pyx_pymod_exec_objectify(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  __Pyx_TraceDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m && __pyx_m == __pyx_pyinit_module) return 0;
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #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_objectify(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __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(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #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("objectify", __pyx_methods, __pyx_k_The_lxml_objectify_module_imple, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #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)
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- 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_lxml__objectify) {
    if (PyObject_SetAttrString(__pyx_m, "__name__", __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, "lxml.objectify")) {
      if (unlikely(PyDict_SetItemString(modules, "lxml.objectify", __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();
  (void)__Pyx_modinit_variable_export_code();
  (void)__Pyx_modinit_function_export_code();
  if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
  if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error;
  (void)__Pyx_modinit_variable_import_code();
  (void)__Pyx_modinit_function_import_code();
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __Pyx_TraceCall("__Pyx_PyMODINIT_FUNC PyInit_objectify(void)", __pyx_f[0], 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));

  /* "lxml/objectify.pyx":23
 * from libc.string cimport const_char
 * 
 * __all__ = [u'BoolElement', u'DataElement', u'E', u'Element', u'ElementMaker',             # <<<<<<<<<<<<<<
 *            u'FloatElement', u'IntElement', u'LongElement', u'NoneElement',
 *            u'NumberElement', u'ObjectPath', u'ObjectifiedDataElement',
 */
  __Pyx_TraceLine(23,0,__PYX_ERR(0, 23, __pyx_L1_error))
  __pyx_t_1 = PyList_New(32); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_u_BoolElement);
  __Pyx_GIVEREF(__pyx_n_u_BoolElement);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_u_BoolElement);
  __Pyx_INCREF(__pyx_n_u_DataElement);
  __Pyx_GIVEREF(__pyx_n_u_DataElement);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_u_DataElement);
  __Pyx_INCREF(__pyx_n_u_E);
  __Pyx_GIVEREF(__pyx_n_u_E);
  PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_u_E);
  __Pyx_INCREF(__pyx_n_u_Element);
  __Pyx_GIVEREF(__pyx_n_u_Element);
  PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_u_Element);
  __Pyx_INCREF(__pyx_n_u_ElementMaker);
  __Pyx_GIVEREF(__pyx_n_u_ElementMaker);
  PyList_SET_ITEM(__pyx_t_1, 4, __pyx_n_u_ElementMaker);
  __Pyx_INCREF(__pyx_n_u_FloatElement);
  __Pyx_GIVEREF(__pyx_n_u_FloatElement);
  PyList_SET_ITEM(__pyx_t_1, 5, __pyx_n_u_FloatElement);
  __Pyx_INCREF(__pyx_n_u_IntElement);
  __Pyx_GIVEREF(__pyx_n_u_IntElement);
  PyList_SET_ITEM(__pyx_t_1, 6, __pyx_n_u_IntElement);
  __Pyx_INCREF(__pyx_n_u_LongElement);
  __Pyx_GIVEREF(__pyx_n_u_LongElement);
  PyList_SET_ITEM(__pyx_t_1, 7, __pyx_n_u_LongElement);
  __Pyx_INCREF(__pyx_n_u_NoneElement);
  __Pyx_GIVEREF(__pyx_n_u_NoneElement);
  PyList_SET_ITEM(__pyx_t_1, 8, __pyx_n_u_NoneElement);
  __Pyx_INCREF(__pyx_n_u_NumberElement);
  __Pyx_GIVEREF(__pyx_n_u_NumberElement);
  PyList_SET_ITEM(__pyx_t_1, 9, __pyx_n_u_NumberElement);
  __Pyx_INCREF(__pyx_n_u_ObjectPath);
  __Pyx_GIVEREF(__pyx_n_u_ObjectPath);
  PyList_SET_ITEM(__pyx_t_1, 10, __pyx_n_u_ObjectPath);
  __Pyx_INCREF(__pyx_n_u_ObjectifiedDataElement);
  __Pyx_GIVEREF(__pyx_n_u_ObjectifiedDataElement);
  PyList_SET_ITEM(__pyx_t_1, 11, __pyx_n_u_ObjectifiedDataElement);
  __Pyx_INCREF(__pyx_n_u_ObjectifiedElement);
  __Pyx_GIVEREF(__pyx_n_u_ObjectifiedElement);
  PyList_SET_ITEM(__pyx_t_1, 12, __pyx_n_u_ObjectifiedElement);
  __Pyx_INCREF(__pyx_n_u_ObjectifyElementClassLookup);
  __Pyx_GIVEREF(__pyx_n_u_ObjectifyElementClassLookup);
  PyList_SET_ITEM(__pyx_t_1, 13, __pyx_n_u_ObjectifyElementClassLookup);
  __Pyx_INCREF(__pyx_n_u_PYTYPE_ATTRIBUTE);
  __Pyx_GIVEREF(__pyx_n_u_PYTYPE_ATTRIBUTE);
  PyList_SET_ITEM(__pyx_t_1, 14, __pyx_n_u_PYTYPE_ATTRIBUTE);
  __Pyx_INCREF(__pyx_n_u_PyType);
  __Pyx_GIVEREF(__pyx_n_u_PyType);
  PyList_SET_ITEM(__pyx_t_1, 15, __pyx_n_u_PyType);
  __Pyx_INCREF(__pyx_n_u_StringElement);
  __Pyx_GIVEREF(__pyx_n_u_StringElement);
  PyList_SET_ITEM(__pyx_t_1, 16, __pyx_n_u_StringElement);
  __Pyx_INCREF(__pyx_n_u_SubElement);
  __Pyx_GIVEREF(__pyx_n_u_SubElement);
  PyList_SET_ITEM(__pyx_t_1, 17, __pyx_n_u_SubElement);
  __Pyx_INCREF(__pyx_n_u_XML);
  __Pyx_GIVEREF(__pyx_n_u_XML);
  PyList_SET_ITEM(__pyx_t_1, 18, __pyx_n_u_XML);
  __Pyx_INCREF(__pyx_n_u_annotate);
  __Pyx_GIVEREF(__pyx_n_u_annotate);
  PyList_SET_ITEM(__pyx_t_1, 19, __pyx_n_u_annotate);
  __Pyx_INCREF(__pyx_n_u_deannotate);
  __Pyx_GIVEREF(__pyx_n_u_deannotate);
  PyList_SET_ITEM(__pyx_t_1, 20, __pyx_n_u_deannotate);
  __Pyx_INCREF(__pyx_n_u_dump);
  __Pyx_GIVEREF(__pyx_n_u_dump);
  PyList_SET_ITEM(__pyx_t_1, 21, __pyx_n_u_dump);
  __Pyx_INCREF(__pyx_n_u_enable_recursive_str);
  __Pyx_GIVEREF(__pyx_n_u_enable_recursive_str);
  PyList_SET_ITEM(__pyx_t_1, 22, __pyx_n_u_enable_recursive_str);
  __Pyx_INCREF(__pyx_n_u_fromstring);
  __Pyx_GIVEREF(__pyx_n_u_fromstring);
  PyList_SET_ITEM(__pyx_t_1, 23, __pyx_n_u_fromstring);
  __Pyx_INCREF(__pyx_n_u_getRegisteredTypes);
  __Pyx_GIVEREF(__pyx_n_u_getRegisteredTypes);
  PyList_SET_ITEM(__pyx_t_1, 24, __pyx_n_u_getRegisteredTypes);
  __Pyx_INCREF(__pyx_n_u_makeparser);
  __Pyx_GIVEREF(__pyx_n_u_makeparser);
  PyList_SET_ITEM(__pyx_t_1, 25, __pyx_n_u_makeparser);
  __Pyx_INCREF(__pyx_n_u_parse);
  __Pyx_GIVEREF(__pyx_n_u_parse);
  PyList_SET_ITEM(__pyx_t_1, 26, __pyx_n_u_parse);
  __Pyx_INCREF(__pyx_n_u_pyannotate);
  __Pyx_GIVEREF(__pyx_n_u_pyannotate);
  PyList_SET_ITEM(__pyx_t_1, 27, __pyx_n_u_pyannotate);
  __Pyx_INCREF(__pyx_n_u_pytypename);
  __Pyx_GIVEREF(__pyx_n_u_pytypename);
  PyList_SET_ITEM(__pyx_t_1, 28, __pyx_n_u_pytypename);
  __Pyx_INCREF(__pyx_n_u_set_default_parser);
  __Pyx_GIVEREF(__pyx_n_u_set_default_parser);
  PyList_SET_ITEM(__pyx_t_1, 29, __pyx_n_u_set_default_parser);
  __Pyx_INCREF(__pyx_n_u_set_pytype_attribute_tag);
  __Pyx_GIVEREF(__pyx_n_u_set_pytype_attribute_tag);
  PyList_SET_ITEM(__pyx_t_1, 30, __pyx_n_u_set_pytype_attribute_tag);
  __Pyx_INCREF(__pyx_n_u_xsiannotate);
  __Pyx_GIVEREF(__pyx_n_u_xsiannotate);
  PyList_SET_ITEM(__pyx_t_1, 31, __pyx_n_u_xsiannotate);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_1) < 0) __PYX_ERR(0, 23, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":34
 * 
 * cdef object etree
 * from lxml import etree             # <<<<<<<<<<<<<<
 * # initialize C-API of lxml.etree
 * import_lxml__etree()
 */
  __Pyx_TraceLine(34,0,__PYX_ERR(0, 34, __pyx_L1_error))
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_etree);
  __Pyx_GIVEREF(__pyx_n_s_etree);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_etree);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_lxml, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __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_etree); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_etree);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_etree, __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;

  /* "lxml/objectify.pyx":36
 * from lxml import etree
 * # initialize C-API of lxml.etree
 * import_lxml__etree()             # <<<<<<<<<<<<<<
 * 
 * __version__ = etree.__version__
 */
  __Pyx_TraceLine(36,0,__PYX_ERR(0, 36, __pyx_L1_error))
  __pyx_t_3 = import_lxml__etree(); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 36, __pyx_L1_error)

  /* "lxml/objectify.pyx":38
 * import_lxml__etree()
 * 
 * __version__ = etree.__version__             # <<<<<<<<<<<<<<
 * 
 * cdef object re
 */
  __Pyx_TraceLine(38,0,__PYX_ERR(0, 38, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_version); 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_version, __pyx_t_2) < 0) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":41
 * 
 * cdef object re
 * import re             # <<<<<<<<<<<<<<
 * 
 * cdef tuple IGNORABLE_ERRORS = (ValueError, TypeError)
 */
  __Pyx_TraceLine(41,0,__PYX_ERR(0, 41, __pyx_L1_error))
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_re, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_re);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_re, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":43
 * import re
 * 
 * cdef tuple IGNORABLE_ERRORS = (ValueError, TypeError)             # <<<<<<<<<<<<<<
 * cdef object is_special_method = re.compile(u'__.*__$').match
 * 
 */
  __Pyx_TraceLine(43,0,__PYX_ERR(0, 43, __pyx_L1_error))
  __Pyx_INCREF(__pyx_tuple__65);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS, __pyx_tuple__65);
  __Pyx_GIVEREF(__pyx_tuple__65);

  /* "lxml/objectify.pyx":44
 * 
 * cdef tuple IGNORABLE_ERRORS = (ValueError, TypeError)
 * cdef object is_special_method = re.compile(u'__.*__$').match             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(44,0,__PYX_ERR(0, 44, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __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_match); 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_XGOTREF(__pyx_v_4lxml_9objectify_is_special_method);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_is_special_method, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":74
 * cdef const_xmlChar* _PYTYPE_ATTRIBUTE_NAME
 * 
 * PYTYPE_ATTRIBUTE = None             # <<<<<<<<<<<<<<
 * 
 * cdef unicode TREE_PYTYPE_NAME = u"TREE"
 */
  __Pyx_TraceLine(74,0,__PYX_ERR(0, 74, __pyx_L1_error))
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PYTYPE_ATTRIBUTE, Py_None) < 0) __PYX_ERR(0, 74, __pyx_L1_error)

  /* "lxml/objectify.pyx":76
 * PYTYPE_ATTRIBUTE = None
 * 
 * cdef unicode TREE_PYTYPE_NAME = u"TREE"             # <<<<<<<<<<<<<<
 * 
 * cdef tuple _unicodeAndUtf8(s):
 */
  __Pyx_TraceLine(76,0,__PYX_ERR(0, 76, __pyx_L1_error))
  __Pyx_INCREF(__pyx_n_u_TREE);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, __pyx_n_u_TREE);
  __Pyx_GIVEREF(__pyx_n_u_TREE);

  /* "lxml/objectify.pyx":81
 *     return (s, python.PyUnicode_AsUTF8String(s))
 * 
 * def set_pytype_attribute_tag(attribute_tag=None):             # <<<<<<<<<<<<<<
 *     u"""set_pytype_attribute_tag(attribute_tag=None)
 *     Change name and namespace of the XML attribute that holds Python type
 */
  __Pyx_TraceLine(81,0,__PYX_ERR(0, 81, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_1set_pytype_attribute_tag, 0, __pyx_n_s_set_pytype_attribute_tag, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__2)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__69);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_pytype_attribute_tag, __pyx_t_2) < 0) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":111
 *         _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
 * 
 * set_pytype_attribute_tag()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(111,0,__PYX_ERR(0, 111, __pyx_L1_error))
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_pytype_attribute_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __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;

  /* "lxml/objectify.pyx":117
 * cdef object XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8
 * XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8 = \
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")             # <<<<<<<<<<<<<<
 * cdef const_xmlChar* _XML_SCHEMA_NS = _xcstr(XML_SCHEMA_NS_UTF8)
 * 
 */
  __Pyx_TraceLine(117,0,__PYX_ERR(0, 117, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(__pyx_kp_u_http_www_w3_org_2001_XMLSchema); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(__pyx_t_1 != Py_None)) {
    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, 116, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_4);
    #else
    __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 116, __pyx_L1_error)
  }

  /* "lxml/objectify.pyx":116
 * # namespaces for XML Schema
 * cdef object XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8
 * XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8 = \             # <<<<<<<<<<<<<<
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")
 * cdef const_xmlChar* _XML_SCHEMA_NS = _xcstr(XML_SCHEMA_NS_UTF8)
 */
  __Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error))
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":118
 * XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8 = \
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")
 * cdef const_xmlChar* _XML_SCHEMA_NS = _xcstr(XML_SCHEMA_NS_UTF8)             # <<<<<<<<<<<<<<
 * 
 * cdef object XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8
 */
  __Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_4lxml_9objectify__XML_SCHEMA_NS = (const xmlChar*)PyBytes_AS_STRING(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":122
 * cdef object XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8
 * XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8 = \
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")             # <<<<<<<<<<<<<<
 * cdef const_xmlChar* _XML_SCHEMA_INSTANCE_NS = _xcstr(XML_SCHEMA_INSTANCE_NS_UTF8)
 * 
 */
  __Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error))
  __pyx_t_1 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(__pyx_kp_u_http_www_w3_org_2001_XMLSchema_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(__pyx_t_1 != Py_None)) {
    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, 121, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1); 
    __Pyx_INCREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_2);
    #else
    __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 121, __pyx_L1_error)
  }

  /* "lxml/objectify.pyx":121
 * 
 * cdef object XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8
 * XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8 = \             # <<<<<<<<<<<<<<
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")
 * cdef const_xmlChar* _XML_SCHEMA_INSTANCE_NS = _xcstr(XML_SCHEMA_INSTANCE_NS_UTF8)
 */
  __Pyx_TraceLine(121,0,__PYX_ERR(0, 121, __pyx_L1_error))
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":123
 * XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8 = \
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")
 * cdef const_xmlChar* _XML_SCHEMA_INSTANCE_NS = _xcstr(XML_SCHEMA_INSTANCE_NS_UTF8)             # <<<<<<<<<<<<<<
 * 
 * cdef object XML_SCHEMA_INSTANCE_NIL_ATTR = u"{%s}nil" % XML_SCHEMA_INSTANCE_NS
 */
  __Pyx_TraceLine(123,0,__PYX_ERR(0, 123, __pyx_L1_error))
  __pyx_t_1 = __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS = (const xmlChar*)PyBytes_AS_STRING(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":125
 * cdef const_xmlChar* _XML_SCHEMA_INSTANCE_NS = _xcstr(XML_SCHEMA_INSTANCE_NS_UTF8)
 * 
 * cdef object XML_SCHEMA_INSTANCE_NIL_ATTR = u"{%s}nil" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
 * cdef object XML_SCHEMA_INSTANCE_TYPE_ATTR = u"{%s}type" % XML_SCHEMA_INSTANCE_NS
 * 
 */
  __Pyx_TraceLine(125,0,__PYX_ERR(0, 125, __pyx_L1_error))
  __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s_nil, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":126
 * 
 * cdef object XML_SCHEMA_INSTANCE_NIL_ATTR = u"{%s}nil" % XML_SCHEMA_INSTANCE_NS
 * cdef object XML_SCHEMA_INSTANCE_TYPE_ATTR = u"{%s}type" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error))
  __pyx_t_1 = PyUnicode_Format(__pyx_kp_u_s_type, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":161
 * 
 *     # pickle support for objectified Element
 *     def __reduce__(self):             # <<<<<<<<<<<<<<
 *         return (fromstring, (etree.tostring(self),))
 * 
 */
  __Pyx_TraceLine(161,0,__PYX_ERR(0, 161, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_18ObjectifiedElement_5__reduce__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedElement___reduce, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement->tp_dict, __pyx_n_s_reduce, __pyx_t_1) < 0) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedElement);

  /* "lxml/objectify.pyx":192
 *         return _countSiblings(self._c_node)
 * 
 *     def countchildren(self):             # <<<<<<<<<<<<<<
 *         u"""countchildren(self)
 * 
 */
  __Pyx_TraceLine(192,0,__PYX_ERR(0, 192, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_18ObjectifiedElement_9countchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedElement_countchildren, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement->tp_dict, __pyx_n_s_countchildren, __pyx_t_1) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedElement);

  /* "lxml/objectify.pyx":209
 *         return c
 * 
 *     def getchildren(self):             # <<<<<<<<<<<<<<
 *         u"""getchildren(self)
 * 
 */
  __Pyx_TraceLine(209,0,__PYX_ERR(0, 209, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_18ObjectifiedElement_11getchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedElement_getchildren, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement->tp_dict, __pyx_n_s_getchildren, __pyx_t_1) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedElement);

  /* "lxml/objectify.pyx":262
 *         self.remove(child)
 * 
 *     def addattr(self, tag, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, tag, value)
 * 
 */
  __Pyx_TraceLine(262,0,__PYX_ERR(0, 262, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_18ObjectifiedElement_19addattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedElement_addattr, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement->tp_dict, __pyx_n_s_addattr, __pyx_t_1) < 0) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedElement);

  /* "lxml/objectify.pyx":369
 *             parent.remove(sibling)
 * 
 *     def descendantpaths(self, prefix=None):             # <<<<<<<<<<<<<<
 *         u"""descendantpaths(self, prefix=None)
 * 
 */
  __Pyx_TraceLine(369,0,__PYX_ERR(0, 369, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_18ObjectifiedElement_27descendantpaths, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedElement_descendantpat, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__8)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement->tp_dict, __pyx_n_s_descendantpaths, __pyx_t_1) < 0) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedElement);

  /* "lxml/objectify.pyx":606
 *         return strrepr(textOf(self._c_node) or '')
 * 
 *     def _setText(self, s):             # <<<<<<<<<<<<<<
 *         u"""For use in subclasses only. Don't use unless you know what you are
 *         doing.
 */
  __Pyx_TraceLine(606,0,__PYX_ERR(0, 606, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_22ObjectifiedDataElement_5_setText, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectifiedDataElement__setText, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__11)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement->tp_dict, __pyx_n_s_setText, __pyx_t_1) < 0) __PYX_ERR(0, 606, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement);

  /* "lxml/objectify.pyx":614
 * cdef class NumberElement(ObjectifiedDataElement):
 *     cdef object _parse_value
 *     def _setValueParser(self, function):             # <<<<<<<<<<<<<<
 *         u"""Set the function that parses the Python value from a string.
 * 
 */
  __Pyx_TraceLine(614,0,__PYX_ERR(0, 614, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_13NumberElement_1_setValueParser, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NumberElement__setValueParser, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__12)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_NumberElement->tp_dict, __pyx_n_s_setValueParser, __pyx_t_1) < 0) __PYX_ERR(0, 614, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_NumberElement);

  /* "lxml/objectify.pyx":634
 *         return float(_parseNumber(self))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(_parseNumber(self))
 * 
 */
  __Pyx_TraceLine(634,0,__PYX_ERR(0, 634, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_13NumberElement_9__complex__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NumberElement___complex, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__13)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_NumberElement->tp_dict, __pyx_n_s_complex, __pyx_t_1) < 0) __PYX_ERR(0, 634, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_NumberElement);

  /* "lxml/objectify.pyx":710
 * 
 * cdef class IntElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = int
 * 
 */
  __Pyx_TraceLine(710,0,__PYX_ERR(0, 710, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_10IntElement_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IntElement__init, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__14)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_IntElement->tp_dict, __pyx_n_s_init, __pyx_t_1) < 0) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_IntElement);

  /* "lxml/objectify.pyx":714
 * 
 * cdef class LongElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = long
 * 
 */
  __Pyx_TraceLine(714,0,__PYX_ERR(0, 714, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_11LongElement_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_LongElement__init, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__15)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_LongElement->tp_dict, __pyx_n_s_init, __pyx_t_1) < 0) __PYX_ERR(0, 714, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_LongElement);

  /* "lxml/objectify.pyx":718
 * 
 * cdef class FloatElement(NumberElement):
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = float
 * 
 */
  __Pyx_TraceLine(718,0,__PYX_ERR(0, 718, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_12FloatElement_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FloatElement__init, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__16)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_FloatElement->tp_dict, __pyx_n_s_init, __pyx_t_1) < 0) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_FloatElement);

  /* "lxml/objectify.pyx":735
 *         return repr(textOf(self._c_node) or u'')
 * 
 *     def strlen(self):             # <<<<<<<<<<<<<<
 *         text = textOf(self._c_node)
 *         if text is None:
 */
  __Pyx_TraceLine(735,0,__PYX_ERR(0, 735, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_13StringElement_3strlen, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_StringElement_strlen, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__17)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement->tp_dict, __pyx_n_s_strlen, __pyx_t_1) < 0) __PYX_ERR(0, 735, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_StringElement);

  /* "lxml/objectify.pyx":780
 *         return float(textOf(self._c_node))
 * 
 *     def __complex__(self):             # <<<<<<<<<<<<<<
 *         return complex(textOf(self._c_node))
 * 
 */
  __Pyx_TraceLine(780,0,__PYX_ERR(0, 780, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_13StringElement_23__complex__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_StringElement___complex, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__18)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_StringElement->tp_dict, __pyx_n_s_complex, __pyx_t_1) < 0) __PYX_ERR(0, 780, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_StringElement);

  /* "lxml/objectify.pyx":814
 *     Python's bool type.
 *     """
 *     def _init(self):             # <<<<<<<<<<<<<<
 *         self._parse_value = __parseBool
 * 
 */
  __Pyx_TraceLine(814,0,__PYX_ERR(0, 814, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_11BoolElement_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BoolElement__init, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__19)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_BoolElement->tp_dict, __pyx_n_s_init, __pyx_t_1) < 0) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_BoolElement);

  /* "lxml/objectify.pyx":836
 *             return __parseBool(textOf(self._c_node))
 * 
 * def __checkBool(s):             # <<<<<<<<<<<<<<
 *     cdef int value = -1
 *     if s is not None:
 */
  __Pyx_TraceLine(836,0,__PYX_ERR(0, 836, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_3__checkBool, 0, __pyx_n_s_checkBool, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__20)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_checkBool, __pyx_t_1) < 0) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":843
 *         raise ValueError
 * 
 * cpdef bint __parseBool(s) except -1:             # <<<<<<<<<<<<<<
 *     cdef int value
 *     if s is None:
 */
  __Pyx_TraceLine(843,0,__PYX_ERR(0, 843, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_5__parseBool, 0, __pyx_n_s_parseBool, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__21)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_parseBool, __pyx_t_1) < 0) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":941
 *         return "PyType(%s, %s)" % (self.name, self._type.__name__)
 * 
 *     def register(self, before=None, after=None):             # <<<<<<<<<<<<<<
 *         u"""register(self, before=None, after=None)
 * 
 */
  __Pyx_TraceLine(941,0,__PYX_ERR(0, 941, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_6PyType_5register, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyType_register, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__23)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_PyType->tp_dict, __pyx_n_s_register, __pyx_t_1) < 0) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_PyType);

  /* "lxml/objectify.pyx":982
 *             _SCHEMA_TYPE_DICT[xs_type] = self
 * 
 *     def unregister(self):             # <<<<<<<<<<<<<<
 *         u"unregister(self)"
 *         if _PYTYPE_DICT.get(self.name) is self:
 */
  __Pyx_TraceLine(982,0,__PYX_ERR(0, 982, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_6PyType_7unregister, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyType_unregister, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__24)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_PyType->tp_dict, __pyx_n_s_unregister, __pyx_t_1) < 0) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_PyType);

  /* "lxml/objectify.pyx":1007
 * 
 * 
 * cdef dict _PYTYPE_DICT = {}             # <<<<<<<<<<<<<<
 * cdef dict _SCHEMA_TYPE_DICT = {}
 * cdef list _TYPE_CHECKS = []
 */
  __Pyx_TraceLine(1007,0,__PYX_ERR(0, 1007, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__PYTYPE_DICT);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__PYTYPE_DICT, ((PyObject*)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1008
 * 
 * cdef dict _PYTYPE_DICT = {}
 * cdef dict _SCHEMA_TYPE_DICT = {}             # <<<<<<<<<<<<<<
 * cdef list _TYPE_CHECKS = []
 * 
 */
  __Pyx_TraceLine(1008,0,__PYX_ERR(0, 1008, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, ((PyObject*)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1009
 * cdef dict _PYTYPE_DICT = {}
 * cdef dict _SCHEMA_TYPE_DICT = {}
 * cdef list _TYPE_CHECKS = []             # <<<<<<<<<<<<<<
 * 
 * def __lower_bool(b):
 */
  __Pyx_TraceLine(1009,0,__PYX_ERR(0, 1009, __pyx_L1_error))
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__TYPE_CHECKS);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__TYPE_CHECKS, ((PyObject*)__pyx_t_1));
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1011
 * cdef list _TYPE_CHECKS = []
 * 
 * def __lower_bool(b):             # <<<<<<<<<<<<<<
 *     return u"true" if b else u"false"
 * 
 */
  __Pyx_TraceLine(1011,0,__PYX_ERR(0, 1011, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_7__lower_bool, 0, __pyx_n_s_lower_bool, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__25)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_lower_bool, __pyx_t_1) < 0) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1017
 *     return u"str" if python._isString(obj) else _typename(obj)
 * 
 * def pytypename(obj):             # <<<<<<<<<<<<<<
 *     u"""pytypename(obj)
 * 
 */
  __Pyx_TraceLine(1017,0,__PYX_ERR(0, 1017, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_9pytypename, 0, __pyx_n_s_pytypename, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__26)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pytypename, __pyx_t_1) < 0) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1059
 * 
 * # non-registered PyType for inner tree elements
 * cdef PyType TREE_PYTYPE = PyType(TREE_PYTYPE_NAME, None, ObjectifiedElement)             # <<<<<<<<<<<<<<
 * 
 * _registerPyTypes()
 */
  __Pyx_TraceLine(1059,0,__PYX_ERR(0, 1059, __pyx_L1_error))
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
  __Pyx_GIVEREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
  __Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));
  __Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_9objectify_PyType), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_9objectify_TREE_PYTYPE));
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_TREE_PYTYPE, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2));
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1061
 * cdef PyType TREE_PYTYPE = PyType(TREE_PYTYPE_NAME, None, ObjectifiedElement)
 * 
 * _registerPyTypes()             # <<<<<<<<<<<<<<
 * 
 * def getRegisteredTypes():
 */
  __Pyx_TraceLine(1061,0,__PYX_ERR(0, 1061, __pyx_L1_error))
  __pyx_t_2 = __pyx_f_4lxml_9objectify__registerPyTypes(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1063
 * _registerPyTypes()
 * 
 * def getRegisteredTypes():             # <<<<<<<<<<<<<<
 *     u"""getRegisteredTypes()
 * 
 */
  __Pyx_TraceLine(1063,0,__PYX_ERR(0, 1063, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_11getRegisteredTypes, 0, __pyx_n_s_getRegisteredTypes, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_getRegisteredTypes, __pyx_t_2) < 0) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1296
 * # Recursive element dumping
 * 
 * cdef bint __RECURSIVE_STR = 0 # default: off             # <<<<<<<<<<<<<<
 * 
 * def enable_recursive_str(on=True):
 */
  __Pyx_TraceLine(1296,0,__PYX_ERR(0, 1296, __pyx_L1_error))
  __pyx_v_4lxml_9objectify___RECURSIVE_STR = 0;

  /* "lxml/objectify.pyx":1298
 * cdef bint __RECURSIVE_STR = 0 # default: off
 * 
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
 *     u"""enable_recursive_str(on=True)
 * 
 */
  __Pyx_TraceLine(1298,0,__PYX_ERR(0, 1298, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_13enable_recursive_str, 0, __pyx_n_s_enable_recursive_str, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__92);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_enable_recursive_str, __pyx_t_2) < 0) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1307
 *     __RECURSIVE_STR = on
 * 
 * def dump(_Element element not None):             # <<<<<<<<<<<<<<
 *     u"""dump(_Element element not None)
 * 
 */
  __Pyx_TraceLine(1307,0,__PYX_ERR(0, 1307, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_15dump, 0, __pyx_n_s_dump, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__34)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_dump, __pyx_t_2) < 0) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1350
 * # Pickle support for objectified ElementTree
 * 
 * def __unpickleElementTree(data):             # <<<<<<<<<<<<<<
 *     return etree.ElementTree(fromstring(data))
 * 
 */
  __Pyx_TraceLine(1350,0,__PYX_ERR(0, 1350, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_17__unpickleElementTree, 0, __pyx_n_s_unpickleElementTree, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_unpickleElementTree, __pyx_t_2) < 0) __PYX_ERR(0, 1350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1361
 *                    elementTreeReduceFunction, __unpickleElementTree)
 * 
 * def pickleReduceElementTree(obj):             # <<<<<<<<<<<<<<
 *     return (__unpickleElementTree, (etree.tostring(obj),))
 * 
 */
  __Pyx_TraceLine(1361,0,__PYX_ERR(0, 1361, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_19pickleReduceElementTree, 0, __pyx_n_s_pickleReduceElementTree, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pickleReduceElementTree, __pyx_t_2) < 0) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1364
 *     return (__unpickleElementTree, (etree.tostring(obj),))
 * 
 * _setupPickle(pickleReduceElementTree)             # <<<<<<<<<<<<<<
 * del pickleReduceElementTree
 * 
 */
  __Pyx_TraceLine(1364,0,__PYX_ERR(0, 1364, __pyx_L1_error))
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_pickleReduceElementTree); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __pyx_f_4lxml_9objectify__setupPickle(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1364, __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;

  /* "lxml/objectify.pyx":1365
 * 
 * _setupPickle(pickleReduceElementTree)
 * del pickleReduceElementTree             # <<<<<<<<<<<<<<
 * 
 * ################################################################################
 */
  __Pyx_TraceLine(1365,0,__PYX_ERR(0, 1365, __pyx_L1_error))
  if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_pickleReduceElementTree) < 0) __PYX_ERR(0, 1365, __pyx_L1_error)

  /* "lxml/objectify.pyx":1455
 *     return None
 * 
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None):
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
 */
  __Pyx_TraceLine(1455,0,__PYX_ERR(0, 1455, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ignore_old, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 1455, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ignore_xsi, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 1455, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_empty_pytype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1455, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_21pyannotate, 0, __pyx_n_s_pyannotate, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__46)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyannotate, __pyx_t_2) < 0) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1478
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
 * 
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
 *                 empty_type=None):
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
 */
  __Pyx_TraceLine(1478,0,__PYX_ERR(0, 1478, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ignore_old, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 1478, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ignore_pytype, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 1478, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_empty_type, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1478, __pyx_L1_error)
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_23xsiannotate, 0, __pyx_n_s_xsiannotate, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_xsiannotate, __pyx_t_1) < 0) __PYX_ERR(0, 1478, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1506
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
 * 
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
 *              annotate_pytype=1):
 */
  __Pyx_TraceLine(1506,0,__PYX_ERR(0, 1506, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ignore_old, ((PyObject *)Py_True)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ignore_xsi, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_empty_pytype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_empty_type, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_annotate_xsi, ((PyObject *)__pyx_int_0)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_annotate_pytype, ((PyObject *)__pyx_int_1)) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_25annotate, 0, __pyx_n_s_annotate, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__48)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_annotate, __pyx_t_2) < 0) __PYX_ERR(0, 1506, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1699
 *     return 0
 * 
 * cdef object _strip_attributes = etree.strip_attributes             # <<<<<<<<<<<<<<
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 */
  __Pyx_TraceLine(1699,0,__PYX_ERR(0, 1699, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_strip_attributes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__strip_attributes);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__strip_attributes, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1700
 * 
 * cdef object _strip_attributes = etree.strip_attributes
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces             # <<<<<<<<<<<<<<
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,
 */
  __Pyx_TraceLine(1700,0,__PYX_ERR(0, 1700, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_cleanup_namespaces); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__cleanup_namespaces);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__cleanup_namespaces, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */
  __Pyx_TraceLine(1702,0,__PYX_ERR(0, 1702, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pytype, __pyx_t_1) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_xsi_2, __pyx_t_1) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1703
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,
 *                bint xsi_nil=False, bint cleanup_namespaces=False):             # <<<<<<<<<<<<<<
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 * 
 */
  __Pyx_TraceLine(1703,0,__PYX_ERR(0, 1703, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_xsi_nil, __pyx_t_1) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_cleanup_namespaces, __pyx_t_1) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1702
 * cdef object _cleanup_namespaces = etree.cleanup_namespaces
 * 
 * def deannotate(element_or_tree, *, bint pytype=True, bint xsi=True,             # <<<<<<<<<<<<<<
 *                bint xsi_nil=False, bint cleanup_namespaces=False):
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False, cleanup_namespaces=False)
 */
  __Pyx_TraceLine(1702,0,__PYX_ERR(0, 1702, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_27deannotate, 0, __pyx_n_s_deannotate, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__50)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_deannotate, __pyx_t_1) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1736
 * 
 * cdef object __DEFAULT_PARSER
 * __DEFAULT_PARSER = etree.XMLParser(remove_blank_text=True)             # <<<<<<<<<<<<<<
 * __DEFAULT_PARSER.set_element_class_lookup( ObjectifyElementClassLookup() )
 * 
 */
  __Pyx_TraceLine(1736,0,__PYX_ERR(0, 1736, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_XMLParser); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_remove_blank_text, Py_True) < 0) __PYX_ERR(0, 1736, __pyx_L1_error)
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify___DEFAULT_PARSER, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "lxml/objectify.pyx":1737
 * cdef object __DEFAULT_PARSER
 * __DEFAULT_PARSER = etree.XMLParser(remove_blank_text=True)
 * __DEFAULT_PARSER.set_element_class_lookup( ObjectifyElementClassLookup() )             # <<<<<<<<<<<<<<
 * 
 * cdef object objectify_parser
 */
  __Pyx_TraceLine(1737,0,__PYX_ERR(0, 1737, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify___DEFAULT_PARSER, __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1737, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1737, __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;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1740
 * 
 * cdef object objectify_parser
 * objectify_parser = __DEFAULT_PARSER             # <<<<<<<<<<<<<<
 * 
 * def set_default_parser(new_parser = None):
 */
  __Pyx_TraceLine(1740,0,__PYX_ERR(0, 1740, __pyx_L1_error))
  __Pyx_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify_objectify_parser, __pyx_v_4lxml_9objectify___DEFAULT_PARSER);
  __Pyx_GIVEREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);

  /* "lxml/objectify.pyx":1742
 * objectify_parser = __DEFAULT_PARSER
 * 
 * def set_default_parser(new_parser = None):             # <<<<<<<<<<<<<<
 *     u"""set_default_parser(new_parser = None)
 * 
 */
  __Pyx_TraceLine(1742,0,__PYX_ERR(0, 1742, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_29set_default_parser, 0, __pyx_n_s_set_default_parser, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__101);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_default_parser, __pyx_t_1) < 0) __PYX_ERR(0, 1742, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1760
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
 * 
 * def makeparser(**kw):             # <<<<<<<<<<<<<<
 *     u"""makeparser(remove_blank_text=True, **kw)
 * 
 */
  __Pyx_TraceLine(1760,0,__PYX_ERR(0, 1760, __pyx_L1_error))
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_31makeparser, 0, __pyx_n_s_makeparser, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_makeparser, __pyx_t_1) < 0) __PYX_ERR(0, 1760, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1783
 * 
 * cdef object _fromstring
 * _fromstring = etree.fromstring             # <<<<<<<<<<<<<<
 * 
 * SubElement = etree.SubElement
 */
  __Pyx_TraceLine(1783,0,__PYX_ERR(0, 1783, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_fromstring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__fromstring);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__fromstring, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1785
 * _fromstring = etree.fromstring
 * 
 * SubElement = etree.SubElement             # <<<<<<<<<<<<<<
 * 
 * def fromstring(xml, parser=None, *, base_url=None):
 */
  __Pyx_TraceLine(1785,0,__PYX_ERR(0, 1785, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_SubElement); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SubElement, __pyx_t_1) < 0) __PYX_ERR(0, 1785, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1787
 * SubElement = etree.SubElement
 * 
 * def fromstring(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""fromstring(xml, parser=None, base_url=None)
 * 
 */
  __Pyx_TraceLine(1787,0,__PYX_ERR(0, 1787, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1787, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_33fromstring, 0, __pyx_n_s_fromstring, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__104);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_fromstring, __pyx_t_2) < 0) __PYX_ERR(0, 1787, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1803
 *     return _fromstring(xml, parser, base_url=base_url)
 * 
 * def XML(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""XML(xml, parser=None, base_url=None)
 * 
 */
  __Pyx_TraceLine(1803,0,__PYX_ERR(0, 1803, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1803, __pyx_L1_error)
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_35XML, 0, __pyx_n_s_XML, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__54)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__106);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_XML, __pyx_t_1) < 0) __PYX_ERR(0, 1803, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1820
 * 
 * cdef object _parse
 * _parse = etree.parse             # <<<<<<<<<<<<<<
 * 
 * def parse(f, parser=None, *, base_url=None):
 */
  __Pyx_TraceLine(1820,0,__PYX_ERR(0, 1820, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_etree, __pyx_n_s_parse); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__parse);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__parse, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1822
 * _parse = etree.parse
 * 
 * def parse(f, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
 *     u"""parse(f, parser=None, base_url=None)
 * 
 */
  __Pyx_TraceLine(1822,0,__PYX_ERR(0, 1822, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1822, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_37parse, 0, __pyx_n_s_parse, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__108);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_parse, __pyx_t_2) < 0) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1838
 * 
 * cdef dict _DEFAULT_NSMAP = {
 *     "py"  : PYTYPE_NAMESPACE,             # <<<<<<<<<<<<<<
 *     "xsi" : XML_SCHEMA_INSTANCE_NS,
 *     "xsd" : XML_SCHEMA_NS
 */
  __Pyx_TraceLine(1838,0,__PYX_ERR(0, 1838, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_py_2, __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)

  /* "lxml/objectify.pyx":1839
 * cdef dict _DEFAULT_NSMAP = {
 *     "py"  : PYTYPE_NAMESPACE,
 *     "xsi" : XML_SCHEMA_INSTANCE_NS,             # <<<<<<<<<<<<<<
 *     "xsd" : XML_SCHEMA_NS
 * }
 */
  __Pyx_TraceLine(1839,0,__PYX_ERR(0, 1839, __pyx_L1_error))
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_xsi_2, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)

  /* "lxml/objectify.pyx":1840
 *     "py"  : PYTYPE_NAMESPACE,
 *     "xsi" : XML_SCHEMA_INSTANCE_NS,
 *     "xsd" : XML_SCHEMA_NS             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __Pyx_TraceLine(1840,0,__PYX_ERR(0, 1840, __pyx_L1_error))
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_xsd_2, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS) < 0) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP, ((PyObject*)__pyx_t_2));
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1843
 * }
 * 
 * E = ElementMaker()             # <<<<<<<<<<<<<<
 * 
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):
 */
  __Pyx_TraceLine(1843,0,__PYX_ERR(0, 1843, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_9objectify_ElementMaker)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_E, __pyx_t_2) < 0) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "lxml/objectify.pyx":1845
 * E = ElementMaker()
 * 
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):             # <<<<<<<<<<<<<<
 *     u"""Element(_tag, attrib=None, nsmap=None, _pytype=None, **_attributes)
 * 
 */
  __Pyx_TraceLine(1845,0,__PYX_ERR(0, 1845, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pytype_2, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1845, __pyx_L1_error)
  __pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_39Element, 0, __pyx_n_s_Element, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__56)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__110);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Element, __pyx_t_1) < 0) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "lxml/objectify.pyx":1865
 *     return _makeElement(_tag, None, _attributes, nsmap)
 * 
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,             # <<<<<<<<<<<<<<
 *                 **_attributes):
 *     u"""DataElement(_value, attrib=None, nsmap=None, _pytype=None, _xsi=None, **_attributes)
 */
  __Pyx_TraceLine(1865,0,__PYX_ERR(0, 1865, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_pytype_2, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1865, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_xsi_3, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 1865, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_41DataElement, 0, __pyx_n_s_DataElement, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__112);
  __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DataElement, __pyx_t_2) < 0) __PYX_ERR(0, 1865, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "src/lxml/objectpath.pxi":10
 * 
 * 
 * cdef object _NO_DEFAULT = object()             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(10,0,__PYX_ERR(1, 10, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_builtin_object); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__NO_DEFAULT);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__NO_DEFAULT, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "src/lxml/objectpath.pxi":57
 *         return _find_object_path(root, self._c_path, self._path_len, default)
 * 
 *     def hasattr(self, _Element root not None):             # <<<<<<<<<<<<<<
 *         u"hasattr(self, root)"
 *         try:
 */
  __Pyx_TraceLine(57,0,__PYX_ERR(1, 57, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_10ObjectPath_9hasattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectPath_hasattr, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__59)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectPath->tp_dict, __pyx_n_s_hasattr, __pyx_t_2) < 0) __PYX_ERR(1, 57, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectPath);

  /* "src/lxml/objectpath.pxi":65
 *         return True
 * 
 *     def setattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""setattr(self, root, value)
 * 
 */
  __Pyx_TraceLine(65,0,__PYX_ERR(1, 65, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_10ObjectPath_11setattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectPath_setattr, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__60)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectPath->tp_dict, __pyx_n_s_setattr, __pyx_t_2) < 0) __PYX_ERR(1, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectPath);

  /* "src/lxml/objectpath.pxi":74
 *         _create_object_path(root, self._c_path, self._path_len, 1, value)
 * 
 *     def addattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
 *         u"""addattr(self, root, value)
 * 
 */
  __Pyx_TraceLine(74,0,__PYX_ERR(1, 74, __pyx_L1_error))
  __pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_4lxml_9objectify_10ObjectPath_13addattr, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ObjectPath_addattr, NULL, __pyx_n_s_lxml_objectify, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_9objectify_ObjectPath->tp_dict, __pyx_n_s_addattr, __pyx_t_2) < 0) __PYX_ERR(1, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_4lxml_9objectify_ObjectPath);

  /* "src/lxml/objectpath.pxi":84
 * 
 * 
 * cdef object __MATCH_PATH_SEGMENT = re.compile(             # <<<<<<<<<<<<<<
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
 *     re.U).match
 */
  __Pyx_TraceLine(84,0,__PYX_ERR(1, 84, __pyx_L1_error))
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "src/lxml/objectpath.pxi":86
 * cdef object __MATCH_PATH_SEGMENT = re.compile(
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
 *     re.U).match             # <<<<<<<<<<<<<<
 * 
 * cdef tuple _RELATIVE_PATH_SEGMENT = (None, None, 0)
 */
  __Pyx_TraceLine(86,0,__PYX_ERR(1, 86, __pyx_L1_error))
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_9objectify_re, __pyx_n_s_U); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "src/lxml/objectpath.pxi":84
 * 
 * 
 * cdef object __MATCH_PATH_SEGMENT = re.compile(             # <<<<<<<<<<<<<<
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
 *     re.U).match
 */
  __Pyx_TraceLine(84,0,__PYX_ERR(1, 84, __pyx_L1_error))
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_kp_u_s_s_s_s_s_0_9_s);
  __Pyx_GIVEREF(__pyx_kp_u_s_s_s_s_s_0_9_s);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_s_s_s_s_s_0_9_s);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "src/lxml/objectpath.pxi":86
 * cdef object __MATCH_PATH_SEGMENT = re.compile(
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
 *     re.U).match             # <<<<<<<<<<<<<<
 * 
 * cdef tuple _RELATIVE_PATH_SEGMENT = (None, None, 0)
 */
  __Pyx_TraceLine(86,0,__PYX_ERR(1, 86, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_match); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;

  /* "src/lxml/objectpath.pxi":88
 *     re.U).match
 * 
 * cdef tuple _RELATIVE_PATH_SEGMENT = (None, None, 0)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_TraceLine(88,0,__PYX_ERR(1, 88, __pyx_L1_error))
  __Pyx_INCREF(__pyx_tuple__116);
  __Pyx_XGOTREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
  __Pyx_DECREF_SET(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT, __pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);

  /* "lxml/objectify.pyx":1
 * # cython: binding=True             # <<<<<<<<<<<<<<
 * # cython: auto_pickle=False
 * 
 */
  __Pyx_TraceLine(1,0,__PYX_ERR(0, 1, __pyx_L1_error))
  __pyx_t_4 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_TraceReturn(Py_None, 0);

  /*--- Wrapped vars code ---*/

  if (__Pyx_RegisterCleanup()) __PYX_ERR(0, 1, __pyx_L1_error);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init lxml.objectify", 0, __pyx_lineno, __pyx_filename);
    }
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init lxml.objectify");
  }
  __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
}

static void __Pyx_CleanupGlobals(void) {
  Py_CLEAR(__pyx_tuple_);
  Py_CLEAR(__pyx_codeobj__2);
  Py_CLEAR(__pyx_codeobj__4);
  Py_CLEAR(__pyx_codeobj__5);
  Py_CLEAR(__pyx_codeobj__6);
  Py_CLEAR(__pyx_codeobj__7);
  Py_CLEAR(__pyx_codeobj__8);
  Py_CLEAR(__pyx_slice__10);
  Py_CLEAR(__pyx_codeobj__11);
  Py_CLEAR(__pyx_codeobj__12);
  Py_CLEAR(__pyx_codeobj__13);
  Py_CLEAR(__pyx_codeobj__14);
  Py_CLEAR(__pyx_codeobj__15);
  Py_CLEAR(__pyx_codeobj__16);
  Py_CLEAR(__pyx_codeobj__17);
  Py_CLEAR(__pyx_codeobj__18);
  Py_CLEAR(__pyx_codeobj__19);
  Py_CLEAR(__pyx_codeobj__20);
  Py_CLEAR(__pyx_codeobj__21);
  Py_CLEAR(__pyx_codeobj__23);
  Py_CLEAR(__pyx_codeobj__24);
  Py_CLEAR(__pyx_codeobj__25);
  Py_CLEAR(__pyx_codeobj__26);
  Py_CLEAR(__pyx_tuple__27);
  Py_CLEAR(__pyx_tuple__28);
  Py_CLEAR(__pyx_tuple__29);
  Py_CLEAR(__pyx_tuple__30);
  Py_CLEAR(__pyx_codeobj__31);
  Py_CLEAR(__pyx_codeobj__33);
  Py_CLEAR(__pyx_codeobj__34);
  Py_CLEAR(__pyx_slice__41);
  Py_CLEAR(__pyx_codeobj__42);
  Py_CLEAR(__pyx_codeobj__43);
  Py_CLEAR(__pyx_tuple__45);
  Py_CLEAR(__pyx_codeobj__46);
  Py_CLEAR(__pyx_codeobj__47);
  Py_CLEAR(__pyx_codeobj__48);
  Py_CLEAR(__pyx_tuple__49);
  Py_CLEAR(__pyx_codeobj__50);
  Py_CLEAR(__pyx_codeobj__51);
  Py_CLEAR(__pyx_codeobj__52);
  Py_CLEAR(__pyx_codeobj__53);
  Py_CLEAR(__pyx_codeobj__54);
  Py_CLEAR(__pyx_codeobj__55);
  Py_CLEAR(__pyx_codeobj__56);
  Py_CLEAR(__pyx_codeobj__57);
  Py_CLEAR(__pyx_tuple__58);
  Py_CLEAR(__pyx_codeobj__59);
  Py_CLEAR(__pyx_codeobj__60);
  Py_CLEAR(__pyx_codeobj__61);
  Py_CLEAR(__pyx_tuple__65);
  Py_CLEAR(__pyx_tuple__67);
  Py_CLEAR(__pyx_tuple__68);
  Py_CLEAR(__pyx_tuple__69);
  Py_CLEAR(__pyx_tuple__70);
  Py_CLEAR(__pyx_tuple__71);
  Py_CLEAR(__pyx_tuple__72);
  Py_CLEAR(__pyx_tuple__73);
  Py_CLEAR(__pyx_tuple__74);
  Py_CLEAR(__pyx_tuple__75);
  Py_CLEAR(__pyx_tuple__76);
  Py_CLEAR(__pyx_tuple__77);
  Py_CLEAR(__pyx_tuple__78);
  Py_CLEAR(__pyx_tuple__79);
  Py_CLEAR(__pyx_tuple__80);
  Py_CLEAR(__pyx_tuple__81);
  Py_CLEAR(__pyx_tuple__82);
  Py_CLEAR(__pyx_tuple__83);
  Py_CLEAR(__pyx_tuple__84);
  Py_CLEAR(__pyx_tuple__85);
  Py_CLEAR(__pyx_tuple__86);
  Py_CLEAR(__pyx_tuple__87);
  Py_CLEAR(__pyx_tuple__88);
  Py_CLEAR(__pyx_tuple__89);
  Py_CLEAR(__pyx_tuple__90);
  Py_CLEAR(__pyx_tuple__91);
  Py_CLEAR(__pyx_tuple__92);
  Py_CLEAR(__pyx_tuple__93);
  Py_CLEAR(__pyx_tuple__94);
  Py_CLEAR(__pyx_tuple__95);
  Py_CLEAR(__pyx_tuple__96);
  Py_CLEAR(__pyx_tuple__97);
  Py_CLEAR(__pyx_tuple__98);
  Py_CLEAR(__pyx_tuple__99);
  Py_CLEAR(__pyx_tuple__100);
  Py_CLEAR(__pyx_tuple__101);
  Py_CLEAR(__pyx_tuple__102);
  Py_CLEAR(__pyx_tuple__103);
  Py_CLEAR(__pyx_tuple__104);
  Py_CLEAR(__pyx_tuple__105);
  Py_CLEAR(__pyx_tuple__106);
  Py_CLEAR(__pyx_tuple__107);
  Py_CLEAR(__pyx_tuple__108);
  Py_CLEAR(__pyx_tuple__109);
  Py_CLEAR(__pyx_tuple__110);
  Py_CLEAR(__pyx_tuple__111);
  Py_CLEAR(__pyx_tuple__112);
  Py_CLEAR(__pyx_tuple__113);
  Py_CLEAR(__pyx_tuple__114);
  Py_CLEAR(__pyx_tuple__115);
  Py_CLEAR(__pyx_tuple__116);
  /* CodeObjectCache.cleanup */
  if (__pyx_code_cache.entries) {
      __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
      int i, count = __pyx_code_cache.count;
      __pyx_code_cache.count = 0;
      __pyx_code_cache.max_count = 0;
      __pyx_code_cache.entries = NULL;
      for (i=0; i<count; i++) {
          Py_DECREF(entries[i].code_object);
      }
      PyMem_Free(entries);
  }

Py_CLEAR(__pyx_umethod_PyBytes_Type_split.method);
  Py_CLEAR(__pyx_umethod_PyDict_Type_get.method);
  Py_CLEAR(__pyx_umethod_PyDict_Type_items.method);
  Py_CLEAR(__pyx_umethod_PyDict_Type_values.method);
  Py_CLEAR(__pyx_umethod_PyList_Type_remove.method);
  Py_CLEAR(__pyx_umethod_PyUnicode_Type_strip.method);
}
static void __pyx_module_cleanup(CYTHON_UNUSED PyObject *self) {
  /*--- Global cleanup code ---*/
  Py_CLEAR(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
  Py_CLEAR(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
  Py_CLEAR(__pyx_v_4lxml_9objectify__NO_DEFAULT);
  Py_CLEAR(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
  Py_CLEAR(__pyx_v_4lxml_9objectify__parse);
  Py_CLEAR(__pyx_v_4lxml_9objectify__fromstring);
  Py_CLEAR(__pyx_v_4lxml_9objectify_objectify_parser);
  Py_CLEAR(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
  Py_CLEAR(__pyx_v_4lxml_9objectify__cleanup_namespaces);
  Py_CLEAR(__pyx_v_4lxml_9objectify__strip_attributes);
  Py_CLEAR(__pyx_v_4lxml_9objectify_TREE_PYTYPE);
  Py_CLEAR(__pyx_v_4lxml_9objectify__TYPE_CHECKS);
  Py_CLEAR(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT);
  Py_CLEAR(__pyx_v_4lxml_9objectify__PYTYPE_DICT);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
  Py_CLEAR(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
  Py_CLEAR(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
  Py_CLEAR(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
  Py_CLEAR(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
  Py_CLEAR(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
  Py_CLEAR(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
  Py_CLEAR(__pyx_v_4lxml_9objectify_is_special_method);
  Py_CLEAR(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
  Py_CLEAR(__pyx_v_4lxml_9objectify_re);
  Py_CLEAR(__pyx_v_4lxml_9objectify_etree);
  __Pyx_CleanupGlobals();
  /*--- Type import cleanup code ---*/
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic_ElementBase);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic_ElementClassLookup);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic_FallbackElementClassLookup);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic__Document);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic__Element);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic__ElementIterator);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic__ElementTagMatcher);
  Py_CLEAR(__pyx_ptype_4lxml_8includes_11etreepublic__ElementTree);
  /*--- Builtin cleanup code ---*/
  Py_CLEAR(__pyx_builtin_ValueError);
  Py_CLEAR(__pyx_builtin_TypeError);
  Py_CLEAR(__pyx_builtin_object);
  Py_CLEAR(__pyx_builtin_IndexError);
  Py_CLEAR(__pyx_builtin_AttributeError);
  Py_CLEAR(__pyx_builtin_oct);
  Py_CLEAR(__pyx_builtin_hex);
  Py_CLEAR(__pyx_builtin_enumerate);
  Py_CLEAR(__pyx_builtin_map);
  Py_CLEAR(__pyx_builtin_MemoryError);
  /*--- Intern cleanup code ---*/
  Py_CLEAR(__pyx_empty_tuple);
  #if CYTHON_COMPILING_IN_PYPY
  Py_CLEAR(__pyx_b);
  #endif
  Py_CLEAR(__pyx_d);
}

/* --- 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((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#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

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        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;
}

/* 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

/* Profile */
#if CYTHON_PROFILE
static int __Pyx_TraceSetupAndCall(PyCodeObject** code,
                                   PyFrameObject** frame,
                                   PyThreadState* tstate,
                                   const char *funcname,
                                   const char *srcfile,
                                   int firstlineno) {
    PyObject *type, *value, *traceback;
    int retval;
    if (*frame == NULL || !CYTHON_PROFILE_REUSE_FRAME) {
        if (*code == NULL) {
            *code = __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);
            if (*code == NULL) return 0;
        }
        *frame = PyFrame_New(
            tstate,                          /*PyThreadState *tstate*/
            *code,                           /*PyCodeObject *code*/
            __pyx_d,                  /*PyObject *globals*/
            0                                /*PyObject *locals*/
        );
        if (*frame == NULL) return 0;
        if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
            Py_INCREF(Py_None);
            (*frame)->f_trace = Py_None;
        }
#if PY_VERSION_HEX < 0x030400B1
    } else {
        (*frame)->f_tstate = tstate;
#endif
    }
      __Pyx_PyFrame_SetLineNumber(*frame, firstlineno);
    retval = 1;
    tstate->tracing++;
    tstate->use_tracing = 0;
    __Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
    #if CYTHON_TRACE
    if (tstate->c_tracefunc)
        retval = tstate->c_tracefunc(tstate->c_traceobj, *frame, PyTrace_CALL, NULL) == 0;
    if (retval && tstate->c_profilefunc)
    #endif
        retval = tstate->c_profilefunc(tstate->c_profileobj, *frame, PyTrace_CALL, NULL) == 0;
    tstate->use_tracing = (tstate->c_profilefunc ||
                           (CYTHON_TRACE && tstate->c_tracefunc));
    tstate->tracing--;
    if (retval) {
        __Pyx_ErrRestoreInState(tstate, type, value, traceback);
        return tstate->use_tracing && retval;
    } else {
        Py_XDECREF(type);
        Py_XDECREF(value);
        Py_XDECREF(traceback);
        return -1;
    }
}
static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno) {
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    PyCodeObject *py_code = 0;
    #if PY_MAJOR_VERSION < 3
    py_funcname = PyString_FromString(funcname);
    py_srcfile = PyString_FromString(srcfile);
    #else
    py_funcname = PyUnicode_FromString(funcname);
    py_srcfile = PyUnicode_FromString(srcfile);
    #endif
    if (!py_funcname | !py_srcfile) goto bad;
    py_code = PyCode_New(
        0,
        #if PY_MAJOR_VERSION >= 3
        0,
        #endif
        0,
        0,
        CO_OPTIMIZED | CO_NEWLOCALS,
        __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,*/
        firstlineno,
        __pyx_empty_bytes      /*PyObject *lnotab*/
    );
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return py_code;
}
#endif

/* 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

/* 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 **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;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        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_CheckExact(key)) || 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 = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(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
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(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:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%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);
}

/* 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);
}

/* 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");
}

/* RaiseNoneIterError */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* decode_c_bytes */
static CYTHON_INLINE PyObject* __Pyx_decode_c_bytes(
         const char* cstring, Py_ssize_t length, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    if (unlikely((start < 0) | (stop < 0))) {
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (stop > length)
        stop = length;
    length = stop - start;
    if (unlikely(length <= 0))
        return PyUnicode_FromUnicode(NULL, 0);
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs);
    }
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
#include "frameobject.h"
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 = f->f_localsplus;
    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;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int 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 (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, nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#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

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || __Pyx_TypeCheck(func, __pyx_CyFunctionType))) {
#else
    if (likely(PyCFunction_Check(func))) {
#endif
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* GetModuleGlobalName */
  static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
    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);
    if (likely(result)) {
        Py_INCREF(result);
    } else if (unlikely(PyErr_Occurred())) {
        result = NULL;
    } else {
#else
    result = PyDict_GetItem(__pyx_d, name);
    if (likely(result)) {
        Py_INCREF(result);
    } else {
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    if (!result) {
        PyErr_Clear();
#endif
        result = __Pyx_GetBuiltinName(name);
    }
    return result;
}

/* ExtTypeTest */
      static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(__Pyx_TypeCheck(obj, type)))
        return 1;
    PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
                 Py_TYPE(obj)->tp_name, type->tp_name);
    return 0;
}

/* BytesEquals */
      static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    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
    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_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
}

/* JoinPyUnicode */
      static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      CYTHON_UNUSED Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind;
    Py_ssize_t i, char_pos;
    void *result_udata;
#if CYTHON_PEP393_ENABLED
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    result_udata = PyUnicode_DATA(result_uval);
#else
    result_uval = PyUnicode_FromUnicode(NULL, result_ulength);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = sizeof(Py_UNICODE);
    result_udata = PyUnicode_AS_UNICODE(result_uval);
#endif
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = PyTuple_GET_ITEM(value_tuple, i);
        if (unlikely(__Pyx_PyUnicode_READY(uval)))
            goto bad;
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        if (unlikely(!ulength))
            continue;
        if (unlikely(char_pos + ulength < 0))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
            memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
        } else {
            #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    result_ulength++;
    value_count++;
    return PyUnicode_Join(__pyx_empty_unicode, value_tuple);
#endif
}

/* 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
        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

/* GetItemInt */
      static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!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((0 <= wrapped_i) & (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((0 <= wrapped_i) & (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((n >= 0) & (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((n >= 0) & (n < PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->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;
    PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
    if (unlikely(!(m && m->sq_item))) {
        PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
        return NULL;
    }
    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)) {
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
    PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
    if (likely(m && m->mp_subscript)) {
        return m->mp_subscript(obj, key);
    }
    return __Pyx_PyObject_GetIndex(obj, key);
}
#endif

/* WriteUnraisableException */
      static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* 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

/* SliceObject */
      static CYTHON_INLINE int __Pyx_PyObject_SetSlice(PyObject* obj, PyObject* value,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp;
#if PY_MAJOR_VERSION < 3
    PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
    if (likely(ms && ms->sq_ass_slice)) {
        if (!has_cstart) {
            if (_py_start && (*_py_start != Py_None)) {
                cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
                if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstart = 0;
        }
        if (!has_cstop) {
            if (_py_stop && (*_py_stop != Py_None)) {
                cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
                if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstop = PY_SSIZE_T_MAX;
        }
        if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
            Py_ssize_t l = ms->sq_length(obj);
            if (likely(l >= 0)) {
                if (cstop < 0) {
                    cstop += l;
                    if (cstop < 0) cstop = 0;
                }
                if (cstart < 0) {
                    cstart += l;
                    if (cstart < 0) cstart = 0;
                }
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    goto bad;
                PyErr_Clear();
            }
        }
        return ms->sq_ass_slice(obj, cstart, cstop, value);
    }
#endif
    mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_ass_subscript))
#endif
    {
        int result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyInt_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyInt_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_ass_subscript(obj, py_slice, value);
#else
        result = value ? PyObject_SetItem(obj, py_slice, value) : PyObject_DelItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    PyErr_Format(PyExc_TypeError,
        "'%.200s' object does not support slice %.10s",
        Py_TYPE(obj)->tp_name, value ? "assignment" : "deletion");
bad:
    return -1;
}

/* 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);
    }
#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)cfunc->func)(self, &arg, 1);
            } else {
                return (*(__Pyx_PyCFunctionFastWithKeywords)cfunc->func)(self, &arg, 1, NULL);
            }
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return (*(__Pyx_PyCFunctionFastWithKeywords)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)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)cfunc->func)(self, args, 2);
            #else
            return (*(__Pyx_PyCFunctionFastWithKeywords)cfunc->func)(self, args, 2, NULL);
            #endif
        }
        #if PY_VERSION_HEX >= 0x030700A0
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return (*(__Pyx_PyCFunctionFastWithKeywords)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)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
    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;
}

/* CIntToDigits */
      static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode */
      static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
#if CYTHON_PEP393_ENABLED
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
#else
    Py_UNICODE *udata;
    uval = PyUnicode_FromUnicode(NULL, ulength);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_AS_UNICODE(uval);
#endif
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        uval = NULL;
        PyObject *sign = NULL, *padding = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp;
                    PyObject *repeat = PyInt_FromSize_t(uoffset - prepend_sign);
                    if (unlikely(!repeat)) goto done_or_error;
                    tmp = PyNumber_Multiply(padding, repeat);
                    Py_DECREF(repeat);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyNumber_Add(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyNumber_Add(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* CIntToPyUnicode */
      #ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned short    uint16_t;
        #else
           typedef unsigned __int16  uint16_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_Py_ssize_t(Py_ssize_t value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(Py_ssize_t)*3+2];
    char *dpos, *end = digits + sizeof(Py_ssize_t)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    Py_ssize_t remaining;
    const Py_ssize_t neg_one = (Py_ssize_t) -1, const_zero = (Py_ssize_t) 0;
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (Py_ssize_t) (remaining / (8*8));
            dpos -= 2;
            *(uint16_t*)dpos = ((uint16_t*)DIGIT_PAIRS_8)[digit_pos];
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (Py_ssize_t) (remaining / (10*10));
            dpos -= 2;
            *(uint16_t*)dpos = ((uint16_t*)DIGIT_PAIRS_10)[digit_pos];
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (Py_ssize_t) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    if (last_one_off) {
        assert(*dpos == '0');
        dpos++;
    }
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* PyIntBinop */
      #if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) {
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
            x = (long)((unsigned long)a - b);
            if (likely((x^a) >= 0 || (x^~b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        if (likely(__Pyx_sst_abs(size) <= 1)) {
            a = likely(size) ? digits[0] : 0;
            if (size == -1) a = -a;
        } else {
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
            }
        }
                x = a - b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla - llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
            double result;
            PyFPE_START_PROTECT("subtract", return NULL)
            result = ((double)a) - (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
}
#endif

/* py_abs */
      #if CYTHON_USE_PYLONG_INTERNALS
static PyObject *__Pyx_PyLong_AbsNeg(PyObject *n) {
    if (likely(Py_SIZE(n) == -1)) {
        return PyLong_FromLong(((PyLongObject*)n)->ob_digit[0]);
    }
#if CYTHON_COMPILING_IN_CPYTHON
    {
        PyObject *copy = _PyLong_Copy((PyLongObject*)n);
        if (likely(copy)) {
            Py_SIZE(copy) = -(Py_SIZE(copy));
        }
        return copy;
    }
#else
    return PyNumber_Negative(n);
#endif
}
#endif

/* SaveResetException */
      #if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if PY_VERSION_HEX >= 0x030700A2
    *type = tstate->exc_state.exc_type;
    *value = tstate->exc_state.exc_value;
    *tb = tstate->exc_state.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 PY_VERSION_HEX >= 0x030700A2
    tmp_type = tstate->exc_state.exc_type;
    tmp_value = tstate->exc_state.exc_value;
    tmp_tb = tstate->exc_state.exc_traceback;
    tstate->exc_state.exc_type = type;
    tstate->exc_state.exc_value = value;
    tstate->exc_state.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

/* 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

/* 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);
}

/* 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 = __Pyx_GetAttr(o, n);
    return (likely(r)) ? r : __Pyx_GetAttr3Default(d);
}

/* 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
}

/* 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;
}

/* PyIntBinop */
      #if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) {
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long x;
        long a = PyInt_AS_LONG(op1);
            x = (long)((unsigned long)a + b);
            if (likely((x^a) >= 0 || (x^b) >= 0))
                return PyInt_FromLong(x);
            return PyLong_Type.tp_as_number->nb_add(op1, op2);
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a, x;
#ifdef HAVE_LONG_LONG
        const PY_LONG_LONG llb = intval;
        PY_LONG_LONG lla, llx;
#endif
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        if (likely(__Pyx_sst_abs(size) <= 1)) {
            a = likely(size) ? digits[0] : 0;
            if (size == -1) a = -a;
        } else {
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
#ifdef HAVE_LONG_LONG
                    } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                        lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                        goto long_long;
#endif
                    }
                    CYTHON_FALLTHROUGH;
                default: return PyLong_Type.tp_as_number->nb_add(op1, op2);
            }
        }
                x = a + b;
            return PyLong_FromLong(x);
#ifdef HAVE_LONG_LONG
        long_long:
                llx = lla + llb;
            return PyLong_FromLongLong(llx);
#endif
        
        
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
            double result;
            PyFPE_START_PROTECT("add", return NULL)
            result = ((double)a) + (double)b;
            PyFPE_END_PROTECT(result)
            return PyFloat_FromDouble(result);
    }
    return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
}
#endif

/* PyIntBinop */
      #if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) {
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a == b) {
            Py_RETURN_TRUE;
        } else {
            Py_RETURN_FALSE;
        }
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        const long b = intval;
        long a;
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        if (likely(__Pyx_sst_abs(size) <= 1)) {
            a = likely(size) ? digits[0] : 0;
            if (size == -1) a = -a;
        } else {
            switch (size) {
                case -2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                case 2:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                case -3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                case 3:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                case -4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                case 4:
                    if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                        a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                        break;
                    }
                    CYTHON_FALLTHROUGH;
                #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15
                default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ);
                #else
                default: Py_RETURN_FALSE;
                #endif
            }
        }
            if (a == b) {
                Py_RETURN_TRUE;
            } else {
                Py_RETURN_FALSE;
            }
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
            if ((double)a == (double)b) {
                Py_RETURN_TRUE;
            } else {
                Py_RETURN_FALSE;
            }
    }
    return PyObject_RichCompare(op1, op2, Py_EQ);
}
#endif

/* CallUnboundCMethod0 */
      static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_ASSUME_SAFE_MACROS
    args = PyTuple_New(1);
    if (unlikely(!args)) goto bad;
    Py_INCREF(self);
    PyTuple_SET_ITEM(args, 0, self);
#else
    args = PyTuple_Pack(1, self);
    if (unlikely(!args)) goto bad;
#endif
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    Py_DECREF(args);
bad:
    return result;
}

/* py_dict_items */
      static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    if (PY_MAJOR_VERSION >= 3)
        return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_items, d);
    else
        return PyDict_Items(d);
}

/* 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
}

/* PySetContains */
      static int __Pyx_PySet_ContainsUnhashable(PyObject *set, PyObject *key) {
    int result = -1;
    if (PySet_Check(key) && PyErr_ExceptionMatches(PyExc_TypeError)) {
        PyObject *tmpkey;
        PyErr_Clear();
        tmpkey = __Pyx_PyFrozenSet_New(key);
        if (tmpkey != NULL) {
            result = PySet_Contains(set, tmpkey);
            Py_DECREF(tmpkey);
        }
    }
    return result;
}
static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq) {
    int result = PySet_Contains(set, key);
    if (unlikely(result < 0)) {
        result = __Pyx_PySet_ContainsUnhashable(set, key);
    }
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* py_dict_values */
      static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    if (PY_MAJOR_VERSION >= 3)
        return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_values, d);
    else
        return PyDict_Values(d);
}

/* KeywordStringCheck */
      static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* ArgTypeTest */
      static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* PyUnicode_Unicode */
      static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Unicode(PyObject *obj) {
    if (unlikely(obj == Py_None))
        obj = __pyx_n_u_None;
    return __Pyx_NewRef(obj);
}

/* PyObjectFormatAndDecref */
      static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatSimpleAndDecref(PyObject* s, PyObject* f) {
    if (unlikely(!s)) return NULL;
    if (likely(PyUnicode_CheckExact(s))) return s;
    #if PY_MAJOR_VERSION < 3
    if (likely(PyString_CheckExact(s))) {
        PyObject *result = PyUnicode_FromEncodedObject(s, NULL, "strict");
        Py_DECREF(s);
        return result;
    }
    #endif
    return __Pyx_PyObject_FormatAndDecref(s, f);
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_FormatAndDecref(PyObject* s, PyObject* f) {
    PyObject *result = PyObject_Format(s, f);
    Py_DECREF(s);
    return result;
}

/* SliceObject */
      static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj,
        Py_ssize_t cstart, Py_ssize_t cstop,
        PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice,
        int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) {
#if CYTHON_USE_TYPE_SLOTS
    PyMappingMethods* mp;
#if PY_MAJOR_VERSION < 3
    PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence;
    if (likely(ms && ms->sq_slice)) {
        if (!has_cstart) {
            if (_py_start && (*_py_start != Py_None)) {
                cstart = __Pyx_PyIndex_AsSsize_t(*_py_start);
                if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstart = 0;
        }
        if (!has_cstop) {
            if (_py_stop && (*_py_stop != Py_None)) {
                cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop);
                if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad;
            } else
                cstop = PY_SSIZE_T_MAX;
        }
        if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) {
            Py_ssize_t l = ms->sq_length(obj);
            if (likely(l >= 0)) {
                if (cstop < 0) {
                    cstop += l;
                    if (cstop < 0) cstop = 0;
                }
                if (cstart < 0) {
                    cstart += l;
                    if (cstart < 0) cstart = 0;
                }
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    goto bad;
                PyErr_Clear();
            }
        }
        return ms->sq_slice(obj, cstart, cstop);
    }
#endif
    mp = Py_TYPE(obj)->tp_as_mapping;
    if (likely(mp && mp->mp_subscript))
#endif
    {
        PyObject* result;
        PyObject *py_slice, *py_start, *py_stop;
        if (_py_slice) {
            py_slice = *_py_slice;
        } else {
            PyObject* owned_start = NULL;
            PyObject* owned_stop = NULL;
            if (_py_start) {
                py_start = *_py_start;
            } else {
                if (has_cstart) {
                    owned_start = py_start = PyInt_FromSsize_t(cstart);
                    if (unlikely(!py_start)) goto bad;
                } else
                    py_start = Py_None;
            }
            if (_py_stop) {
                py_stop = *_py_stop;
            } else {
                if (has_cstop) {
                    owned_stop = py_stop = PyInt_FromSsize_t(cstop);
                    if (unlikely(!py_stop)) {
                        Py_XDECREF(owned_start);
                        goto bad;
                    }
                } else
                    py_stop = Py_None;
            }
            py_slice = PySlice_New(py_start, py_stop, Py_None);
            Py_XDECREF(owned_start);
            Py_XDECREF(owned_stop);
            if (unlikely(!py_slice)) goto bad;
        }
#if CYTHON_USE_TYPE_SLOTS
        result = mp->mp_subscript(obj, py_slice);
#else
        result = PyObject_GetItem(obj, py_slice);
#endif
        if (!_py_slice) {
            Py_DECREF(py_slice);
        }
        return result;
    }
    PyErr_Format(PyExc_TypeError,
        "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
bad:
    return NULL;
}

/* Import */
      static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.')) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!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 (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* 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 PY_VERSION_HEX >= 0x030700A2
    tmp_type = tstate->exc_state.exc_type;
    tmp_value = tstate->exc_state.exc_value;
    tmp_tb = tstate->exc_state.exc_traceback;
    tstate->exc_state.exc_type = local_type;
    tstate->exc_state.exc_value = local_value;
    tstate->exc_state.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;
}

/* DelItemInt */
        static int __Pyx_DelItem_Generic(PyObject *o, PyObject *j) {
    int r;
    if (!j) return -1;
    r = PyObject_DelItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i,
                                               CYTHON_UNUSED int is_list, CYTHON_NCP_UNUSED int wraparound) {
#if !CYTHON_USE_TYPE_SLOTS
    if (is_list || PySequence_Check(o)) {
        return PySequence_DelItem(o, i);
    }
#else
    PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
    if (likely(m && m->sq_ass_item)) {
        if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
            Py_ssize_t l = m->sq_length(o);
            if (likely(l >= 0)) {
                i += l;
            } else {
                if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                    return -1;
                PyErr_Clear();
            }
        }
        return m->sq_ass_item(o, i, (PyObject *)NULL);
    }
#endif
    return __Pyx_DelItem_Generic(o, PyInt_FromSsize_t(i));
}

/* CallNextTpDealloc */
        static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_dealloc != current_tp_dealloc)
        type = type->tp_base;
    while (type && type->tp_dealloc == current_tp_dealloc)
        type = type->tp_base;
    if (type)
        type->tp_dealloc(obj);
}

/* 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) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    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 */
        static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* 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 PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) {
    PyObject* fake_module;
    PyTypeObject* cached_type = NULL;
    fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI);
    if (!fake_module) return NULL;
    Py_INCREF(fake_module);
    cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name);
    if (cached_type) {
        if (!PyType_Check((PyObject*)cached_type)) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s is not a type object",
                type->tp_name);
            goto bad;
        }
        if (cached_type->tp_basicsize != type->tp_basicsize) {
            PyErr_Format(PyExc_TypeError,
                "Shared Cython type %.200s has the wrong size, try recompiling",
                type->tp_name);
            goto bad;
        }
    } else {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad;
        PyErr_Clear();
        if (PyType_Ready(type) < 0) goto bad;
        if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0)
            goto bad;
        Py_INCREF(type);
        cached_type = type;
    }
done:
    Py_DECREF(fake_module);
    return cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CythonFunction */
        #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)
{
    PyObject *tmp = op->func_doc;
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    op->func_doc = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op)
{
    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)
{
    PyObject *tmp;
#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;
    }
    tmp = op->func_name;
    Py_INCREF(value);
    op->func_name = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op)
{
    Py_INCREF(op->func_qualname);
    return op->func_qualname;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value)
{
    PyObject *tmp;
#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;
    }
    tmp = op->func_qualname;
    Py_INCREF(value);
    op->func_qualname = value;
    Py_XDECREF(tmp);
    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)
{
    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)
{
    PyObject *tmp;
    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;
    }
    tmp = op->func_dict;
    Py_INCREF(value);
    op->func_dict = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op)
{
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op)
{
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op)
{
    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) {
    PyObject* tmp;
    if (!value) {
        value = Py_None;
    } else if (value != Py_None && !PyTuple_Check(value)) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    Py_INCREF(value);
    tmp = op->defaults_tuple;
    op->defaults_tuple = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (__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) {
    PyObject* tmp;
    if (!value) {
        value = Py_None;
    } else if (value != Py_None && !PyDict_Check(value)) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    Py_INCREF(value);
    tmp = op->defaults_kwdict;
    op->defaults_kwdict = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (__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) {
    PyObject* tmp;
    if (!value || value == Py_None) {
        value = NULL;
    } else if (!PyDict_Check(value)) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    tmp = op->func_annotations;
    op->func_annotations = value;
    Py_XDECREF(tmp);
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) {
    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},
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args)
{
#if PY_MAJOR_VERSION >= 3
    return PyUnicode_FromString(m->func.m_ml->ml_name);
#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_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type);
    if (op == NULL)
        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 = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    PyObject_GC_Track(op);
    return (PyObject *) op;
}
static int
__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_descr_get(PyObject *func, PyObject *obj, PyObject *type)
{
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) {
        Py_INCREF(func);
        return func;
    }
    if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) {
        if (type == NULL)
            type = (PyObject *)(Py_TYPE(obj));
        return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type)));
    }
    if (obj == Py_None)
        obj = NULL;
    return __Pyx_PyMethod_New(func, obj, type);
}
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)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 in "
                        "__Pyx_CyFunction_Call. METH_OLDARGS is no "
                        "longer supported!");
        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 ((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;
}
static PyTypeObject __pyx_CyFunctionType_type = {
    PyVarObject_HEAD_INIT(0, 0)
    "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
    (destructor) __Pyx_CyFunction_dealloc,
    0,
    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,
    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_CyFunction_descr_get,
    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
};
static int __pyx_CyFunction_init(void) {
    __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type);
    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;
    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);
}

/* ModuleImport */
            #ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
    PyObject *py_name = 0;
    PyObject *py_module = 0;
    py_name = __Pyx_PyIdentifier_FromString(name);
    if (!py_name)
        goto bad;
    py_module = PyImport_Import(py_name);
    Py_DECREF(py_name);
    return py_module;
bad:
    Py_XDECREF(py_name);
    return 0;
}
#endif

/* RegisterModuleCleanup */
            #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
static PyObject* __pyx_module_cleanup_atexit(PyObject *module, CYTHON_UNUSED PyObject *unused) {
    __pyx_module_cleanup(module);
    Py_INCREF(Py_None); return Py_None;
}
static int __Pyx_RegisterCleanup(void) {
    static PyMethodDef cleanup_def = {
        "__cleanup", (PyCFunction)__pyx_module_cleanup_atexit, METH_NOARGS, 0};
    PyObject *cleanup_func = 0;
    PyObject *atexit = 0;
    PyObject *reg = 0;
    PyObject *args = 0;
    PyObject *res = 0;
    int ret = -1;
    cleanup_func = PyCFunction_New(&cleanup_def, 0);
    if (!cleanup_func)
        goto bad;
    atexit = __Pyx_ImportModule("atexit");
    if (!atexit)
        goto bad;
    reg = PyObject_GetAttrString(atexit, "_exithandlers");
    if (reg && PyList_Check(reg)) {
        PyObject *a, *kw;
        a = PyTuple_New(0);
        kw = PyDict_New();
        if (!a || !kw) {
            Py_XDECREF(a);
            Py_XDECREF(kw);
            goto bad;
        }
        args = PyTuple_Pack(3, cleanup_func, a, kw);
        Py_DECREF(a);
        Py_DECREF(kw);
        if (!args)
            goto bad;
        ret = PyList_Insert(reg, 0, args);
    } else {
        if (!reg)
            PyErr_Clear();
        Py_XDECREF(reg);
        reg = PyObject_GetAttrString(atexit, "register");
        if (!reg)
            goto bad;
        args = PyTuple_Pack(1, cleanup_func);
        if (!args)
            goto bad;
        res = PyObject_CallObject(reg, args);
        if (!res)
            goto bad;
        ret = 0;
    }
bad:
    Py_XDECREF(cleanup_func);
    Py_XDECREF(atexit);
    Py_XDECREF(reg);
    Py_XDECREF(args);
    Py_XDECREF(res);
    return ret;
}
#else
static int __Pyx_RegisterCleanup(void) {
    (void)__Pyx_ImportModule;
    return 0;
}
#endif

/* CLineInTraceback */
            #ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(CYTHON_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)) {
      use_cline = __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback);
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__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 (PyObject_Not(use_cline) != 0) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
            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);
}

/* AddTraceback */
            #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
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,
        __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);
}

/* 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;\
    }

/* CIntToPy */
            static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (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);
    }
}

/* CIntToPy */
            static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= 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(int),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
            static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (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 && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, 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;
}

/* CIntFromPy */
            static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (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 && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, 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;
}

/* 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);
}
#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) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *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

/* 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;
}

/* TypeImport */
            #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
    size_t size, int strict)
{
    PyObject *py_module = 0;
    PyObject *result = 0;
    PyObject *py_name = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    py_module = __Pyx_ImportModule(module_name);
    if (!py_module)
        goto bad;
    py_name = __Pyx_PyIdentifier_FromString(class_name);
    if (!py_name)
        goto bad;
    result = PyObject_GetAttr(py_module, py_name);
    Py_DECREF(py_name);
    py_name = 0;
    Py_DECREF(py_module);
    py_module = 0;
    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;
    }
#ifndef Py_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 (!strict && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    else if ((size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s has the wrong size, try recompiling. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(py_module);
    Py_XDECREF(result);
    return NULL;
}
#endif

/* InitStrings */
            static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        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);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

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) || (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 PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_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(x);
  }
#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 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);
}


#endif /* Py_PYTHON_H */