/* Generated by Pyrex 0.9.5.1a on Tue Feb 27 16:12:35 2007 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #include "structmember.h" #ifndef PY_LONG_LONG #define PY_LONG_LONG LONG_LONG #endif #if PY_VERSION_HEX < 0x02050000 typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #define PyInt_FromSsize_t(z) PyInt_FromLong(z) #define PyInt_AsSsize_t(o) PyInt_AsLong(o) #endif #ifdef __cplusplus #define __PYX_EXTERN_C extern "C" #else #define __PYX_EXTERN_C extern #endif __PYX_EXTERN_C double pow(double, double); #include "stdio.h" #include "string.h" #include "stdarg.h" #include "etree_defs.h" #include "lxml-version.h" #include "libxml/xmlversion.h" #include "libxml/encoding.h" #include "libxml/hash.h" #include "libxml/tree.h" #include "libxml/valid.h" #include "libxml/xmlIO.h" #include "libxml/xmlsave.h" #include "libxml/globals.h" #include "libxml/xmlstring.h" #include "libxml/xmlmemory.h" #include "pythread.h" #include "etree.h" typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/ typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/ typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/ static PyObject *__pyx_m; static PyObject *__pyx_b; static int __pyx_lineno; static char *__pyx_filename; static char **__pyx_f; static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/ static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], Py_ssize_t nargs, PyObject **args2, PyObject **kwds2); /*proto*/ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ static PyObject *__Pyx_GetExcValue(void); /*proto*/ static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ static PyObject *__Pyx_UnpackItem(PyObject *); /*proto*/ static int __Pyx_EndUnpack(PyObject *); /*proto*/ static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/ static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ static void __Pyx_AddTraceback(char *funcname); /*proto*/ /* Declarations from cstd */ /* Declarations from tree */ /* Declarations from python */ /* Declarations from etreepublic */ static PyTypeObject *__pyx_ptype_11etreepublic__Document = 0; static PyTypeObject *__pyx_ptype_11etreepublic__Element = 0; static PyTypeObject *__pyx_ptype_11etreepublic_ElementBase = 0; static PyTypeObject *__pyx_ptype_11etreepublic__ElementTree = 0; static PyTypeObject *__pyx_ptype_11etreepublic_ElementClassLookup = 0; static PyTypeObject *__pyx_ptype_11etreepublic_FallbackElementClassLookup = 0; static PyTypeObject *__pyx_ptype_11etreepublic__ElementTagMatcher = 0; static PyTypeObject *__pyx_ptype_11etreepublic__ElementIterator = 0; /* Declarations from objectify */ typedef struct { char (*href); char (*name); Py_ssize_t index; } __pyx_t_9objectify__ObjectPath; struct __pyx_obj_9objectify_ObjectifiedElement { struct LxmlElementBase __pyx_base; }; struct __pyx_obj_9objectify_ObjectifiedDataElement { struct __pyx_obj_9objectify_ObjectifiedElement __pyx_base; }; struct __pyx_obj_9objectify_NumberElement { struct __pyx_obj_9objectify_ObjectifiedDataElement __pyx_base; struct __pyx_vtabstruct_9objectify_NumberElement *__pyx_vtab; PyObject *_type; }; struct __pyx_vtabstruct_9objectify_NumberElement { PyObject *((*_value)(struct __pyx_obj_9objectify_NumberElement *)); }; static struct __pyx_vtabstruct_9objectify_NumberElement *__pyx_vtabptr_9objectify_NumberElement; struct __pyx_obj_9objectify_IntElement { struct __pyx_obj_9objectify_NumberElement __pyx_base; }; struct __pyx_vtabstruct_9objectify_IntElement { struct __pyx_vtabstruct_9objectify_NumberElement __pyx_base; }; static struct __pyx_vtabstruct_9objectify_IntElement *__pyx_vtabptr_9objectify_IntElement; struct __pyx_obj_9objectify_LongElement { struct __pyx_obj_9objectify_NumberElement __pyx_base; }; struct __pyx_vtabstruct_9objectify_LongElement { struct __pyx_vtabstruct_9objectify_NumberElement __pyx_base; }; static struct __pyx_vtabstruct_9objectify_LongElement *__pyx_vtabptr_9objectify_LongElement; struct __pyx_obj_9objectify_FloatElement { struct __pyx_obj_9objectify_NumberElement __pyx_base; }; struct __pyx_vtabstruct_9objectify_FloatElement { struct __pyx_vtabstruct_9objectify_NumberElement __pyx_base; }; static struct __pyx_vtabstruct_9objectify_FloatElement *__pyx_vtabptr_9objectify_FloatElement; struct __pyx_obj_9objectify_StringElement { struct __pyx_obj_9objectify_ObjectifiedDataElement __pyx_base; }; struct __pyx_obj_9objectify_NoneElement { struct __pyx_obj_9objectify_ObjectifiedDataElement __pyx_base; }; struct __pyx_obj_9objectify_BoolElement { struct __pyx_obj_9objectify_ObjectifiedDataElement __pyx_base; struct __pyx_vtabstruct_9objectify_BoolElement *__pyx_vtab; }; struct __pyx_vtabstruct_9objectify_BoolElement { int ((*_boolval)(struct __pyx_obj_9objectify_BoolElement *)); }; static struct __pyx_vtabstruct_9objectify_BoolElement *__pyx_vtabptr_9objectify_BoolElement; struct __pyx_obj_9objectify_PyType { PyObject_HEAD PyObject *name; PyObject *type_check; PyObject *_type; PyObject *_schema_types; }; struct __pyx_obj_9objectify_ObjectifyElementClassLookup { struct LxmlElementClassLookup __pyx_base; PyObject *empty_data_class; PyObject *tree_class; }; struct __pyx_obj_9objectify_ObjectPath { PyObject_HEAD PyObject *find; PyObject *_path; PyObject *_path_str; __pyx_t_9objectify__ObjectPath (*_c_path); Py_ssize_t _path_len; }; static PyTypeObject *__pyx_ptype_9objectify_ObjectifiedElement = 0; static PyTypeObject *__pyx_ptype_9objectify_ObjectifiedDataElement = 0; static PyTypeObject *__pyx_ptype_9objectify_NumberElement = 0; static PyTypeObject *__pyx_ptype_9objectify_IntElement = 0; static PyTypeObject *__pyx_ptype_9objectify_LongElement = 0; static PyTypeObject *__pyx_ptype_9objectify_FloatElement = 0; static PyTypeObject *__pyx_ptype_9objectify_StringElement = 0; static PyTypeObject *__pyx_ptype_9objectify_NoneElement = 0; static PyTypeObject *__pyx_ptype_9objectify_BoolElement = 0; static PyTypeObject *__pyx_ptype_9objectify_PyType = 0; static PyTypeObject *__pyx_ptype_9objectify_ObjectifyElementClassLookup = 0; static PyTypeObject *__pyx_ptype_9objectify_ObjectPath = 0; static PyObject *__pyx_v_9objectify_etree; static PyObject *__pyx_v_9objectify_SubElement; static PyObject *__pyx_v_9objectify_re; static PyObject *__pyx_v_9objectify___builtin__; static PyObject *__pyx_v_9objectify_int; static PyObject *__pyx_v_9objectify_long; static PyObject *__pyx_v_9objectify_float; static PyObject *__pyx_v_9objectify_bool; static PyObject *__pyx_v_9objectify_pow; static PyObject *__pyx_v_9objectify_abs; static PyObject *__pyx_v_9objectify_len; static PyObject *__pyx_v_9objectify_True; static PyObject *__pyx_v_9objectify_False; static PyObject *__pyx_v_9objectify_AttributeError; static PyObject *__pyx_v_9objectify_IndexError; static PyObject *__pyx_v_9objectify_list; static PyObject *__pyx_v_9objectify_set; static PyObject *__pyx_v_9objectify_islice; static PyObject *__pyx_v_9objectify_PYTYPE_NAMESPACE; static char (*__pyx_v_9objectify__PYTYPE_NAMESPACE); static PyObject *__pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME; static char (*__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME); static PyObject *__pyx_v_9objectify_TREE_PYTYPE; static PyObject *__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS; static char (*__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS); static PyObject *__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR; static PyObject *__pyx_v_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR; static PyObject *__pyx_v_9objectify__PYTYPE_DICT; static PyObject *__pyx_v_9objectify__SCHEMA_TYPE_DICT; static PyObject *__pyx_v_9objectify__TYPE_CHECKS; static int __pyx_v_9objectify___RECURSIVE_STR; static PyObject *__pyx_v_9objectify___MATCH_PATH_SEGMENT; static PyObject *__pyx_v_9objectify___DEFAULT_PARSER; static PyObject *__pyx_v_9objectify_parser; static PyObject *__pyx_v_9objectify__fromstring; static PyObject *__pyx_k12; static PyObject *__pyx_k16; static PyObject *__pyx_k17; static PyObject *__pyx_k18; static PyObject *__pyx_k19; static PyObject *__pyx_k20; static PyObject *__pyx_k21; static PyObject *__pyx_k22; static PyObject *__pyx_k24; static PyObject *__pyx_k26; static PyObject *__pyx_k27; static PyObject *__pyx_k28; static PyObject *__pyx_k29; static PyObject *__pyx_k30; static PyObject *__pyx_k31; static PyObject *__pyx_k32; static PyObject *__pyx_k33; static xmlNode (*(__pyx_f_9objectify__findFollowingSibling(xmlNode (*),char (*),char (*),Py_ssize_t ))); /*proto*/ static PyObject *(__pyx_f_9objectify__lookupChild(struct LxmlElement *,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__buildChildTag(struct LxmlElement *,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__replaceElement(struct LxmlElement *,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__appendValue(struct LxmlElement *,PyObject *,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__setElementValue(struct LxmlElement *,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__strValueOf(PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__numericValueOf(PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__registerPyTypes(void)); /*proto*/ static PyObject *(__pyx_f_9objectify__guessElementClass(xmlNode (*))); /*proto*/ static PyObject *(__pyx_f_9objectify__dump(struct LxmlElement *,int )); /*proto*/ static PyObject *(__pyx_f_9objectify__lookupElementClass(PyObject *,struct LxmlDocument *,xmlNode (*))); /*proto*/ static PyObject *(__pyx_f_9objectify__parseObjectPathString(PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__parseObjectPathList(PyObject *)); /*proto*/ static __pyx_t_9objectify__ObjectPath (*(__pyx_f_9objectify__buildObjectPathSegments(PyObject *))); /*proto*/ static PyObject *(__pyx_f_9objectify__findObjectPath(struct LxmlElement *,__pyx_t_9objectify__ObjectPath (*),Py_ssize_t ,PyObject *,int )); /*proto*/ static PyObject *(__pyx_f_9objectify__createObjectPath(struct LxmlElement *,__pyx_t_9objectify__ObjectPath (*),Py_ssize_t ,int ,PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__buildDescendantPaths(xmlNode (*),PyObject *)); /*proto*/ static PyObject *(__pyx_f_9objectify__recursiveBuildDescendantPaths(xmlNode (*),PyObject *,PyObject *)); /*proto*/ static struct LxmlElement *(__pyx_f_9objectify__makeElement(PyObject *,PyObject *,PyObject *,PyObject *)); /*proto*/ /* Implementation of objectify */ static char (__pyx_k1[]) = "A fake implementation for __dict__ to support dir() etc.\n\n Note that this only considers the first child with a given name.\n "; static char (__pyx_k2[]) = "The list of XML Schema datatypes this Python type maps to.\n\n Note that this must be set before registering the type!\n "; static char (__pyx_k13[]) = "http://www.w3.org/2001/XMLSchema-instance"; static char (__pyx_k14[]) = "{%s}nil"; static char (__pyx_k15[]) = "{%s}type"; static char (__pyx_k23[]) = "(\\.?)\\s*(?:\\{([^}]*)\\})?\\s*([^.{}\\[\\]\\s]+)\\s*(?:\\[\\s*([-0-9]+)\\s*\\])?"; static PyObject *__pyx_n_cetree; static PyObject *__pyx_n_python; static PyObject *__pyx_n_tree; static PyObject *__pyx_n_cstd; static PyObject *__pyx_n_PYTYPE_ATTRIBUTE; static PyObject *__pyx_n_setPytypeAttributeTag; static PyObject *__pyx_n___checkBool; static PyObject *__pyx_n_getRegisteredTypes; static PyObject *__pyx_n_enableRecursiveStr; static PyObject *__pyx_n_dump; static PyObject *__pyx_n_annotate; static PyObject *__pyx_n_setDefaultParser; static PyObject *__pyx_n_fromstring; static PyObject *__pyx_n_XML; static PyObject *__pyx_n_Element; static PyObject *__pyx_n_DataElement; static PyObject *__pyx_n_lxml; static PyObject *__pyx_n_etree; static PyObject *__pyx_n_SubElement; static PyObject *__pyx_n_re; static PyObject *__pyx_n___builtin__; static PyObject *__pyx_n_int; static PyObject *__pyx_n_long; static PyObject *__pyx_n_float; static PyObject *__pyx_n_bool; static PyObject *__pyx_n_pow; static PyObject *__pyx_n_abs; static PyObject *__pyx_n_len; static PyObject *__pyx_n_True; static PyObject *__pyx_n_False; static PyObject *__pyx_n_AttributeError; static PyObject *__pyx_n_IndexError; static PyObject *__pyx_n_list; static PyObject *__pyx_n_set; static PyObject *__pyx_n_sets; static PyObject *__pyx_n_Set; static PyObject *__pyx_n_itertools; static PyObject *__pyx_n_islice; static PyObject *__pyx_n_TREE; static PyObject *__pyx_n_compile; static PyObject *__pyx_n_U; static PyObject *__pyx_n_match; static PyObject *__pyx_n_XMLParser; static PyObject *__pyx_n_remove_blank_text; static PyObject *__pyx_n_setElementClassLookup; static PyObject *__pyx_k13p; static PyObject *__pyx_k14p; static PyObject *__pyx_k15p; static PyObject *__pyx_k23p; static PyObject *__pyx_n_pytype; static PyObject *__pyx_k34p; static char (__pyx_k34[]) = "http://codespeak.net/lxml/objectify/pytype"; static PyObject *__pyx_f_9objectify_setPytypeAttributeTag(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_setPytypeAttributeTag[] = "Changes name and namespace of the XML attribute that holds Python type\n information.\n\n Reset by calling without argument.\n\n Default: \"{http://codespeak.net/lxml/objectify/pytype}pytype\"\n "; static PyObject *__pyx_f_9objectify_setPytypeAttributeTag(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_attribute_tag = 0; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"attribute_tag",0}; __pyx_v_attribute_tag = __pyx_k12; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_attribute_tag)) return 0; Py_INCREF(__pyx_v_attribute_tag); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":82 */ __pyx_1 = __pyx_v_attribute_tag == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":83 */ Py_INCREF(__pyx_k34p); Py_DECREF(__pyx_v_9objectify_PYTYPE_NAMESPACE); __pyx_v_9objectify_PYTYPE_NAMESPACE = __pyx_k34p; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":84 */ Py_INCREF(__pyx_n_pytype); Py_DECREF(__pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME); __pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_n_pytype; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":86 */ __pyx_2 = getNsTag(__pyx_v_attribute_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L1;} __pyx_3 = PyObject_GetIter(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_PYTYPE_NAMESPACE); __pyx_v_9objectify_PYTYPE_NAMESPACE = __pyx_2; __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME); __pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_2; __pyx_2 = 0; if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":87 */ __pyx_v_9objectify__PYTYPE_NAMESPACE = _cstr(__pyx_v_9objectify_PYTYPE_NAMESPACE); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":88 */ __pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME = _cstr(__pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":89 */ __pyx_2 = namespacedNameFromNsName(__pyx_v_9objectify__PYTYPE_NAMESPACE,__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_PYTYPE_ATTRIBUTE, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.setPytypeAttributeTag"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_attribute_tag); return __pyx_r; } static PyObject *__pyx_n_getparent; static PyObject *__pyx_n_iter; static PyObject *__pyx_n_ElementChildIterator; static PyObject *__pyx_n_tag; static PyObject *__pyx_f_9objectify_18ObjectifiedElement___iter__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___iter__[] = "Iterate over self and all siblings with the same tag.\n "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement___iter__(PyObject *__pyx_v_self) { PyObject *__pyx_v_parent; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_parent = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":122 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_getparent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_parent); __pyx_v_parent = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":123 */ __pyx_3 = __pyx_v_parent == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":124 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_iter); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;} __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyList_SET_ITEM(__pyx_2, 0, __pyx_v_self); __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":125 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_ElementChildIterator); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} Py_INCREF(__pyx_v_parent); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_parent); __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} __pyx_5 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tag); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} if (PyDict_SetItem(__pyx_2, __pyx_n_tag, __pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_5 = PyEval_CallObjectWithKeywords(__pyx_1, __pyx_4, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_5; __pyx_5 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.ObjectifiedElement.__iter__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_parent); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k37p; static char (__pyx_k37[]) = ""; static PyObject *__pyx_f_9objectify_18ObjectifiedElement___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":128 */ __pyx_1 = __pyx_v_9objectify___RECURSIVE_STR; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":129 */ __pyx_2 = __pyx_f_9objectify__dump(((struct LxmlElement *)__pyx_v_self),0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":131 */ __pyx_2 = textOf(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;} __pyx_1 = PyObject_IsTrue(__pyx_2); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;} if (!__pyx_1) { Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = __pyx_k37p; Py_INCREF(__pyx_2); } __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectifiedElement.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement_4text___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement_4text___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":135 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectifiedElement.text.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k38p; static char (__pyx_k38[]) = "{%s}*"; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_8__dict_____get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement_8__dict_____get__(PyObject *__pyx_v_self) { char (*__pyx_v_c_ns); struct LxmlElement *__pyx_v_child; PyObject *__pyx_v_tag; PyObject *__pyx_v_children; PyObject *__pyx_v_name; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_child = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); __pyx_v_tag = Py_None; Py_INCREF(Py_None); __pyx_v_children = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":146 */ __pyx_v_c_ns = _getNs(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":147 */ __pyx_1 = (__pyx_v_c_ns == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":148 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_tag); __pyx_v_tag = Py_None; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":150 */ __pyx_2 = PyString_FromString(__pyx_v_c_ns); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L1;} __pyx_3 = PyNumber_Remainder(__pyx_k38p, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_3; __pyx_3 = 0; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":151 */ __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; goto __pyx_L1;} Py_DECREF(__pyx_v_children); __pyx_v_children = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":152 */ __pyx_3 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_ElementChildIterator); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self); __pyx_4 = PyDict_New(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} if (PyDict_SetItem(__pyx_4, __pyx_n_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} __pyx_5 = PyEval_CallObjectWithKeywords(__pyx_3, __pyx_2, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyObject_GetIter(__pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; for (;;) { __pyx_2 = PyIter_Next(__pyx_3); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} break; } if (!__Pyx_TypeTest(__pyx_2, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_child)); __pyx_v_child = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":153 */ __pyx_1 = (__pyx_v_c_ns == NULL); if (__pyx_1) { __pyx_1 = (_getNs(__pyx_v_child->_c_node) != NULL); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":154 */ goto __pyx_L3; goto __pyx_L5; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":155 */ __pyx_4 = PyString_FromString(__pyx_v_child->_c_node->name); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":156 */ __pyx_1 = (PyDict_GetItem(__pyx_v_children,__pyx_v_name) == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":157 */ __pyx_1 = PyDict_SetItem(__pyx_v_children,__pyx_v_name,((PyObject *)__pyx_v_child)); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; goto __pyx_L1;} goto __pyx_L6; } __pyx_L6:; __pyx_L3:; } Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":158 */ Py_INCREF(__pyx_v_children); __pyx_r = __pyx_v_children; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.ObjectifiedElement.__dict__.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_child); Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_children); Py_DECREF(__pyx_v_name); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static Py_ssize_t __pyx_f_9objectify_18ObjectifiedElement___len__(PyObject *__pyx_v_self); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___len__[] = "Count self and siblings with the same tag.\n "; static Py_ssize_t __pyx_f_9objectify_18ObjectifiedElement___len__(PyObject *__pyx_v_self) { xmlNode (*__pyx_v_c_self_node); xmlNode (*__pyx_v_c_node); char (*__pyx_v_c_href); char (*__pyx_v_c_tag); Py_ssize_t __pyx_v_count; Py_ssize_t __pyx_r; int __pyx_1; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":168 */ __pyx_v_c_self_node = ((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":169 */ __pyx_v_c_tag = __pyx_v_c_self_node->name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":170 */ __pyx_v_c_href = _getNs(__pyx_v_c_self_node); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":171 */ __pyx_v_count = 1; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":172 */ __pyx_v_c_node = __pyx_v_c_self_node->next; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":173 */ while (1) { __pyx_1 = (__pyx_v_c_node != NULL); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":174 */ __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE); if (__pyx_1) { __pyx_1 = tagMatches(__pyx_v_c_node,__pyx_v_c_href,__pyx_v_c_tag); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":176 */ __pyx_v_count = (__pyx_v_count + 1); goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":177 */ __pyx_v_c_node = __pyx_v_c_node->next; } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":178 */ __pyx_v_c_node = __pyx_v_c_self_node->prev; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":179 */ while (1) { __pyx_1 = (__pyx_v_c_node != NULL); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":180 */ __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE); if (__pyx_1) { __pyx_1 = tagMatches(__pyx_v_c_node,__pyx_v_c_href,__pyx_v_c_tag); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":182 */ __pyx_v_count = (__pyx_v_count + 1); goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":183 */ __pyx_v_c_node = __pyx_v_c_node->prev; } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":184 */ __pyx_r = __pyx_v_count; goto __pyx_L0; __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement_countchildren(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement_countchildren[] = "Return the number of children of this element, regardless of their\n name.\n "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_countchildren(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { Py_ssize_t __pyx_v_c; xmlNode (*__pyx_v_c_node); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":193 */ __pyx_v_c = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":194 */ __pyx_v_c_node = ((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->children; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":195 */ while (1) { __pyx_1 = (__pyx_v_c_node != NULL); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":196 */ __pyx_1 = _isElement(__pyx_v_c_node); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":197 */ __pyx_v_c = (__pyx_v_c + 1); goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":198 */ __pyx_v_c_node = __pyx_v_c_node->next; } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":199 */ __pyx_2 = PyInt_FromSsize_t(__pyx_v_c); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectifiedElement.countchildren"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___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 "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_tag); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":205 */ __pyx_1 = __pyx_f_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectifiedElement.__getattr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_tag); return __pyx_r; } static PyObject *__pyx_n_text; static PyObject *__pyx_n_pyval; static PyObject *__pyx_n_TypeError; static PyObject *__pyx_n_type; static PyObject *__pyx_n___name__; static PyObject *__pyx_n_tail; static PyObject *__pyx_n___set__; static PyObject *__pyx_k42p; static char (__pyx_k42[]) = "attribute '%s' of '%s' objects is not writable"; static int __pyx_f_9objectify_18ObjectifiedElement___setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___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 "; static int __pyx_f_9objectify_18ObjectifiedElement___setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) { struct LxmlElement *__pyx_v_element; int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_tag); Py_INCREF(__pyx_v_value); __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":214 */ if (PyObject_Cmp(__pyx_v_tag, __pyx_n_text, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (!__pyx_1) { if (PyObject_Cmp(__pyx_v_tag, __pyx_n_pyval, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":216 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; goto __pyx_L1;} __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyObject_GetAttr(__pyx_5, __pyx_n___name__); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;} Py_INCREF(__pyx_v_tag); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_tag); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); __pyx_3 = 0; __pyx_5 = PyNumber_Remainder(__pyx_k42p, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __Pyx_Raise(__pyx_2, __pyx_5, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; goto __pyx_L1;} goto __pyx_L2; } if (PyObject_Cmp(__pyx_v_tag, __pyx_n_tail, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":219 */ __pyx_1 = setTailText(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node,__pyx_v_value); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":220 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L2; } if (PyObject_Cmp(__pyx_v_tag, __pyx_n_tag, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":222 */ __pyx_3 = PyObject_GetAttr(((PyObject*)__pyx_ptype_11etreepublic_ElementBase), __pyx_n_tag); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;} __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n___set__); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_value); __pyx_5 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":223 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":225 */ __pyx_3 = __pyx_f_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":226 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":227 */ __pyx_4 = __pyx_f_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; goto __pyx_L3;} if (!__Pyx_TypeTest(__pyx_4, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; goto __pyx_L3;} Py_DECREF(((PyObject *)__pyx_v_element)); __pyx_v_element = ((struct LxmlElement *)__pyx_4); __pyx_4 = 0; } /*else:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":231 */ __pyx_3 = __pyx_f_9objectify__replaceElement(__pyx_v_element,__pyx_v_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } goto __pyx_L4; __pyx_L3:; Py_XDECREF(__pyx_2); __pyx_2 = 0; Py_XDECREF(__pyx_5); __pyx_5 = 0; Py_XDECREF(__pyx_3); __pyx_3 = 0; Py_XDECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":228 */ __pyx_1 = PyErr_ExceptionMatches(__pyx_v_9objectify_AttributeError); if (__pyx_1) { __Pyx_AddTraceback("objectify.__setattr__"); __pyx_2 = __Pyx_GetExcValue(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":229 */ __pyx_5 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag,__pyx_v_value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L4; } goto __pyx_L1; __pyx_L4:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.ObjectifiedElement.__setattr__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_element); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_n_remove; static int __pyx_f_9objectify_18ObjectifiedElement___delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/ static int __pyx_f_9objectify_18ObjectifiedElement___delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) { PyObject *__pyx_v_child; int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_tag); __pyx_v_child = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":234 */ __pyx_1 = __pyx_f_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; goto __pyx_L1;} Py_DECREF(__pyx_v_child); __pyx_v_child = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":235 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_remove); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; goto __pyx_L1;} Py_INCREF(__pyx_v_child); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_child); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.ObjectifiedElement.__delattr__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_child); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_tag); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement_addattr[] = "Add a child value to the element.\n\n As opposed to append(), it sets a data value, not an element.\n "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_tag = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"tag","value",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_tag, &__pyx_v_value)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_tag); Py_INCREF(__pyx_v_value); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":242 */ __pyx_1 = __pyx_f_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self),__pyx_v_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self),__pyx_1,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectifiedElement.addattr"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___getitem__[] = "Return a sibling, counting from the first child of the parent.\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 is used\n to provide namespaces for element lookup.\n "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) { xmlNode (*__pyx_v_c_self_node); xmlNode (*__pyx_v_c_parent); xmlNode (*__pyx_v_c_node); PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_ssize_t __pyx_3; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_key); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":255 */ __pyx_1 = _isString(__pyx_v_key); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":256 */ __pyx_2 = __pyx_f_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self),__pyx_v_key); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":257 */ __pyx_v_c_self_node = ((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":258 */ __pyx_v_c_parent = __pyx_v_c_self_node->parent; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":259 */ __pyx_1 = (__pyx_v_c_parent == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":260 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_key, __pyx_2, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":261 */ Py_INCREF(__pyx_v_self); __pyx_r = __pyx_v_self; goto __pyx_L0; goto __pyx_L4; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":263 */ __Pyx_Raise(__pyx_v_9objectify_IndexError, __pyx_v_key, 0); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; goto __pyx_L1;} } __pyx_L4:; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":264 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_key, __pyx_2, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; goto __pyx_L1;} __pyx_1 = __pyx_1 < 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":265 */ __pyx_v_c_node = __pyx_v_c_parent->last; goto __pyx_L5; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":267 */ __pyx_v_c_node = __pyx_v_c_parent->children; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":268 */ __pyx_3 = PyInt_AsSsize_t(__pyx_v_key); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; goto __pyx_L1;} __pyx_v_c_node = __pyx_f_9objectify__findFollowingSibling(__pyx_v_c_node,_getNs(__pyx_v_c_self_node),__pyx_v_c_self_node->name,__pyx_3); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":270 */ __pyx_1 = (__pyx_v_c_node == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":271 */ __Pyx_Raise(__pyx_v_9objectify_IndexError, __pyx_v_key, 0); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; goto __pyx_L1;} goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":272 */ __pyx_2 = ((PyObject *)elementFactory(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc,__pyx_v_c_node)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectifiedElement.__getitem__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_key); return __pyx_r; } static PyObject *__pyx_k45p; static char (__pyx_k45[]) = "index assignment to root element is invalid"; static int __pyx_f_9objectify_18ObjectifiedElement___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement___setitem__[] = "Set the value of a sibling, counting from the first child of the\n parent.\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 "; static int __pyx_f_9objectify_18ObjectifiedElement___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key, PyObject *__pyx_v_value) { struct LxmlElement *__pyx_v_element; xmlNode (*__pyx_v_c_self_node); xmlNode (*__pyx_v_c_parent); xmlNode (*__pyx_v_c_node); int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_ssize_t __pyx_3; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_key); Py_INCREF(__pyx_v_value); __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":291 */ __pyx_1 = _isString(__pyx_v_key); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":292 */ __pyx_2 = __pyx_f_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self),__pyx_v_key); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; goto __pyx_L1;} Py_DECREF(__pyx_v_key); __pyx_v_key = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":293 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":294 */ __pyx_2 = __pyx_f_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self),__pyx_v_key); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; goto __pyx_L3;} if (!__Pyx_TypeTest(__pyx_2, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; goto __pyx_L3;} Py_DECREF(((PyObject *)__pyx_v_element)); __pyx_v_element = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; } /*else:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":298 */ __pyx_2 = __pyx_f_9objectify__replaceElement(__pyx_v_element,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; } goto __pyx_L4; __pyx_L3:; Py_XDECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":295 */ __pyx_1 = PyErr_ExceptionMatches(__pyx_v_9objectify_AttributeError); if (__pyx_1) { __Pyx_AddTraceback("objectify.__setitem__"); __pyx_2 = __Pyx_GetExcValue(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":296 */ __pyx_2 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self),__pyx_v_key,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L4; } goto __pyx_L1; __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":299 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":301 */ __pyx_v_c_self_node = ((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":302 */ __pyx_v_c_parent = __pyx_v_c_self_node->parent; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":303 */ __pyx_1 = (__pyx_v_c_parent == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":305 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k45p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; goto __pyx_L1;} goto __pyx_L5; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":306 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_key, __pyx_2, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;} __pyx_1 = __pyx_1 < 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":307 */ __pyx_v_c_node = __pyx_v_c_parent->last; goto __pyx_L6; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":309 */ __pyx_v_c_node = __pyx_v_c_parent->children; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":310 */ __pyx_3 = PyInt_AsSsize_t(__pyx_v_key); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; goto __pyx_L1;} __pyx_v_c_node = __pyx_f_9objectify__findFollowingSibling(__pyx_v_c_node,_getNs(__pyx_v_c_self_node),__pyx_v_c_self_node->name,__pyx_3); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":312 */ __pyx_1 = (__pyx_v_c_node == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":313 */ __Pyx_Raise(__pyx_v_9objectify_IndexError, __pyx_v_key, 0); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; goto __pyx_L1;} goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":314 */ __pyx_2 = ((PyObject *)elementFactory(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc,__pyx_v_c_node)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_element)); __pyx_v_element = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":315 */ __pyx_2 = __pyx_f_9objectify__replaceElement(__pyx_v_element,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectifiedElement.__setitem__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_element); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_key); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement___getslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":318 */ __pyx_1 = PyInt_FromSsize_t(__pyx_v_start); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} __pyx_2 = PyInt_FromSsize_t(__pyx_v_end); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1); PyTuple_SET_ITEM(__pyx_3, 2, __pyx_2); __pyx_1 = 0; __pyx_2 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_islice, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_3 = PyObject_CallObject(__pyx_v_9objectify_list, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.ObjectifiedElement.__getslice__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_next; static PyObject *__pyx_n_StopIteration; static PyObject *__pyx_k46p; static char (__pyx_k46[]) = "deleting slices of root element not supported"; static int __pyx_f_9objectify_18ObjectifiedElement___setslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end, PyObject *__pyx_v_values); /*proto*/ static int __pyx_f_9objectify_18ObjectifiedElement___setslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end, PyObject *__pyx_v_values) { struct LxmlElement *__pyx_v_el; PyObject *__pyx_v_parent; PyObject *__pyx_v_new_items; PyObject *__pyx_v_del_items; PyObject *__pyx_v_item; PyObject *__pyx_v_remove; PyObject *__pyx_v_tag; int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_values); __pyx_v_el = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); __pyx_v_parent = Py_None; Py_INCREF(Py_None); __pyx_v_new_items = Py_None; Py_INCREF(Py_None); __pyx_v_del_items = Py_None; Py_INCREF(Py_None); __pyx_v_item = Py_None; Py_INCREF(Py_None); __pyx_v_remove = Py_None; Py_INCREF(Py_None); __pyx_v_tag = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":322 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_getparent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_parent); __pyx_v_parent = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":323 */ __pyx_3 = __pyx_v_parent == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":324 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k46p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":326 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_iter); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;} Py_INCREF(__pyx_v_values); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_values); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_new_items); __pyx_v_new_items = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":327 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_iter); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} __pyx_1 = PyInt_FromSsize_t(__pyx_v_start); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} __pyx_4 = PyInt_FromSsize_t(__pyx_v_end); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} __pyx_5 = PyTuple_New(3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_1); PyTuple_SET_ITEM(__pyx_5, 2, __pyx_4); __pyx_1 = 0; __pyx_4 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_islice, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); __pyx_1 = 0; __pyx_5 = PyObject_CallObject(__pyx_v_9objectify_list, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_5); __pyx_5 = 0; __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_del_items); __pyx_v_del_items = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":328 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":329 */ __pyx_5 = PyObject_GetIter(__pyx_v_del_items); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; goto __pyx_L3;} for (;;) { __pyx_2 = PyIter_Next(__pyx_5); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; goto __pyx_L3;} break; } if (!__Pyx_TypeTest(__pyx_2, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; goto __pyx_L3;} Py_DECREF(((PyObject *)__pyx_v_el)); __pyx_v_el = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":330 */ __pyx_1 = PyObject_GetAttr(__pyx_v_new_items, __pyx_n_next); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; goto __pyx_L3;} __pyx_4 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; goto __pyx_L3;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":331 */ __pyx_2 = __pyx_f_9objectify__replaceElement(__pyx_v_el,__pyx_v_item); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L3;} Py_DECREF(__pyx_2); __pyx_2 = 0; } Py_DECREF(__pyx_5); __pyx_5 = 0; } goto __pyx_L4; __pyx_L3:; Py_XDECREF(__pyx_1); __pyx_1 = 0; Py_XDECREF(__pyx_4); __pyx_4 = 0; Py_XDECREF(__pyx_2); __pyx_2 = 0; Py_XDECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":332 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_StopIteration); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; goto __pyx_L1;} __pyx_3 = PyErr_ExceptionMatches(__pyx_1); Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_3) { __Pyx_AddTraceback("objectify.__setslice__"); __pyx_4 = __Pyx_GetExcValue(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":333 */ __pyx_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_n_remove); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;} Py_DECREF(__pyx_v_remove); __pyx_v_remove = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":334 */ __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; goto __pyx_L1;} Py_INCREF(((PyObject *)__pyx_v_el)); PyTuple_SET_ITEM(__pyx_5, 0, ((PyObject *)__pyx_v_el)); __pyx_1 = PyObject_CallObject(__pyx_v_remove, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":335 */ __pyx_4 = PyObject_GetIter(__pyx_v_del_items); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;} for (;;) { __pyx_2 = PyIter_Next(__pyx_4); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;} break; } if (!__Pyx_TypeTest(__pyx_2, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_el)); __pyx_v_el = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":336 */ __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;} Py_INCREF(((PyObject *)__pyx_v_el)); PyTuple_SET_ITEM(__pyx_5, 0, ((PyObject *)__pyx_v_el)); __pyx_1 = PyObject_CallObject(__pyx_v_remove, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; } Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":337 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L4; } goto __pyx_L1; __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":340 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":341 */ __pyx_5 = PyObject_GetIter(__pyx_v_new_items); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;} for (;;) { __pyx_1 = PyIter_Next(__pyx_5); if (!__pyx_1) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":342 */ if (!__Pyx_TypeTest(__pyx_v_parent, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} __pyx_4 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_v_parent),__pyx_v_tag,__pyx_v_item); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; } Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.ObjectifiedElement.__setslice__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_el); Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_new_items); Py_DECREF(__pyx_v_del_items); Py_DECREF(__pyx_v_item); Py_DECREF(__pyx_v_remove); Py_DECREF(__pyx_v_tag); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_values); return __pyx_r; } static PyObject *__pyx_k47p; static char (__pyx_k47[]) = "deleting slices of root element not supported"; static int __pyx_f_9objectify_18ObjectifiedElement___delslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end); /*proto*/ static int __pyx_f_9objectify_18ObjectifiedElement___delslice__(PyObject *__pyx_v_self, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_end) { PyObject *__pyx_v_parent; PyObject *__pyx_v_remove; PyObject *__pyx_v_el; int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_parent = Py_None; Py_INCREF(Py_None); __pyx_v_remove = Py_None; Py_INCREF(Py_None); __pyx_v_el = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":345 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_getparent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_parent); __pyx_v_parent = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":346 */ __pyx_3 = __pyx_v_parent == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":347 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k47p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":348 */ __pyx_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_n_remove); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; goto __pyx_L1;} Py_DECREF(__pyx_v_remove); __pyx_v_remove = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":349 */ __pyx_1 = PyInt_FromSsize_t(__pyx_v_start); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} __pyx_2 = PyInt_FromSsize_t(__pyx_v_end); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); __pyx_1 = 0; __pyx_2 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_islice, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_4 = PyObject_CallObject(__pyx_v_9objectify_list, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_1 = PyObject_GetIter(__pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; for (;;) { __pyx_2 = PyIter_Next(__pyx_1); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_el); __pyx_v_el = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":350 */ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} Py_INCREF(__pyx_v_el); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_el); __pyx_2 = PyObject_CallObject(__pyx_v_remove, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; } Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.ObjectifiedElement.__delslice__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_remove); Py_DECREF(__pyx_v_el); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n___getitem__; static PyObject *__pyx_k48p; static char (__pyx_k48[]) = "deleting items not supported by root element"; static int __pyx_f_9objectify_18ObjectifiedElement___delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/ static int __pyx_f_9objectify_18ObjectifiedElement___delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_key) { PyObject *__pyx_v_parent; PyObject *__pyx_v_sibling; int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_key); __pyx_v_parent = Py_None; Py_INCREF(Py_None); __pyx_v_sibling = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":353 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_getparent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_parent); __pyx_v_parent = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":354 */ __pyx_3 = __pyx_v_parent == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":355 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k48p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":356 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n___getitem__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; goto __pyx_L1;} Py_INCREF(__pyx_v_key); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_key); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_sibling); __pyx_v_sibling = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":357 */ __pyx_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_n_remove); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;} Py_INCREF(__pyx_v_sibling); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_sibling); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.ObjectifiedElement.__delitem__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_sibling); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_key); return __pyx_r; } static PyObject *__pyx_n_ETXPath; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_findall(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement_findall(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_path = 0; PyObject *__pyx_v_xpath; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {"path",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_path)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_path); __pyx_v_xpath = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":362 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_ETXPath); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_xpath); __pyx_v_xpath = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":363 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self); __pyx_2 = PyObject_CallObject(__pyx_v_xpath, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.ObjectifiedElement.findall"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_xpath); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_path); return __pyx_r; } static PyObject *__pyx_n_findall; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_find(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement_find(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_path = 0; PyObject *__pyx_v_result; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; static char *__pyx_argnames[] = {"path",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_path)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_path); __pyx_v_result = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":368 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_findall); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_result); __pyx_v_result = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":369 */ __pyx_1 = PyInt_FromLong(isinstance(__pyx_v_result,__pyx_v_9objectify_list)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} if (__pyx_4) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} Py_INCREF(__pyx_v_result); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_result); __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_len, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; } __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":370 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} __pyx_2 = PyObject_GetItem(__pyx_v_result, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_4 = isinstance(__pyx_v_result,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":372 */ Py_INCREF(__pyx_v_result); __pyx_r = __pyx_v_result; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":374 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.ObjectifiedElement.find"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_result); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_path); return __pyx_r; } static PyObject *__pyx_n_find; static PyObject *__pyx_k49p; static char (__pyx_k49[]) = ""; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_findtext(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_18ObjectifiedElement_findtext(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_path = 0; PyObject *__pyx_v_default = 0; PyObject *__pyx_v_result; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; static char *__pyx_argnames[] = {"path","default",0}; __pyx_v_default = __pyx_k16; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|O", __pyx_argnames, &__pyx_v_path, &__pyx_v_default)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_path); Py_INCREF(__pyx_v_default); __pyx_v_result = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":379 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_find); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_result); __pyx_v_result = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":380 */ __pyx_4 = isinstance(__pyx_v_result,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":381 */ __pyx_1 = PyObject_GetAttr(__pyx_v_result, __pyx_n_text); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} if (!__pyx_4) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_k49p; Py_INCREF(__pyx_1); } __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":383 */ Py_INCREF(__pyx_v_default); __pyx_r = __pyx_v_default; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.ObjectifiedElement.findtext"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_result); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_path); Py_DECREF(__pyx_v_default); return __pyx_r; } static PyObject *__pyx_n_join; static PyObject *__pyx_k50p; static char (__pyx_k50[]) = "."; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_descendantpaths(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_18ObjectifiedElement_descendantpaths[] = "Returns a list of object path expressions for all descendants.\n "; static PyObject *__pyx_f_9objectify_18ObjectifiedElement_descendantpaths(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_prefix = 0; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; static char *__pyx_argnames[] = {"prefix",0}; __pyx_v_prefix = __pyx_k17; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_prefix)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_prefix); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":388 */ __pyx_1 = __pyx_v_prefix != Py_None; if (__pyx_1) { __pyx_1 = (!_isString(__pyx_v_prefix)); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":389 */ __pyx_2 = PyObject_GetAttr(__pyx_k50p, __pyx_n_join); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} Py_INCREF(__pyx_v_prefix); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_prefix); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_prefix); __pyx_v_prefix = __pyx_4; __pyx_4 = 0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":390 */ __pyx_2 = __pyx_f_9objectify__buildDescendantPaths(((struct __pyx_obj_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node,__pyx_v_prefix); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.ObjectifiedElement.descendantpaths"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_prefix); return __pyx_r; } static xmlNode (*__pyx_f_9objectify__findFollowingSibling(xmlNode (*__pyx_v_c_node),char (*__pyx_v_href),char (*__pyx_v_name),Py_ssize_t __pyx_v_index)) { xmlNode (*((*__pyx_v_next)(xmlNode (*)))); xmlNode (*__pyx_r); int __pyx_1; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":396 */ __pyx_1 = (__pyx_v_index >= 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":397 */ __pyx_v_next = nextElement; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":399 */ __pyx_v_index = ((-1) - __pyx_v_index); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":400 */ __pyx_v_next = previousElement; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":401 */ while (1) { __pyx_1 = (__pyx_v_c_node != NULL); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":402 */ __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE); if (__pyx_1) { __pyx_1 = tagMatches(__pyx_v_c_node,__pyx_v_href,__pyx_v_name); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":404 */ __pyx_v_index = (__pyx_v_index - 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":405 */ __pyx_1 = (__pyx_v_index < 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":406 */ __pyx_r = __pyx_v_c_node; goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; goto __pyx_L5; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":407 */ __pyx_v_c_node = __pyx_v_next(__pyx_v_c_node); } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":408 */ __pyx_r = NULL; goto __pyx_L0; __pyx_L0:; return __pyx_r; } static PyObject *__pyx_k51p; static char (__pyx_k51[]) = "no such child: "; static PyObject *__pyx_f_9objectify__lookupChild(struct LxmlElement *__pyx_v_parent,PyObject *__pyx_v_tag) { xmlNode (*__pyx_v_c_result); xmlNode (*__pyx_v_c_node); char (*__pyx_v_c_href); char (*__pyx_v_c_tag); PyObject *__pyx_v_ns; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; Py_INCREF(__pyx_v_parent); Py_INCREF(__pyx_v_tag); __pyx_v_ns = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":415 */ __pyx_1 = getNsTag(__pyx_v_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} __pyx_2 = PyObject_GetIter(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} Py_DECREF(__pyx_v_ns); __pyx_v_ns = __pyx_1; __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_1; __pyx_1 = 0; if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":416 */ __pyx_v_c_tag = _cstr(__pyx_v_tag); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":417 */ __pyx_v_c_node = __pyx_v_parent->_c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":418 */ __pyx_3 = __pyx_v_ns == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":419 */ __pyx_v_c_href = _getNs(__pyx_v_c_node); goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":421 */ __pyx_v_c_href = _cstr(__pyx_v_ns); } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":422 */ __pyx_v_c_result = __pyx_f_9objectify__findFollowingSibling(__pyx_v_c_node->children,__pyx_v_c_href,__pyx_v_c_tag,0); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":423 */ __pyx_3 = (__pyx_v_c_result == NULL); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":424 */ __pyx_1 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; goto __pyx_L1;} __pyx_2 = PyNumber_Add(__pyx_k51p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __Pyx_Raise(__pyx_v_9objectify_AttributeError, __pyx_2, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; goto __pyx_L1;} goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":426 */ __pyx_1 = ((PyObject *)elementFactory(__pyx_v_parent->_doc,__pyx_v_c_result)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._lookupChild"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ns); Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_tag); return __pyx_r; } static PyObject *__pyx_f_9objectify__buildChildTag(struct LxmlElement *__pyx_v_parent,PyObject *__pyx_v_tag) { char (*__pyx_v_c_href); char (*__pyx_v_c_tag); PyObject *__pyx_v_ns; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; Py_INCREF(__pyx_v_parent); Py_INCREF(__pyx_v_tag); __pyx_v_ns = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":431 */ __pyx_1 = getNsTag(__pyx_v_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;} __pyx_2 = PyObject_GetIter(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;} Py_DECREF(__pyx_v_ns); __pyx_v_ns = __pyx_1; __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_1; __pyx_1 = 0; if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":432 */ __pyx_v_c_tag = _cstr(__pyx_v_tag); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":433 */ __pyx_3 = __pyx_v_ns == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":434 */ __pyx_v_c_href = _getNs(__pyx_v_parent->_c_node); goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":436 */ __pyx_v_c_href = _cstr(__pyx_v_ns); } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":437 */ __pyx_1 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._buildChildTag"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_ns); Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_tag); return __pyx_r; } static PyObject *__pyx_n___setslice__; static PyObject *__pyx_n_makeelement; static PyObject *__pyx_n_replace; static PyObject *__pyx_f_9objectify__replaceElement(struct LxmlElement *__pyx_v_element,PyObject *__pyx_v_value) { struct LxmlElement *__pyx_v_new_element; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF(__pyx_v_element); Py_INCREF(__pyx_v_value); __pyx_v_new_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":441 */ __pyx_1 = isinstance(__pyx_v_value,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":443 */ __pyx_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_element->_doc,((struct LxmlElement *)__pyx_v_value)->_c_node)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_new_element)); __pyx_v_new_element = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":445 */ __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; goto __pyx_L1;} if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_n_tag, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L2; } __pyx_1 = PyList_Check(__pyx_v_value); if (!__pyx_1) { __pyx_1 = PyTuple_Check(__pyx_v_value); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":447 */ __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n___setslice__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} __pyx_4 = PyInt_FromLong(PY_SSIZE_T_MAX); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} __pyx_5 = PyTuple_New(3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_5, 2, __pyx_v_value); __pyx_3 = 0; __pyx_4 = 0; __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":448 */ __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":450 */ __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_makeelement); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; goto __pyx_L1;} __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_2); __pyx_2 = 0; __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_new_element)); __pyx_v_new_element = ((struct LxmlElement *)__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":451 */ __pyx_2 = __pyx_f_9objectify__setElementValue(__pyx_v_new_element,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":452 */ __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_getparent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;} __pyx_5 = PyObject_CallObject(__pyx_4, 0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyObject_GetAttr(__pyx_5, __pyx_n_replace); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;} Py_INCREF(((PyObject *)__pyx_v_element)); PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_v_element)); Py_INCREF(((PyObject *)__pyx_v_new_element)); PyTuple_SET_ITEM(__pyx_2, 1, ((PyObject *)__pyx_v_new_element)); __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify._replaceElement"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_new_element); Py_DECREF(__pyx_v_element); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_f_9objectify__appendValue(struct LxmlElement *__pyx_v_parent,PyObject *__pyx_v_tag,PyObject *__pyx_v_value) { struct LxmlElement *__pyx_v_new_element; PyObject *__pyx_v_item; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_parent); Py_INCREF(__pyx_v_tag); Py_INCREF(__pyx_v_value); __pyx_v_new_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); __pyx_v_item = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":456 */ __pyx_1 = isinstance(__pyx_v_value,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":458 */ __pyx_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_parent->_doc,((struct LxmlElement *)__pyx_v_value)->_c_node)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_new_element)); __pyx_v_new_element = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":460 */ if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_n_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":461 */ appendChild(__pyx_v_parent,__pyx_v_new_element); goto __pyx_L2; } __pyx_1 = PyList_Check(__pyx_v_value); if (!__pyx_1) { __pyx_1 = PyTuple_Check(__pyx_v_value); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":463 */ __pyx_2 = PyObject_GetIter(__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; goto __pyx_L1;} for (;;) { __pyx_3 = PyIter_Next(__pyx_2); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":464 */ __pyx_3 = __pyx_f_9objectify__appendValue(__pyx_v_parent,__pyx_v_tag,__pyx_v_item); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":466 */ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; goto __pyx_L1;} Py_INCREF(((PyObject *)__pyx_v_parent)); PyTuple_SET_ITEM(__pyx_3, 0, ((PyObject *)__pyx_v_parent)); Py_INCREF(__pyx_v_tag); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_tag); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify_SubElement, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (!__Pyx_TypeTest(__pyx_2, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_new_element)); __pyx_v_new_element = ((struct LxmlElement *)__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":467 */ __pyx_3 = __pyx_f_9objectify__setElementValue(__pyx_v_new_element,__pyx_v_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify._appendValue"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_new_element); Py_DECREF(__pyx_v_item); Py_DECREF(__pyx_v_parent); Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_n_true; static PyObject *__pyx_n_lower; static char (__pyx_k53[]) = "nil"; static PyObject *__pyx_f_9objectify__setElementValue(struct LxmlElement *__pyx_v_element,PyObject *__pyx_v_value) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_element); Py_INCREF(__pyx_v_value); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":470 */ __pyx_1 = __pyx_v_value == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":471 */ __pyx_1 = setAttributeValue(__pyx_v_element,__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR,__pyx_n_true); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; goto __pyx_L1;} goto __pyx_L2; } __pyx_1 = isinstance(__pyx_v_value,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":474 */ __pyx_2 = __pyx_f_9objectify__replaceElement(__pyx_v_element,__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":476 */ delAttributeFromNsName(__pyx_v_element->_c_node,__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS,__pyx_k53); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":478 */ __pyx_1 = (!_isString(__pyx_v_value)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":479 */ __pyx_1 = isinstance(__pyx_v_value,__pyx_v_9objectify_bool); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":480 */ __pyx_2 = str(__pyx_v_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; goto __pyx_L1;} __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_lower); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(__pyx_3, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; goto __pyx_L4; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":482 */ __pyx_3 = str(__pyx_v_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_3; __pyx_3 = 0; } __pyx_L4:; goto __pyx_L3; } __pyx_L3:; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":483 */ __pyx_1 = setNodeText(__pyx_v_element->_c_node,__pyx_v_value); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;} __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify._setElementValue"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_element); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement_5pyval___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":494 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectifiedDataElement.pyval.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k54p; static char (__pyx_k54[]) = ""; static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":497 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; goto __pyx_L1;} __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; goto __pyx_L1;} if (!__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_k54p; Py_INCREF(__pyx_1); } __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectifiedDataElement.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k55p; static char (__pyx_k55[]) = ""; static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":500 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;} __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;} if (!__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_k55p; Py_INCREF(__pyx_1); } __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectifiedDataElement.__repr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement__setText(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_22ObjectifiedDataElement__setText[] = "For use in subclasses only. Don\'t use unless you know what you are\n doing.\n "; static PyObject *__pyx_f_9objectify_22ObjectifiedDataElement__setText(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_s = 0; PyObject *__pyx_r; int __pyx_1; static char *__pyx_argnames[] = {"s",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_s)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_s); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":506 */ __pyx_1 = setNodeText(((struct __pyx_obj_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node,__pyx_v_s); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; goto __pyx_L1;} __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("objectify.ObjectifiedDataElement._setText"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_s); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement__setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_13NumberElement__setValueParser[] = "Set the function that parses the Python value from a string."; static PyObject *__pyx_f_9objectify_13NumberElement__setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_function = 0; PyObject *__pyx_r; static char *__pyx_argnames[] = {"function",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_function)) return 0; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_function); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":512 */ Py_INCREF(__pyx_v_function); Py_DECREF(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->_type); ((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->_type = __pyx_v_function; __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_function); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement__value(struct __pyx_obj_9objectify_NumberElement *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":515 */ __pyx_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_self->_type, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement._value"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement_5pyval___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":519 */ __pyx_1 = ((struct __pyx_vtabstruct_9objectify_NumberElement *)((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_vtab)->_value(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.NumberElement.pyval.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___int__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___int__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":522 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_int, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__int__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___long__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___long__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":525 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_long, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__long__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___float__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___float__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":528 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_float, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__float__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":531 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->_type, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = str(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":534 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_self)->_type, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = repr(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__repr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_hasattr; static PyObject *__pyx_f_9objectify_13NumberElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":540 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;} Py_INCREF(__pyx_v_other); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_other); Py_INCREF(__pyx_n_pyval); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_pyval); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_IsTrue(__pyx_3); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":541 */ __pyx_1 = PyObject_GetAttr(__pyx_v_other, __pyx_n_pyval); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;} Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_1; __pyx_1 = 0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":542 */ __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;} __pyx_3 = PyObject_RichCompare(__pyx_2,__pyx_v_other,__pyx_v_op); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__richcmp__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":546 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; goto __pyx_L1;} __pyx_3 = PyNumber_Add(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__add__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":549 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;} __pyx_3 = PyNumber_Subtract(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__sub__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":552 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;} __pyx_3 = PyNumber_Multiply(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__mul__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":555 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} __pyx_3 = PyNumber_Divide(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__div__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":558 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;} __pyx_3 = PyNumber_Divide(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__truediv__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":561 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L1;} __pyx_3 = PyNumber_Remainder(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__mod__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); Py_INCREF(__pyx_v_modulo); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":564 */ __pyx_1 = __pyx_v_modulo == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":565 */ __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; goto __pyx_L1;} __pyx_3 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; goto __pyx_L1;} __pyx_4 = PyNumber_Power(__pyx_2, __pyx_3, Py_None); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":567 */ __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; goto __pyx_L1;} __pyx_3 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; goto __pyx_L1;} __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); Py_INCREF(__pyx_v_modulo); PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_modulo); __pyx_2 = 0; __pyx_3 = 0; __pyx_2 = PyObject_CallObject(__pyx_v_9objectify_pow, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.NumberElement.__pow__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); Py_DECREF(__pyx_v_modulo); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___neg__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___neg__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":570 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; goto __pyx_L1;} __pyx_2 = PyNumber_Negative(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__neg__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___pos__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___pos__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":573 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; goto __pyx_L1;} __pyx_2 = PyNumber_Positive(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__pos__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___abs__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___abs__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":576 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_abs, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__abs__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static int __pyx_f_9objectify_13NumberElement___nonzero__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_f_9objectify_13NumberElement___nonzero__(PyObject *__pyx_v_self) { int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":579 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} if (PyObject_Cmp(__pyx_1, __pyx_2, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; goto __pyx_L1;} __pyx_3 = __pyx_3 != 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__nonzero__"); __pyx_r = -1; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___invert__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___invert__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":582 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; goto __pyx_L1;} __pyx_2 = PyNumber_Invert(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NumberElement.__invert__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":585 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; goto __pyx_L1;} __pyx_3 = PyNumber_Lshift(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__lshift__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":588 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; goto __pyx_L1;} __pyx_3 = PyNumber_Rshift(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__rshift__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":591 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;} __pyx_3 = PyNumber_And(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__and__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":594 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;} __pyx_3 = PyNumber_Or(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__or__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13NumberElement___xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13NumberElement___xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":597 */ __pyx_1 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} __pyx_3 = PyNumber_Xor(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.NumberElement.__xor__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_10IntElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_10IntElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":601 */ Py_INCREF(__pyx_v_9objectify_int); Py_DECREF(((struct __pyx_obj_9objectify_IntElement *)__pyx_v_self)->__pyx_base._type); ((struct __pyx_obj_9objectify_IntElement *)__pyx_v_self)->__pyx_base._type = __pyx_v_9objectify_int; __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_11LongElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_11LongElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":605 */ Py_INCREF(__pyx_v_9objectify_long); Py_DECREF(((struct __pyx_obj_9objectify_LongElement *)__pyx_v_self)->__pyx_base._type); ((struct __pyx_obj_9objectify_LongElement *)__pyx_v_self)->__pyx_base._type = __pyx_v_9objectify_long; __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_12FloatElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_12FloatElement__init(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_r; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":609 */ Py_INCREF(__pyx_v_9objectify_float); Py_DECREF(((struct __pyx_obj_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._type); ((struct __pyx_obj_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._type = __pyx_v_9objectify_float; __pyx_r = Py_None; Py_INCREF(Py_None); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k57p; static char (__pyx_k57[]) = ""; static PyObject *__pyx_f_9objectify_13StringElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement_5pyval___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":620 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; goto __pyx_L1;} __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; goto __pyx_L1;} if (!__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_k57p; Py_INCREF(__pyx_1); } __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.StringElement.pyval.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k58p; static char (__pyx_k58[]) = ""; static PyObject *__pyx_f_9objectify_13StringElement___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":623 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; goto __pyx_L1;} __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; goto __pyx_L1;} if (!__pyx_2) { Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __pyx_k58p; Py_INCREF(__pyx_1); } __pyx_3 = repr(__pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.StringElement.__repr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13StringElement_strlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement_strlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_text; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_text = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":626 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; goto __pyx_L1;} Py_DECREF(__pyx_v_text); __pyx_v_text = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":627 */ __pyx_2 = __pyx_v_text == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":628 */ __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":630 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; goto __pyx_L1;} Py_INCREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_text); __pyx_3 = PyObject_CallObject(__pyx_v_9objectify_len, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.StringElement.strlen"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_text); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static int __pyx_f_9objectify_13StringElement___nonzero__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_f_9objectify_13StringElement___nonzero__(PyObject *__pyx_v_self) { PyObject *__pyx_v_text; int __pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_text = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":633 */ __pyx_1 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; goto __pyx_L1;} Py_DECREF(__pyx_v_text); __pyx_v_text = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":634 */ __pyx_2 = __pyx_v_text == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":635 */ __pyx_2 = PyInt_AsLong(__pyx_v_9objectify_False); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;} __pyx_r = __pyx_2; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":636 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;} Py_INCREF(__pyx_v_text); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_text); __pyx_3 = PyObject_CallObject(__pyx_v_9objectify_len, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;} if (PyObject_Cmp(__pyx_3, __pyx_1, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;} __pyx_2 = __pyx_2 > 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.StringElement.__nonzero__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_text); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_13StringElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":639 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; goto __pyx_L1;} Py_INCREF(__pyx_v_other); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_other); Py_INCREF(__pyx_n_pyval); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_pyval); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_IsTrue(__pyx_3); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":640 */ __pyx_1 = PyObject_GetAttr(__pyx_v_other, __pyx_n_pyval); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; goto __pyx_L1;} Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_1; __pyx_1 = 0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":641 */ __pyx_2 = __pyx_f_9objectify__strValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; goto __pyx_L1;} __pyx_3 = PyObject_RichCompare(__pyx_2,__pyx_v_other,__pyx_v_op); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.StringElement.__richcmp__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_13StringElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_v_text; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); __pyx_v_text = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":645 */ __pyx_1 = __pyx_f_9objectify__strValueOf(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;} Py_DECREF(__pyx_v_text); __pyx_v_text = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":646 */ __pyx_1 = __pyx_f_9objectify__strValueOf(__pyx_v_other); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; goto __pyx_L1;} Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":647 */ __pyx_2 = __pyx_v_text == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":648 */ Py_INCREF(__pyx_v_other); __pyx_r = __pyx_v_other; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":649 */ __pyx_2 = __pyx_v_other == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":650 */ Py_INCREF(__pyx_v_text); __pyx_r = __pyx_v_text; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":651 */ __pyx_1 = PyNumber_Add(__pyx_v_text, __pyx_v_other); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.StringElement.__add__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_text); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_k60p; static char (__pyx_k60[]) = "invalid types for * operator"; static PyObject *__pyx_f_9objectify_13StringElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":654 */ __pyx_1 = isinstance(__pyx_v_self,((PyObject*)__pyx_ptype_9objectify_StringElement)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":655 */ __pyx_2 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;} __pyx_3 = __pyx_f_9objectify__numericValueOf(__pyx_v_other); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;} __pyx_4 = PyNumber_Multiply(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_1 = isinstance(__pyx_v_other,((PyObject*)__pyx_ptype_9objectify_StringElement)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":657 */ __pyx_2 = __pyx_f_9objectify__numericValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;} __pyx_3 = textOf(((struct __pyx_obj_9objectify_StringElement *)__pyx_v_other)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;} __pyx_4 = PyNumber_Multiply(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":659 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k60p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;} } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.StringElement.__mul__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_n_tuple; static PyObject *__pyx_f_9objectify_13StringElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ static PyObject *__pyx_f_9objectify_13StringElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { PyObject *__pyx_v_l; PyObject *__pyx_v_item; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); __pyx_v_l = Py_None; Py_INCREF(Py_None); __pyx_v_item = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":662 */ __pyx_1 = PyTuple_Check(__pyx_v_other); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":663 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; goto __pyx_L1;} Py_DECREF(__pyx_v_l); __pyx_v_l = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":664 */ __pyx_2 = PyObject_GetIter(__pyx_v_other); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; goto __pyx_L1;} for (;;) { __pyx_3 = PyIter_Next(__pyx_2); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":665 */ __pyx_3 = __pyx_f_9objectify__strValueOf(__pyx_v_item); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; goto __pyx_L1;} __pyx_1 = PyList_Append(__pyx_v_l,__pyx_3); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":666 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_tuple); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;} Py_INCREF(__pyx_v_l); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_l); __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_4; __pyx_4 = 0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":668 */ __pyx_3 = __pyx_f_9objectify__strValueOf(__pyx_v_other); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;} Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_3; __pyx_3 = 0; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":669 */ __pyx_2 = __pyx_f_9objectify__strValueOf(__pyx_v_self); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; goto __pyx_L1;} __pyx_4 = PyNumber_Remainder(__pyx_2, __pyx_v_other); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.StringElement.__mod__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_l); Py_DECREF(__pyx_v_item); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_n_None; static PyObject *__pyx_f_9objectify_11NoneElement___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11NoneElement___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":673 */ Py_INCREF(__pyx_n_None); __pyx_r = __pyx_n_None; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_11NoneElement___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11NoneElement___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":676 */ Py_INCREF(__pyx_n_None); __pyx_r = __pyx_n_None; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static int __pyx_f_9objectify_11NoneElement___nonzero__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_f_9objectify_11NoneElement___nonzero__(PyObject *__pyx_v_self) { int __pyx_r; int __pyx_1; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":679 */ __pyx_1 = PyInt_AsLong(__pyx_v_9objectify_False); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;} __pyx_r = __pyx_1; goto __pyx_L0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("objectify.NoneElement.__nonzero__"); __pyx_r = -1; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_11NoneElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/ static PyObject *__pyx_f_9objectify_11NoneElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":682 */ __pyx_1 = __pyx_v_other == Py_None; if (!__pyx_1) { __pyx_1 = __pyx_v_self == Py_None; } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":683 */ __pyx_2 = PyObject_RichCompare(Py_None,Py_None,__pyx_v_op); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":684 */ __pyx_1 = isinstance(__pyx_v_self,((PyObject*)__pyx_ptype_9objectify_NoneElement)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":685 */ __pyx_2 = PyObject_RichCompare(Py_None,__pyx_v_other,__pyx_v_op); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L3; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":687 */ __pyx_2 = PyObject_RichCompare(__pyx_v_self,Py_None,__pyx_v_op); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; } __pyx_L3:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.NoneElement.__richcmp__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_11NoneElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11NoneElement_5pyval___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":691 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_false; static PyObject *__pyx_n_ValueError; static PyObject *__pyx_k65p; static char (__pyx_k65[]) = "Invalid boolean value: '%s'"; static int __pyx_f_9objectify_11BoolElement__boolval(struct __pyx_obj_9objectify_BoolElement *__pyx_v_self) { PyObject *__pyx_v_text; int __pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF((PyObject *)__pyx_v_self); __pyx_v_text = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":697 */ __pyx_1 = textOf(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; goto __pyx_L1;} Py_DECREF(__pyx_v_text); __pyx_v_text = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":698 */ __pyx_2 = __pyx_v_text == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":699 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":700 */ __pyx_1 = PyObject_GetAttr(__pyx_v_text, __pyx_n_lower); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; goto __pyx_L1;} __pyx_3 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_text); __pyx_v_text = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":701 */ if (PyObject_Cmp(__pyx_v_text, __pyx_n_false, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":702 */ __pyx_r = 0; goto __pyx_L0; goto __pyx_L3; } if (PyObject_Cmp(__pyx_v_text, __pyx_n_true, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":704 */ __pyx_r = 1; goto __pyx_L0; goto __pyx_L3; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":706 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;} __pyx_3 = PyNumber_Remainder(__pyx_k65p, __pyx_v_text); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_3, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;} } __pyx_L3:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.BoolElement._boolval"); __pyx_r = (-1); __pyx_L0:; Py_DECREF(__pyx_v_text); Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static int __pyx_f_9objectify_11BoolElement___nonzero__(PyObject *__pyx_v_self); /*proto*/ static int __pyx_f_9objectify_11BoolElement___nonzero__(PyObject *__pyx_v_self) { int __pyx_r; int __pyx_1; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":709 */ __pyx_1 = ((struct __pyx_vtabstruct_9objectify_BoolElement *)((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)->__pyx_vtab)->_boolval(((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;} if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":710 */ __pyx_1 = PyInt_AsLong(__pyx_v_9objectify_True); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;} __pyx_r = __pyx_1; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":712 */ __pyx_1 = PyInt_AsLong(__pyx_v_9objectify_False); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; goto __pyx_L1;} __pyx_r = __pyx_1; goto __pyx_L0; } __pyx_L2:; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("objectify.BoolElement.__nonzero__"); __pyx_r = -1; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_11BoolElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/ static PyObject *__pyx_f_9objectify_11BoolElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) { PyObject *__pyx_v_self_val; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_other); __pyx_v_self_val = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":715 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; goto __pyx_L1;} Py_INCREF(__pyx_v_other); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_other); Py_INCREF(__pyx_n_pyval); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_pyval); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_IsTrue(__pyx_3); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":716 */ __pyx_1 = PyObject_GetAttr(__pyx_v_other, __pyx_n_pyval); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;} Py_DECREF(__pyx_v_other); __pyx_v_other = __pyx_1; __pyx_1 = 0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":717 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self); Py_INCREF(__pyx_n_pyval); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_pyval); __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_4 = PyObject_IsTrue(__pyx_1); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":718 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_pyval); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; goto __pyx_L1;} Py_DECREF(__pyx_v_self_val); __pyx_v_self_val = __pyx_2; __pyx_2 = 0; goto __pyx_L3; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":720 */ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; goto __pyx_L1;} Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_self); __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_bool, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_self_val); __pyx_v_self_val = __pyx_1; __pyx_1 = 0; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":721 */ __pyx_2 = PyObject_RichCompare(__pyx_v_self_val,__pyx_v_other,__pyx_v_op); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.BoolElement.__richcmp__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self_val); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_other); return __pyx_r; } static PyObject *__pyx_f_9objectify_11BoolElement___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11BoolElement___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":724 */ __pyx_1 = ((struct __pyx_vtabstruct_9objectify_BoolElement *)((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)->__pyx_vtab)->_boolval(((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; goto __pyx_L1;} if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":725 */ Py_INCREF(__pyx_n_True); __pyx_r = __pyx_n_True; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":727 */ Py_INCREF(__pyx_n_False); __pyx_r = __pyx_n_False; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("objectify.BoolElement.__str__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_11BoolElement___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11BoolElement___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; int __pyx_1; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":730 */ __pyx_1 = ((struct __pyx_vtabstruct_9objectify_BoolElement *)((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)->__pyx_vtab)->_boolval(((struct __pyx_obj_9objectify_BoolElement *)__pyx_v_self)); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; goto __pyx_L1;} if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":731 */ Py_INCREF(__pyx_n_True); __pyx_r = __pyx_n_True; goto __pyx_L0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":733 */ Py_INCREF(__pyx_n_False); __pyx_r = __pyx_n_False; goto __pyx_L0; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; __Pyx_AddTraceback("objectify.BoolElement.__repr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n___nonzero__; static PyObject *__pyx_f_9objectify_11BoolElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_11BoolElement_5pyval___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF((PyObject *)__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":737 */ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n___nonzero__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.BoolElement.pyval.__get__"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify___checkBool(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify___checkBool(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_s = 0; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"s",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_s)) return 0; Py_INCREF(__pyx_v_s); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":740 */ if (PyObject_Cmp(__pyx_v_s, __pyx_n_true, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;} __pyx_1 = __pyx_1 != 0; if (__pyx_1) { if (PyObject_Cmp(__pyx_v_s, __pyx_n_false, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;} __pyx_1 = __pyx_1 != 0; } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":741 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; goto __pyx_L1;} __Pyx_Raise(__pyx_2, 0, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.__checkBool"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_s); return __pyx_r; } static PyObject *__pyx_k74p; static char (__pyx_k74[]) = ""; static PyObject *__pyx_f_9objectify__strValueOf(PyObject *__pyx_v_obj) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_obj); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":744 */ __pyx_1 = _isString(__pyx_v_obj); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":745 */ Py_INCREF(__pyx_v_obj); __pyx_r = __pyx_v_obj; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":746 */ __pyx_1 = isinstance(__pyx_v_obj,((PyObject*)__pyx_ptype_11etreepublic__Element)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":747 */ __pyx_2 = textOf(((struct LxmlElement *)__pyx_v_obj)->_c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":748 */ __pyx_1 = __pyx_v_obj == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":749 */ Py_INCREF(__pyx_k74p); __pyx_r = __pyx_k74p; goto __pyx_L0; goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":750 */ __pyx_2 = str(__pyx_v_obj); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._strValueOf"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_obj); return __pyx_r; } static PyObject *__pyx_f_9objectify__numericValueOf(PyObject *__pyx_v_obj) { PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_INCREF(__pyx_v_obj); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":753 */ __pyx_1 = isinstance(__pyx_v_obj,((PyObject*)__pyx_ptype_9objectify_NumberElement)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":754 */ __pyx_2 = textOf(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_obj)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(((struct __pyx_obj_9objectify_NumberElement *)__pyx_v_obj)->_type, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} Py_INCREF(__pyx_v_obj); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_obj); Py_INCREF(__pyx_n_pyval); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_pyval); __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_1 = PyObject_IsTrue(__pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":758 */ __pyx_3 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_pyval); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 758; goto __pyx_L1;} __pyx_r = __pyx_3; __pyx_3 = 0; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":759 */ Py_INCREF(__pyx_v_obj); __pyx_r = __pyx_v_obj; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify._numericValueOf"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_obj); return __pyx_r; } static PyObject *__pyx_k76p; static PyObject *__pyx_k77p; static PyObject *__pyx_k78p; static PyObject *__pyx_k79p; static char (__pyx_k76[]) = "Type name must be a string"; static char (__pyx_k77[]) = "Invalid type name"; static char (__pyx_k78[]) = "Type check function must be callable (or None)"; static char (__pyx_k79[]) = "Data classes must inherit from ObjectifiedDataElement"; static int __pyx_f_9objectify_6PyType___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_9objectify_6PyType___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; int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"name","type_check","type_class",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OOO", __pyx_argnames, &__pyx_v_name, &__pyx_v_type_check, &__pyx_v_type_class)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_name); Py_INCREF(__pyx_v_type_check); Py_INCREF(__pyx_v_type_class); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":784 */ __pyx_1 = (!_isString(__pyx_v_name)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":785 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k76p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; goto __pyx_L1;} goto __pyx_L2; } if (PyObject_Cmp(__pyx_v_name, __pyx_v_9objectify_TREE_PYTYPE, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":787 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k77p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":788 */ __pyx_1 = __pyx_v_type_check != Py_None; if (__pyx_1) { __pyx_1 = (!callable(__pyx_v_type_check)); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":789 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k78p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; goto __pyx_L1;} goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":790 */ __pyx_1 = (!issubclass(__pyx_v_type_class,((PyObject*)__pyx_ptype_9objectify_ObjectifiedDataElement))); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":791 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k79p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; goto __pyx_L1;} goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":793 */ Py_INCREF(__pyx_v_name); Py_DECREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name); ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name = __pyx_v_name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":794 */ Py_INCREF(__pyx_v_type_class); Py_DECREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_type); ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_type = __pyx_v_type_class; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":795 */ Py_INCREF(__pyx_v_type_check); Py_DECREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check); ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check = __pyx_v_type_check; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":796 */ __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;} Py_DECREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types); ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types = __pyx_2; __pyx_2 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.PyType.__init__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_name); Py_DECREF(__pyx_v_type_check); Py_DECREF(__pyx_v_type_class); return __pyx_r; } static PyObject *__pyx_k80p; static char (__pyx_k80[]) = "PyType(%s, %s)"; static PyObject *__pyx_f_9objectify_6PyType___repr__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_6PyType___repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":799 */ __pyx_1 = PyObject_GetAttr(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_type, __pyx_n___name__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; goto __pyx_L1;} Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name); PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_1); __pyx_1 = 0; __pyx_1 = PyNumber_Remainder(__pyx_k80p, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.PyType.__repr__"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_n_enumerate; static PyObject *__pyx_n_name; static PyObject *__pyx_n_append; static PyObject *__pyx_n_insert; static PyObject *__pyx_k81p; static char (__pyx_k81[]) = "inconsistent before/after dependencies"; static PyObject *__pyx_f_9objectify_6PyType_register(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_6PyType_register[] = "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 PyObject *__pyx_f_9objectify_6PyType_register(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_before = 0; PyObject *__pyx_v_after = 0; PyObject *__pyx_v_item; PyObject *__pyx_v_entry; PyObject *__pyx_v_first_pos; PyObject *__pyx_v_last_pos; PyObject *__pyx_v_i; PyObject *__pyx_v_check; PyObject *__pyx_v_pytype; PyObject *__pyx_v_xs_type; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"before","after",0}; __pyx_v_before = __pyx_k18; __pyx_v_after = __pyx_k19; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|OO", __pyx_argnames, &__pyx_v_before, &__pyx_v_after)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_before); Py_INCREF(__pyx_v_after); __pyx_v_item = Py_None; Py_INCREF(Py_None); __pyx_v_entry = Py_None; Py_INCREF(Py_None); __pyx_v_first_pos = Py_None; Py_INCREF(Py_None); __pyx_v_last_pos = Py_None; Py_INCREF(Py_None); __pyx_v_i = Py_None; Py_INCREF(Py_None); __pyx_v_check = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); __pyx_v_xs_type = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":809 */ __pyx_1 = ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":810 */ __pyx_2 = PyObject_GetIter(__pyx_v_9objectify__TYPE_CHECKS); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; goto __pyx_L1;} for (;;) { __pyx_3 = PyIter_Next(__pyx_2); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":811 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; goto __pyx_L1;} __pyx_4 = PyObject_GetItem(__pyx_v_item, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_1 = __pyx_4 == ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check; Py_DECREF(__pyx_4); __pyx_4 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":812 */ __pyx_3 = PyObject_GetAttr(__pyx_v_9objectify__TYPE_CHECKS, __pyx_n_remove); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;} Py_INCREF(__pyx_v_item); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_item); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":813 */ goto __pyx_L4; goto __pyx_L5; } __pyx_L5:; } __pyx_L4:; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":814 */ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;} Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check); PyTuple_SET_ITEM(__pyx_3, 0, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check); Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_self); Py_DECREF(__pyx_v_entry); __pyx_v_entry = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":815 */ __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;} Py_DECREF(__pyx_v_first_pos); __pyx_v_first_pos = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":816 */ __pyx_5 = PyInt_FromLong((-1)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;} Py_DECREF(__pyx_v_last_pos); __pyx_v_last_pos = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":817 */ __pyx_2 = __pyx_v_before; Py_INCREF(__pyx_2); __pyx_1 = PyObject_IsTrue(__pyx_2); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;} if (!__pyx_1) { Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = __pyx_v_after; Py_INCREF(__pyx_2); } __pyx_1 = PyObject_IsTrue(__pyx_2); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":818 */ __pyx_1 = __pyx_v_before == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":819 */ __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;} Py_DECREF(__pyx_v_before); __pyx_v_before = __pyx_3; __pyx_3 = 0; goto __pyx_L7; } __pyx_1 = __pyx_v_after == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":821 */ __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; goto __pyx_L1;} Py_DECREF(__pyx_v_after); __pyx_v_after = __pyx_4; __pyx_4 = 0; goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":822 */ __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_enumerate); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_INCREF(__pyx_v_9objectify__TYPE_CHECKS); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_9objectify__TYPE_CHECKS); __pyx_3 = PyObject_CallObject(__pyx_5, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_GetIter(__pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; for (;;) { __pyx_5 = PyIter_Next(__pyx_4); if (!__pyx_5) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} break; } __pyx_2 = PyObject_GetIter(__pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_v_i); __pyx_v_i = __pyx_3; __pyx_3 = 0; __pyx_5 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} __pyx_3 = PyObject_GetIter(__pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_5 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_v_check); __pyx_v_check = __pyx_5; __pyx_5 = 0; __pyx_5 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_5; __pyx_5 = 0; if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":823 */ __pyx_5 = PyInt_FromLong((-1)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_last_pos, __pyx_5, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; Py_DECREF(__pyx_5); __pyx_5 = 0; if (__pyx_1) { __pyx_3 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_name); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; goto __pyx_L1;} __pyx_1 = PySequence_Contains(__pyx_v_before, __pyx_3); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":824 */ Py_INCREF(__pyx_v_i); Py_DECREF(__pyx_v_last_pos); __pyx_v_last_pos = __pyx_v_i; goto __pyx_L10; } __pyx_L10:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":825 */ __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_name); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; goto __pyx_L1;} __pyx_1 = PySequence_Contains(__pyx_v_after, __pyx_2); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":826 */ __pyx_5 = PyInt_FromLong(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;} __pyx_3 = PyNumber_Add(__pyx_v_i, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_v_first_pos); __pyx_v_first_pos = __pyx_3; __pyx_3 = 0; goto __pyx_L11; } __pyx_L11:; } Py_DECREF(__pyx_4); __pyx_4 = 0; goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":827 */ __pyx_2 = PyInt_FromLong((-1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_last_pos, __pyx_2, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":828 */ __pyx_5 = PyObject_GetAttr(__pyx_v_9objectify__TYPE_CHECKS, __pyx_n_append); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;} Py_INCREF(__pyx_v_entry); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_entry); __pyx_4 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; goto __pyx_L12; } if (PyObject_Cmp(__pyx_v_first_pos, __pyx_v_last_pos, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; goto __pyx_L1;} __pyx_1 = __pyx_1 > 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":830 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k81p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; goto __pyx_L1;} goto __pyx_L12; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":832 */ __pyx_5 = PyObject_GetAttr(__pyx_v_9objectify__TYPE_CHECKS, __pyx_n_insert); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; goto __pyx_L1;} __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; goto __pyx_L1;} Py_INCREF(__pyx_v_last_pos); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_last_pos); Py_INCREF(__pyx_v_entry); PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_entry); __pyx_4 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; } __pyx_L12:; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":834 */ if (PyObject_SetItem(__pyx_v_9objectify__PYTYPE_DICT, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":835 */ __pyx_2 = PyObject_GetIter(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; goto __pyx_L1;} for (;;) { __pyx_5 = PyIter_Next(__pyx_2); if (!__pyx_5) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_xs_type); __pyx_v_xs_type = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":836 */ if (PyObject_SetItem(__pyx_v_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;} } Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.PyType.register"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_item); Py_DECREF(__pyx_v_entry); Py_DECREF(__pyx_v_first_pos); Py_DECREF(__pyx_v_last_pos); Py_DECREF(__pyx_v_i); Py_DECREF(__pyx_v_check); Py_DECREF(__pyx_v_pytype); Py_DECREF(__pyx_v_xs_type); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_before); Py_DECREF(__pyx_v_after); return __pyx_r; } static PyObject *__pyx_n_get; static PyObject *__pyx_n_items; static PyObject *__pyx_f_9objectify_6PyType_unregister(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_6PyType_unregister(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_xs_type; PyObject *__pyx_v_pytype; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; Py_INCREF(__pyx_v_self); __pyx_v_xs_type = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":839 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify__PYTYPE_DICT, __pyx_n_get); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;} Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name); PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = __pyx_3 == __pyx_v_self; Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":840 */ if (PyObject_DelItem(__pyx_v_9objectify__PYTYPE_DICT, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":841 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify__SCHEMA_TYPE_DICT, __pyx_n_items); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_3 = PyObject_GetIter(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; for (;;) { __pyx_1 = PyIter_Next(__pyx_3); if (!__pyx_1) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} break; } __pyx_2 = PyObject_GetIter(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_v_xs_type); __pyx_v_xs_type = __pyx_1; __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_1; __pyx_1 = 0; if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":842 */ __pyx_4 = __pyx_v_pytype == __pyx_v_self; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":843 */ if (PyObject_DelItem(__pyx_v_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; goto __pyx_L1;} goto __pyx_L5; } __pyx_L5:; } Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":844 */ __pyx_4 = ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check == Py_None; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":845 */ __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":846 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":847 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify__TYPE_CHECKS, __pyx_n_remove); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L7;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L7;} Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check); PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->type_check); Py_INCREF(__pyx_v_self); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_self); __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L7;} PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L7;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; } goto __pyx_L8; __pyx_L7:; Py_XDECREF(__pyx_1); __pyx_1 = 0; Py_XDECREF(__pyx_3); __pyx_3 = 0; Py_XDECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":848 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; goto __pyx_L1;} __pyx_4 = PyErr_ExceptionMatches(__pyx_1); Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_4) { __Pyx_AddTraceback("objectify.unregister"); __pyx_3 = __Pyx_GetExcValue(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":849 */ goto __pyx_L8; } goto __pyx_L1; __pyx_L8:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify.PyType.unregister"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_xs_type); Py_DECREF(__pyx_v_pytype); Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_f_9objectify_6PyType_14xmlSchemaTypes___get__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_6PyType_14xmlSchemaTypes___get__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":857 */ Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types); __pyx_r = ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static int __pyx_f_9objectify_6PyType_14xmlSchemaTypes___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types); /*proto*/ static int __pyx_f_9objectify_6PyType_14xmlSchemaTypes___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types) { int __pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_types); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":859 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; goto __pyx_L1;} Py_INCREF(__pyx_v_types); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_types); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify_list, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types); ((struct __pyx_obj_9objectify_PyType *)__pyx_v_self)->_schema_types = __pyx_2; __pyx_2 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.PyType.xmlSchemaTypes.__set__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_types); return __pyx_r; } static PyObject *__pyx_n_integer; static PyObject *__pyx_n_positiveInteger; static PyObject *__pyx_n_negativeInteger; static PyObject *__pyx_n_nonNegativeInteger; static PyObject *__pyx_n_nonPositiveInteger; static PyObject *__pyx_n_unsignedInt; static PyObject *__pyx_n_short; static PyObject *__pyx_n_unsignedShort; static PyObject *__pyx_n_xmlSchemaTypes; static PyObject *__pyx_n_register; static PyObject *__pyx_n_unsignedLong; static PyObject *__pyx_n_double; static PyObject *__pyx_n_boolean; static PyObject *__pyx_n_str; static PyObject *__pyx_n_string; static PyObject *__pyx_n_normalizedString; static PyObject *__pyx_n_none; static PyObject *__pyx_f_9objectify__registerPyTypes(void) { PyObject *__pyx_v_pytype; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; __pyx_v_pytype = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":871 */ __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;} Py_INCREF(__pyx_n_int); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_int); Py_INCREF(__pyx_v_9objectify_int); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_9objectify_int); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_IntElement)); PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject*)__pyx_ptype_9objectify_IntElement)); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":872 */ __pyx_1 = PyTuple_New(9); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; goto __pyx_L1;} Py_INCREF(__pyx_n_integer); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_integer); Py_INCREF(__pyx_n_positiveInteger); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_positiveInteger); Py_INCREF(__pyx_n_negativeInteger); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_n_negativeInteger); Py_INCREF(__pyx_n_nonNegativeInteger); PyTuple_SET_ITEM(__pyx_1, 3, __pyx_n_nonNegativeInteger); Py_INCREF(__pyx_n_nonPositiveInteger); PyTuple_SET_ITEM(__pyx_1, 4, __pyx_n_nonPositiveInteger); Py_INCREF(__pyx_n_int); PyTuple_SET_ITEM(__pyx_1, 5, __pyx_n_int); Py_INCREF(__pyx_n_unsignedInt); PyTuple_SET_ITEM(__pyx_1, 6, __pyx_n_unsignedInt); Py_INCREF(__pyx_n_short); PyTuple_SET_ITEM(__pyx_1, 7, __pyx_n_short); Py_INCREF(__pyx_n_unsignedShort); PyTuple_SET_ITEM(__pyx_1, 8, __pyx_n_unsignedShort); if (PyObject_SetAttr(__pyx_v_pytype, __pyx_n_xmlSchemaTypes, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":875 */ __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":877 */ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; goto __pyx_L1;} Py_INCREF(__pyx_n_long); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_long); Py_INCREF(__pyx_v_9objectify_long); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_9objectify_long); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_LongElement)); PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject*)__pyx_ptype_9objectify_LongElement)); __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":878 */ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;} Py_INCREF(__pyx_n_long); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_long); Py_INCREF(__pyx_n_unsignedLong); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_unsignedLong); if (PyObject_SetAttr(__pyx_v_pytype, __pyx_n_xmlSchemaTypes, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":879 */ __pyx_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":881 */ __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; goto __pyx_L1;} Py_INCREF(__pyx_n_float); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_float); Py_INCREF(__pyx_v_9objectify_float); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_9objectify_float); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_FloatElement)); PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject*)__pyx_ptype_9objectify_FloatElement)); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":882 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; goto __pyx_L1;} Py_INCREF(__pyx_n_float); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_float); Py_INCREF(__pyx_n_double); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_n_double); if (PyObject_SetAttr(__pyx_v_pytype, __pyx_n_xmlSchemaTypes, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":883 */ __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":885 */ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n___checkBool); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;} __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;} Py_INCREF(__pyx_n_bool); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_bool); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_BoolElement)); PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject*)__pyx_ptype_9objectify_BoolElement)); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":886 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; goto __pyx_L1;} Py_INCREF(__pyx_n_boolean); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_boolean); if (PyObject_SetAttr(__pyx_v_pytype, __pyx_n_xmlSchemaTypes, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":887 */ __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":889 */ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; goto __pyx_L1;} Py_INCREF(__pyx_n_str); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_str); Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_2, 1, Py_None); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_StringElement)); PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject*)__pyx_ptype_9objectify_StringElement)); __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":890 */ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; goto __pyx_L1;} Py_INCREF(__pyx_n_string); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_string); Py_INCREF(__pyx_n_normalizedString); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_n_normalizedString); if (PyObject_SetAttr(__pyx_v_pytype, __pyx_n_xmlSchemaTypes, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":891 */ __pyx_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":893 */ __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; goto __pyx_L1;} Py_INCREF(__pyx_n_none); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_none); Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_1, 1, Py_None); Py_INCREF(((PyObject*)__pyx_ptype_9objectify_NoneElement)); PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject*)__pyx_ptype_9objectify_NoneElement)); __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_PyType), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":894 */ __pyx_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_register); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 894; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 894; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._registerPyTypes"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_pytype); return __pyx_r; } static PyObject *__pyx_n_add; static PyObject *__pyx_n_itervalues; static PyObject *__pyx_f_9objectify_getRegisteredTypes(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_getRegisteredTypes[] = "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 PyObject *__pyx_f_9objectify_getRegisteredTypes(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_types; PyObject *__pyx_v_known; PyObject *__pyx_v_check; PyObject *__pyx_v_pytype; PyObject *__pyx_v_name; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; __pyx_v_types = Py_None; Py_INCREF(Py_None); __pyx_v_known = Py_None; Py_INCREF(Py_None); __pyx_v_check = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":911 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; goto __pyx_L1;} Py_DECREF(__pyx_v_types); __pyx_v_types = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":912 */ __pyx_1 = PyObject_CallObject(__pyx_v_9objectify_set, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; goto __pyx_L1;} Py_DECREF(__pyx_v_known); __pyx_v_known = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":913 */ __pyx_1 = PyObject_GetIter(__pyx_v_9objectify__TYPE_CHECKS); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} for (;;) { __pyx_2 = PyIter_Next(__pyx_1); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} break; } __pyx_3 = PyObject_GetIter(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} Py_DECREF(__pyx_v_check); __pyx_v_check = __pyx_2; __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":914 */ __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_name); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 914; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":915 */ __pyx_4 = PySequence_Contains(__pyx_v_known, __pyx_v_name); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; goto __pyx_L1;} __pyx_4 = !__pyx_4; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":916 */ __pyx_3 = PyObject_GetAttr(__pyx_v_known, __pyx_n_add); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; goto __pyx_L1;} Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_name); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":917 */ __pyx_3 = PyObject_GetAttr(__pyx_v_types, __pyx_n_append); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;} Py_INCREF(__pyx_v_pytype); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_pytype); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L4; } __pyx_L4:; } Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":918 */ __pyx_3 = PyObject_GetAttr(__pyx_v_9objectify__PYTYPE_DICT, __pyx_n_itervalues); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_3, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_5 = PyObject_GetIter(__pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; for (;;) { __pyx_1 = PyIter_Next(__pyx_5); if (!__pyx_1) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":919 */ __pyx_3 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_name); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":920 */ __pyx_4 = PySequence_Contains(__pyx_v_known, __pyx_v_name); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;} __pyx_4 = !__pyx_4; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":921 */ __pyx_2 = PyObject_GetAttr(__pyx_v_known, __pyx_n_add); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;} Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_name); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":922 */ __pyx_2 = PyObject_GetAttr(__pyx_v_types, __pyx_n_append); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 922; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 922; goto __pyx_L1;} Py_INCREF(__pyx_v_pytype); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_pytype); __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 922; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; goto __pyx_L7; } __pyx_L7:; } Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":923 */ Py_INCREF(__pyx_v_types); __pyx_r = __pyx_v_types; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.getRegisteredTypes"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_types); Py_DECREF(__pyx_v_known); Py_DECREF(__pyx_v_check); Py_DECREF(__pyx_v_pytype); Py_DECREF(__pyx_v_name); return __pyx_r; } static PyObject *__pyx_k104p; static char (__pyx_k104[]) = ""; static PyObject *__pyx_f_9objectify__guessElementClass(xmlNode (*__pyx_v_c_node)) { PyObject *__pyx_v_value; PyObject *__pyx_v_errors; PyObject *__pyx_v_type_check; PyObject *__pyx_v_pytype; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; __pyx_v_value = Py_None; Py_INCREF(Py_None); __pyx_v_errors = Py_None; Py_INCREF(Py_None); __pyx_v_type_check = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":926 */ __pyx_1 = textOf(__pyx_v_c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":927 */ __pyx_2 = __pyx_v_value == Py_None; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":928 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":929 */ if (PyObject_Cmp(__pyx_v_value, __pyx_k104p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;} __pyx_2 = __pyx_2 == 0; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":930 */ Py_INCREF(((PyObject*)__pyx_ptype_9objectify_StringElement)); __pyx_r = ((PyObject*)__pyx_ptype_9objectify_StringElement); goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":931 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;} __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); __pyx_1 = 0; __pyx_3 = 0; Py_DECREF(__pyx_v_errors); __pyx_v_errors = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":932 */ __pyx_1 = PyObject_GetIter(__pyx_v_9objectify__TYPE_CHECKS); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} for (;;) { __pyx_3 = PyIter_Next(__pyx_1); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} break; } __pyx_4 = PyObject_GetIter(__pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} Py_DECREF(__pyx_v_type_check); __pyx_v_type_check = __pyx_3; __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_3; __pyx_3 = 0; if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":933 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":934 */ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L6;} Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_value); __pyx_4 = PyObject_CallObject(__pyx_v_type_check, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L6;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":935 */ Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_pytype)->_type); __pyx_r = ((struct __pyx_obj_9objectify_PyType *)__pyx_v_pytype)->_type; Py_DECREF(__pyx_1); __pyx_1 = 0; goto __pyx_L0; } goto __pyx_L7; __pyx_L6:; Py_XDECREF(__pyx_3); __pyx_3 = 0; Py_XDECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":936 */ __pyx_2 = PyErr_ExceptionMatches(__pyx_v_errors); if (__pyx_2) { __Pyx_AddTraceback("objectify._guessElementClass"); __pyx_3 = __Pyx_GetExcValue(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":937 */ goto __pyx_L7; } goto __pyx_L1; __pyx_L7:; } Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":938 */ Py_INCREF(Py_None); __pyx_r = Py_None; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify._guessElementClass"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_errors); Py_DECREF(__pyx_v_type_check); Py_DECREF(__pyx_v_pytype); return __pyx_r; } static PyObject *__pyx_f_9objectify_enableRecursiveStr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_enableRecursiveStr[] = "Enable a recursively generated tree representation for str(element),\n based on objectify.dump(element).\n "; static PyObject *__pyx_f_9objectify_enableRecursiveStr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_on = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; static char *__pyx_argnames[] = {"on",0}; __pyx_v_on = __pyx_k20; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_on)) return 0; Py_INCREF(__pyx_v_on); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":952 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;} Py_INCREF(__pyx_v_on); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_on); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify_bool, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_3 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_v_9objectify___RECURSIVE_STR = __pyx_3; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.enableRecursiveStr"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_on); return __pyx_r; } static PyObject *__pyx_f_9objectify_dump(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_dump[] = "Return a recursively generated string representation of an element.\n "; static PyObject *__pyx_f_9objectify_dump(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct LxmlElement *__pyx_v_element = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; static char *__pyx_argnames[] = {"element",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_element)) return 0; Py_INCREF(__pyx_v_element); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_11etreepublic__Element, 0, "element")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":957 */ __pyx_1 = __pyx_f_9objectify__dump(__pyx_v_element,0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; goto __pyx_L1;} __pyx_r = __pyx_1; __pyx_1 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.dump"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_element); return __pyx_r; } static PyObject *__pyx_n_strip; static PyObject *__pyx_n_iterchildren; static PyObject *__pyx_k105p; static PyObject *__pyx_k106p; static PyObject *__pyx_k107p; static PyObject *__pyx_k108p; static PyObject *__pyx_k109p; static PyObject *__pyx_k110p; static PyObject *__pyx_k111p; static char (__pyx_k105[]) = " "; static char (__pyx_k106[]) = "%s%s = %s [%s]\n"; static char (__pyx_k107[]) = "{%s}"; static char (__pyx_k108[]) = "{%s}"; static char (__pyx_k109[]) = "py:"; static char (__pyx_k110[]) = "xsi:"; static char (__pyx_k111[]) = "%s * %s = %r\n"; static PyObject *__pyx_f_9objectify__dump(struct LxmlElement *__pyx_v_element,int __pyx_v_indent) { PyObject *__pyx_v_indentstr; PyObject *__pyx_v_value; PyObject *__pyx_v_result; PyObject *__pyx_v_xsi_ns; PyObject *__pyx_v_pytype_ns; PyObject *__pyx_v_name; PyObject *__pyx_v_child; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF(__pyx_v_element); __pyx_v_indentstr = Py_None; Py_INCREF(Py_None); __pyx_v_value = Py_None; Py_INCREF(Py_None); __pyx_v_result = Py_None; Py_INCREF(Py_None); __pyx_v_xsi_ns = Py_None; Py_INCREF(Py_None); __pyx_v_pytype_ns = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); __pyx_v_child = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":960 */ __pyx_1 = PyInt_FromLong(__pyx_v_indent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;} __pyx_2 = PyNumber_Multiply(__pyx_k105p, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_indentstr); __pyx_v_indentstr = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":961 */ __pyx_3 = isinstance(((PyObject *)__pyx_v_element),((PyObject*)__pyx_ptype_9objectify_ObjectifiedDataElement)); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":962 */ __pyx_1 = repr(((PyObject *)__pyx_v_element)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_1; __pyx_1 = 0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":964 */ __pyx_2 = textOf(__pyx_v_element->_c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":965 */ __pyx_3 = __pyx_v_value != Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":966 */ __pyx_1 = PyObject_GetAttr(__pyx_v_value, __pyx_n_strip); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_3 = (PyString_GET_SIZE(__pyx_2) == 0); Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":967 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_value); __pyx_v_value = Py_None; goto __pyx_L4; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":969 */ __pyx_1 = repr(__pyx_v_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_1; __pyx_1 = 0; } __pyx_L4:; goto __pyx_L3; } __pyx_L3:; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":970 */ __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; goto __pyx_L1;} __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;} Py_INCREF(((PyObject *)__pyx_v_element)); PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)__pyx_v_element)); __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyObject_GetAttr(__pyx_5, __pyx_n___name__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __pyx_4 = PyTuple_New(4); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; goto __pyx_L1;} Py_INCREF(__pyx_v_indentstr); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_indentstr); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_value); PyTuple_SET_ITEM(__pyx_4, 3, __pyx_1); __pyx_2 = 0; __pyx_1 = 0; __pyx_5 = PyNumber_Remainder(__pyx_k106p, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_v_result); __pyx_v_result = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":972 */ __pyx_2 = PyNumber_Remainder(__pyx_k107p, __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;} Py_DECREF(__pyx_v_xsi_ns); __pyx_v_xsi_ns = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":973 */ __pyx_1 = PyNumber_Remainder(__pyx_k108p, __pyx_v_9objectify_PYTYPE_NAMESPACE); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 973; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype_ns); __pyx_v_pytype_ns = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":974 */ __pyx_4 = iterattributes(__pyx_v_element,3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} __pyx_5 = PyObject_GetIter(__pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; for (;;) { __pyx_2 = PyIter_Next(__pyx_5); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} break; } __pyx_1 = PyObject_GetIter(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_4; __pyx_4 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":975 */ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_PYTYPE_ATTRIBUTE); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_name, __pyx_4, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; goto __pyx_L1;} __pyx_3 = __pyx_3 == 0; Py_DECREF(__pyx_4); __pyx_4 = 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":976 */ if (PyObject_Cmp(__pyx_v_value, __pyx_v_9objectify_TREE_PYTYPE, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; goto __pyx_L1;} __pyx_3 = __pyx_3 == 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":977 */ goto __pyx_L5; goto __pyx_L8; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":979 */ __pyx_2 = PyObject_GetAttr(__pyx_v_name, __pyx_n_replace); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; goto __pyx_L1;} __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; goto __pyx_L1;} Py_INCREF(__pyx_v_pytype_ns); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_pytype_ns); Py_INCREF(__pyx_k109p); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_k109p); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_4; __pyx_4 = 0; } __pyx_L8:; goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":980 */ __pyx_2 = PyObject_GetAttr(__pyx_v_name, __pyx_n_replace); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; goto __pyx_L1;} __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; goto __pyx_L1;} Py_INCREF(__pyx_v_xsi_ns); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_xsi_ns); Py_INCREF(__pyx_k110p); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_k110p); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":981 */ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; goto __pyx_L1;} Py_INCREF(__pyx_v_indentstr); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_indentstr); Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_name); Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_value); __pyx_1 = PyNumber_Remainder(__pyx_k111p, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyNumber_Add(__pyx_v_result, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_result); __pyx_v_result = __pyx_4; __pyx_4 = 0; __pyx_L5:; } Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":983 */ __pyx_v_indent = (__pyx_v_indent + 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":984 */ __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_n_iterchildren); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyObject_GetIter(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; for (;;) { __pyx_5 = PyIter_Next(__pyx_4); if (!__pyx_5) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_child); __pyx_v_child = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":985 */ if (!__Pyx_TypeTest(__pyx_v_child, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; goto __pyx_L1;} __pyx_2 = __pyx_f_9objectify__dump(((struct LxmlElement *)__pyx_v_child),__pyx_v_indent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; goto __pyx_L1;} __pyx_1 = PyNumber_Add(__pyx_v_result, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_result); __pyx_v_result = __pyx_1; __pyx_1 = 0; } Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":986 */ __pyx_3 = (__pyx_v_indent == 1); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":987 */ __pyx_5 = PySequence_GetSlice(__pyx_v_result, 0, (-1)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; goto __pyx_L1;} __pyx_r = __pyx_5; __pyx_5 = 0; goto __pyx_L0; goto __pyx_L11; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":989 */ Py_INCREF(__pyx_v_result); __pyx_r = __pyx_v_result; goto __pyx_L0; } __pyx_L11:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify._dump"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_indentstr); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_result); Py_DECREF(__pyx_v_xsi_ns); Py_DECREF(__pyx_v_pytype_ns); Py_DECREF(__pyx_v_name); Py_DECREF(__pyx_v_child); Py_DECREF(__pyx_v_element); return __pyx_r; } static int __pyx_f_9objectify_27ObjectifyElementClassLookup___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_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 (defauls to StringElement).\n "; static int __pyx_f_9objectify_27ObjectifyElementClassLookup___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; int __pyx_1; static char *__pyx_argnames[] = {"tree_class","empty_data_class",0}; __pyx_v_tree_class = __pyx_k21; __pyx_v_empty_data_class = __pyx_k22; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|OO", __pyx_argnames, &__pyx_v_tree_class, &__pyx_v_empty_data_class)) return -1; Py_INCREF((PyObject *)__pyx_v_self); Py_INCREF(__pyx_v_tree_class); Py_INCREF(__pyx_v_empty_data_class); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1009 */ ((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->__pyx_base._lookup_function = __pyx_f_9objectify__lookupElementClass; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1010 */ __pyx_1 = __pyx_v_tree_class == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1011 */ Py_INCREF(((PyObject*)__pyx_ptype_9objectify_ObjectifiedElement)); Py_DECREF(__pyx_v_tree_class); __pyx_v_tree_class = ((PyObject*)__pyx_ptype_9objectify_ObjectifiedElement); goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1012 */ Py_INCREF(__pyx_v_tree_class); Py_DECREF(((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class); ((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class = __pyx_v_tree_class; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1013 */ __pyx_1 = __pyx_v_empty_data_class == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1014 */ Py_INCREF(((PyObject*)__pyx_ptype_9objectify_StringElement)); Py_DECREF(__pyx_v_empty_data_class); __pyx_v_empty_data_class = ((PyObject*)__pyx_ptype_9objectify_StringElement); goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1015 */ Py_INCREF(__pyx_v_empty_data_class); Py_DECREF(((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class); ((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class = __pyx_v_empty_data_class; __pyx_r = 0; Py_DECREF((PyObject *)__pyx_v_self); Py_DECREF(__pyx_v_tree_class); Py_DECREF(__pyx_v_empty_data_class); return __pyx_r; } static char (__pyx_k113[]) = "nil"; static char (__pyx_k114[]) = "type"; static PyObject *__pyx_f_9objectify__lookupElementClass(PyObject *__pyx_v_state,struct LxmlDocument *__pyx_v_doc,xmlNode (*__pyx_v_c_node)) { struct __pyx_obj_9objectify_ObjectifyElementClassLookup *__pyx_v_lookup; PyObject (*__pyx_v_dict_result); PyObject *__pyx_v_value; PyObject *__pyx_v_el_class; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; Py_INCREF(__pyx_v_state); Py_INCREF(__pyx_v_doc); __pyx_v_lookup = ((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)Py_None); Py_INCREF(Py_None); __pyx_v_value = Py_None; Py_INCREF(Py_None); __pyx_v_el_class = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1020 */ Py_INCREF(((PyObject *)((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_state))); Py_DECREF(((PyObject *)__pyx_v_lookup)); __pyx_v_lookup = ((struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)__pyx_v_state); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1022 */ __pyx_1 = (findChildForwards(__pyx_v_c_node,0) != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1023 */ Py_INCREF(__pyx_v_lookup->tree_class); __pyx_r = __pyx_v_lookup->tree_class; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1026 */ __pyx_2 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS,__pyx_k113); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; goto __pyx_L1;} if (PyObject_Cmp(__pyx_n_true, __pyx_2, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1028 */ Py_INCREF(((PyObject*)__pyx_ptype_9objectify_NoneElement)); __pyx_r = ((PyObject*)__pyx_ptype_9objectify_NoneElement); goto __pyx_L0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1031 */ __pyx_2 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__PYTYPE_NAMESPACE,__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1033 */ __pyx_1 = __pyx_v_value != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1034 */ if (PyObject_Cmp(__pyx_v_value, __pyx_v_9objectify_TREE_PYTYPE, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1034; goto __pyx_L1;} __pyx_1 = __pyx_1 == 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1035 */ Py_INCREF(__pyx_v_lookup->tree_class); __pyx_r = __pyx_v_lookup->tree_class; goto __pyx_L0; goto __pyx_L5; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1036 */ __pyx_v_dict_result = PyDict_GetItem(__pyx_v_9objectify__PYTYPE_DICT,__pyx_v_value); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1037 */ __pyx_1 = (__pyx_v_dict_result != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1038 */ __pyx_2 = (PyObject *)__pyx_v_dict_result; Py_INCREF(__pyx_2); Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_2)->_type); __pyx_r = ((struct __pyx_obj_9objectify_PyType *)__pyx_2)->_type; Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1042 */ __pyx_2 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS,__pyx_k114); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1045 */ __pyx_1 = __pyx_v_value != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1046 */ __pyx_v_dict_result = PyDict_GetItem(__pyx_v_9objectify__SCHEMA_TYPE_DICT,__pyx_v_value); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1047 */ __pyx_1 = (__pyx_v_dict_result != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1048 */ __pyx_2 = (PyObject *)__pyx_v_dict_result; Py_INCREF(__pyx_2); Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_2)->_type); __pyx_r = ((struct __pyx_obj_9objectify_PyType *)__pyx_2)->_type; Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L0; goto __pyx_L8; } __pyx_L8:; goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1051 */ __pyx_2 = __pyx_f_9objectify__guessElementClass(__pyx_v_c_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1051; goto __pyx_L1;} Py_DECREF(__pyx_v_el_class); __pyx_v_el_class = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1052 */ __pyx_1 = __pyx_v_el_class != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1053 */ Py_INCREF(__pyx_v_el_class); __pyx_r = __pyx_v_el_class; goto __pyx_L0; goto __pyx_L9; } __pyx_L9:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1056 */ __pyx_1 = (__pyx_v_c_node->parent == NULL); if (!__pyx_1) { __pyx_1 = (!_isElement(__pyx_v_c_node->parent)); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1057 */ Py_INCREF(__pyx_v_lookup->tree_class); __pyx_r = __pyx_v_lookup->tree_class; goto __pyx_L0; goto __pyx_L10; } __pyx_L10:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1059 */ Py_INCREF(__pyx_v_lookup->empty_data_class); __pyx_r = __pyx_v_lookup->empty_data_class; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._lookupElementClass"); __pyx_r = 0; __pyx_L0:; Py_DECREF((PyObject *)__pyx_v_lookup); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_el_class); Py_DECREF(__pyx_v_state); Py_DECREF(__pyx_v_doc); return __pyx_r; } static PyObject *__pyx_n___call__; static PyObject *__pyx_k115p; static char (__pyx_k115[]) = "."; static int __pyx_f_9objectify_10ObjectPath___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_f_9objectify_10ObjectPath___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_path = 0; int __pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; __pyx_t_9objectify__ObjectPath (*__pyx_5); static char *__pyx_argnames[] = {"path",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_path)) return -1; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_path); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1081 */ __pyx_1 = _isString(__pyx_v_path); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1082 */ __pyx_2 = __pyx_f_9objectify__parseObjectPathString(__pyx_v_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; goto __pyx_L1;} Py_DECREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path); ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1083 */ Py_INCREF(__pyx_v_path); Py_DECREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str); ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str = __pyx_v_path; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1085 */ __pyx_2 = __pyx_f_9objectify__parseObjectPathList(__pyx_v_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; goto __pyx_L1;} Py_DECREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path); ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1086 */ __pyx_2 = PyObject_GetAttr(__pyx_k115p, __pyx_n_join); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_path); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str); ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str = __pyx_4; __pyx_4 = 0; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1087 */ ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_len = PyList_GET_SIZE(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1088 */ __pyx_5 = __pyx_f_9objectify__buildObjectPathSegments(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path); if (__pyx_5 == NULL) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1088; goto __pyx_L1;} ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path = __pyx_5; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1089 */ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n___call__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; goto __pyx_L1;} Py_DECREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->find); ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->find = __pyx_2; __pyx_2 = 0; __pyx_r = 0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.ObjectPath.__init__"); __pyx_r = -1; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_path); return __pyx_r; } static void __pyx_f_9objectify_10ObjectPath___dealloc__(PyObject *__pyx_v_self); /*proto*/ static void __pyx_f_9objectify_10ObjectPath___dealloc__(PyObject *__pyx_v_self) { int __pyx_1; Py_INCREF(__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1092 */ __pyx_1 = (((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1093 */ PyMem_Free(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path); goto __pyx_L2; } __pyx_L2:; Py_DECREF(__pyx_v_self); } static PyObject *__pyx_f_9objectify_10ObjectPath___str__(PyObject *__pyx_v_self); /*proto*/ static PyObject *__pyx_f_9objectify_10ObjectPath___str__(PyObject *__pyx_v_self) { PyObject *__pyx_r; Py_INCREF(__pyx_v_self); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1096 */ Py_INCREF(((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str); __pyx_r = ((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_str; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); __pyx_L0:; Py_DECREF(__pyx_v_self); return __pyx_r; } static PyObject *__pyx_k116p; static char (__pyx_k116[]) = "invalid number of arguments: needs one or two"; static PyObject *__pyx_f_9objectify_10ObjectPath___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_10ObjectPath___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 "; static PyObject *__pyx_f_9objectify_10ObjectPath___call__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct LxmlElement *__pyx_v_root = 0; PyObject *__pyx_v_default = 0; Py_ssize_t __pyx_v_use_default; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"root",0}; if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 1, &__pyx_v_default, 0) < 0) return 0; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_root)) { Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); Py_XDECREF(__pyx_v_default); return 0; } Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_root); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_11etreepublic__Element, 0, "root")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1098; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1106 */ __pyx_v_use_default = PyTuple_GET_SIZE(__pyx_v_default); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1107 */ __pyx_1 = (__pyx_v_use_default == 1); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1108 */ __pyx_2 = PyTuple_GET_ITEM(__pyx_v_default,0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; goto __pyx_L1;} Py_DECREF(__pyx_v_default); __pyx_v_default = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1109 */ Py_INCREF(__pyx_v_default); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1110 */ __pyx_v_use_default = 1; goto __pyx_L2; } __pyx_1 = (__pyx_v_use_default > 1); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1112 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k116p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1113 */ __pyx_2 = __pyx_f_9objectify__findObjectPath(__pyx_v_root,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_len,__pyx_v_default,__pyx_v_use_default); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; goto __pyx_L1;} __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.ObjectPath.__call__"); __pyx_r = 0; __pyx_L0:; Py_XDECREF(__pyx_v_default); Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_root); Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); return __pyx_r; } static PyObject *__pyx_f_9objectify_10ObjectPath_hasattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_f_9objectify_10ObjectPath_hasattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct LxmlElement *__pyx_v_root = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; static char *__pyx_argnames[] = {"root",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_root)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_root); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_11etreepublic__Element, 0, "root")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1116; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1117 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1118 */ __pyx_1 = __pyx_f_9objectify__findObjectPath(__pyx_v_root,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_len,Py_None,0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1118; goto __pyx_L2;} Py_DECREF(__pyx_1); __pyx_1 = 0; } goto __pyx_L3; __pyx_L2:; Py_XDECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1119 */ __pyx_2 = PyErr_ExceptionMatches(__pyx_v_9objectify_AttributeError); if (__pyx_2) { __Pyx_AddTraceback("objectify.hasattr"); __pyx_1 = __Pyx_GetExcValue(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1119; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1120 */ Py_INCREF(__pyx_v_9objectify_False); __pyx_r = __pyx_v_9objectify_False; goto __pyx_L0; goto __pyx_L3; } goto __pyx_L1; __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1121 */ Py_INCREF(__pyx_v_9objectify_True); __pyx_r = __pyx_v_9objectify_True; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectPath.hasattr"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_root); return __pyx_r; } static PyObject *__pyx_f_9objectify_10ObjectPath_setattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_10ObjectPath_setattr[] = "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 PyObject *__pyx_f_9objectify_10ObjectPath_setattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct LxmlElement *__pyx_v_root = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; static char *__pyx_argnames[] = {"root","value",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_root, &__pyx_v_value)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_root); Py_INCREF(__pyx_v_value); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_11etreepublic__Element, 0, "root")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1128 */ __pyx_1 = __pyx_f_9objectify__createObjectPath(__pyx_v_root,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_len,1,__pyx_v_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectPath.setattr"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_root); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_f_9objectify_10ObjectPath_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_10ObjectPath_addattr[] = "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 PyObject *__pyx_f_9objectify_10ObjectPath_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { struct LxmlElement *__pyx_v_root = 0; PyObject *__pyx_v_value = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; static char *__pyx_argnames[] = {"root","value",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_root, &__pyx_v_value)) return 0; Py_INCREF(__pyx_v_self); Py_INCREF(__pyx_v_root); Py_INCREF(__pyx_v_value); if (!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_11etreepublic__Element, 0, "root")) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1135 */ __pyx_1 = __pyx_f_9objectify__createObjectPath(__pyx_v_root,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_c_path,((struct __pyx_obj_9objectify_ObjectPath *)__pyx_v_self)->_path_len,0,__pyx_v_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify.ObjectPath.addattr"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_self); Py_DECREF(__pyx_v_root); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_n_groups; static PyObject *__pyx_n_end; static PyObject *__pyx_k117p; static PyObject *__pyx_k118p; static PyObject *__pyx_k119p; static char (__pyx_k117[]) = "index not allowed on root node"; static char (__pyx_k118[]) = "invalid path"; static char (__pyx_k119[]) = "invalid path"; static PyObject *__pyx_f_9objectify__parseObjectPathString(PyObject *__pyx_v_path) { int __pyx_v_has_dot; PyObject *__pyx_v_new_path; PyObject *__pyx_v_path_pos; PyObject *__pyx_v_match; PyObject *__pyx_v_dot; PyObject *__pyx_v_ns; PyObject *__pyx_v_name; PyObject *__pyx_v_index; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; Py_INCREF(__pyx_v_path); __pyx_v_new_path = Py_None; Py_INCREF(Py_None); __pyx_v_path_pos = Py_None; Py_INCREF(Py_None); __pyx_v_match = Py_None; Py_INCREF(Py_None); __pyx_v_dot = Py_None; Py_INCREF(Py_None); __pyx_v_ns = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); __pyx_v_index = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1147 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; goto __pyx_L1;} Py_DECREF(__pyx_v_new_path); __pyx_v_new_path = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1148 */ __pyx_1 = PyObject_GetAttr(__pyx_v_path, __pyx_n_strip); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = utf8(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_path); __pyx_v_path = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1149 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;} Py_DECREF(__pyx_v_path_pos); __pyx_v_path_pos = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1150 */ while (1) { __pyx_3 = (PyString_GET_SIZE(__pyx_v_path) > 0); if (!__pyx_3) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1151 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_path); Py_INCREF(__pyx_v_path_pos); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_path_pos); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify___MATCH_PATH_SEGMENT, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_match); __pyx_v_match = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1152 */ __pyx_3 = __pyx_v_match == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1153 */ goto __pyx_L3; goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1155 */ __pyx_1 = PyObject_GetAttr(__pyx_v_match, __pyx_n_groups); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_GetIter(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_v_dot); __pyx_v_dot = __pyx_2; __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_v_ns); __pyx_v_ns = __pyx_2; __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_2; __pyx_2 = 0; __pyx_2 = __Pyx_UnpackItem(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_2; __pyx_2 = 0; if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1156 */ __pyx_3 = __pyx_v_index == Py_None; if (!__pyx_3) { __pyx_3 = (PyString_GET_SIZE(__pyx_v_index) == 0); } if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1157 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1157; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_2; __pyx_2 = 0; goto __pyx_L5; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1159 */ __pyx_1 = PyNumber_Int(__pyx_v_index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_1; __pyx_1 = 0; } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1160 */ __pyx_v_has_dot = ((_cstr(__pyx_v_dot)[0]) == '.'); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1161 */ __pyx_3 = (PyList_GET_SIZE(__pyx_v_new_path) == 0); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1162 */ __pyx_3 = __pyx_v_has_dot; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1164 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; goto __pyx_L1;} __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; goto __pyx_L1;} Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_1, 0, Py_None); Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_1, 1, Py_None); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_2); __pyx_2 = 0; __pyx_3 = PyList_Append(__pyx_v_new_path,__pyx_1); if (__pyx_3 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; goto __pyx_L7; } __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_index, __pyx_2, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} __pyx_3 = __pyx_3 != 0; Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1166 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1166; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k117p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1166; goto __pyx_L1;} goto __pyx_L7; } __pyx_L7:; goto __pyx_L6; } __pyx_3 = (!__pyx_v_has_dot); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1168 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1168; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k118p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1168; goto __pyx_L1;} goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1169 */ __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} Py_INCREF(__pyx_v_ns); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_ns); Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_name); Py_INCREF(__pyx_v_index); PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_index); __pyx_3 = PyList_Append(__pyx_v_new_path,__pyx_1); if (__pyx_3 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1171 */ __pyx_2 = PyObject_GetAttr(__pyx_v_match, __pyx_n_end); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} __pyx_1 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_path_pos); __pyx_v_path_pos = __pyx_1; __pyx_1 = 0; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1172 */ __pyx_3 = (PyList_GET_SIZE(__pyx_v_new_path) == 0); if (!__pyx_3) { __pyx_2 = PyInt_FromSsize_t(PyString_GET_SIZE(__pyx_v_path)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1173; goto __pyx_L1;} if (PyObject_Cmp(__pyx_2, __pyx_v_path_pos, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1173; goto __pyx_L1;} __pyx_3 = __pyx_3 > 0; Py_DECREF(__pyx_2); __pyx_2 = 0; } if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1174 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k119p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; goto __pyx_L1;} goto __pyx_L8; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1175 */ Py_INCREF(__pyx_v_new_path); __pyx_r = __pyx_v_new_path; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify._parseObjectPathString"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_new_path); Py_DECREF(__pyx_v_path_pos); Py_DECREF(__pyx_v_match); Py_DECREF(__pyx_v_dot); Py_DECREF(__pyx_v_ns); Py_DECREF(__pyx_v_name); Py_DECREF(__pyx_v_index); Py_DECREF(__pyx_v_path); return __pyx_r; } static PyObject *__pyx_k120p; static PyObject *__pyx_k121p; static PyObject *__pyx_k122p; static PyObject *__pyx_k123p; static char (__pyx_k120[]) = ""; static char (__pyx_k121[]) = "index must be enclosed in []"; static char (__pyx_k122[]) = "index not allowed on root node"; static char (__pyx_k123[]) = "invalid path"; static PyObject *__pyx_f_9objectify__parseObjectPathList(PyObject *__pyx_v_path) { char (*__pyx_v_index_pos); char (*__pyx_v_index_end); char (*__pyx_v_c_name); PyObject *__pyx_v_new_path; PyObject *__pyx_v_item; PyObject *__pyx_v_ns; PyObject *__pyx_v_name; PyObject *__pyx_v_index; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; Py_INCREF(__pyx_v_path); __pyx_v_new_path = Py_None; Py_INCREF(Py_None); __pyx_v_item = Py_None; Py_INCREF(Py_None); __pyx_v_ns = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); __pyx_v_index = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1184 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1184; goto __pyx_L1;} Py_DECREF(__pyx_v_new_path); __pyx_v_new_path = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1185 */ __pyx_1 = PyObject_GetIter(__pyx_v_path); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; goto __pyx_L1;} for (;;) { __pyx_2 = PyIter_Next(__pyx_1); if (!__pyx_2) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; goto __pyx_L1;} break; } Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1186 */ __pyx_2 = PyObject_GetAttr(__pyx_v_item, __pyx_n_strip); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; goto __pyx_L1;} __pyx_3 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_item); __pyx_v_item = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1187 */ __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 0); if (__pyx_4) { if (PyObject_Cmp(__pyx_v_item, __pyx_k120p, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1187; goto __pyx_L1;} __pyx_4 = __pyx_4 == 0; } if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1189 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_ns); __pyx_v_ns = Py_None; Py_INCREF(Py_None); Py_DECREF(__pyx_v_name); __pyx_v_name = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1190 */ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_2; __pyx_2 = 0; goto __pyx_L4; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1192 */ __pyx_3 = getNsTag(__pyx_v_item); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} __pyx_2 = PyObject_GetIter(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} Py_DECREF(__pyx_v_ns); __pyx_v_ns = __pyx_3; __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_3; __pyx_3 = 0; if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1193 */ __pyx_v_c_name = _cstr(__pyx_v_name); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1194 */ __pyx_v_index_pos = strchr(__pyx_v_c_name,'['); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1195 */ __pyx_4 = (__pyx_v_index_pos == NULL); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1196 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1196; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_3; __pyx_3 = 0; goto __pyx_L5; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1198 */ __pyx_2 = PyString_FromStringAndSize(__pyx_v_c_name,((Py_ssize_t )(__pyx_v_index_pos - __pyx_v_c_name))); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1198; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1200 */ __pyx_v_index_pos = (__pyx_v_index_pos + 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1201 */ __pyx_v_index_end = strchr(__pyx_v_index_pos,']'); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1202 */ __pyx_4 = (__pyx_v_index_end == NULL); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1203 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1203; goto __pyx_L1;} __Pyx_Raise(__pyx_3, __pyx_k121p, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1203; goto __pyx_L1;} goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1204 */ __pyx_2 = PyString_FromStringAndSize(__pyx_v_index_pos,((Py_ssize_t )(__pyx_v_index_end - __pyx_v_index_pos))); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; goto __pyx_L1;} __pyx_3 = PyNumber_Int(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1207 */ __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 0); if (__pyx_4) { __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_index, __pyx_2, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; goto __pyx_L1;} __pyx_4 = __pyx_4 != 0; Py_DECREF(__pyx_2); __pyx_2 = 0; } if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1208 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;} __Pyx_Raise(__pyx_3, __pyx_k122p, 0); Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;} goto __pyx_L7; } __pyx_L7:; } __pyx_L5:; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1209 */ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} Py_INCREF(__pyx_v_ns); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_ns); Py_INCREF(__pyx_v_name); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_name); Py_INCREF(__pyx_v_index); PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_index); __pyx_4 = PyList_Append(__pyx_v_new_path,__pyx_2); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; } Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1210 */ __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 0); if (!__pyx_4) { __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 1); if (__pyx_4) { __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1212; goto __pyx_L1;} __pyx_2 = PyObject_GetItem(__pyx_v_new_path, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1212; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1212; goto __pyx_L1;} __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1212; goto __pyx_L1;} Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_3, 0, Py_None); Py_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_3, 1, Py_None); PyTuple_SET_ITEM(__pyx_3, 2, __pyx_1); __pyx_1 = 0; if (PyObject_Cmp(__pyx_2, __pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1212; goto __pyx_L1;} __pyx_4 = __pyx_4 == 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; } } if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1213 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; goto __pyx_L1;} __Pyx_Raise(__pyx_1, __pyx_k123p, 0); Py_DECREF(__pyx_1); __pyx_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; goto __pyx_L1;} goto __pyx_L8; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1214 */ Py_INCREF(__pyx_v_new_path); __pyx_r = __pyx_v_new_path; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify._parseObjectPathList"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_new_path); Py_DECREF(__pyx_v_item); Py_DECREF(__pyx_v_ns); Py_DECREF(__pyx_v_name); Py_DECREF(__pyx_v_index); Py_DECREF(__pyx_v_path); return __pyx_r; } static PyObject *__pyx_n_PyErr_NoMemory; static __pyx_t_9objectify__ObjectPath (*__pyx_f_9objectify__buildObjectPathSegments(PyObject *__pyx_v_path_list)) { __pyx_t_9objectify__ObjectPath (*__pyx_v_c_path); __pyx_t_9objectify__ObjectPath (*__pyx_v_c_path_segments); Py_ssize_t __pyx_v_c_len; PyObject *__pyx_v_href; PyObject *__pyx_v_name; PyObject *__pyx_v_index; __pyx_t_9objectify__ObjectPath (*__pyx_r); int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; Py_ssize_t __pyx_5; Py_INCREF(__pyx_v_path_list); __pyx_v_href = Py_None; Py_INCREF(Py_None); __pyx_v_name = Py_None; Py_INCREF(Py_None); __pyx_v_index = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1220 */ __pyx_v_c_len = PyList_GET_SIZE(__pyx_v_path_list); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1221 */ __pyx_v_c_path_segments = ((__pyx_t_9objectify__ObjectPath (*))PyMem_Malloc(((sizeof(__pyx_t_9objectify__ObjectPath )) * __pyx_v_c_len))); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1223 */ __pyx_1 = (__pyx_v_c_path_segments == NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1224 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_PyErr_NoMemory); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; goto __pyx_L1;} __pyx_3 = PyObject_CallObject(__pyx_2, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1225 */ __pyx_r = NULL; goto __pyx_L0; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1226 */ __pyx_v_c_path = __pyx_v_c_path_segments; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1227 */ __pyx_2 = PyObject_GetIter(__pyx_v_path_list); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} for (;;) { __pyx_3 = PyIter_Next(__pyx_2); if (!__pyx_3) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} break; } __pyx_4 = PyObject_GetIter(__pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} Py_DECREF(__pyx_v_href); __pyx_v_href = __pyx_3; __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} Py_DECREF(__pyx_v_name); __pyx_v_name = __pyx_3; __pyx_3 = 0; __pyx_3 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} Py_DECREF(__pyx_v_index); __pyx_v_index = __pyx_3; __pyx_3 = 0; if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1228 */ __pyx_1 = __pyx_v_href == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1229 */ (__pyx_v_c_path[0]).href = NULL; goto __pyx_L5; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1231 */ (__pyx_v_c_path[0]).href = _cstr(__pyx_v_href); } __pyx_L5:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1232 */ __pyx_1 = __pyx_v_name == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1233 */ (__pyx_v_c_path[0]).name = NULL; goto __pyx_L6; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1235 */ (__pyx_v_c_path[0]).name = _cstr(__pyx_v_name); } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1236 */ __pyx_5 = PyInt_AsSsize_t(__pyx_v_index); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; goto __pyx_L1;} (__pyx_v_c_path[0]).index = __pyx_5; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1237 */ __pyx_v_c_path = (__pyx_v_c_path + 1); } Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1238 */ __pyx_r = __pyx_v_c_path_segments; goto __pyx_L0; goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify._buildObjectPathSegments"); __pyx_r = NULL; __pyx_L0:; Py_DECREF(__pyx_v_href); Py_DECREF(__pyx_v_name); Py_DECREF(__pyx_v_index); Py_DECREF(__pyx_v_path_list); return __pyx_r; } static PyObject *__pyx_k124p; static PyObject *__pyx_k125p; static char (__pyx_k124[]) = "root element does not match: need %s, got %s"; static char (__pyx_k125[]) = "no such child: "; static PyObject *__pyx_f_9objectify__findObjectPath(struct LxmlElement *__pyx_v_root,__pyx_t_9objectify__ObjectPath (*__pyx_v_c_path),Py_ssize_t __pyx_v_c_path_len,PyObject *__pyx_v_default_value,int __pyx_v_use_default) { xmlNode (*__pyx_v_c_node); char (*__pyx_v_c_href); char (*__pyx_v_c_name); Py_ssize_t __pyx_v_c_index; PyObject *__pyx_v_tag; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF(__pyx_v_root); Py_INCREF(__pyx_v_default_value); __pyx_v_tag = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1248 */ __pyx_v_c_node = __pyx_v_root->_c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1249 */ __pyx_v_c_name = (__pyx_v_c_path[0]).name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1250 */ __pyx_v_c_href = (__pyx_v_c_path[0]).href; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1251 */ __pyx_1 = (__pyx_v_c_href == NULL); if (!__pyx_1) { __pyx_1 = ((__pyx_v_c_href[0]) == '\0'); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1252 */ __pyx_v_c_href = _getNs(__pyx_v_c_node); goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1253 */ __pyx_1 = (!tagMatches(__pyx_v_c_node,__pyx_v_c_href,__pyx_v_c_name)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1254 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_name); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1255; goto __pyx_L1;} __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_n_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1255; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1255; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); __pyx_3 = 0; __pyx_4 = 0; __pyx_3 = PyNumber_Remainder(__pyx_k124p, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __Pyx_Raise(__pyx_2, __pyx_3, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1257 */ while (1) { __pyx_1 = (__pyx_v_c_node != NULL); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1258 */ __pyx_v_c_path_len = (__pyx_v_c_path_len - 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1259 */ __pyx_1 = (__pyx_v_c_path_len <= 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1260 */ __pyx_4 = ((PyObject *)elementFactory(__pyx_v_root->_doc,__pyx_v_c_node)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; goto __pyx_L1;} __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1262 */ __pyx_v_c_path = (__pyx_v_c_path + 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1263 */ __pyx_1 = ((__pyx_v_c_path[0]).href != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1264 */ __pyx_v_c_href = (__pyx_v_c_path[0]).href; goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1265 */ __pyx_v_c_name = (__pyx_v_c_path[0]).name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1266 */ __pyx_v_c_index = (__pyx_v_c_path[0]).index; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1268 */ __pyx_1 = (__pyx_v_c_index < 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1269 */ __pyx_v_c_node = __pyx_v_c_node->last; goto __pyx_L8; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1271 */ __pyx_v_c_node = __pyx_v_c_node->children; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1272 */ __pyx_v_c_node = __pyx_f_9objectify__findFollowingSibling(__pyx_v_c_node,__pyx_v_c_href,__pyx_v_c_name,__pyx_v_c_index); } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1274 */ __pyx_1 = __pyx_v_use_default; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1275 */ Py_INCREF(__pyx_v_default_value); __pyx_r = __pyx_v_default_value; goto __pyx_L0; goto __pyx_L9; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1277 */ __pyx_5 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_name); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1278 */ __pyx_2 = PyNumber_Add(__pyx_k125p, __pyx_v_tag); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1278; goto __pyx_L1;} __Pyx_Raise(__pyx_v_9objectify_AttributeError, __pyx_2, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1278; goto __pyx_L1;} } __pyx_L9:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify._findObjectPath"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_root); Py_DECREF(__pyx_v_default_value); return __pyx_r; } static PyObject *__pyx_k126p; static PyObject *__pyx_k127p; static PyObject *__pyx_k128p; static char (__pyx_k126[]) = "cannot update root node"; static char (__pyx_k127[]) = "root element does not match: need %s, got %s"; static char (__pyx_k128[]) = "creating indexed path attributes is not supported"; static PyObject *__pyx_f_9objectify__createObjectPath(struct LxmlElement *__pyx_v_root,__pyx_t_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; xmlNode (*__pyx_v_c_node); xmlNode (*__pyx_v_c_child); char (*__pyx_v_c_href); char (*__pyx_v_c_name); Py_ssize_t __pyx_v_c_index; PyObject *__pyx_v_element; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; Py_INCREF(__pyx_v_root); Py_INCREF(__pyx_v_value); __pyx_v_child = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); __pyx_v_element = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1292 */ __pyx_1 = (__pyx_v_c_path_len == 1); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1293 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k126p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; goto __pyx_L1;} goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1295 */ __pyx_v_c_node = __pyx_v_root->_c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1296 */ __pyx_v_c_name = (__pyx_v_c_path[0]).name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1297 */ __pyx_v_c_href = (__pyx_v_c_path[0]).href; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1298 */ __pyx_1 = (__pyx_v_c_href == NULL); if (!__pyx_1) { __pyx_1 = ((__pyx_v_c_href[0]) == '\0'); } if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1299 */ __pyx_v_c_href = _getNs(__pyx_v_c_node); goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1300 */ __pyx_1 = (!tagMatches(__pyx_v_c_node,__pyx_v_c_href,__pyx_v_c_name)); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1301 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_name); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;} __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_n_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); __pyx_3 = 0; __pyx_4 = 0; __pyx_3 = PyNumber_Remainder(__pyx_k127p, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; __Pyx_Raise(__pyx_2, __pyx_3, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1304 */ while (1) { __pyx_1 = (__pyx_v_c_path_len > 1); if (!__pyx_1) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1305 */ __pyx_v_c_path_len = (__pyx_v_c_path_len - 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1306 */ __pyx_v_c_path = (__pyx_v_c_path + 1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1307 */ __pyx_1 = ((__pyx_v_c_path[0]).href != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1308 */ __pyx_v_c_href = (__pyx_v_c_path[0]).href; goto __pyx_L7; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1309 */ __pyx_v_c_name = (__pyx_v_c_path[0]).name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1310 */ __pyx_v_c_index = (__pyx_v_c_path[0]).index; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1312 */ __pyx_1 = (__pyx_v_c_index < 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1313 */ __pyx_v_c_child = __pyx_v_c_node->last; goto __pyx_L8; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1315 */ __pyx_v_c_child = __pyx_v_c_node->children; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1316 */ __pyx_v_c_child = __pyx_f_9objectify__findFollowingSibling(__pyx_v_c_child,__pyx_v_c_href,__pyx_v_c_name,__pyx_v_c_index); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1318 */ __pyx_1 = (__pyx_v_c_child != NULL); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1319 */ __pyx_v_c_node = __pyx_v_c_child; goto __pyx_L9; } __pyx_1 = (__pyx_v_c_index != 0); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1321 */ __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; goto __pyx_L1;} __Pyx_Raise(__pyx_4, __pyx_k128p, 0); Py_DECREF(__pyx_4); __pyx_4 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; goto __pyx_L1;} goto __pyx_L9; } __pyx_1 = (__pyx_v_c_path_len == 1); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1324 */ __pyx_5 = ((PyObject *)elementFactory(__pyx_v_root->_doc,__pyx_v_c_node)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; goto __pyx_L1;} __pyx_2 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_name); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; goto __pyx_L1;} __pyx_3 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_5),__pyx_2,__pyx_v_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1327 */ __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; goto __pyx_L9; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1329 */ __pyx_4 = ((PyObject *)elementFactory(__pyx_v_root->_doc,__pyx_v_c_node)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; goto __pyx_L1;} __pyx_5 = namespacedNameFromNsName(__pyx_v_c_href,__pyx_v_c_name); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; goto __pyx_L1;} __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4); PyTuple_SET_ITEM(__pyx_2, 1, __pyx_5); __pyx_4 = 0; __pyx_5 = 0; __pyx_3 = PyObject_CallObject(__pyx_v_9objectify_SubElement, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_child)); __pyx_v_child = ((struct LxmlElement *)__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1332 */ __pyx_v_c_node = __pyx_v_child->_c_node; } __pyx_L9:; } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1335 */ __pyx_1 = __pyx_v_replace; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1336 */ __pyx_4 = ((PyObject *)elementFactory(__pyx_v_root->_doc,__pyx_v_c_node)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1336; goto __pyx_L1;} Py_DECREF(__pyx_v_element); __pyx_v_element = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1337 */ if (!__Pyx_TypeTest(__pyx_v_element, __pyx_ptype_11etreepublic__Element)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1337; goto __pyx_L1;} __pyx_5 = __pyx_f_9objectify__replaceElement(((struct LxmlElement *)__pyx_v_element),__pyx_v_value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1337; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L10; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1339 */ __pyx_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc,__pyx_v_c_node->parent)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;} __pyx_3 = namespacedName(__pyx_v_c_node); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; goto __pyx_L1;} __pyx_4 = __pyx_f_9objectify__appendValue(((struct LxmlElement *)__pyx_2),__pyx_3,__pyx_v_value); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; } __pyx_L10:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify._createObjectPath"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_child); Py_DECREF(__pyx_v_element); Py_DECREF(__pyx_v_root); Py_DECREF(__pyx_v_value); return __pyx_r; } static PyObject *__pyx_k129p; static PyObject *__pyx_k130p; static char (__pyx_k129[]) = "."; static char (__pyx_k130[]) = "."; static PyObject *__pyx_f_9objectify__buildDescendantPaths(xmlNode (*__pyx_v_c_node),PyObject *__pyx_v_prefix_string) { PyObject *__pyx_v_tag; PyObject *__pyx_v_path; PyObject *__pyx_v_path_list; PyObject *__pyx_r; PyObject *__pyx_1 = 0; int __pyx_2; PyObject *__pyx_3 = 0; Py_INCREF(__pyx_v_prefix_string); __pyx_v_tag = Py_None; Py_INCREF(Py_None); __pyx_v_path = Py_None; Py_INCREF(Py_None); __pyx_v_path_list = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1345 */ __pyx_1 = namespacedName(__pyx_v_c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1345; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1346 */ __pyx_2 = PyObject_IsTrue(__pyx_v_prefix_string); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1346; goto __pyx_L1;} if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1347 */ __pyx_1 = PyInt_FromLong((-1)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1347; goto __pyx_L1;} __pyx_3 = PyObject_GetItem(__pyx_v_prefix_string, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1347; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; if (PyObject_Cmp(__pyx_3, __pyx_k129p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1347; goto __pyx_L1;} __pyx_2 = __pyx_2 != 0; Py_DECREF(__pyx_3); __pyx_3 = 0; if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1348 */ __pyx_1 = PyNumber_Add(__pyx_v_prefix_string, __pyx_k130p); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1348; goto __pyx_L1;} Py_DECREF(__pyx_v_prefix_string); __pyx_v_prefix_string = __pyx_1; __pyx_1 = 0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1349 */ __pyx_3 = PyNumber_Add(__pyx_v_prefix_string, __pyx_v_tag); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1349; goto __pyx_L1;} Py_DECREF(__pyx_v_prefix_string); __pyx_v_prefix_string = __pyx_3; __pyx_3 = 0; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1351 */ Py_INCREF(__pyx_v_tag); Py_DECREF(__pyx_v_prefix_string); __pyx_v_prefix_string = __pyx_v_tag; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1352 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1352; goto __pyx_L1;} Py_INCREF(__pyx_v_prefix_string); PyList_SET_ITEM(__pyx_1, 0, __pyx_v_prefix_string); Py_DECREF(__pyx_v_path); __pyx_v_path = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1353 */ __pyx_3 = PyList_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; goto __pyx_L1;} Py_DECREF(__pyx_v_path_list); __pyx_v_path_list = __pyx_3; __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1354 */ __pyx_1 = __pyx_f_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_node,__pyx_v_path,__pyx_v_path_list); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1354; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1355 */ Py_INCREF(__pyx_v_path_list); __pyx_r = __pyx_v_path_list; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify._buildDescendantPaths"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_path); Py_DECREF(__pyx_v_path_list); Py_DECREF(__pyx_v_prefix_string); return __pyx_r; } static PyObject *__pyx_k131p; static PyObject *__pyx_k132p; static PyObject *__pyx_k133p; static char (__pyx_k131[]) = "."; static char (__pyx_k132[]) = "{}"; static char (__pyx_k133[]) = "[%d]"; static PyObject *__pyx_f_9objectify__recursiveBuildDescendantPaths(xmlNode (*__pyx_v_c_node),PyObject *__pyx_v_path,PyObject *__pyx_v_path_list) { PyObject (*__pyx_v_dict_result); xmlNode (*__pyx_v_c_child); char (*__pyx_v_c_href); PyObject *__pyx_v_tags; PyObject *__pyx_v_tag; PyObject *__pyx_v_count; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; PyObject *__pyx_3 = 0; int __pyx_4; Py_INCREF(__pyx_v_path); Py_INCREF(__pyx_v_path_list); __pyx_v_tags = Py_None; Py_INCREF(Py_None); __pyx_v_tag = Py_None; Py_INCREF(Py_None); __pyx_v_count = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1364 */ __pyx_1 = PyObject_GetAttr(__pyx_k131p, __pyx_n_join); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1364; goto __pyx_L1;} __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1364; goto __pyx_L1;} Py_INCREF(__pyx_v_path); PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path); __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1364; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_4 = PyList_Append(__pyx_v_path_list,__pyx_3); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1364; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1365 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1365; goto __pyx_L1;} Py_DECREF(__pyx_v_tags); __pyx_v_tags = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1366 */ __pyx_v_c_href = _getNs(__pyx_v_c_node); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1367 */ __pyx_v_c_child = __pyx_v_c_node->children; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1368 */ while (1) { __pyx_4 = (__pyx_v_c_child != NULL); if (!__pyx_4) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1369 */ while (1) { __pyx_4 = (__pyx_v_c_child->type != XML_ELEMENT_NODE); if (!__pyx_4) break; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1370 */ __pyx_v_c_child = __pyx_v_c_child->next; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1371 */ __pyx_4 = (__pyx_v_c_child == NULL); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1372 */ __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; goto __pyx_L6; } __pyx_L6:; } /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1373 */ __pyx_4 = (__pyx_v_c_href == _getNs(__pyx_v_c_child)); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1374 */ __pyx_2 = PyString_FromString(__pyx_v_c_child->name); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1374; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_2; __pyx_2 = 0; goto __pyx_L7; } __pyx_4 = (__pyx_v_c_href != NULL); if (__pyx_4) { __pyx_4 = (_getNs(__pyx_v_c_child) == NULL); } if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1377 */ __pyx_3 = PyString_FromString(__pyx_v_c_child->name); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1377; goto __pyx_L1;} __pyx_1 = PyNumber_Add(__pyx_k132p, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1377; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_1; __pyx_1 = 0; goto __pyx_L7; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1379 */ __pyx_2 = namespacedName(__pyx_v_c_child); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1379; goto __pyx_L1;} Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_2; __pyx_2 = 0; } __pyx_L7:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1380 */ __pyx_v_dict_result = PyDict_GetItem(__pyx_v_tags,__pyx_v_tag); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1381 */ __pyx_4 = (__pyx_v_dict_result == NULL); if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1382 */ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1382; goto __pyx_L1;} Py_DECREF(__pyx_v_count); __pyx_v_count = __pyx_3; __pyx_3 = 0; goto __pyx_L8; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1384 */ __pyx_1 = (PyObject *)__pyx_v_dict_result; Py_INCREF(__pyx_1); __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1384; goto __pyx_L1;} __pyx_3 = PyNumber_Add(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1384; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_count); __pyx_v_count = __pyx_3; __pyx_3 = 0; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1385 */ __pyx_4 = PyDict_SetItem(__pyx_v_tags,__pyx_v_tag,__pyx_v_count); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1385; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1386 */ __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1386; goto __pyx_L1;} if (PyObject_Cmp(__pyx_v_count, __pyx_1, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1386; goto __pyx_L1;} __pyx_4 = __pyx_4 > 0; Py_DECREF(__pyx_1); __pyx_1 = 0; if (__pyx_4) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1387 */ __pyx_2 = PyNumber_Remainder(__pyx_k133p, __pyx_v_count); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1387; goto __pyx_L1;} __pyx_3 = PyNumber_Add(__pyx_v_tag, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1387; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_tag); __pyx_v_tag = __pyx_3; __pyx_3 = 0; goto __pyx_L9; } __pyx_L9:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1388 */ __pyx_4 = PyList_Append(__pyx_v_path,__pyx_v_tag); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1388; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1389 */ __pyx_1 = __pyx_f_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_child,__pyx_v_path,__pyx_v_path_list); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1389; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1390 */ __pyx_2 = PyInt_FromLong((-1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1390; goto __pyx_L1;} if (PyObject_DelItem(__pyx_v_path, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1390; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1391 */ __pyx_v_c_child = __pyx_v_c_child->next; } __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_3); __Pyx_AddTraceback("objectify._recursiveBuildDescendantPaths"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_tags); Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_count); Py_DECREF(__pyx_v_path); Py_DECREF(__pyx_v_path_list); return __pyx_r; } static char (__pyx_k135[]) = "nil"; static char (__pyx_k138[]) = "type"; static PyObject *__pyx_f_9objectify_annotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_annotate[] = "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\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 "; static PyObject *__pyx_f_9objectify_annotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_element_or_tree = 0; PyObject *__pyx_v_ignore_old = 0; struct LxmlElement *__pyx_v_element; struct LxmlDocument *__pyx_v_doc; int __pyx_v_ignore; xmlNode (*__pyx_v_c_node); xmlNs (*__pyx_v_c_ns); PyObject (*__pyx_v_dict_result); PyObject *__pyx_v__ValueError; PyObject *__pyx_v_StrType; PyObject *__pyx_v_pytype; PyObject *__pyx_v_value; PyObject *__pyx_v_old_value; PyObject *__pyx_v_type_check; PyObject *__pyx_v_tested_pytype; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; int __pyx_5; static char *__pyx_argnames[] = {"element_or_tree","ignore_old",0}; __pyx_v_ignore_old = __pyx_k24; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|O", __pyx_argnames, &__pyx_v_element_or_tree, &__pyx_v_ignore_old)) return 0; Py_INCREF(__pyx_v_element_or_tree); Py_INCREF(__pyx_v_ignore_old); __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); __pyx_v_doc = ((struct LxmlDocument *)Py_None); Py_INCREF(Py_None); __pyx_v__ValueError = Py_None; Py_INCREF(Py_None); __pyx_v_StrType = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); __pyx_v_value = Py_None; Py_INCREF(Py_None); __pyx_v_old_value = Py_None; Py_INCREF(Py_None); __pyx_v_type_check = Py_None; Py_INCREF(Py_None); __pyx_v_tested_pytype = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1411 */ __pyx_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1411; goto __pyx_L1;} Py_DECREF(((PyObject *)__pyx_v_element)); __pyx_v_element = ((struct LxmlElement *)__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1412 */ Py_INCREF(((PyObject *)__pyx_v_element->_doc)); Py_DECREF(((PyObject *)__pyx_v_doc)); __pyx_v_doc = __pyx_v_element->_doc; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1413 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1413; goto __pyx_L1;} Py_INCREF(__pyx_v_ignore_old); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_ignore_old); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify_bool, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1413; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_3 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1413; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_v_ignore = __pyx_3; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1415 */ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1415; goto __pyx_L1;} Py_DECREF(__pyx_v__ValueError); __pyx_v__ValueError = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1416 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify__PYTYPE_DICT, __pyx_n_get); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; goto __pyx_L1;} Py_INCREF(__pyx_n_str); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_str); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_StrType); __pyx_v_StrType = __pyx_4; __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1417 */ __pyx_v_c_node = __pyx_v_element->_c_node; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1418 */ BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node,__pyx_v_c_node,1); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1419 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1420 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_value); __pyx_v_value = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1421 */ __pyx_3 = (!__pyx_v_ignore); if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1423 */ __pyx_2 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__PYTYPE_NAMESPACE,__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1423; goto __pyx_L1;} Py_DECREF(__pyx_v_old_value); __pyx_v_old_value = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1425 */ __pyx_3 = __pyx_v_old_value != Py_None; if (__pyx_3) { if (PyObject_Cmp(__pyx_v_old_value, __pyx_v_9objectify_TREE_PYTYPE, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; goto __pyx_L1;} __pyx_3 = __pyx_3 != 0; } if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1426 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify__PYTYPE_DICT, __pyx_n_get); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1426; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1426; goto __pyx_L1;} Py_INCREF(__pyx_v_old_value); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_old_value); __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1426; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1427 */ __pyx_3 = __pyx_v_pytype != Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1428 */ __pyx_1 = textOf(__pyx_v_c_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1428; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1429 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1430 */ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; goto __pyx_L5;} Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_value); __pyx_2 = PyObject_CallObject(((struct __pyx_obj_9objectify_PyType *)__pyx_v_pytype)->type_check, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; goto __pyx_L5;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_3 = PyObject_IsTrue(__pyx_2); if (__pyx_3 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; goto __pyx_L5;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_5 = (!__pyx_3); if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1431 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = Py_None; goto __pyx_L7; } __pyx_L7:; } goto __pyx_L6; __pyx_L5:; Py_XDECREF(__pyx_1); __pyx_1 = 0; Py_XDECREF(__pyx_4); __pyx_4 = 0; Py_XDECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1432 */ __pyx_3 = PyErr_ExceptionMatches(__pyx_v__ValueError); if (__pyx_3) { __Pyx_AddTraceback("objectify.annotate"); __pyx_1 = __Pyx_GetExcValue(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1433 */ Py_INCREF(Py_None); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = Py_None; goto __pyx_L6; } goto __pyx_L1; __pyx_L6:; goto __pyx_L4; } __pyx_L4:; goto __pyx_L3; } __pyx_L3:; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1435 */ __pyx_5 = __pyx_v_pytype == Py_None; if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1437 */ __pyx_4 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS,__pyx_k135); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1437; goto __pyx_L1;} if (PyObject_Cmp(__pyx_4, __pyx_n_true, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; goto __pyx_L1;} __pyx_3 = __pyx_3 == 0; Py_DECREF(__pyx_4); __pyx_4 = 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1439 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify__PYTYPE_DICT, __pyx_n_get); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;} Py_INCREF(__pyx_n_none); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_none); __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1439; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_4; __pyx_4 = 0; goto __pyx_L9; } __pyx_L9:; goto __pyx_L8; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1441 */ __pyx_5 = __pyx_v_pytype == Py_None; if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1443 */ __pyx_2 = attributeValueFromNsName(__pyx_v_c_node,__pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS,__pyx_k138); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1443; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1446 */ __pyx_3 = __pyx_v_value != Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1447 */ __pyx_v_dict_result = PyDict_GetItem(__pyx_v_9objectify__SCHEMA_TYPE_DICT,__pyx_v_value); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1448 */ __pyx_5 = (__pyx_v_dict_result != NULL); if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1449 */ __pyx_1 = (PyObject *)__pyx_v_dict_result; Py_INCREF(__pyx_1); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_1; __pyx_1 = 0; goto __pyx_L12; } __pyx_L12:; goto __pyx_L11; } __pyx_L11:; goto __pyx_L10; } __pyx_L10:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1451 */ __pyx_3 = __pyx_v_pytype == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1453 */ __pyx_5 = (findChildForwards(__pyx_v_c_node,0) == NULL); if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1455 */ __pyx_3 = __pyx_v_value == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1456 */ __pyx_4 = textOf(__pyx_v_c_node); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1456; goto __pyx_L1;} Py_DECREF(__pyx_v_value); __pyx_v_value = __pyx_4; __pyx_4 = 0; goto __pyx_L15; } __pyx_L15:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1457 */ __pyx_5 = __pyx_v_value != Py_None; if (__pyx_5) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1458 */ __pyx_2 = PyObject_GetIter(__pyx_v_9objectify__TYPE_CHECKS); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} for (;;) { __pyx_1 = PyIter_Next(__pyx_2); if (!__pyx_1) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} break; } __pyx_4 = PyObject_GetIter(__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} Py_DECREF(__pyx_v_type_check); __pyx_v_type_check = __pyx_1; __pyx_1 = 0; __pyx_1 = __Pyx_UnpackItem(__pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} Py_DECREF(__pyx_v_tested_pytype); __pyx_v_tested_pytype = __pyx_1; __pyx_1 = 0; if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1459 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1460 */ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1460; goto __pyx_L19;} Py_INCREF(__pyx_v_value); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_value); __pyx_4 = PyObject_CallObject(__pyx_v_type_check, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1460; goto __pyx_L19;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_3 = __pyx_4 != __pyx_v_9objectify_False; Py_DECREF(__pyx_4); __pyx_4 = 0; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1461 */ Py_INCREF(__pyx_v_tested_pytype); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_v_tested_pytype; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1462 */ goto __pyx_L18; goto __pyx_L21; } __pyx_L21:; } goto __pyx_L20; __pyx_L19:; Py_XDECREF(__pyx_1); __pyx_1 = 0; Py_XDECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1463 */ __pyx_5 = PyErr_ExceptionMatches(__pyx_v__ValueError); if (__pyx_5) { __Pyx_AddTraceback("objectify.annotate"); __pyx_1 = __Pyx_GetExcValue(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1463; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1464 */ goto __pyx_L20; } goto __pyx_L1; __pyx_L20:; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1466 */ Py_INCREF(__pyx_v_StrType); Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_v_StrType; } __pyx_L18:; Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L16; } __pyx_L16:; goto __pyx_L14; } __pyx_L14:; goto __pyx_L13; } __pyx_L13:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1468 */ __pyx_3 = __pyx_v_pytype == Py_None; if (__pyx_3) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1470 */ delAttributeFromNsName(__pyx_v_c_node,__pyx_v_9objectify__PYTYPE_NAMESPACE,__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME); goto __pyx_L22; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1474 */ __pyx_v_c_ns = findOrBuildNodeNs(__pyx_v_doc,__pyx_v_c_node,__pyx_v_9objectify__PYTYPE_NAMESPACE); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1475 */ __pyx_4 = PyObject_GetAttr(__pyx_v_pytype, __pyx_n_name); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1476; goto __pyx_L1;} xmlSetNsProp(__pyx_v_c_node,__pyx_v_c_ns,__pyx_v_9objectify__PYTYPE_ATTRIBUTE_NAME,_cstr(__pyx_4)); Py_DECREF(__pyx_4); __pyx_4 = 0; } __pyx_L22:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1477 */ END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node); __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); __Pyx_AddTraceback("objectify.annotate"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_element); Py_DECREF(__pyx_v_doc); Py_DECREF(__pyx_v__ValueError); Py_DECREF(__pyx_v_StrType); Py_DECREF(__pyx_v_pytype); Py_DECREF(__pyx_v_value); Py_DECREF(__pyx_v_old_value); Py_DECREF(__pyx_v_type_check); Py_DECREF(__pyx_v_tested_pytype); Py_DECREF(__pyx_v_element_or_tree); Py_DECREF(__pyx_v_ignore_old); return __pyx_r; } static PyObject *__pyx_k139p; static char (__pyx_k139[]) = "parser must inherit from lxml.etree.XMLParser"; static PyObject *__pyx_f_9objectify_setDefaultParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_setDefaultParser[] = "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 PyObject *__pyx_f_9objectify_setDefaultParser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_new_parser = 0; PyObject *__pyx_r; int __pyx_1; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"new_parser",0}; __pyx_v_new_parser = __pyx_k26; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_new_parser)) return 0; Py_INCREF(__pyx_v_new_parser); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1498 */ __pyx_1 = __pyx_v_new_parser == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1499 */ Py_INCREF(__pyx_v_9objectify___DEFAULT_PARSER); Py_DECREF(__pyx_v_9objectify_parser); __pyx_v_9objectify_parser = __pyx_v_9objectify___DEFAULT_PARSER; goto __pyx_L2; } __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_XMLParser); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1500; goto __pyx_L1;} __pyx_1 = isinstance(__pyx_v_new_parser,__pyx_2); Py_DECREF(__pyx_2); __pyx_2 = 0; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1501 */ Py_INCREF(__pyx_v_new_parser); Py_DECREF(__pyx_v_9objectify_parser); __pyx_v_9objectify_parser = __pyx_v_new_parser; goto __pyx_L2; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1503 */ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; goto __pyx_L1;} __Pyx_Raise(__pyx_2, __pyx_k139p, 0); Py_DECREF(__pyx_2); __pyx_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; goto __pyx_L1;} } __pyx_L2:; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.setDefaultParser"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_new_parser); return __pyx_r; } static struct LxmlElement *__pyx_f_9objectify__makeElement(PyObject *__pyx_v_tag,PyObject *__pyx_v_text,PyObject *__pyx_v_attrib,PyObject *__pyx_v_nsmap) { struct LxmlElement *__pyx_r; PyObject *__pyx_1 = 0; Py_INCREF(__pyx_v_tag); Py_INCREF(__pyx_v_text); Py_INCREF(__pyx_v_attrib); Py_INCREF(__pyx_v_nsmap); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1506 */ if (!__Pyx_TypeTest(Py_None, __pyx_ptype_11etreepublic__Document)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1506; goto __pyx_L1;} __pyx_1 = ((PyObject *)makeElement(__pyx_v_tag,((struct LxmlDocument *)Py_None),__pyx_v_9objectify_parser,__pyx_v_text,Py_None,__pyx_v_attrib,__pyx_v_nsmap)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1506; goto __pyx_L1;} __pyx_r = ((struct LxmlElement *)__pyx_1); __pyx_1 = 0; goto __pyx_L0; __pyx_r = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); __Pyx_AddTraceback("objectify._makeElement"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_tag); Py_DECREF(__pyx_v_text); Py_DECREF(__pyx_v_attrib); Py_DECREF(__pyx_v_nsmap); return __pyx_r; } static PyObject *__pyx_f_9objectify_fromstring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_fromstring[] = "Objectify specific version of the lxml.etree fromstring() function.\n\n NOTE: requires parser based element class lookup activated in lxml.etree!\n "; static PyObject *__pyx_f_9objectify_fromstring(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_xml = 0; PyObject *__pyx_r; PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; static char *__pyx_argnames[] = {"xml",0}; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_xml)) return 0; Py_INCREF(__pyx_v_xml); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1519 */ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;} Py_INCREF(__pyx_v_xml); PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_xml); Py_INCREF(__pyx_v_9objectify_parser); PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_9objectify_parser); __pyx_2 = PyObject_CallObject(__pyx_v_9objectify__fromstring, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_r = __pyx_2; __pyx_2 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); __Pyx_AddTraceback("objectify.fromstring"); __pyx_r = 0; __pyx_L0:; Py_DECREF(__pyx_v_xml); return __pyx_r; } static PyObject *__pyx_n_update; static PyObject *__pyx_f_9objectify_Element(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_Element[] = "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 PyObject *__pyx_f_9objectify_Element(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; int __pyx_1; Py_ssize_t __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"_tag","attrib","nsmap","_pytype",0}; __pyx_v_attrib = __pyx_k27; __pyx_v_nsmap = __pyx_k28; __pyx_v__pytype = __pyx_k29; if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 4, 0, &__pyx_v__attributes) < 0) return 0; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OOO", __pyx_argnames, &__pyx_v__tag, &__pyx_v_attrib, &__pyx_v_nsmap, &__pyx_v__pytype)) { Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); Py_XDECREF(__pyx_v__attributes); return 0; } Py_INCREF(__pyx_v__tag); Py_INCREF(__pyx_v_attrib); Py_INCREF(__pyx_v_nsmap); Py_INCREF(__pyx_v__pytype); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1529 */ __pyx_1 = __pyx_v_attrib != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1530 */ __pyx_2 = PyDict_Size(__pyx_v__attributes); if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1531 */ __pyx_3 = PyObject_GetAttr(__pyx_v_attrib, __pyx_n_update); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1531; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1531; goto __pyx_L1;} Py_INCREF(__pyx_v__attributes); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v__attributes); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1531; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1532 */ Py_INCREF(__pyx_v_attrib); Py_DECREF(__pyx_v__attributes); __pyx_v__attributes = __pyx_v_attrib; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1533 */ __pyx_1 = __pyx_v__pytype == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1534 */ Py_INCREF(__pyx_v_9objectify_TREE_PYTYPE); Py_DECREF(__pyx_v__pytype); __pyx_v__pytype = __pyx_v_9objectify_TREE_PYTYPE; goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1535 */ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_PYTYPE_ATTRIBUTE); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;} if (PyObject_SetItem(__pyx_v__attributes, __pyx_3, __pyx_v__pytype) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1535; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1536 */ __pyx_4 = ((PyObject *)__pyx_f_9objectify__makeElement(__pyx_v__tag,Py_None,__pyx_v__attributes,__pyx_v_nsmap)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1536; goto __pyx_L1;} __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.Element"); __pyx_r = 0; __pyx_L0:; Py_XDECREF(__pyx_v__attributes); Py_DECREF(__pyx_v__tag); Py_DECREF(__pyx_v_attrib); Py_DECREF(__pyx_v_nsmap); Py_DECREF(__pyx_v__pytype); Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); return __pyx_r; } static PyObject *__pyx_n_value; static PyObject *__pyx_f_9objectify_DataElement(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static char __pyx_doc_9objectify_DataElement[] = "Create a new element with a Python value and XML attributes taken from\n keyword arguments or a dictionary passed as second argument.\n\n Automatically adds a \'pyval\' attribute for the Python type of the value,\n if the type can be identified. If \'_pyval\' or \'_xsi\' are among the\n keyword arguments, they will be used instead.\n "; static PyObject *__pyx_f_9objectify_DataElement(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_v_strval; PyObject *__pyx_v_errors; PyObject *__pyx_v_type_check; PyObject *__pyx_v_pytype; PyObject *__pyx_r; int __pyx_1; Py_ssize_t __pyx_2; PyObject *__pyx_3 = 0; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; static char *__pyx_argnames[] = {"_value","attrib","nsmap","_pytype","_xsi",0}; __pyx_v_attrib = __pyx_k30; __pyx_v_nsmap = __pyx_k31; __pyx_v__pytype = __pyx_k32; __pyx_v__xsi = __pyx_k33; if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 5, 0, &__pyx_v__attributes) < 0) return 0; if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OOOO", __pyx_argnames, &__pyx_v__value, &__pyx_v_attrib, &__pyx_v_nsmap, &__pyx_v__pytype, &__pyx_v__xsi)) { Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); Py_XDECREF(__pyx_v__attributes); return 0; } Py_INCREF(__pyx_v__value); Py_INCREF(__pyx_v_attrib); Py_INCREF(__pyx_v_nsmap); Py_INCREF(__pyx_v__pytype); Py_INCREF(__pyx_v__xsi); __pyx_v_strval = Py_None; Py_INCREF(Py_None); __pyx_v_errors = Py_None; Py_INCREF(Py_None); __pyx_v_type_check = Py_None; Py_INCREF(Py_None); __pyx_v_pytype = Py_None; Py_INCREF(Py_None); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1548 */ __pyx_1 = __pyx_v_attrib != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1549 */ __pyx_2 = PyDict_Size(__pyx_v__attributes); if (__pyx_2) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1550 */ __pyx_3 = PyObject_GetAttr(__pyx_v_attrib, __pyx_n_update); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1550; goto __pyx_L1;} __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1550; goto __pyx_L1;} Py_INCREF(__pyx_v__attributes); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v__attributes); __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1550; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L3; } __pyx_L3:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1551 */ Py_INCREF(__pyx_v_attrib); Py_DECREF(__pyx_v__attributes); __pyx_v__attributes = __pyx_v_attrib; goto __pyx_L2; } __pyx_L2:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1552 */ __pyx_1 = __pyx_v__xsi != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1553 */ __pyx_1 = PyDict_SetItem(__pyx_v__attributes,__pyx_v_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR,__pyx_v__xsi); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1553; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1554 */ __pyx_1 = __pyx_v__pytype == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1555 */ __pyx_3 = PyObject_GetItem(__pyx_v_9objectify__SCHEMA_TYPE_DICT, __pyx_v__xsi); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1555; goto __pyx_L1;} __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n_name); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1555; goto __pyx_L1;} Py_DECREF(__pyx_3); __pyx_3 = 0; Py_DECREF(__pyx_v__pytype); __pyx_v__pytype = __pyx_4; __pyx_4 = 0; goto __pyx_L5; } __pyx_L5:; goto __pyx_L4; } __pyx_L4:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1557 */ __pyx_1 = _isString(__pyx_v__value); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1558 */ Py_INCREF(__pyx_v__value); Py_DECREF(__pyx_v_strval); __pyx_v_strval = __pyx_v__value; goto __pyx_L6; } __pyx_1 = PyBool_Check(__pyx_v__value); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1560 */ __pyx_1 = PyObject_IsTrue(__pyx_v__value); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1560; goto __pyx_L1;} if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1561 */ Py_INCREF(__pyx_n_true); Py_DECREF(__pyx_v_strval); __pyx_v_strval = __pyx_n_true; goto __pyx_L7; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1563 */ Py_INCREF(__pyx_n_false); Py_DECREF(__pyx_v_strval); __pyx_v_strval = __pyx_n_false; } __pyx_L7:; goto __pyx_L6; } /*else*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1565 */ __pyx_5 = str(__pyx_v__value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1565; goto __pyx_L1;} Py_DECREF(__pyx_v_strval); __pyx_v_strval = __pyx_5; __pyx_5 = 0; } __pyx_L6:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1567 */ __pyx_1 = __pyx_v__pytype == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1568 */ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1568; goto __pyx_L1;} __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1568; goto __pyx_L1;} __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1568; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3); PyTuple_SET_ITEM(__pyx_5, 1, __pyx_4); __pyx_3 = 0; __pyx_4 = 0; Py_DECREF(__pyx_v_errors); __pyx_v_errors = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1569 */ __pyx_3 = PyObject_GetIter(__pyx_v_9objectify__TYPE_CHECKS); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} for (;;) { __pyx_4 = PyIter_Next(__pyx_3); if (!__pyx_4) { if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} break; } __pyx_5 = PyObject_GetIter(__pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_4 = __Pyx_UnpackItem(__pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} Py_DECREF(__pyx_v_type_check); __pyx_v_type_check = __pyx_4; __pyx_4 = 0; __pyx_4 = __Pyx_UnpackItem(__pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} Py_DECREF(__pyx_v_pytype); __pyx_v_pytype = __pyx_4; __pyx_4 = 0; if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1570 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1571 */ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1571; goto __pyx_L11;} Py_INCREF(__pyx_v_strval); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_strval); __pyx_5 = PyObject_CallObject(__pyx_v_type_check, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1571; goto __pyx_L11;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1572 */ Py_INCREF(((struct __pyx_obj_9objectify_PyType *)__pyx_v_pytype)->name); Py_DECREF(__pyx_v__pytype); __pyx_v__pytype = ((struct __pyx_obj_9objectify_PyType *)__pyx_v_pytype)->name; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1573 */ goto __pyx_L10; } goto __pyx_L12; __pyx_L11:; Py_XDECREF(__pyx_4); __pyx_4 = 0; Py_XDECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1574 */ __pyx_1 = PyErr_ExceptionMatches(__pyx_v_errors); if (__pyx_1) { __Pyx_AddTraceback("objectify.DataElement"); __pyx_4 = __Pyx_GetExcValue(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1575 */ goto __pyx_L12; } goto __pyx_L1; __pyx_L12:; } __pyx_L10:; Py_DECREF(__pyx_3); __pyx_3 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1576 */ __pyx_1 = __pyx_v__pytype == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1577 */ __pyx_1 = __pyx_v__value == Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1578 */ Py_INCREF(__pyx_n_none); Py_DECREF(__pyx_v__pytype); __pyx_v__pytype = __pyx_n_none; goto __pyx_L14; } __pyx_1 = _isString(__pyx_v__value); if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1580 */ Py_INCREF(__pyx_n_str); Py_DECREF(__pyx_v__pytype); __pyx_v__pytype = __pyx_n_str; goto __pyx_L14; } __pyx_L14:; goto __pyx_L13; } __pyx_L13:; goto __pyx_L8; } __pyx_L8:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1581 */ __pyx_1 = __pyx_v__pytype != Py_None; if (__pyx_1) { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1582 */ __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n_PYTYPE_ATTRIBUTE); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1582; goto __pyx_L1;} __pyx_1 = PyDict_SetItem(__pyx_v__attributes,__pyx_5,__pyx_v__pytype); if (__pyx_1 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1582; goto __pyx_L1;} Py_DECREF(__pyx_5); __pyx_5 = 0; goto __pyx_L15; } __pyx_L15:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1584 */ __pyx_4 = ((PyObject *)__pyx_f_9objectify__makeElement(__pyx_n_value,__pyx_v_strval,__pyx_v__attributes,__pyx_v_nsmap)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; goto __pyx_L1;} __pyx_r = __pyx_4; __pyx_4 = 0; goto __pyx_L0; __pyx_r = Py_None; Py_INCREF(Py_None); goto __pyx_L0; __pyx_L1:; Py_XDECREF(__pyx_3); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify.DataElement"); __pyx_r = 0; __pyx_L0:; Py_XDECREF(__pyx_v__attributes); Py_DECREF(__pyx_v_strval); Py_DECREF(__pyx_v_errors); Py_DECREF(__pyx_v_type_check); Py_DECREF(__pyx_v_pytype); Py_DECREF(__pyx_v__value); Py_DECREF(__pyx_v_attrib); Py_DECREF(__pyx_v_nsmap); Py_DECREF(__pyx_v__pytype); Py_DECREF(__pyx_v__xsi); Py_XDECREF(__pyx_args); Py_XDECREF(__pyx_kwds); return __pyx_r; } static __Pyx_InternTabEntry __pyx_intern_tab[] = { {&__pyx_n_AttributeError, "AttributeError"}, {&__pyx_n_DataElement, "DataElement"}, {&__pyx_n_ETXPath, "ETXPath"}, {&__pyx_n_Element, "Element"}, {&__pyx_n_ElementChildIterator, "ElementChildIterator"}, {&__pyx_n_False, "False"}, {&__pyx_n_IndexError, "IndexError"}, {&__pyx_n_None, "None"}, {&__pyx_n_PYTYPE_ATTRIBUTE, "PYTYPE_ATTRIBUTE"}, {&__pyx_n_PyErr_NoMemory, "PyErr_NoMemory"}, {&__pyx_n_Set, "Set"}, {&__pyx_n_StopIteration, "StopIteration"}, {&__pyx_n_SubElement, "SubElement"}, {&__pyx_n_TREE, "TREE"}, {&__pyx_n_True, "True"}, {&__pyx_n_TypeError, "TypeError"}, {&__pyx_n_U, "U"}, {&__pyx_n_ValueError, "ValueError"}, {&__pyx_n_XML, "XML"}, {&__pyx_n_XMLParser, "XMLParser"}, {&__pyx_n___builtin__, "__builtin__"}, {&__pyx_n___call__, "__call__"}, {&__pyx_n___checkBool, "__checkBool"}, {&__pyx_n___getitem__, "__getitem__"}, {&__pyx_n___name__, "__name__"}, {&__pyx_n___nonzero__, "__nonzero__"}, {&__pyx_n___set__, "__set__"}, {&__pyx_n___setslice__, "__setslice__"}, {&__pyx_n_abs, "abs"}, {&__pyx_n_add, "add"}, {&__pyx_n_annotate, "annotate"}, {&__pyx_n_append, "append"}, {&__pyx_n_bool, "bool"}, {&__pyx_n_boolean, "boolean"}, {&__pyx_n_cetree, "cetree"}, {&__pyx_n_compile, "compile"}, {&__pyx_n_cstd, "cstd"}, {&__pyx_n_double, "double"}, {&__pyx_n_dump, "dump"}, {&__pyx_n_enableRecursiveStr, "enableRecursiveStr"}, {&__pyx_n_end, "end"}, {&__pyx_n_enumerate, "enumerate"}, {&__pyx_n_etree, "etree"}, {&__pyx_n_false, "false"}, {&__pyx_n_find, "find"}, {&__pyx_n_findall, "findall"}, {&__pyx_n_float, "float"}, {&__pyx_n_fromstring, "fromstring"}, {&__pyx_n_get, "get"}, {&__pyx_n_getRegisteredTypes, "getRegisteredTypes"}, {&__pyx_n_getparent, "getparent"}, {&__pyx_n_groups, "groups"}, {&__pyx_n_hasattr, "hasattr"}, {&__pyx_n_insert, "insert"}, {&__pyx_n_int, "int"}, {&__pyx_n_integer, "integer"}, {&__pyx_n_islice, "islice"}, {&__pyx_n_items, "items"}, {&__pyx_n_iter, "iter"}, {&__pyx_n_iterchildren, "iterchildren"}, {&__pyx_n_itertools, "itertools"}, {&__pyx_n_itervalues, "itervalues"}, {&__pyx_n_join, "join"}, {&__pyx_n_len, "len"}, {&__pyx_n_list, "list"}, {&__pyx_n_long, "long"}, {&__pyx_n_lower, "lower"}, {&__pyx_n_lxml, "lxml"}, {&__pyx_n_makeelement, "makeelement"}, {&__pyx_n_match, "match"}, {&__pyx_n_name, "name"}, {&__pyx_n_negativeInteger, "negativeInteger"}, {&__pyx_n_next, "next"}, {&__pyx_n_nonNegativeInteger, "nonNegativeInteger"}, {&__pyx_n_nonPositiveInteger, "nonPositiveInteger"}, {&__pyx_n_none, "none"}, {&__pyx_n_normalizedString, "normalizedString"}, {&__pyx_n_positiveInteger, "positiveInteger"}, {&__pyx_n_pow, "pow"}, {&__pyx_n_python, "python"}, {&__pyx_n_pytype, "pytype"}, {&__pyx_n_pyval, "pyval"}, {&__pyx_n_re, "re"}, {&__pyx_n_register, "register"}, {&__pyx_n_remove, "remove"}, {&__pyx_n_remove_blank_text, "remove_blank_text"}, {&__pyx_n_replace, "replace"}, {&__pyx_n_set, "set"}, {&__pyx_n_setDefaultParser, "setDefaultParser"}, {&__pyx_n_setElementClassLookup, "setElementClassLookup"}, {&__pyx_n_setPytypeAttributeTag, "setPytypeAttributeTag"}, {&__pyx_n_sets, "sets"}, {&__pyx_n_short, "short"}, {&__pyx_n_str, "str"}, {&__pyx_n_string, "string"}, {&__pyx_n_strip, "strip"}, {&__pyx_n_tag, "tag"}, {&__pyx_n_tail, "tail"}, {&__pyx_n_text, "text"}, {&__pyx_n_tree, "tree"}, {&__pyx_n_true, "true"}, {&__pyx_n_tuple, "tuple"}, {&__pyx_n_type, "type"}, {&__pyx_n_unsignedInt, "unsignedInt"}, {&__pyx_n_unsignedLong, "unsignedLong"}, {&__pyx_n_unsignedShort, "unsignedShort"}, {&__pyx_n_update, "update"}, {&__pyx_n_value, "value"}, {&__pyx_n_xmlSchemaTypes, "xmlSchemaTypes"}, {0, 0} }; static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_k13p, __pyx_k13, sizeof(__pyx_k13)}, {&__pyx_k14p, __pyx_k14, sizeof(__pyx_k14)}, {&__pyx_k15p, __pyx_k15, sizeof(__pyx_k15)}, {&__pyx_k23p, __pyx_k23, sizeof(__pyx_k23)}, {&__pyx_k34p, __pyx_k34, sizeof(__pyx_k34)}, {&__pyx_k37p, __pyx_k37, sizeof(__pyx_k37)}, {&__pyx_k38p, __pyx_k38, sizeof(__pyx_k38)}, {&__pyx_k42p, __pyx_k42, sizeof(__pyx_k42)}, {&__pyx_k45p, __pyx_k45, sizeof(__pyx_k45)}, {&__pyx_k46p, __pyx_k46, sizeof(__pyx_k46)}, {&__pyx_k47p, __pyx_k47, sizeof(__pyx_k47)}, {&__pyx_k48p, __pyx_k48, sizeof(__pyx_k48)}, {&__pyx_k49p, __pyx_k49, sizeof(__pyx_k49)}, {&__pyx_k50p, __pyx_k50, sizeof(__pyx_k50)}, {&__pyx_k51p, __pyx_k51, sizeof(__pyx_k51)}, {&__pyx_k54p, __pyx_k54, sizeof(__pyx_k54)}, {&__pyx_k55p, __pyx_k55, sizeof(__pyx_k55)}, {&__pyx_k57p, __pyx_k57, sizeof(__pyx_k57)}, {&__pyx_k58p, __pyx_k58, sizeof(__pyx_k58)}, {&__pyx_k60p, __pyx_k60, sizeof(__pyx_k60)}, {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)}, {&__pyx_k74p, __pyx_k74, sizeof(__pyx_k74)}, {&__pyx_k76p, __pyx_k76, sizeof(__pyx_k76)}, {&__pyx_k77p, __pyx_k77, sizeof(__pyx_k77)}, {&__pyx_k78p, __pyx_k78, sizeof(__pyx_k78)}, {&__pyx_k79p, __pyx_k79, sizeof(__pyx_k79)}, {&__pyx_k80p, __pyx_k80, sizeof(__pyx_k80)}, {&__pyx_k81p, __pyx_k81, sizeof(__pyx_k81)}, {&__pyx_k104p, __pyx_k104, sizeof(__pyx_k104)}, {&__pyx_k105p, __pyx_k105, sizeof(__pyx_k105)}, {&__pyx_k106p, __pyx_k106, sizeof(__pyx_k106)}, {&__pyx_k107p, __pyx_k107, sizeof(__pyx_k107)}, {&__pyx_k108p, __pyx_k108, sizeof(__pyx_k108)}, {&__pyx_k109p, __pyx_k109, sizeof(__pyx_k109)}, {&__pyx_k110p, __pyx_k110, sizeof(__pyx_k110)}, {&__pyx_k111p, __pyx_k111, sizeof(__pyx_k111)}, {&__pyx_k115p, __pyx_k115, sizeof(__pyx_k115)}, {&__pyx_k116p, __pyx_k116, sizeof(__pyx_k116)}, {&__pyx_k117p, __pyx_k117, sizeof(__pyx_k117)}, {&__pyx_k118p, __pyx_k118, sizeof(__pyx_k118)}, {&__pyx_k119p, __pyx_k119, sizeof(__pyx_k119)}, {&__pyx_k120p, __pyx_k120, sizeof(__pyx_k120)}, {&__pyx_k121p, __pyx_k121, sizeof(__pyx_k121)}, {&__pyx_k122p, __pyx_k122, sizeof(__pyx_k122)}, {&__pyx_k123p, __pyx_k123, sizeof(__pyx_k123)}, {&__pyx_k124p, __pyx_k124, sizeof(__pyx_k124)}, {&__pyx_k125p, __pyx_k125, sizeof(__pyx_k125)}, {&__pyx_k126p, __pyx_k126, sizeof(__pyx_k126)}, {&__pyx_k127p, __pyx_k127, sizeof(__pyx_k127)}, {&__pyx_k128p, __pyx_k128, sizeof(__pyx_k128)}, {&__pyx_k129p, __pyx_k129, sizeof(__pyx_k129)}, {&__pyx_k130p, __pyx_k130, sizeof(__pyx_k130)}, {&__pyx_k131p, __pyx_k131, sizeof(__pyx_k131)}, {&__pyx_k132p, __pyx_k132, sizeof(__pyx_k132)}, {&__pyx_k133p, __pyx_k133, sizeof(__pyx_k133)}, {&__pyx_k139p, __pyx_k139, sizeof(__pyx_k139)}, {0, 0, 0} }; static PyObject *__pyx_tp_new_9objectify_ObjectifiedElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_11etreepublic_ElementBase->tp_new(t, a, k); return o; } static void __pyx_tp_dealloc_9objectify_ObjectifiedElement(PyObject *o) { __pyx_ptype_11etreepublic_ElementBase->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_ObjectifiedElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_11etreepublic_ElementBase->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_ObjectifiedElement(PyObject *o) { __pyx_ptype_11etreepublic_ElementBase->tp_clear(o); return 0; } static PyObject *__pyx_sq_item_9objectify_ObjectifiedElement(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = o->ob_type->tp_as_mapping->mp_subscript(o, x); Py_DECREF(x); return r; } static int __pyx_mp_ass_subscript_9objectify_ObjectifiedElement(PyObject *o, PyObject *i, PyObject *v) { if (v) { return __pyx_f_9objectify_18ObjectifiedElement___setitem__(o, i, v); } else { return __pyx_f_9objectify_18ObjectifiedElement___delitem__(o, i); } } static int __pyx_sq_ass_slice_9objectify_ObjectifiedElement(PyObject *o, Py_ssize_t i, Py_ssize_t j, PyObject *v) { if (v) { return __pyx_f_9objectify_18ObjectifiedElement___setslice__(o, i, j, v); } else { return __pyx_f_9objectify_18ObjectifiedElement___delslice__(o, i, j); } } static PyObject *__pyx_tp_getattro_9objectify_ObjectifiedElement(PyObject *o, PyObject *n) { PyObject *v = PyObject_GenericGetAttr(o, n); if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); v = __pyx_f_9objectify_18ObjectifiedElement___getattr__(o, n); } return v; } static int __pyx_tp_setattro_9objectify_ObjectifiedElement(PyObject *o, PyObject *n, PyObject *v) { if (v) { return __pyx_f_9objectify_18ObjectifiedElement___setattr__(o, n, v); } else { return __pyx_f_9objectify_18ObjectifiedElement___delattr__(o, n); } } static PyObject *__pyx_getprop_9objectify_18ObjectifiedElement_text(PyObject *o, void *x) { return __pyx_f_9objectify_18ObjectifiedElement_4text___get__(o); } static PyObject *__pyx_getprop_9objectify_18ObjectifiedElement___dict__(PyObject *o, void *x) { return __pyx_f_9objectify_18ObjectifiedElement_8__dict_____get__(o); } static struct PyMethodDef __pyx_methods_9objectify_ObjectifiedElement[] = { {"countchildren", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_countchildren, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_18ObjectifiedElement_countchildren}, {"addattr", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_18ObjectifiedElement_addattr}, {"findall", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_findall, METH_VARARGS|METH_KEYWORDS, 0}, {"find", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_find, METH_VARARGS|METH_KEYWORDS, 0}, {"findtext", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_findtext, METH_VARARGS|METH_KEYWORDS, 0}, {"descendantpaths", (PyCFunction)__pyx_f_9objectify_18ObjectifiedElement_descendantpaths, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_18ObjectifiedElement_descendantpaths}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_ObjectifiedElement[] = { {"text", __pyx_getprop_9objectify_18ObjectifiedElement_text, 0, 0, 0}, {"__dict__", __pyx_getprop_9objectify_18ObjectifiedElement___dict__, 0, __pyx_k1, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_ObjectifiedElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_ObjectifiedElement = { __pyx_f_9objectify_18ObjectifiedElement___len__, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ __pyx_sq_item_9objectify_ObjectifiedElement, /*sq_item*/ __pyx_f_9objectify_18ObjectifiedElement___getslice__, /*sq_slice*/ 0, /*sq_ass_item*/ __pyx_sq_ass_slice_9objectify_ObjectifiedElement, /*sq_ass_slice*/ 0, /*sq_contains*/ 0, /*sq_inplace_concat*/ 0, /*sq_inplace_repeat*/ }; static PyMappingMethods __pyx_tp_as_mapping_ObjectifiedElement = { __pyx_f_9objectify_18ObjectifiedElement___len__, /*mp_length*/ __pyx_f_9objectify_18ObjectifiedElement___getitem__, /*mp_subscript*/ __pyx_mp_ass_subscript_9objectify_ObjectifiedElement, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_ObjectifiedElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_ObjectifiedElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.ObjectifiedElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_ObjectifiedElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_ObjectifiedElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_ObjectifiedElement, /*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_f_9objectify_18ObjectifiedElement___str__, /*tp_str*/ __pyx_tp_getattro_9objectify_ObjectifiedElement, /*tp_getattro*/ __pyx_tp_setattro_9objectify_ObjectifiedElement, /*tp_setattro*/ &__pyx_tp_as_buffer_ObjectifiedElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|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 = etree.XML(\"01\")\n >>> second_c2 = root.c1.c2[1]\n ", /*tp_doc*/ __pyx_tp_traverse_9objectify_ObjectifiedElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_ObjectifiedElement, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ __pyx_f_9objectify_18ObjectifiedElement___iter__, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_ObjectifiedElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static PyObject *__pyx_tp_new_9objectify_ObjectifiedDataElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_ObjectifiedElement->tp_new(t, a, k); return o; } static void __pyx_tp_dealloc_9objectify_ObjectifiedDataElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_ObjectifiedDataElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_ObjectifiedElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_ObjectifiedDataElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedElement->tp_clear(o); return 0; } static PyObject *__pyx_getprop_9objectify_22ObjectifiedDataElement_pyval(PyObject *o, void *x) { return __pyx_f_9objectify_22ObjectifiedDataElement_5pyval___get__(o); } static struct PyMethodDef __pyx_methods_9objectify_ObjectifiedDataElement[] = { {"_setText", (PyCFunction)__pyx_f_9objectify_22ObjectifiedDataElement__setText, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_22ObjectifiedDataElement__setText}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_ObjectifiedDataElement[] = { {"pyval", __pyx_getprop_9objectify_22ObjectifiedDataElement_pyval, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_ObjectifiedDataElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_ObjectifiedDataElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_ObjectifiedDataElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_ObjectifiedDataElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_ObjectifiedDataElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.ObjectifiedDataElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_ObjectifiedDataElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_ObjectifiedDataElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_22ObjectifiedDataElement___repr__, /*tp_repr*/ &__pyx_tp_as_number_ObjectifiedDataElement, /*tp_as_number*/ &__pyx_tp_as_sequence_ObjectifiedDataElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_ObjectifiedDataElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_9objectify_22ObjectifiedDataElement___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_ObjectifiedDataElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|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_9objectify_ObjectifiedDataElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_ObjectifiedDataElement, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_ObjectifiedDataElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static struct __pyx_vtabstruct_9objectify_NumberElement __pyx_vtable_9objectify_NumberElement; static PyObject *__pyx_tp_new_9objectify_NumberElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_new(t, a, k); struct __pyx_obj_9objectify_NumberElement *p = (struct __pyx_obj_9objectify_NumberElement *)o; *(struct __pyx_vtabstruct_9objectify_NumberElement **)&p->__pyx_vtab = __pyx_vtabptr_9objectify_NumberElement; p->_type = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9objectify_NumberElement(PyObject *o) { struct __pyx_obj_9objectify_NumberElement *p = (struct __pyx_obj_9objectify_NumberElement *)o; Py_XDECREF(p->_type); __pyx_ptype_9objectify_ObjectifiedDataElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_NumberElement(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9objectify_NumberElement *p = (struct __pyx_obj_9objectify_NumberElement *)o; e = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_traverse(o, v, a); if (e) return e; if (p->_type) { e = (*v)(p->_type, a); if (e) return e; } return 0; } static int __pyx_tp_clear_9objectify_NumberElement(PyObject *o) { struct __pyx_obj_9objectify_NumberElement *p = (struct __pyx_obj_9objectify_NumberElement *)o; __pyx_ptype_9objectify_ObjectifiedDataElement->tp_clear(o); Py_XDECREF(p->_type); p->_type = Py_None; Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_9objectify_13NumberElement_pyval(PyObject *o, void *x) { return __pyx_f_9objectify_13NumberElement_5pyval___get__(o); } static struct PyMethodDef __pyx_methods_9objectify_NumberElement[] = { {"_setValueParser", (PyCFunction)__pyx_f_9objectify_13NumberElement__setValueParser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_13NumberElement__setValueParser}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_NumberElement[] = { {"pyval", __pyx_getprop_9objectify_13NumberElement_pyval, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_NumberElement = { __pyx_f_9objectify_13NumberElement___add__, /*nb_add*/ __pyx_f_9objectify_13NumberElement___sub__, /*nb_subtract*/ __pyx_f_9objectify_13NumberElement___mul__, /*nb_multiply*/ __pyx_f_9objectify_13NumberElement___div__, /*nb_divide*/ __pyx_f_9objectify_13NumberElement___mod__, /*nb_remainder*/ 0, /*nb_divmod*/ __pyx_f_9objectify_13NumberElement___pow__, /*nb_power*/ __pyx_f_9objectify_13NumberElement___neg__, /*nb_negative*/ __pyx_f_9objectify_13NumberElement___pos__, /*nb_positive*/ __pyx_f_9objectify_13NumberElement___abs__, /*nb_absolute*/ __pyx_f_9objectify_13NumberElement___nonzero__, /*nb_nonzero*/ __pyx_f_9objectify_13NumberElement___invert__, /*nb_invert*/ __pyx_f_9objectify_13NumberElement___lshift__, /*nb_lshift*/ __pyx_f_9objectify_13NumberElement___rshift__, /*nb_rshift*/ __pyx_f_9objectify_13NumberElement___and__, /*nb_and*/ __pyx_f_9objectify_13NumberElement___xor__, /*nb_xor*/ __pyx_f_9objectify_13NumberElement___or__, /*nb_or*/ 0, /*nb_coerce*/ __pyx_f_9objectify_13NumberElement___int__, /*nb_int*/ __pyx_f_9objectify_13NumberElement___long__, /*nb_long*/ __pyx_f_9objectify_13NumberElement___float__, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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_f_9objectify_13NumberElement___truediv__, /*nb_true_divide*/ 0, /*nb_inplace_floor_divide*/ 0, /*nb_inplace_true_divide*/ }; static PySequenceMethods __pyx_tp_as_sequence_NumberElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_NumberElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_NumberElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_NumberElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.NumberElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_NumberElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_NumberElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_13NumberElement___repr__, /*tp_repr*/ &__pyx_tp_as_number_NumberElement, /*tp_as_number*/ &__pyx_tp_as_sequence_NumberElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_NumberElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_9objectify_13NumberElement___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_NumberElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9objectify_NumberElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_NumberElement, /*tp_clear*/ __pyx_f_9objectify_13NumberElement___richcmp__, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_NumberElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static struct __pyx_vtabstruct_9objectify_IntElement __pyx_vtable_9objectify_IntElement; static PyObject *__pyx_tp_new_9objectify_IntElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_NumberElement->tp_new(t, a, k); struct __pyx_obj_9objectify_IntElement *p = (struct __pyx_obj_9objectify_IntElement *)o; *(struct __pyx_vtabstruct_9objectify_IntElement **)&p->__pyx_base.__pyx_vtab = __pyx_vtabptr_9objectify_IntElement; return o; } static void __pyx_tp_dealloc_9objectify_IntElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_IntElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_NumberElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_IntElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_clear(o); return 0; } static struct PyMethodDef __pyx_methods_9objectify_IntElement[] = { {"_init", (PyCFunction)__pyx_f_9objectify_10IntElement__init, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_IntElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_IntElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_IntElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_IntElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_IntElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.IntElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_IntElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_IntElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_IntElement, /*tp_as_number*/ &__pyx_tp_as_sequence_IntElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_IntElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_IntElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9objectify_IntElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_IntElement, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_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_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*/ }; static struct __pyx_vtabstruct_9objectify_LongElement __pyx_vtable_9objectify_LongElement; static PyObject *__pyx_tp_new_9objectify_LongElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_NumberElement->tp_new(t, a, k); struct __pyx_obj_9objectify_LongElement *p = (struct __pyx_obj_9objectify_LongElement *)o; *(struct __pyx_vtabstruct_9objectify_LongElement **)&p->__pyx_base.__pyx_vtab = __pyx_vtabptr_9objectify_LongElement; return o; } static void __pyx_tp_dealloc_9objectify_LongElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_LongElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_NumberElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_LongElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_clear(o); return 0; } static struct PyMethodDef __pyx_methods_9objectify_LongElement[] = { {"_init", (PyCFunction)__pyx_f_9objectify_11LongElement__init, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_LongElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_LongElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_LongElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_LongElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_LongElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.LongElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_LongElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_LongElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_LongElement, /*tp_as_number*/ &__pyx_tp_as_sequence_LongElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_LongElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_LongElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9objectify_LongElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_LongElement, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_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_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*/ }; static struct __pyx_vtabstruct_9objectify_FloatElement __pyx_vtable_9objectify_FloatElement; static PyObject *__pyx_tp_new_9objectify_FloatElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_NumberElement->tp_new(t, a, k); struct __pyx_obj_9objectify_FloatElement *p = (struct __pyx_obj_9objectify_FloatElement *)o; *(struct __pyx_vtabstruct_9objectify_FloatElement **)&p->__pyx_base.__pyx_vtab = __pyx_vtabptr_9objectify_FloatElement; return o; } static void __pyx_tp_dealloc_9objectify_FloatElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_FloatElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_NumberElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_FloatElement(PyObject *o) { __pyx_ptype_9objectify_NumberElement->tp_clear(o); return 0; } static struct PyMethodDef __pyx_methods_9objectify_FloatElement[] = { {"_init", (PyCFunction)__pyx_f_9objectify_12FloatElement__init, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_FloatElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_FloatElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_FloatElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_FloatElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_FloatElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.FloatElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_FloatElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_FloatElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_FloatElement, /*tp_as_number*/ &__pyx_tp_as_sequence_FloatElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_FloatElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_FloatElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9objectify_FloatElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_FloatElement, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_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_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*/ }; static PyObject *__pyx_tp_new_9objectify_StringElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_new(t, a, k); return o; } static void __pyx_tp_dealloc_9objectify_StringElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_StringElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_StringElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_clear(o); return 0; } static PyObject *__pyx_getprop_9objectify_13StringElement_pyval(PyObject *o, void *x) { return __pyx_f_9objectify_13StringElement_5pyval___get__(o); } static struct PyMethodDef __pyx_methods_9objectify_StringElement[] = { {"strlen", (PyCFunction)__pyx_f_9objectify_13StringElement_strlen, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_StringElement[] = { {"pyval", __pyx_getprop_9objectify_13StringElement_pyval, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_StringElement = { __pyx_f_9objectify_13StringElement___add__, /*nb_add*/ 0, /*nb_subtract*/ __pyx_f_9objectify_13StringElement___mul__, /*nb_multiply*/ 0, /*nb_divide*/ __pyx_f_9objectify_13StringElement___mod__, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_f_9objectify_13StringElement___nonzero__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_StringElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_StringElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_StringElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_StringElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.StringElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_StringElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_StringElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_13StringElement___repr__, /*tp_repr*/ &__pyx_tp_as_number_StringElement, /*tp_as_number*/ &__pyx_tp_as_sequence_StringElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_StringElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_StringElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|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_9objectify_StringElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_StringElement, /*tp_clear*/ __pyx_f_9objectify_13StringElement___richcmp__, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_StringElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static PyObject *__pyx_tp_new_9objectify_NoneElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_new(t, a, k); return o; } static void __pyx_tp_dealloc_9objectify_NoneElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_NoneElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_NoneElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_clear(o); return 0; } static PyObject *__pyx_getprop_9objectify_11NoneElement_pyval(PyObject *o, void *x) { return __pyx_f_9objectify_11NoneElement_5pyval___get__(o); } static struct PyMethodDef __pyx_methods_9objectify_NoneElement[] = { {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_NoneElement[] = { {"pyval", __pyx_getprop_9objectify_11NoneElement_pyval, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_NoneElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_f_9objectify_11NoneElement___nonzero__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_NoneElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_NoneElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_NoneElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_NoneElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.NoneElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_NoneElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_NoneElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_11NoneElement___repr__, /*tp_repr*/ &__pyx_tp_as_number_NoneElement, /*tp_as_number*/ &__pyx_tp_as_sequence_NoneElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_NoneElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_9objectify_11NoneElement___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_NoneElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ 0, /*tp_doc*/ __pyx_tp_traverse_9objectify_NoneElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_NoneElement, /*tp_clear*/ __pyx_f_9objectify_11NoneElement___richcmp__, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_NoneElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static struct __pyx_vtabstruct_9objectify_BoolElement __pyx_vtable_9objectify_BoolElement; static PyObject *__pyx_tp_new_9objectify_BoolElement(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_new(t, a, k); struct __pyx_obj_9objectify_BoolElement *p = (struct __pyx_obj_9objectify_BoolElement *)o; *(struct __pyx_vtabstruct_9objectify_BoolElement **)&p->__pyx_vtab = __pyx_vtabptr_9objectify_BoolElement; return o; } static void __pyx_tp_dealloc_9objectify_BoolElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_BoolElement(PyObject *o, visitproc v, void *a) { int e; e = __pyx_ptype_9objectify_ObjectifiedDataElement->tp_traverse(o, v, a); if (e) return e; return 0; } static int __pyx_tp_clear_9objectify_BoolElement(PyObject *o) { __pyx_ptype_9objectify_ObjectifiedDataElement->tp_clear(o); return 0; } static PyObject *__pyx_getprop_9objectify_11BoolElement_pyval(PyObject *o, void *x) { return __pyx_f_9objectify_11BoolElement_5pyval___get__(o); } static struct PyMethodDef __pyx_methods_9objectify_BoolElement[] = { {0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_BoolElement[] = { {"pyval", __pyx_getprop_9objectify_11BoolElement_pyval, 0, 0, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_BoolElement = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ __pyx_f_9objectify_11BoolElement___nonzero__, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_BoolElement = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_BoolElement = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_BoolElement = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_BoolElement = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.BoolElement", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_BoolElement), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_BoolElement, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_11BoolElement___repr__, /*tp_repr*/ &__pyx_tp_as_number_BoolElement, /*tp_as_number*/ &__pyx_tp_as_sequence_BoolElement, /*tp_as_sequence*/ &__pyx_tp_as_mapping_BoolElement, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ __pyx_f_9objectify_11BoolElement___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_BoolElement, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "Boolean type base on string values: \'true\' or \'false\'.\n ", /*tp_doc*/ __pyx_tp_traverse_9objectify_BoolElement, /*tp_traverse*/ __pyx_tp_clear_9objectify_BoolElement, /*tp_clear*/ __pyx_f_9objectify_11BoolElement___richcmp__, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_BoolElement, /*tp_methods*/ 0, /*tp_members*/ __pyx_getsets_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_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*/ }; static PyObject *__pyx_tp_new_9objectify_PyType(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_9objectify_PyType *p = (struct __pyx_obj_9objectify_PyType *)o; p->name = Py_None; Py_INCREF(Py_None); p->type_check = Py_None; Py_INCREF(Py_None); p->_type = Py_None; Py_INCREF(Py_None); p->_schema_types = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9objectify_PyType(PyObject *o) { struct __pyx_obj_9objectify_PyType *p = (struct __pyx_obj_9objectify_PyType *)o; Py_XDECREF(p->name); Py_XDECREF(p->type_check); Py_XDECREF(p->_type); Py_XDECREF(p->_schema_types); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_9objectify_PyType(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9objectify_PyType *p = (struct __pyx_obj_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->_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_9objectify_PyType(PyObject *o) { struct __pyx_obj_9objectify_PyType *p = (struct __pyx_obj_9objectify_PyType *)o; Py_XDECREF(p->name); p->name = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->type_check); p->type_check = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->_type); p->_type = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->_schema_types); p->_schema_types = Py_None; Py_INCREF(Py_None); return 0; } static PyObject *__pyx_getprop_9objectify_6PyType_xmlSchemaTypes(PyObject *o, void *x) { return __pyx_f_9objectify_6PyType_14xmlSchemaTypes___get__(o); } static int __pyx_setprop_9objectify_6PyType_xmlSchemaTypes(PyObject *o, PyObject *v, void *x) { if (v) { return __pyx_f_9objectify_6PyType_14xmlSchemaTypes___set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); return -1; } } static struct PyMethodDef __pyx_methods_9objectify_PyType[] = { {"register", (PyCFunction)__pyx_f_9objectify_6PyType_register, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_6PyType_register}, {"unregister", (PyCFunction)__pyx_f_9objectify_6PyType_unregister, METH_VARARGS|METH_KEYWORDS, 0}, {0, 0, 0, 0} }; static struct PyMemberDef __pyx_members_9objectify_PyType[] = { {"name", T_OBJECT, offsetof(struct __pyx_obj_9objectify_PyType, name), READONLY, 0}, {"type_check", T_OBJECT, offsetof(struct __pyx_obj_9objectify_PyType, type_check), READONLY, 0}, {0, 0, 0, 0, 0} }; static struct PyGetSetDef __pyx_getsets_9objectify_PyType[] = { {"xmlSchemaTypes", __pyx_getprop_9objectify_6PyType_xmlSchemaTypes, __pyx_setprop_9objectify_6PyType_xmlSchemaTypes, __pyx_k2, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_PyType = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_PyType = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_PyType = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_PyType = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_PyType = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.PyType", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_PyType), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_PyType, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ __pyx_f_9objectify_6PyType___repr__, /*tp_repr*/ &__pyx_tp_as_number_PyType, /*tp_as_number*/ &__pyx_tp_as_sequence_PyType, /*tp_as_sequence*/ &__pyx_tp_as_mapping_PyType, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_PyType, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "User defined type.\n\n Named type that contains a type check function and a type class that\n inherits from ObjectifiedDataElement. The type check must take a string\n as argument and raise ValueError or TypeError if it cannot handle the\n string value. It may be None in which case it is not considered for type\n guessing.\n\n Example:\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_9objectify_PyType, /*tp_traverse*/ __pyx_tp_clear_9objectify_PyType, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_PyType, /*tp_methods*/ __pyx_members_9objectify_PyType, /*tp_members*/ __pyx_getsets_9objectify_PyType, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_f_9objectify_6PyType___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_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*/ }; static PyObject *__pyx_tp_new_9objectify_ObjectifyElementClassLookup(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = __pyx_ptype_11etreepublic_ElementClassLookup->tp_new(t, a, k); struct __pyx_obj_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_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_9objectify_ObjectifyElementClassLookup(PyObject *o) { struct __pyx_obj_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)o; Py_XDECREF(p->empty_data_class); Py_XDECREF(p->tree_class); __pyx_ptype_11etreepublic_ElementClassLookup->tp_dealloc(o); } static int __pyx_tp_traverse_9objectify_ObjectifyElementClassLookup(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)o; e = __pyx_ptype_11etreepublic_ElementClassLookup->tp_traverse(o, v, a); 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_9objectify_ObjectifyElementClassLookup(PyObject *o) { struct __pyx_obj_9objectify_ObjectifyElementClassLookup *p = (struct __pyx_obj_9objectify_ObjectifyElementClassLookup *)o; __pyx_ptype_11etreepublic_ElementClassLookup->tp_clear(o); Py_XDECREF(p->empty_data_class); p->empty_data_class = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->tree_class); p->tree_class = Py_None; Py_INCREF(Py_None); return 0; } static struct PyMethodDef __pyx_methods_9objectify_ObjectifyElementClassLookup[] = { {0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_ObjectifyElementClassLookup = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_ObjectifyElementClassLookup = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_ObjectifyElementClassLookup = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_ObjectifyElementClassLookup = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_ObjectifyElementClassLookup = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.ObjectifyElementClassLookup", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_ObjectifyElementClassLookup), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_ObjectifyElementClassLookup, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_ObjectifyElementClassLookup, /*tp_as_number*/ &__pyx_tp_as_sequence_ObjectifyElementClassLookup, /*tp_as_sequence*/ &__pyx_tp_as_mapping_ObjectifyElementClassLookup, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_ObjectifyElementClassLookup, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "Element class lookup method that uses the objectify classes.\n ", /*tp_doc*/ __pyx_tp_traverse_9objectify_ObjectifyElementClassLookup, /*tp_traverse*/ __pyx_tp_clear_9objectify_ObjectifyElementClassLookup, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_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_f_9objectify_27ObjectifyElementClassLookup___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_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*/ }; static PyObject *__pyx_tp_new_9objectify_ObjectPath(PyTypeObject *t, PyObject *a, PyObject *k) { PyObject *o = (*t->tp_alloc)(t, 0); struct __pyx_obj_9objectify_ObjectPath *p = (struct __pyx_obj_9objectify_ObjectPath *)o; p->find = Py_None; Py_INCREF(Py_None); p->_path = Py_None; Py_INCREF(Py_None); p->_path_str = Py_None; Py_INCREF(Py_None); return o; } static void __pyx_tp_dealloc_9objectify_ObjectPath(PyObject *o) { struct __pyx_obj_9objectify_ObjectPath *p = (struct __pyx_obj_9objectify_ObjectPath *)o; { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++o->ob_refcnt; __pyx_f_9objectify_10ObjectPath___dealloc__(o); if (PyErr_Occurred()) PyErr_WriteUnraisable(o); --o->ob_refcnt; PyErr_Restore(etype, eval, etb); } Py_XDECREF(p->find); Py_XDECREF(p->_path); Py_XDECREF(p->_path_str); (*o->ob_type->tp_free)(o); } static int __pyx_tp_traverse_9objectify_ObjectPath(PyObject *o, visitproc v, void *a) { int e; struct __pyx_obj_9objectify_ObjectPath *p = (struct __pyx_obj_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_9objectify_ObjectPath(PyObject *o) { struct __pyx_obj_9objectify_ObjectPath *p = (struct __pyx_obj_9objectify_ObjectPath *)o; Py_XDECREF(p->find); p->find = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->_path); p->_path = Py_None; Py_INCREF(Py_None); Py_XDECREF(p->_path_str); p->_path_str = Py_None; Py_INCREF(Py_None); return 0; } static struct PyMethodDef __pyx_methods_9objectify_ObjectPath[] = { {"hasattr", (PyCFunction)__pyx_f_9objectify_10ObjectPath_hasattr, METH_VARARGS|METH_KEYWORDS, 0}, {"setattr", (PyCFunction)__pyx_f_9objectify_10ObjectPath_setattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_10ObjectPath_setattr}, {"addattr", (PyCFunction)__pyx_f_9objectify_10ObjectPath_addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_10ObjectPath_addattr}, {0, 0, 0, 0} }; static struct PyMemberDef __pyx_members_9objectify_ObjectPath[] = { {"find", T_OBJECT, offsetof(struct __pyx_obj_9objectify_ObjectPath, find), READONLY, 0}, {0, 0, 0, 0, 0} }; static PyNumberMethods __pyx_tp_as_number_ObjectPath = { 0, /*nb_add*/ 0, /*nb_subtract*/ 0, /*nb_multiply*/ 0, /*nb_divide*/ 0, /*nb_remainder*/ 0, /*nb_divmod*/ 0, /*nb_power*/ 0, /*nb_negative*/ 0, /*nb_positive*/ 0, /*nb_absolute*/ 0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ 0, /*nb_coerce*/ 0, /*nb_int*/ 0, /*nb_long*/ 0, /*nb_float*/ 0, /*nb_oct*/ 0, /*nb_hex*/ 0, /*nb_inplace_add*/ 0, /*nb_inplace_subtract*/ 0, /*nb_inplace_multiply*/ 0, /*nb_inplace_divide*/ 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*/ }; static PySequenceMethods __pyx_tp_as_sequence_ObjectPath = { 0, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*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_ObjectPath = { 0, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; static PyBufferProcs __pyx_tp_as_buffer_ObjectPath = { 0, /*bf_getreadbuffer*/ 0, /*bf_getwritebuffer*/ 0, /*bf_getsegcount*/ 0, /*bf_getcharbuffer*/ }; PyTypeObject __pyx_type_9objectify_ObjectPath = { PyObject_HEAD_INIT(0) 0, /*ob_size*/ "objectify.ObjectPath", /*tp_name*/ sizeof(struct __pyx_obj_9objectify_ObjectPath), /*tp_basicsize*/ 0, /*tp_itemsize*/ __pyx_tp_dealloc_9objectify_ObjectPath, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ &__pyx_tp_as_number_ObjectPath, /*tp_as_number*/ &__pyx_tp_as_sequence_ObjectPath, /*tp_as_sequence*/ &__pyx_tp_as_mapping_ObjectPath, /*tp_as_mapping*/ 0, /*tp_hash*/ __pyx_f_9objectify_10ObjectPath___call__, /*tp_call*/ __pyx_f_9objectify_10ObjectPath___str__, /*tp_str*/ 0, /*tp_getattro*/ 0, /*tp_setattro*/ &__pyx_tp_as_buffer_ObjectPath, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "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_9objectify_ObjectPath, /*tp_traverse*/ __pyx_tp_clear_9objectify_ObjectPath, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ __pyx_methods_9objectify_ObjectPath, /*tp_methods*/ __pyx_members_9objectify_ObjectPath, /*tp_members*/ 0, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ __pyx_f_9objectify_10ObjectPath___init__, /*tp_init*/ 0, /*tp_alloc*/ __pyx_tp_new_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*/ }; static struct PyMethodDef __pyx_methods[] = { {"setPytypeAttributeTag", (PyCFunction)__pyx_f_9objectify_setPytypeAttributeTag, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_setPytypeAttributeTag}, {"__checkBool", (PyCFunction)__pyx_f_9objectify___checkBool, METH_VARARGS|METH_KEYWORDS, 0}, {"getRegisteredTypes", (PyCFunction)__pyx_f_9objectify_getRegisteredTypes, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_getRegisteredTypes}, {"enableRecursiveStr", (PyCFunction)__pyx_f_9objectify_enableRecursiveStr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_enableRecursiveStr}, {"dump", (PyCFunction)__pyx_f_9objectify_dump, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_dump}, {"annotate", (PyCFunction)__pyx_f_9objectify_annotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_annotate}, {"setDefaultParser", (PyCFunction)__pyx_f_9objectify_setDefaultParser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_setDefaultParser}, {"fromstring", (PyCFunction)__pyx_f_9objectify_fromstring, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_fromstring}, {"Element", (PyCFunction)__pyx_f_9objectify_Element, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_Element}, {"DataElement", (PyCFunction)__pyx_f_9objectify_DataElement, METH_VARARGS|METH_KEYWORDS, __pyx_doc_9objectify_DataElement}, {0, 0, 0, 0} }; static void __pyx_init_filenames(void); /*proto*/ PyMODINIT_FUNC initobjectify(void); /*proto*/ PyMODINIT_FUNC initobjectify(void) { PyObject *__pyx_1 = 0; PyObject *__pyx_2 = 0; int __pyx_3; PyObject *__pyx_4 = 0; PyObject *__pyx_5 = 0; __pyx_init_filenames(); __pyx_m = Py_InitModule4("objectify", __pyx_methods, 0, 0, PYTHON_API_VERSION); if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_b = PyImport_AddModule("__builtin__"); if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;}; __pyx_v_9objectify_etree = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_SubElement = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_re = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify___builtin__ = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_int = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_long = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_float = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_bool = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_pow = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_abs = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_len = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_True = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_False = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_AttributeError = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_IndexError = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_list = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_set = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_islice = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_PYTYPE_NAMESPACE = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_PYTYPE_ATTRIBUTE_NAME = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_TREE_PYTYPE = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify__PYTYPE_DICT = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify__SCHEMA_TYPE_DICT = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify__TYPE_CHECKS = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify___MATCH_PATH_SEGMENT = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify___DEFAULT_PARSER = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify_parser = Py_None; Py_INCREF(Py_None); __pyx_v_9objectify__fromstring = Py_None; Py_INCREF(Py_None); __pyx_ptype_11etreepublic_ElementBase = __Pyx_ImportType("lxml.etree", "ElementBase", sizeof(struct LxmlElementBase)); if (!__pyx_ptype_11etreepublic_ElementBase) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_type_9objectify_ObjectifiedElement.tp_base = __pyx_ptype_11etreepublic_ElementBase; if (PyType_Ready(&__pyx_type_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "ObjectifiedElement", (PyObject *)&__pyx_type_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; goto __pyx_L1;} __pyx_ptype_9objectify_ObjectifiedElement = &__pyx_type_9objectify_ObjectifiedElement; __pyx_type_9objectify_ObjectifiedDataElement.tp_base = __pyx_ptype_9objectify_ObjectifiedElement; if (PyType_Ready(&__pyx_type_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "ObjectifiedDataElement", (PyObject *)&__pyx_type_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;} __pyx_ptype_9objectify_ObjectifiedDataElement = &__pyx_type_9objectify_ObjectifiedDataElement; __pyx_vtabptr_9objectify_NumberElement = &__pyx_vtable_9objectify_NumberElement; *(void(**)())&__pyx_vtable_9objectify_NumberElement._value = (void(*)())__pyx_f_9objectify_13NumberElement__value; __pyx_type_9objectify_NumberElement.tp_base = __pyx_ptype_9objectify_ObjectifiedDataElement; __pyx_type_9objectify_NumberElement.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_9objectify_NumberElement.tp_dict, __pyx_vtabptr_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "NumberElement", (PyObject *)&__pyx_type_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;} __pyx_ptype_9objectify_NumberElement = &__pyx_type_9objectify_NumberElement; __pyx_vtabptr_9objectify_IntElement = &__pyx_vtable_9objectify_IntElement; __pyx_vtable_9objectify_IntElement.__pyx_base = *__pyx_vtabptr_9objectify_NumberElement; __pyx_type_9objectify_IntElement.tp_base = __pyx_ptype_9objectify_NumberElement; if (PyType_Ready(&__pyx_type_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_9objectify_IntElement.tp_dict, __pyx_vtabptr_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "IntElement", (PyObject *)&__pyx_type_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; goto __pyx_L1;} __pyx_ptype_9objectify_IntElement = &__pyx_type_9objectify_IntElement; __pyx_vtabptr_9objectify_LongElement = &__pyx_vtable_9objectify_LongElement; __pyx_vtable_9objectify_LongElement.__pyx_base = *__pyx_vtabptr_9objectify_NumberElement; __pyx_type_9objectify_LongElement.tp_base = __pyx_ptype_9objectify_NumberElement; if (PyType_Ready(&__pyx_type_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_9objectify_LongElement.tp_dict, __pyx_vtabptr_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "LongElement", (PyObject *)&__pyx_type_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; goto __pyx_L1;} __pyx_ptype_9objectify_LongElement = &__pyx_type_9objectify_LongElement; __pyx_vtabptr_9objectify_FloatElement = &__pyx_vtable_9objectify_FloatElement; __pyx_vtable_9objectify_FloatElement.__pyx_base = *__pyx_vtabptr_9objectify_NumberElement; __pyx_type_9objectify_FloatElement.tp_base = __pyx_ptype_9objectify_NumberElement; if (PyType_Ready(&__pyx_type_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_9objectify_FloatElement.tp_dict, __pyx_vtabptr_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "FloatElement", (PyObject *)&__pyx_type_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; goto __pyx_L1;} __pyx_ptype_9objectify_FloatElement = &__pyx_type_9objectify_FloatElement; __pyx_type_9objectify_StringElement.tp_base = __pyx_ptype_9objectify_ObjectifiedDataElement; if (PyType_Ready(&__pyx_type_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "StringElement", (PyObject *)&__pyx_type_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; goto __pyx_L1;} __pyx_ptype_9objectify_StringElement = &__pyx_type_9objectify_StringElement; __pyx_type_9objectify_NoneElement.tp_base = __pyx_ptype_9objectify_ObjectifiedDataElement; if (PyType_Ready(&__pyx_type_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "NoneElement", (PyObject *)&__pyx_type_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; goto __pyx_L1;} __pyx_ptype_9objectify_NoneElement = &__pyx_type_9objectify_NoneElement; __pyx_vtabptr_9objectify_BoolElement = &__pyx_vtable_9objectify_BoolElement; *(void(**)())&__pyx_vtable_9objectify_BoolElement._boolval = (void(*)())__pyx_f_9objectify_11BoolElement__boolval; __pyx_type_9objectify_BoolElement.tp_base = __pyx_ptype_9objectify_ObjectifiedDataElement; if (PyType_Ready(&__pyx_type_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;} if (__Pyx_SetVtable(__pyx_type_9objectify_BoolElement.tp_dict, __pyx_vtabptr_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "BoolElement", (PyObject *)&__pyx_type_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;} __pyx_ptype_9objectify_BoolElement = &__pyx_type_9objectify_BoolElement; __pyx_type_9objectify_PyType.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "PyType", (PyObject *)&__pyx_type_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; goto __pyx_L1;} __pyx_ptype_9objectify_PyType = &__pyx_type_9objectify_PyType; __pyx_ptype_11etreepublic_ElementClassLookup = __Pyx_ImportType("lxml.etree", "ElementClassLookup", sizeof(struct LxmlElementClassLookup)); if (!__pyx_ptype_11etreepublic_ElementClassLookup) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; goto __pyx_L1;} __pyx_type_9objectify_ObjectifyElementClassLookup.tp_base = __pyx_ptype_11etreepublic_ElementClassLookup; __pyx_type_9objectify_ObjectifyElementClassLookup.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "ObjectifyElementClassLookup", (PyObject *)&__pyx_type_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; goto __pyx_L1;} __pyx_ptype_9objectify_ObjectifyElementClassLookup = &__pyx_type_9objectify_ObjectifyElementClassLookup; __pyx_type_9objectify_ObjectPath.tp_free = _PyObject_GC_Del; if (PyType_Ready(&__pyx_type_9objectify_ObjectPath) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1070; goto __pyx_L1;} if (PyObject_SetAttrString(__pyx_m, "ObjectPath", (PyObject *)&__pyx_type_9objectify_ObjectPath) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1070; goto __pyx_L1;} __pyx_ptype_9objectify_ObjectPath = &__pyx_type_9objectify_ObjectPath; __pyx_ptype_11etreepublic__Document = __Pyx_ImportType("lxml.etree", "_Document", sizeof(struct LxmlDocument)); if (!__pyx_ptype_11etreepublic__Document) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; goto __pyx_L1;} __pyx_ptype_11etreepublic__Element = __Pyx_ImportType("lxml.etree", "_Element", sizeof(struct LxmlElement)); if (!__pyx_ptype_11etreepublic__Element) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 30; goto __pyx_L1;} __pyx_ptype_11etreepublic__ElementTree = __Pyx_ImportType("lxml.etree", "_ElementTree", sizeof(struct LxmlElementTree)); if (!__pyx_ptype_11etreepublic__ElementTree) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 37; goto __pyx_L1;} __pyx_ptype_11etreepublic_FallbackElementClassLookup = __Pyx_ImportType("lxml.etree", "FallbackElementClassLookup", sizeof(struct LxmlFallbackElementClassLookup)); if (!__pyx_ptype_11etreepublic_FallbackElementClassLookup) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 44; goto __pyx_L1;} __pyx_ptype_11etreepublic__ElementTagMatcher = __Pyx_ImportType("lxml.etree", "_ElementTagMatcher", sizeof(struct LxmlElementTagMatcher)); if (!__pyx_ptype_11etreepublic__ElementTagMatcher) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 142; goto __pyx_L1;} __pyx_ptype_11etreepublic__ElementIterator = __Pyx_ImportType("lxml.etree", "_ElementIterator", sizeof(struct LxmlElementIterator)); if (!__pyx_ptype_11etreepublic__ElementIterator) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 151; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":12 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} Py_INCREF(__pyx_n_etree); PyList_SET_ITEM(__pyx_1, 0, __pyx_n_etree); __pyx_2 = __Pyx_Import(__pyx_n_lxml, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_etree); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_etree); __pyx_v_9objectify_etree = __pyx_1; __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":14 */ __pyx_3 = import_etree(__pyx_v_9objectify_etree); if (__pyx_3 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":17 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_SubElement); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_SubElement); __pyx_v_9objectify_SubElement = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":20 */ __pyx_1 = __Pyx_Import(__pyx_n_re, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_re); __pyx_v_9objectify_re = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":22 */ __pyx_2 = __Pyx_Import(__pyx_n___builtin__, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify___builtin__); __pyx_v_9objectify___builtin__ = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":24 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_int); __pyx_v_9objectify_int = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":26 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_long); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_long); __pyx_v_9objectify_long = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":28 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_float); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_float); __pyx_v_9objectify_float = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":30 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_bool); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_bool); __pyx_v_9objectify_bool = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":32 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_pow); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_pow); __pyx_v_9objectify_pow = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":34 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_abs); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_abs); __pyx_v_9objectify_abs = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":36 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_len); __pyx_v_9objectify_len = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":39 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_True); __pyx_v_9objectify_True = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":41 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_False); __pyx_v_9objectify_False = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":44 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_AttributeError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_AttributeError); __pyx_v_9objectify_AttributeError = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":46 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_IndexError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_IndexError); __pyx_v_9objectify_IndexError = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":49 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_list); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_list); __pyx_v_9objectify_list = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":51 */ /*try:*/ { /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":52 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify___builtin__, __pyx_n_set); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L16;} Py_DECREF(__pyx_v_9objectify_set); __pyx_v_9objectify_set = __pyx_1; __pyx_1 = 0; } goto __pyx_L17; __pyx_L16:; Py_XDECREF(__pyx_2); __pyx_2 = 0; Py_XDECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":53 */ __pyx_3 = PyErr_ExceptionMatches(__pyx_v_9objectify_AttributeError); if (__pyx_3) { __Pyx_AddTraceback("objectify"); __pyx_2 = __Pyx_GetExcValue(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":54 */ __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; goto __pyx_L1;} Py_INCREF(__pyx_n_Set); PyList_SET_ITEM(__pyx_1, 0, __pyx_n_Set); __pyx_2 = __Pyx_Import(__pyx_n_sets, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_Set); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_set); __pyx_v_9objectify_set = __pyx_1; __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; goto __pyx_L17; } goto __pyx_L1; __pyx_L17:; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":57 */ __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} Py_INCREF(__pyx_n_islice); PyList_SET_ITEM(__pyx_2, 0, __pyx_n_islice); __pyx_1 = __Pyx_Import(__pyx_n_itertools, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_islice); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_islice); __pyx_v_9objectify_islice = __pyx_2; __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":67 */ if (PyObject_SetAttr(__pyx_m, __pyx_n_PYTYPE_ATTRIBUTE, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; goto __pyx_L1;} /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":70 */ Py_INCREF(__pyx_n_TREE); Py_DECREF(__pyx_v_9objectify_TREE_PYTYPE); __pyx_v_9objectify_TREE_PYTYPE = __pyx_n_TREE; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":72 */ Py_INCREF(Py_None); __pyx_k12 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":92 */ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_setPytypeAttributeTag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":97 */ Py_INCREF(__pyx_k13p); Py_DECREF(__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS = __pyx_k13p; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":99 */ __pyx_v_9objectify__XML_SCHEMA_INSTANCE_NS = _cstr(__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS); /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":102 */ __pyx_1 = PyNumber_Remainder(__pyx_k14p, __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":104 */ __pyx_2 = PyNumber_Remainder(__pyx_k15p, __pyx_v_9objectify_XML_SCHEMA_INSTANCE_NS); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR); __pyx_v_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":376 */ Py_INCREF(Py_None); __pyx_k16 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":385 */ Py_INCREF(Py_None); __pyx_k17 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":801 */ Py_INCREF(Py_None); __pyx_k18 = Py_None; Py_INCREF(Py_None); __pyx_k19 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":862 */ __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify__PYTYPE_DICT); __pyx_v_9objectify__PYTYPE_DICT = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":865 */ __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify__SCHEMA_TYPE_DICT); __pyx_v_9objectify__SCHEMA_TYPE_DICT = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":868 */ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify__TYPE_CHECKS); __pyx_v_9objectify__TYPE_CHECKS = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":896 */ __pyx_2 = __pyx_f_9objectify__registerPyTypes(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":945 */ __pyx_v_9objectify___RECURSIVE_STR = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":947 */ Py_INCREF(__pyx_v_9objectify_True); __pyx_k20 = __pyx_v_9objectify_True; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1000 */ Py_INCREF(Py_None); __pyx_k21 = Py_None; Py_INCREF(Py_None); __pyx_k22 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1140 */ __pyx_1 = PyObject_GetAttr(__pyx_v_9objectify_re, __pyx_n_compile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; goto __pyx_L1;} __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify_re, __pyx_n_U); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; goto __pyx_L1;} __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; goto __pyx_L1;} Py_INCREF(__pyx_k23p); PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k23p); PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2); __pyx_2 = 0; __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; goto __pyx_L1;} Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_4); __pyx_4 = 0; __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_match); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; goto __pyx_L1;} Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_v_9objectify___MATCH_PATH_SEGMENT); __pyx_v_9objectify___MATCH_PATH_SEGMENT = __pyx_1; __pyx_1 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1397 */ Py_INCREF(__pyx_v_9objectify_True); __pyx_k24 = __pyx_v_9objectify_True; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1483 */ __pyx_4 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_XMLParser); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; goto __pyx_L1;} __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; goto __pyx_L1;} __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; goto __pyx_L1;} if (PyDict_SetItem(__pyx_1, __pyx_n_remove_blank_text, __pyx_v_9objectify_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; goto __pyx_L1;} __pyx_5 = PyEval_CallObjectWithKeywords(__pyx_4, __pyx_2, __pyx_1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_2); __pyx_2 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_v_9objectify___DEFAULT_PARSER); __pyx_v_9objectify___DEFAULT_PARSER = __pyx_5; __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1484 */ __pyx_4 = PyObject_GetAttr(__pyx_v_9objectify___DEFAULT_PARSER, __pyx_n_setElementClassLookup); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;} __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_9objectify_ObjectifyElementClassLookup), 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;} __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;} PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2); __pyx_2 = 0; __pyx_5 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; Py_DECREF(__pyx_1); __pyx_1 = 0; Py_DECREF(__pyx_5); __pyx_5 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1487 */ Py_INCREF(__pyx_v_9objectify___DEFAULT_PARSER); Py_DECREF(__pyx_v_9objectify_parser); __pyx_v_9objectify_parser = __pyx_v_9objectify___DEFAULT_PARSER; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1489 */ Py_INCREF(Py_None); __pyx_k26 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1512 */ __pyx_2 = PyObject_GetAttr(__pyx_v_9objectify_etree, __pyx_n_fromstring); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1512; goto __pyx_L1;} Py_DECREF(__pyx_v_9objectify__fromstring); __pyx_v_9objectify__fromstring = __pyx_2; __pyx_2 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1521 */ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_fromstring); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1521; goto __pyx_L1;} if (PyObject_SetAttr(__pyx_m, __pyx_n_XML, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1521; goto __pyx_L1;} Py_DECREF(__pyx_4); __pyx_4 = 0; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1523 */ Py_INCREF(Py_None); __pyx_k27 = Py_None; Py_INCREF(Py_None); __pyx_k28 = Py_None; Py_INCREF(Py_None); __pyx_k29 = Py_None; /* "/home/me/source/Python/lxml/lxml-1.2/RELEASE-DIR/lxml-1.2.1/src/lxml/objectify.pyx":1538 */ Py_INCREF(Py_None); __pyx_k30 = Py_None; Py_INCREF(Py_None); __pyx_k31 = Py_None; Py_INCREF(Py_None); __pyx_k32 = Py_None; Py_INCREF(Py_None); __pyx_k33 = Py_None; return; __pyx_L1:; Py_XDECREF(__pyx_1); Py_XDECREF(__pyx_2); Py_XDECREF(__pyx_4); Py_XDECREF(__pyx_5); __Pyx_AddTraceback("objectify"); } static char *__pyx_filenames[] = { "objectify.pyx", "etreepublic.pxd", }; /* Runtime support code */ static void __pyx_init_filenames(void) { __pyx_f = __pyx_filenames; } static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name) { if (!type) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; } if ((none_allowed && obj == Py_None) || PyObject_TypeCheck(obj, type)) return 1; PyErr_Format(PyExc_TypeError, "Argument '%s' has incorrect type (expected %s, got %s)", name, type->tp_name, obj->ob_type->tp_name); return 0; } static int __Pyx_GetStarArgs( PyObject **args, PyObject **kwds, char *kwd_list[], Py_ssize_t nargs, PyObject **args2, PyObject **kwds2) { PyObject *x = 0, *args1 = 0, *kwds1 = 0; if (args2) *args2 = 0; if (kwds2) *kwds2 = 0; if (args2) { args1 = PyTuple_GetSlice(*args, 0, nargs); if (!args1) goto bad; *args2 = PyTuple_GetSlice(*args, nargs, PyTuple_Size(*args)); if (!*args2) goto bad; } else { args1 = *args; Py_INCREF(args1); } if (kwds2) { if (*kwds) { char **p; kwds1 = PyDict_New(); if (!kwds) goto bad; *kwds2 = PyDict_Copy(*kwds); if (!*kwds2) goto bad; for (p = kwd_list; *p; p++) { x = PyDict_GetItemString(*kwds, *p); if (x) { if (PyDict_SetItemString(kwds1, *p, x) < 0) goto bad; if (PyDict_DelItemString(*kwds2, *p) < 0) goto bad; } } } else { *kwds2 = PyDict_New(); if (!*kwds2) goto bad; } } else { kwds1 = *kwds; Py_XINCREF(kwds1); } *args = args1; *kwds = kwds1; return 0; bad: Py_XDECREF(args1); Py_XDECREF(kwds1); Py_XDECREF(*args2); Py_XDECREF(*kwds2); return -1; } static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { PyObject *__import__ = 0; PyObject *empty_list = 0; PyObject *module = 0; PyObject *global_dict = 0; PyObject *empty_dict = 0; PyObject *list; __import__ = PyObject_GetAttrString(__pyx_b, "__import__"); if (!__import__) goto bad; 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; module = PyObject_CallFunction(__import__, "OOOO", name, global_dict, empty_dict, list); bad: Py_XDECREF(empty_list); Py_XDECREF(__import__); Py_XDECREF(empty_dict); return module; } static PyObject *__Pyx_GetExcValue(void) { PyObject *type = 0, *value = 0, *tb = 0; PyObject *result = 0; PyThreadState *tstate = PyThreadState_Get(); PyErr_Fetch(&type, &value, &tb); PyErr_NormalizeException(&type, &value, &tb); if (PyErr_Occurred()) goto bad; if (!value) { value = Py_None; Py_INCREF(value); } Py_XDECREF(tstate->exc_type); Py_XDECREF(tstate->exc_value); Py_XDECREF(tstate->exc_traceback); tstate->exc_type = type; tstate->exc_value = value; tstate->exc_traceback = tb; result = value; Py_XINCREF(result); type = 0; value = 0; tb = 0; bad: Py_XDECREF(type); Py_XDECREF(value); Py_XDECREF(tb); return result; } static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { PyObject *result; result = PyObject_GetAttr(dict, name); if (!result) PyErr_SetObject(PyExc_NameError, name); return result; } static void __Pyx_UnpackError(void) { PyErr_SetString(PyExc_ValueError, "unpack sequence of wrong size"); } static PyObject *__Pyx_UnpackItem(PyObject *iter) { PyObject *item; if (!(item = PyIter_Next(iter))) { if (!PyErr_Occurred()) __Pyx_UnpackError(); } return item; } static int __Pyx_EndUnpack(PyObject *iter) { PyObject *item; if ((item = PyIter_Next(iter))) { Py_DECREF(item); __Pyx_UnpackError(); return -1; } else if (!PyErr_Occurred()) return 0; else return -1; } static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { if (!type) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; } if (obj == Py_None || PyObject_TypeCheck(obj, type)) return 1; PyErr_Format(PyExc_TypeError, "Cannot convert %s to %s", obj->ob_type->tp_name, type->tp_name); return 0; } static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { Py_XINCREF(type); Py_XINCREF(value); Py_XINCREF(tb); /* First, check the traceback argument, replacing None with NULL. */ if (tb == Py_None) { Py_DECREF(tb); tb = 0; } else if (tb != NULL && !PyTraceBack_Check(tb)) { PyErr_SetString(PyExc_TypeError, "raise: arg 3 must be a traceback or None"); goto raise_error; } /* Next, replace a missing value with None */ if (value == NULL) { value = Py_None; Py_INCREF(value); } /* Next, repeatedly, replace a tuple exception with its first item */ while (PyTuple_Check(type) && PyTuple_Size(type) > 0) { PyObject *tmp = type; type = PyTuple_GET_ITEM(type, 0); Py_INCREF(type); Py_DECREF(tmp); } if (PyString_Check(type)) { if (PyErr_Warn(PyExc_DeprecationWarning, "raising a string exception is deprecated")) goto raise_error; } else if (PyType_Check(type) || PyClass_Check(type)) ; /*PyErr_NormalizeException(&type, &value, &tb);*/ else { /* Raising an instance. The value should be a dummy. */ if (value != Py_None) { PyErr_SetString(PyExc_TypeError, "instance exception may not have a separate value"); goto raise_error; } /* Normalize to raise , */ Py_DECREF(value); value = type; if (PyInstance_Check(type)) type = (PyObject*) ((PyInstanceObject*)type)->in_class; else type = (PyObject*) type->ob_type; Py_INCREF(type); } PyErr_Restore(type, value, tb); return; raise_error: Py_XDECREF(value); Py_XDECREF(type); Py_XDECREF(tb); return; } static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { while (t->p) { *t->p = PyString_InternFromString(t->s); if (!*t->p) return -1; ++t; } return 0; } static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { while (t->p) { *t->p = PyString_FromStringAndSize(t->s, t->n - 1); if (!*t->p) return -1; ++t; } return 0; } static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size) { PyObject *py_module_name = 0; PyObject *py_class_name = 0; PyObject *py_name_list = 0; PyObject *py_module = 0; PyObject *result = 0; py_module_name = PyString_FromString(module_name); if (!py_module_name) goto bad; py_class_name = PyString_FromString(class_name); if (!py_class_name) goto bad; py_name_list = PyList_New(1); if (!py_name_list) goto bad; Py_INCREF(py_class_name); if (PyList_SetItem(py_name_list, 0, py_class_name) < 0) goto bad; py_module = __Pyx_Import(py_module_name, py_name_list); if (!py_module) goto bad; result = PyObject_GetAttr(py_module, py_class_name); if (!result) goto bad; if (!PyType_Check(result)) { PyErr_Format(PyExc_TypeError, "%s.%s is not a type object", module_name, class_name); goto bad; } if (((PyTypeObject *)result)->tp_basicsize != size) { PyErr_Format(PyExc_ValueError, "%s.%s does not appear to be the correct type object", module_name, class_name); goto bad; } goto done; bad: Py_XDECREF(result); result = 0; done: Py_XDECREF(py_module_name); Py_XDECREF(py_class_name); Py_XDECREF(py_name_list); return (PyTypeObject *)result; } static int __Pyx_SetVtable(PyObject *dict, void *vtable) { PyObject *pycobj = 0; int result; pycobj = PyCObject_FromVoidPtr(vtable, 0); if (!pycobj) goto bad; if (PyDict_SetItemString(dict, "__pyx_vtable__", pycobj) < 0) goto bad; result = 0; goto done; bad: result = -1; done: Py_XDECREF(pycobj); return result; } #include "compile.h" #include "frameobject.h" #include "traceback.h" static void __Pyx_AddTraceback(char *funcname) { PyObject *py_srcfile = 0; PyObject *py_funcname = 0; PyObject *py_globals = 0; PyObject *empty_tuple = 0; PyObject *empty_string = 0; PyCodeObject *py_code = 0; PyFrameObject *py_frame = 0; py_srcfile = PyString_FromString(__pyx_filename); if (!py_srcfile) goto bad; py_funcname = PyString_FromString(funcname); if (!py_funcname) goto bad; py_globals = PyModule_GetDict(__pyx_m); if (!py_globals) goto bad; empty_tuple = PyTuple_New(0); if (!empty_tuple) goto bad; empty_string = PyString_FromString(""); if (!empty_string) goto bad; py_code = PyCode_New( 0, /*int argcount,*/ 0, /*int nlocals,*/ 0, /*int stacksize,*/ 0, /*int flags,*/ empty_string, /*PyObject *code,*/ empty_tuple, /*PyObject *consts,*/ empty_tuple, /*PyObject *names,*/ empty_tuple, /*PyObject *varnames,*/ empty_tuple, /*PyObject *freevars,*/ empty_tuple, /*PyObject *cellvars,*/ py_srcfile, /*PyObject *filename,*/ py_funcname, /*PyObject *name,*/ __pyx_lineno, /*int firstlineno,*/ empty_string /*PyObject *lnotab*/ ); if (!py_code) goto bad; py_frame = PyFrame_New( PyThreadState_Get(), /*PyThreadState *tstate,*/ py_code, /*PyCodeObject *code,*/ py_globals, /*PyObject *globals,*/ 0 /*PyObject *locals*/ ); if (!py_frame) goto bad; py_frame->f_lineno = __pyx_lineno; PyTraceBack_Here(py_frame); bad: Py_XDECREF(py_srcfile); Py_XDECREF(py_funcname); Py_XDECREF(empty_tuple); Py_XDECREF(empty_string); Py_XDECREF(py_code); Py_XDECREF(py_frame); }