~ubuntu-branches/ubuntu/oneiric/lxml/oneiric

« back to all changes in this revision

Viewing changes to src/lxml/lxml.objectify.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-08-27 09:09:23 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827090923-fwhvka191ir73s3x
Tags: 2.2.2-1
* New upstream version. Closes: #525961.
  - Includes html5parser. Closes: #521714.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Cython 0.10.3 on Tue Jan  6 21:30:01 2009 */
 
1
/* Generated by Cython 0.11.2 on Sun Jun 21 09:39:15 2009 */
2
2
 
3
3
#define PY_SSIZE_T_CLEAN
4
4
#include "Python.h"
5
5
#include "structmember.h"
 
6
#ifndef Py_PYTHON_H
 
7
    #error Python headers needed to compile C extensions, please install development version of Python.
 
8
#else
6
9
#ifndef PY_LONG_LONG
7
10
  #define PY_LONG_LONG LONG_LONG
8
11
#endif
11
14
#endif
12
15
#if PY_VERSION_HEX < 0x02040000
13
16
  #define METH_COEXIST 0
 
17
  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
14
18
#endif
15
19
#if PY_VERSION_HEX < 0x02050000
16
20
  typedef int Py_ssize_t;
17
21
  #define PY_SSIZE_T_MAX INT_MAX
18
22
  #define PY_SSIZE_T_MIN INT_MIN
 
23
  #define PY_FORMAT_SIZE_T ""
19
24
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
20
25
  #define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
21
26
  #define PyNumber_Index(o)    PyNumber_Int(o)
45
50
 
46
51
  #define PyBUF_SIMPLE 0
47
52
  #define PyBUF_WRITABLE 0x0001
48
 
  #define PyBUF_LOCK 0x0002
49
53
  #define PyBUF_FORMAT 0x0004
50
54
  #define PyBUF_ND 0x0008
51
55
  #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
70
74
#if PY_MAJOR_VERSION >= 3
71
75
  #define PyBaseString_Type            PyUnicode_Type
72
76
  #define PyString_Type                PyBytes_Type
 
77
  #define PyString_CheckExact          PyBytes_CheckExact
73
78
  #define PyInt_Type                   PyLong_Type
74
79
  #define PyInt_Check(op)              PyLong_Check(op)
75
80
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
98
103
  #ifndef __cdecl
99
104
    #define __cdecl
100
105
  #endif
 
106
  #ifndef __fastcall
 
107
    #define __fastcall
 
108
  #endif
101
109
#else
102
110
  #define _USE_MATH_DEFINES
103
111
#endif
 
112
#if PY_VERSION_HEX < 0x02050000
 
113
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
 
114
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
 
115
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),((char *)(n)))
 
116
#else
 
117
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),(n))
 
118
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
 
119
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
 
120
#endif
 
121
#if PY_VERSION_HEX < 0x02050000
 
122
  #define __Pyx_NAMESTR(n) ((char *)(n))
 
123
  #define __Pyx_DOCSTR(n)  ((char *)(n))
 
124
#else
 
125
  #define __Pyx_NAMESTR(n) (n)
 
126
  #define __Pyx_DOCSTR(n)  (n)
 
127
#endif
104
128
#ifdef __cplusplus
105
129
#define __PYX_EXTERN_C extern "C"
106
130
#else
108
132
#endif
109
133
#include <math.h>
110
134
#define __PYX_HAVE_API__lxml__objectify
111
 
#include "etree_defs.h"
112
135
#include "string.h"
113
136
#include "stdio.h"
114
137
#include "stdlib.h"
115
138
#include "stdarg.h"
 
139
#include "etree_defs.h"
116
140
#include "lxml-version.h"
117
141
#include "libxml/xmlversion.h"
118
142
#include "libxml/encoding.h"
119
143
#include "libxml/chvalid.h"
120
144
#include "libxml/hash.h"
121
145
#include "libxml/tree.h"
 
146
#include "libxml/uri.h"
122
147
#include "libxml/HTMLtree.h"
123
148
#include "libxml/valid.h"
124
149
#include "libxml/xmlIO.h"
128
153
#include "libxml/xmlmemory.h"
129
154
#include "pythread.h"
130
155
#include "lxml.etree_api.h"
 
156
#define __PYX_USE_C99_COMPLEX defined(_Complex_I)
131
157
 
132
158
 
133
159
#ifdef __GNUC__
148
174
/* Type Conversion Predeclarations */
149
175
 
150
176
#if PY_MAJOR_VERSION < 3
151
 
#define __Pyx_PyBytes_FromString PyString_FromString
152
 
#define __Pyx_PyBytes_AsString   PyString_AsString
 
177
#define __Pyx_PyBytes_FromString          PyString_FromString
 
178
#define __Pyx_PyBytes_FromStringAndSize   PyString_FromStringAndSize
 
179
#define __Pyx_PyBytes_AsString            PyString_AsString
153
180
#else
154
 
#define __Pyx_PyBytes_FromString PyBytes_FromString
155
 
#define __Pyx_PyBytes_AsString   PyBytes_AsString
 
181
#define __Pyx_PyBytes_FromString          PyBytes_FromString
 
182
#define __Pyx_PyBytes_FromStringAndSize   PyBytes_FromStringAndSize
 
183
#define __Pyx_PyBytes_AsString            PyBytes_AsString
156
184
#endif
157
185
 
158
186
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
159
 
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x);
160
 
static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x);
161
 
static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x);
162
 
static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b);
163
 
 
164
 
#define __pyx_PyInt_AsLong(x) (PyInt_CheckExact(x) ? PyInt_AS_LONG(x) : PyInt_AsLong(x))
 
187
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
 
188
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
 
189
 
 
190
#if !defined(T_PYSSIZET)
 
191
#if PY_VERSION_HEX < 0x02050000
 
192
#define T_PYSSIZET T_INT
 
193
#elif !defined(T_LONGLONG)
 
194
#define T_PYSSIZET \
 
195
        ((sizeof(Py_ssize_t) == sizeof(int))  ? T_INT  : \
 
196
        ((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : -1))
 
197
#else
 
198
#define T_PYSSIZET \
 
199
        ((sizeof(Py_ssize_t) == sizeof(int))          ? T_INT      : \
 
200
        ((sizeof(Py_ssize_t) == sizeof(long))         ? T_LONG     : \
 
201
        ((sizeof(Py_ssize_t) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))
 
202
#endif
 
203
#endif
 
204
 
 
205
#if !defined(T_SIZET)
 
206
#if !defined(T_ULONGLONG)
 
207
#define T_SIZET \
 
208
        ((sizeof(size_t) == sizeof(unsigned int))  ? T_UINT  : \
 
209
        ((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : -1))
 
210
#else
 
211
#define T_SIZET \
 
212
        ((sizeof(size_t) == sizeof(unsigned int))          ? T_UINT      : \
 
213
        ((sizeof(size_t) == sizeof(unsigned long))         ? T_ULONG     : \
 
214
        ((sizeof(size_t) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))
 
215
#endif
 
216
#endif
 
217
 
 
218
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
 
219
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
 
220
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
 
221
 
165
222
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
166
223
 
167
 
static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x);
168
 
static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x);
169
 
static INLINE char __pyx_PyInt_char(PyObject* x);
170
 
static INLINE short __pyx_PyInt_short(PyObject* x);
171
 
static INLINE int __pyx_PyInt_int(PyObject* x);
172
 
static INLINE long __pyx_PyInt_long(PyObject* x);
173
 
static INLINE signed char __pyx_PyInt_signed_char(PyObject* x);
174
 
static INLINE signed short __pyx_PyInt_signed_short(PyObject* x);
175
 
static INLINE signed int __pyx_PyInt_signed_int(PyObject* x);
176
 
static INLINE signed long __pyx_PyInt_signed_long(PyObject* x);
177
 
static INLINE long double __pyx_PyInt_long_double(PyObject* x);
 
224
 
178
225
#ifdef __GNUC__
179
226
/* Test for GCC > 2.95 */
180
227
#if __GNUC__ > 2 ||               (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) 
200
247
 
201
248
static char __pyx_mdoc[] = "The ``lxml.objectify`` module implements a Python object API for\nXML.  It is based on `lxml.etree`.\n";
202
249
 
 
250
 
 
251
#ifdef CYTHON_REFNANNY
 
252
typedef struct {
 
253
  void (*INCREF)(void*, PyObject*, int);
 
254
  void (*DECREF)(void*, PyObject*, int);
 
255
  void (*GOTREF)(void*, PyObject*, int);
 
256
  void (*GIVEREF)(void*, PyObject*, int);
 
257
  void* (*NewContext)(const char*, int, const char*);
 
258
  void (*FinishContext)(void**);
 
259
} __Pyx_RefnannyAPIStruct;
 
260
static __Pyx_RefnannyAPIStruct *__Pyx_Refnanny = NULL;
 
261
#define __Pyx_ImportRefcountAPI(name)   (__Pyx_RefnannyAPIStruct *) PyCObject_Import((char *)name, (char *)"RefnannyAPI")
 
262
#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, (PyObject *)(r), __LINE__)
 
263
#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, (PyObject *)(r), __LINE__)
 
264
#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, (PyObject *)(r), __LINE__)
 
265
#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, (PyObject *)(r), __LINE__)
 
266
#define __Pyx_XDECREF(r) if((r) == NULL) ; else __Pyx_DECREF(r)
 
267
#define __Pyx_SetupRefcountContext(name)   void* __pyx_refchk = __Pyx_Refnanny->NewContext((name), __LINE__, __FILE__)
 
268
#define __Pyx_FinishRefcountContext()   __Pyx_Refnanny->FinishContext(&__pyx_refchk)
 
269
#else
 
270
#define __Pyx_INCREF(r) Py_INCREF(r)
 
271
#define __Pyx_DECREF(r) Py_DECREF(r)
 
272
#define __Pyx_GOTREF(r)
 
273
#define __Pyx_GIVEREF(r)
 
274
#define __Pyx_XDECREF(r) Py_XDECREF(r)
 
275
#define __Pyx_SetupRefcountContext(name)
 
276
#define __Pyx_FinishRefcountContext()
 
277
#endif /* CYTHON_REFNANNY */
 
278
#define __Pyx_XGIVEREF(r) if((r) == NULL) ; else __Pyx_GIVEREF(r)
 
279
#define __Pyx_XGOTREF(r) if((r) == NULL) ; else __Pyx_GOTREF(r)
 
280
 
203
281
static void __Pyx_RaiseDoubleKeywordsError(
204
282
    const char* func_name, PyObject* kw_name); /*proto*/
205
283
 
208
286
 
209
287
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],     PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,     const char* function_name); /*proto*/
210
288
 
211
 
static INLINE PyObject *__Pyx_GetItemInt(PyObject *o, Py_ssize_t i, int is_unsigned) {
212
 
    PyObject *r;
213
 
    if (PyList_CheckExact(o) && 0 <= i && i < PyList_GET_SIZE(o)) {
 
289
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
 
290
 
 
291
 
 
292
static INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
 
293
    PyObject *r;
 
294
    if (!j) return NULL;
 
295
    r = PyObject_GetItem(o, j);
 
296
    Py_DECREF(j);
 
297
    return r;
 
298
}
 
299
 
 
300
 
 
301
#define __Pyx_GetItemInt_List(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
 
302
                                                    __Pyx_GetItemInt_List_Fast(o, i, size <= sizeof(long)) : \
 
303
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
 
304
 
 
305
static INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
 
306
    if (likely(o != Py_None)) {
 
307
        if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
 
308
            PyObject *r = PyList_GET_ITEM(o, i);
 
309
            Py_INCREF(r);
 
310
            return r;
 
311
        }
 
312
        else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
 
313
            PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
 
314
            Py_INCREF(r);
 
315
            return r;
 
316
        }
 
317
    }
 
318
    return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
 
319
}
 
320
 
 
321
#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
 
322
                                                    __Pyx_GetItemInt_Tuple_Fast(o, i, size <= sizeof(long)) : \
 
323
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
 
324
 
 
325
static INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
 
326
    if (likely(o != Py_None)) {
 
327
        if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
 
328
            PyObject *r = PyTuple_GET_ITEM(o, i);
 
329
            Py_INCREF(r);
 
330
            return r;
 
331
        }
 
332
        else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
 
333
            PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
 
334
            Py_INCREF(r);
 
335
            return r;
 
336
        }
 
337
    }
 
338
    return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
 
339
}
 
340
 
 
341
 
 
342
#define __Pyx_GetItemInt(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
 
343
                                                    __Pyx_GetItemInt_Fast(o, i, size <= sizeof(long)) : \
 
344
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))
 
345
 
 
346
static INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
 
347
    PyObject *r;
 
348
    if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
214
349
        r = PyList_GET_ITEM(o, i);
215
350
        Py_INCREF(r);
216
351
    }
217
 
    else if (PyTuple_CheckExact(o) && 0 <= i && i < PyTuple_GET_SIZE(o)) {
 
352
    else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
218
353
        r = PyTuple_GET_ITEM(o, i);
219
354
        Py_INCREF(r);
220
355
    }
221
 
    else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0) || !is_unsigned))
 
356
    else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
222
357
        r = PySequence_GetItem(o, i);
 
358
    }
223
359
    else {
224
 
        PyObject *j = (likely(i >= 0) || !is_unsigned) ? PyInt_FromLong(i) : PyLong_FromUnsignedLongLong((sizeof(unsigned long long) > sizeof(Py_ssize_t) ? (1ULL << (sizeof(Py_ssize_t)*8)) : 0) + i);
225
 
        if (!j)
226
 
            return 0;
227
 
        r = PyObject_GetItem(o, j);
228
 
        Py_DECREF(j);
 
360
        r = __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
229
361
    }
230
362
    return r;
231
363
}
232
364
 
 
365
#if PY_VERSION_HEX < 0x02050000
 
366
#ifndef PyAnySet_CheckExact
 
367
 
 
368
#define PyAnySet_CheckExact(ob) \
 
369
    ((ob)->ob_type == &PySet_Type || \
 
370
     (ob)->ob_type == &PyFrozenSet_Type)
 
371
 
 
372
#define PySet_New(iterable) \
 
373
    PyObject_CallFunctionObjArgs((PyObject *)&PySet_Type, (iterable), NULL)
 
374
 
 
375
#define Pyx_PyFrozenSet_New(iterable) \
 
376
    PyObject_CallFunctionObjArgs((PyObject *)&PyFrozenSet_Type, (iterable), NULL)
 
377
 
 
378
#define PySet_Size(anyset) \
 
379
    PyObject_Size((anyset))
 
380
 
 
381
#define PySet_Contains(anyset, key) \
 
382
    PySequence_Contains((anyset), (key))
 
383
 
 
384
#define PySet_Pop(set) \
 
385
    PyObject_CallMethod(set, (char *)"pop", NULL)
 
386
 
 
387
static INLINE int PySet_Clear(PyObject *set) {
 
388
    PyObject *ret = PyObject_CallMethod(set, (char *)"clear", NULL);
 
389
    if (!ret) return -1;
 
390
    Py_DECREF(ret); return 0;
 
391
}
 
392
 
 
393
static INLINE int PySet_Discard(PyObject *set, PyObject *key) {
 
394
    PyObject *ret = PyObject_CallMethod(set, (char *)"discard", (char *)"O", key);
 
395
    if (!ret) return -1;
 
396
    Py_DECREF(ret); return 0;
 
397
}
 
398
 
 
399
static INLINE int PySet_Add(PyObject *set, PyObject *key) {
 
400
    PyObject *ret = PyObject_CallMethod(set, (char *)"add", (char *)"O", key);
 
401
    if (!ret) return -1;
 
402
    Py_DECREF(ret); return 0;
 
403
}
 
404
 
 
405
#endif /* PyAnySet_CheckExact (<= Py2.4) */
 
406
 
 
407
#if PY_VERSION_HEX < 0x02040000
 
408
#ifndef Py_SETOBJECT_H
 
409
#define Py_SETOBJECT_H
 
410
 
 
411
static PyTypeObject *__Pyx_PySet_Type = NULL;
 
412
static PyTypeObject *__Pyx_PyFrozenSet_Type = NULL;
 
413
 
 
414
#define PySet_Type (*__Pyx_PySet_Type)
 
415
#define PyFrozenSet_Type (*__Pyx_PyFrozenSet_Type)
 
416
 
 
417
#define PyAnySet_Check(ob) \
 
418
    (PyAnySet_CheckExact(ob) || \
 
419
     PyType_IsSubtype((ob)->ob_type, &PySet_Type) || \
 
420
     PyType_IsSubtype((ob)->ob_type, &PyFrozenSet_Type))
 
421
 
 
422
#define PyFrozenSet_CheckExact(ob) ((ob)->ob_type == &PyFrozenSet_Type)
 
423
 
 
424
static int __Pyx_Py23SetsImport(void) {
 
425
    PyObject *sets=0, *Set=0, *ImmutableSet=0;
 
426
 
 
427
    sets = PyImport_ImportModule((char *)"sets");
 
428
    if (!sets) goto bad;
 
429
    Set = PyObject_GetAttrString(sets, (char *)"Set");
 
430
    if (!Set) goto bad;
 
431
    ImmutableSet = PyObject_GetAttrString(sets, (char *)"ImmutableSet");
 
432
    if (!ImmutableSet) goto bad;
 
433
    Py_DECREF(sets);
 
434
 
 
435
    __Pyx_PySet_Type       = (PyTypeObject*) Set;
 
436
    __Pyx_PyFrozenSet_Type = (PyTypeObject*) ImmutableSet;
 
437
 
 
438
    return 0;
 
439
 
 
440
 bad:
 
441
    Py_XDECREF(sets);
 
442
    Py_XDECREF(Set);
 
443
    Py_XDECREF(ImmutableSet);
 
444
    return -1;
 
445
}
 
446
 
 
447
#else
 
448
static int __Pyx_Py23SetsImport(void) { return 0; }
 
449
#endif /* !Py_SETOBJECT_H */
 
450
#endif /* < Py2.4  */
 
451
#endif /* < Py2.5  */
 
452
 
233
453
static INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict,
234
454
    const char* function_name, int kw_allowed); /*proto*/
235
455
 
236
 
static INLINE int __Pyx_DelItemInt(PyObject *o, Py_ssize_t i, int is_unsigned) {
 
456
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
 
457
 
 
458
#define __Pyx_DelItemInt(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
 
459
                                                    __Pyx_DelItemInt_Fast(o, i, size <= sizeof(long)) : \
 
460
                                                    __Pyx_DelItem_Generic(o, to_py_func(i)))
 
461
 
 
462
static INLINE int __Pyx_DelItem_Generic(PyObject *o, PyObject *j) {
237
463
    int r;
238
 
    if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_ass_item && (likely(i >= 0) || !is_unsigned))
239
 
        r = PySequence_DelItem(o, i);
 
464
    if (!j) return -1;
 
465
    r = PyObject_DelItem(o, j);
 
466
    Py_DECREF(j);
 
467
    return r;
 
468
}
 
469
 
 
470
static INLINE int __Pyx_DelItemInt_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
 
471
    if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_ass_item && likely(i >= 0))
 
472
        return PySequence_DelItem(o, i);
240
473
    else {
241
 
        PyObject *j = (likely(i >= 0) || !is_unsigned) ? PyInt_FromLong(i) : PyLong_FromUnsignedLongLong((sizeof(unsigned long long) > sizeof(Py_ssize_t) ? (1ULL << (sizeof(Py_ssize_t)*8)) : 0) + i);
242
 
        if (!j)
243
 
            return -1;
244
 
        r = PyObject_DelItem(o, j);
245
 
        Py_DECREF(j);
 
474
        PyObject *j = fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i);
 
475
        return __Pyx_DelItem_Generic(o, j);
246
476
    }
247
 
    return r;
248
477
}
249
478
 
 
479
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
 
480
    const char *name, int exact); /*proto*/
 
481
 
250
482
static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
251
483
static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
252
484
 
253
 
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
254
 
    const char *name, int exact); /*proto*/
255
 
 
256
485
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
257
486
 
258
487
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
259
488
 
260
 
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
 
489
static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
261
490
 
262
 
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
263
 
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
 
491
static INLINE void __Pyx_RaiseTooManyValuesError(void);
264
492
 
265
493
static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t index); /*proto*/
266
494
static int __Pyx_EndUnpack(PyObject *); /*proto*/
267
495
 
268
 
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
269
 
 
270
496
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
271
497
 
 
498
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
 
499
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
 
500
 
272
501
static PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*proto*/
273
502
 
274
 
static INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
275
 
    if (likely(PyList_CheckExact(L))) {
276
 
        if (PyList_Append(L, x) < 0) return NULL;
277
 
        Py_INCREF(Py_None);
278
 
        return Py_None; // this is just to have an accurate signature
279
 
    }
280
 
    else {
281
 
        return PyObject_CallMethod(L, "append", "(O)", x);
282
 
    }
283
 
}
 
503
static INLINE int __Pyx_StrEq(const char *, const char *); /*proto*/
 
504
 
 
505
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
 
506
 
 
507
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
 
508
 
 
509
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
 
510
 
 
511
static INLINE char __Pyx_PyInt_AsChar(PyObject *);
 
512
 
 
513
static INLINE short __Pyx_PyInt_AsShort(PyObject *);
 
514
 
 
515
static INLINE int __Pyx_PyInt_AsInt(PyObject *);
 
516
 
 
517
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
 
518
 
 
519
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
 
520
 
 
521
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
 
522
 
 
523
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
 
524
 
 
525
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
 
526
 
 
527
static INLINE long __Pyx_PyInt_AsLong(PyObject *);
 
528
 
 
529
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
 
530
 
 
531
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
 
532
 
 
533
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
284
534
 
285
535
static void __Pyx_WriteUnraisable(const char *name); /*proto*/
286
536
 
294
544
 
295
545
/* Type declarations */
296
546
 
297
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":4
 
547
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":4
298
548
 * # ObjectPath
299
549
 * 
300
550
 * ctypedef struct _ObjectPath:             # <<<<<<<<<<<<<<
308
558
  Py_ssize_t index;
309
559
} __pyx_t_4lxml_9objectify__ObjectPath;
310
560
 
311
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":126
 
561
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":121
312
562
 * 
313
563
 * # Forward declaration
314
564
 * cdef class PyType             # <<<<<<<<<<<<<<
325
575
  PyObject *_schema_types;
326
576
};
327
577
 
328
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1173
 
578
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1164
329
579
 * # adapted ElementMaker supports registered PyTypes
330
580
 * 
331
581
 * cdef class _ObjectifyElementMakerCaller # forward declaration             # <<<<<<<<<<<<<<
341
591
  int _annotate;
342
592
};
343
593
 
344
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":131
 
594
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":126
345
595
 * # Element class for the main API
346
596
 * 
347
597
 * cdef class ObjectifiedElement(ElementBase):             # <<<<<<<<<<<<<<
353
603
  struct LxmlElementBase __pyx_base;
354
604
};
355
605
 
356
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":638
 
606
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":633
357
607
 * # Data type support in subclasses
358
608
 * 
359
609
 * cdef class ObjectifiedDataElement(ObjectifiedElement):             # <<<<<<<<<<<<<<
365
615
  struct __pyx_obj_4lxml_9objectify_ObjectifiedElement __pyx_base;
366
616
};
367
617
 
368
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":658
 
618
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":653
369
619
 *         cetree.setNodeText(self._c_node, s)
370
620
 * 
371
621
 * cdef class NumberElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
378
628
  PyObject *_parse_value;
379
629
};
380
630
 
381
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":760
 
631
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":755
382
632
 *         self._parse_value = long
383
633
 * 
384
634
 * cdef class FloatElement(NumberElement):             # <<<<<<<<<<<<<<
390
640
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
391
641
};
392
642
 
393
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":752
 
643
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":747
394
644
 *         return _numericValueOf(self) ^ _numericValueOf(other)
395
645
 * 
396
646
 * cdef class IntElement(NumberElement):             # <<<<<<<<<<<<<<
402
652
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
403
653
};
404
654
 
405
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":848
 
655
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":843
406
656
 *             return None
407
657
 * 
408
658
 * cdef class BoolElement(IntElement):             # <<<<<<<<<<<<<<
414
664
  struct __pyx_obj_4lxml_9objectify_IntElement __pyx_base;
415
665
};
416
666
 
417
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":756
 
667
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":751
418
668
 *         self._parse_value = int
419
669
 * 
420
670
 * cdef class LongElement(NumberElement):             # <<<<<<<<<<<<<<
426
676
  struct __pyx_obj_4lxml_9objectify_NumberElement __pyx_base;
427
677
};
428
678
 
429
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1179
 
679
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1170
430
680
 *     cdef _ObjectifyElementMakerCaller NEW_ELEMENT_MAKER "PY_NEW" (object t)
431
681
 * 
432
682
 * cdef class ElementMaker:             # <<<<<<<<<<<<<<
442
692
  int _annotate;
443
693
};
444
694
 
445
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1377
 
695
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1368
446
696
 * # Element class lookup
447
697
 * 
448
698
 * cdef class ObjectifyElementClassLookup(ElementClassLookup):             # <<<<<<<<<<<<<<
456
706
  PyObject *tree_class;
457
707
};
458
708
 
459
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":826
 
709
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":821
460
710
 *         return complex(textOf(self._c_node))
461
711
 * 
462
712
 * cdef class NoneElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
468
718
  struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement __pyx_base;
469
719
};
470
720
 
471
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":10
 
721
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":10
472
722
 * 
473
723
 * 
474
724
 * cdef class ObjectPath:             # <<<<<<<<<<<<<<
485
735
  Py_ssize_t _path_len;
486
736
};
487
737
 
488
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":764
 
738
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":759
489
739
 *         self._parse_value = float
490
740
 * 
491
741
 * cdef class StringElement(ObjectifiedDataElement):             # <<<<<<<<<<<<<<
536
786
static PyTypeObject *__pyx_ptype_4lxml_9objectify_ObjectPath = 0;
537
787
static PyObject *__pyx_v_4lxml_9objectify_etree = 0;
538
788
static PyObject *__pyx_v_4lxml_9objectify_re = 0;
539
 
static PyObject *__pyx_v_4lxml_9objectify_set = 0;
540
789
static PyObject *__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = 0;
541
790
static PyObject *__pyx_v_4lxml_9objectify_islice = 0;
542
791
static PyObject *__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = 0;
557
806
static PyObject *__pyx_v_4lxml_9objectify__PYTYPE_DICT = 0;
558
807
static PyObject *__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = 0;
559
808
static PyObject *__pyx_v_4lxml_9objectify__TYPE_CHECKS = 0;
560
 
static PyObject *__pyx_v_4lxml_9objectify_TREE_PYTYPE = 0;
 
809
static struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_4lxml_9objectify_TREE_PYTYPE = 0;
561
810
static int __pyx_v_4lxml_9objectify___RECURSIVE_STR;
 
811
static PyObject *__pyx_v_4lxml_9objectify__strip_attributes = 0;
562
812
static PyObject *__pyx_v_4lxml_9objectify___DEFAULT_PARSER = 0;
563
813
static PyObject *__pyx_v_4lxml_9objectify_objectify_parser = 0;
564
814
static PyObject *__pyx_v_4lxml_9objectify__fromstring = 0;
566
816
static PyObject *__pyx_v_4lxml_9objectify__DEFAULT_NSMAP = 0;
567
817
static PyObject *__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = 0;
568
818
static PyObject *__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = 0;
569
 
static PyObject *__pyx_k_648;
570
 
static PyObject *__pyx_k_649;
571
 
static PyObject *__pyx_k_651;
572
 
static PyObject *__pyx_k_652;
573
 
static PyObject *__pyx_k_653;
574
 
static PyObject *__pyx_k_654;
575
 
static PyObject *__pyx_k_655;
576
 
static PyObject *__pyx_k_656;
577
 
static PyObject *__pyx_k_657;
578
 
static PyObject *__pyx_k_658;
 
819
static PyObject *__pyx_k_714 = 0;
 
820
static PyObject *__pyx_k_715 = 0;
 
821
static PyObject *__pyx_k_717 = 0;
 
822
static PyObject *__pyx_k_718 = 0;
 
823
static PyObject *__pyx_k_719 = 0;
 
824
static PyObject *__pyx_k_720 = 0;
 
825
static PyObject *__pyx_k_721 = 0;
 
826
static PyObject *__pyx_k_722 = 0;
 
827
static PyObject *__pyx_k_723 = 0;
 
828
static PyObject *__pyx_k_724 = 0;
 
829
static PyObject *__pyx_k_725 = 0;
579
830
static PyObject *__pyx_f_4lxml_9objectify__typename(PyObject *); /*proto*/
580
831
static PyObject *__pyx_f_4lxml_9objectify__unicodeAndUtf8(PyObject *); /*proto*/
581
 
static int __pyx_f_4lxml_9objectify__tagMatches(xmlNode *, char *, char *); /*proto*/
 
832
static INLINE int __pyx_f_4lxml_9objectify__tagMatches(xmlNode *, char *, char *); /*proto*/
582
833
static Py_ssize_t __pyx_f_4lxml_9objectify__countSiblings(xmlNode *); /*proto*/
583
834
static xmlNode *__pyx_f_4lxml_9objectify__findFollowingSibling(xmlNode *, char *, char *, Py_ssize_t); /*proto*/
584
835
static PyObject *__pyx_f_4lxml_9objectify__lookupChild(struct LxmlElement *, PyObject *); /*proto*/
589
840
static PyObject *__pyx_f_4lxml_9objectify__setElementValue(struct LxmlElement *, PyObject *); /*proto*/
590
841
static PyObject *__pyx_f_4lxml_9objectify__setSlice(PyObject *, struct LxmlElement *, PyObject *); /*proto*/
591
842
static PyObject *__pyx_f_4lxml_9objectify___parseBool(PyObject *, int __pyx_skip_dispatch); /*proto*/
592
 
static int __pyx_f_4lxml_9objectify___parseBoolAsInt(PyObject *); /*proto*/
593
 
static PyObject *__pyx_f_4lxml_9objectify__parseNumber(struct __pyx_obj_4lxml_9objectify_NumberElement *); /*proto*/
594
 
static PyObject *__pyx_f_4lxml_9objectify__strValueOf(PyObject *); /*proto*/
595
 
static PyObject *__pyx_f_4lxml_9objectify__numericValueOf(PyObject *); /*proto*/
596
 
static PyObject *__pyx_f_4lxml_9objectify__richcmpPyvals(PyObject *, PyObject *, int); /*proto*/
 
843
static INLINE int __pyx_f_4lxml_9objectify___parseBoolAsInt(PyObject *); /*proto*/
 
844
static INLINE PyObject *__pyx_f_4lxml_9objectify__parseNumber(struct __pyx_obj_4lxml_9objectify_NumberElement *); /*proto*/
 
845
static INLINE PyObject *__pyx_f_4lxml_9objectify__strValueOf(PyObject *); /*proto*/
 
846
static INLINE PyObject *__pyx_f_4lxml_9objectify__numericValueOf(PyObject *); /*proto*/
 
847
static INLINE PyObject *__pyx_f_4lxml_9objectify__richcmpPyvals(PyObject *, PyObject *, int); /*proto*/
597
848
static PyObject *__pyx_f_4lxml_9objectify__lower_bool(PyObject *); /*proto*/
598
849
static PyObject *__pyx_f_4lxml_9objectify__pytypename(PyObject *); /*proto*/
599
850
static PyObject *__pyx_f_4lxml_9objectify__registerPyTypes(void); /*proto*/
612
863
static PyObject *__pyx_f_4lxml_9objectify__findObjectPath(struct LxmlElement *, __pyx_t_4lxml_9objectify__ObjectPath *, Py_ssize_t, PyObject *, int); /*proto*/
613
864
static PyObject *__pyx_f_4lxml_9objectify__createObjectPath(struct LxmlElement *, __pyx_t_4lxml_9objectify__ObjectPath *, Py_ssize_t, int, PyObject *); /*proto*/
614
865
static PyObject *__pyx_f_4lxml_9objectify__buildDescendantPaths(xmlNode *, PyObject *); /*proto*/
615
 
static PyObject *__pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(xmlNode *, PyObject *, PyObject *); /*proto*/
616
 
 
 
866
static int __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(xmlNode *, PyObject *, PyObject *); /*proto*/
 
867
#define __Pyx_MODULE_NAME "lxml.objectify"
 
868
int __pyx_module_is_main_lxml__objectify = 0;
617
869
 
618
870
/* Implementation of lxml.objectify */
619
 
static char __pyx_k_640[] = "A fake implementation for __dict__ to support dir() etc.\n\n        Note that this only considers the first child with a given name.\n        ";
620
 
static char __pyx_k_641[] = "The list of XML Schema datatypes this Python type maps to.\n\n        Note that this must be set before registering the type!\n        ";
621
 
static char __pyx_k_644[] = "http://www.w3.org/2001/XMLSchema";
622
 
static char __pyx_k_645[] = "http://www.w3.org/2001/XMLSchema-instance";
623
 
static char __pyx_k_646[] = "{%s}nil";
624
 
static char __pyx_k_647[] = "{%s}type";
625
 
static char __pyx_k_663[] = "(\\.?)\\s*(?:\\{([^}]*)\\})?\\s*([^.{}\\[\\]\\s]+)\\s*(?:\\[\\s*([-0-9]+)\\s*\\])?";
 
871
static char __pyx_k_675[] = "A fake implementation for __dict__ to support dir() etc.\n\n        Note that this only considers the first child with a given name.\n        ";
 
872
static char __pyx_k_676[] = "The list of XML Schema datatypes this Python type maps to.\n\n        Note that this must be set before registering the type!\n        ";
 
873
static char __pyx_k_710[] = "http://www.w3.org/2001/XMLSchema";
 
874
static char __pyx_k_711[] = "http://www.w3.org/2001/XMLSchema-instance";
 
875
static char __pyx_k_712[] = "{%s}nil";
 
876
static char __pyx_k_713[] = "{%s}type";
 
877
static char __pyx_k_730[] = "(\\.?)\\s*(?:\\{([^}]*)\\})?\\s*([^.{}\\[\\]\\s]+)\\s*(?:\\[\\s*([-0-9]+)\\s*\\])?";
626
878
static PyObject *__pyx_int_0;
627
879
static PyObject *__pyx_int_1;
628
880
static PyObject *__pyx_int_neg_1;
 
881
static char __pyx_k___main__[] = "__main__";
 
882
static PyObject *__pyx_kp___main__;
629
883
static char __pyx_k___iter__[] = "__iter__";
630
884
static PyObject *__pyx_kp___iter__;
631
885
static char __pyx_k___str__[] = "__str__";
816
1070
static PyObject *__pyx_kp_pytype;
817
1071
static char __pyx_k_xsi[] = "xsi";
818
1072
static PyObject *__pyx_kp_xsi;
 
1073
static char __pyx_k_xsi_nil[] = "xsi_nil";
 
1074
static PyObject *__pyx_kp_xsi_nil;
819
1075
static char __pyx_k_new_parser[] = "new_parser";
820
1076
static PyObject *__pyx_kp_new_parser;
821
1077
static char __pyx_k_xml[] = "xml";
838
1094
static PyObject *__pyx_kp__xsi;
839
1095
static char __pyx_k_root[] = "root";
840
1096
static PyObject *__pyx_kp_root;
 
1097
static char __pyx_k_677[] = "BoolElement";
 
1098
static PyObject *__pyx_kp_677;
 
1099
static char __pyx_k_678[] = "DataElement";
 
1100
static PyObject *__pyx_kp_678;
 
1101
static char __pyx_k_679[] = "E";
 
1102
static PyObject *__pyx_kp_679;
 
1103
static char __pyx_k_680[] = "Element";
 
1104
static PyObject *__pyx_kp_680;
 
1105
static char __pyx_k_681[] = "ElementMaker";
 
1106
static PyObject *__pyx_kp_681;
 
1107
static char __pyx_k_682[] = "FloatElement";
 
1108
static PyObject *__pyx_kp_682;
 
1109
static char __pyx_k_683[] = "IntElement";
 
1110
static PyObject *__pyx_kp_683;
 
1111
static char __pyx_k_684[] = "LongElement";
 
1112
static PyObject *__pyx_kp_684;
 
1113
static char __pyx_k_685[] = "NoneElement";
 
1114
static PyObject *__pyx_kp_685;
 
1115
static char __pyx_k_686[] = "NumberElement";
 
1116
static PyObject *__pyx_kp_686;
 
1117
static char __pyx_k_687[] = "ObjectPath";
 
1118
static PyObject *__pyx_kp_687;
 
1119
static char __pyx_k_688[] = "ObjectifiedDataElement";
 
1120
static PyObject *__pyx_kp_688;
 
1121
static char __pyx_k_689[] = "ObjectifiedElement";
 
1122
static PyObject *__pyx_kp_689;
 
1123
static char __pyx_k_690[] = "ObjectifyElementClassLookup";
 
1124
static PyObject *__pyx_kp_690;
 
1125
static char __pyx_k_691[] = "PYTYPE_ATTRIBUTE";
 
1126
static PyObject *__pyx_kp_691;
 
1127
static char __pyx_k_692[] = "PyType";
 
1128
static PyObject *__pyx_kp_692;
 
1129
static char __pyx_k_693[] = "StringElement";
 
1130
static PyObject *__pyx_kp_693;
 
1131
static char __pyx_k_694[] = "XML";
 
1132
static PyObject *__pyx_kp_694;
 
1133
static char __pyx_k_695[] = "annotate";
 
1134
static PyObject *__pyx_kp_695;
 
1135
static char __pyx_k_696[] = "deannotate";
 
1136
static PyObject *__pyx_kp_696;
 
1137
static char __pyx_k_697[] = "dump";
 
1138
static PyObject *__pyx_kp_697;
 
1139
static char __pyx_k_698[] = "enable_recursive_str";
 
1140
static PyObject *__pyx_kp_698;
 
1141
static char __pyx_k_699[] = "fromstring";
 
1142
static PyObject *__pyx_kp_699;
 
1143
static char __pyx_k_700[] = "getRegisteredTypes";
 
1144
static PyObject *__pyx_kp_700;
 
1145
static char __pyx_k_701[] = "makeparser";
 
1146
static PyObject *__pyx_kp_701;
 
1147
static char __pyx_k_702[] = "parse";
 
1148
static PyObject *__pyx_kp_702;
 
1149
static char __pyx_k_703[] = "pyannotate";
 
1150
static PyObject *__pyx_kp_703;
 
1151
static char __pyx_k_704[] = "pytypename";
 
1152
static PyObject *__pyx_kp_704;
 
1153
static char __pyx_k_705[] = "set_default_parser";
 
1154
static PyObject *__pyx_kp_705;
 
1155
static char __pyx_k_706[] = "set_pytype_attribute_tag";
 
1156
static PyObject *__pyx_kp_706;
 
1157
static char __pyx_k_707[] = "xsiannotate";
 
1158
static PyObject *__pyx_kp_707;
 
1159
static char __pyx_k___all__[] = "__all__";
 
1160
static PyObject *__pyx_kp___all__;
841
1161
static char __pyx_k_lxml[] = "lxml";
842
1162
static PyObject *__pyx_kp_lxml;
843
1163
static char __pyx_k_etree[] = "etree";
846
1166
static PyObject *__pyx_kp___version__;
847
1167
static char __pyx_k_re[] = "re";
848
1168
static PyObject *__pyx_kp_re;
849
 
static char __pyx_k___builtin__[] = "__builtin__";
850
 
static PyObject *__pyx_kp___builtin__;
851
 
static char __pyx_k_ImportError[] = "ImportError";
852
 
static PyObject *__pyx_kp_ImportError;
853
 
static char __pyx_k_builtins[] = "builtins";
854
 
static PyObject *__pyx_kp_builtins;
855
 
static char __pyx_k_set[] = "set";
856
 
static PyObject *__pyx_kp_set;
857
 
static char __pyx_k_AttributeError[] = "AttributeError";
858
 
static PyObject *__pyx_kp_AttributeError;
859
 
static char __pyx_k_sets[] = "sets";
860
 
static PyObject *__pyx_kp_sets;
861
 
static char __pyx_k_Set[] = "Set";
862
 
static PyObject *__pyx_kp_Set;
863
1169
static char __pyx_k_ValueError[] = "ValueError";
864
1170
static PyObject *__pyx_kp_ValueError;
865
1171
static char __pyx_k_TypeError[] = "TypeError";
870
1176
static PyObject *__pyx_kp_islice;
871
1177
static char __pyx_k_PYTYPE_ATTRIBUTE[] = "PYTYPE_ATTRIBUTE";
872
1178
static PyObject *__pyx_kp_PYTYPE_ATTRIBUTE;
873
 
static char __pyx_k_642[] = "TREE";
874
 
static PyObject *__pyx_kp_642;
875
 
static char __pyx_k_643[] = "set_pytype_attribute_tag";
876
 
static PyObject *__pyx_kp_643;
 
1179
static char __pyx_k_708[] = "TREE";
 
1180
static PyObject *__pyx_kp_708;
 
1181
static char __pyx_k_709[] = "set_pytype_attribute_tag";
 
1182
static PyObject *__pyx_kp_709;
877
1183
static char __pyx_k_pickleReduceElement[] = "pickleReduceElement";
878
1184
static PyObject *__pyx_kp_pickleReduceElement;
879
 
static char __pyx_k_650[] = "pickleReduceElementTree";
880
 
static PyObject *__pyx_kp_650;
 
1185
static char __pyx_k_716[] = "pickleReduceElementTree";
 
1186
static PyObject *__pyx_kp_716;
 
1187
static char __pyx_k_strip_attributes[] = "strip_attributes";
 
1188
static PyObject *__pyx_kp_strip_attributes;
881
1189
static char __pyx_k_XMLParser[] = "XMLParser";
882
1190
static PyObject *__pyx_kp_XMLParser;
883
1191
static char __pyx_k_remove_blank_text[] = "remove_blank_text";
884
1192
static PyObject *__pyx_kp_remove_blank_text;
885
 
static char __pyx_k_659[] = "set_element_class_lookup";
886
 
static PyObject *__pyx_kp_659;
 
1193
static char __pyx_k_726[] = "set_element_class_lookup";
 
1194
static PyObject *__pyx_kp_726;
887
1195
static char __pyx_k_fromstring[] = "fromstring";
888
1196
static PyObject *__pyx_kp_fromstring;
889
1197
static char __pyx_k_parse[] = "parse";
890
1198
static PyObject *__pyx_kp_parse;
891
 
static char __pyx_k_660[] = "py";
892
 
static PyObject *__pyx_kp_660;
893
 
static char __pyx_k_661[] = "xsi";
894
 
static PyObject *__pyx_kp_661;
895
 
static char __pyx_k_662[] = "xsd";
896
 
static PyObject *__pyx_kp_662;
 
1199
static char __pyx_k_727[] = "py";
 
1200
static PyObject *__pyx_kp_727;
 
1201
static char __pyx_k_728[] = "xsi";
 
1202
static PyObject *__pyx_kp_728;
 
1203
static char __pyx_k_729[] = "xsd";
 
1204
static PyObject *__pyx_kp_729;
897
1205
static char __pyx_k_E[] = "E";
898
1206
static PyObject *__pyx_kp_E;
899
1207
static char __pyx_k_compile[] = "compile";
902
1210
static PyObject *__pyx_kp_U;
903
1211
static char __pyx_k_match[] = "match";
904
1212
static PyObject *__pyx_kp_match;
905
 
static char __pyx_k_665[] = "pytype";
906
 
static PyObject *__pyx_kp_665;
 
1213
static char __pyx_k_732[] = "pytype";
 
1214
static PyObject *__pyx_kp_732;
907
1215
static char __pyx_k_getparent[] = "getparent";
908
1216
static PyObject *__pyx_kp_getparent;
909
 
static char __pyx_k_668[] = "ElementChildIterator";
910
 
static PyObject *__pyx_kp_668;
911
 
static char __pyx_k_671[] = "text";
912
 
static PyObject *__pyx_kp_671;
913
 
static char __pyx_k_672[] = "pyval";
914
 
static PyObject *__pyx_kp_672;
915
 
static char __pyx_k_674[] = "tail";
916
 
static PyObject *__pyx_kp_674;
917
 
static char __pyx_k_675[] = "tag";
918
 
static PyObject *__pyx_kp_675;
 
1217
static char __pyx_k_735[] = "ElementChildIterator";
 
1218
static PyObject *__pyx_kp_735;
 
1219
static char __pyx_k_738[] = "text";
 
1220
static PyObject *__pyx_kp_738;
 
1221
static char __pyx_k_739[] = "pyval";
 
1222
static PyObject *__pyx_kp_739;
 
1223
static char __pyx_k_741[] = "tail";
 
1224
static PyObject *__pyx_kp_741;
 
1225
static char __pyx_k_742[] = "tag";
 
1226
static PyObject *__pyx_kp_742;
919
1227
static char __pyx_k___set__[] = "__set__";
920
1228
static PyObject *__pyx_kp___set__;
921
 
static char __pyx_k_676[] = "base";
922
 
static PyObject *__pyx_kp_676;
 
1229
static char __pyx_k_743[] = "base";
 
1230
static PyObject *__pyx_kp_743;
 
1231
static char __pyx_k_base[] = "base";
 
1232
static PyObject *__pyx_kp_base;
923
1233
static char __pyx_k_remove[] = "remove";
924
1234
static PyObject *__pyx_kp_remove;
925
1235
static char __pyx_k_IndexError[] = "IndexError";
930
1240
static PyObject *__pyx_kp_text;
931
1241
static char __pyx_k_join[] = "join";
932
1242
static PyObject *__pyx_kp_join;
 
1243
static char __pyx_k_AttributeError[] = "AttributeError";
 
1244
static PyObject *__pyx_kp_AttributeError;
933
1245
static char __pyx_k_replace[] = "replace";
934
1246
static PyObject *__pyx_kp_replace;
935
 
static char __pyx_k_682[] = "true";
936
 
static PyObject *__pyx_kp_682;
937
 
static char __pyx_k_683[] = "nil";
938
 
static PyObject *__pyx_kp_683;
939
 
static char __pyx_k_684[] = "str";
940
 
static PyObject *__pyx_kp_684;
 
1247
static char __pyx_k_749[] = "true";
 
1248
static PyObject *__pyx_kp_749;
 
1249
static char __pyx_k_751[] = "str";
 
1250
static PyObject *__pyx_kp_751;
941
1251
static char __pyx_k_addnext[] = "addnext";
942
1252
static PyObject *__pyx_kp_addnext;
943
1253
static char __pyx_k_oct[] = "oct";
944
1254
static PyObject *__pyx_kp_oct;
945
1255
static char __pyx_k_hex[] = "hex";
946
1256
static PyObject *__pyx_kp_hex;
947
 
static char __pyx_k_692[] = "None";
948
 
static PyObject *__pyx_kp_692;
949
 
static char __pyx_k_693[] = "None";
950
 
static PyObject *__pyx_kp_693;
951
 
static char __pyx_k_lower[] = "lower";
952
 
static PyObject *__pyx_kp_lower;
953
 
static char __pyx_k_697[] = "f";
954
 
static PyObject *__pyx_kp_697;
955
 
static char __pyx_k_698[] = "false";
956
 
static PyObject *__pyx_kp_698;
957
 
static char __pyx_k_699[] = "t";
958
 
static PyObject *__pyx_kp_699;
959
 
static char __pyx_k_700[] = "true";
960
 
static PyObject *__pyx_kp_700;
961
 
static char __pyx_k_703[] = "pyval";
962
 
static PyObject *__pyx_kp_703;
 
1257
static char __pyx_k_759[] = "None";
 
1258
static PyObject *__pyx_kp_759;
 
1259
static char __pyx_k_760[] = "None";
 
1260
static PyObject *__pyx_kp_760;
 
1261
static char __pyx_k_762[] = "false";
 
1262
static PyObject *__pyx_kp_762;
 
1263
static char __pyx_k_763[] = "true";
 
1264
static PyObject *__pyx_kp_763;
 
1265
static char __pyx_k_768[] = "pyval";
 
1266
static PyObject *__pyx_kp_768;
963
1267
static char __pyx_k_pyval[] = "pyval";
964
1268
static PyObject *__pyx_kp_pyval;
965
 
static char __pyx_k_704[] = "pyval";
966
 
static PyObject *__pyx_kp_704;
967
 
static char __pyx_k_705[] = "pyval";
968
 
static PyObject *__pyx_kp_705;
 
1269
static char __pyx_k_769[] = "pyval";
 
1270
static PyObject *__pyx_kp_769;
 
1271
static char __pyx_k_770[] = "pyval";
 
1272
static PyObject *__pyx_kp_770;
969
1273
static char __pyx_k___name__[] = "__name__";
970
1274
static PyObject *__pyx_kp___name__;
971
1275
static char __pyx_k_enumerate[] = "enumerate";
972
1276
static PyObject *__pyx_kp_enumerate;
973
 
static char __pyx_k_append[] = "append";
974
 
static PyObject *__pyx_kp_append;
975
 
static char __pyx_k_insert[] = "insert";
976
 
static PyObject *__pyx_kp_insert;
977
1277
static char __pyx_k_get[] = "get";
978
1278
static PyObject *__pyx_kp_get;
979
 
static char __pyx_k_items[] = "items";
980
 
static PyObject *__pyx_kp_items;
981
1279
static char __pyx_k_map[] = "map";
982
1280
static PyObject *__pyx_kp_map;
983
 
static char __pyx_k_713[] = "true";
984
 
static PyObject *__pyx_kp_713;
985
 
static char __pyx_k_714[] = "false";
986
 
static PyObject *__pyx_kp_714;
987
 
static char __pyx_k_715[] = "str";
988
 
static PyObject *__pyx_kp_715;
989
 
static char __pyx_k_716[] = "int";
990
 
static PyObject *__pyx_kp_716;
991
 
static char __pyx_k_717[] = "integer";
992
 
static PyObject *__pyx_kp_717;
993
 
static char __pyx_k_718[] = "int";
994
 
static PyObject *__pyx_kp_718;
995
 
static char __pyx_k_719[] = "short";
996
 
static PyObject *__pyx_kp_719;
997
 
static char __pyx_k_720[] = "byte";
998
 
static PyObject *__pyx_kp_720;
999
 
static char __pyx_k_721[] = "unsignedShort";
1000
 
static PyObject *__pyx_kp_721;
1001
 
static char __pyx_k_722[] = "unsignedByte";
1002
 
static PyObject *__pyx_kp_722;
1003
 
static char __pyx_k_723[] = "nonPositiveInteger";
1004
 
static PyObject *__pyx_kp_723;
1005
 
static char __pyx_k_724[] = "negativeInteger";
1006
 
static PyObject *__pyx_kp_724;
1007
 
static char __pyx_k_725[] = "long";
1008
 
static PyObject *__pyx_kp_725;
1009
 
static char __pyx_k_726[] = "nonNegativeInteger";
1010
 
static PyObject *__pyx_kp_726;
1011
 
static char __pyx_k_727[] = "unsignedLong";
1012
 
static PyObject *__pyx_kp_727;
1013
 
static char __pyx_k_728[] = "unsignedInt";
1014
 
static PyObject *__pyx_kp_728;
1015
 
static char __pyx_k_729[] = "positiveInteger";
1016
 
static PyObject *__pyx_kp_729;
 
1281
static char __pyx_k_778[] = "true";
 
1282
static PyObject *__pyx_kp_778;
 
1283
static char __pyx_k_779[] = "false";
 
1284
static PyObject *__pyx_kp_779;
 
1285
static char __pyx_k_780[] = "str";
 
1286
static PyObject *__pyx_kp_780;
 
1287
static char __pyx_k_781[] = "int";
 
1288
static PyObject *__pyx_kp_781;
 
1289
static char __pyx_k_782[] = "integer";
 
1290
static PyObject *__pyx_kp_782;
 
1291
static char __pyx_k_783[] = "int";
 
1292
static PyObject *__pyx_kp_783;
 
1293
static char __pyx_k_784[] = "short";
 
1294
static PyObject *__pyx_kp_784;
 
1295
static char __pyx_k_785[] = "byte";
 
1296
static PyObject *__pyx_kp_785;
 
1297
static char __pyx_k_786[] = "unsignedShort";
 
1298
static PyObject *__pyx_kp_786;
 
1299
static char __pyx_k_787[] = "unsignedByte";
 
1300
static PyObject *__pyx_kp_787;
 
1301
static char __pyx_k_788[] = "nonPositiveInteger";
 
1302
static PyObject *__pyx_kp_788;
 
1303
static char __pyx_k_789[] = "negativeInteger";
 
1304
static PyObject *__pyx_kp_789;
 
1305
static char __pyx_k_790[] = "long";
 
1306
static PyObject *__pyx_kp_790;
 
1307
static char __pyx_k_791[] = "nonNegativeInteger";
 
1308
static PyObject *__pyx_kp_791;
 
1309
static char __pyx_k_792[] = "unsignedLong";
 
1310
static PyObject *__pyx_kp_792;
 
1311
static char __pyx_k_793[] = "unsignedInt";
 
1312
static PyObject *__pyx_kp_793;
 
1313
static char __pyx_k_794[] = "positiveInteger";
 
1314
static PyObject *__pyx_kp_794;
1017
1315
static char __pyx_k_xmlSchemaTypes[] = "xmlSchemaTypes";
1018
1316
static PyObject *__pyx_kp_xmlSchemaTypes;
1019
 
static char __pyx_k_730[] = "long";
1020
 
static PyObject *__pyx_kp_730;
1021
 
static char __pyx_k_731[] = "float";
1022
 
static PyObject *__pyx_kp_731;
1023
 
static char __pyx_k_732[] = "double";
1024
 
static PyObject *__pyx_kp_732;
1025
 
static char __pyx_k_733[] = "float";
1026
 
static PyObject *__pyx_kp_733;
1027
 
static char __pyx_k_734[] = "bool";
1028
 
static PyObject *__pyx_kp_734;
 
1317
static char __pyx_k_795[] = "long";
 
1318
static PyObject *__pyx_kp_795;
 
1319
static char __pyx_k_796[] = "float";
 
1320
static PyObject *__pyx_kp_796;
 
1321
static char __pyx_k_797[] = "double";
 
1322
static PyObject *__pyx_kp_797;
 
1323
static char __pyx_k_798[] = "float";
 
1324
static PyObject *__pyx_kp_798;
 
1325
static char __pyx_k_799[] = "bool";
 
1326
static PyObject *__pyx_kp_799;
1029
1327
static char __pyx_k___checkBool[] = "__checkBool";
1030
1328
static PyObject *__pyx_kp___checkBool;
1031
1329
static char __pyx_k___lower_bool[] = "__lower_bool";
1032
1330
static PyObject *__pyx_kp___lower_bool;
1033
 
static char __pyx_k_735[] = "boolean";
1034
 
static PyObject *__pyx_kp_735;
1035
 
static char __pyx_k_736[] = "str";
1036
 
static PyObject *__pyx_kp_736;
1037
 
static char __pyx_k_737[] = "string";
1038
 
static PyObject *__pyx_kp_737;
1039
 
static char __pyx_k_738[] = "normalizedString";
1040
 
static PyObject *__pyx_kp_738;
1041
 
static char __pyx_k_739[] = "token";
1042
 
static PyObject *__pyx_kp_739;
1043
 
static char __pyx_k_740[] = "language";
1044
 
static PyObject *__pyx_kp_740;
1045
 
static char __pyx_k_741[] = "Name";
1046
 
static PyObject *__pyx_kp_741;
1047
 
static char __pyx_k_742[] = "NCName";
1048
 
static PyObject *__pyx_kp_742;
1049
 
static char __pyx_k_743[] = "ID";
1050
 
static PyObject *__pyx_kp_743;
1051
 
static char __pyx_k_744[] = "IDREF";
1052
 
static PyObject *__pyx_kp_744;
1053
 
static char __pyx_k_745[] = "ENTITY";
1054
 
static PyObject *__pyx_kp_745;
1055
 
static char __pyx_k_746[] = "NMTOKEN";
1056
 
static PyObject *__pyx_kp_746;
1057
 
static char __pyx_k_747[] = "NoneType";
1058
 
static PyObject *__pyx_kp_747;
1059
 
static char __pyx_k_748[] = "none";
1060
 
static PyObject *__pyx_kp_748;
1061
 
static char __pyx_k_add[] = "add";
1062
 
static PyObject *__pyx_kp_add;
1063
 
static char __pyx_k_values[] = "values";
1064
 
static PyObject *__pyx_kp_values;
1065
 
static char __pyx_k_752[] = "true";
1066
 
static PyObject *__pyx_kp_752;
1067
 
static char __pyx_k_753[] = "str";
1068
 
static PyObject *__pyx_kp_753;
 
1331
static char __pyx_k_800[] = "boolean";
 
1332
static PyObject *__pyx_kp_800;
 
1333
static char __pyx_k_801[] = "str";
 
1334
static PyObject *__pyx_kp_801;
 
1335
static char __pyx_k_802[] = "string";
 
1336
static PyObject *__pyx_kp_802;
 
1337
static char __pyx_k_803[] = "normalizedString";
 
1338
static PyObject *__pyx_kp_803;
 
1339
static char __pyx_k_804[] = "token";
 
1340
static PyObject *__pyx_kp_804;
 
1341
static char __pyx_k_805[] = "language";
 
1342
static PyObject *__pyx_kp_805;
 
1343
static char __pyx_k_806[] = "Name";
 
1344
static PyObject *__pyx_kp_806;
 
1345
static char __pyx_k_807[] = "NCName";
 
1346
static PyObject *__pyx_kp_807;
 
1347
static char __pyx_k_808[] = "ID";
 
1348
static PyObject *__pyx_kp_808;
 
1349
static char __pyx_k_809[] = "IDREF";
 
1350
static PyObject *__pyx_kp_809;
 
1351
static char __pyx_k_810[] = "ENTITY";
 
1352
static PyObject *__pyx_kp_810;
 
1353
static char __pyx_k_811[] = "NMTOKEN";
 
1354
static PyObject *__pyx_kp_811;
 
1355
static char __pyx_k_812[] = "NoneType";
 
1356
static PyObject *__pyx_kp_812;
 
1357
static char __pyx_k_813[] = "none";
 
1358
static PyObject *__pyx_kp_813;
 
1359
static char __pyx_k_817[] = "true";
 
1360
static PyObject *__pyx_kp_817;
 
1361
static char __pyx_k_818[] = "str";
 
1362
static PyObject *__pyx_kp_818;
1069
1363
static char __pyx_k_strip[] = "strip";
1070
1364
static PyObject *__pyx_kp_strip;
1071
1365
static char __pyx_k_iterchildren[] = "iterchildren";
1078
1372
static PyObject *__pyx_kp_copy_reg;
1079
1373
static char __pyx_k_constructor[] = "constructor";
1080
1374
static PyObject *__pyx_kp_constructor;
1081
 
static char __pyx_k_762[] = "__unpickleElementTree";
1082
 
static PyObject *__pyx_kp_762;
 
1375
static char __pyx_k_827[] = "__unpickleElementTree";
 
1376
static PyObject *__pyx_kp_827;
1083
1377
static char __pyx_k_pickle[] = "pickle";
1084
1378
static PyObject *__pyx_kp_pickle;
1085
1379
static char __pyx_k__ElementTree[] = "_ElementTree";
1086
1380
static PyObject *__pyx_kp__ElementTree;
1087
1381
static char __pyx_k_tostring[] = "tostring";
1088
1382
static PyObject *__pyx_kp_tostring;
1089
 
static char __pyx_k_763[] = "true";
1090
 
static PyObject *__pyx_kp_763;
 
1383
static char __pyx_k_828[] = "true";
 
1384
static PyObject *__pyx_kp_828;
1091
1385
static char __pyx_k_split[] = "split";
1092
1386
static PyObject *__pyx_kp_split;
1093
 
static char __pyx_k_770[] = "str";
1094
 
static PyObject *__pyx_kp_770;
1095
 
static char __pyx_k_771[] = "NoneType";
1096
 
static PyObject *__pyx_kp_771;
1097
 
static char __pyx_k_773[] = "true";
1098
 
static PyObject *__pyx_kp_773;
1099
 
static char __pyx_k_777[] = "none";
1100
 
static PyObject *__pyx_kp_777;
1101
 
static char __pyx_k_778[] = "NoneType";
1102
 
static PyObject *__pyx_kp_778;
1103
 
static char __pyx_k_794[] = "remove_blank_text";
1104
 
static PyObject *__pyx_kp_794;
1105
 
static char __pyx_k_795[] = "remove_blank_text";
1106
 
static PyObject *__pyx_kp_795;
 
1387
static char __pyx_k_835[] = "str";
 
1388
static PyObject *__pyx_kp_835;
 
1389
static char __pyx_k_836[] = "NoneType";
 
1390
static PyObject *__pyx_kp_836;
 
1391
static char __pyx_k_838[] = "true";
 
1392
static PyObject *__pyx_kp_838;
 
1393
static char __pyx_k_842[] = "none";
 
1394
static PyObject *__pyx_kp_842;
 
1395
static char __pyx_k_843[] = "NoneType";
 
1396
static PyObject *__pyx_kp_843;
 
1397
static char __pyx_k_857[] = "remove_blank_text";
 
1398
static PyObject *__pyx_kp_857;
 
1399
static char __pyx_k_858[] = "remove_blank_text";
 
1400
static PyObject *__pyx_kp_858;
1107
1401
static char __pyx_k_update[] = "update";
1108
1402
static PyObject *__pyx_kp_update;
1109
1403
static char __pyx_k___copy__[] = "__copy__";
1110
1404
static PyObject *__pyx_kp___copy__;
1111
 
static char __pyx_k_802[] = "str";
1112
 
static PyObject *__pyx_kp_802;
1113
 
static char __pyx_k_803[] = "NoneType";
1114
 
static PyObject *__pyx_kp_803;
1115
 
static char __pyx_k_804[] = "true";
1116
 
static PyObject *__pyx_kp_804;
1117
 
static char __pyx_k_805[] = "false";
1118
 
static PyObject *__pyx_kp_805;
1119
 
static char __pyx_k_806[] = "NoneType";
1120
 
static PyObject *__pyx_kp_806;
1121
 
static char __pyx_k_807[] = "none";
1122
 
static PyObject *__pyx_kp_807;
1123
 
static char __pyx_k_808[] = "true";
1124
 
static PyObject *__pyx_kp_808;
1125
 
static char __pyx_k_809[] = "value";
1126
 
static PyObject *__pyx_kp_809;
 
1405
static char __pyx_k_items[] = "items";
 
1406
static PyObject *__pyx_kp_items;
 
1407
static char __pyx_k_865[] = "str";
 
1408
static PyObject *__pyx_kp_865;
 
1409
static char __pyx_k_866[] = "NoneType";
 
1410
static PyObject *__pyx_kp_866;
 
1411
static char __pyx_k_867[] = "true";
 
1412
static PyObject *__pyx_kp_867;
 
1413
static char __pyx_k_868[] = "false";
 
1414
static PyObject *__pyx_kp_868;
 
1415
static char __pyx_k_869[] = "NoneType";
 
1416
static PyObject *__pyx_kp_869;
 
1417
static char __pyx_k_870[] = "none";
 
1418
static PyObject *__pyx_kp_870;
 
1419
static char __pyx_k_871[] = "true";
 
1420
static PyObject *__pyx_kp_871;
 
1421
static char __pyx_k_872[] = "value";
 
1422
static PyObject *__pyx_kp_872;
1127
1423
static char __pyx_k_groups[] = "groups";
1128
1424
static PyObject *__pyx_kp_groups;
1129
1425
static char __pyx_k_end[] = "end";
1130
1426
static PyObject *__pyx_kp_end;
1131
 
static PyObject *__pyx_kp_644;
1132
 
static PyObject *__pyx_kp_645;
1133
 
static PyObject *__pyx_kp_646;
1134
 
static PyObject *__pyx_kp_647;
1135
 
static PyObject *__pyx_kp_663;
1136
 
static PyObject *__pyx_builtin_ImportError;
1137
 
static PyObject *__pyx_builtin_AttributeError;
 
1427
static PyObject *__pyx_kp_710;
 
1428
static PyObject *__pyx_kp_711;
 
1429
static PyObject *__pyx_kp_712;
 
1430
static PyObject *__pyx_kp_713;
 
1431
static PyObject *__pyx_kp_730;
1138
1432
static PyObject *__pyx_builtin_ValueError;
1139
1433
static PyObject *__pyx_builtin_TypeError;
1140
1434
static PyObject *__pyx_builtin_IndexError;
 
1435
static PyObject *__pyx_builtin_AttributeError;
1141
1436
static PyObject *__pyx_builtin_oct;
1142
1437
static PyObject *__pyx_builtin_hex;
1143
1438
static PyObject *__pyx_builtin_enumerate;
1144
1439
static PyObject *__pyx_builtin_map;
1145
 
static PyObject *__pyx_kp_664;
1146
 
static char __pyx_k_664[] = "http://codespeak.net/lxml/objectify/pytype";
1147
 
static char __pyx_k_666[] = "UTF-8";
1148
 
static char __pyx_k_667[] = "UTF-8";
1149
 
static PyObject *__pyx_kp_669;
1150
 
static char __pyx_k_669[] = "";
1151
 
static PyObject *__pyx_kp_670;
1152
 
static char __pyx_k_670[] = "{%s}*";
1153
 
static PyObject *__pyx_kp_673;
1154
 
static char __pyx_k_673[] = "attribute '%s' of '%s' objects is not writable";
1155
 
static PyObject *__pyx_kp_677;
1156
 
static char __pyx_k_677[] = "assignment to root element is invalid";
1157
 
static PyObject *__pyx_kp_678;
1158
 
static char __pyx_k_678[] = "deleting items not supported by root element";
1159
 
static PyObject *__pyx_kp_679;
1160
 
static char __pyx_k_679[] = "";
1161
 
static PyObject *__pyx_kp_680;
1162
 
static char __pyx_k_680[] = ".";
1163
 
static PyObject *__pyx_kp_681;
1164
 
static char __pyx_k_681[] = "no such child: ";
1165
 
static PyObject *__pyx_kp_685;
1166
 
static PyObject *__pyx_kp_686;
1167
 
static char __pyx_k_685[] = "Invalid slice";
1168
 
static char __pyx_k_686[] = "attempt to assign sequence of size %d to extended slice of size %d";
1169
 
static PyObject *__pyx_kp_687;
1170
 
static char __pyx_k_687[] = "";
1171
 
static PyObject *__pyx_kp_688;
1172
 
static char __pyx_k_688[] = "";
1173
 
static PyObject *__pyx_kp_689;
1174
 
static char __pyx_k_689[] = "";
1175
 
static PyObject *__pyx_kp_690;
1176
 
static char __pyx_k_690[] = "";
1177
 
static PyObject *__pyx_kp_691;
1178
 
static char __pyx_k_691[] = "invalid types for * operator";
1179
 
static PyObject *__pyx_kp_694;
1180
 
static char __pyx_k_694[] = "Invalid boolean value: '%s'";
1181
 
static PyObject *__pyx_kp_695;
1182
 
static PyObject *__pyx_kp_696;
1183
 
static char __pyx_k_695[] = "0";
1184
 
static char __pyx_k_696[] = "1";
1185
 
static PyObject *__pyx_kp_701;
1186
 
static PyObject *__pyx_kp_702;
1187
 
static char __pyx_k_701[] = "";
1188
 
static char __pyx_k_702[] = "";
1189
 
static PyObject *__pyx_kp_707;
1190
 
static PyObject *__pyx_kp_708;
1191
 
static PyObject *__pyx_kp_709;
1192
 
static char __pyx_k_706[] = "ASCII";
1193
 
static char __pyx_k_707[] = "Type name must be a string";
1194
 
static char __pyx_k_708[] = "Type check function must be callable (or None)";
1195
 
static char __pyx_k_709[] = "Data classes must inherit from ObjectifiedDataElement";
1196
 
static PyObject *__pyx_kp_710;
1197
 
static char __pyx_k_710[] = "PyType(%s, %s)";
1198
 
static PyObject *__pyx_kp_711;
1199
 
static PyObject *__pyx_kp_712;
1200
 
static char __pyx_k_711[] = "Cannot register tree type";
1201
 
static char __pyx_k_712[] = "inconsistent before/after dependencies";
1202
 
static PyObject *__pyx_kp_749;
1203
 
static char __pyx_k_749[] = "";
1204
 
static PyObject *__pyx_kp_750;
1205
 
static char __pyx_k_750[] = "{%s}";
1206
 
static PyObject *__pyx_kp_751;
1207
 
static char __pyx_k_751[] = "{";
 
1440
static PyObject *__pyx_kp_731;
 
1441
static char __pyx_k_731[] = "http://codespeak.net/lxml/objectify/pytype";
 
1442
static char __pyx_k_733[] = "UTF-8";
 
1443
static char __pyx_k_734[] = "UTF-8";
 
1444
static PyObject *__pyx_kp_736;
 
1445
static char __pyx_k_736[] = "";
 
1446
static PyObject *__pyx_kp_737;
 
1447
static char __pyx_k_737[] = "{%s}*";
 
1448
static PyObject *__pyx_kp_740;
 
1449
static char __pyx_k_740[] = "attribute '%s' of '%s' objects is not writable";
 
1450
static PyObject *__pyx_kp_744;
 
1451
static char __pyx_k_744[] = "assignment to root element is invalid";
 
1452
static PyObject *__pyx_kp_745;
 
1453
static char __pyx_k_745[] = "deleting items not supported by root element";
 
1454
static PyObject *__pyx_kp_746;
 
1455
static char __pyx_k_746[] = "";
 
1456
static PyObject *__pyx_kp_747;
 
1457
static char __pyx_k_747[] = ".";
 
1458
static PyObject *__pyx_kp_748;
 
1459
static char __pyx_k_748[] = "no such child: ";
 
1460
static char __pyx_k_750[] = "nil";
 
1461
static PyObject *__pyx_kp_752;
 
1462
static PyObject *__pyx_kp_753;
 
1463
static char __pyx_k_752[] = "Invalid slice";
 
1464
static char __pyx_k_753[] = "attempt to assign sequence of size %d to extended slice of size %d";
1208
1465
static PyObject *__pyx_kp_754;
 
1466
static char __pyx_k_754[] = "";
1209
1467
static PyObject *__pyx_kp_755;
 
1468
static char __pyx_k_755[] = "";
1210
1469
static PyObject *__pyx_kp_756;
 
1470
static char __pyx_k_756[] = "";
1211
1471
static PyObject *__pyx_kp_757;
 
1472
static char __pyx_k_757[] = "";
1212
1473
static PyObject *__pyx_kp_758;
1213
 
static PyObject *__pyx_kp_759;
1214
 
static PyObject *__pyx_kp_760;
 
1474
static char __pyx_k_758[] = "invalid types for * operator";
1215
1475
static PyObject *__pyx_kp_761;
1216
 
static char __pyx_k_754[] = "    ";
1217
 
static char __pyx_k_755[] = "%s%s = %s [%s]\n";
1218
 
static char __pyx_k_756[] = "{%s}";
1219
 
static char __pyx_k_757[] = "{%s}";
1220
 
static char __pyx_k_758[] = "{";
1221
 
static char __pyx_k_759[] = "py:";
1222
 
static char __pyx_k_760[] = "xsi:";
1223
 
static char __pyx_k_761[] = "%s  * %s = %r\n";
 
1476
static char __pyx_k_761[] = "Invalid boolean value: '%s'";
 
1477
static PyObject *__pyx_kp_764;
 
1478
static PyObject *__pyx_kp_765;
 
1479
static char __pyx_k_764[] = "0";
 
1480
static char __pyx_k_765[] = "1";
1224
1481
static PyObject *__pyx_kp_766;
1225
1482
static PyObject *__pyx_kp_767;
1226
 
static char __pyx_k_764[] = "nil";
1227
 
static char __pyx_k_765[] = "type";
1228
 
static char __pyx_k_766[] = ":";
1229
 
static char __pyx_k_767[] = ":";
 
1483
static char __pyx_k_766[] = "";
 
1484
static char __pyx_k_767[] = "";
 
1485
static PyObject *__pyx_kp_772;
 
1486
static PyObject *__pyx_kp_773;
 
1487
static PyObject *__pyx_kp_774;
 
1488
static char __pyx_k_771[] = "ASCII";
 
1489
static char __pyx_k_772[] = "Type name must be a string";
 
1490
static char __pyx_k_773[] = "Type check function must be callable (or None)";
 
1491
static char __pyx_k_774[] = "Data classes must inherit from ObjectifiedDataElement";
1230
1492
static PyObject *__pyx_kp_775;
 
1493
static char __pyx_k_775[] = "PyType(%s, %s)";
1231
1494
static PyObject *__pyx_kp_776;
1232
 
static PyObject *__pyx_kp_781;
1233
 
static PyObject *__pyx_kp_782;
1234
 
static PyObject *__pyx_kp_783;
1235
 
static PyObject *__pyx_kp_784;
1236
 
static char __pyx_k_768[] = "ASCII";
1237
 
static char __pyx_k_769[] = "ASCII";
1238
 
static char __pyx_k_772[] = "nil";
1239
 
static char __pyx_k_774[] = "type";
1240
 
static char __pyx_k_775[] = ":";
1241
 
static char __pyx_k_776[] = ":";
1242
 
static char __pyx_k_779[] = "type";
1243
 
static char __pyx_k_780[] = "xsd";
1244
 
static char __pyx_k_781[] = ":";
1245
 
static char __pyx_k_782[] = ":";
1246
 
static char __pyx_k_783[] = ":";
1247
 
static char __pyx_k_784[] = ":";
1248
 
static char __pyx_k_785[] = "xsi";
1249
 
static char __pyx_k_786[] = "type";
1250
 
static char __pyx_k_787[] = "py";
1251
 
static char __pyx_k_788[] = "xsi";
1252
 
static char __pyx_k_789[] = "nil";
1253
 
static char __pyx_k_790[] = "true";
1254
 
static char __pyx_k_791[] = "type";
1255
 
static char __pyx_k_792[] = "type";
1256
 
static PyObject *__pyx_kp_793;
1257
 
static char __pyx_k_793[] = "parser must inherit from lxml.etree.XMLParser";
1258
 
static PyObject *__pyx_kp_796;
1259
 
static PyObject *__pyx_kp_797;
1260
 
static PyObject *__pyx_kp_798;
1261
 
static PyObject *__pyx_kp_799;
1262
 
static PyObject *__pyx_kp_800;
1263
 
static PyObject *__pyx_kp_801;
1264
 
static char __pyx_k_796[] = ":";
1265
 
static char __pyx_k_797[] = ":";
1266
 
static char __pyx_k_798[] = "XSD types require the XSD namespace";
1267
 
static char __pyx_k_799[] = "xsd:";
1268
 
static char __pyx_k_800[] = ":";
1269
 
static char __pyx_k_801[] = "XSD types require the XSD namespace";
1270
 
static PyObject *__pyx_kp_810;
1271
 
static char __pyx_k_810[] = ".";
1272
 
static PyObject *__pyx_kp_811;
1273
 
static char __pyx_k_811[] = "invalid number of arguments: needs one or two";
1274
 
static PyObject *__pyx_kp_813;
 
1495
static PyObject *__pyx_kp_777;
 
1496
static char __pyx_k_776[] = "Cannot register tree type";
 
1497
static char __pyx_k_777[] = "inconsistent before/after dependencies";
1275
1498
static PyObject *__pyx_kp_814;
 
1499
static char __pyx_k_814[] = "";
1276
1500
static PyObject *__pyx_kp_815;
 
1501
static char __pyx_k_815[] = "{%s}";
1277
1502
static PyObject *__pyx_kp_816;
1278
 
static PyObject *__pyx_kp_817;
1279
 
static char __pyx_k_812[] = "ASCII";
1280
 
static char __pyx_k_813[] = ".";
1281
 
static char __pyx_k_814[] = ".";
1282
 
static char __pyx_k_815[] = "index not allowed on root node";
1283
 
static char __pyx_k_816[] = "invalid path";
1284
 
static char __pyx_k_817[] = "invalid path";
1285
 
static PyObject *__pyx_kp_818;
 
1503
static char __pyx_k_816[] = "{";
1286
1504
static PyObject *__pyx_kp_819;
1287
1505
static PyObject *__pyx_kp_820;
1288
1506
static PyObject *__pyx_kp_821;
1289
 
static char __pyx_k_818[] = "";
1290
 
static char __pyx_k_819[] = "index must be enclosed in []";
1291
 
static char __pyx_k_820[] = "index not allowed on root node";
1292
 
static char __pyx_k_821[] = "invalid path";
1293
1507
static PyObject *__pyx_kp_822;
1294
1508
static PyObject *__pyx_kp_823;
1295
 
static char __pyx_k_822[] = "root element does not match: need %s, got %s";
1296
 
static char __pyx_k_823[] = "no such child: ";
1297
1509
static PyObject *__pyx_kp_824;
1298
1510
static PyObject *__pyx_kp_825;
1299
1511
static PyObject *__pyx_kp_826;
1300
 
static char __pyx_k_824[] = "cannot update root node";
1301
 
static char __pyx_k_825[] = "root element does not match: need %s, got %s";
1302
 
static char __pyx_k_826[] = "creating indexed path attributes is not supported";
1303
 
static PyObject *__pyx_kp_827;
1304
 
static PyObject *__pyx_kp_828;
1305
 
static char __pyx_k_827[] = ".";
1306
 
static char __pyx_k_828[] = ".";
1307
 
static PyObject *__pyx_kp_829;
1308
 
static PyObject *__pyx_kp_830;
 
1512
static char __pyx_k_819[] = "    ";
 
1513
static char __pyx_k_820[] = "%s%s = %s [%s]\n";
 
1514
static char __pyx_k_821[] = "{%s}";
 
1515
static char __pyx_k_822[] = "{%s}";
 
1516
static char __pyx_k_823[] = "{";
 
1517
static char __pyx_k_824[] = "py:";
 
1518
static char __pyx_k_825[] = "xsi:";
 
1519
static char __pyx_k_826[] = "%s  * %s = %r\n";
1309
1520
static PyObject *__pyx_kp_831;
1310
 
static char __pyx_k_829[] = ".";
1311
 
static char __pyx_k_830[] = "{}";
1312
 
static char __pyx_k_831[] = "[%d]";
 
1521
static PyObject *__pyx_kp_832;
 
1522
static char __pyx_k_829[] = "nil";
 
1523
static char __pyx_k_830[] = "type";
 
1524
static char __pyx_k_831[] = ":";
 
1525
static char __pyx_k_832[] = ":";
 
1526
static PyObject *__pyx_kp_840;
 
1527
static PyObject *__pyx_kp_841;
 
1528
static PyObject *__pyx_kp_846;
 
1529
static PyObject *__pyx_kp_847;
 
1530
static PyObject *__pyx_kp_848;
 
1531
static PyObject *__pyx_kp_849;
 
1532
static char __pyx_k_833[] = "ASCII";
 
1533
static char __pyx_k_834[] = "ASCII";
 
1534
static char __pyx_k_837[] = "nil";
 
1535
static char __pyx_k_839[] = "type";
 
1536
static char __pyx_k_840[] = ":";
 
1537
static char __pyx_k_841[] = ":";
 
1538
static char __pyx_k_844[] = "type";
 
1539
static char __pyx_k_845[] = "xsd";
 
1540
static char __pyx_k_846[] = ":";
 
1541
static char __pyx_k_847[] = ":";
 
1542
static char __pyx_k_848[] = ":";
 
1543
static char __pyx_k_849[] = ":";
 
1544
static char __pyx_k_850[] = "xsi";
 
1545
static char __pyx_k_851[] = "type";
 
1546
static char __pyx_k_852[] = "py";
 
1547
static char __pyx_k_853[] = "xsi";
 
1548
static char __pyx_k_854[] = "nil";
 
1549
static char __pyx_k_855[] = "true";
 
1550
static PyObject *__pyx_kp_856;
 
1551
static char __pyx_k_856[] = "parser must inherit from lxml.etree.XMLParser";
 
1552
static PyObject *__pyx_kp_859;
 
1553
static PyObject *__pyx_kp_860;
 
1554
static PyObject *__pyx_kp_861;
 
1555
static PyObject *__pyx_kp_862;
 
1556
static PyObject *__pyx_kp_863;
 
1557
static PyObject *__pyx_kp_864;
 
1558
static char __pyx_k_859[] = ":";
 
1559
static char __pyx_k_860[] = ":";
 
1560
static char __pyx_k_861[] = "XSD types require the XSD namespace";
 
1561
static char __pyx_k_862[] = "xsd:";
 
1562
static char __pyx_k_863[] = ":";
 
1563
static char __pyx_k_864[] = "XSD types require the XSD namespace";
 
1564
static PyObject *__pyx_kp_873;
 
1565
static char __pyx_k_873[] = ".";
 
1566
static PyObject *__pyx_kp_874;
 
1567
static char __pyx_k_874[] = "invalid number of arguments: needs one or two";
 
1568
static PyObject *__pyx_kp_876;
 
1569
static PyObject *__pyx_kp_877;
 
1570
static PyObject *__pyx_kp_878;
 
1571
static PyObject *__pyx_kp_879;
 
1572
static PyObject *__pyx_kp_880;
 
1573
static char __pyx_k_875[] = "ASCII";
 
1574
static char __pyx_k_876[] = ".";
 
1575
static char __pyx_k_877[] = ".";
 
1576
static char __pyx_k_878[] = "index not allowed on root node";
 
1577
static char __pyx_k_879[] = "invalid path";
 
1578
static char __pyx_k_880[] = "invalid path";
 
1579
static PyObject *__pyx_kp_881;
 
1580
static PyObject *__pyx_kp_882;
 
1581
static PyObject *__pyx_kp_883;
 
1582
static PyObject *__pyx_kp_884;
 
1583
static char __pyx_k_881[] = "";
 
1584
static char __pyx_k_882[] = "index must be enclosed in []";
 
1585
static char __pyx_k_883[] = "index not allowed on root node";
 
1586
static char __pyx_k_884[] = "invalid path";
 
1587
static PyObject *__pyx_kp_885;
 
1588
static PyObject *__pyx_kp_886;
 
1589
static char __pyx_k_885[] = "root element does not match: need %s, got %s";
 
1590
static char __pyx_k_886[] = "no such child: ";
 
1591
static PyObject *__pyx_kp_887;
 
1592
static PyObject *__pyx_kp_888;
 
1593
static PyObject *__pyx_kp_889;
 
1594
static char __pyx_k_887[] = "cannot update root node";
 
1595
static char __pyx_k_888[] = "root element does not match: need %s, got %s";
 
1596
static char __pyx_k_889[] = "creating indexed path attributes is not supported";
 
1597
static PyObject *__pyx_kp_890;
 
1598
static PyObject *__pyx_kp_891;
 
1599
static char __pyx_k_890[] = ".";
 
1600
static char __pyx_k_891[] = ".";
 
1601
static PyObject *__pyx_kp_892;
 
1602
static PyObject *__pyx_kp_893;
 
1603
static PyObject *__pyx_kp_894;
 
1604
static char __pyx_k_892[] = ".";
 
1605
static char __pyx_k_893[] = "{}";
 
1606
static char __pyx_k_894[] = "[%d]";
1313
1607
 
1314
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":45
 
1608
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":40
1315
1609
 * from itertools import islice
1316
1610
 * 
1317
1611
 * cdef object _typename(object t):             # <<<<<<<<<<<<<<
1322
1616
static  PyObject *__pyx_f_4lxml_9objectify__typename(PyObject *__pyx_v_t) {
1323
1617
  char *__pyx_v_c_name;
1324
1618
  char *__pyx_v_s;
1325
 
  PyObject *__pyx_r;
1326
 
  int __pyx_1;
1327
 
  PyObject *__pyx_2 = 0;
 
1619
  PyObject *__pyx_r = NULL;
 
1620
  int __pyx_t_1;
 
1621
  PyObject *__pyx_t_2 = NULL;
 
1622
  __Pyx_SetupRefcountContext("_typename");
1328
1623
 
1329
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":48
 
1624
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":43
1330
1625
 *     cdef char* c_name
1331
1626
 *     cdef char* s
1332
1627
 *     c_name = python._fqtypename(t)             # <<<<<<<<<<<<<<
1335
1630
 */
1336
1631
  __pyx_v_c_name = _fqtypename(__pyx_v_t);
1337
1632
 
1338
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":49
 
1633
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":44
1339
1634
 *     cdef char* s
1340
1635
 *     c_name = python._fqtypename(t)
1341
1636
 *     s = cstd.strrchr(c_name, c'.')             # <<<<<<<<<<<<<<
1344
1639
 */
1345
1640
  __pyx_v_s = strrchr(__pyx_v_c_name, '.');
1346
1641
 
1347
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":50
 
1642
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":45
1348
1643
 *     c_name = python._fqtypename(t)
1349
1644
 *     s = cstd.strrchr(c_name, c'.')
1350
1645
 *     if s is not NULL:             # <<<<<<<<<<<<<<
1351
1646
 *         c_name = s + 1
1352
1647
 *     return pyunicode(c_name)
1353
1648
 */
1354
 
  __pyx_1 = (__pyx_v_s != NULL);
1355
 
  if (__pyx_1) {
 
1649
  __pyx_t_1 = (__pyx_v_s != NULL);
 
1650
  if (__pyx_t_1) {
1356
1651
 
1357
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":51
 
1652
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":46
1358
1653
 *     s = cstd.strrchr(c_name, c'.')
1359
1654
 *     if s is not NULL:
1360
1655
 *         c_name = s + 1             # <<<<<<<<<<<<<<
1366
1661
  }
1367
1662
  __pyx_L3:;
1368
1663
 
1369
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":52
 
1664
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":47
1370
1665
 *     if s is not NULL:
1371
1666
 *         c_name = s + 1
1372
1667
 *     return pyunicode(c_name)             # <<<<<<<<<<<<<<
1373
1668
 * 
1374
1669
 * # namespace/name for "pytype" hint attribute
1375
1670
 */
1376
 
  __pyx_2 = pyunicode(__pyx_v_c_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1377
 
  __pyx_r = __pyx_2;
1378
 
  __pyx_2 = 0;
 
1671
  __Pyx_XDECREF(__pyx_r);
 
1672
  __pyx_t_2 = pyunicode(__pyx_v_c_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1673
  __Pyx_GOTREF(__pyx_t_2);
 
1674
  __pyx_r = __pyx_t_2;
 
1675
  __pyx_t_2 = 0;
1379
1676
  goto __pyx_L0;
1380
1677
 
1381
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
1678
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1382
1679
  goto __pyx_L0;
1383
1680
  __pyx_L1_error:;
1384
 
  Py_XDECREF(__pyx_2);
 
1681
  __Pyx_XDECREF(__pyx_t_2);
1385
1682
  __Pyx_AddTraceback("lxml.objectify._typename");
1386
1683
  __pyx_r = 0;
1387
1684
  __pyx_L0:;
 
1685
  __Pyx_XGIVEREF(__pyx_r);
 
1686
  __Pyx_FinishRefcountContext();
1388
1687
  return __pyx_r;
1389
1688
}
1390
1689
 
1391
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":68
 
1690
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":63
1392
1691
 * TREE_PYTYPE_NAME = u"TREE"
1393
1692
 * 
1394
1693
 * cdef _unicodeAndUtf8(s):             # <<<<<<<<<<<<<<
1397
1696
 */
1398
1697
 
1399
1698
static  PyObject *__pyx_f_4lxml_9objectify__unicodeAndUtf8(PyObject *__pyx_v_s) {
1400
 
  PyObject *__pyx_r;
1401
 
  PyObject *__pyx_1 = 0;
1402
 
  PyObject *__pyx_2 = 0;
 
1699
  PyObject *__pyx_r = NULL;
 
1700
  PyObject *__pyx_t_1 = NULL;
 
1701
  PyObject *__pyx_t_2 = NULL;
 
1702
  __Pyx_SetupRefcountContext("_unicodeAndUtf8");
1403
1703
 
1404
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":69
 
1704
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":64
1405
1705
 * 
1406
1706
 * cdef _unicodeAndUtf8(s):
1407
1707
 *     return (s, python.PyUnicode_AsUTF8String(s))             # <<<<<<<<<<<<<<
1408
1708
 * 
1409
1709
 * def set_pytype_attribute_tag(attribute_tag=None):
1410
1710
 */
1411
 
  __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_s); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1412
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1413
 
  Py_INCREF(__pyx_v_s);
1414
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_s);
1415
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_1);
1416
 
  __pyx_1 = 0;
1417
 
  __pyx_r = ((PyObject *)__pyx_2);
1418
 
  __pyx_2 = 0;
 
1711
  __Pyx_XDECREF(__pyx_r);
 
1712
  __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_s); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1713
  __Pyx_GOTREF(__pyx_t_1);
 
1714
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1715
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
1716
  __Pyx_INCREF(__pyx_v_s);
 
1717
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_s);
 
1718
  __Pyx_GIVEREF(__pyx_v_s);
 
1719
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
1720
  __Pyx_GIVEREF(__pyx_t_1);
 
1721
  __pyx_t_1 = 0;
 
1722
  __pyx_r = ((PyObject *)__pyx_t_2);
 
1723
  __pyx_t_2 = 0;
1419
1724
  goto __pyx_L0;
1420
1725
 
1421
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
1726
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1422
1727
  goto __pyx_L0;
1423
1728
  __pyx_L1_error:;
1424
 
  Py_XDECREF(__pyx_1);
1425
 
  Py_XDECREF(__pyx_2);
 
1729
  __Pyx_XDECREF(__pyx_t_1);
 
1730
  __Pyx_XDECREF(__pyx_t_2);
1426
1731
  __Pyx_AddTraceback("lxml.objectify._unicodeAndUtf8");
1427
1732
  __pyx_r = 0;
1428
1733
  __pyx_L0:;
 
1734
  __Pyx_XGIVEREF(__pyx_r);
 
1735
  __Pyx_FinishRefcountContext();
1429
1736
  return __pyx_r;
1430
1737
}
1431
1738
 
1432
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":71
 
1739
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":66
1433
1740
 *     return (s, python.PyUnicode_AsUTF8String(s))
1434
1741
 * 
1435
1742
 * def set_pytype_attribute_tag(attribute_tag=None):             # <<<<<<<<<<<<<<
1441
1748
static char __pyx_doc_4lxml_9objectify_set_pytype_attribute_tag[] = "set_pytype_attribute_tag(attribute_tag=None)\n    Change name and namespace of the XML attribute that holds Python type\n    information.\n\n    Do not use this unless you know what you are doing.\n\n    Reset by calling without argument.\n\n    Default: \"{http://codespeak.net/lxml/objectify/pytype}pytype\"\n    ";
1442
1749
static PyObject *__pyx_pf_4lxml_9objectify_set_pytype_attribute_tag(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
1443
1750
  PyObject *__pyx_v_attribute_tag = 0;
1444
 
  PyObject *__pyx_r;
1445
 
  int __pyx_1;
 
1751
  PyObject *__pyx_r = NULL;
 
1752
  PyObject *__pyx_1 = 0;
1446
1753
  PyObject *__pyx_2 = 0;
1447
1754
  PyObject *__pyx_3 = 0;
1448
 
  PyObject *__pyx_4 = 0;
 
1755
  int __pyx_t_1;
 
1756
  PyObject *__pyx_t_2 = NULL;
1449
1757
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_attribute_tag,0};
 
1758
  __Pyx_SetupRefcountContext("set_pytype_attribute_tag");
1450
1759
  __pyx_self = __pyx_self;
1451
 
  __pyx_v_attribute_tag = Py_None;
1452
1760
  if (unlikely(__pyx_kwds)) {
 
1761
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
1453
1762
    PyObject* values[1] = {0};
1454
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
1763
    values[0] = Py_None;
1455
1764
    switch (PyTuple_GET_SIZE(__pyx_args)) {
1456
1765
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
1457
1766
      case  0: break;
1458
1767
      default: goto __pyx_L5_argtuple_error;
1459
1768
    }
 
1769
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
1770
      case  0:
 
1771
      if (kw_args > 0) {
 
1772
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_attribute_tag);
 
1773
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
1774
      }
 
1775
    }
1460
1776
    if (unlikely(kw_args > 0)) {
1461
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_pytype_attribute_tag") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1462
 
    }
1463
 
    if (values[0]) {
1464
 
      __pyx_v_attribute_tag = values[0];
1465
 
    }
 
1777
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_pytype_attribute_tag") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1778
    }
 
1779
    __pyx_v_attribute_tag = values[0];
1466
1780
  } else {
 
1781
    __pyx_v_attribute_tag = Py_None;
1467
1782
    switch (PyTuple_GET_SIZE(__pyx_args)) {
1468
1783
      case  1: __pyx_v_attribute_tag = PyTuple_GET_ITEM(__pyx_args, 0);
1469
1784
      case  0: break;
1472
1787
  }
1473
1788
  goto __pyx_L4_argument_unpacking_done;
1474
1789
  __pyx_L5_argtuple_error:;
1475
 
  __Pyx_RaiseArgtupleInvalid("set_pytype_attribute_tag", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
1790
  __Pyx_RaiseArgtupleInvalid("set_pytype_attribute_tag", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
1476
1791
  __pyx_L3_error:;
1477
1792
  __Pyx_AddTraceback("lxml.objectify.set_pytype_attribute_tag");
1478
1793
  return NULL;
1479
1794
  __pyx_L4_argument_unpacking_done:;
1480
1795
 
1481
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":85
 
1796
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":80
1482
1797
 *     global PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8
1483
1798
 *     global PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8
1484
1799
 *     if attribute_tag is None:             # <<<<<<<<<<<<<<
1485
1800
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
1486
1801
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
1487
1802
 */
1488
 
  __pyx_1 = (__pyx_v_attribute_tag == Py_None);
1489
 
  if (__pyx_1) {
 
1803
  __pyx_t_1 = (__pyx_v_attribute_tag == Py_None);
 
1804
  if (__pyx_t_1) {
1490
1805
 
1491
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":87
 
1806
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":82
1492
1807
 *     if attribute_tag is None:
1493
1808
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
1494
1809
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")             # <<<<<<<<<<<<<<
1495
1810
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
1496
1811
 *             _unicodeAndUtf8(u"pytype")
1497
1812
 */
1498
 
    __pyx_2 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_664)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1499
 
    if (PyTuple_CheckExact(__pyx_2) && PyTuple_GET_SIZE(__pyx_2) == 2) {
1500
 
      PyObject* tuple = __pyx_2;
1501
 
      __pyx_4 = PyTuple_GET_ITEM(tuple, 0);
1502
 
      Py_INCREF(__pyx_4);
 
1813
    __pyx_t_2 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_731)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1814
    __Pyx_GOTREF(__pyx_t_2);
 
1815
    if (PyTuple_CheckExact(__pyx_t_2) && likely(PyTuple_GET_SIZE(__pyx_t_2) == 2)) {
 
1816
      PyObject* tuple = __pyx_t_2;
 
1817
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
1818
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
1503
1819
 
1504
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":86
 
1820
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":81
1505
1821
 *     global PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8
1506
1822
 *     if attribute_tag is None:
1507
1823
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \             # <<<<<<<<<<<<<<
1508
1824
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
1509
1825
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
1510
1826
 */
1511
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
1512
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_4;
1513
 
      __pyx_4 = 0;
1514
 
      __pyx_4 = PyTuple_GET_ITEM(tuple, 1);
1515
 
      Py_INCREF(__pyx_4);
1516
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
1517
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_4;
1518
 
      __pyx_4 = 0;
1519
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
1520
 
    }
1521
 
    else {
1522
 
      __pyx_3 = PyObject_GetIter(__pyx_2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1523
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
1524
 
      __pyx_4 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1525
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
1526
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_4;
1527
 
      __pyx_4 = 0;
1528
 
      __pyx_4 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1529
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
1530
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_4;
1531
 
      __pyx_4 = 0;
1532
 
      if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1533
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
1827
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1828
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1829
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1830
      __Pyx_GIVEREF(__pyx_2);
 
1831
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_2;
 
1832
      __pyx_2 = 0;
 
1833
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1834
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1835
      __Pyx_GIVEREF(__pyx_3);
 
1836
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_3;
 
1837
      __pyx_3 = 0;
 
1838
    } else {
 
1839
      __pyx_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1840
      __Pyx_GOTREF(__pyx_1);
 
1841
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1842
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1843
      __Pyx_GOTREF(__pyx_2);
 
1844
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1845
      __Pyx_GOTREF(__pyx_3);
 
1846
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1847
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
1848
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1849
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1850
      __Pyx_GIVEREF(__pyx_2);
 
1851
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_2;
 
1852
      __pyx_2 = 0;
 
1853
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1854
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1855
      __Pyx_GIVEREF(__pyx_3);
 
1856
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_3;
 
1857
      __pyx_3 = 0;
1534
1858
    }
1535
1859
 
1536
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":89
 
1860
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":84
1537
1861
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
1538
1862
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
1539
1863
 *             _unicodeAndUtf8(u"pytype")             # <<<<<<<<<<<<<<
1540
1864
 *     else:
1541
1865
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
1542
1866
 */
1543
 
    __pyx_4 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_665)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1544
 
    if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
1545
 
      PyObject* tuple = __pyx_4;
1546
 
      __pyx_3 = PyTuple_GET_ITEM(tuple, 0);
1547
 
      Py_INCREF(__pyx_3);
 
1867
    __pyx_t_2 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_732)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1868
    __Pyx_GOTREF(__pyx_t_2);
 
1869
    if (PyTuple_CheckExact(__pyx_t_2) && likely(PyTuple_GET_SIZE(__pyx_t_2) == 2)) {
 
1870
      PyObject* tuple = __pyx_t_2;
 
1871
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
1872
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
1548
1873
 
1549
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":88
 
1874
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":83
1550
1875
 *         PYTYPE_NAMESPACE, PYTYPE_NAMESPACE_UTF8 = \
1551
1876
 *             _unicodeAndUtf8(u"http://codespeak.net/lxml/objectify/pytype")
1552
1877
 *         PYTYPE_ATTRIBUTE_NAME, PYTYPE_ATTRIBUTE_NAME_UTF8 = \             # <<<<<<<<<<<<<<
1553
1878
 *             _unicodeAndUtf8(u"pytype")
1554
1879
 *     else:
1555
1880
 */
1556
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
1557
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_3;
1558
 
      __pyx_3 = 0;
1559
 
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1);
1560
 
      Py_INCREF(__pyx_3);
1561
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
1562
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
1563
 
      __pyx_3 = 0;
1564
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
1565
 
    }
1566
 
    else {
1567
 
      __pyx_2 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1568
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
1569
 
      __pyx_3 = __Pyx_UnpackItem(__pyx_2, 0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1570
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
1571
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_3;
1572
 
      __pyx_3 = 0;
1573
 
      __pyx_3 = __Pyx_UnpackItem(__pyx_2, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1574
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
1575
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
1576
 
      __pyx_3 = 0;
1577
 
      if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1578
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
 
1881
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1882
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1883
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1884
      __Pyx_GIVEREF(__pyx_2);
 
1885
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_2;
 
1886
      __pyx_2 = 0;
 
1887
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1888
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1889
      __Pyx_GIVEREF(__pyx_3);
 
1890
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
 
1891
      __pyx_3 = 0;
 
1892
    } else {
 
1893
      __pyx_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1894
      __Pyx_GOTREF(__pyx_1);
 
1895
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1896
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1897
      __Pyx_GOTREF(__pyx_2);
 
1898
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1899
      __Pyx_GOTREF(__pyx_3);
 
1900
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1901
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
1902
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1903
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1904
      __Pyx_GIVEREF(__pyx_2);
 
1905
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_2;
 
1906
      __pyx_2 = 0;
 
1907
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1908
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1909
      __Pyx_GIVEREF(__pyx_3);
 
1910
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
 
1911
      __pyx_3 = 0;
1579
1912
    }
1580
1913
    goto __pyx_L6;
1581
1914
  }
1582
1915
  /*else*/ {
1583
1916
 
1584
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":92
 
1917
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":87
1585
1918
 *     else:
1586
1919
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \
1587
1920
 *             cetree.getNsTag(attribute_tag)             # <<<<<<<<<<<<<<
1588
1921
 *         PYTYPE_NAMESPACE = python.PyUnicode_FromEncodedObject(
1589
1922
 *             PYTYPE_NAMESPACE_UTF8, 'UTF-8', NULL)
1590
1923
 */
1591
 
    __pyx_3 = getNsTag(__pyx_v_attribute_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1592
 
    if (PyTuple_CheckExact(__pyx_3) && PyTuple_GET_SIZE(__pyx_3) == 2) {
1593
 
      PyObject* tuple = __pyx_3;
1594
 
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0);
1595
 
      Py_INCREF(__pyx_2);
 
1924
    __pyx_t_2 = getNsTag(__pyx_v_attribute_tag); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1925
    __Pyx_GOTREF(__pyx_t_2);
 
1926
    if (PyTuple_CheckExact(__pyx_t_2) && likely(PyTuple_GET_SIZE(__pyx_t_2) == 2)) {
 
1927
      PyObject* tuple = __pyx_t_2;
 
1928
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
1929
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
1596
1930
 
1597
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":91
 
1931
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":86
1598
1932
 *             _unicodeAndUtf8(u"pytype")
1599
1933
 *     else:
1600
1934
 *         PYTYPE_NAMESPACE_UTF8, PYTYPE_ATTRIBUTE_NAME_UTF8 = \             # <<<<<<<<<<<<<<
1601
1935
 *             cetree.getNsTag(attribute_tag)
1602
1936
 *         PYTYPE_NAMESPACE = python.PyUnicode_FromEncodedObject(
1603
1937
 */
1604
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
1605
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_2;
1606
 
      __pyx_2 = 0;
1607
 
      __pyx_2 = PyTuple_GET_ITEM(tuple, 1);
1608
 
      Py_INCREF(__pyx_2);
1609
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
1610
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_2;
1611
 
      __pyx_2 = 0;
1612
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
1613
 
    }
1614
 
    else {
1615
 
      __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1616
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
1617
 
      __pyx_2 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1618
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
1619
 
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_2;
1620
 
      __pyx_2 = 0;
1621
 
      __pyx_2 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1622
 
      Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
1623
 
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_2;
1624
 
      __pyx_2 = 0;
1625
 
      if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1626
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
1938
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1939
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1940
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1941
      __Pyx_GIVEREF(__pyx_2);
 
1942
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_2;
 
1943
      __pyx_2 = 0;
 
1944
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1945
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1946
      __Pyx_GIVEREF(__pyx_3);
 
1947
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
 
1948
      __pyx_3 = 0;
 
1949
    } else {
 
1950
      __pyx_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1951
      __Pyx_GOTREF(__pyx_1);
 
1952
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
1953
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1954
      __Pyx_GOTREF(__pyx_2);
 
1955
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1956
      __Pyx_GOTREF(__pyx_3);
 
1957
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1958
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
1959
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1960
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
 
1961
      __Pyx_GIVEREF(__pyx_2);
 
1962
      __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = __pyx_2;
 
1963
      __pyx_2 = 0;
 
1964
      __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1965
      __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
 
1966
      __Pyx_GIVEREF(__pyx_3);
 
1967
      __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8 = __pyx_3;
 
1968
      __pyx_3 = 0;
1627
1969
    }
1628
1970
 
1629
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":94
 
1971
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":89
1630
1972
 *             cetree.getNsTag(attribute_tag)
1631
1973
 *         PYTYPE_NAMESPACE = python.PyUnicode_FromEncodedObject(
1632
1974
 *             PYTYPE_NAMESPACE_UTF8, 'UTF-8', NULL)             # <<<<<<<<<<<<<<
1633
1975
 *         PYTYPE_ATTRIBUTE_NAME = python.PyUnicode_FromEncodedObject(
1634
1976
 *             PYTYPE_ATTRIBUTE_NAME_UTF8, 'UTF-8', NULL)
1635
1977
 */
1636
 
    __pyx_2 = PyUnicode_FromEncodedObject(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8, __pyx_k_666, NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1637
 
    Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
1638
 
    __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_2;
1639
 
    __pyx_2 = 0;
 
1978
    __pyx_t_2 = PyUnicode_FromEncodedObject(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8, __pyx_k_733, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1979
    __Pyx_GOTREF(__pyx_t_2);
 
1980
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1981
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE);
 
1982
    __Pyx_GIVEREF(__pyx_t_2);
 
1983
    __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = __pyx_t_2;
 
1984
    __pyx_t_2 = 0;
1640
1985
 
1641
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":96
 
1986
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":91
1642
1987
 *             PYTYPE_NAMESPACE_UTF8, 'UTF-8', NULL)
1643
1988
 *         PYTYPE_ATTRIBUTE_NAME = python.PyUnicode_FromEncodedObject(
1644
1989
 *             PYTYPE_ATTRIBUTE_NAME_UTF8, 'UTF-8', NULL)             # <<<<<<<<<<<<<<
1645
1990
 * 
1646
1991
 *     _PYTYPE_NAMESPACE      = _cstr(PYTYPE_NAMESPACE_UTF8)
1647
1992
 */
1648
 
    __pyx_3 = PyUnicode_FromEncodedObject(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8, __pyx_k_667, NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1649
 
    Py_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
1650
 
    __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_3;
1651
 
    __pyx_3 = 0;
 
1993
    __pyx_t_2 = PyUnicode_FromEncodedObject(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8, __pyx_k_734, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
1994
    __Pyx_GOTREF(__pyx_t_2);
 
1995
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1996
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME);
 
1997
    __Pyx_GIVEREF(__pyx_t_2);
 
1998
    __pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME = __pyx_t_2;
 
1999
    __pyx_t_2 = 0;
1652
2000
  }
1653
2001
  __pyx_L6:;
1654
2002
 
1655
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":98
 
2003
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":93
1656
2004
 *             PYTYPE_ATTRIBUTE_NAME_UTF8, 'UTF-8', NULL)
1657
2005
 * 
1658
2006
 *     _PYTYPE_NAMESPACE      = _cstr(PYTYPE_NAMESPACE_UTF8)             # <<<<<<<<<<<<<<
1661
2009
 */
1662
2010
  __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE = PyString_AS_STRING(__pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8);
1663
2011
 
1664
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":99
 
2012
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":94
1665
2013
 * 
1666
2014
 *     _PYTYPE_NAMESPACE      = _cstr(PYTYPE_NAMESPACE_UTF8)
1667
2015
 *     _PYTYPE_ATTRIBUTE_NAME = _cstr(PYTYPE_ATTRIBUTE_NAME_UTF8)             # <<<<<<<<<<<<<<
1670
2018
 */
1671
2019
  __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME = PyString_AS_STRING(__pyx_v_4lxml_9objectify_PYTYPE_ATTRIBUTE_NAME_UTF8);
1672
2020
 
1673
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":101
 
2021
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":96
1674
2022
 *     _PYTYPE_ATTRIBUTE_NAME = _cstr(PYTYPE_ATTRIBUTE_NAME_UTF8)
1675
2023
 *     PYTYPE_ATTRIBUTE = cetree.namespacedNameFromNsName(
1676
2024
 *         _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
1677
2025
 * 
1678
2026
 * set_pytype_attribute_tag()
1679
2027
 */
1680
 
  __pyx_4 = namespacedNameFromNsName(__pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1681
 
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1682
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
 
2028
  __pyx_t_2 = namespacedNameFromNsName(__pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2029
  __Pyx_GOTREF(__pyx_t_2);
 
2030
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2031
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
1683
2032
 
1684
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2033
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1685
2034
  goto __pyx_L0;
1686
2035
  __pyx_L1_error:;
1687
 
  Py_XDECREF(__pyx_2);
1688
 
  Py_XDECREF(__pyx_3);
1689
 
  Py_XDECREF(__pyx_4);
 
2036
  __Pyx_XDECREF(__pyx_1);
 
2037
  __Pyx_XDECREF(__pyx_2);
 
2038
  __Pyx_XDECREF(__pyx_3);
 
2039
  __Pyx_XDECREF(__pyx_t_2);
1690
2040
  __Pyx_AddTraceback("lxml.objectify.set_pytype_attribute_tag");
1691
2041
  __pyx_r = NULL;
1692
2042
  __pyx_L0:;
 
2043
  __Pyx_XGIVEREF(__pyx_r);
 
2044
  __Pyx_FinishRefcountContext();
1693
2045
  return __pyx_r;
1694
2046
}
1695
2047
 
1696
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":143
 
2048
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":138
1697
2049
 *     subclasses.
1698
2050
 *     """
1699
2051
 *     def __iter__(self):             # <<<<<<<<<<<<<<
1705
2057
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement___iter__[] = "Iterate over self and all siblings with the same tag.\n        ";
1706
2058
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__(PyObject *__pyx_v_self) {
1707
2059
  PyObject *__pyx_v_parent;
1708
 
  PyObject *__pyx_r;
 
2060
  PyObject *__pyx_r = NULL;
1709
2061
  PyObject *__pyx_1 = 0;
1710
 
  PyObject *__pyx_2 = 0;
1711
 
  int __pyx_3;
1712
 
  PyObject *__pyx_4 = 0;
1713
 
  PyObject *__pyx_5 = 0;
1714
 
  __pyx_v_parent = Py_None; Py_INCREF(Py_None);
 
2062
  PyObject *__pyx_t_1 = NULL;
 
2063
  PyObject *__pyx_t_2 = NULL;
 
2064
  int __pyx_t_3;
 
2065
  PyObject *__pyx_t_4 = NULL;
 
2066
  __Pyx_SetupRefcountContext("__iter__");
 
2067
  __pyx_v_parent = Py_None; __Pyx_INCREF(Py_None);
1715
2068
 
1716
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":146
 
2069
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":141
1717
2070
 *         u"""Iterate over self and all siblings with the same tag.
1718
2071
 *         """
1719
2072
 *         parent = self.getparent()             # <<<<<<<<<<<<<<
1720
2073
 *         if parent is None:
1721
2074
 *             return iter([self])
1722
2075
 */
1723
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_getparent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1724
 
  __pyx_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1725
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1726
 
  Py_DECREF(__pyx_v_parent);
1727
 
  __pyx_v_parent = __pyx_2;
1728
 
  __pyx_2 = 0;
 
2076
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_getparent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2077
  __Pyx_GOTREF(__pyx_t_1);
 
2078
  __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2079
  __Pyx_GOTREF(__pyx_t_2);
 
2080
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2081
  __Pyx_DECREF(__pyx_v_parent);
 
2082
  __pyx_v_parent = __pyx_t_2;
 
2083
  __pyx_t_2 = 0;
1729
2084
 
1730
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":147
 
2085
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":142
1731
2086
 *         """
1732
2087
 *         parent = self.getparent()
1733
2088
 *         if parent is None:             # <<<<<<<<<<<<<<
1734
2089
 *             return iter([self])
1735
2090
 *         return etree.ElementChildIterator(parent, tag=self.tag)
1736
2091
 */
1737
 
  __pyx_3 = (__pyx_v_parent == Py_None);
1738
 
  if (__pyx_3) {
 
2092
  __pyx_t_3 = (__pyx_v_parent == Py_None);
 
2093
  if (__pyx_t_3) {
1739
2094
 
1740
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":148
 
2095
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":143
1741
2096
 *         parent = self.getparent()
1742
2097
 *         if parent is None:
1743
2098
 *             return iter([self])             # <<<<<<<<<<<<<<
1744
2099
 *         return etree.ElementChildIterator(parent, tag=self.tag)
1745
2100
 * 
1746
2101
 */
1747
 
    __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1748
 
    Py_INCREF(__pyx_v_self);
1749
 
    PyList_SET_ITEM(__pyx_1, 0, __pyx_v_self);
1750
 
    __pyx_2 = PyObject_GetIter(((PyObject *)__pyx_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1751
 
    Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
1752
 
    __pyx_r = __pyx_2;
1753
 
    __pyx_2 = 0;
 
2102
    __Pyx_XDECREF(__pyx_r);
 
2103
    __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2104
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
2105
    __Pyx_INCREF(__pyx_v_self);
 
2106
    PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
 
2107
    __Pyx_GIVEREF(__pyx_v_self);
 
2108
    __pyx_t_1 = PyObject_GetIter(((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2109
    __Pyx_GOTREF(__pyx_t_1);
 
2110
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
2111
    __pyx_r = __pyx_t_1;
 
2112
    __pyx_t_1 = 0;
1754
2113
    goto __pyx_L0;
1755
2114
    goto __pyx_L5;
1756
2115
  }
1757
2116
  __pyx_L5:;
1758
2117
 
1759
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":149
 
2118
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":144
1760
2119
 *         if parent is None:
1761
2120
 *             return iter([self])
1762
2121
 *         return etree.ElementChildIterator(parent, tag=self.tag)             # <<<<<<<<<<<<<<
1763
2122
 * 
1764
2123
 *     def __str__(self):
1765
2124
 */
1766
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_668); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1767
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1768
 
  Py_INCREF(__pyx_v_parent);
1769
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_parent);
1770
 
  __pyx_4 = PyDict_New(); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1771
 
  __pyx_5 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_tag); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1772
 
  if (PyDict_SetItem(__pyx_4, __pyx_kp_tag, __pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1773
 
  Py_DECREF(__pyx_5); __pyx_5 = 0;
1774
 
  __pyx_5 = PyEval_CallObjectWithKeywords(__pyx_1, ((PyObject *)__pyx_2), ((PyObject *)__pyx_4)); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1775
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1776
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
1777
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
1778
 
  __pyx_r = __pyx_5;
1779
 
  __pyx_5 = 0;
 
2125
  __Pyx_XDECREF(__pyx_r);
 
2126
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_735); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2127
  __Pyx_GOTREF(__pyx_t_1);
 
2128
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2129
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
2130
  __Pyx_INCREF(__pyx_v_parent);
 
2131
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_parent);
 
2132
  __Pyx_GIVEREF(__pyx_v_parent);
 
2133
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2134
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
2135
  __pyx_t_4 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_tag); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2136
  __Pyx_GOTREF(__pyx_t_4);
 
2137
  if (PyDict_SetItem(__pyx_1, __pyx_kp_tag, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2138
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
2139
  __pyx_t_4 = PyEval_CallObjectWithKeywords(__pyx_t_1, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2140
  __Pyx_GOTREF(__pyx_t_4);
 
2141
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2142
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
2143
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
2144
  __pyx_r = __pyx_t_4;
 
2145
  __pyx_t_4 = 0;
1780
2146
  goto __pyx_L0;
1781
2147
 
1782
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2148
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1783
2149
  goto __pyx_L0;
1784
2150
  __pyx_L1_error:;
1785
 
  Py_XDECREF(__pyx_1);
1786
 
  Py_XDECREF(__pyx_2);
1787
 
  Py_XDECREF(__pyx_4);
1788
 
  Py_XDECREF(__pyx_5);
 
2151
  __Pyx_XDECREF(__pyx_1);
 
2152
  __Pyx_XDECREF(__pyx_t_1);
 
2153
  __Pyx_XDECREF(__pyx_t_2);
 
2154
  __Pyx_XDECREF(__pyx_t_4);
1789
2155
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__iter__");
1790
2156
  __pyx_r = NULL;
1791
2157
  __pyx_L0:;
1792
 
  Py_DECREF(__pyx_v_parent);
 
2158
  __Pyx_DECREF(__pyx_v_parent);
 
2159
  __Pyx_XGIVEREF(__pyx_r);
 
2160
  __Pyx_FinishRefcountContext();
1793
2161
  return __pyx_r;
1794
2162
}
1795
2163
 
1796
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":151
 
2164
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":146
1797
2165
 *         return etree.ElementChildIterator(parent, tag=self.tag)
1798
2166
 * 
1799
2167
 *     def __str__(self):             # <<<<<<<<<<<<<<
1803
2171
 
1804
2172
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___str__(PyObject *__pyx_v_self); /*proto*/
1805
2173
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___str__(PyObject *__pyx_v_self) {
1806
 
  PyObject *__pyx_r;
1807
 
  int __pyx_1;
1808
 
  PyObject *__pyx_2 = 0;
 
2174
  PyObject *__pyx_r = NULL;
 
2175
  int __pyx_t_1;
 
2176
  PyObject *__pyx_t_2 = NULL;
 
2177
  PyObject *__pyx_t_3 = NULL;
 
2178
  __Pyx_SetupRefcountContext("__str__");
1809
2179
 
1810
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":152
 
2180
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":147
1811
2181
 * 
1812
2182
 *     def __str__(self):
1813
2183
 *         if __RECURSIVE_STR:             # <<<<<<<<<<<<<<
1814
2184
 *             return _dump(self, 0)
1815
2185
 *         else:
1816
2186
 */
1817
 
  __pyx_1 = __pyx_v_4lxml_9objectify___RECURSIVE_STR;
1818
 
  if (__pyx_1) {
 
2187
  __pyx_t_1 = __pyx_v_4lxml_9objectify___RECURSIVE_STR;
 
2188
  if (__pyx_t_1) {
1819
2189
 
1820
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":153
 
2190
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":148
1821
2191
 *     def __str__(self):
1822
2192
 *         if __RECURSIVE_STR:
1823
2193
 *             return _dump(self, 0)             # <<<<<<<<<<<<<<
1824
2194
 *         else:
1825
2195
 *             return textOf(self._c_node) or u''
1826
2196
 */
1827
 
    __pyx_2 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_self), 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1828
 
    __pyx_r = __pyx_2;
1829
 
    __pyx_2 = 0;
 
2197
    __Pyx_XDECREF(__pyx_r);
 
2198
    __pyx_t_2 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_self), 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2199
    __Pyx_GOTREF(__pyx_t_2);
 
2200
    __pyx_r = __pyx_t_2;
 
2201
    __pyx_t_2 = 0;
1830
2202
    goto __pyx_L0;
1831
2203
    goto __pyx_L5;
1832
2204
  }
1833
2205
  /*else*/ {
1834
2206
 
1835
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":155
 
2207
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":150
1836
2208
 *             return _dump(self, 0)
1837
2209
 *         else:
1838
2210
 *             return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
1839
2211
 * 
1840
2212
 *     property text:
1841
2213
 */
1842
 
    __pyx_2 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1843
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1844
 
    if (!__pyx_1) {
1845
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
1846
 
      __pyx_2 = ((PyObject *)__pyx_kp_669);
1847
 
      Py_INCREF(__pyx_2);
 
2214
    __Pyx_XDECREF(__pyx_r);
 
2215
    __pyx_t_2 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2216
    __Pyx_GOTREF(__pyx_t_2);
 
2217
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2218
    if (!__pyx_t_1) {
 
2219
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
2220
      __Pyx_INCREF(((PyObject *)__pyx_kp_736));
 
2221
      __pyx_t_3 = __pyx_kp_736;
 
2222
    } else {
 
2223
      __pyx_t_3 = __pyx_t_2;
 
2224
      __pyx_t_2 = 0;
1848
2225
    }
1849
 
    __pyx_r = __pyx_2;
1850
 
    __pyx_2 = 0;
 
2226
    __pyx_r = __pyx_t_3;
 
2227
    __pyx_t_3 = 0;
1851
2228
    goto __pyx_L0;
1852
2229
  }
1853
2230
  __pyx_L5:;
1854
2231
 
1855
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2232
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1856
2233
  goto __pyx_L0;
1857
2234
  __pyx_L1_error:;
1858
 
  Py_XDECREF(__pyx_2);
 
2235
  __Pyx_XDECREF(__pyx_t_2);
 
2236
  __Pyx_XDECREF(__pyx_t_3);
1859
2237
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__str__");
1860
2238
  __pyx_r = NULL;
1861
2239
  __pyx_L0:;
 
2240
  __Pyx_XGIVEREF(__pyx_r);
 
2241
  __Pyx_FinishRefcountContext();
1862
2242
  return __pyx_r;
1863
2243
}
1864
2244
 
1865
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":158
 
2245
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":153
1866
2246
 * 
1867
2247
 *     property text:
1868
2248
 *         def __get__(self):             # <<<<<<<<<<<<<<
1872
2252
 
1873
2253
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4text___get__(PyObject *__pyx_v_self); /*proto*/
1874
2254
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_4text___get__(PyObject *__pyx_v_self) {
1875
 
  PyObject *__pyx_r;
1876
 
  PyObject *__pyx_1 = 0;
 
2255
  PyObject *__pyx_r = NULL;
 
2256
  PyObject *__pyx_t_1 = NULL;
 
2257
  __Pyx_SetupRefcountContext("__get__");
1877
2258
 
1878
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":159
 
2259
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":154
1879
2260
 *     property text:
1880
2261
 *         def __get__(self):
1881
2262
 *             return textOf(self._c_node)             # <<<<<<<<<<<<<<
1882
2263
 * 
1883
2264
 *     property __dict__:
1884
2265
 */
1885
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1886
 
  __pyx_r = __pyx_1;
1887
 
  __pyx_1 = 0;
 
2266
  __Pyx_XDECREF(__pyx_r);
 
2267
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2268
  __Pyx_GOTREF(__pyx_t_1);
 
2269
  __pyx_r = __pyx_t_1;
 
2270
  __pyx_t_1 = 0;
1888
2271
  goto __pyx_L0;
1889
2272
 
1890
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2273
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
1891
2274
  goto __pyx_L0;
1892
2275
  __pyx_L1_error:;
1893
 
  Py_XDECREF(__pyx_1);
 
2276
  __Pyx_XDECREF(__pyx_t_1);
1894
2277
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.text.__get__");
1895
2278
  __pyx_r = NULL;
1896
2279
  __pyx_L0:;
 
2280
  __Pyx_XGIVEREF(__pyx_r);
 
2281
  __Pyx_FinishRefcountContext();
1897
2282
  return __pyx_r;
1898
2283
}
1899
2284
 
1900
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":166
 
2285
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":161
1901
2286
 *         Note that this only considers the first child with a given name.
1902
2287
 *         """
1903
2288
 *         def __get__(self):             # <<<<<<<<<<<<<<
1909
2294
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_8__dict_____get__(PyObject *__pyx_v_self) {
1910
2295
  char *__pyx_v_c_ns;
1911
2296
  struct LxmlElement *__pyx_v_child;
1912
 
  PyObject *__pyx_v_tag;
1913
2297
  PyObject *__pyx_v_children;
 
2298
  PyObject *__pyx_v_tag;
1914
2299
  PyObject *__pyx_v_name;
1915
 
  PyObject *__pyx_r;
1916
 
  int __pyx_1;
1917
 
  PyObject *__pyx_2 = 0;
1918
 
  Py_ssize_t __pyx_3 = 0;
1919
 
  PyObject *__pyx_4 = 0;
1920
 
  PyObject *__pyx_5 = 0;
1921
 
  PyObject *__pyx_6 = 0;
1922
 
  int __pyx_7;
1923
 
  PyObject *__pyx_t_1 = NULL;
1924
 
  __pyx_v_child = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
1925
 
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
1926
 
  __pyx_v_children = Py_None; Py_INCREF(Py_None);
1927
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
 
2300
  PyObject *__pyx_r = NULL;
 
2301
  PyObject *__pyx_1 = 0;
 
2302
  int __pyx_t_1;
 
2303
  PyObject *__pyx_t_2 = NULL;
 
2304
  PyObject *__pyx_t_3 = NULL;
 
2305
  Py_ssize_t __pyx_t_4;
 
2306
  PyObject *__pyx_t_5 = NULL;
 
2307
  __Pyx_SetupRefcountContext("__get__");
 
2308
  __pyx_v_child = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
2309
  __pyx_v_children = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
 
2310
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
 
2311
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
1928
2312
 
1929
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":170
1930
 
 *             cdef char* c_child_ns
 
2313
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":166
1931
2314
 *             cdef _Element child
 
2315
 *             cdef dict children
1932
2316
 *             c_ns = tree._getNs(self._c_node)             # <<<<<<<<<<<<<<
1933
2317
 *             if c_ns is NULL:
1934
2318
 *                 tag = None
1935
2319
 */
1936
2320
  __pyx_v_c_ns = _getNs(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node);
1937
2321
 
1938
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":171
1939
 
 *             cdef _Element child
 
2322
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":167
 
2323
 *             cdef dict children
1940
2324
 *             c_ns = tree._getNs(self._c_node)
1941
2325
 *             if c_ns is NULL:             # <<<<<<<<<<<<<<
1942
2326
 *                 tag = None
1943
2327
 *             else:
1944
2328
 */
1945
 
  __pyx_1 = (__pyx_v_c_ns == NULL);
1946
 
  if (__pyx_1) {
 
2329
  __pyx_t_1 = (__pyx_v_c_ns == NULL);
 
2330
  if (__pyx_t_1) {
1947
2331
 
1948
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":172
 
2332
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":168
1949
2333
 *             c_ns = tree._getNs(self._c_node)
1950
2334
 *             if c_ns is NULL:
1951
2335
 *                 tag = None             # <<<<<<<<<<<<<<
1952
2336
 *             else:
1953
2337
 *                 tag = u"{%s}*" % pyunicode(c_ns)
1954
2338
 */
1955
 
    Py_INCREF(Py_None);
1956
 
    Py_DECREF(__pyx_v_tag);
 
2339
    __Pyx_INCREF(Py_None);
 
2340
    __Pyx_DECREF(__pyx_v_tag);
1957
2341
    __pyx_v_tag = Py_None;
1958
2342
    goto __pyx_L5;
1959
2343
  }
1960
2344
  /*else*/ {
1961
2345
 
1962
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":174
 
2346
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":170
1963
2347
 *                 tag = None
1964
2348
 *             else:
1965
2349
 *                 tag = u"{%s}*" % pyunicode(c_ns)             # <<<<<<<<<<<<<<
1966
2350
 *             children = {}
1967
2351
 *             for child in etree.ElementChildIterator(self, tag=tag):
1968
2352
 */
1969
 
    __pyx_2 = pyunicode(__pyx_v_c_ns); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1970
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_670), __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1971
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
1972
 
    Py_DECREF(__pyx_v_tag);
1973
 
    __pyx_v_tag = __pyx_t_1;
1974
 
    __pyx_t_1 = 0;
 
2353
    __pyx_t_2 = pyunicode(__pyx_v_c_ns); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2354
    __Pyx_GOTREF(__pyx_t_2);
 
2355
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_737), __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2356
    __Pyx_GOTREF(__pyx_t_3);
 
2357
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
2358
    __Pyx_DECREF(__pyx_v_tag);
 
2359
    __pyx_v_tag = __pyx_t_3;
 
2360
    __pyx_t_3 = 0;
1975
2361
  }
1976
2362
  __pyx_L5:;
1977
2363
 
1978
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":175
 
2364
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":171
1979
2365
 *             else:
1980
2366
 *                 tag = u"{%s}*" % pyunicode(c_ns)
1981
2367
 *             children = {}             # <<<<<<<<<<<<<<
1982
2368
 *             for child in etree.ElementChildIterator(self, tag=tag):
1983
2369
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
1984
2370
 */
1985
 
  __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1986
 
  Py_DECREF(__pyx_v_children);
1987
 
  __pyx_v_children = ((PyObject *)__pyx_2);
1988
 
  __pyx_2 = 0;
 
2371
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2372
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
2373
  __Pyx_DECREF(((PyObject *)__pyx_v_children));
 
2374
  __pyx_v_children = __pyx_1;
 
2375
  __pyx_1 = 0;
1989
2376
 
1990
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":176
 
2377
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":172
1991
2378
 *                 tag = u"{%s}*" % pyunicode(c_ns)
1992
2379
 *             children = {}
1993
2380
 *             for child in etree.ElementChildIterator(self, tag=tag):             # <<<<<<<<<<<<<<
1994
2381
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
1995
2382
 *                     continue
1996
2383
 */
1997
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_668); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1998
 
  __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
1999
 
  Py_INCREF(__pyx_v_self);
2000
 
  PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self);
2001
 
  __pyx_5 = PyDict_New(); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2002
 
  if (PyDict_SetItem(__pyx_5, __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2003
 
  __pyx_6 = PyEval_CallObjectWithKeywords(__pyx_2, ((PyObject *)__pyx_4), ((PyObject *)__pyx_5)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2004
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2005
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
2006
 
  Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
2007
 
  if (PyList_CheckExact(__pyx_6) || PyTuple_CheckExact(__pyx_6)) {
2008
 
    __pyx_3 = 0; __pyx_2 = __pyx_6; Py_INCREF(__pyx_2);
 
2384
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_735); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2385
  __Pyx_GOTREF(__pyx_t_3);
 
2386
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2387
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
2388
  __Pyx_INCREF(__pyx_v_self);
 
2389
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
 
2390
  __Pyx_GIVEREF(__pyx_v_self);
 
2391
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2392
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
2393
  if (PyDict_SetItem(__pyx_1, __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2394
  __pyx_t_5 = PyEval_CallObjectWithKeywords(__pyx_t_3, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2395
  __Pyx_GOTREF(__pyx_t_5);
 
2396
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
2397
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
2398
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
2399
  if (PyList_CheckExact(__pyx_t_5) || PyTuple_CheckExact(__pyx_t_5)) {
 
2400
    __pyx_t_4 = 0; __pyx_t_2 = __pyx_t_5; __Pyx_INCREF(__pyx_t_2);
2009
2401
  } else {
2010
 
    __pyx_3 = -1; __pyx_2 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2402
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2403
    __Pyx_GOTREF(__pyx_t_2);
2011
2404
  }
2012
 
  Py_DECREF(__pyx_6); __pyx_6 = 0;
 
2405
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2013
2406
  for (;;) {
2014
 
    if (likely(PyList_CheckExact(__pyx_2))) {
2015
 
      if (__pyx_3 >= PyList_GET_SIZE(__pyx_2)) break;
2016
 
      __pyx_4 = PyList_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
2017
 
    } else if (likely(PyTuple_CheckExact(__pyx_2))) {
2018
 
      if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_2)) break;
2019
 
      __pyx_4 = PyTuple_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
 
2407
    if (likely(PyList_CheckExact(__pyx_t_2))) {
 
2408
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
 
2409
      __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
 
2410
    } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
 
2411
      if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
 
2412
      __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
2020
2413
    } else {
2021
 
      __pyx_4 = PyIter_Next(__pyx_2);
2022
 
      if (!__pyx_4) {
2023
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2414
      __pyx_t_5 = PyIter_Next(__pyx_t_2);
 
2415
      if (!__pyx_t_5) {
 
2416
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2024
2417
        break;
2025
2418
      }
 
2419
      __Pyx_GOTREF(__pyx_t_5);
2026
2420
    }
2027
 
    if (!(__Pyx_TypeTest(__pyx_4, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2028
 
    Py_DECREF(((PyObject *)__pyx_v_child));
2029
 
    __pyx_v_child = ((struct LxmlElement *)__pyx_4);
2030
 
    __pyx_4 = 0;
 
2421
    if (!(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2422
    __Pyx_DECREF(((PyObject *)__pyx_v_child));
 
2423
    __pyx_v_child = ((struct LxmlElement *)__pyx_t_5);
 
2424
    __pyx_t_5 = 0;
2031
2425
 
2032
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":177
 
2426
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":173
2033
2427
 *             children = {}
2034
2428
 *             for child in etree.ElementChildIterator(self, tag=tag):
2035
2429
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:             # <<<<<<<<<<<<<<
2036
2430
 *                     continue
2037
2431
 *                 name = pyunicode(child._c_node.name)
2038
2432
 */
2039
 
    __pyx_1 = (__pyx_v_c_ns == NULL);
2040
 
    if (__pyx_1) {
2041
 
      __pyx_1 = (_getNs(__pyx_v_child->_c_node) != NULL);
 
2433
    if ((__pyx_v_c_ns == NULL)) {
 
2434
      __pyx_t_1 = (_getNs(__pyx_v_child->_c_node) != NULL);
 
2435
    } else {
 
2436
      __pyx_t_1 = (__pyx_v_c_ns == NULL);
2042
2437
    }
2043
 
    if (__pyx_1) {
 
2438
    if (__pyx_t_1) {
2044
2439
 
2045
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":178
 
2440
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":174
2046
2441
 *             for child in etree.ElementChildIterator(self, tag=tag):
2047
2442
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
2048
2443
 *                     continue             # <<<<<<<<<<<<<<
2049
2444
 *                 name = pyunicode(child._c_node.name)
2050
2445
 *                 if python.PyDict_GetItem(children, name) is NULL:
2051
2446
 */
2052
 
      goto __pyx_L6;
 
2447
      goto __pyx_L6_continue;
2053
2448
      goto __pyx_L8;
2054
2449
    }
2055
2450
    __pyx_L8:;
2056
2451
 
2057
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":179
 
2452
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":175
2058
2453
 *                 if c_ns is NULL and tree._getNs(child._c_node) is not NULL:
2059
2454
 *                     continue
2060
2455
 *                 name = pyunicode(child._c_node.name)             # <<<<<<<<<<<<<<
2061
2456
 *                 if python.PyDict_GetItem(children, name) is NULL:
2062
 
 *                     python.PyDict_SetItem(children, name, child)
 
2457
 *                     children[name] = child
2063
2458
 */
2064
 
    __pyx_5 = pyunicode(__pyx_v_child->_c_node->name); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2065
 
    Py_DECREF(__pyx_v_name);
2066
 
    __pyx_v_name = __pyx_5;
2067
 
    __pyx_5 = 0;
 
2459
    __pyx_t_5 = pyunicode(__pyx_v_child->_c_node->name); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2460
    __Pyx_GOTREF(__pyx_t_5);
 
2461
    __Pyx_DECREF(__pyx_v_name);
 
2462
    __pyx_v_name = __pyx_t_5;
 
2463
    __pyx_t_5 = 0;
2068
2464
 
2069
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":180
 
2465
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":176
2070
2466
 *                     continue
2071
2467
 *                 name = pyunicode(child._c_node.name)
2072
2468
 *                 if python.PyDict_GetItem(children, name) is NULL:             # <<<<<<<<<<<<<<
2073
 
 *                     python.PyDict_SetItem(children, name, child)
 
2469
 *                     children[name] = child
2074
2470
 *             return children
2075
2471
 */
2076
 
    __pyx_1 = (PyDict_GetItem(__pyx_v_children, __pyx_v_name) == NULL);
2077
 
    if (__pyx_1) {
 
2472
    __pyx_t_1 = (PyDict_GetItem(((PyObject *)__pyx_v_children), __pyx_v_name) == NULL);
 
2473
    if (__pyx_t_1) {
2078
2474
 
2079
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":181
 
2475
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":177
2080
2476
 *                 name = pyunicode(child._c_node.name)
2081
2477
 *                 if python.PyDict_GetItem(children, name) is NULL:
2082
 
 *                     python.PyDict_SetItem(children, name, child)             # <<<<<<<<<<<<<<
 
2478
 *                     children[name] = child             # <<<<<<<<<<<<<<
2083
2479
 *             return children
2084
2480
 * 
2085
2481
 */
2086
 
      __pyx_7 = PyDict_SetItem(__pyx_v_children, __pyx_v_name, ((PyObject *)__pyx_v_child)); if (unlikely(__pyx_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2482
      if (PyDict_SetItem(((PyObject *)__pyx_v_children), __pyx_v_name, ((PyObject *)__pyx_v_child)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2087
2483
      goto __pyx_L9;
2088
2484
    }
2089
2485
    __pyx_L9:;
2090
 
    __pyx_L6:;
 
2486
    __pyx_L6_continue:;
2091
2487
  }
2092
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
2488
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2093
2489
 
2094
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":182
 
2490
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":178
2095
2491
 *                 if python.PyDict_GetItem(children, name) is NULL:
2096
 
 *                     python.PyDict_SetItem(children, name, child)
 
2492
 *                     children[name] = child
2097
2493
 *             return children             # <<<<<<<<<<<<<<
2098
2494
 * 
2099
2495
 *     def __len__(self):
2100
2496
 */
2101
 
  Py_INCREF(__pyx_v_children);
2102
 
  __pyx_r = __pyx_v_children;
 
2497
  __Pyx_XDECREF(__pyx_r);
 
2498
  __Pyx_INCREF(((PyObject *)__pyx_v_children));
 
2499
  __pyx_r = ((PyObject *)__pyx_v_children);
2103
2500
  goto __pyx_L0;
2104
2501
 
2105
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2502
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2106
2503
  goto __pyx_L0;
2107
2504
  __pyx_L1_error:;
2108
 
  Py_XDECREF(__pyx_2);
2109
 
  Py_XDECREF(__pyx_4);
2110
 
  Py_XDECREF(__pyx_5);
2111
 
  Py_XDECREF(__pyx_6);
 
2505
  __Pyx_XDECREF(__pyx_1);
 
2506
  __Pyx_XDECREF(__pyx_t_2);
 
2507
  __Pyx_XDECREF(__pyx_t_3);
 
2508
  __Pyx_XDECREF(__pyx_t_5);
2112
2509
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__dict__.__get__");
2113
2510
  __pyx_r = NULL;
2114
2511
  __pyx_L0:;
2115
 
  Py_DECREF(__pyx_v_child);
2116
 
  Py_DECREF(__pyx_v_tag);
2117
 
  Py_DECREF(__pyx_v_children);
2118
 
  Py_DECREF(__pyx_v_name);
 
2512
  __Pyx_DECREF((PyObject *)__pyx_v_child);
 
2513
  __Pyx_DECREF(__pyx_v_children);
 
2514
  __Pyx_DECREF(__pyx_v_tag);
 
2515
  __Pyx_DECREF(__pyx_v_name);
 
2516
  __Pyx_XGIVEREF(__pyx_r);
 
2517
  __Pyx_FinishRefcountContext();
2119
2518
  return __pyx_r;
2120
2519
}
2121
2520
 
2122
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":184
 
2521
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":180
2123
2522
 *             return children
2124
2523
 * 
2125
2524
 *     def __len__(self):             # <<<<<<<<<<<<<<
2131
2530
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement___len__[] = "Count self and siblings with the same tag.\n        ";
2132
2531
static Py_ssize_t __pyx_pf_4lxml_9objectify_18ObjectifiedElement___len__(PyObject *__pyx_v_self) {
2133
2532
  Py_ssize_t __pyx_r;
 
2533
  __Pyx_SetupRefcountContext("__len__");
2134
2534
 
2135
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":187
 
2535
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":183
2136
2536
 *         u"""Count self and siblings with the same tag.
2137
2537
 *         """
2138
2538
 *         return _countSiblings(self._c_node)             # <<<<<<<<<<<<<<
2144
2544
 
2145
2545
  __pyx_r = 0;
2146
2546
  __pyx_L0:;
 
2547
  __Pyx_FinishRefcountContext();
2147
2548
  return __pyx_r;
2148
2549
}
2149
2550
 
2150
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":189
 
2551
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":185
2151
2552
 *         return _countSiblings(self._c_node)
2152
2553
 * 
2153
2554
 *     def countchildren(self):             # <<<<<<<<<<<<<<
2160
2561
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_countchildren(PyObject *__pyx_v_self, PyObject *unused) {
2161
2562
  Py_ssize_t __pyx_v_c;
2162
2563
  xmlNode *__pyx_v_c_node;
2163
 
  PyObject *__pyx_r;
2164
 
  int __pyx_1;
2165
 
  PyObject *__pyx_2 = 0;
 
2564
  PyObject *__pyx_r = NULL;
 
2565
  int __pyx_t_1;
 
2566
  PyObject *__pyx_t_2 = NULL;
 
2567
  __Pyx_SetupRefcountContext("countchildren");
2166
2568
 
2167
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":198
 
2569
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":194
2168
2570
 *         cdef Py_ssize_t c
2169
2571
 *         cdef tree.xmlNode* c_node
2170
2572
 *         c = 0             # <<<<<<<<<<<<<<
2173
2575
 */
2174
2576
  __pyx_v_c = 0;
2175
2577
 
2176
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":199
 
2578
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":195
2177
2579
 *         cdef tree.xmlNode* c_node
2178
2580
 *         c = 0
2179
2581
 *         c_node = self._c_node.children             # <<<<<<<<<<<<<<
2182
2584
 */
2183
2585
  __pyx_v_c_node = ((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->children;
2184
2586
 
2185
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":200
 
2587
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":196
2186
2588
 *         c = 0
2187
2589
 *         c_node = self._c_node.children
2188
2590
 *         while c_node is not NULL:             # <<<<<<<<<<<<<<
2190
2592
 *                 c = c + 1
2191
2593
 */
2192
2594
  while (1) {
2193
 
    __pyx_1 = (__pyx_v_c_node != NULL);
2194
 
    if (!__pyx_1) break;
 
2595
    __pyx_t_1 = (__pyx_v_c_node != NULL);
 
2596
    if (!__pyx_t_1) break;
2195
2597
 
2196
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":201
 
2598
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":197
2197
2599
 *         c_node = self._c_node.children
2198
2600
 *         while c_node is not NULL:
2199
2601
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
2200
2602
 *                 c = c + 1
2201
2603
 *             c_node = c_node.next
2202
2604
 */
2203
 
    __pyx_1 = _isElement(__pyx_v_c_node);
2204
 
    if (__pyx_1) {
 
2605
    __pyx_t_1 = _isElement(__pyx_v_c_node);
 
2606
    if (__pyx_t_1) {
2205
2607
 
2206
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":202
 
2608
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":198
2207
2609
 *         while c_node is not NULL:
2208
2610
 *             if tree._isElement(c_node):
2209
2611
 *                 c = c + 1             # <<<<<<<<<<<<<<
2215
2617
    }
2216
2618
    __pyx_L7:;
2217
2619
 
2218
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":203
 
2620
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":199
2219
2621
 *             if tree._isElement(c_node):
2220
2622
 *                 c = c + 1
2221
2623
 *             c_node = c_node.next             # <<<<<<<<<<<<<<
2225
2627
    __pyx_v_c_node = __pyx_v_c_node->next;
2226
2628
  }
2227
2629
 
2228
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":204
 
2630
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":200
2229
2631
 *                 c = c + 1
2230
2632
 *             c_node = c_node.next
2231
2633
 *         return c             # <<<<<<<<<<<<<<
2232
2634
 * 
2233
2635
 *     def getchildren(self):
2234
2636
 */
2235
 
  __pyx_2 = PyInt_FromSsize_t(__pyx_v_c); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2236
 
  __pyx_r = __pyx_2;
2237
 
  __pyx_2 = 0;
 
2637
  __Pyx_XDECREF(__pyx_r);
 
2638
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_c); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2639
  __Pyx_GOTREF(__pyx_t_2);
 
2640
  __pyx_r = __pyx_t_2;
 
2641
  __pyx_t_2 = 0;
2238
2642
  goto __pyx_L0;
2239
2643
 
2240
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2644
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2241
2645
  goto __pyx_L0;
2242
2646
  __pyx_L1_error:;
2243
 
  Py_XDECREF(__pyx_2);
 
2647
  __Pyx_XDECREF(__pyx_t_2);
2244
2648
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.countchildren");
2245
2649
  __pyx_r = NULL;
2246
2650
  __pyx_L0:;
 
2651
  __Pyx_XGIVEREF(__pyx_r);
 
2652
  __Pyx_FinishRefcountContext();
2247
2653
  return __pyx_r;
2248
2654
}
2249
2655
 
2250
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":206
 
2656
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":202
2251
2657
 *         return c
2252
2658
 * 
2253
2659
 *     def getchildren(self):             # <<<<<<<<<<<<<<
2259
2665
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_getchildren[] = "getchildren(self)\n\n        Returns a sequence of all direct children.  The elements are\n        returned in document order.\n        ";
2260
2666
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_getchildren(PyObject *__pyx_v_self, PyObject *unused) {
2261
2667
  xmlNode *__pyx_v_c_node;
2262
 
  PyObject *__pyx_v_result;
2263
 
  PyObject *__pyx_r;
2264
 
  PyObject *__pyx_1 = 0;
2265
 
  int __pyx_2;
2266
 
  int __pyx_3;
2267
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
 
2668
  PyObject *__pyx_v_result = 0;
 
2669
  PyObject *__pyx_r = NULL;
 
2670
  PyObject *__pyx_t_1 = NULL;
 
2671
  int __pyx_t_2;
 
2672
  int __pyx_t_3;
 
2673
  __Pyx_SetupRefcountContext("getchildren");
2268
2674
 
2269
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":213
 
2675
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":209
2270
2676
 *         """
2271
2677
 *         cdef tree.xmlNode* c_node
2272
 
 *         result = []             # <<<<<<<<<<<<<<
 
2678
 *         cdef list result = []             # <<<<<<<<<<<<<<
2273
2679
 *         c_node = self._c_node.children
2274
2680
 *         while c_node is not NULL:
2275
2681
 */
2276
 
  __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2277
 
  Py_DECREF(__pyx_v_result);
2278
 
  __pyx_v_result = ((PyObject *)__pyx_1);
2279
 
  __pyx_1 = 0;
 
2682
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2683
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
2684
  __pyx_v_result = __pyx_t_1;
 
2685
  __pyx_t_1 = 0;
2280
2686
 
2281
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":214
 
2687
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":210
2282
2688
 *         cdef tree.xmlNode* c_node
2283
 
 *         result = []
 
2689
 *         cdef list result = []
2284
2690
 *         c_node = self._c_node.children             # <<<<<<<<<<<<<<
2285
2691
 *         while c_node is not NULL:
2286
2692
 *             if tree._isElement(c_node):
2287
2693
 */
2288
2694
  __pyx_v_c_node = ((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->children;
2289
2695
 
2290
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":215
2291
 
 *         result = []
 
2696
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":211
 
2697
 *         cdef list result = []
2292
2698
 *         c_node = self._c_node.children
2293
2699
 *         while c_node is not NULL:             # <<<<<<<<<<<<<<
2294
2700
 *             if tree._isElement(c_node):
2295
 
 *                 python.PyList_Append(
 
2701
 *                 result.append(cetree.elementFactory(self._doc, c_node))
2296
2702
 */
2297
2703
  while (1) {
2298
 
    __pyx_2 = (__pyx_v_c_node != NULL);
2299
 
    if (!__pyx_2) break;
 
2704
    __pyx_t_2 = (__pyx_v_c_node != NULL);
 
2705
    if (!__pyx_t_2) break;
2300
2706
 
2301
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":216
 
2707
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":212
2302
2708
 *         c_node = self._c_node.children
2303
2709
 *         while c_node is not NULL:
2304
2710
 *             if tree._isElement(c_node):             # <<<<<<<<<<<<<<
2305
 
 *                 python.PyList_Append(
2306
 
 *                     result, cetree.elementFactory(self._doc, c_node))
 
2711
 *                 result.append(cetree.elementFactory(self._doc, c_node))
 
2712
 *             c_node = c_node.next
2307
2713
 */
2308
 
    __pyx_2 = _isElement(__pyx_v_c_node);
2309
 
    if (__pyx_2) {
 
2714
    __pyx_t_2 = _isElement(__pyx_v_c_node);
 
2715
    if (__pyx_t_2) {
2310
2716
 
2311
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":218
 
2717
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":213
 
2718
 *         while c_node is not NULL:
2312
2719
 *             if tree._isElement(c_node):
2313
 
 *                 python.PyList_Append(
2314
 
 *                     result, cetree.elementFactory(self._doc, c_node))             # <<<<<<<<<<<<<<
 
2720
 *                 result.append(cetree.elementFactory(self._doc, c_node))             # <<<<<<<<<<<<<<
2315
2721
 *             c_node = c_node.next
2316
2722
 *         return result
2317
2723
 */
2318
 
      __pyx_1 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2319
 
      __pyx_3 = PyList_Append(__pyx_v_result, __pyx_1); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2320
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
2724
      __pyx_t_1 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2725
      __Pyx_GOTREF(__pyx_t_1);
 
2726
      __pyx_t_3 = PyList_Append(((PyObject *)__pyx_v_result), __pyx_t_1); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2727
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2321
2728
      goto __pyx_L7;
2322
2729
    }
2323
2730
    __pyx_L7:;
2324
2731
 
2325
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":219
2326
 
 *                 python.PyList_Append(
2327
 
 *                     result, cetree.elementFactory(self._doc, c_node))
 
2732
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":214
 
2733
 *             if tree._isElement(c_node):
 
2734
 *                 result.append(cetree.elementFactory(self._doc, c_node))
2328
2735
 *             c_node = c_node.next             # <<<<<<<<<<<<<<
2329
2736
 *         return result
2330
2737
 * 
2332
2739
    __pyx_v_c_node = __pyx_v_c_node->next;
2333
2740
  }
2334
2741
 
2335
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":220
2336
 
 *                     result, cetree.elementFactory(self._doc, c_node))
 
2742
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":215
 
2743
 *                 result.append(cetree.elementFactory(self._doc, c_node))
2337
2744
 *             c_node = c_node.next
2338
2745
 *         return result             # <<<<<<<<<<<<<<
2339
2746
 * 
2340
2747
 *     def __getattr__(self, tag):
2341
2748
 */
2342
 
  Py_INCREF(__pyx_v_result);
2343
 
  __pyx_r = __pyx_v_result;
 
2749
  __Pyx_XDECREF(__pyx_r);
 
2750
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
 
2751
  __pyx_r = ((PyObject *)__pyx_v_result);
2344
2752
  goto __pyx_L0;
2345
2753
 
2346
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2754
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2347
2755
  goto __pyx_L0;
2348
2756
  __pyx_L1_error:;
2349
 
  Py_XDECREF(__pyx_1);
 
2757
  __Pyx_XDECREF(__pyx_t_1);
2350
2758
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.getchildren");
2351
2759
  __pyx_r = NULL;
2352
2760
  __pyx_L0:;
2353
 
  Py_DECREF(__pyx_v_result);
 
2761
  __Pyx_XDECREF(__pyx_v_result);
 
2762
  __Pyx_XGIVEREF(__pyx_r);
 
2763
  __Pyx_FinishRefcountContext();
2354
2764
  return __pyx_r;
2355
2765
}
2356
2766
 
2357
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":222
 
2767
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":217
2358
2768
 *         return result
2359
2769
 * 
2360
2770
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
2365
2775
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/
2366
2776
static char __pyx_doc_4lxml_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        ";
2367
2777
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
2368
 
  PyObject *__pyx_r;
2369
 
  PyObject *__pyx_1 = 0;
 
2778
  PyObject *__pyx_r = NULL;
 
2779
  PyObject *__pyx_t_1 = NULL;
 
2780
  __Pyx_SetupRefcountContext("__getattr__");
2370
2781
 
2371
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":226
 
2782
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":221
2372
2783
 *         is provided, the child will be looked up in the same one as self.
2373
2784
 *         """
2374
2785
 *         return _lookupChildOrRaise(self, tag)             # <<<<<<<<<<<<<<
2375
2786
 * 
2376
2787
 *     def __setattr__(self, tag, value):
2377
2788
 */
2378
 
  __pyx_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2379
 
  __pyx_r = __pyx_1;
2380
 
  __pyx_1 = 0;
 
2789
  __Pyx_XDECREF(__pyx_r);
 
2790
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2791
  __Pyx_GOTREF(__pyx_t_1);
 
2792
  __pyx_r = __pyx_t_1;
 
2793
  __pyx_t_1 = 0;
2381
2794
  goto __pyx_L0;
2382
2795
 
2383
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
2796
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2384
2797
  goto __pyx_L0;
2385
2798
  __pyx_L1_error:;
2386
 
  Py_XDECREF(__pyx_1);
 
2799
  __Pyx_XDECREF(__pyx_t_1);
2387
2800
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__getattr__");
2388
2801
  __pyx_r = NULL;
2389
2802
  __pyx_L0:;
 
2803
  __Pyx_XGIVEREF(__pyx_r);
 
2804
  __Pyx_FinishRefcountContext();
2390
2805
  return __pyx_r;
2391
2806
}
2392
2807
 
2393
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":228
 
2808
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":223
2394
2809
 *         return _lookupChildOrRaise(self, tag)
2395
2810
 * 
2396
2811
 *     def __setattr__(self, tag, value):             # <<<<<<<<<<<<<<
2402
2817
static char __pyx_doc_4lxml_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        ";
2403
2818
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement___setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
2404
2819
  struct LxmlElement *__pyx_v_element;
2405
 
  PyObject *__pyx_v_c_base;
2406
2820
  int __pyx_r;
2407
 
  int __pyx_1;
2408
 
  PyObject *__pyx_2 = 0;
2409
 
  int __pyx_3;
2410
 
  PyObject *__pyx_4 = 0;
2411
 
  int __pyx_5;
2412
 
  PyObject *__pyx_6 = 0;
2413
 
  char *__pyx_7;
2414
2821
  PyObject *__pyx_t_1 = NULL;
2415
 
  Py_INCREF(__pyx_v_tag);
2416
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
2417
 
  __pyx_v_c_base = Py_None; Py_INCREF(Py_None);
 
2822
  int __pyx_t_2;
 
2823
  int __pyx_t_3;
 
2824
  int __pyx_t_4;
 
2825
  PyObject *__pyx_t_5 = NULL;
 
2826
  int __pyx_t_6;
 
2827
  PyObject *__pyx_t_7 = NULL;
 
2828
  __Pyx_SetupRefcountContext("__setattr__");
 
2829
  __Pyx_INCREF(__pyx_v_tag);
 
2830
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
2418
2831
 
2419
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":235
 
2832
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":230
2420
2833
 *         cdef _Element element
2421
2834
 *         # properties are looked up /after/ __setattr__, so we must emulate them
2422
2835
 *         if tag == u'text' or tag == u'pyval':             # <<<<<<<<<<<<<<
2423
2836
 *             # read-only !
2424
2837
 *             raise TypeError, u"attribute '%s' of '%s' objects is not writable" % \
2425
2838
 */
2426
 
  __pyx_2 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_671), Py_EQ); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2427
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2428
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2429
 
  if (!__pyx_1) {
2430
 
    __pyx_2 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_672), Py_EQ); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2431
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2432
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
2839
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_738), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2840
  __Pyx_GOTREF(__pyx_t_1);
 
2841
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2842
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2843
  if (!__pyx_t_2) {
 
2844
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_739), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2845
    __Pyx_GOTREF(__pyx_t_1);
 
2846
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2847
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2848
    __pyx_t_4 = __pyx_t_3;
 
2849
  } else {
 
2850
    __pyx_t_4 = __pyx_t_2;
2433
2851
  }
2434
 
  if (__pyx_1) {
 
2852
  if (__pyx_t_4) {
2435
2853
 
2436
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":238
 
2854
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":233
2437
2855
 *             # read-only !
2438
2856
 *             raise TypeError, u"attribute '%s' of '%s' objects is not writable" % \
2439
2857
 *                             (tag, _typename(self))             # <<<<<<<<<<<<<<
2440
2858
 *         elif tag == u'tail':
2441
2859
 *             cetree.setTailText(self._c_node, value)
2442
2860
 */
2443
 
    __pyx_2 = __pyx_f_4lxml_9objectify__typename(__pyx_v_self); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2444
 
    __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2445
 
    Py_INCREF(__pyx_v_tag);
2446
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_tag);
2447
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2);
2448
 
    __pyx_2 = 0;
2449
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_673), ((PyObject *)__pyx_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2450
 
    Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
 
2861
    __pyx_t_1 = __pyx_f_4lxml_9objectify__typename(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2862
    __Pyx_GOTREF(__pyx_t_1);
 
2863
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2864
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
2865
    __Pyx_INCREF(__pyx_v_tag);
 
2866
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_tag);
 
2867
    __Pyx_GIVEREF(__pyx_v_tag);
 
2868
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
 
2869
    __Pyx_GIVEREF(__pyx_t_1);
 
2870
    __pyx_t_1 = 0;
 
2871
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_740), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2872
    __Pyx_GOTREF(__pyx_t_1);
 
2873
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
2451
2874
    __Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_1, 0);
2452
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2453
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2875
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2876
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2454
2877
    goto __pyx_L5;
2455
2878
  }
2456
2879
 
2457
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":239
 
2880
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":234
2458
2881
 *             raise TypeError, u"attribute '%s' of '%s' objects is not writable" % \
2459
2882
 *                             (tag, _typename(self))
2460
2883
 *         elif tag == u'tail':             # <<<<<<<<<<<<<<
2461
2884
 *             cetree.setTailText(self._c_node, value)
2462
2885
 *             return
2463
2886
 */
2464
 
  __pyx_2 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_674), Py_EQ); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2465
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2466
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2467
 
  if (__pyx_3) {
 
2887
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_741), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2888
  __Pyx_GOTREF(__pyx_t_1);
 
2889
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2890
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2891
  if (__pyx_t_4) {
2468
2892
 
2469
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":240
 
2893
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":235
2470
2894
 *                             (tag, _typename(self))
2471
2895
 *         elif tag == u'tail':
2472
2896
 *             cetree.setTailText(self._c_node, value)             # <<<<<<<<<<<<<<
2473
2897
 *             return
2474
2898
 *         elif tag == u'tag':
2475
2899
 */
2476
 
    __pyx_5 = setTailText(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node, __pyx_v_value); if (unlikely(__pyx_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2900
    __pyx_t_6 = setTailText(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node, __pyx_v_value); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2477
2901
 
2478
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":241
 
2902
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":236
2479
2903
 *         elif tag == u'tail':
2480
2904
 *             cetree.setTailText(self._c_node, value)
2481
2905
 *             return             # <<<<<<<<<<<<<<
2487
2911
    goto __pyx_L5;
2488
2912
  }
2489
2913
 
2490
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":242
 
2914
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":237
2491
2915
 *             cetree.setTailText(self._c_node, value)
2492
2916
 *             return
2493
2917
 *         elif tag == u'tag':             # <<<<<<<<<<<<<<
2494
2918
 *             ElementBase.tag.__set__(self, value)
2495
2919
 *             return
2496
2920
 */
2497
 
  __pyx_4 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_675), Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2498
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2499
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2500
 
  if (__pyx_1) {
 
2921
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_742), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2922
  __Pyx_GOTREF(__pyx_t_1);
 
2923
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2924
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2925
  if (__pyx_t_4) {
2501
2926
 
2502
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":243
 
2927
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":238
2503
2928
 *             return
2504
2929
 *         elif tag == u'tag':
2505
2930
 *             ElementBase.tag.__set__(self, value)             # <<<<<<<<<<<<<<
2506
2931
 *             return
2507
2932
 *         elif tag == u'base':
2508
2933
 */
2509
 
    __pyx_2 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic_ElementBase)), __pyx_kp_tag); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2510
 
    __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_kp___set__); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2511
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
2512
 
    __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2513
 
    Py_INCREF(__pyx_v_self);
2514
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self);
2515
 
    Py_INCREF(__pyx_v_value);
2516
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_value);
2517
 
    __pyx_6 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2518
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
2519
 
    Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
2520
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
 
2934
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic_ElementBase)), __pyx_kp_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2935
    __Pyx_GOTREF(__pyx_t_1);
 
2936
    __pyx_t_5 = PyObject_GetAttr(__pyx_t_1, __pyx_kp___set__); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2937
    __Pyx_GOTREF(__pyx_t_5);
 
2938
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
2939
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2940
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
2941
    __Pyx_INCREF(__pyx_v_self);
 
2942
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self);
 
2943
    __Pyx_GIVEREF(__pyx_v_self);
 
2944
    __Pyx_INCREF(__pyx_v_value);
 
2945
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_value);
 
2946
    __Pyx_GIVEREF(__pyx_v_value);
 
2947
    __pyx_t_7 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2948
    __Pyx_GOTREF(__pyx_t_7);
 
2949
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
2950
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
2951
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
2521
2952
 
2522
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":244
 
2953
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":239
2523
2954
 *         elif tag == u'tag':
2524
2955
 *             ElementBase.tag.__set__(self, value)
2525
2956
 *             return             # <<<<<<<<<<<<<<
2526
2957
 *         elif tag == u'base':
2527
 
 *             c_base = _cstr(value)
 
2958
 *             ElementBase.base.__set__(self, value)
2528
2959
 */
2529
2960
    __pyx_r = 0;
2530
2961
    goto __pyx_L0;
2531
2962
    goto __pyx_L5;
2532
2963
  }
2533
2964
 
2534
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":245
 
2965
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":240
2535
2966
 *             ElementBase.tag.__set__(self, value)
2536
2967
 *             return
2537
2968
 *         elif tag == u'base':             # <<<<<<<<<<<<<<
2538
 
 *             c_base = _cstr(value)
2539
 
 *             tree.xmlNodeSetBase(self._c_node, c_base)
2540
 
 */
2541
 
  __pyx_4 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_676), Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2542
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2543
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
2544
 
  if (__pyx_3) {
2545
 
 
2546
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":246
2547
 
 *             return
2548
 
 *         elif tag == u'base':
2549
 
 *             c_base = _cstr(value)             # <<<<<<<<<<<<<<
2550
 
 *             tree.xmlNodeSetBase(self._c_node, c_base)
2551
 
 *             return
2552
 
 */
2553
 
    __pyx_2 = __Pyx_PyBytes_FromString(PyString_AS_STRING(__pyx_v_value)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2554
 
    Py_DECREF(__pyx_v_c_base);
2555
 
    __pyx_v_c_base = __pyx_2;
2556
 
    __pyx_2 = 0;
2557
 
 
2558
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":247
2559
 
 *         elif tag == u'base':
2560
 
 *             c_base = _cstr(value)
2561
 
 *             tree.xmlNodeSetBase(self._c_node, c_base)             # <<<<<<<<<<<<<<
 
2969
 *             ElementBase.base.__set__(self, value)
 
2970
 *             return
 
2971
 */
 
2972
  __pyx_t_7 = PyObject_RichCompare(__pyx_v_tag, ((PyObject *)__pyx_kp_743), Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2973
  __Pyx_GOTREF(__pyx_t_7);
 
2974
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2975
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
2976
  if (__pyx_t_4) {
 
2977
 
 
2978
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":241
 
2979
 *             return
 
2980
 *         elif tag == u'base':
 
2981
 *             ElementBase.base.__set__(self, value)             # <<<<<<<<<<<<<<
2562
2982
 *             return
2563
2983
 *         tag = _buildChildTag(self, tag)
2564
2984
 */
2565
 
    __pyx_7 = __Pyx_PyBytes_AsString(__pyx_v_c_base); if (unlikely((!__pyx_7) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2566
 
    xmlNodeSetBase(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node, __pyx_7);
 
2985
    __pyx_t_7 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic_ElementBase)), __pyx_kp_base); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2986
    __Pyx_GOTREF(__pyx_t_7);
 
2987
    __pyx_t_1 = PyObject_GetAttr(__pyx_t_7, __pyx_kp___set__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2988
    __Pyx_GOTREF(__pyx_t_1);
 
2989
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
2990
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2991
    __Pyx_GOTREF(((PyObject *)__pyx_t_7));
 
2992
    __Pyx_INCREF(__pyx_v_self);
 
2993
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_self);
 
2994
    __Pyx_GIVEREF(__pyx_v_self);
 
2995
    __Pyx_INCREF(__pyx_v_value);
 
2996
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_value);
 
2997
    __Pyx_GIVEREF(__pyx_v_value);
 
2998
    __pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
2999
    __Pyx_GOTREF(__pyx_t_5);
 
3000
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3001
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
 
3002
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2567
3003
 
2568
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":248
2569
 
 *             c_base = _cstr(value)
2570
 
 *             tree.xmlNodeSetBase(self._c_node, c_base)
 
3004
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":242
 
3005
 *         elif tag == u'base':
 
3006
 *             ElementBase.base.__set__(self, value)
2571
3007
 *             return             # <<<<<<<<<<<<<<
2572
3008
 *         tag = _buildChildTag(self, tag)
2573
3009
 *         element = _lookupChild(self, tag)
2578
3014
  }
2579
3015
  __pyx_L5:;
2580
3016
 
2581
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":249
2582
 
 *             tree.xmlNodeSetBase(self._c_node, c_base)
 
3017
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":243
 
3018
 *             ElementBase.base.__set__(self, value)
2583
3019
 *             return
2584
3020
 *         tag = _buildChildTag(self, tag)             # <<<<<<<<<<<<<<
2585
3021
 *         element = _lookupChild(self, tag)
2586
3022
 *         if element is None:
2587
3023
 */
2588
 
  __pyx_6 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2589
 
  Py_DECREF(__pyx_v_tag);
2590
 
  __pyx_v_tag = __pyx_6;
2591
 
  __pyx_6 = 0;
 
3024
  __pyx_t_5 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3025
  __Pyx_GOTREF(__pyx_t_5);
 
3026
  __Pyx_DECREF(__pyx_v_tag);
 
3027
  __pyx_v_tag = __pyx_t_5;
 
3028
  __pyx_t_5 = 0;
2592
3029
 
2593
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":250
 
3030
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":244
2594
3031
 *             return
2595
3032
 *         tag = _buildChildTag(self, tag)
2596
3033
 *         element = _lookupChild(self, tag)             # <<<<<<<<<<<<<<
2597
3034
 *         if element is None:
2598
3035
 *             _appendValue(self, tag, value)
2599
3036
 */
2600
 
  __pyx_4 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2601
 
  if (!(__Pyx_TypeTest(__pyx_4, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2602
 
  Py_DECREF(((PyObject *)__pyx_v_element));
2603
 
  __pyx_v_element = ((struct LxmlElement *)__pyx_4);
2604
 
  __pyx_4 = 0;
 
3037
  __pyx_t_5 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3038
  __Pyx_GOTREF(__pyx_t_5);
 
3039
  if (!(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3040
  __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
3041
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_5);
 
3042
  __pyx_t_5 = 0;
2605
3043
 
2606
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":251
 
3044
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":245
2607
3045
 *         tag = _buildChildTag(self, tag)
2608
3046
 *         element = _lookupChild(self, tag)
2609
3047
 *         if element is None:             # <<<<<<<<<<<<<<
2610
3048
 *             _appendValue(self, tag, value)
2611
3049
 *         else:
2612
3050
 */
2613
 
  __pyx_1 = (((PyObject *)__pyx_v_element) == Py_None);
2614
 
  if (__pyx_1) {
 
3051
  __pyx_t_4 = (((PyObject *)__pyx_v_element) == Py_None);
 
3052
  if (__pyx_t_4) {
2615
3053
 
2616
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":252
 
3054
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":246
2617
3055
 *         element = _lookupChild(self, tag)
2618
3056
 *         if element is None:
2619
3057
 *             _appendValue(self, tag, value)             # <<<<<<<<<<<<<<
2620
3058
 *         else:
2621
3059
 *             _replaceElement(element, value)
2622
3060
 */
2623
 
    __pyx_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2624
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
3061
    __pyx_t_5 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag, __pyx_v_value); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3062
    __Pyx_GOTREF(__pyx_t_5);
 
3063
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2625
3064
    goto __pyx_L6;
2626
3065
  }
2627
3066
  /*else*/ {
2628
3067
 
2629
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":254
 
3068
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":248
2630
3069
 *             _appendValue(self, tag, value)
2631
3070
 *         else:
2632
3071
 *             _replaceElement(element, value)             # <<<<<<<<<<<<<<
2633
3072
 * 
2634
3073
 *     def __delattr__(self, tag):
2635
3074
 */
2636
 
    __pyx_6 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2637
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
 
3075
    __pyx_t_5 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3076
    __Pyx_GOTREF(__pyx_t_5);
 
3077
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
2638
3078
  }
2639
3079
  __pyx_L6:;
2640
3080
 
2641
3081
  __pyx_r = 0;
2642
3082
  goto __pyx_L0;
2643
3083
  __pyx_L1_error:;
2644
 
  Py_XDECREF(__pyx_2);
2645
 
  Py_XDECREF(__pyx_4);
2646
 
  Py_XDECREF(__pyx_6);
 
3084
  __Pyx_XDECREF(__pyx_t_1);
 
3085
  __Pyx_XDECREF(__pyx_t_5);
 
3086
  __Pyx_XDECREF(__pyx_t_7);
2647
3087
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__setattr__");
2648
3088
  __pyx_r = -1;
2649
3089
  __pyx_L0:;
2650
 
  Py_DECREF(__pyx_v_element);
2651
 
  Py_DECREF(__pyx_v_c_base);
2652
 
  Py_DECREF(__pyx_v_tag);
 
3090
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
3091
  __Pyx_DECREF(__pyx_v_tag);
 
3092
  __Pyx_FinishRefcountContext();
2653
3093
  return __pyx_r;
2654
3094
}
2655
3095
 
2656
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":256
 
3096
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":250
2657
3097
 *             _replaceElement(element, value)
2658
3098
 * 
2659
3099
 *     def __delattr__(self, tag):             # <<<<<<<<<<<<<<
2665
3105
static int __pyx_pf_4lxml_9objectify_18ObjectifiedElement___delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
2666
3106
  PyObject *__pyx_v_child;
2667
3107
  int __pyx_r;
2668
 
  PyObject *__pyx_1 = 0;
2669
 
  PyObject *__pyx_2 = 0;
2670
 
  PyObject *__pyx_3 = 0;
2671
 
  __pyx_v_child = Py_None; Py_INCREF(Py_None);
 
3108
  PyObject *__pyx_t_1 = NULL;
 
3109
  PyObject *__pyx_t_2 = NULL;
 
3110
  PyObject *__pyx_t_3 = NULL;
 
3111
  __Pyx_SetupRefcountContext("__delattr__");
 
3112
  __pyx_v_child = Py_None; __Pyx_INCREF(Py_None);
2672
3113
 
2673
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":257
 
3114
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":251
2674
3115
 * 
2675
3116
 *     def __delattr__(self, tag):
2676
3117
 *         child = _lookupChildOrRaise(self, tag)             # <<<<<<<<<<<<<<
2677
3118
 *         self.remove(child)
2678
3119
 * 
2679
3120
 */
2680
 
  __pyx_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2681
 
  Py_DECREF(__pyx_v_child);
2682
 
  __pyx_v_child = __pyx_1;
2683
 
  __pyx_1 = 0;
 
3121
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3122
  __Pyx_GOTREF(__pyx_t_1);
 
3123
  __Pyx_DECREF(__pyx_v_child);
 
3124
  __pyx_v_child = __pyx_t_1;
 
3125
  __pyx_t_1 = 0;
2684
3126
 
2685
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":258
 
3127
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":252
2686
3128
 *     def __delattr__(self, tag):
2687
3129
 *         child = _lookupChildOrRaise(self, tag)
2688
3130
 *         self.remove(child)             # <<<<<<<<<<<<<<
2689
3131
 * 
2690
3132
 *     def addattr(self, tag, value):
2691
3133
 */
2692
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_remove); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2693
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2694
 
  Py_INCREF(__pyx_v_child);
2695
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_child);
2696
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2697
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2698
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
2699
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
3134
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_remove); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3135
  __Pyx_GOTREF(__pyx_t_1);
 
3136
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3137
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3138
  __Pyx_INCREF(__pyx_v_child);
 
3139
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_child);
 
3140
  __Pyx_GIVEREF(__pyx_v_child);
 
3141
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3142
  __Pyx_GOTREF(__pyx_t_3);
 
3143
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3144
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3145
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
2700
3146
 
2701
3147
  __pyx_r = 0;
2702
3148
  goto __pyx_L0;
2703
3149
  __pyx_L1_error:;
2704
 
  Py_XDECREF(__pyx_1);
2705
 
  Py_XDECREF(__pyx_2);
2706
 
  Py_XDECREF(__pyx_3);
 
3150
  __Pyx_XDECREF(__pyx_t_1);
 
3151
  __Pyx_XDECREF(__pyx_t_2);
 
3152
  __Pyx_XDECREF(__pyx_t_3);
2707
3153
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__delattr__");
2708
3154
  __pyx_r = -1;
2709
3155
  __pyx_L0:;
2710
 
  Py_DECREF(__pyx_v_child);
 
3156
  __Pyx_DECREF(__pyx_v_child);
 
3157
  __Pyx_FinishRefcountContext();
2711
3158
  return __pyx_r;
2712
3159
}
2713
3160
 
2714
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":260
 
3161
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":254
2715
3162
 *         self.remove(child)
2716
3163
 * 
2717
3164
 *     def addattr(self, tag, value):             # <<<<<<<<<<<<<<
2724
3171
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
2725
3172
  PyObject *__pyx_v_tag = 0;
2726
3173
  PyObject *__pyx_v_value = 0;
2727
 
  PyObject *__pyx_r;
2728
 
  PyObject *__pyx_1 = 0;
2729
 
  PyObject *__pyx_2 = 0;
 
3174
  PyObject *__pyx_r = NULL;
 
3175
  PyObject *__pyx_t_1 = NULL;
 
3176
  PyObject *__pyx_t_2 = NULL;
2730
3177
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_tag,&__pyx_kp_value,0};
 
3178
  __Pyx_SetupRefcountContext("addattr");
2731
3179
  if (unlikely(__pyx_kwds)) {
 
3180
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
2732
3181
    PyObject* values[2] = {0,0};
2733
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
2734
3182
    switch (PyTuple_GET_SIZE(__pyx_args)) {
2735
3183
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
2736
3184
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
2746
3194
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_kp_value);
2747
3195
      if (likely(values[1])) kw_args--;
2748
3196
      else {
2749
 
        __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3197
        __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2750
3198
      }
2751
3199
    }
2752
3200
    if (unlikely(kw_args > 0)) {
2753
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "addattr") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3201
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "addattr") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2754
3202
    }
2755
3203
    __pyx_v_tag = values[0];
2756
3204
    __pyx_v_value = values[1];
2762
3210
  }
2763
3211
  goto __pyx_L4_argument_unpacking_done;
2764
3212
  __pyx_L5_argtuple_error:;
2765
 
  __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
3213
  __Pyx_RaiseArgtupleInvalid("addattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
2766
3214
  __pyx_L3_error:;
2767
3215
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.addattr");
2768
3216
  return NULL;
2769
3217
  __pyx_L4_argument_unpacking_done:;
2770
3218
 
2771
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":267
 
3219
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":261
2772
3220
 *         As opposed to append(), it sets a data value, not an element.
2773
3221
 *         """
2774
3222
 *         _appendValue(self, _buildChildTag(self, tag), value)             # <<<<<<<<<<<<<<
2775
3223
 * 
2776
3224
 *     def __getitem__(self, key):
2777
3225
 */
2778
 
  __pyx_1 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2779
 
  __pyx_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_1, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2780
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
2781
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
3226
  __pyx_t_1 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3227
  __Pyx_GOTREF(__pyx_t_1);
 
3228
  __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_t_1, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3229
  __Pyx_GOTREF(__pyx_t_2);
 
3230
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3231
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
2782
3232
 
2783
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
3233
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
2784
3234
  goto __pyx_L0;
2785
3235
  __pyx_L1_error:;
2786
 
  Py_XDECREF(__pyx_1);
2787
 
  Py_XDECREF(__pyx_2);
 
3236
  __Pyx_XDECREF(__pyx_t_1);
 
3237
  __Pyx_XDECREF(__pyx_t_2);
2788
3238
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.addattr");
2789
3239
  __pyx_r = NULL;
2790
3240
  __pyx_L0:;
 
3241
  __Pyx_XGIVEREF(__pyx_r);
 
3242
  __Pyx_FinishRefcountContext();
2791
3243
  return __pyx_r;
2792
3244
}
2793
3245
 
2794
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":269
 
3246
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":263
2795
3247
 *         _appendValue(self, _buildChildTag(self, tag), value)
2796
3248
 * 
2797
3249
 *     def __getitem__(self, key):             # <<<<<<<<<<<<<<
2805
3257
  xmlNode *__pyx_v_c_self_node;
2806
3258
  xmlNode *__pyx_v_c_parent;
2807
3259
  xmlNode *__pyx_v_c_node;
2808
 
  PyObject *__pyx_r;
2809
 
  int __pyx_1;
2810
 
  PyObject *__pyx_2 = 0;
2811
 
  PyObject *__pyx_3 = 0;
2812
 
  Py_ssize_t __pyx_4 = 0;
 
3260
  PyObject *__pyx_r = NULL;
 
3261
  PyObject *__pyx_1 = 0;
 
3262
  int __pyx_t_1;
 
3263
  PyObject *__pyx_t_2 = NULL;
 
3264
  PyObject *__pyx_t_3 = NULL;
 
3265
  Py_ssize_t __pyx_t_4;
 
3266
  __Pyx_SetupRefcountContext("__getitem__");
2813
3267
 
2814
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":285
 
3268
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":279
2815
3269
 *         cdef tree.xmlNode* c_node
2816
3270
 *         cdef Py_ssize_t start, stop, step, slicelength
2817
3271
 *         if python._isString(key):             # <<<<<<<<<<<<<<
2818
3272
 *             return _lookupChildOrRaise(self, key)
2819
3273
 *         elif python.PySlice_Check(key):
2820
3274
 */
2821
 
  __pyx_1 = _isString(__pyx_v_key);
2822
 
  if (__pyx_1) {
 
3275
  __pyx_t_1 = _isString(__pyx_v_key);
 
3276
  if (__pyx_t_1) {
2823
3277
 
2824
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":286
 
3278
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":280
2825
3279
 *         cdef Py_ssize_t start, stop, step, slicelength
2826
3280
 *         if python._isString(key):
2827
3281
 *             return _lookupChildOrRaise(self, key)             # <<<<<<<<<<<<<<
2828
3282
 *         elif python.PySlice_Check(key):
2829
3283
 *             return list(self)[key]
2830
3284
 */
2831
 
    __pyx_2 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2832
 
    __pyx_r = __pyx_2;
2833
 
    __pyx_2 = 0;
 
3285
    __Pyx_XDECREF(__pyx_r);
 
3286
    __pyx_t_2 = __pyx_f_4lxml_9objectify__lookupChildOrRaise(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3287
    __Pyx_GOTREF(__pyx_t_2);
 
3288
    __pyx_r = __pyx_t_2;
 
3289
    __pyx_t_2 = 0;
2834
3290
    goto __pyx_L0;
2835
3291
    goto __pyx_L5;
2836
3292
  }
2837
3293
 
2838
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":287
 
3294
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":281
2839
3295
 *         if python._isString(key):
2840
3296
 *             return _lookupChildOrRaise(self, key)
2841
3297
 *         elif python.PySlice_Check(key):             # <<<<<<<<<<<<<<
2842
3298
 *             return list(self)[key]
2843
3299
 *         # normal item access
2844
3300
 */
2845
 
  __pyx_1 = PySlice_Check(__pyx_v_key);
2846
 
  if (__pyx_1) {
 
3301
  __pyx_t_1 = PySlice_Check(__pyx_v_key);
 
3302
  if (__pyx_t_1) {
2847
3303
 
2848
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":288
 
3304
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":282
2849
3305
 *             return _lookupChildOrRaise(self, key)
2850
3306
 *         elif python.PySlice_Check(key):
2851
3307
 *             return list(self)[key]             # <<<<<<<<<<<<<<
2852
3308
 *         # normal item access
2853
3309
 *         c_self_node = self._c_node
2854
3310
 */
2855
 
    __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2856
 
    Py_INCREF(__pyx_v_self);
2857
 
    PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_self);
2858
 
    __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2859
 
    Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
2860
 
    __pyx_2 = PyObject_GetItem(__pyx_3, __pyx_v_key); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2861
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
2862
 
    __pyx_r = __pyx_2;
2863
 
    __pyx_2 = 0;
 
3311
    __Pyx_XDECREF(__pyx_r);
 
3312
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3313
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3314
    __Pyx_INCREF(__pyx_v_self);
 
3315
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
 
3316
    __Pyx_GIVEREF(__pyx_v_self);
 
3317
    __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3318
    __Pyx_GOTREF(__pyx_t_3);
 
3319
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3320
    __pyx_1 = PyObject_GetItem(__pyx_t_3, __pyx_v_key); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3321
    __Pyx_GOTREF(__pyx_1);
 
3322
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
3323
    __pyx_r = __pyx_1;
 
3324
    __pyx_1 = 0;
2864
3325
    goto __pyx_L0;
2865
3326
    goto __pyx_L5;
2866
3327
  }
2867
3328
  __pyx_L5:;
2868
3329
 
2869
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":290
 
3330
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":284
2870
3331
 *             return list(self)[key]
2871
3332
 *         # normal item access
2872
3333
 *         c_self_node = self._c_node             # <<<<<<<<<<<<<<
2875
3336
 */
2876
3337
  __pyx_v_c_self_node = ((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node;
2877
3338
 
2878
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":291
 
3339
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":285
2879
3340
 *         # normal item access
2880
3341
 *         c_self_node = self._c_node
2881
3342
 *         c_parent = c_self_node.parent             # <<<<<<<<<<<<<<
2884
3345
 */
2885
3346
  __pyx_v_c_parent = __pyx_v_c_self_node->parent;
2886
3347
 
2887
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":292
 
3348
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":286
2888
3349
 *         c_self_node = self._c_node
2889
3350
 *         c_parent = c_self_node.parent
2890
3351
 *         if c_parent is NULL:             # <<<<<<<<<<<<<<
2891
3352
 *             if key == 0:
2892
3353
 *                 return self
2893
3354
 */
2894
 
  __pyx_1 = (__pyx_v_c_parent == NULL);
2895
 
  if (__pyx_1) {
 
3355
  __pyx_t_1 = (__pyx_v_c_parent == NULL);
 
3356
  if (__pyx_t_1) {
2896
3357
 
2897
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":293
 
3358
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":287
2898
3359
 *         c_parent = c_self_node.parent
2899
3360
 *         if c_parent is NULL:
2900
3361
 *             if key == 0:             # <<<<<<<<<<<<<<
2901
3362
 *                 return self
2902
3363
 *             else:
2903
3364
 */
2904
 
    __pyx_3 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2905
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2906
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
2907
 
    if (__pyx_1) {
 
3365
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3366
    __Pyx_GOTREF(__pyx_t_3);
 
3367
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3368
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
3369
    if (__pyx_t_1) {
2908
3370
 
2909
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":294
 
3371
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":288
2910
3372
 *         if c_parent is NULL:
2911
3373
 *             if key == 0:
2912
3374
 *                 return self             # <<<<<<<<<<<<<<
2913
3375
 *             else:
2914
3376
 *                 raise IndexError, unicode(key)
2915
3377
 */
2916
 
      Py_INCREF(__pyx_v_self);
 
3378
      __Pyx_XDECREF(__pyx_r);
 
3379
      __Pyx_INCREF(__pyx_v_self);
2917
3380
      __pyx_r = __pyx_v_self;
2918
3381
      goto __pyx_L0;
2919
3382
      goto __pyx_L7;
2920
3383
    }
2921
3384
    /*else*/ {
2922
3385
 
2923
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":296
 
3386
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":290
2924
3387
 *                 return self
2925
3388
 *             else:
2926
3389
 *                 raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
2927
3390
 *         if key < 0:
2928
3391
 *             c_node = c_parent.last
2929
3392
 */
2930
 
      __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2931
 
      Py_INCREF(__pyx_v_key);
2932
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_key);
2933
 
      __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2934
 
      Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
2935
 
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_3, 0);
2936
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
2937
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3393
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3394
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
3395
      __Pyx_INCREF(__pyx_v_key);
 
3396
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_key);
 
3397
      __Pyx_GIVEREF(__pyx_v_key);
 
3398
      __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3399
      __Pyx_GOTREF(__pyx_t_2);
 
3400
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
3401
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_2, 0);
 
3402
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
3403
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2938
3404
    }
2939
3405
    __pyx_L7:;
2940
3406
    goto __pyx_L6;
2941
3407
  }
2942
3408
  __pyx_L6:;
2943
3409
 
2944
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":297
 
3410
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":291
2945
3411
 *             else:
2946
3412
 *                 raise IndexError, unicode(key)
2947
3413
 *         if key < 0:             # <<<<<<<<<<<<<<
2948
3414
 *             c_node = c_parent.last
2949
3415
 *         else:
2950
3416
 */
2951
 
  __pyx_2 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_LT); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2952
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2953
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
2954
 
  if (__pyx_1) {
 
3417
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_LT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3418
  __Pyx_GOTREF(__pyx_t_2);
 
3419
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3420
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
3421
  if (__pyx_t_1) {
2955
3422
 
2956
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":298
 
3423
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":292
2957
3424
 *                 raise IndexError, unicode(key)
2958
3425
 *         if key < 0:
2959
3426
 *             c_node = c_parent.last             # <<<<<<<<<<<<<<
2965
3432
  }
2966
3433
  /*else*/ {
2967
3434
 
2968
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":300
 
3435
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":294
2969
3436
 *             c_node = c_parent.last
2970
3437
 *         else:
2971
3438
 *             c_node = c_parent.children             # <<<<<<<<<<<<<<
2976
3443
  }
2977
3444
  __pyx_L8:;
2978
3445
 
2979
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":302
 
3446
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":296
2980
3447
 *             c_node = c_parent.children
2981
3448
 *         c_node = _findFollowingSibling(
2982
3449
 *             c_node, tree._getNs(c_self_node), c_self_node.name, key)             # <<<<<<<<<<<<<<
2983
3450
 *         if c_node is NULL:
2984
3451
 *             raise IndexError, unicode(key)
2985
3452
 */
2986
 
  __pyx_4 = __pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_4 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
2987
 
  __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_c_self_node), __pyx_v_c_self_node->name, __pyx_4);
 
3453
  __pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3454
  __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_c_self_node), __pyx_v_c_self_node->name, __pyx_t_4);
2988
3455
 
2989
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":303
 
3456
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":297
2990
3457
 *         c_node = _findFollowingSibling(
2991
3458
 *             c_node, tree._getNs(c_self_node), c_self_node.name, key)
2992
3459
 *         if c_node is NULL:             # <<<<<<<<<<<<<<
2993
3460
 *             raise IndexError, unicode(key)
2994
3461
 *         return elementFactory(self._doc, c_node)
2995
3462
 */
2996
 
  __pyx_1 = (__pyx_v_c_node == NULL);
2997
 
  if (__pyx_1) {
 
3463
  __pyx_t_1 = (__pyx_v_c_node == NULL);
 
3464
  if (__pyx_t_1) {
2998
3465
 
2999
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":304
 
3466
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":298
3000
3467
 *             c_node, tree._getNs(c_self_node), c_self_node.name, key)
3001
3468
 *         if c_node is NULL:
3002
3469
 *             raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
3003
3470
 *         return elementFactory(self._doc, c_node)
3004
3471
 * 
3005
3472
 */
3006
 
    __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3007
 
    Py_INCREF(__pyx_v_key);
3008
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_key);
3009
 
    __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3010
 
    Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
3011
 
    __Pyx_Raise(__pyx_builtin_IndexError, __pyx_2, 0);
3012
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3013
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3473
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3474
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3475
    __Pyx_INCREF(__pyx_v_key);
 
3476
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_key);
 
3477
    __Pyx_GIVEREF(__pyx_v_key);
 
3478
    __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3479
    __Pyx_GOTREF(__pyx_t_3);
 
3480
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3481
    __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_3, 0);
 
3482
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
3483
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3014
3484
    goto __pyx_L9;
3015
3485
  }
3016
3486
  __pyx_L9:;
3017
3487
 
3018
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":305
 
3488
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":299
3019
3489
 *         if c_node is NULL:
3020
3490
 *             raise IndexError, unicode(key)
3021
3491
 *         return elementFactory(self._doc, c_node)             # <<<<<<<<<<<<<<
3022
3492
 * 
3023
3493
 *     def __setitem__(self, key, value):
3024
3494
 */
3025
 
  __pyx_3 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3026
 
  __pyx_r = __pyx_3;
3027
 
  __pyx_3 = 0;
 
3495
  __Pyx_XDECREF(__pyx_r);
 
3496
  __pyx_t_3 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3497
  __Pyx_GOTREF(__pyx_t_3);
 
3498
  __pyx_r = __pyx_t_3;
 
3499
  __pyx_t_3 = 0;
3028
3500
  goto __pyx_L0;
3029
3501
 
3030
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
3502
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3031
3503
  goto __pyx_L0;
3032
3504
  __pyx_L1_error:;
3033
 
  Py_XDECREF(__pyx_2);
3034
 
  Py_XDECREF(__pyx_3);
 
3505
  __Pyx_XDECREF(__pyx_1);
 
3506
  __Pyx_XDECREF(__pyx_t_2);
 
3507
  __Pyx_XDECREF(__pyx_t_3);
3035
3508
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__getitem__");
3036
3509
  __pyx_r = NULL;
3037
3510
  __pyx_L0:;
 
3511
  __Pyx_XGIVEREF(__pyx_r);
 
3512
  __Pyx_FinishRefcountContext();
3038
3513
  return __pyx_r;
3039
3514
}
3040
3515
 
3041
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":307
 
3516
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":301
3042
3517
 *         return elementFactory(self._doc, c_node)
3043
3518
 * 
3044
3519
 *     def __setitem__(self, key, value):             # <<<<<<<<<<<<<<
3052
3527
  struct LxmlElement *__pyx_v_element;
3053
3528
  xmlNode *__pyx_v_c_node;
3054
3529
  int __pyx_r;
3055
 
  int __pyx_1;
3056
 
  PyObject *__pyx_2 = 0;
3057
 
  Py_ssize_t __pyx_3 = 0;
3058
 
  PyObject *__pyx_4 = 0;
3059
 
  Py_INCREF(__pyx_v_key);
3060
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
3530
  int __pyx_t_1;
 
3531
  PyObject *__pyx_t_2 = NULL;
 
3532
  Py_ssize_t __pyx_t_3;
 
3533
  PyObject *__pyx_t_4 = NULL;
 
3534
  __Pyx_SetupRefcountContext("__setitem__");
 
3535
  __Pyx_INCREF(__pyx_v_key);
 
3536
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
3061
3537
 
3062
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":322
 
3538
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":316
3063
3539
 *         cdef _Element element
3064
3540
 *         cdef tree.xmlNode* c_node
3065
3541
 *         if python._isString(key):             # <<<<<<<<<<<<<<
3066
3542
 *             key = _buildChildTag(self, key)
3067
3543
 *             element = _lookupChild(self, key)
3068
3544
 */
3069
 
  __pyx_1 = _isString(__pyx_v_key);
3070
 
  if (__pyx_1) {
 
3545
  __pyx_t_1 = _isString(__pyx_v_key);
 
3546
  if (__pyx_t_1) {
3071
3547
 
3072
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":323
 
3548
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":317
3073
3549
 *         cdef tree.xmlNode* c_node
3074
3550
 *         if python._isString(key):
3075
3551
 *             key = _buildChildTag(self, key)             # <<<<<<<<<<<<<<
3076
3552
 *             element = _lookupChild(self, key)
3077
3553
 *             if element is None:
3078
3554
 */
3079
 
    __pyx_2 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3080
 
    Py_DECREF(__pyx_v_key);
3081
 
    __pyx_v_key = __pyx_2;
3082
 
    __pyx_2 = 0;
 
3555
    __pyx_t_2 = __pyx_f_4lxml_9objectify__buildChildTag(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3556
    __Pyx_GOTREF(__pyx_t_2);
 
3557
    __Pyx_DECREF(__pyx_v_key);
 
3558
    __pyx_v_key = __pyx_t_2;
 
3559
    __pyx_t_2 = 0;
3083
3560
 
3084
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":324
 
3561
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":318
3085
3562
 *         if python._isString(key):
3086
3563
 *             key = _buildChildTag(self, key)
3087
3564
 *             element = _lookupChild(self, key)             # <<<<<<<<<<<<<<
3088
3565
 *             if element is None:
3089
3566
 *                 _appendValue(self, key, value)
3090
3567
 */
3091
 
    __pyx_2 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3092
 
    if (!(__Pyx_TypeTest(__pyx_2, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3093
 
    Py_DECREF(((PyObject *)__pyx_v_element));
3094
 
    __pyx_v_element = ((struct LxmlElement *)__pyx_2);
3095
 
    __pyx_2 = 0;
 
3568
    __pyx_t_2 = __pyx_f_4lxml_9objectify__lookupChild(((struct LxmlElement *)__pyx_v_self), __pyx_v_key); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3569
    __Pyx_GOTREF(__pyx_t_2);
 
3570
    if (!(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3571
    __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
3572
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_2);
 
3573
    __pyx_t_2 = 0;
3096
3574
 
3097
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":325
 
3575
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":319
3098
3576
 *             key = _buildChildTag(self, key)
3099
3577
 *             element = _lookupChild(self, key)
3100
3578
 *             if element is None:             # <<<<<<<<<<<<<<
3101
3579
 *                 _appendValue(self, key, value)
3102
3580
 *             else:
3103
3581
 */
3104
 
    __pyx_1 = (((PyObject *)__pyx_v_element) == Py_None);
3105
 
    if (__pyx_1) {
 
3582
    __pyx_t_1 = (((PyObject *)__pyx_v_element) == Py_None);
 
3583
    if (__pyx_t_1) {
3106
3584
 
3107
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":326
 
3585
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":320
3108
3586
 *             element = _lookupChild(self, key)
3109
3587
 *             if element is None:
3110
3588
 *                 _appendValue(self, key, value)             # <<<<<<<<<<<<<<
3111
3589
 *             else:
3112
3590
 *                 _replaceElement(element, value)
3113
3591
 */
3114
 
      __pyx_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_key, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3115
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
 
3592
      __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_v_self), __pyx_v_key, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3593
      __Pyx_GOTREF(__pyx_t_2);
 
3594
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3116
3595
      goto __pyx_L6;
3117
3596
    }
3118
3597
    /*else*/ {
3119
3598
 
3120
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":328
 
3599
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":322
3121
3600
 *                 _appendValue(self, key, value)
3122
3601
 *             else:
3123
3602
 *                 _replaceElement(element, value)             # <<<<<<<<<<<<<<
3124
3603
 *             return
3125
3604
 * 
3126
3605
 */
3127
 
      __pyx_2 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3128
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
 
3606
      __pyx_t_2 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3607
      __Pyx_GOTREF(__pyx_t_2);
 
3608
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3129
3609
    }
3130
3610
    __pyx_L6:;
3131
3611
 
3132
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":329
 
3612
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":323
3133
3613
 *             else:
3134
3614
 *                 _replaceElement(element, value)
3135
3615
 *             return             # <<<<<<<<<<<<<<
3142
3622
  }
3143
3623
  __pyx_L5:;
3144
3624
 
3145
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":331
 
3625
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":325
3146
3626
 *             return
3147
3627
 * 
3148
3628
 *         if self._c_node.parent is NULL:             # <<<<<<<<<<<<<<
3149
3629
 *             # the 'root[i] = ...' case
3150
3630
 *             raise TypeError, u"assignment to root element is invalid"
3151
3631
 */
3152
 
  __pyx_1 = (((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->parent == NULL);
3153
 
  if (__pyx_1) {
 
3632
  __pyx_t_1 = (((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->parent == NULL);
 
3633
  if (__pyx_t_1) {
3154
3634
 
3155
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":333
 
3635
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":327
3156
3636
 *         if self._c_node.parent is NULL:
3157
3637
 *             # the 'root[i] = ...' case
3158
3638
 *             raise TypeError, u"assignment to root element is invalid"             # <<<<<<<<<<<<<<
3159
3639
 * 
3160
3640
 *         if python.PySlice_Check(key):
3161
3641
 */
3162
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_677), 0);
3163
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3642
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_744), 0);
 
3643
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3164
3644
    goto __pyx_L7;
3165
3645
  }
3166
3646
  __pyx_L7:;
3167
3647
 
3168
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":335
 
3648
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":329
3169
3649
 *             raise TypeError, u"assignment to root element is invalid"
3170
3650
 * 
3171
3651
 *         if python.PySlice_Check(key):             # <<<<<<<<<<<<<<
3172
3652
 *             # slice assignment
3173
3653
 *             _setSlice(key, self, value)
3174
3654
 */
3175
 
  __pyx_1 = PySlice_Check(__pyx_v_key);
3176
 
  if (__pyx_1) {
 
3655
  __pyx_t_1 = PySlice_Check(__pyx_v_key);
 
3656
  if (__pyx_t_1) {
3177
3657
 
3178
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":337
 
3658
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":331
3179
3659
 *         if python.PySlice_Check(key):
3180
3660
 *             # slice assignment
3181
3661
 *             _setSlice(key, self, value)             # <<<<<<<<<<<<<<
3182
3662
 *         else:
3183
3663
 *             # normal index assignment
3184
3664
 */
3185
 
    __pyx_2 = __pyx_f_4lxml_9objectify__setSlice(__pyx_v_key, ((struct LxmlElement *)__pyx_v_self), __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3186
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
3665
    __pyx_t_2 = __pyx_f_4lxml_9objectify__setSlice(__pyx_v_key, ((struct LxmlElement *)__pyx_v_self), __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3666
    __Pyx_GOTREF(__pyx_t_2);
 
3667
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3187
3668
    goto __pyx_L8;
3188
3669
  }
3189
3670
  /*else*/ {
3190
3671
 
3191
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":340
 
3672
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":334
3192
3673
 *         else:
3193
3674
 *             # normal index assignment
3194
3675
 *             if key < 0:             # <<<<<<<<<<<<<<
3195
3676
 *                 c_node = self._c_node.parent.last
3196
3677
 *             else:
3197
3678
 */
3198
 
    __pyx_2 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_LT); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3199
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3200
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3201
 
    if (__pyx_1) {
 
3679
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_key, __pyx_int_0, Py_LT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3680
    __Pyx_GOTREF(__pyx_t_2);
 
3681
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3682
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
3683
    if (__pyx_t_1) {
3202
3684
 
3203
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":341
 
3685
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":335
3204
3686
 *             # normal index assignment
3205
3687
 *             if key < 0:
3206
3688
 *                 c_node = self._c_node.parent.last             # <<<<<<<<<<<<<<
3212
3694
    }
3213
3695
    /*else*/ {
3214
3696
 
3215
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":343
 
3697
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":337
3216
3698
 *                 c_node = self._c_node.parent.last
3217
3699
 *             else:
3218
3700
 *                 c_node = self._c_node.parent.children             # <<<<<<<<<<<<<<
3223
3705
    }
3224
3706
    __pyx_L9:;
3225
3707
 
3226
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":345
 
3708
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":339
3227
3709
 *                 c_node = self._c_node.parent.children
3228
3710
 *             c_node = _findFollowingSibling(
3229
3711
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)             # <<<<<<<<<<<<<<
3230
3712
 *             if c_node is NULL:
3231
3713
 *                 raise IndexError, unicode(key)
3232
3714
 */
3233
 
    __pyx_3 = __pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_3 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3234
 
    __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node), ((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->name, __pyx_3);
 
3715
    __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_v_key); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3716
    __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node), ((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node->name, __pyx_t_3);
3235
3717
 
3236
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":346
 
3718
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":340
3237
3719
 *             c_node = _findFollowingSibling(
3238
3720
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
3239
3721
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
3240
3722
 *                 raise IndexError, unicode(key)
3241
3723
 *             element = elementFactory(self._doc, c_node)
3242
3724
 */
3243
 
    __pyx_1 = (__pyx_v_c_node == NULL);
3244
 
    if (__pyx_1) {
 
3725
    __pyx_t_1 = (__pyx_v_c_node == NULL);
 
3726
    if (__pyx_t_1) {
3245
3727
 
3246
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":347
 
3728
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":341
3247
3729
 *                 c_node, tree._getNs(self._c_node), self._c_node.name, key)
3248
3730
 *             if c_node is NULL:
3249
3731
 *                 raise IndexError, unicode(key)             # <<<<<<<<<<<<<<
3250
3732
 *             element = elementFactory(self._doc, c_node)
3251
3733
 *             _replaceElement(element, value)
3252
3734
 */
3253
 
      __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3254
 
      Py_INCREF(__pyx_v_key);
3255
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_key);
3256
 
      __pyx_4 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3257
 
      Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3258
 
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_4, 0);
3259
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
3260
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3735
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3736
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3737
      __Pyx_INCREF(__pyx_v_key);
 
3738
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_key);
 
3739
      __Pyx_GIVEREF(__pyx_v_key);
 
3740
      __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3741
      __Pyx_GOTREF(__pyx_t_4);
 
3742
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3743
      __Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_4, 0);
 
3744
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
3745
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3261
3746
      goto __pyx_L10;
3262
3747
    }
3263
3748
    __pyx_L10:;
3264
3749
 
3265
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":348
 
3750
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":342
3266
3751
 *             if c_node is NULL:
3267
3752
 *                 raise IndexError, unicode(key)
3268
3753
 *             element = elementFactory(self._doc, c_node)             # <<<<<<<<<<<<<<
3269
3754
 *             _replaceElement(element, value)
3270
3755
 * 
3271
3756
 */
3272
 
    __pyx_2 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3273
 
    Py_DECREF(((PyObject *)__pyx_v_element));
3274
 
    __pyx_v_element = ((struct LxmlElement *)__pyx_2);
3275
 
    __pyx_2 = 0;
 
3757
    __pyx_t_4 = ((PyObject *)elementFactory(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3758
    __Pyx_GOTREF(__pyx_t_4);
 
3759
    __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
3760
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_4);
 
3761
    __pyx_t_4 = 0;
3276
3762
 
3277
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":349
 
3763
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":343
3278
3764
 *                 raise IndexError, unicode(key)
3279
3765
 *             element = elementFactory(self._doc, c_node)
3280
3766
 *             _replaceElement(element, value)             # <<<<<<<<<<<<<<
3281
3767
 * 
3282
3768
 *     def __delitem__(self, key):
3283
3769
 */
3284
 
    __pyx_4 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3285
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
 
3770
    __pyx_t_4 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3771
    __Pyx_GOTREF(__pyx_t_4);
 
3772
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3286
3773
  }
3287
3774
  __pyx_L8:;
3288
3775
 
3289
3776
  __pyx_r = 0;
3290
3777
  goto __pyx_L0;
3291
3778
  __pyx_L1_error:;
3292
 
  Py_XDECREF(__pyx_2);
3293
 
  Py_XDECREF(__pyx_4);
 
3779
  __Pyx_XDECREF(__pyx_t_2);
 
3780
  __Pyx_XDECREF(__pyx_t_4);
3294
3781
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__setitem__");
3295
3782
  __pyx_r = -1;
3296
3783
  __pyx_L0:;
3297
 
  Py_DECREF(__pyx_v_element);
3298
 
  Py_DECREF(__pyx_v_key);
 
3784
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
3785
  __Pyx_DECREF(__pyx_v_key);
 
3786
  __Pyx_FinishRefcountContext();
3299
3787
  return __pyx_r;
3300
3788
}
3301
3789
 
3302
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":351
 
3790
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":345
3303
3791
 *             _replaceElement(element, value)
3304
3792
 * 
3305
3793
 *     def __delitem__(self, key):             # <<<<<<<<<<<<<<
3316
3804
  PyObject *__pyx_v_sibling;
3317
3805
  int __pyx_r;
3318
3806
  PyObject *__pyx_1 = 0;
3319
 
  PyObject *__pyx_2 = 0;
3320
 
  int __pyx_3;
3321
 
  Py_ssize_t __pyx_4 = 0;
3322
 
  PyObject *__pyx_5 = 0;
3323
 
  __pyx_v_parent = Py_None; Py_INCREF(Py_None);
3324
 
  __pyx_v_del_items = Py_None; Py_INCREF(Py_None);
3325
 
  __pyx_v_remove = Py_None; Py_INCREF(Py_None);
3326
 
  __pyx_v_el = Py_None; Py_INCREF(Py_None);
3327
 
  __pyx_v_sibling = Py_None; Py_INCREF(Py_None);
 
3807
  PyObject *__pyx_t_1 = NULL;
 
3808
  PyObject *__pyx_t_2 = NULL;
 
3809
  int __pyx_t_3;
 
3810
  Py_ssize_t __pyx_t_4;
 
3811
  PyObject *__pyx_t_5 = NULL;
 
3812
  __Pyx_SetupRefcountContext("__delitem__");
 
3813
  __pyx_v_parent = Py_None; __Pyx_INCREF(Py_None);
 
3814
  __pyx_v_del_items = Py_None; __Pyx_INCREF(Py_None);
 
3815
  __pyx_v_remove = Py_None; __Pyx_INCREF(Py_None);
 
3816
  __pyx_v_el = Py_None; __Pyx_INCREF(Py_None);
 
3817
  __pyx_v_sibling = Py_None; __Pyx_INCREF(Py_None);
3328
3818
 
3329
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":353
 
3819
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":347
3330
3820
 *     def __delitem__(self, key):
3331
3821
 *         cdef Py_ssize_t start, stop, step, slicelength
3332
3822
 *         parent = self.getparent()             # <<<<<<<<<<<<<<
3333
3823
 *         if parent is None:
3334
3824
 *             raise TypeError, u"deleting items not supported by root element"
3335
3825
 */
3336
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_getparent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3337
 
  __pyx_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3338
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3339
 
  Py_DECREF(__pyx_v_parent);
3340
 
  __pyx_v_parent = __pyx_2;
3341
 
  __pyx_2 = 0;
 
3826
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_getparent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3827
  __Pyx_GOTREF(__pyx_t_1);
 
3828
  __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3829
  __Pyx_GOTREF(__pyx_t_2);
 
3830
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3831
  __Pyx_DECREF(__pyx_v_parent);
 
3832
  __pyx_v_parent = __pyx_t_2;
 
3833
  __pyx_t_2 = 0;
3342
3834
 
3343
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":354
 
3835
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":348
3344
3836
 *         cdef Py_ssize_t start, stop, step, slicelength
3345
3837
 *         parent = self.getparent()
3346
3838
 *         if parent is None:             # <<<<<<<<<<<<<<
3347
3839
 *             raise TypeError, u"deleting items not supported by root element"
3348
3840
 *         if python.PySlice_Check(key):
3349
3841
 */
3350
 
  __pyx_3 = (__pyx_v_parent == Py_None);
3351
 
  if (__pyx_3) {
 
3842
  __pyx_t_3 = (__pyx_v_parent == Py_None);
 
3843
  if (__pyx_t_3) {
3352
3844
 
3353
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":355
 
3845
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":349
3354
3846
 *         parent = self.getparent()
3355
3847
 *         if parent is None:
3356
3848
 *             raise TypeError, u"deleting items not supported by root element"             # <<<<<<<<<<<<<<
3357
3849
 *         if python.PySlice_Check(key):
3358
3850
 *             # slice deletion
3359
3851
 */
3360
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_678), 0);
3361
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3852
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_745), 0);
 
3853
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3362
3854
    goto __pyx_L5;
3363
3855
  }
3364
3856
  __pyx_L5:;
3365
3857
 
3366
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":356
 
3858
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":350
3367
3859
 *         if parent is None:
3368
3860
 *             raise TypeError, u"deleting items not supported by root element"
3369
3861
 *         if python.PySlice_Check(key):             # <<<<<<<<<<<<<<
3370
3862
 *             # slice deletion
3371
3863
 *             del_items = list(self)[key]
3372
3864
 */
3373
 
  __pyx_3 = PySlice_Check(__pyx_v_key);
3374
 
  if (__pyx_3) {
 
3865
  __pyx_t_3 = PySlice_Check(__pyx_v_key);
 
3866
  if (__pyx_t_3) {
3375
3867
 
3376
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":358
 
3868
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":352
3377
3869
 *         if python.PySlice_Check(key):
3378
3870
 *             # slice deletion
3379
3871
 *             del_items = list(self)[key]             # <<<<<<<<<<<<<<
3380
3872
 *             remove = parent.remove
3381
3873
 *             for el in del_items:
3382
3874
 */
3383
 
    __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3384
 
    Py_INCREF(__pyx_v_self);
3385
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self);
3386
 
    __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3387
 
    Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
3388
 
    __pyx_1 = PyObject_GetItem(__pyx_2, __pyx_v_key); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3389
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3390
 
    Py_DECREF(__pyx_v_del_items);
 
3875
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3876
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3877
    __Pyx_INCREF(__pyx_v_self);
 
3878
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
 
3879
    __Pyx_GIVEREF(__pyx_v_self);
 
3880
    __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3881
    __Pyx_GOTREF(__pyx_t_1);
 
3882
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3883
    __pyx_1 = PyObject_GetItem(__pyx_t_1, __pyx_v_key); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3884
    __Pyx_GOTREF(__pyx_1);
 
3885
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3886
    __Pyx_DECREF(__pyx_v_del_items);
3391
3887
    __pyx_v_del_items = __pyx_1;
3392
3888
    __pyx_1 = 0;
3393
3889
 
3394
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":359
 
3890
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":353
3395
3891
 *             # slice deletion
3396
3892
 *             del_items = list(self)[key]
3397
3893
 *             remove = parent.remove             # <<<<<<<<<<<<<<
3398
3894
 *             for el in del_items:
3399
3895
 *                 remove(el)
3400
3896
 */
3401
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_kp_remove); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3402
 
    Py_DECREF(__pyx_v_remove);
3403
 
    __pyx_v_remove = __pyx_2;
3404
 
    __pyx_2 = 0;
 
3897
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_parent, __pyx_kp_remove); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3898
    __Pyx_GOTREF(__pyx_t_1);
 
3899
    __Pyx_DECREF(__pyx_v_remove);
 
3900
    __pyx_v_remove = __pyx_t_1;
 
3901
    __pyx_t_1 = 0;
3405
3902
 
3406
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":360
 
3903
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":354
3407
3904
 *             del_items = list(self)[key]
3408
3905
 *             remove = parent.remove
3409
3906
 *             for el in del_items:             # <<<<<<<<<<<<<<
3411
3908
 *         else:
3412
3909
 */
3413
3910
    if (PyList_CheckExact(__pyx_v_del_items) || PyTuple_CheckExact(__pyx_v_del_items)) {
3414
 
      __pyx_4 = 0; __pyx_1 = __pyx_v_del_items; Py_INCREF(__pyx_1);
 
3911
      __pyx_t_4 = 0; __pyx_t_1 = __pyx_v_del_items; __Pyx_INCREF(__pyx_t_1);
3415
3912
    } else {
3416
 
      __pyx_4 = -1; __pyx_1 = PyObject_GetIter(__pyx_v_del_items); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3913
      __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_del_items); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3914
      __Pyx_GOTREF(__pyx_t_1);
3417
3915
    }
3418
3916
    for (;;) {
3419
 
      if (likely(PyList_CheckExact(__pyx_1))) {
3420
 
        if (__pyx_4 >= PyList_GET_SIZE(__pyx_1)) break;
3421
 
        __pyx_2 = PyList_GET_ITEM(__pyx_1, __pyx_4); Py_INCREF(__pyx_2); __pyx_4++;
3422
 
      } else if (likely(PyTuple_CheckExact(__pyx_1))) {
3423
 
        if (__pyx_4 >= PyTuple_GET_SIZE(__pyx_1)) break;
3424
 
        __pyx_2 = PyTuple_GET_ITEM(__pyx_1, __pyx_4); Py_INCREF(__pyx_2); __pyx_4++;
 
3917
      if (likely(PyList_CheckExact(__pyx_t_1))) {
 
3918
        if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
3919
        __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
 
3920
      } else if (likely(PyTuple_CheckExact(__pyx_t_1))) {
 
3921
        if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
 
3922
        __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
3425
3923
      } else {
3426
 
        __pyx_2 = PyIter_Next(__pyx_1);
3427
 
        if (!__pyx_2) {
3428
 
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3924
        __pyx_t_2 = PyIter_Next(__pyx_t_1);
 
3925
        if (!__pyx_t_2) {
 
3926
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3429
3927
          break;
3430
3928
        }
 
3929
        __Pyx_GOTREF(__pyx_t_2);
3431
3930
      }
3432
 
      Py_DECREF(__pyx_v_el);
3433
 
      __pyx_v_el = __pyx_2;
3434
 
      __pyx_2 = 0;
 
3931
      __Pyx_DECREF(__pyx_v_el);
 
3932
      __pyx_v_el = __pyx_t_2;
 
3933
      __pyx_t_2 = 0;
3435
3934
 
3436
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":361
 
3935
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":355
3437
3936
 *             remove = parent.remove
3438
3937
 *             for el in del_items:
3439
3938
 *                 remove(el)             # <<<<<<<<<<<<<<
3440
3939
 *         else:
3441
3940
 *             # normal index deletion
3442
3941
 */
3443
 
      __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3444
 
      Py_INCREF(__pyx_v_el);
3445
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_el);
3446
 
      __pyx_5 = PyObject_Call(__pyx_v_remove, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3447
 
      Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3448
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
3942
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3943
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
3944
      __Pyx_INCREF(__pyx_v_el);
 
3945
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_el);
 
3946
      __Pyx_GIVEREF(__pyx_v_el);
 
3947
      __pyx_t_5 = PyObject_Call(__pyx_v_remove, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3948
      __Pyx_GOTREF(__pyx_t_5);
 
3949
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
3950
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
3449
3951
    }
3450
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
 
3952
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3451
3953
    goto __pyx_L6;
3452
3954
  }
3453
3955
  /*else*/ {
3454
3956
 
3455
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":364
 
3957
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":358
3456
3958
 *         else:
3457
3959
 *             # normal index deletion
3458
3960
 *             sibling = self.__getitem__(key)             # <<<<<<<<<<<<<<
3459
3961
 *             parent.remove(sibling)
3460
3962
 * 
3461
3963
 */
3462
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_kp___getitem__); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3463
 
    __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3464
 
    Py_INCREF(__pyx_v_key);
3465
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_key);
3466
 
    __pyx_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3467
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3468
 
    Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
3469
 
    Py_DECREF(__pyx_v_sibling);
3470
 
    __pyx_v_sibling = __pyx_1;
3471
 
    __pyx_1 = 0;
 
3964
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp___getitem__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3965
    __Pyx_GOTREF(__pyx_t_1);
 
3966
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3967
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
3968
    __Pyx_INCREF(__pyx_v_key);
 
3969
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_key);
 
3970
    __Pyx_GIVEREF(__pyx_v_key);
 
3971
    __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3972
    __Pyx_GOTREF(__pyx_t_2);
 
3973
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
3974
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
3975
    __Pyx_DECREF(__pyx_v_sibling);
 
3976
    __pyx_v_sibling = __pyx_t_2;
 
3977
    __pyx_t_2 = 0;
3472
3978
 
3473
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":365
 
3979
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":359
3474
3980
 *             # normal index deletion
3475
3981
 *             sibling = self.__getitem__(key)
3476
3982
 *             parent.remove(sibling)             # <<<<<<<<<<<<<<
3477
3983
 * 
3478
3984
 *     def iterfind(self, path):
3479
3985
 */
3480
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_kp_remove); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3481
 
    __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3482
 
    Py_INCREF(__pyx_v_sibling);
3483
 
    PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_sibling);
3484
 
    __pyx_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3485
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3486
 
    Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
3487
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
 
3986
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_parent, __pyx_kp_remove); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3987
    __Pyx_GOTREF(__pyx_t_2);
 
3988
    __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3989
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
3990
    __Pyx_INCREF(__pyx_v_sibling);
 
3991
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_sibling);
 
3992
    __Pyx_GIVEREF(__pyx_v_sibling);
 
3993
    __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
3994
    __Pyx_GOTREF(__pyx_t_1);
 
3995
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
3996
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
3997
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
3488
3998
  }
3489
3999
  __pyx_L6:;
3490
4000
 
3491
4001
  __pyx_r = 0;
3492
4002
  goto __pyx_L0;
3493
4003
  __pyx_L1_error:;
3494
 
  Py_XDECREF(__pyx_1);
3495
 
  Py_XDECREF(__pyx_2);
3496
 
  Py_XDECREF(__pyx_5);
 
4004
  __Pyx_XDECREF(__pyx_1);
 
4005
  __Pyx_XDECREF(__pyx_t_1);
 
4006
  __Pyx_XDECREF(__pyx_t_2);
 
4007
  __Pyx_XDECREF(__pyx_t_5);
3497
4008
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.__delitem__");
3498
4009
  __pyx_r = -1;
3499
4010
  __pyx_L0:;
3500
 
  Py_DECREF(__pyx_v_parent);
3501
 
  Py_DECREF(__pyx_v_del_items);
3502
 
  Py_DECREF(__pyx_v_remove);
3503
 
  Py_DECREF(__pyx_v_el);
3504
 
  Py_DECREF(__pyx_v_sibling);
 
4011
  __Pyx_DECREF(__pyx_v_parent);
 
4012
  __Pyx_DECREF(__pyx_v_del_items);
 
4013
  __Pyx_DECREF(__pyx_v_remove);
 
4014
  __Pyx_DECREF(__pyx_v_el);
 
4015
  __Pyx_DECREF(__pyx_v_sibling);
 
4016
  __Pyx_FinishRefcountContext();
3505
4017
  return __pyx_r;
3506
4018
}
3507
4019
 
3508
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":367
 
4020
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":361
3509
4021
 *             parent.remove(sibling)
3510
4022
 * 
3511
4023
 *     def iterfind(self, path):             # <<<<<<<<<<<<<<
3517
4029
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_iterfind[] = "iterfind(self, path)";
3518
4030
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_iterfind(PyObject *__pyx_v_self, PyObject *__pyx_v_path) {
3519
4031
  PyObject *__pyx_v_xpath;
3520
 
  PyObject *__pyx_r;
3521
 
  PyObject *__pyx_1 = 0;
3522
 
  PyObject *__pyx_2 = 0;
3523
 
  PyObject *__pyx_3 = 0;
3524
 
  __pyx_v_xpath = Py_None; Py_INCREF(Py_None);
 
4032
  PyObject *__pyx_r = NULL;
 
4033
  PyObject *__pyx_t_1 = NULL;
 
4034
  PyObject *__pyx_t_2 = NULL;
 
4035
  PyObject *__pyx_t_3 = NULL;
 
4036
  __Pyx_SetupRefcountContext("iterfind");
 
4037
  __pyx_v_xpath = Py_None; __Pyx_INCREF(Py_None);
3525
4038
 
3526
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":371
 
4039
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":365
3527
4040
 *         # Reimplementation of Element.iterfind() to make it work without child
3528
4041
 *         # iteration.
3529
4042
 *         xpath = etree.ETXPath(path)             # <<<<<<<<<<<<<<
3530
4043
 *         return iter(xpath(self))
3531
4044
 * 
3532
4045
 */
3533
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ETXPath); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3534
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3535
 
  Py_INCREF(__pyx_v_path);
3536
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
3537
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3538
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3539
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3540
 
  Py_DECREF(__pyx_v_xpath);
3541
 
  __pyx_v_xpath = __pyx_3;
3542
 
  __pyx_3 = 0;
 
4046
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ETXPath); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4047
  __Pyx_GOTREF(__pyx_t_1);
 
4048
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4049
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
4050
  __Pyx_INCREF(__pyx_v_path);
 
4051
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_path);
 
4052
  __Pyx_GIVEREF(__pyx_v_path);
 
4053
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4054
  __Pyx_GOTREF(__pyx_t_3);
 
4055
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4056
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
4057
  __Pyx_DECREF(__pyx_v_xpath);
 
4058
  __pyx_v_xpath = __pyx_t_3;
 
4059
  __pyx_t_3 = 0;
3543
4060
 
3544
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":372
 
4061
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":366
3545
4062
 *         # iteration.
3546
4063
 *         xpath = etree.ETXPath(path)
3547
4064
 *         return iter(xpath(self))             # <<<<<<<<<<<<<<
3548
4065
 * 
3549
4066
 *     def findall(self, path):
3550
4067
 */
3551
 
  __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3552
 
  Py_INCREF(__pyx_v_self);
3553
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self);
3554
 
  __pyx_2 = PyObject_Call(__pyx_v_xpath, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3555
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
3556
 
  __pyx_3 = PyObject_GetIter(__pyx_2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3557
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
3558
 
  __pyx_r = __pyx_3;
3559
 
  __pyx_3 = 0;
 
4068
  __Pyx_XDECREF(__pyx_r);
 
4069
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4070
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
4071
  __Pyx_INCREF(__pyx_v_self);
 
4072
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self);
 
4073
  __Pyx_GIVEREF(__pyx_v_self);
 
4074
  __pyx_t_2 = PyObject_Call(__pyx_v_xpath, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4075
  __Pyx_GOTREF(__pyx_t_2);
 
4076
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
4077
  __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4078
  __Pyx_GOTREF(__pyx_t_3);
 
4079
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
4080
  __pyx_r = __pyx_t_3;
 
4081
  __pyx_t_3 = 0;
3560
4082
  goto __pyx_L0;
3561
4083
 
3562
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
4084
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3563
4085
  goto __pyx_L0;
3564
4086
  __pyx_L1_error:;
3565
 
  Py_XDECREF(__pyx_1);
3566
 
  Py_XDECREF(__pyx_2);
3567
 
  Py_XDECREF(__pyx_3);
 
4087
  __Pyx_XDECREF(__pyx_t_1);
 
4088
  __Pyx_XDECREF(__pyx_t_2);
 
4089
  __Pyx_XDECREF(__pyx_t_3);
3568
4090
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.iterfind");
3569
4091
  __pyx_r = NULL;
3570
4092
  __pyx_L0:;
3571
 
  Py_DECREF(__pyx_v_xpath);
 
4093
  __Pyx_DECREF(__pyx_v_xpath);
 
4094
  __Pyx_XGIVEREF(__pyx_r);
 
4095
  __Pyx_FinishRefcountContext();
3572
4096
  return __pyx_r;
3573
4097
}
3574
4098
 
3575
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":374
 
4099
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":368
3576
4100
 *         return iter(xpath(self))
3577
4101
 * 
3578
4102
 *     def findall(self, path):             # <<<<<<<<<<<<<<
3584
4108
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_findall[] = "findall(self, path)";
3585
4109
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_findall(PyObject *__pyx_v_self, PyObject *__pyx_v_path) {
3586
4110
  PyObject *__pyx_v_xpath;
3587
 
  PyObject *__pyx_r;
3588
 
  PyObject *__pyx_1 = 0;
3589
 
  PyObject *__pyx_2 = 0;
3590
 
  PyObject *__pyx_3 = 0;
3591
 
  __pyx_v_xpath = Py_None; Py_INCREF(Py_None);
 
4111
  PyObject *__pyx_r = NULL;
 
4112
  PyObject *__pyx_t_1 = NULL;
 
4113
  PyObject *__pyx_t_2 = NULL;
 
4114
  PyObject *__pyx_t_3 = NULL;
 
4115
  __Pyx_SetupRefcountContext("findall");
 
4116
  __pyx_v_xpath = Py_None; __Pyx_INCREF(Py_None);
3592
4117
 
3593
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":378
 
4118
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":372
3594
4119
 *         # Reimplementation of Element.findall() to make it work without child
3595
4120
 *         # iteration.
3596
4121
 *         xpath = etree.ETXPath(path)             # <<<<<<<<<<<<<<
3597
4122
 *         return xpath(self)
3598
4123
 * 
3599
4124
 */
3600
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ETXPath); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3601
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3602
 
  Py_INCREF(__pyx_v_path);
3603
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
3604
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3605
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3606
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3607
 
  Py_DECREF(__pyx_v_xpath);
3608
 
  __pyx_v_xpath = __pyx_3;
3609
 
  __pyx_3 = 0;
 
4125
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ETXPath); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4126
  __Pyx_GOTREF(__pyx_t_1);
 
4127
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4128
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
4129
  __Pyx_INCREF(__pyx_v_path);
 
4130
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_path);
 
4131
  __Pyx_GIVEREF(__pyx_v_path);
 
4132
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4133
  __Pyx_GOTREF(__pyx_t_3);
 
4134
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4135
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
4136
  __Pyx_DECREF(__pyx_v_xpath);
 
4137
  __pyx_v_xpath = __pyx_t_3;
 
4138
  __pyx_t_3 = 0;
3610
4139
 
3611
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":379
 
4140
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":373
3612
4141
 *         # iteration.
3613
4142
 *         xpath = etree.ETXPath(path)
3614
4143
 *         return xpath(self)             # <<<<<<<<<<<<<<
3615
4144
 * 
3616
4145
 *     def find(self, path):
3617
4146
 */
3618
 
  __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3619
 
  Py_INCREF(__pyx_v_self);
3620
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self);
3621
 
  __pyx_2 = PyObject_Call(__pyx_v_xpath, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3622
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
3623
 
  __pyx_r = __pyx_2;
3624
 
  __pyx_2 = 0;
 
4147
  __Pyx_XDECREF(__pyx_r);
 
4148
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4149
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
4150
  __Pyx_INCREF(__pyx_v_self);
 
4151
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self);
 
4152
  __Pyx_GIVEREF(__pyx_v_self);
 
4153
  __pyx_t_2 = PyObject_Call(__pyx_v_xpath, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4154
  __Pyx_GOTREF(__pyx_t_2);
 
4155
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
4156
  __pyx_r = __pyx_t_2;
 
4157
  __pyx_t_2 = 0;
3625
4158
  goto __pyx_L0;
3626
4159
 
3627
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
4160
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3628
4161
  goto __pyx_L0;
3629
4162
  __pyx_L1_error:;
3630
 
  Py_XDECREF(__pyx_1);
3631
 
  Py_XDECREF(__pyx_2);
3632
 
  Py_XDECREF(__pyx_3);
 
4163
  __Pyx_XDECREF(__pyx_t_1);
 
4164
  __Pyx_XDECREF(__pyx_t_2);
 
4165
  __Pyx_XDECREF(__pyx_t_3);
3633
4166
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.findall");
3634
4167
  __pyx_r = NULL;
3635
4168
  __pyx_L0:;
3636
 
  Py_DECREF(__pyx_v_xpath);
 
4169
  __Pyx_DECREF(__pyx_v_xpath);
 
4170
  __Pyx_XGIVEREF(__pyx_r);
 
4171
  __Pyx_FinishRefcountContext();
3637
4172
  return __pyx_r;
3638
4173
}
3639
4174
 
3640
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":381
 
4175
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":375
3641
4176
 *         return xpath(self)
3642
4177
 * 
3643
4178
 *     def find(self, path):             # <<<<<<<<<<<<<<
3649
4184
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_find[] = "find(self, path)";
3650
4185
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_find(PyObject *__pyx_v_self, PyObject *__pyx_v_path) {
3651
4186
  PyObject *__pyx_v_result;
3652
 
  PyObject *__pyx_r;
 
4187
  PyObject *__pyx_r = NULL;
3653
4188
  PyObject *__pyx_1 = 0;
3654
 
  PyObject *__pyx_2 = 0;
3655
 
  PyObject *__pyx_3 = 0;
3656
 
  int __pyx_4;
3657
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
 
4189
  PyObject *__pyx_t_1 = NULL;
 
4190
  PyObject *__pyx_t_2 = NULL;
 
4191
  PyObject *__pyx_t_3 = NULL;
 
4192
  int __pyx_t_4;
 
4193
  Py_ssize_t __pyx_t_5;
 
4194
  int __pyx_t_6;
 
4195
  __Pyx_SetupRefcountContext("find");
 
4196
  __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
3658
4197
 
3659
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":385
 
4198
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":379
3660
4199
 *         # Reimplementation of Element.find() to make it work without child
3661
4200
 *         # iteration.
3662
4201
 *         result = self.findall(path)             # <<<<<<<<<<<<<<
3663
4202
 *         if isinstance(result, list) and len(result):
3664
4203
 *             return result[0]
3665
4204
 */
3666
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_findall); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3667
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3668
 
  Py_INCREF(__pyx_v_path);
3669
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
3670
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3671
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3672
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3673
 
  Py_DECREF(__pyx_v_result);
3674
 
  __pyx_v_result = __pyx_3;
3675
 
  __pyx_3 = 0;
 
4205
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_findall); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4206
  __Pyx_GOTREF(__pyx_t_1);
 
4207
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4208
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
4209
  __Pyx_INCREF(__pyx_v_path);
 
4210
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_path);
 
4211
  __Pyx_GIVEREF(__pyx_v_path);
 
4212
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4213
  __Pyx_GOTREF(__pyx_t_3);
 
4214
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4215
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
4216
  __Pyx_DECREF(__pyx_v_result);
 
4217
  __pyx_v_result = __pyx_t_3;
 
4218
  __pyx_t_3 = 0;
3676
4219
 
3677
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":386
 
4220
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":380
3678
4221
 *         # iteration.
3679
4222
 *         result = self.findall(path)
3680
4223
 *         if isinstance(result, list) and len(result):             # <<<<<<<<<<<<<<
3681
4224
 *             return result[0]
3682
4225
 *         elif isinstance(result, _Element):
3683
4226
 */
3684
 
  __pyx_4 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)&PyList_Type))); 
3685
 
  if (__pyx_4) {
3686
 
    __pyx_4 = PyObject_Length(__pyx_v_result); if (unlikely(__pyx_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4227
  __pyx_t_4 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)&PyList_Type))); 
 
4228
  if (__pyx_t_4) {
 
4229
    __pyx_t_5 = PyObject_Length(__pyx_v_result); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4230
    __pyx_t_6 = __pyx_t_5;
 
4231
  } else {
 
4232
    __pyx_t_6 = __pyx_t_4;
3687
4233
  }
3688
 
  if (__pyx_4) {
 
4234
  if (__pyx_t_6) {
3689
4235
 
3690
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":387
 
4236
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":381
3691
4237
 *         result = self.findall(path)
3692
4238
 *         if isinstance(result, list) and len(result):
3693
4239
 *             return result[0]             # <<<<<<<<<<<<<<
3694
4240
 *         elif isinstance(result, _Element):
3695
4241
 *             return result
3696
4242
 */
3697
 
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_result, 0, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4243
    __Pyx_XDECREF(__pyx_r);
 
4244
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_result, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4245
    __Pyx_GOTREF(__pyx_1);
3698
4246
    __pyx_r = __pyx_1;
3699
4247
    __pyx_1 = 0;
3700
4248
    goto __pyx_L0;
3701
4249
    goto __pyx_L5;
3702
4250
  }
3703
4251
 
3704
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":388
 
4252
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":382
3705
4253
 *         if isinstance(result, list) and len(result):
3706
4254
 *             return result[0]
3707
4255
 *         elif isinstance(result, _Element):             # <<<<<<<<<<<<<<
3708
4256
 *             return result
3709
4257
 *         else:
3710
4258
 */
3711
 
  __pyx_4 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
3712
 
  if (__pyx_4) {
 
4259
  __pyx_t_6 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
4260
  if (__pyx_t_6) {
3713
4261
 
3714
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":389
 
4262
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":383
3715
4263
 *             return result[0]
3716
4264
 *         elif isinstance(result, _Element):
3717
4265
 *             return result             # <<<<<<<<<<<<<<
3718
4266
 *         else:
3719
4267
 *             return None
3720
4268
 */
3721
 
    Py_INCREF(__pyx_v_result);
 
4269
    __Pyx_XDECREF(__pyx_r);
 
4270
    __Pyx_INCREF(__pyx_v_result);
3722
4271
    __pyx_r = __pyx_v_result;
3723
4272
    goto __pyx_L0;
3724
4273
    goto __pyx_L5;
3725
4274
  }
3726
4275
  /*else*/ {
3727
4276
 
3728
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":391
 
4277
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":385
3729
4278
 *             return result
3730
4279
 *         else:
3731
4280
 *             return None             # <<<<<<<<<<<<<<
3732
4281
 * 
3733
4282
 *     def findtext(self, path, default=None):
3734
4283
 */
3735
 
    Py_INCREF(Py_None);
 
4284
    __Pyx_XDECREF(__pyx_r);
 
4285
    __Pyx_INCREF(Py_None);
3736
4286
    __pyx_r = Py_None;
3737
4287
    goto __pyx_L0;
3738
4288
  }
3739
4289
  __pyx_L5:;
3740
4290
 
3741
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
4291
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3742
4292
  goto __pyx_L0;
3743
4293
  __pyx_L1_error:;
3744
 
  Py_XDECREF(__pyx_1);
3745
 
  Py_XDECREF(__pyx_2);
3746
 
  Py_XDECREF(__pyx_3);
 
4294
  __Pyx_XDECREF(__pyx_1);
 
4295
  __Pyx_XDECREF(__pyx_t_1);
 
4296
  __Pyx_XDECREF(__pyx_t_2);
 
4297
  __Pyx_XDECREF(__pyx_t_3);
3747
4298
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.find");
3748
4299
  __pyx_r = NULL;
3749
4300
  __pyx_L0:;
3750
 
  Py_DECREF(__pyx_v_result);
 
4301
  __Pyx_DECREF(__pyx_v_result);
 
4302
  __Pyx_XGIVEREF(__pyx_r);
 
4303
  __Pyx_FinishRefcountContext();
3751
4304
  return __pyx_r;
3752
4305
}
3753
4306
 
3754
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":393
 
4307
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":387
3755
4308
 *             return None
3756
4309
 * 
3757
4310
 *     def findtext(self, path, default=None):             # <<<<<<<<<<<<<<
3765
4318
  PyObject *__pyx_v_path = 0;
3766
4319
  PyObject *__pyx_v_default = 0;
3767
4320
  PyObject *__pyx_v_result;
3768
 
  PyObject *__pyx_r;
3769
 
  PyObject *__pyx_1 = 0;
3770
 
  PyObject *__pyx_2 = 0;
3771
 
  PyObject *__pyx_3 = 0;
3772
 
  int __pyx_4;
 
4321
  PyObject *__pyx_r = NULL;
 
4322
  PyObject *__pyx_t_1 = NULL;
 
4323
  PyObject *__pyx_t_2 = NULL;
 
4324
  PyObject *__pyx_t_3 = NULL;
 
4325
  int __pyx_t_4;
3773
4326
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_path,&__pyx_kp_default,0};
3774
 
  __pyx_v_default = Py_None;
 
4327
  __Pyx_SetupRefcountContext("findtext");
3775
4328
  if (unlikely(__pyx_kwds)) {
 
4329
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
3776
4330
    PyObject* values[2] = {0,0};
3777
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
4331
    values[1] = Py_None;
3778
4332
    switch (PyTuple_GET_SIZE(__pyx_args)) {
3779
4333
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
3780
4334
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3786
4340
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_path);
3787
4341
      if (likely(values[0])) kw_args--;
3788
4342
      else goto __pyx_L5_argtuple_error;
 
4343
      case  1:
 
4344
      if (kw_args > 1) {
 
4345
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_default);
 
4346
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
4347
      }
3789
4348
    }
3790
4349
    if (unlikely(kw_args > 0)) {
3791
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findtext") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4350
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "findtext") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3792
4351
    }
3793
4352
    __pyx_v_path = values[0];
3794
 
    if (values[1]) {
3795
 
      __pyx_v_default = values[1];
3796
 
    }
 
4353
    __pyx_v_default = values[1];
3797
4354
  } else {
 
4355
    __pyx_v_default = Py_None;
3798
4356
    switch (PyTuple_GET_SIZE(__pyx_args)) {
3799
4357
      case  2: __pyx_v_default = PyTuple_GET_ITEM(__pyx_args, 1);
3800
4358
      case  1: __pyx_v_path = PyTuple_GET_ITEM(__pyx_args, 0);
3804
4362
  }
3805
4363
  goto __pyx_L4_argument_unpacking_done;
3806
4364
  __pyx_L5_argtuple_error:;
3807
 
  __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4365
  __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3808
4366
  __pyx_L3_error:;
3809
4367
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.findtext");
3810
4368
  return NULL;
3811
4369
  __pyx_L4_argument_unpacking_done:;
3812
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
 
4370
  __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
3813
4371
 
3814
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":397
 
4372
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":391
3815
4373
 *         # Reimplementation of Element.findtext() to make it work without child
3816
4374
 *         # iteration.
3817
4375
 *         result = self.find(path)             # <<<<<<<<<<<<<<
3818
4376
 *         if isinstance(result, _Element):
3819
4377
 *             return result.text or u""
3820
4378
 */
3821
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_find); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3822
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3823
 
  Py_INCREF(__pyx_v_path);
3824
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
3825
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3826
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
3827
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
3828
 
  Py_DECREF(__pyx_v_result);
3829
 
  __pyx_v_result = __pyx_3;
3830
 
  __pyx_3 = 0;
 
4379
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_self, __pyx_kp_find); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4380
  __Pyx_GOTREF(__pyx_t_1);
 
4381
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4382
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
4383
  __Pyx_INCREF(__pyx_v_path);
 
4384
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_path);
 
4385
  __Pyx_GIVEREF(__pyx_v_path);
 
4386
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4387
  __Pyx_GOTREF(__pyx_t_3);
 
4388
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
4389
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
4390
  __Pyx_DECREF(__pyx_v_result);
 
4391
  __pyx_v_result = __pyx_t_3;
 
4392
  __pyx_t_3 = 0;
3831
4393
 
3832
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":398
 
4394
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":392
3833
4395
 *         # iteration.
3834
4396
 *         result = self.find(path)
3835
4397
 *         if isinstance(result, _Element):             # <<<<<<<<<<<<<<
3836
4398
 *             return result.text or u""
3837
4399
 *         else:
3838
4400
 */
3839
 
  __pyx_4 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
3840
 
  if (__pyx_4) {
 
4401
  __pyx_t_4 = PyObject_TypeCheck(__pyx_v_result, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
4402
  if (__pyx_t_4) {
3841
4403
 
3842
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":399
 
4404
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":393
3843
4405
 *         result = self.find(path)
3844
4406
 *         if isinstance(result, _Element):
3845
4407
 *             return result.text or u""             # <<<<<<<<<<<<<<
3846
4408
 *         else:
3847
4409
 *             return default
3848
4410
 */
3849
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_result, __pyx_kp_text); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3850
 
    __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3851
 
    if (!__pyx_4) {
3852
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
3853
 
      __pyx_1 = ((PyObject *)__pyx_kp_679);
3854
 
      Py_INCREF(__pyx_1);
 
4411
    __Pyx_XDECREF(__pyx_r);
 
4412
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_result, __pyx_kp_text); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4413
    __Pyx_GOTREF(__pyx_t_3);
 
4414
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4415
    if (!__pyx_t_4) {
 
4416
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
4417
      __Pyx_INCREF(((PyObject *)__pyx_kp_746));
 
4418
      __pyx_t_2 = __pyx_kp_746;
 
4419
    } else {
 
4420
      __pyx_t_2 = __pyx_t_3;
 
4421
      __pyx_t_3 = 0;
3855
4422
    }
3856
 
    __pyx_r = __pyx_1;
3857
 
    __pyx_1 = 0;
 
4423
    __pyx_r = __pyx_t_2;
 
4424
    __pyx_t_2 = 0;
3858
4425
    goto __pyx_L0;
3859
4426
    goto __pyx_L6;
3860
4427
  }
3861
4428
  /*else*/ {
3862
4429
 
3863
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":401
 
4430
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":395
3864
4431
 *             return result.text or u""
3865
4432
 *         else:
3866
4433
 *             return default             # <<<<<<<<<<<<<<
3867
4434
 * 
3868
4435
 *     def descendantpaths(self, prefix=None):
3869
4436
 */
3870
 
    Py_INCREF(__pyx_v_default);
 
4437
    __Pyx_XDECREF(__pyx_r);
 
4438
    __Pyx_INCREF(__pyx_v_default);
3871
4439
    __pyx_r = __pyx_v_default;
3872
4440
    goto __pyx_L0;
3873
4441
  }
3874
4442
  __pyx_L6:;
3875
4443
 
3876
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
4444
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3877
4445
  goto __pyx_L0;
3878
4446
  __pyx_L1_error:;
3879
 
  Py_XDECREF(__pyx_1);
3880
 
  Py_XDECREF(__pyx_2);
3881
 
  Py_XDECREF(__pyx_3);
 
4447
  __Pyx_XDECREF(__pyx_t_1);
 
4448
  __Pyx_XDECREF(__pyx_t_2);
 
4449
  __Pyx_XDECREF(__pyx_t_3);
3882
4450
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.findtext");
3883
4451
  __pyx_r = NULL;
3884
4452
  __pyx_L0:;
3885
 
  Py_DECREF(__pyx_v_result);
 
4453
  __Pyx_DECREF(__pyx_v_result);
 
4454
  __Pyx_XGIVEREF(__pyx_r);
 
4455
  __Pyx_FinishRefcountContext();
3886
4456
  return __pyx_r;
3887
4457
}
3888
4458
 
3889
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":403
 
4459
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":397
3890
4460
 *             return default
3891
4461
 * 
3892
4462
 *     def descendantpaths(self, prefix=None):             # <<<<<<<<<<<<<<
3898
4468
static char __pyx_doc_4lxml_9objectify_18ObjectifiedElement_descendantpaths[] = "descendantpaths(self, prefix=None)\n\n        Returns a list of object path expressions for all descendants.\n        ";
3899
4469
static PyObject *__pyx_pf_4lxml_9objectify_18ObjectifiedElement_descendantpaths(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3900
4470
  PyObject *__pyx_v_prefix = 0;
3901
 
  PyObject *__pyx_r;
3902
 
  int __pyx_1;
3903
 
  PyObject *__pyx_2 = 0;
3904
 
  PyObject *__pyx_3 = 0;
3905
 
  PyObject *__pyx_4 = 0;
 
4471
  PyObject *__pyx_r = NULL;
 
4472
  int __pyx_t_1;
 
4473
  int __pyx_t_2;
 
4474
  PyObject *__pyx_t_3 = NULL;
 
4475
  PyObject *__pyx_t_4 = NULL;
 
4476
  PyObject *__pyx_t_5 = NULL;
3906
4477
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_prefix,0};
3907
 
  __pyx_v_prefix = Py_None;
 
4478
  __Pyx_SetupRefcountContext("descendantpaths");
3908
4479
  if (unlikely(__pyx_kwds)) {
 
4480
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
3909
4481
    PyObject* values[1] = {0};
3910
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
4482
    values[0] = Py_None;
3911
4483
    switch (PyTuple_GET_SIZE(__pyx_args)) {
3912
4484
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
3913
4485
      case  0: break;
3914
4486
      default: goto __pyx_L5_argtuple_error;
3915
4487
    }
 
4488
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
4489
      case  0:
 
4490
      if (kw_args > 1) {
 
4491
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_prefix);
 
4492
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
4493
      }
 
4494
    }
3916
4495
    if (unlikely(kw_args > 0)) {
3917
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "descendantpaths") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3918
 
    }
3919
 
    if (values[0]) {
3920
 
      __pyx_v_prefix = values[0];
3921
 
    }
 
4496
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "descendantpaths") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4497
    }
 
4498
    __pyx_v_prefix = values[0];
3922
4499
  } else {
 
4500
    __pyx_v_prefix = Py_None;
3923
4501
    switch (PyTuple_GET_SIZE(__pyx_args)) {
3924
4502
      case  1: __pyx_v_prefix = PyTuple_GET_ITEM(__pyx_args, 0);
3925
4503
      case  0: break;
3928
4506
  }
3929
4507
  goto __pyx_L4_argument_unpacking_done;
3930
4508
  __pyx_L5_argtuple_error:;
3931
 
  __Pyx_RaiseArgtupleInvalid("descendantpaths", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
4509
  __Pyx_RaiseArgtupleInvalid("descendantpaths", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
3932
4510
  __pyx_L3_error:;
3933
4511
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.descendantpaths");
3934
4512
  return NULL;
3935
4513
  __pyx_L4_argument_unpacking_done:;
3936
 
  Py_INCREF(__pyx_v_prefix);
 
4514
  __Pyx_INCREF(__pyx_v_prefix);
3937
4515
 
3938
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":408
 
4516
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":402
3939
4517
 *         Returns a list of object path expressions for all descendants.
3940
4518
 *         """
3941
4519
 *         if prefix is not None and not python._isString(prefix):             # <<<<<<<<<<<<<<
3942
4520
 *             prefix = u'.'.join(prefix)
3943
4521
 *         return _buildDescendantPaths(self._c_node, prefix)
3944
4522
 */
3945
 
  __pyx_1 = (__pyx_v_prefix != Py_None);
3946
 
  if (__pyx_1) {
3947
 
    __pyx_1 = (!_isString(__pyx_v_prefix));
 
4523
  __pyx_t_1 = (__pyx_v_prefix != Py_None);
 
4524
  if (__pyx_t_1) {
 
4525
    __pyx_t_2 = (!_isString(__pyx_v_prefix));
 
4526
  } else {
 
4527
    __pyx_t_2 = __pyx_t_1;
3948
4528
  }
3949
 
  if (__pyx_1) {
 
4529
  if (__pyx_t_2) {
3950
4530
 
3951
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":409
 
4531
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":403
3952
4532
 *         """
3953
4533
 *         if prefix is not None and not python._isString(prefix):
3954
4534
 *             prefix = u'.'.join(prefix)             # <<<<<<<<<<<<<<
3955
4535
 *         return _buildDescendantPaths(self._c_node, prefix)
3956
4536
 * 
3957
4537
 */
3958
 
    __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_kp_680), __pyx_kp_join); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3959
 
    __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3960
 
    Py_INCREF(__pyx_v_prefix);
3961
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_prefix);
3962
 
    __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3963
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
3964
 
    Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
3965
 
    Py_DECREF(__pyx_v_prefix);
3966
 
    __pyx_v_prefix = __pyx_4;
3967
 
    __pyx_4 = 0;
 
4538
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_kp_747), __pyx_kp_join); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4539
    __Pyx_GOTREF(__pyx_t_3);
 
4540
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4541
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
4542
    __Pyx_INCREF(__pyx_v_prefix);
 
4543
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_prefix);
 
4544
    __Pyx_GIVEREF(__pyx_v_prefix);
 
4545
    __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4546
    __Pyx_GOTREF(__pyx_t_5);
 
4547
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
4548
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
4549
    __Pyx_DECREF(__pyx_v_prefix);
 
4550
    __pyx_v_prefix = __pyx_t_5;
 
4551
    __pyx_t_5 = 0;
3968
4552
    goto __pyx_L6;
3969
4553
  }
3970
4554
  __pyx_L6:;
3971
4555
 
3972
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":410
 
4556
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":404
3973
4557
 *         if prefix is not None and not python._isString(prefix):
3974
4558
 *             prefix = u'.'.join(prefix)
3975
4559
 *         return _buildDescendantPaths(self._c_node, prefix)             # <<<<<<<<<<<<<<
3976
4560
 * 
3977
4561
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, char* c_href, char* c_name):
3978
4562
 */
3979
 
  __pyx_2 = __pyx_f_4lxml_9objectify__buildDescendantPaths(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node, __pyx_v_prefix); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
3980
 
  __pyx_r = __pyx_2;
3981
 
  __pyx_2 = 0;
 
4563
  __Pyx_XDECREF(__pyx_r);
 
4564
  __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_9objectify__buildDescendantPaths(((struct __pyx_obj_4lxml_9objectify_ObjectifiedElement *)__pyx_v_self)->__pyx_base.__pyx_base._c_node, __pyx_v_prefix)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
4565
  __Pyx_GOTREF(__pyx_t_5);
 
4566
  __pyx_r = __pyx_t_5;
 
4567
  __pyx_t_5 = 0;
3982
4568
  goto __pyx_L0;
3983
4569
 
3984
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
4570
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
3985
4571
  goto __pyx_L0;
3986
4572
  __pyx_L1_error:;
3987
 
  Py_XDECREF(__pyx_2);
3988
 
  Py_XDECREF(__pyx_3);
3989
 
  Py_XDECREF(__pyx_4);
 
4573
  __Pyx_XDECREF(__pyx_t_3);
 
4574
  __Pyx_XDECREF(__pyx_t_4);
 
4575
  __Pyx_XDECREF(__pyx_t_5);
3990
4576
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedElement.descendantpaths");
3991
4577
  __pyx_r = NULL;
3992
4578
  __pyx_L0:;
3993
 
  Py_DECREF(__pyx_v_prefix);
 
4579
  __Pyx_DECREF(__pyx_v_prefix);
 
4580
  __Pyx_XGIVEREF(__pyx_r);
 
4581
  __Pyx_FinishRefcountContext();
3994
4582
  return __pyx_r;
3995
4583
}
3996
4584
 
3997
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":412
 
4585
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":406
3998
4586
 *         return _buildDescendantPaths(self._c_node, prefix)
3999
4587
 * 
4000
4588
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, char* c_href, char* c_name):             # <<<<<<<<<<<<<<
4005
4593
static INLINE int __pyx_f_4lxml_9objectify__tagMatches(xmlNode *__pyx_v_c_node, char *__pyx_v_c_href, char *__pyx_v_c_name) {
4006
4594
  char *__pyx_v_c_node_href;
4007
4595
  int __pyx_r;
4008
 
  int __pyx_1;
 
4596
  int __pyx_t_1;
 
4597
  __Pyx_SetupRefcountContext("_tagMatches");
4009
4598
 
4010
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":414
 
4599
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":408
4011
4600
 * cdef inline bint _tagMatches(tree.xmlNode* c_node, char* c_href, char* c_name):
4012
4601
 *     cdef char* c_node_href
4013
4602
 *     if c_node.name != c_name:             # <<<<<<<<<<<<<<
4014
4603
 *         return 0
4015
4604
 *     if c_href == NULL:
4016
4605
 */
4017
 
  __pyx_1 = (__pyx_v_c_node->name != __pyx_v_c_name);
4018
 
  if (__pyx_1) {
 
4606
  __pyx_t_1 = (__pyx_v_c_node->name != __pyx_v_c_name);
 
4607
  if (__pyx_t_1) {
4019
4608
 
4020
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":415
 
4609
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":409
4021
4610
 *     cdef char* c_node_href
4022
4611
 *     if c_node.name != c_name:
4023
4612
 *         return 0             # <<<<<<<<<<<<<<
4030
4619
  }
4031
4620
  __pyx_L3:;
4032
4621
 
4033
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":416
 
4622
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":410
4034
4623
 *     if c_node.name != c_name:
4035
4624
 *         return 0
4036
4625
 *     if c_href == NULL:             # <<<<<<<<<<<<<<
4037
4626
 *         return 1
4038
4627
 *     c_node_href = tree._getNs(c_node)
4039
4628
 */
4040
 
  __pyx_1 = (__pyx_v_c_href == NULL);
4041
 
  if (__pyx_1) {
 
4629
  __pyx_t_1 = (__pyx_v_c_href == NULL);
 
4630
  if (__pyx_t_1) {
4042
4631
 
4043
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":417
 
4632
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":411
4044
4633
 *         return 0
4045
4634
 *     if c_href == NULL:
4046
4635
 *         return 1             # <<<<<<<<<<<<<<
4053
4642
  }
4054
4643
  __pyx_L4:;
4055
4644
 
4056
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":418
 
4645
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":412
4057
4646
 *     if c_href == NULL:
4058
4647
 *         return 1
4059
4648
 *     c_node_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
4062
4651
 */
4063
4652
  __pyx_v_c_node_href = _getNs(__pyx_v_c_node);
4064
4653
 
4065
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":419
 
4654
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":413
4066
4655
 *         return 1
4067
4656
 *     c_node_href = tree._getNs(c_node)
4068
4657
 *     if c_node_href == NULL:             # <<<<<<<<<<<<<<
4069
4658
 *         return c_href[0] == c'\0'
4070
4659
 *     return cstd.strcmp(c_node_href, c_href) == 0
4071
4660
 */
4072
 
  __pyx_1 = (__pyx_v_c_node_href == NULL);
4073
 
  if (__pyx_1) {
 
4661
  __pyx_t_1 = (__pyx_v_c_node_href == NULL);
 
4662
  if (__pyx_t_1) {
4074
4663
 
4075
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":420
 
4664
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":414
4076
4665
 *     c_node_href = tree._getNs(c_node)
4077
4666
 *     if c_node_href == NULL:
4078
4667
 *         return c_href[0] == c'\0'             # <<<<<<<<<<<<<<
4085
4674
  }
4086
4675
  __pyx_L5:;
4087
4676
 
4088
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":421
 
4677
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":415
4089
4678
 *     if c_node_href == NULL:
4090
4679
 *         return c_href[0] == c'\0'
4091
4680
 *     return cstd.strcmp(c_node_href, c_href) == 0             # <<<<<<<<<<<<<<
4097
4686
 
4098
4687
  __pyx_r = 0;
4099
4688
  __pyx_L0:;
 
4689
  __Pyx_FinishRefcountContext();
4100
4690
  return __pyx_r;
4101
4691
}
4102
4692
 
4103
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":423
 
4693
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":417
4104
4694
 *     return cstd.strcmp(c_node_href, c_href) == 0
4105
4695
 * 
4106
4696
 * cdef Py_ssize_t _countSiblings(tree.xmlNode* c_start_node):             # <<<<<<<<<<<<<<
4114
4704
  char *__pyx_v_c_tag;
4115
4705
  Py_ssize_t __pyx_v_count;
4116
4706
  Py_ssize_t __pyx_r;
4117
 
  int __pyx_1;
 
4707
  int __pyx_t_1;
 
4708
  __Pyx_SetupRefcountContext("_countSiblings");
4118
4709
 
4119
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":428
 
4710
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":422
4120
4711
 *     cdef char* c_tag
4121
4712
 *     cdef Py_ssize_t count
4122
4713
 *     c_tag  = c_start_node.name             # <<<<<<<<<<<<<<
4125
4716
 */
4126
4717
  __pyx_v_c_tag = __pyx_v_c_start_node->name;
4127
4718
 
4128
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":429
 
4719
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":423
4129
4720
 *     cdef Py_ssize_t count
4130
4721
 *     c_tag  = c_start_node.name
4131
4722
 *     c_href = tree._getNs(c_start_node)             # <<<<<<<<<<<<<<
4134
4725
 */
4135
4726
  __pyx_v_c_href = _getNs(__pyx_v_c_start_node);
4136
4727
 
4137
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":430
 
4728
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":424
4138
4729
 *     c_tag  = c_start_node.name
4139
4730
 *     c_href = tree._getNs(c_start_node)
4140
4731
 *     count = 1             # <<<<<<<<<<<<<<
4143
4734
 */
4144
4735
  __pyx_v_count = 1;
4145
4736
 
4146
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":431
 
4737
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":425
4147
4738
 *     c_href = tree._getNs(c_start_node)
4148
4739
 *     count = 1
4149
4740
 *     c_node = c_start_node.next             # <<<<<<<<<<<<<<
4152
4743
 */
4153
4744
  __pyx_v_c_node = __pyx_v_c_start_node->next;
4154
4745
 
4155
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":432
 
4746
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":426
4156
4747
 *     count = 1
4157
4748
 *     c_node = c_start_node.next
4158
4749
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
4160
4751
 *                _tagMatches(c_node, c_href, c_tag):
4161
4752
 */
4162
4753
  while (1) {
4163
 
    __pyx_1 = (__pyx_v_c_node != NULL);
4164
 
    if (!__pyx_1) break;
 
4754
    __pyx_t_1 = (__pyx_v_c_node != NULL);
 
4755
    if (!__pyx_t_1) break;
4165
4756
 
4166
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":433
 
4757
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":427
4167
4758
 *     c_node = c_start_node.next
4168
4759
 *     while c_node is not NULL:
4169
4760
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
4170
4761
 *                _tagMatches(c_node, c_href, c_tag):
4171
4762
 *             count = count + 1
4172
4763
 */
4173
 
    __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4174
 
    if (__pyx_1) {
 
4764
    if ((__pyx_v_c_node->type == XML_ELEMENT_NODE)) {
4175
4765
 
4176
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":434
 
4766
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":428
4177
4767
 *     while c_node is not NULL:
4178
4768
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4179
4769
 *                _tagMatches(c_node, c_href, c_tag):             # <<<<<<<<<<<<<<
4180
4770
 *             count = count + 1
4181
4771
 *         c_node = c_node.next
4182
4772
 */
4183
 
      __pyx_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag);
 
4773
      __pyx_t_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag);
 
4774
    } else {
 
4775
      __pyx_t_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4184
4776
    }
4185
 
    if (__pyx_1) {
 
4777
    if (__pyx_t_1) {
4186
4778
 
4187
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":435
 
4779
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":429
4188
4780
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4189
4781
 *                _tagMatches(c_node, c_href, c_tag):
4190
4782
 *             count = count + 1             # <<<<<<<<<<<<<<
4196
4788
    }
4197
4789
    __pyx_L5:;
4198
4790
 
4199
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":436
 
4791
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":430
4200
4792
 *                _tagMatches(c_node, c_href, c_tag):
4201
4793
 *             count = count + 1
4202
4794
 *         c_node = c_node.next             # <<<<<<<<<<<<<<
4206
4798
    __pyx_v_c_node = __pyx_v_c_node->next;
4207
4799
  }
4208
4800
 
4209
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":437
 
4801
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":431
4210
4802
 *             count = count + 1
4211
4803
 *         c_node = c_node.next
4212
4804
 *     c_node = c_start_node.prev             # <<<<<<<<<<<<<<
4215
4807
 */
4216
4808
  __pyx_v_c_node = __pyx_v_c_start_node->prev;
4217
4809
 
4218
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":438
 
4810
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":432
4219
4811
 *         c_node = c_node.next
4220
4812
 *     c_node = c_start_node.prev
4221
4813
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
4223
4815
 *                _tagMatches(c_node, c_href, c_tag):
4224
4816
 */
4225
4817
  while (1) {
4226
 
    __pyx_1 = (__pyx_v_c_node != NULL);
4227
 
    if (!__pyx_1) break;
 
4818
    __pyx_t_1 = (__pyx_v_c_node != NULL);
 
4819
    if (!__pyx_t_1) break;
4228
4820
 
4229
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":439
 
4821
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":433
4230
4822
 *     c_node = c_start_node.prev
4231
4823
 *     while c_node is not NULL:
4232
4824
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
4233
4825
 *                _tagMatches(c_node, c_href, c_tag):
4234
4826
 *             count = count + 1
4235
4827
 */
4236
 
    __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4237
 
    if (__pyx_1) {
 
4828
    if ((__pyx_v_c_node->type == XML_ELEMENT_NODE)) {
4238
4829
 
4239
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":440
 
4830
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":434
4240
4831
 *     while c_node is not NULL:
4241
4832
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4242
4833
 *                _tagMatches(c_node, c_href, c_tag):             # <<<<<<<<<<<<<<
4243
4834
 *             count = count + 1
4244
4835
 *         c_node = c_node.prev
4245
4836
 */
4246
 
      __pyx_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag);
 
4837
      __pyx_t_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_tag);
 
4838
    } else {
 
4839
      __pyx_t_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4247
4840
    }
4248
 
    if (__pyx_1) {
 
4841
    if (__pyx_t_1) {
4249
4842
 
4250
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":441
 
4843
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":435
4251
4844
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4252
4845
 *                _tagMatches(c_node, c_href, c_tag):
4253
4846
 *             count = count + 1             # <<<<<<<<<<<<<<
4259
4852
    }
4260
4853
    __pyx_L8:;
4261
4854
 
4262
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":442
 
4855
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":436
4263
4856
 *                _tagMatches(c_node, c_href, c_tag):
4264
4857
 *             count = count + 1
4265
4858
 *         c_node = c_node.prev             # <<<<<<<<<<<<<<
4269
4862
    __pyx_v_c_node = __pyx_v_c_node->prev;
4270
4863
  }
4271
4864
 
4272
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":443
 
4865
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":437
4273
4866
 *             count = count + 1
4274
4867
 *         c_node = c_node.prev
4275
4868
 *     return count             # <<<<<<<<<<<<<<
4281
4874
 
4282
4875
  __pyx_r = 0;
4283
4876
  __pyx_L0:;
 
4877
  __Pyx_FinishRefcountContext();
4284
4878
  return __pyx_r;
4285
4879
}
4286
4880
 
4287
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":445
 
4881
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":439
4288
4882
 *     return count
4289
4883
 * 
4290
4884
 * cdef tree.xmlNode* _findFollowingSibling(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
4295
4889
static  xmlNode *__pyx_f_4lxml_9objectify__findFollowingSibling(xmlNode *__pyx_v_c_node, char *__pyx_v_href, char *__pyx_v_name, Py_ssize_t __pyx_v_index) {
4296
4890
  xmlNode *(*__pyx_v_next)(xmlNode *);
4297
4891
  xmlNode *__pyx_r;
4298
 
  int __pyx_1;
 
4892
  int __pyx_t_1;
 
4893
  __Pyx_SetupRefcountContext("_findFollowingSibling");
4299
4894
 
4300
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":449
 
4895
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":443
4301
4896
 *                                          Py_ssize_t index):
4302
4897
 *     cdef tree.xmlNode* (*next)(tree.xmlNode*)
4303
4898
 *     if index >= 0:             # <<<<<<<<<<<<<<
4304
4899
 *         next = cetree.nextElement
4305
4900
 *     else:
4306
4901
 */
4307
 
  __pyx_1 = (__pyx_v_index >= 0);
4308
 
  if (__pyx_1) {
 
4902
  __pyx_t_1 = (__pyx_v_index >= 0);
 
4903
  if (__pyx_t_1) {
4309
4904
 
4310
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":450
 
4905
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":444
4311
4906
 *     cdef tree.xmlNode* (*next)(tree.xmlNode*)
4312
4907
 *     if index >= 0:
4313
4908
 *         next = cetree.nextElement             # <<<<<<<<<<<<<<
4319
4914
  }
4320
4915
  /*else*/ {
4321
4916
 
4322
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":452
 
4917
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":446
4323
4918
 *         next = cetree.nextElement
4324
4919
 *     else:
4325
4920
 *         index = -1 - index             # <<<<<<<<<<<<<<
4328
4923
 */
4329
4924
    __pyx_v_index = (-1 - __pyx_v_index);
4330
4925
 
4331
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":453
 
4926
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":447
4332
4927
 *     else:
4333
4928
 *         index = -1 - index
4334
4929
 *         next = cetree.previousElement             # <<<<<<<<<<<<<<
4339
4934
  }
4340
4935
  __pyx_L3:;
4341
4936
 
4342
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":454
 
4937
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":448
4343
4938
 *         index = -1 - index
4344
4939
 *         next = cetree.previousElement
4345
4940
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
4347
4942
 *                _tagMatches(c_node, href, name):
4348
4943
 */
4349
4944
  while (1) {
4350
 
    __pyx_1 = (__pyx_v_c_node != NULL);
4351
 
    if (!__pyx_1) break;
 
4945
    __pyx_t_1 = (__pyx_v_c_node != NULL);
 
4946
    if (!__pyx_t_1) break;
4352
4947
 
4353
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":455
 
4948
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":449
4354
4949
 *         next = cetree.previousElement
4355
4950
 *     while c_node is not NULL:
4356
4951
 *         if c_node.type == tree.XML_ELEMENT_NODE and \             # <<<<<<<<<<<<<<
4357
4952
 *                _tagMatches(c_node, href, name):
4358
4953
 *             index = index - 1
4359
4954
 */
4360
 
    __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4361
 
    if (__pyx_1) {
 
4955
    if ((__pyx_v_c_node->type == XML_ELEMENT_NODE)) {
4362
4956
 
4363
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":456
 
4957
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":450
4364
4958
 *     while c_node is not NULL:
4365
4959
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4366
4960
 *                _tagMatches(c_node, href, name):             # <<<<<<<<<<<<<<
4367
4961
 *             index = index - 1
4368
4962
 *             if index < 0:
4369
4963
 */
4370
 
      __pyx_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_href, __pyx_v_name);
 
4964
      __pyx_t_1 = __pyx_f_4lxml_9objectify__tagMatches(__pyx_v_c_node, __pyx_v_href, __pyx_v_name);
 
4965
    } else {
 
4966
      __pyx_t_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
4371
4967
    }
4372
 
    if (__pyx_1) {
 
4968
    if (__pyx_t_1) {
4373
4969
 
4374
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":457
 
4970
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":451
4375
4971
 *         if c_node.type == tree.XML_ELEMENT_NODE and \
4376
4972
 *                _tagMatches(c_node, href, name):
4377
4973
 *             index = index - 1             # <<<<<<<<<<<<<<
4380
4976
 */
4381
4977
      __pyx_v_index = (__pyx_v_index - 1);
4382
4978
 
4383
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":458
 
4979
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":452
4384
4980
 *                _tagMatches(c_node, href, name):
4385
4981
 *             index = index - 1
4386
4982
 *             if index < 0:             # <<<<<<<<<<<<<<
4387
4983
 *                 return c_node
4388
4984
 *         c_node = next(c_node)
4389
4985
 */
4390
 
      __pyx_1 = (__pyx_v_index < 0);
4391
 
      if (__pyx_1) {
 
4986
      __pyx_t_1 = (__pyx_v_index < 0);
 
4987
      if (__pyx_t_1) {
4392
4988
 
4393
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":459
 
4989
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":453
4394
4990
 *             index = index - 1
4395
4991
 *             if index < 0:
4396
4992
 *                 return c_node             # <<<<<<<<<<<<<<
4406
5002
    }
4407
5003
    __pyx_L6:;
4408
5004
 
4409
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":460
 
5005
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":454
4410
5006
 *             if index < 0:
4411
5007
 *                 return c_node
4412
5008
 *         c_node = next(c_node)             # <<<<<<<<<<<<<<
4416
5012
    __pyx_v_c_node = __pyx_v_next(__pyx_v_c_node);
4417
5013
  }
4418
5014
 
4419
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":461
 
5015
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":455
4420
5016
 *                 return c_node
4421
5017
 *         c_node = next(c_node)
4422
5018
 *     return NULL             # <<<<<<<<<<<<<<
4428
5024
 
4429
5025
  __pyx_r = 0;
4430
5026
  __pyx_L0:;
 
5027
  __Pyx_FinishRefcountContext();
4431
5028
  return __pyx_r;
4432
5029
}
4433
5030
 
4434
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":463
 
5031
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":457
4435
5032
 *     return NULL
4436
5033
 * 
4437
5034
 * cdef object _lookupChild(_Element parent, tag):             # <<<<<<<<<<<<<<
4445
5042
  char *__pyx_v_c_href;
4446
5043
  char *__pyx_v_c_tag;
4447
5044
  PyObject *__pyx_v_ns;
4448
 
  PyObject *__pyx_r;
 
5045
  PyObject *__pyx_r = NULL;
4449
5046
  PyObject *__pyx_1 = 0;
4450
5047
  PyObject *__pyx_2 = 0;
4451
5048
  PyObject *__pyx_3 = 0;
4452
 
  int __pyx_4;
4453
 
  Py_INCREF(__pyx_v_tag);
4454
 
  __pyx_v_ns = Py_None; Py_INCREF(Py_None);
 
5049
  PyObject *__pyx_t_1 = NULL;
 
5050
  int __pyx_t_2;
 
5051
  __Pyx_SetupRefcountContext("_lookupChild");
 
5052
  __Pyx_INCREF(__pyx_v_tag);
 
5053
  __pyx_v_ns = Py_None; __Pyx_INCREF(Py_None);
4455
5054
 
4456
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":468
 
5055
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":462
4457
5056
 *     cdef char* c_href
4458
5057
 *     cdef char* c_tag
4459
5058
 *     c_node = parent._c_node             # <<<<<<<<<<<<<<
4462
5061
 */
4463
5062
  __pyx_v_c_node = __pyx_v_parent->_c_node;
4464
5063
 
4465
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":469
 
5064
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":463
4466
5065
 *     cdef char* c_tag
4467
5066
 *     c_node = parent._c_node
4468
5067
 *     ns, tag = cetree.getNsTag(tag)             # <<<<<<<<<<<<<<
4469
5068
 *     c_tag = tree.xmlDictExists(
4470
5069
 *         c_node.doc.dict, _cstr(tag), python.PyString_GET_SIZE(tag))
4471
5070
 */
4472
 
  __pyx_1 = getNsTag(__pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4473
 
  if (PyTuple_CheckExact(__pyx_1) && PyTuple_GET_SIZE(__pyx_1) == 2) {
4474
 
    PyObject* tuple = __pyx_1;
4475
 
    __pyx_3 = PyTuple_GET_ITEM(tuple, 0);
4476
 
    Py_INCREF(__pyx_3);
4477
 
    Py_DECREF(__pyx_v_ns);
4478
 
    __pyx_v_ns = __pyx_3;
4479
 
    __pyx_3 = 0;
4480
 
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1);
4481
 
    Py_INCREF(__pyx_3);
4482
 
    Py_DECREF(__pyx_v_tag);
4483
 
    __pyx_v_tag = __pyx_3;
4484
 
    __pyx_3 = 0;
4485
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4486
 
  }
4487
 
  else {
4488
 
    __pyx_2 = PyObject_GetIter(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4489
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4490
 
    __pyx_3 = __Pyx_UnpackItem(__pyx_2, 0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4491
 
    Py_DECREF(__pyx_v_ns);
4492
 
    __pyx_v_ns = __pyx_3;
4493
 
    __pyx_3 = 0;
4494
 
    __pyx_3 = __Pyx_UnpackItem(__pyx_2, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4495
 
    Py_DECREF(__pyx_v_tag);
4496
 
    __pyx_v_tag = __pyx_3;
4497
 
    __pyx_3 = 0;
4498
 
    if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4499
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5071
  __pyx_t_1 = getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5072
  __Pyx_GOTREF(__pyx_t_1);
 
5073
  if (PyTuple_CheckExact(__pyx_t_1) && likely(PyTuple_GET_SIZE(__pyx_t_1) == 2)) {
 
5074
    PyObject* tuple = __pyx_t_1;
 
5075
    __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
5076
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
5077
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5078
    __Pyx_DECREF(__pyx_v_ns);
 
5079
    __pyx_v_ns = __pyx_2;
 
5080
    __pyx_2 = 0;
 
5081
    __Pyx_DECREF(__pyx_v_tag);
 
5082
    __pyx_v_tag = __pyx_3;
 
5083
    __pyx_3 = 0;
 
5084
  } else {
 
5085
    __pyx_1 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5086
    __Pyx_GOTREF(__pyx_1);
 
5087
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5088
    __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5089
    __Pyx_GOTREF(__pyx_2);
 
5090
    __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5091
    __Pyx_GOTREF(__pyx_3);
 
5092
    if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5093
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
5094
    __Pyx_DECREF(__pyx_v_ns);
 
5095
    __pyx_v_ns = __pyx_2;
 
5096
    __pyx_2 = 0;
 
5097
    __Pyx_DECREF(__pyx_v_tag);
 
5098
    __pyx_v_tag = __pyx_3;
 
5099
    __pyx_3 = 0;
4500
5100
  }
4501
5101
 
4502
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":471
 
5102
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":465
4503
5103
 *     ns, tag = cetree.getNsTag(tag)
4504
5104
 *     c_tag = tree.xmlDictExists(
4505
5105
 *         c_node.doc.dict, _cstr(tag), python.PyString_GET_SIZE(tag))             # <<<<<<<<<<<<<<
4508
5108
 */
4509
5109
  __pyx_v_c_tag = xmlDictExists(__pyx_v_c_node->doc->dict, PyString_AS_STRING(__pyx_v_tag), PyString_GET_SIZE(__pyx_v_tag));
4510
5110
 
4511
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":472
 
5111
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":466
4512
5112
 *     c_tag = tree.xmlDictExists(
4513
5113
 *         c_node.doc.dict, _cstr(tag), python.PyString_GET_SIZE(tag))
4514
5114
 *     if c_tag is NULL:             # <<<<<<<<<<<<<<
4515
5115
 *         return None
4516
5116
 *     if ns is None:
4517
5117
 */
4518
 
  __pyx_4 = (__pyx_v_c_tag == NULL);
4519
 
  if (__pyx_4) {
 
5118
  __pyx_t_2 = (__pyx_v_c_tag == NULL);
 
5119
  if (__pyx_t_2) {
4520
5120
 
4521
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":473
 
5121
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":467
4522
5122
 *         c_node.doc.dict, _cstr(tag), python.PyString_GET_SIZE(tag))
4523
5123
 *     if c_tag is NULL:
4524
5124
 *         return None             # <<<<<<<<<<<<<<
4525
5125
 *     if ns is None:
4526
5126
 *         c_href = tree._getNs(c_node)
4527
5127
 */
4528
 
    Py_INCREF(Py_None);
 
5128
    __Pyx_XDECREF(__pyx_r);
 
5129
    __Pyx_INCREF(Py_None);
4529
5130
    __pyx_r = Py_None;
4530
5131
    goto __pyx_L0;
4531
5132
    goto __pyx_L3;
4532
5133
  }
4533
5134
  __pyx_L3:;
4534
5135
 
4535
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":474
 
5136
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":468
4536
5137
 *     if c_tag is NULL:
4537
5138
 *         return None
4538
5139
 *     if ns is None:             # <<<<<<<<<<<<<<
4539
5140
 *         c_href = tree._getNs(c_node)
4540
5141
 *     else:
4541
5142
 */
4542
 
  __pyx_4 = (__pyx_v_ns == Py_None);
4543
 
  if (__pyx_4) {
 
5143
  __pyx_t_2 = (__pyx_v_ns == Py_None);
 
5144
  if (__pyx_t_2) {
4544
5145
 
4545
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":475
 
5146
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":469
4546
5147
 *         return None
4547
5148
 *     if ns is None:
4548
5149
 *         c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
4554
5155
  }
4555
5156
  /*else*/ {
4556
5157
 
4557
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":477
 
5158
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":471
4558
5159
 *         c_href = tree._getNs(c_node)
4559
5160
 *     else:
4560
5161
 *         c_href = _cstr(ns)             # <<<<<<<<<<<<<<
4565
5166
  }
4566
5167
  __pyx_L4:;
4567
5168
 
4568
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":478
 
5169
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":472
4569
5170
 *     else:
4570
5171
 *         c_href = _cstr(ns)
4571
5172
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)             # <<<<<<<<<<<<<<
4574
5175
 */
4575
5176
  __pyx_v_c_result = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node->children, __pyx_v_c_href, __pyx_v_c_tag, 0);
4576
5177
 
4577
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":479
 
5178
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":473
4578
5179
 *         c_href = _cstr(ns)
4579
5180
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
4580
5181
 *     if c_result is NULL:             # <<<<<<<<<<<<<<
4581
5182
 *         return None
4582
5183
 *     return elementFactory(parent._doc, c_result)
4583
5184
 */
4584
 
  __pyx_4 = (__pyx_v_c_result == NULL);
4585
 
  if (__pyx_4) {
 
5185
  __pyx_t_2 = (__pyx_v_c_result == NULL);
 
5186
  if (__pyx_t_2) {
4586
5187
 
4587
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":480
 
5188
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":474
4588
5189
 *     c_result = _findFollowingSibling(c_node.children, c_href, c_tag, 0)
4589
5190
 *     if c_result is NULL:
4590
5191
 *         return None             # <<<<<<<<<<<<<<
4591
5192
 *     return elementFactory(parent._doc, c_result)
4592
5193
 * 
4593
5194
 */
4594
 
    Py_INCREF(Py_None);
 
5195
    __Pyx_XDECREF(__pyx_r);
 
5196
    __Pyx_INCREF(Py_None);
4595
5197
    __pyx_r = Py_None;
4596
5198
    goto __pyx_L0;
4597
5199
    goto __pyx_L5;
4598
5200
  }
4599
5201
  __pyx_L5:;
4600
5202
 
4601
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":481
 
5203
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":475
4602
5204
 *     if c_result is NULL:
4603
5205
 *         return None
4604
5206
 *     return elementFactory(parent._doc, c_result)             # <<<<<<<<<<<<<<
4605
5207
 * 
4606
5208
 * cdef object _lookupChildOrRaise(_Element parent, tag):
4607
5209
 */
4608
 
  __pyx_3 = ((PyObject *)elementFactory(__pyx_v_parent->_doc, __pyx_v_c_result)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4609
 
  __pyx_r = __pyx_3;
4610
 
  __pyx_3 = 0;
 
5210
  __Pyx_XDECREF(__pyx_r);
 
5211
  __pyx_t_1 = ((PyObject *)elementFactory(__pyx_v_parent->_doc, __pyx_v_c_result)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5212
  __Pyx_GOTREF(__pyx_t_1);
 
5213
  __pyx_r = __pyx_t_1;
 
5214
  __pyx_t_1 = 0;
4611
5215
  goto __pyx_L0;
4612
5216
 
4613
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
5217
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4614
5218
  goto __pyx_L0;
4615
5219
  __pyx_L1_error:;
4616
 
  Py_XDECREF(__pyx_1);
4617
 
  Py_XDECREF(__pyx_2);
4618
 
  Py_XDECREF(__pyx_3);
 
5220
  __Pyx_XDECREF(__pyx_1);
 
5221
  __Pyx_XDECREF(__pyx_2);
 
5222
  __Pyx_XDECREF(__pyx_3);
 
5223
  __Pyx_XDECREF(__pyx_t_1);
4619
5224
  __Pyx_AddTraceback("lxml.objectify._lookupChild");
4620
5225
  __pyx_r = 0;
4621
5226
  __pyx_L0:;
4622
 
  Py_DECREF(__pyx_v_ns);
4623
 
  Py_DECREF(__pyx_v_tag);
 
5227
  __Pyx_DECREF(__pyx_v_ns);
 
5228
  __Pyx_DECREF(__pyx_v_tag);
 
5229
  __Pyx_XGIVEREF(__pyx_r);
 
5230
  __Pyx_FinishRefcountContext();
4624
5231
  return __pyx_r;
4625
5232
}
4626
5233
 
4627
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":483
 
5234
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":477
4628
5235
 *     return elementFactory(parent._doc, c_result)
4629
5236
 * 
4630
5237
 * cdef object _lookupChildOrRaise(_Element parent, tag):             # <<<<<<<<<<<<<<
4634
5241
 
4635
5242
static  PyObject *__pyx_f_4lxml_9objectify__lookupChildOrRaise(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag) {
4636
5243
  PyObject *__pyx_v_element;
4637
 
  PyObject *__pyx_r;
4638
 
  PyObject *__pyx_1 = 0;
4639
 
  int __pyx_2;
 
5244
  PyObject *__pyx_r = NULL;
4640
5245
  PyObject *__pyx_t_1 = NULL;
4641
 
  __pyx_v_element = Py_None; Py_INCREF(Py_None);
 
5246
  int __pyx_t_2;
 
5247
  PyObject *__pyx_t_3 = NULL;
 
5248
  __Pyx_SetupRefcountContext("_lookupChildOrRaise");
 
5249
  __pyx_v_element = Py_None; __Pyx_INCREF(Py_None);
4642
5250
 
4643
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":484
 
5251
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":478
4644
5252
 * 
4645
5253
 * cdef object _lookupChildOrRaise(_Element parent, tag):
4646
5254
 *     element = _lookupChild(parent, tag)             # <<<<<<<<<<<<<<
4647
5255
 *     if element is None:
4648
5256
 *         raise AttributeError, \
4649
5257
 */
4650
 
  __pyx_1 = __pyx_f_4lxml_9objectify__lookupChild(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4651
 
  Py_DECREF(__pyx_v_element);
4652
 
  __pyx_v_element = __pyx_1;
4653
 
  __pyx_1 = 0;
 
5258
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lookupChild(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5259
  __Pyx_GOTREF(__pyx_t_1);
 
5260
  __Pyx_DECREF(__pyx_v_element);
 
5261
  __pyx_v_element = __pyx_t_1;
 
5262
  __pyx_t_1 = 0;
4654
5263
 
4655
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":485
 
5264
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":479
4656
5265
 * cdef object _lookupChildOrRaise(_Element parent, tag):
4657
5266
 *     element = _lookupChild(parent, tag)
4658
5267
 *     if element is None:             # <<<<<<<<<<<<<<
4659
5268
 *         raise AttributeError, \
4660
5269
 *             u"no such child: " + _buildChildTag(parent, tag)
4661
5270
 */
4662
 
  __pyx_2 = (__pyx_v_element == Py_None);
4663
 
  if (__pyx_2) {
 
5271
  __pyx_t_2 = (__pyx_v_element == Py_None);
 
5272
  if (__pyx_t_2) {
4664
5273
 
4665
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":487
 
5274
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":481
4666
5275
 *     if element is None:
4667
5276
 *         raise AttributeError, \
4668
5277
 *             u"no such child: " + _buildChildTag(parent, tag)             # <<<<<<<<<<<<<<
4669
5278
 *     return element
4670
5279
 * 
4671
5280
 */
4672
 
    __pyx_1 = __pyx_f_4lxml_9objectify__buildChildTag(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4673
 
    __pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_kp_681), __pyx_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4674
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4675
 
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_1, 0);
4676
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4677
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5281
    __pyx_t_1 = __pyx_f_4lxml_9objectify__buildChildTag(__pyx_v_parent, __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5282
    __Pyx_GOTREF(__pyx_t_1);
 
5283
    __pyx_t_3 = PyNumber_Add(((PyObject *)__pyx_kp_748), __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5284
    __Pyx_GOTREF(__pyx_t_3);
 
5285
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5286
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_3, 0);
 
5287
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
5288
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4678
5289
    goto __pyx_L3;
4679
5290
  }
4680
5291
  __pyx_L3:;
4681
5292
 
4682
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":488
 
5293
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":482
4683
5294
 *         raise AttributeError, \
4684
5295
 *             u"no such child: " + _buildChildTag(parent, tag)
4685
5296
 *     return element             # <<<<<<<<<<<<<<
4686
5297
 * 
4687
5298
 * cdef object _buildChildTag(_Element parent, tag):
4688
5299
 */
4689
 
  Py_INCREF(__pyx_v_element);
 
5300
  __Pyx_XDECREF(__pyx_r);
 
5301
  __Pyx_INCREF(__pyx_v_element);
4690
5302
  __pyx_r = __pyx_v_element;
4691
5303
  goto __pyx_L0;
4692
5304
 
4693
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
5305
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4694
5306
  goto __pyx_L0;
4695
5307
  __pyx_L1_error:;
4696
 
  Py_XDECREF(__pyx_1);
 
5308
  __Pyx_XDECREF(__pyx_t_1);
 
5309
  __Pyx_XDECREF(__pyx_t_3);
4697
5310
  __Pyx_AddTraceback("lxml.objectify._lookupChildOrRaise");
4698
5311
  __pyx_r = 0;
4699
5312
  __pyx_L0:;
4700
 
  Py_DECREF(__pyx_v_element);
 
5313
  __Pyx_DECREF(__pyx_v_element);
 
5314
  __Pyx_XGIVEREF(__pyx_r);
 
5315
  __Pyx_FinishRefcountContext();
4701
5316
  return __pyx_r;
4702
5317
}
4703
5318
 
4704
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":490
 
5319
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":484
4705
5320
 *     return element
4706
5321
 * 
4707
5322
 * cdef object _buildChildTag(_Element parent, tag):             # <<<<<<<<<<<<<<
4713
5328
  char *__pyx_v_c_href;
4714
5329
  char *__pyx_v_c_tag;
4715
5330
  PyObject *__pyx_v_ns;
4716
 
  PyObject *__pyx_r;
 
5331
  PyObject *__pyx_r = NULL;
4717
5332
  PyObject *__pyx_1 = 0;
4718
5333
  PyObject *__pyx_2 = 0;
4719
5334
  PyObject *__pyx_3 = 0;
4720
 
  int __pyx_4;
4721
 
  Py_INCREF(__pyx_v_tag);
4722
 
  __pyx_v_ns = Py_None; Py_INCREF(Py_None);
 
5335
  PyObject *__pyx_t_1 = NULL;
 
5336
  int __pyx_t_2;
 
5337
  __Pyx_SetupRefcountContext("_buildChildTag");
 
5338
  __Pyx_INCREF(__pyx_v_tag);
 
5339
  __pyx_v_ns = Py_None; __Pyx_INCREF(Py_None);
4723
5340
 
4724
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":493
 
5341
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":487
4725
5342
 *     cdef char* c_href
4726
5343
 *     cdef char* c_tag
4727
5344
 *     ns, tag = cetree.getNsTag(tag)             # <<<<<<<<<<<<<<
4728
5345
 *     c_tag = _cstr(tag)
4729
5346
 *     if ns is None:
4730
5347
 */
4731
 
  __pyx_1 = getNsTag(__pyx_v_tag); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4732
 
  if (PyTuple_CheckExact(__pyx_1) && PyTuple_GET_SIZE(__pyx_1) == 2) {
4733
 
    PyObject* tuple = __pyx_1;
4734
 
    __pyx_3 = PyTuple_GET_ITEM(tuple, 0);
4735
 
    Py_INCREF(__pyx_3);
4736
 
    Py_DECREF(__pyx_v_ns);
4737
 
    __pyx_v_ns = __pyx_3;
4738
 
    __pyx_3 = 0;
4739
 
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1);
4740
 
    Py_INCREF(__pyx_3);
4741
 
    Py_DECREF(__pyx_v_tag);
4742
 
    __pyx_v_tag = __pyx_3;
4743
 
    __pyx_3 = 0;
4744
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4745
 
  }
4746
 
  else {
4747
 
    __pyx_2 = PyObject_GetIter(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4748
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
4749
 
    __pyx_3 = __Pyx_UnpackItem(__pyx_2, 0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4750
 
    Py_DECREF(__pyx_v_ns);
4751
 
    __pyx_v_ns = __pyx_3;
4752
 
    __pyx_3 = 0;
4753
 
    __pyx_3 = __Pyx_UnpackItem(__pyx_2, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4754
 
    Py_DECREF(__pyx_v_tag);
4755
 
    __pyx_v_tag = __pyx_3;
4756
 
    __pyx_3 = 0;
4757
 
    if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4758
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5348
  __pyx_t_1 = getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5349
  __Pyx_GOTREF(__pyx_t_1);
 
5350
  if (PyTuple_CheckExact(__pyx_t_1) && likely(PyTuple_GET_SIZE(__pyx_t_1) == 2)) {
 
5351
    PyObject* tuple = __pyx_t_1;
 
5352
    __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
5353
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
5354
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5355
    __Pyx_DECREF(__pyx_v_ns);
 
5356
    __pyx_v_ns = __pyx_2;
 
5357
    __pyx_2 = 0;
 
5358
    __Pyx_DECREF(__pyx_v_tag);
 
5359
    __pyx_v_tag = __pyx_3;
 
5360
    __pyx_3 = 0;
 
5361
  } else {
 
5362
    __pyx_1 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5363
    __Pyx_GOTREF(__pyx_1);
 
5364
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
5365
    __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5366
    __Pyx_GOTREF(__pyx_2);
 
5367
    __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5368
    __Pyx_GOTREF(__pyx_3);
 
5369
    if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5370
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
5371
    __Pyx_DECREF(__pyx_v_ns);
 
5372
    __pyx_v_ns = __pyx_2;
 
5373
    __pyx_2 = 0;
 
5374
    __Pyx_DECREF(__pyx_v_tag);
 
5375
    __pyx_v_tag = __pyx_3;
 
5376
    __pyx_3 = 0;
4759
5377
  }
4760
5378
 
4761
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":494
 
5379
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":488
4762
5380
 *     cdef char* c_tag
4763
5381
 *     ns, tag = cetree.getNsTag(tag)
4764
5382
 *     c_tag = _cstr(tag)             # <<<<<<<<<<<<<<
4767
5385
 */
4768
5386
  __pyx_v_c_tag = PyString_AS_STRING(__pyx_v_tag);
4769
5387
 
4770
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":495
 
5388
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":489
4771
5389
 *     ns, tag = cetree.getNsTag(tag)
4772
5390
 *     c_tag = _cstr(tag)
4773
5391
 *     if ns is None:             # <<<<<<<<<<<<<<
4774
5392
 *         c_href = tree._getNs(parent._c_node)
4775
5393
 *     else:
4776
5394
 */
4777
 
  __pyx_4 = (__pyx_v_ns == Py_None);
4778
 
  if (__pyx_4) {
 
5395
  __pyx_t_2 = (__pyx_v_ns == Py_None);
 
5396
  if (__pyx_t_2) {
4779
5397
 
4780
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":496
 
5398
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":490
4781
5399
 *     c_tag = _cstr(tag)
4782
5400
 *     if ns is None:
4783
5401
 *         c_href = tree._getNs(parent._c_node)             # <<<<<<<<<<<<<<
4789
5407
  }
4790
5408
  /*else*/ {
4791
5409
 
4792
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":498
 
5410
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":492
4793
5411
 *         c_href = tree._getNs(parent._c_node)
4794
5412
 *     else:
4795
5413
 *         c_href = _cstr(ns)             # <<<<<<<<<<<<<<
4800
5418
  }
4801
5419
  __pyx_L3:;
4802
5420
 
4803
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":499
 
5421
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":493
4804
5422
 *     else:
4805
5423
 *         c_href = _cstr(ns)
4806
5424
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)             # <<<<<<<<<<<<<<
4807
5425
 * 
4808
 
 * cdef object _replaceElement(_Element element, value):
 
5426
 * cdef _replaceElement(_Element element, value):
4809
5427
 */
4810
 
  __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4811
 
  __pyx_r = __pyx_3;
4812
 
  __pyx_3 = 0;
 
5428
  __Pyx_XDECREF(__pyx_r);
 
5429
  __pyx_t_1 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5430
  __Pyx_GOTREF(__pyx_t_1);
 
5431
  __pyx_r = __pyx_t_1;
 
5432
  __pyx_t_1 = 0;
4813
5433
  goto __pyx_L0;
4814
5434
 
4815
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
5435
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4816
5436
  goto __pyx_L0;
4817
5437
  __pyx_L1_error:;
4818
 
  Py_XDECREF(__pyx_1);
4819
 
  Py_XDECREF(__pyx_2);
4820
 
  Py_XDECREF(__pyx_3);
 
5438
  __Pyx_XDECREF(__pyx_1);
 
5439
  __Pyx_XDECREF(__pyx_2);
 
5440
  __Pyx_XDECREF(__pyx_3);
 
5441
  __Pyx_XDECREF(__pyx_t_1);
4821
5442
  __Pyx_AddTraceback("lxml.objectify._buildChildTag");
4822
5443
  __pyx_r = 0;
4823
5444
  __pyx_L0:;
4824
 
  Py_DECREF(__pyx_v_ns);
4825
 
  Py_DECREF(__pyx_v_tag);
 
5445
  __Pyx_DECREF(__pyx_v_ns);
 
5446
  __Pyx_DECREF(__pyx_v_tag);
 
5447
  __Pyx_XGIVEREF(__pyx_r);
 
5448
  __Pyx_FinishRefcountContext();
4826
5449
  return __pyx_r;
4827
5450
}
4828
5451
 
4829
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":501
 
5452
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":495
4830
5453
 *     return cetree.namespacedNameFromNsName(c_href, c_tag)
4831
5454
 * 
4832
 
 * cdef object _replaceElement(_Element element, value):             # <<<<<<<<<<<<<<
 
5455
 * cdef _replaceElement(_Element element, value):             # <<<<<<<<<<<<<<
4833
5456
 *     cdef _Element new_element
4834
5457
 *     if isinstance(value, _Element):
4835
5458
 */
4836
5459
 
4837
5460
static  PyObject *__pyx_f_4lxml_9objectify__replaceElement(struct LxmlElement *__pyx_v_element, PyObject *__pyx_v_value) {
4838
5461
  struct LxmlElement *__pyx_v_new_element;
4839
 
  PyObject *__pyx_r;
4840
 
  int __pyx_1;
4841
 
  PyObject *__pyx_2 = 0;
4842
 
  PyObject *__pyx_3 = 0;
4843
 
  PyObject *__pyx_4 = 0;
4844
 
  __pyx_v_new_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
5462
  PyObject *__pyx_r = NULL;
 
5463
  int __pyx_t_1;
 
5464
  PyObject *__pyx_t_2 = NULL;
 
5465
  PyObject *__pyx_t_3 = NULL;
 
5466
  PyObject *__pyx_t_4 = NULL;
 
5467
  __Pyx_SetupRefcountContext("_replaceElement");
 
5468
  __pyx_v_new_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
4845
5469
 
4846
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":503
4847
 
 * cdef object _replaceElement(_Element element, value):
 
5470
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":497
 
5471
 * cdef _replaceElement(_Element element, value):
4848
5472
 *     cdef _Element new_element
4849
5473
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
4850
5474
 *         # deep copy the new element
4851
5475
 *         new_element = cetree.deepcopyNodeToDocument(
4852
5476
 */
4853
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
4854
 
  if (__pyx_1) {
 
5477
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
5478
  if (__pyx_t_1) {
4855
5479
 
4856
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":506
 
5480
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":500
4857
5481
 *         # deep copy the new element
4858
5482
 *         new_element = cetree.deepcopyNodeToDocument(
4859
5483
 *             element._doc, (<_Element>value)._c_node)             # <<<<<<<<<<<<<<
4860
5484
 *         new_element.tag = element.tag
4861
5485
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
4862
5486
 */
4863
 
    __pyx_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_element->_doc, ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4864
 
    Py_DECREF(((PyObject *)__pyx_v_new_element));
4865
 
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_2);
4866
 
    __pyx_2 = 0;
 
5487
    __pyx_t_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_element->_doc, ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5488
    __Pyx_GOTREF(__pyx_t_2);
 
5489
    __Pyx_DECREF(((PyObject *)__pyx_v_new_element));
 
5490
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_2);
 
5491
    __pyx_t_2 = 0;
4867
5492
 
4868
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":507
 
5493
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":501
4869
5494
 *         new_element = cetree.deepcopyNodeToDocument(
4870
5495
 *             element._doc, (<_Element>value)._c_node)
4871
5496
 *         new_element.tag = element.tag             # <<<<<<<<<<<<<<
4872
5497
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
4873
5498
 *         element[:] = value
4874
5499
 */
4875
 
    __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4876
 
    if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_kp_tag, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4877
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5500
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5501
    __Pyx_GOTREF(__pyx_t_2);
 
5502
    if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_kp_tag, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5503
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4878
5504
    goto __pyx_L3;
4879
5505
  }
4880
5506
 
4881
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":508
 
5507
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":502
4882
5508
 *             element._doc, (<_Element>value)._c_node)
4883
5509
 *         new_element.tag = element.tag
4884
5510
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):             # <<<<<<<<<<<<<<
4885
5511
 *         element[:] = value
4886
5512
 *         return
4887
5513
 */
4888
 
  __pyx_1 = PyList_Check(__pyx_v_value);
4889
 
  if (!__pyx_1) {
4890
 
    __pyx_1 = PyTuple_Check(__pyx_v_value);
 
5514
  if (!PyList_Check(__pyx_v_value)) {
 
5515
    __pyx_t_1 = PyTuple_Check(__pyx_v_value);
 
5516
  } else {
 
5517
    __pyx_t_1 = PyList_Check(__pyx_v_value);
4891
5518
  }
4892
 
  if (__pyx_1) {
 
5519
  if (__pyx_t_1) {
4893
5520
 
4894
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":509
 
5521
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":503
4895
5522
 *         new_element.tag = element.tag
4896
5523
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
4897
5524
 *         element[:] = value             # <<<<<<<<<<<<<<
4898
5525
 *         return
4899
5526
 *     else:
4900
5527
 */
4901
 
    if (PySequence_SetSlice(((PyObject *)__pyx_v_element), 0, PY_SSIZE_T_MAX, __pyx_v_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5528
    if (PySequence_SetSlice(((PyObject *)__pyx_v_element), 0, PY_SSIZE_T_MAX, __pyx_v_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4902
5529
 
4903
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":510
 
5530
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":504
4904
5531
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
4905
5532
 *         element[:] = value
4906
5533
 *         return             # <<<<<<<<<<<<<<
4907
5534
 *     else:
4908
5535
 *         new_element = element.makeelement(element.tag)
4909
5536
 */
4910
 
    __pyx_r = Py_None; Py_INCREF(Py_None);
 
5537
    __Pyx_XDECREF(__pyx_r);
 
5538
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4911
5539
    goto __pyx_L0;
4912
5540
    goto __pyx_L3;
4913
5541
  }
4914
5542
  /*else*/ {
4915
5543
 
4916
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":512
 
5544
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":506
4917
5545
 *         return
4918
5546
 *     else:
4919
5547
 *         new_element = element.makeelement(element.tag)             # <<<<<<<<<<<<<<
4920
5548
 *         _setElementValue(new_element, value)
4921
5549
 *     element.getparent().replace(element, new_element)
4922
5550
 */
4923
 
    __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_makeelement); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4924
 
    __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4925
 
    __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4926
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
4927
 
    __pyx_3 = 0;
4928
 
    __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4929
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
4930
 
    Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
4931
 
    if (!(__Pyx_TypeTest(__pyx_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4932
 
    Py_DECREF(((PyObject *)__pyx_v_new_element));
4933
 
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_3);
4934
 
    __pyx_3 = 0;
 
5551
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_makeelement); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5552
    __Pyx_GOTREF(__pyx_t_2);
 
5553
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5554
    __Pyx_GOTREF(__pyx_t_3);
 
5555
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5556
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
5557
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
 
5558
    __Pyx_GIVEREF(__pyx_t_3);
 
5559
    __pyx_t_3 = 0;
 
5560
    __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5561
    __Pyx_GOTREF(__pyx_t_3);
 
5562
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
5563
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
5564
    if (!(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5565
    __Pyx_DECREF(((PyObject *)__pyx_v_new_element));
 
5566
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_3);
 
5567
    __pyx_t_3 = 0;
4935
5568
 
4936
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":513
 
5569
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":507
4937
5570
 *     else:
4938
5571
 *         new_element = element.makeelement(element.tag)
4939
5572
 *         _setElementValue(new_element, value)             # <<<<<<<<<<<<<<
4940
5573
 *     element.getparent().replace(element, new_element)
4941
5574
 * 
4942
5575
 */
4943
 
    __pyx_2 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4944
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5576
    __pyx_t_3 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5577
    __Pyx_GOTREF(__pyx_t_3);
 
5578
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4945
5579
  }
4946
5580
  __pyx_L3:;
4947
5581
 
4948
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":514
 
5582
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":508
4949
5583
 *         new_element = element.makeelement(element.tag)
4950
5584
 *         _setElementValue(new_element, value)
4951
5585
 *     element.getparent().replace(element, new_element)             # <<<<<<<<<<<<<<
4952
5586
 * 
4953
 
 * cdef object _appendValue(_Element parent, tag, value):
 
5587
 * cdef _appendValue(_Element parent, tag, value):
4954
5588
 */
4955
 
  __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_getparent); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4956
 
  __pyx_3 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4957
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
4958
 
  __pyx_2 = PyObject_GetAttr(__pyx_3, __pyx_kp_replace); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4959
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
4960
 
  __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4961
 
  Py_INCREF(((PyObject *)__pyx_v_element));
4962
 
  PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)__pyx_v_element));
4963
 
  Py_INCREF(((PyObject *)__pyx_v_new_element));
4964
 
  PyTuple_SET_ITEM(__pyx_4, 1, ((PyObject *)__pyx_v_new_element));
4965
 
  __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
4966
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
4967
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
4968
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
5589
  __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_getparent); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5590
  __Pyx_GOTREF(__pyx_t_3);
 
5591
  __pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5592
  __Pyx_GOTREF(__pyx_t_4);
 
5593
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
5594
  __pyx_t_3 = PyObject_GetAttr(__pyx_t_4, __pyx_kp_replace); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5595
  __Pyx_GOTREF(__pyx_t_3);
 
5596
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
5597
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5598
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
5599
  __Pyx_INCREF(((PyObject *)__pyx_v_element));
 
5600
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_element));
 
5601
  __Pyx_GIVEREF(((PyObject *)__pyx_v_element));
 
5602
  __Pyx_INCREF(((PyObject *)__pyx_v_new_element));
 
5603
  PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_new_element));
 
5604
  __Pyx_GIVEREF(((PyObject *)__pyx_v_new_element));
 
5605
  __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5606
  __Pyx_GOTREF(__pyx_t_2);
 
5607
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
5608
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
5609
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4969
5610
 
4970
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
5611
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
4971
5612
  goto __pyx_L0;
4972
5613
  __pyx_L1_error:;
4973
 
  Py_XDECREF(__pyx_2);
4974
 
  Py_XDECREF(__pyx_3);
4975
 
  Py_XDECREF(__pyx_4);
 
5614
  __Pyx_XDECREF(__pyx_t_2);
 
5615
  __Pyx_XDECREF(__pyx_t_3);
 
5616
  __Pyx_XDECREF(__pyx_t_4);
4976
5617
  __Pyx_AddTraceback("lxml.objectify._replaceElement");
4977
5618
  __pyx_r = 0;
4978
5619
  __pyx_L0:;
4979
 
  Py_DECREF(__pyx_v_new_element);
 
5620
  __Pyx_DECREF((PyObject *)__pyx_v_new_element);
 
5621
  __Pyx_XGIVEREF(__pyx_r);
 
5622
  __Pyx_FinishRefcountContext();
4980
5623
  return __pyx_r;
4981
5624
}
4982
5625
 
4983
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":516
 
5626
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":510
4984
5627
 *     element.getparent().replace(element, new_element)
4985
5628
 * 
4986
 
 * cdef object _appendValue(_Element parent, tag, value):             # <<<<<<<<<<<<<<
 
5629
 * cdef _appendValue(_Element parent, tag, value):             # <<<<<<<<<<<<<<
4987
5630
 *     cdef _Element new_element
4988
5631
 *     if isinstance(value, _Element):
4989
5632
 */
4991
5634
static  PyObject *__pyx_f_4lxml_9objectify__appendValue(struct LxmlElement *__pyx_v_parent, PyObject *__pyx_v_tag, PyObject *__pyx_v_value) {
4992
5635
  struct LxmlElement *__pyx_v_new_element;
4993
5636
  PyObject *__pyx_v_item;
4994
 
  PyObject *__pyx_r;
4995
 
  int __pyx_1;
4996
 
  PyObject *__pyx_2 = 0;
4997
 
  Py_ssize_t __pyx_3 = 0;
4998
 
  PyObject *__pyx_4 = 0;
4999
 
  __pyx_v_new_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
5000
 
  __pyx_v_item = Py_None; Py_INCREF(Py_None);
 
5637
  PyObject *__pyx_r = NULL;
 
5638
  int __pyx_t_1;
 
5639
  PyObject *__pyx_t_2 = NULL;
 
5640
  Py_ssize_t __pyx_t_3;
 
5641
  PyObject *__pyx_t_4 = NULL;
 
5642
  __Pyx_SetupRefcountContext("_appendValue");
 
5643
  __pyx_v_new_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
5644
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
5001
5645
 
5002
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":518
5003
 
 * cdef object _appendValue(_Element parent, tag, value):
 
5646
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":512
 
5647
 * cdef _appendValue(_Element parent, tag, value):
5004
5648
 *     cdef _Element new_element
5005
5649
 *     if isinstance(value, _Element):             # <<<<<<<<<<<<<<
5006
5650
 *         # deep copy the new element
5007
5651
 *         new_element = cetree.deepcopyNodeToDocument(
5008
5652
 */
5009
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
5010
 
  if (__pyx_1) {
 
5653
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
5654
  if (__pyx_t_1) {
5011
5655
 
5012
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":521
 
5656
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":515
5013
5657
 *         # deep copy the new element
5014
5658
 *         new_element = cetree.deepcopyNodeToDocument(
5015
5659
 *             parent._doc, (<_Element>value)._c_node)             # <<<<<<<<<<<<<<
5016
5660
 *         new_element.tag = tag
5017
5661
 *         cetree.appendChild(parent, new_element)
5018
5662
 */
5019
 
    __pyx_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_parent->_doc, ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5020
 
    Py_DECREF(((PyObject *)__pyx_v_new_element));
5021
 
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_2);
5022
 
    __pyx_2 = 0;
 
5663
    __pyx_t_2 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_parent->_doc, ((struct LxmlElement *)__pyx_v_value)->_c_node)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5664
    __Pyx_GOTREF(__pyx_t_2);
 
5665
    __Pyx_DECREF(((PyObject *)__pyx_v_new_element));
 
5666
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_2);
 
5667
    __pyx_t_2 = 0;
5023
5668
 
5024
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":522
 
5669
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":516
5025
5670
 *         new_element = cetree.deepcopyNodeToDocument(
5026
5671
 *             parent._doc, (<_Element>value)._c_node)
5027
5672
 *         new_element.tag = tag             # <<<<<<<<<<<<<<
5028
5673
 *         cetree.appendChild(parent, new_element)
5029
5674
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
5030
5675
 */
5031
 
    if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5676
    if (PyObject_SetAttr(((PyObject *)__pyx_v_new_element), __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5032
5677
 
5033
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":523
 
5678
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":517
5034
5679
 *             parent._doc, (<_Element>value)._c_node)
5035
5680
 *         new_element.tag = tag
5036
5681
 *         cetree.appendChild(parent, new_element)             # <<<<<<<<<<<<<<
5041
5686
    goto __pyx_L3;
5042
5687
  }
5043
5688
 
5044
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":524
 
5689
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":518
5045
5690
 *         new_element.tag = tag
5046
5691
 *         cetree.appendChild(parent, new_element)
5047
5692
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):             # <<<<<<<<<<<<<<
5048
5693
 *         for item in value:
5049
5694
 *             _appendValue(parent, tag, item)
5050
5695
 */
5051
 
  __pyx_1 = PyList_Check(__pyx_v_value);
5052
 
  if (!__pyx_1) {
5053
 
    __pyx_1 = PyTuple_Check(__pyx_v_value);
 
5696
  if (!PyList_Check(__pyx_v_value)) {
 
5697
    __pyx_t_1 = PyTuple_Check(__pyx_v_value);
 
5698
  } else {
 
5699
    __pyx_t_1 = PyList_Check(__pyx_v_value);
5054
5700
  }
5055
 
  if (__pyx_1) {
 
5701
  if (__pyx_t_1) {
5056
5702
 
5057
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":525
 
5703
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":519
5058
5704
 *         cetree.appendChild(parent, new_element)
5059
5705
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
5060
5706
 *         for item in value:             # <<<<<<<<<<<<<<
5062
5708
 *     else:
5063
5709
 */
5064
5710
    if (PyList_CheckExact(__pyx_v_value) || PyTuple_CheckExact(__pyx_v_value)) {
5065
 
      __pyx_3 = 0; __pyx_2 = __pyx_v_value; Py_INCREF(__pyx_2);
 
5711
      __pyx_t_3 = 0; __pyx_t_2 = __pyx_v_value; __Pyx_INCREF(__pyx_t_2);
5066
5712
    } else {
5067
 
      __pyx_3 = -1; __pyx_2 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5713
      __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5714
      __Pyx_GOTREF(__pyx_t_2);
5068
5715
    }
5069
5716
    for (;;) {
5070
 
      if (likely(PyList_CheckExact(__pyx_2))) {
5071
 
        if (__pyx_3 >= PyList_GET_SIZE(__pyx_2)) break;
5072
 
        __pyx_4 = PyList_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
5073
 
      } else if (likely(PyTuple_CheckExact(__pyx_2))) {
5074
 
        if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_2)) break;
5075
 
        __pyx_4 = PyTuple_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
 
5717
      if (likely(PyList_CheckExact(__pyx_t_2))) {
 
5718
        if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
 
5719
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
 
5720
      } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
 
5721
        if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
 
5722
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
5076
5723
      } else {
5077
 
        __pyx_4 = PyIter_Next(__pyx_2);
5078
 
        if (!__pyx_4) {
5079
 
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5724
        __pyx_t_4 = PyIter_Next(__pyx_t_2);
 
5725
        if (!__pyx_t_4) {
 
5726
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5080
5727
          break;
5081
5728
        }
 
5729
        __Pyx_GOTREF(__pyx_t_4);
5082
5730
      }
5083
 
      Py_DECREF(__pyx_v_item);
5084
 
      __pyx_v_item = __pyx_4;
5085
 
      __pyx_4 = 0;
 
5731
      __Pyx_DECREF(__pyx_v_item);
 
5732
      __pyx_v_item = __pyx_t_4;
 
5733
      __pyx_t_4 = 0;
5086
5734
 
5087
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":526
 
5735
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":520
5088
5736
 *     elif python.PyList_Check(value) or python.PyTuple_Check(value):
5089
5737
 *         for item in value:
5090
5738
 *             _appendValue(parent, tag, item)             # <<<<<<<<<<<<<<
5091
5739
 *     else:
5092
5740
 *         new_element = cetree.makeSubElement(
5093
5741
 */
5094
 
      __pyx_4 = __pyx_f_4lxml_9objectify__appendValue(__pyx_v_parent, __pyx_v_tag, __pyx_v_item); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5095
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
5742
      __pyx_t_4 = __pyx_f_4lxml_9objectify__appendValue(__pyx_v_parent, __pyx_v_tag, __pyx_v_item); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5743
      __Pyx_GOTREF(__pyx_t_4);
 
5744
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5096
5745
    }
5097
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5746
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5098
5747
    goto __pyx_L3;
5099
5748
  }
5100
5749
  /*else*/ {
5101
5750
 
5102
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":529
 
5751
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":523
5103
5752
 *     else:
5104
5753
 *         new_element = cetree.makeSubElement(
5105
5754
 *             parent, tag, None, None, None, None)             # <<<<<<<<<<<<<<
5106
5755
 *         _setElementValue(new_element, value)
5107
5756
 * 
5108
5757
 */
5109
 
    __pyx_4 = ((PyObject *)makeSubElement(__pyx_v_parent, __pyx_v_tag, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5110
 
    Py_DECREF(((PyObject *)__pyx_v_new_element));
5111
 
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_4);
5112
 
    __pyx_4 = 0;
 
5758
    __pyx_t_2 = ((PyObject *)makeSubElement(__pyx_v_parent, __pyx_v_tag, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5759
    __Pyx_GOTREF(__pyx_t_2);
 
5760
    __Pyx_DECREF(((PyObject *)__pyx_v_new_element));
 
5761
    __pyx_v_new_element = ((struct LxmlElement *)__pyx_t_2);
 
5762
    __pyx_t_2 = 0;
5113
5763
 
5114
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":530
 
5764
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":524
5115
5765
 *         new_element = cetree.makeSubElement(
5116
5766
 *             parent, tag, None, None, None, None)
5117
5767
 *         _setElementValue(new_element, value)             # <<<<<<<<<<<<<<
5118
5768
 * 
5119
5769
 * cdef _setElementValue(_Element element, value):
5120
5770
 */
5121
 
    __pyx_2 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5122
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
5771
    __pyx_t_2 = __pyx_f_4lxml_9objectify__setElementValue(__pyx_v_new_element, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5772
    __Pyx_GOTREF(__pyx_t_2);
 
5773
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5123
5774
  }
5124
5775
  __pyx_L3:;
5125
5776
 
5126
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
5777
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5127
5778
  goto __pyx_L0;
5128
5779
  __pyx_L1_error:;
5129
 
  Py_XDECREF(__pyx_2);
5130
 
  Py_XDECREF(__pyx_4);
 
5780
  __Pyx_XDECREF(__pyx_t_2);
 
5781
  __Pyx_XDECREF(__pyx_t_4);
5131
5782
  __Pyx_AddTraceback("lxml.objectify._appendValue");
5132
5783
  __pyx_r = 0;
5133
5784
  __pyx_L0:;
5134
 
  Py_DECREF(__pyx_v_new_element);
5135
 
  Py_DECREF(__pyx_v_item);
 
5785
  __Pyx_DECREF((PyObject *)__pyx_v_new_element);
 
5786
  __Pyx_DECREF(__pyx_v_item);
 
5787
  __Pyx_XGIVEREF(__pyx_r);
 
5788
  __Pyx_FinishRefcountContext();
5136
5789
  return __pyx_r;
5137
5790
}
5138
5791
 
5139
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":532
 
5792
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":526
5140
5793
 *         _setElementValue(new_element, value)
5141
5794
 * 
5142
5795
 * cdef _setElementValue(_Element element, value):             # <<<<<<<<<<<<<<
5147
5800
static  PyObject *__pyx_f_4lxml_9objectify__setElementValue(struct LxmlElement *__pyx_v_element, PyObject *__pyx_v_value) {
5148
5801
  PyObject *__pyx_v__pytype;
5149
5802
  PyObject *__pyx_v_pytype_name;
5150
 
  PyObject *__pyx_r;
5151
 
  int __pyx_1;
5152
 
  int __pyx_2;
5153
 
  PyObject *__pyx_3 = 0;
5154
 
  char *__pyx_4;
5155
 
  PyObject *__pyx_5 = 0;
5156
 
  Py_INCREF(__pyx_v_value);
5157
 
  __pyx_v_pytype_name = Py_None; Py_INCREF(Py_None);
 
5803
  PyObject *__pyx_r = NULL;
 
5804
  PyObject *__pyx_1 = 0;
 
5805
  int __pyx_t_1;
 
5806
  int __pyx_t_2;
 
5807
  PyObject *__pyx_t_3 = NULL;
 
5808
  PyObject *__pyx_t_4 = NULL;
 
5809
  __Pyx_SetupRefcountContext("_setElementValue");
 
5810
  __Pyx_INCREF(__pyx_v_value);
 
5811
  __pyx_v_pytype_name = Py_None; __Pyx_INCREF(Py_None);
5158
5812
 
5159
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":534
 
5813
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":528
5160
5814
 * cdef _setElementValue(_Element element, value):
5161
5815
 *     cdef python.PyObject* _pytype
5162
5816
 *     if value is None:             # <<<<<<<<<<<<<<
5163
5817
 *         cetree.setAttributeValue(
5164
5818
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
5165
5819
 */
5166
 
  __pyx_1 = (__pyx_v_value == Py_None);
5167
 
  if (__pyx_1) {
 
5820
  __pyx_t_1 = (__pyx_v_value == Py_None);
 
5821
  if (__pyx_t_1) {
5168
5822
 
5169
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":536
 
5823
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":530
5170
5824
 *     if value is None:
5171
5825
 *         cetree.setAttributeValue(
5172
5826
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")             # <<<<<<<<<<<<<<
5173
5827
 *     elif isinstance(value, _Element):
5174
5828
 *         _replaceElement(element, value)
5175
5829
 */
5176
 
    __pyx_2 = setAttributeValue(__pyx_v_element, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_682)); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5830
    __pyx_t_2 = setAttributeValue(__pyx_v_element, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_749)); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5177
5831
    goto __pyx_L3;
5178
5832
  }
5179
5833
 
5180
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":537
 
5834
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":531
5181
5835
 *         cetree.setAttributeValue(
5182
5836
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
5183
5837
 *     elif isinstance(value, _Element):             # <<<<<<<<<<<<<<
5184
5838
 *         _replaceElement(element, value)
5185
5839
 *         return
5186
5840
 */
5187
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
5188
 
  if (__pyx_1) {
 
5841
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
5842
  if (__pyx_t_1) {
5189
5843
 
5190
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":538
 
5844
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":532
5191
5845
 *             element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
5192
5846
 *     elif isinstance(value, _Element):
5193
5847
 *         _replaceElement(element, value)             # <<<<<<<<<<<<<<
5194
5848
 *         return
5195
5849
 *     else:
5196
5850
 */
5197
 
    __pyx_3 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5198
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
 
5851
    __pyx_t_3 = __pyx_f_4lxml_9objectify__replaceElement(__pyx_v_element, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5852
    __Pyx_GOTREF(__pyx_t_3);
 
5853
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5199
5854
 
5200
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":539
 
5855
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":533
5201
5856
 *     elif isinstance(value, _Element):
5202
5857
 *         _replaceElement(element, value)
5203
5858
 *         return             # <<<<<<<<<<<<<<
5204
5859
 *     else:
5205
5860
 *         cetree.delAttributeFromNsName(
5206
5861
 */
5207
 
    __pyx_r = Py_None; Py_INCREF(Py_None);
 
5862
    __Pyx_XDECREF(__pyx_r);
 
5863
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5208
5864
    goto __pyx_L0;
5209
5865
    goto __pyx_L3;
5210
5866
  }
5211
5867
  /*else*/ {
5212
5868
 
5213
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":542
 
5869
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":536
5214
5870
 *     else:
5215
5871
 *         cetree.delAttributeFromNsName(
5216
 
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, u"nil")             # <<<<<<<<<<<<<<
 
5872
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, "nil")             # <<<<<<<<<<<<<<
5217
5873
 *         if python._isString(value):
5218
5874
 *             pytype_name = u"str"
5219
5875
 */
5220
 
    __pyx_4 = __Pyx_PyBytes_AsString(((PyObject *)__pyx_kp_683)); if (unlikely((!__pyx_4) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5221
 
    delAttributeFromNsName(__pyx_v_element->_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_4);
 
5876
    delAttributeFromNsName(__pyx_v_element->_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_750);
5222
5877
 
5223
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":543
 
5878
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":537
5224
5879
 *         cetree.delAttributeFromNsName(
5225
 
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, u"nil")
 
5880
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, "nil")
5226
5881
 *         if python._isString(value):             # <<<<<<<<<<<<<<
5227
5882
 *             pytype_name = u"str"
5228
5883
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5229
5884
 */
5230
 
    __pyx_1 = _isString(__pyx_v_value);
5231
 
    if (__pyx_1) {
 
5885
    __pyx_t_1 = _isString(__pyx_v_value);
 
5886
    if (__pyx_t_1) {
5232
5887
 
5233
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":544
5234
 
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, u"nil")
 
5888
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":538
 
5889
 *             element._c_node, _XML_SCHEMA_INSTANCE_NS, "nil")
5235
5890
 *         if python._isString(value):
5236
5891
 *             pytype_name = u"str"             # <<<<<<<<<<<<<<
5237
5892
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5238
5893
 *         else:
5239
5894
 */
5240
 
      Py_INCREF(((PyObject *)__pyx_kp_684));
5241
 
      Py_DECREF(__pyx_v_pytype_name);
5242
 
      __pyx_v_pytype_name = ((PyObject *)__pyx_kp_684);
 
5895
      __Pyx_INCREF(((PyObject *)__pyx_kp_751));
 
5896
      __Pyx_DECREF(__pyx_v_pytype_name);
 
5897
      __pyx_v_pytype_name = ((PyObject *)__pyx_kp_751);
5243
5898
 
5244
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":545
 
5899
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":539
5245
5900
 *         if python._isString(value):
5246
5901
 *             pytype_name = u"str"
5247
5902
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)             # <<<<<<<<<<<<<<
5248
5903
 *         else:
5249
5904
 *             pytype_name = _typename(value)
5250
5905
 */
5251
 
      __pyx_v__pytype = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_pytype_name);
 
5906
      __pyx_v__pytype = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_pytype_name);
5252
5907
      goto __pyx_L4;
5253
5908
    }
5254
5909
    /*else*/ {
5255
5910
 
5256
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":547
 
5911
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":541
5257
5912
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5258
5913
 *         else:
5259
5914
 *             pytype_name = _typename(value)             # <<<<<<<<<<<<<<
5260
5915
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5261
5916
 *             if _pytype is not NULL:
5262
5917
 */
5263
 
      __pyx_3 = __pyx_f_4lxml_9objectify__typename(__pyx_v_value); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5264
 
      Py_DECREF(__pyx_v_pytype_name);
5265
 
      __pyx_v_pytype_name = __pyx_3;
5266
 
      __pyx_3 = 0;
 
5918
      __pyx_t_3 = __pyx_f_4lxml_9objectify__typename(__pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5919
      __Pyx_GOTREF(__pyx_t_3);
 
5920
      __Pyx_DECREF(__pyx_v_pytype_name);
 
5921
      __pyx_v_pytype_name = __pyx_t_3;
 
5922
      __pyx_t_3 = 0;
5267
5923
 
5268
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":548
 
5924
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":542
5269
5925
 *         else:
5270
5926
 *             pytype_name = _typename(value)
5271
5927
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)             # <<<<<<<<<<<<<<
5272
5928
 *             if _pytype is not NULL:
5273
5929
 *                 value = (<PyType>_pytype).stringify(value)
5274
5930
 */
5275
 
      __pyx_v__pytype = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_pytype_name);
 
5931
      __pyx_v__pytype = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_pytype_name);
5276
5932
 
5277
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":549
 
5933
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":543
5278
5934
 *             pytype_name = _typename(value)
5279
5935
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5280
5936
 *             if _pytype is not NULL:             # <<<<<<<<<<<<<<
5281
5937
 *                 value = (<PyType>_pytype).stringify(value)
5282
5938
 *             else:
5283
5939
 */
5284
 
      __pyx_1 = (__pyx_v__pytype != NULL);
5285
 
      if (__pyx_1) {
 
5940
      __pyx_t_1 = (__pyx_v__pytype != NULL);
 
5941
      if (__pyx_t_1) {
5286
5942
 
5287
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":550
 
5943
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":544
5288
5944
 *             _pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
5289
5945
 *             if _pytype is not NULL:
5290
5946
 *                 value = (<PyType>_pytype).stringify(value)             # <<<<<<<<<<<<<<
5291
5947
 *             else:
5292
5948
 *                 value = unicode(value)
5293
5949
 */
5294
 
        __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5295
 
        Py_INCREF(__pyx_v_value);
5296
 
        PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_value);
5297
 
        __pyx_5 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v__pytype)->stringify, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5298
 
        Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
5299
 
        Py_DECREF(__pyx_v_value);
5300
 
        __pyx_v_value = __pyx_5;
5301
 
        __pyx_5 = 0;
 
5950
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5951
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
5952
        __Pyx_INCREF(__pyx_v_value);
 
5953
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_value);
 
5954
        __Pyx_GIVEREF(__pyx_v_value);
 
5955
        __pyx_t_4 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v__pytype)->stringify, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5956
        __Pyx_GOTREF(__pyx_t_4);
 
5957
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
5958
        __Pyx_DECREF(__pyx_v_value);
 
5959
        __pyx_v_value = __pyx_t_4;
 
5960
        __pyx_t_4 = 0;
5302
5961
        goto __pyx_L5;
5303
5962
      }
5304
5963
      /*else*/ {
5305
5964
 
5306
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":552
 
5965
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":546
5307
5966
 *                 value = (<PyType>_pytype).stringify(value)
5308
5967
 *             else:
5309
5968
 *                 value = unicode(value)             # <<<<<<<<<<<<<<
5310
5969
 *         if _pytype is not NULL:
5311
5970
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
5312
5971
 */
5313
 
        __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5314
 
        Py_INCREF(__pyx_v_value);
5315
 
        PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_value);
5316
 
        __pyx_5 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5317
 
        Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
5318
 
        Py_DECREF(__pyx_v_value);
5319
 
        __pyx_v_value = __pyx_5;
5320
 
        __pyx_5 = 0;
 
5972
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5973
        __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
5974
        __Pyx_INCREF(__pyx_v_value);
 
5975
        PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value);
 
5976
        __Pyx_GIVEREF(__pyx_v_value);
 
5977
        __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
5978
        __Pyx_GOTREF(__pyx_t_3);
 
5979
        __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
5980
        __Pyx_DECREF(__pyx_v_value);
 
5981
        __pyx_v_value = __pyx_t_3;
 
5982
        __pyx_t_3 = 0;
5321
5983
      }
5322
5984
      __pyx_L5:;
5323
5985
    }
5324
5986
    __pyx_L4:;
5325
5987
 
5326
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":553
 
5988
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":547
5327
5989
 *             else:
5328
5990
 *                 value = unicode(value)
5329
5991
 *         if _pytype is not NULL:             # <<<<<<<<<<<<<<
5330
5992
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
5331
5993
 *         else:
5332
5994
 */
5333
 
    __pyx_1 = (__pyx_v__pytype != NULL);
5334
 
    if (__pyx_1) {
 
5995
    __pyx_t_1 = (__pyx_v__pytype != NULL);
 
5996
    if (__pyx_t_1) {
5335
5997
 
5336
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":554
 
5998
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":548
5337
5999
 *                 value = unicode(value)
5338
6000
 *         if _pytype is not NULL:
5339
6001
 *             cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)             # <<<<<<<<<<<<<<
5340
6002
 *         else:
5341
6003
 *             cetree.delAttributeFromNsName(
5342
6004
 */
5343
 
      __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5344
 
      __pyx_2 = setAttributeValue(__pyx_v_element, __pyx_3, __pyx_v_pytype_name); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5345
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
6005
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6006
      __Pyx_GOTREF(__pyx_1);
 
6007
      __pyx_t_2 = setAttributeValue(__pyx_v_element, __pyx_1, __pyx_v_pytype_name); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6008
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
5346
6009
      goto __pyx_L6;
5347
6010
    }
5348
6011
    /*else*/ {
5349
6012
 
5350
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":557
 
6013
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":551
5351
6014
 *         else:
5352
6015
 *             cetree.delAttributeFromNsName(
5353
6016
 *                 element._c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
5360
6023
  }
5361
6024
  __pyx_L3:;
5362
6025
 
5363
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":558
 
6026
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":552
5364
6027
 *             cetree.delAttributeFromNsName(
5365
6028
 *                 element._c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
5366
6029
 *     cetree.setNodeText(element._c_node, value)             # <<<<<<<<<<<<<<
5367
6030
 * 
5368
6031
 * cdef _setSlice(slice, _Element target, items):
5369
6032
 */
5370
 
  __pyx_2 = setNodeText(__pyx_v_element->_c_node, __pyx_v_value); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6033
  __pyx_t_2 = setNodeText(__pyx_v_element->_c_node, __pyx_v_value); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5371
6034
 
5372
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6035
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5373
6036
  goto __pyx_L0;
5374
6037
  __pyx_L1_error:;
5375
 
  Py_XDECREF(__pyx_3);
5376
 
  Py_XDECREF(__pyx_5);
 
6038
  __Pyx_XDECREF(__pyx_1);
 
6039
  __Pyx_XDECREF(__pyx_t_3);
 
6040
  __Pyx_XDECREF(__pyx_t_4);
5377
6041
  __Pyx_AddTraceback("lxml.objectify._setElementValue");
5378
6042
  __pyx_r = 0;
5379
6043
  __pyx_L0:;
5380
 
  Py_DECREF(__pyx_v_pytype_name);
5381
 
  Py_DECREF(__pyx_v_value);
 
6044
  __Pyx_DECREF(__pyx_v_pytype_name);
 
6045
  __Pyx_DECREF(__pyx_v_value);
 
6046
  __Pyx_XGIVEREF(__pyx_r);
 
6047
  __Pyx_FinishRefcountContext();
5382
6048
  return __pyx_r;
5383
6049
}
5384
6050
 
5385
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":560
 
6051
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":554
5386
6052
 *     cetree.setNodeText(element._c_node, value)
5387
6053
 * 
5388
6054
 * cdef _setSlice(slice, _Element target, items):             # <<<<<<<<<<<<<<
5395
6061
  xmlNode *__pyx_v_c_node;
5396
6062
  Py_ssize_t __pyx_v_c_step;
5397
6063
  Py_ssize_t __pyx_v_pos;
5398
 
  PyObject *__pyx_v_del_items;
5399
6064
  PyObject *__pyx_v_new_items;
 
6065
  PyObject *__pyx_v_del_items;
5400
6066
  PyObject *__pyx_v_tag;
5401
6067
  PyObject *__pyx_v_item;
5402
6068
  PyObject *__pyx_v_new_element;
5403
6069
  PyObject *__pyx_v_replace;
5404
6070
  PyObject *__pyx_v_remove;
5405
6071
  PyObject *__pyx_v_add;
5406
 
  PyObject *__pyx_r;
5407
 
  int __pyx_1;
5408
 
  Py_ssize_t __pyx_2 = 0;
5409
 
  PyObject *__pyx_3 = 0;
5410
 
  PyObject *__pyx_4 = 0;
5411
 
  int __pyx_5;
5412
 
  PyObject *__pyx_6 = 0;
5413
 
  PyObject *__pyx_t_1 = NULL;
5414
 
  __pyx_v_parent = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
5415
 
  __pyx_v_del_items = Py_None; Py_INCREF(Py_None);
5416
 
  __pyx_v_new_items = Py_None; Py_INCREF(Py_None);
5417
 
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
5418
 
  __pyx_v_item = Py_None; Py_INCREF(Py_None);
5419
 
  __pyx_v_new_element = Py_None; Py_INCREF(Py_None);
5420
 
  __pyx_v_replace = Py_None; Py_INCREF(Py_None);
5421
 
  __pyx_v_remove = Py_None; Py_INCREF(Py_None);
5422
 
  __pyx_v_add = Py_None; Py_INCREF(Py_None);
 
6072
  PyObject *__pyx_r = NULL;
 
6073
  PyObject *__pyx_1 = 0;
 
6074
  PyObject *__pyx_2 = 0;
 
6075
  int __pyx_t_1;
 
6076
  Py_ssize_t __pyx_t_2;
 
6077
  PyObject *__pyx_t_3 = NULL;
 
6078
  PyObject *__pyx_t_4 = NULL;
 
6079
  int __pyx_t_5;
 
6080
  PyObject *__pyx_t_6 = NULL;
 
6081
  __Pyx_SetupRefcountContext("_setSlice");
 
6082
  __pyx_v_parent = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
6083
  __pyx_v_new_items = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
 
6084
  __pyx_v_del_items = Py_None; __Pyx_INCREF(Py_None);
 
6085
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
 
6086
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
 
6087
  __pyx_v_new_element = Py_None; __Pyx_INCREF(Py_None);
 
6088
  __pyx_v_replace = Py_None; __Pyx_INCREF(Py_None);
 
6089
  __pyx_v_remove = Py_None; __Pyx_INCREF(Py_None);
 
6090
  __pyx_v_add = Py_None; __Pyx_INCREF(Py_None);
5423
6091
 
5424
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":565
5425
 
 *     cdef Py_ssize_t c_step, c_start, pos
 
6092
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":560
 
6093
 *     cdef list new_items
5426
6094
 *     # collect existing slice
5427
6095
 *     if (<python.slice>slice).step is None:             # <<<<<<<<<<<<<<
5428
6096
 *         c_step = 1
5429
6097
 *     else:
5430
6098
 */
5431
 
  __pyx_1 = (((PySliceObject *)__pyx_v_slice)->step == Py_None);
5432
 
  if (__pyx_1) {
 
6099
  __pyx_t_1 = (((PySliceObject *)__pyx_v_slice)->step == Py_None);
 
6100
  if (__pyx_t_1) {
5433
6101
 
5434
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":566
 
6102
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":561
5435
6103
 *     # collect existing slice
5436
6104
 *     if (<python.slice>slice).step is None:
5437
6105
 *         c_step = 1             # <<<<<<<<<<<<<<
5443
6111
  }
5444
6112
  /*else*/ {
5445
6113
 
5446
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":568
 
6114
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":563
5447
6115
 *         c_step = 1
5448
6116
 *     else:
5449
6117
 *         c_step = (<python.slice>slice).step             # <<<<<<<<<<<<<<
5450
6118
 *     if c_step == 0:
5451
6119
 *         raise ValueError, u"Invalid slice"
5452
6120
 */
5453
 
    __pyx_2 = __pyx_PyIndex_AsSsize_t(((PySliceObject *)__pyx_v_slice)->step); if (unlikely((__pyx_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5454
 
    __pyx_v_c_step = __pyx_2;
 
6121
    __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(((PySliceObject *)__pyx_v_slice)->step); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6122
    __pyx_v_c_step = __pyx_t_2;
5455
6123
  }
5456
6124
  __pyx_L3:;
5457
6125
 
5458
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":569
 
6126
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":564
5459
6127
 *     else:
5460
6128
 *         c_step = (<python.slice>slice).step
5461
6129
 *     if c_step == 0:             # <<<<<<<<<<<<<<
5462
6130
 *         raise ValueError, u"Invalid slice"
5463
6131
 *     del_items = target[slice]
5464
6132
 */
5465
 
  __pyx_1 = (__pyx_v_c_step == 0);
5466
 
  if (__pyx_1) {
 
6133
  __pyx_t_1 = (__pyx_v_c_step == 0);
 
6134
  if (__pyx_t_1) {
5467
6135
 
5468
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":570
 
6136
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":565
5469
6137
 *         c_step = (<python.slice>slice).step
5470
6138
 *     if c_step == 0:
5471
6139
 *         raise ValueError, u"Invalid slice"             # <<<<<<<<<<<<<<
5472
6140
 *     del_items = target[slice]
5473
6141
 * 
5474
6142
 */
5475
 
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_685), 0);
5476
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6143
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_752), 0);
 
6144
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5477
6145
    goto __pyx_L4;
5478
6146
  }
5479
6147
  __pyx_L4:;
5480
6148
 
5481
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":571
 
6149
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":566
5482
6150
 *     if c_step == 0:
5483
6151
 *         raise ValueError, u"Invalid slice"
5484
6152
 *     del_items = target[slice]             # <<<<<<<<<<<<<<
5485
6153
 * 
5486
6154
 *     # collect new values
5487
6155
 */
5488
 
  __pyx_3 = PyObject_GetItem(((PyObject *)__pyx_v_target), __pyx_v_slice); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5489
 
  Py_DECREF(__pyx_v_del_items);
5490
 
  __pyx_v_del_items = __pyx_3;
5491
 
  __pyx_3 = 0;
 
6156
  __pyx_1 = PyObject_GetItem(((PyObject *)__pyx_v_target), __pyx_v_slice); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6157
  __Pyx_GOTREF(__pyx_1);
 
6158
  __Pyx_DECREF(__pyx_v_del_items);
 
6159
  __pyx_v_del_items = __pyx_1;
 
6160
  __pyx_1 = 0;
5492
6161
 
5493
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":574
 
6162
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":569
5494
6163
 * 
5495
6164
 *     # collect new values
5496
6165
 *     new_items = []             # <<<<<<<<<<<<<<
5497
6166
 *     tag = target.tag
5498
6167
 *     for item in items:
5499
6168
 */
5500
 
  __pyx_3 = PyList_New(0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5501
 
  Py_DECREF(__pyx_v_new_items);
5502
 
  __pyx_v_new_items = ((PyObject *)__pyx_3);
5503
 
  __pyx_3 = 0;
 
6169
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6170
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
6171
  __Pyx_DECREF(((PyObject *)__pyx_v_new_items));
 
6172
  __pyx_v_new_items = __pyx_t_3;
 
6173
  __pyx_t_3 = 0;
5504
6174
 
5505
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":575
 
6175
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":570
5506
6176
 *     # collect new values
5507
6177
 *     new_items = []
5508
6178
 *     tag = target.tag             # <<<<<<<<<<<<<<
5509
6179
 *     for item in items:
5510
6180
 *         if isinstance(item, _Element):
5511
6181
 */
5512
 
  __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_target), __pyx_kp_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5513
 
  Py_DECREF(__pyx_v_tag);
5514
 
  __pyx_v_tag = __pyx_3;
5515
 
  __pyx_3 = 0;
 
6182
  __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_target), __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6183
  __Pyx_GOTREF(__pyx_t_3);
 
6184
  __Pyx_DECREF(__pyx_v_tag);
 
6185
  __pyx_v_tag = __pyx_t_3;
 
6186
  __pyx_t_3 = 0;
5516
6187
 
5517
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":576
 
6188
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":571
5518
6189
 *     new_items = []
5519
6190
 *     tag = target.tag
5520
6191
 *     for item in items:             # <<<<<<<<<<<<<<
5522
6193
 *             # deep copy the new element
5523
6194
 */
5524
6195
  if (PyList_CheckExact(__pyx_v_items) || PyTuple_CheckExact(__pyx_v_items)) {
5525
 
    __pyx_2 = 0; __pyx_3 = __pyx_v_items; Py_INCREF(__pyx_3);
 
6196
    __pyx_t_2 = 0; __pyx_t_3 = __pyx_v_items; __Pyx_INCREF(__pyx_t_3);
5526
6197
  } else {
5527
 
    __pyx_2 = -1; __pyx_3 = PyObject_GetIter(__pyx_v_items); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6198
    __pyx_t_2 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_items); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6199
    __Pyx_GOTREF(__pyx_t_3);
5528
6200
  }
5529
6201
  for (;;) {
5530
 
    if (likely(PyList_CheckExact(__pyx_3))) {
5531
 
      if (__pyx_2 >= PyList_GET_SIZE(__pyx_3)) break;
5532
 
      __pyx_4 = PyList_GET_ITEM(__pyx_3, __pyx_2); Py_INCREF(__pyx_4); __pyx_2++;
5533
 
    } else if (likely(PyTuple_CheckExact(__pyx_3))) {
5534
 
      if (__pyx_2 >= PyTuple_GET_SIZE(__pyx_3)) break;
5535
 
      __pyx_4 = PyTuple_GET_ITEM(__pyx_3, __pyx_2); Py_INCREF(__pyx_4); __pyx_2++;
 
6202
    if (likely(PyList_CheckExact(__pyx_t_3))) {
 
6203
      if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_3)) break;
 
6204
      __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
 
6205
    } else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
 
6206
      if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
 
6207
      __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
5536
6208
    } else {
5537
 
      __pyx_4 = PyIter_Next(__pyx_3);
5538
 
      if (!__pyx_4) {
5539
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6209
      __pyx_t_4 = PyIter_Next(__pyx_t_3);
 
6210
      if (!__pyx_t_4) {
 
6211
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5540
6212
        break;
5541
6213
      }
 
6214
      __Pyx_GOTREF(__pyx_t_4);
5542
6215
    }
5543
 
    Py_DECREF(__pyx_v_item);
5544
 
    __pyx_v_item = __pyx_4;
5545
 
    __pyx_4 = 0;
 
6216
    __Pyx_DECREF(__pyx_v_item);
 
6217
    __pyx_v_item = __pyx_t_4;
 
6218
    __pyx_t_4 = 0;
5546
6219
 
5547
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":577
 
6220
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":572
5548
6221
 *     tag = target.tag
5549
6222
 *     for item in items:
5550
6223
 *         if isinstance(item, _Element):             # <<<<<<<<<<<<<<
5551
6224
 *             # deep copy the new element
5552
6225
 *             new_element = cetree.deepcopyNodeToDocument(
5553
6226
 */
5554
 
    __pyx_1 = PyObject_TypeCheck(__pyx_v_item, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
5555
 
    if (__pyx_1) {
 
6227
    __pyx_t_1 = PyObject_TypeCheck(__pyx_v_item, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
6228
    if (__pyx_t_1) {
5556
6229
 
5557
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":580
 
6230
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":575
5558
6231
 *             # deep copy the new element
5559
6232
 *             new_element = cetree.deepcopyNodeToDocument(
5560
6233
 *                 target._doc, (<_Element>item)._c_node)             # <<<<<<<<<<<<<<
5561
6234
 *             new_element.tag = tag
5562
6235
 *         else:
5563
6236
 */
5564
 
      __pyx_4 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_target->_doc, ((struct LxmlElement *)__pyx_v_item)->_c_node)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5565
 
      Py_DECREF(__pyx_v_new_element);
5566
 
      __pyx_v_new_element = __pyx_4;
5567
 
      __pyx_4 = 0;
 
6237
      __pyx_t_4 = ((PyObject *)deepcopyNodeToDocument(__pyx_v_target->_doc, ((struct LxmlElement *)__pyx_v_item)->_c_node)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6238
      __Pyx_GOTREF(__pyx_t_4);
 
6239
      __Pyx_DECREF(__pyx_v_new_element);
 
6240
      __pyx_v_new_element = __pyx_t_4;
 
6241
      __pyx_t_4 = 0;
5568
6242
 
5569
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":581
 
6243
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":576
5570
6244
 *             new_element = cetree.deepcopyNodeToDocument(
5571
6245
 *                 target._doc, (<_Element>item)._c_node)
5572
6246
 *             new_element.tag = tag             # <<<<<<<<<<<<<<
5573
6247
 *         else:
5574
6248
 *             new_element = cetree.makeElement(
5575
6249
 */
5576
 
      if (PyObject_SetAttr(__pyx_v_new_element, __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6250
      if (PyObject_SetAttr(__pyx_v_new_element, __pyx_kp_tag, __pyx_v_tag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5577
6251
      goto __pyx_L7;
5578
6252
    }
5579
6253
    /*else*/ {
5580
6254
 
5581
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":584
 
6255
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":579
5582
6256
 *         else:
5583
6257
 *             new_element = cetree.makeElement(
5584
6258
 *                 tag, target._doc, None, None, None, None, None)             # <<<<<<<<<<<<<<
5585
6259
 *             _setElementValue(new_element, item)
5586
 
 *         python.PyList_Append(new_items, new_element)
 
6260
 *         new_items.append(new_element)
5587
6261
 */
5588
 
      __pyx_4 = ((PyObject *)makeElement(__pyx_v_tag, __pyx_v_target->_doc, Py_None, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5589
 
      Py_DECREF(__pyx_v_new_element);
5590
 
      __pyx_v_new_element = __pyx_4;
5591
 
      __pyx_4 = 0;
 
6262
      __pyx_t_4 = ((PyObject *)makeElement(__pyx_v_tag, __pyx_v_target->_doc, Py_None, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6263
      __Pyx_GOTREF(__pyx_t_4);
 
6264
      __Pyx_DECREF(__pyx_v_new_element);
 
6265
      __pyx_v_new_element = __pyx_t_4;
 
6266
      __pyx_t_4 = 0;
5592
6267
 
5593
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":585
 
6268
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":580
5594
6269
 *             new_element = cetree.makeElement(
5595
6270
 *                 tag, target._doc, None, None, None, None, None)
5596
6271
 *             _setElementValue(new_element, item)             # <<<<<<<<<<<<<<
5597
 
 *         python.PyList_Append(new_items, new_element)
 
6272
 *         new_items.append(new_element)
5598
6273
 * 
5599
6274
 */
5600
 
      if (!(__Pyx_TypeTest(__pyx_v_new_element, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5601
 
      __pyx_4 = __pyx_f_4lxml_9objectify__setElementValue(((struct LxmlElement *)__pyx_v_new_element), __pyx_v_item); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5602
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
6275
      if (!(__Pyx_TypeTest(__pyx_v_new_element, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6276
      __pyx_t_4 = __pyx_f_4lxml_9objectify__setElementValue(((struct LxmlElement *)__pyx_v_new_element), __pyx_v_item); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6277
      __Pyx_GOTREF(__pyx_t_4);
 
6278
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5603
6279
    }
5604
6280
    __pyx_L7:;
5605
6281
 
5606
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":586
 
6282
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":581
5607
6283
 *                 tag, target._doc, None, None, None, None, None)
5608
6284
 *             _setElementValue(new_element, item)
5609
 
 *         python.PyList_Append(new_items, new_element)             # <<<<<<<<<<<<<<
 
6285
 *         new_items.append(new_element)             # <<<<<<<<<<<<<<
5610
6286
 * 
5611
6287
 *     # sanity check - raise what a list would raise
5612
6288
 */
5613
 
    __pyx_5 = PyList_Append(__pyx_v_new_items, __pyx_v_new_element); if (unlikely(__pyx_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6289
    __pyx_t_5 = PyList_Append(((PyObject *)__pyx_v_new_items), __pyx_v_new_element); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5614
6290
  }
5615
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
6291
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5616
6292
 
5617
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":589
 
6293
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":584
5618
6294
 * 
5619
6295
 *     # sanity check - raise what a list would raise
5620
6296
 *     if c_step != 1 and \             # <<<<<<<<<<<<<<
5621
6297
 *             python.PyList_GET_SIZE(del_items) != python.PyList_GET_SIZE(new_items):
5622
6298
 *         raise ValueError, \
5623
6299
 */
5624
 
  __pyx_1 = (__pyx_v_c_step != 1);
5625
 
  if (__pyx_1) {
 
6300
  if ((__pyx_v_c_step != 1)) {
5626
6301
 
5627
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":590
 
6302
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":585
5628
6303
 *     # sanity check - raise what a list would raise
5629
6304
 *     if c_step != 1 and \
5630
6305
 *             python.PyList_GET_SIZE(del_items) != python.PyList_GET_SIZE(new_items):             # <<<<<<<<<<<<<<
5631
6306
 *         raise ValueError, \
5632
6307
 *             u"attempt to assign sequence of size %d to extended slice of size %d" % (
5633
6308
 */
5634
 
    __pyx_1 = (PyList_GET_SIZE(__pyx_v_del_items) != PyList_GET_SIZE(__pyx_v_new_items));
 
6309
    __pyx_t_1 = (PyList_GET_SIZE(__pyx_v_del_items) != PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)));
 
6310
  } else {
 
6311
    __pyx_t_1 = (__pyx_v_c_step != 1);
5635
6312
  }
5636
 
  if (__pyx_1) {
 
6313
  if (__pyx_t_1) {
5637
6314
 
5638
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":593
 
6315
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":588
5639
6316
 *         raise ValueError, \
5640
6317
 *             u"attempt to assign sequence of size %d to extended slice of size %d" % (
5641
6318
 *             python.PyList_GET_SIZE(new_items),             # <<<<<<<<<<<<<<
5642
6319
 *             python.PyList_GET_SIZE(del_items))
5643
6320
 * 
5644
6321
 */
5645
 
    __pyx_4 = PyInt_FromSsize_t(PyList_GET_SIZE(__pyx_v_new_items)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6322
    __pyx_t_3 = PyInt_FromSsize_t(PyList_GET_SIZE(((PyObject *)__pyx_v_new_items))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6323
    __Pyx_GOTREF(__pyx_t_3);
5646
6324
 
5647
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":594
 
6325
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":589
5648
6326
 *             u"attempt to assign sequence of size %d to extended slice of size %d" % (
5649
6327
 *             python.PyList_GET_SIZE(new_items),
5650
6328
 *             python.PyList_GET_SIZE(del_items))             # <<<<<<<<<<<<<<
5651
6329
 * 
5652
6330
 *     # replace existing items
5653
6331
 */
5654
 
    __pyx_3 = PyInt_FromSsize_t(PyList_GET_SIZE(__pyx_v_del_items)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5655
 
    __pyx_6 = PyTuple_New(2); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5656
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4);
5657
 
    PyTuple_SET_ITEM(__pyx_6, 1, __pyx_3);
5658
 
    __pyx_4 = 0;
5659
 
    __pyx_3 = 0;
5660
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_686), ((PyObject *)__pyx_6)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5661
 
    Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
5662
 
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_1, 0);
5663
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5664
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6332
    __pyx_t_4 = PyInt_FromSsize_t(PyList_GET_SIZE(__pyx_v_del_items)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6333
    __Pyx_GOTREF(__pyx_t_4);
 
6334
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6335
    __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
6336
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
 
6337
    __Pyx_GIVEREF(__pyx_t_3);
 
6338
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
 
6339
    __Pyx_GIVEREF(__pyx_t_4);
 
6340
    __pyx_t_3 = 0;
 
6341
    __pyx_t_4 = 0;
 
6342
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_753), ((PyObject *)__pyx_t_6)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6343
    __Pyx_GOTREF(__pyx_t_4);
 
6344
    __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
6345
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_4, 0);
 
6346
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
6347
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5665
6348
    goto __pyx_L8;
5666
6349
  }
5667
6350
  __pyx_L8:;
5668
6351
 
5669
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":597
 
6352
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":592
5670
6353
 * 
5671
6354
 *     # replace existing items
5672
6355
 *     pos = 0             # <<<<<<<<<<<<<<
5675
6358
 */
5676
6359
  __pyx_v_pos = 0;
5677
6360
 
5678
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":598
 
6361
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":593
5679
6362
 *     # replace existing items
5680
6363
 *     pos = 0
5681
6364
 *     parent = target.getparent()             # <<<<<<<<<<<<<<
5682
6365
 *     replace = parent.replace
5683
6366
 *     while pos < python.PyList_GET_SIZE(new_items) and \
5684
6367
 */
5685
 
  __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_target), __pyx_kp_getparent); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5686
 
  __pyx_3 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5687
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
5688
 
  if (!(__Pyx_TypeTest(__pyx_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5689
 
  Py_DECREF(((PyObject *)__pyx_v_parent));
5690
 
  __pyx_v_parent = ((struct LxmlElement *)__pyx_3);
5691
 
  __pyx_3 = 0;
 
6368
  __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_target), __pyx_kp_getparent); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6369
  __Pyx_GOTREF(__pyx_t_4);
 
6370
  __pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6371
  __Pyx_GOTREF(__pyx_t_6);
 
6372
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
6373
  if (!(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6374
  __Pyx_DECREF(((PyObject *)__pyx_v_parent));
 
6375
  __pyx_v_parent = ((struct LxmlElement *)__pyx_t_6);
 
6376
  __pyx_t_6 = 0;
5692
6377
 
5693
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":599
 
6378
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":594
5694
6379
 *     pos = 0
5695
6380
 *     parent = target.getparent()
5696
6381
 *     replace = parent.replace             # <<<<<<<<<<<<<<
5697
6382
 *     while pos < python.PyList_GET_SIZE(new_items) and \
5698
6383
 *             pos < python.PyList_GET_SIZE(del_items):
5699
6384
 */
5700
 
  __pyx_6 = PyObject_GetAttr(((PyObject *)__pyx_v_parent), __pyx_kp_replace); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5701
 
  Py_DECREF(__pyx_v_replace);
5702
 
  __pyx_v_replace = __pyx_6;
5703
 
  __pyx_6 = 0;
 
6385
  __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_v_parent), __pyx_kp_replace); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6386
  __Pyx_GOTREF(__pyx_t_6);
 
6387
  __Pyx_DECREF(__pyx_v_replace);
 
6388
  __pyx_v_replace = __pyx_t_6;
 
6389
  __pyx_t_6 = 0;
5704
6390
 
5705
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":600
 
6391
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":595
5706
6392
 *     parent = target.getparent()
5707
6393
 *     replace = parent.replace
5708
6394
 *     while pos < python.PyList_GET_SIZE(new_items) and \             # <<<<<<<<<<<<<<
5710
6396
 *         replace(del_items[pos], new_items[pos])
5711
6397
 */
5712
6398
  while (1) {
5713
 
    __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_new_items));
5714
 
    if (__pyx_1) {
 
6399
    if ((__pyx_v_pos < PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)))) {
5715
6400
 
5716
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":601
 
6401
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":596
5717
6402
 *     replace = parent.replace
5718
6403
 *     while pos < python.PyList_GET_SIZE(new_items) and \
5719
6404
 *             pos < python.PyList_GET_SIZE(del_items):             # <<<<<<<<<<<<<<
5720
6405
 *         replace(del_items[pos], new_items[pos])
5721
6406
 *         pos += 1
5722
6407
 */
5723
 
      __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
 
6408
      __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
 
6409
    } else {
 
6410
      __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)));
5724
6411
    }
5725
 
    if (!__pyx_1) break;
 
6412
    if (!__pyx_t_1) break;
5726
6413
 
5727
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":602
 
6414
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":597
5728
6415
 *     while pos < python.PyList_GET_SIZE(new_items) and \
5729
6416
 *             pos < python.PyList_GET_SIZE(del_items):
5730
6417
 *         replace(del_items[pos], new_items[pos])             # <<<<<<<<<<<<<<
5731
6418
 *         pos += 1
5732
6419
 *     # remove leftover items
5733
6420
 */
5734
 
    __pyx_4 = __Pyx_GetItemInt(__pyx_v_del_items, __pyx_v_pos, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5735
 
    __pyx_3 = __Pyx_GetItemInt(__pyx_v_new_items, __pyx_v_pos, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5736
 
    __pyx_6 = PyTuple_New(2); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5737
 
    PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4);
5738
 
    PyTuple_SET_ITEM(__pyx_6, 1, __pyx_3);
5739
 
    __pyx_4 = 0;
5740
 
    __pyx_3 = 0;
5741
 
    __pyx_4 = PyObject_Call(__pyx_v_replace, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5742
 
    Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
5743
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
 
6421
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_del_items, __pyx_v_pos, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6422
    __Pyx_GOTREF(__pyx_1);
 
6423
    __pyx_2 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_new_items), __pyx_v_pos, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6424
    __Pyx_GOTREF(__pyx_2);
 
6425
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6426
    __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
6427
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_1);
 
6428
    __Pyx_GIVEREF(__pyx_1);
 
6429
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_2);
 
6430
    __Pyx_GIVEREF(__pyx_2);
 
6431
    __pyx_1 = 0;
 
6432
    __pyx_2 = 0;
 
6433
    __pyx_t_4 = PyObject_Call(__pyx_v_replace, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6434
    __Pyx_GOTREF(__pyx_t_4);
 
6435
    __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
6436
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5744
6437
 
5745
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":603
 
6438
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":598
5746
6439
 *             pos < python.PyList_GET_SIZE(del_items):
5747
6440
 *         replace(del_items[pos], new_items[pos])
5748
6441
 *         pos += 1             # <<<<<<<<<<<<<<
5752
6445
    __pyx_v_pos += 1;
5753
6446
  }
5754
6447
 
5755
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":605
 
6448
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":600
5756
6449
 *         pos += 1
5757
6450
 *     # remove leftover items
5758
6451
 *     if pos < python.PyList_GET_SIZE(del_items):             # <<<<<<<<<<<<<<
5759
6452
 *         remove = parent.remove
5760
6453
 *         while pos < python.PyList_GET_SIZE(del_items):
5761
6454
 */
5762
 
  __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
5763
 
  if (__pyx_1) {
 
6455
  __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
 
6456
  if (__pyx_t_1) {
5764
6457
 
5765
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":606
 
6458
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":601
5766
6459
 *     # remove leftover items
5767
6460
 *     if pos < python.PyList_GET_SIZE(del_items):
5768
6461
 *         remove = parent.remove             # <<<<<<<<<<<<<<
5769
6462
 *         while pos < python.PyList_GET_SIZE(del_items):
5770
6463
 *             remove(del_items[pos])
5771
6464
 */
5772
 
    __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_parent), __pyx_kp_remove); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5773
 
    Py_DECREF(__pyx_v_remove);
5774
 
    __pyx_v_remove = __pyx_3;
5775
 
    __pyx_3 = 0;
 
6465
    __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_parent), __pyx_kp_remove); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6466
    __Pyx_GOTREF(__pyx_t_4);
 
6467
    __Pyx_DECREF(__pyx_v_remove);
 
6468
    __pyx_v_remove = __pyx_t_4;
 
6469
    __pyx_t_4 = 0;
5776
6470
 
5777
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":607
 
6471
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":602
5778
6472
 *     if pos < python.PyList_GET_SIZE(del_items):
5779
6473
 *         remove = parent.remove
5780
6474
 *         while pos < python.PyList_GET_SIZE(del_items):             # <<<<<<<<<<<<<<
5782
6476
 *             pos += 1
5783
6477
 */
5784
6478
    while (1) {
5785
 
      __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
5786
 
      if (!__pyx_1) break;
 
6479
      __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_del_items));
 
6480
      if (!__pyx_t_1) break;
5787
6481
 
5788
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":608
 
6482
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":603
5789
6483
 *         remove = parent.remove
5790
6484
 *         while pos < python.PyList_GET_SIZE(del_items):
5791
6485
 *             remove(del_items[pos])             # <<<<<<<<<<<<<<
5792
6486
 *             pos += 1
5793
6487
 *     # append remaining new items
5794
6488
 */
5795
 
      __pyx_6 = __Pyx_GetItemInt(__pyx_v_del_items, __pyx_v_pos, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5796
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5797
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_6);
5798
 
      __pyx_6 = 0;
5799
 
      __pyx_3 = PyObject_Call(__pyx_v_remove, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5800
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
5801
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
6489
      __pyx_1 = __Pyx_GetItemInt(__pyx_v_del_items, __pyx_v_pos, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6490
      __Pyx_GOTREF(__pyx_1);
 
6491
      __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6492
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
6493
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_1);
 
6494
      __Pyx_GIVEREF(__pyx_1);
 
6495
      __pyx_1 = 0;
 
6496
      __pyx_t_6 = PyObject_Call(__pyx_v_remove, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6497
      __Pyx_GOTREF(__pyx_t_6);
 
6498
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
6499
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
5802
6500
 
5803
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":609
 
6501
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":604
5804
6502
 *         while pos < python.PyList_GET_SIZE(del_items):
5805
6503
 *             remove(del_items[pos])
5806
6504
 *             pos += 1             # <<<<<<<<<<<<<<
5813
6511
  }
5814
6512
  __pyx_L11:;
5815
6513
 
5816
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":611
 
6514
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":606
5817
6515
 *             pos += 1
5818
6516
 *     # append remaining new items
5819
6517
 *     if pos < python.PyList_GET_SIZE(new_items):             # <<<<<<<<<<<<<<
5820
6518
 *         # the sanity check above guarantees (step == 1)
5821
6519
 *         if pos > 0:
5822
6520
 */
5823
 
  __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_new_items));
5824
 
  if (__pyx_1) {
 
6521
  __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)));
 
6522
  if (__pyx_t_1) {
5825
6523
 
5826
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":613
 
6524
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":608
5827
6525
 *     if pos < python.PyList_GET_SIZE(new_items):
5828
6526
 *         # the sanity check above guarantees (step == 1)
5829
6527
 *         if pos > 0:             # <<<<<<<<<<<<<<
5830
6528
 *             item = new_items[pos-1]
5831
6529
 *         else:
5832
6530
 */
5833
 
    __pyx_1 = (__pyx_v_pos > 0);
5834
 
    if (__pyx_1) {
 
6531
    __pyx_t_1 = (__pyx_v_pos > 0);
 
6532
    if (__pyx_t_1) {
5835
6533
 
5836
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":614
 
6534
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":609
5837
6535
 *         # the sanity check above guarantees (step == 1)
5838
6536
 *         if pos > 0:
5839
6537
 *             item = new_items[pos-1]             # <<<<<<<<<<<<<<
5840
6538
 *         else:
5841
6539
 *             if (<python.slice>slice).start > 0:
5842
6540
 */
5843
 
      __pyx_2 = (__pyx_v_pos - 1);
5844
 
      __pyx_6 = __Pyx_GetItemInt(__pyx_v_new_items, __pyx_2, 0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5845
 
      Py_DECREF(__pyx_v_item);
5846
 
      __pyx_v_item = __pyx_6;
5847
 
      __pyx_6 = 0;
 
6541
      __pyx_t_2 = (__pyx_v_pos - 1);
 
6542
      __pyx_2 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_new_items), __pyx_t_2, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6543
      __Pyx_GOTREF(__pyx_2);
 
6544
      __Pyx_DECREF(__pyx_v_item);
 
6545
      __pyx_v_item = __pyx_2;
 
6546
      __pyx_2 = 0;
5848
6547
      goto __pyx_L15;
5849
6548
    }
5850
6549
    /*else*/ {
5851
6550
 
5852
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":616
 
6551
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":611
5853
6552
 *             item = new_items[pos-1]
5854
6553
 *         else:
5855
6554
 *             if (<python.slice>slice).start > 0:             # <<<<<<<<<<<<<<
5856
6555
 *                 c_node = parent._c_node.children
5857
6556
 *             else:
5858
6557
 */
5859
 
      __pyx_4 = PyObject_RichCompare(((PySliceObject *)__pyx_v_slice)->start, __pyx_int_0, Py_GT); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5860
 
      __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5861
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
5862
 
      if (__pyx_1) {
 
6558
      __pyx_t_6 = PyObject_RichCompare(((PySliceObject *)__pyx_v_slice)->start, __pyx_int_0, Py_GT); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6559
      __Pyx_GOTREF(__pyx_t_6);
 
6560
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6561
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
6562
      if (__pyx_t_1) {
5863
6563
 
5864
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":617
 
6564
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":612
5865
6565
 *         else:
5866
6566
 *             if (<python.slice>slice).start > 0:
5867
6567
 *                 c_node = parent._c_node.children             # <<<<<<<<<<<<<<
5873
6573
      }
5874
6574
      /*else*/ {
5875
6575
 
5876
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":619
 
6576
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":614
5877
6577
 *                 c_node = parent._c_node.children
5878
6578
 *             else:
5879
6579
 *                 c_node = parent._c_node.last             # <<<<<<<<<<<<<<
5884
6584
      }
5885
6585
      __pyx_L16:;
5886
6586
 
5887
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":622
 
6587
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":617
5888
6588
 *             c_node = _findFollowingSibling(
5889
6589
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
5890
6590
 *                 (<python.slice>slice).start - 1)             # <<<<<<<<<<<<<<
5891
6591
 *             if c_node is NULL:
5892
6592
 *                 while pos < python.PyList_GET_SIZE(new_items):
5893
6593
 */
5894
 
      __pyx_t_1 = PyNumber_Subtract(((PySliceObject *)__pyx_v_slice)->start, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5895
 
      __pyx_2 = __pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5896
 
      Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5897
 
      __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_target->_c_node), __pyx_v_target->_c_node->name, __pyx_2);
 
6594
      __pyx_t_6 = PyNumber_Subtract(((PySliceObject *)__pyx_v_slice)->start, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6595
      __Pyx_GOTREF(__pyx_t_6);
 
6596
      __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_t_6); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6597
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
6598
      __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, _getNs(__pyx_v_target->_c_node), __pyx_v_target->_c_node->name, __pyx_t_2);
5898
6599
 
5899
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":623
 
6600
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":618
5900
6601
 *                 c_node, tree._getNs(target._c_node), target._c_node.name,
5901
6602
 *                 (<python.slice>slice).start - 1)
5902
6603
 *             if c_node is NULL:             # <<<<<<<<<<<<<<
5903
6604
 *                 while pos < python.PyList_GET_SIZE(new_items):
5904
6605
 *                     cetree.appendChild(parent, new_items[pos])
5905
6606
 */
5906
 
      __pyx_1 = (__pyx_v_c_node == NULL);
5907
 
      if (__pyx_1) {
 
6607
      __pyx_t_1 = (__pyx_v_c_node == NULL);
 
6608
      if (__pyx_t_1) {
5908
6609
 
5909
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":624
 
6610
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":619
5910
6611
 *                 (<python.slice>slice).start - 1)
5911
6612
 *             if c_node is NULL:
5912
6613
 *                 while pos < python.PyList_GET_SIZE(new_items):             # <<<<<<<<<<<<<<
5914
6615
 *                     pos += 1
5915
6616
 */
5916
6617
        while (1) {
5917
 
          __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_new_items));
5918
 
          if (!__pyx_1) break;
 
6618
          __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)));
 
6619
          if (!__pyx_t_1) break;
5919
6620
 
5920
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":625
 
6621
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":620
5921
6622
 *             if c_node is NULL:
5922
6623
 *                 while pos < python.PyList_GET_SIZE(new_items):
5923
6624
 *                     cetree.appendChild(parent, new_items[pos])             # <<<<<<<<<<<<<<
5924
6625
 *                     pos += 1
5925
6626
 *                 return
5926
6627
 */
5927
 
          __pyx_3 = __Pyx_GetItemInt(__pyx_v_new_items, __pyx_v_pos, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5928
 
          if (!(__Pyx_TypeTest(__pyx_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5929
 
          appendChild(__pyx_v_parent, ((struct LxmlElement *)__pyx_3));
5930
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
 
6628
          __pyx_1 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_new_items), __pyx_v_pos, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6629
          __Pyx_GOTREF(__pyx_1);
 
6630
          if (!(__Pyx_TypeTest(__pyx_1, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6631
          appendChild(__pyx_v_parent, ((struct LxmlElement *)__pyx_1));
 
6632
          __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
5931
6633
 
5932
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":626
 
6634
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":621
5933
6635
 *                 while pos < python.PyList_GET_SIZE(new_items):
5934
6636
 *                     cetree.appendChild(parent, new_items[pos])
5935
6637
 *                     pos += 1             # <<<<<<<<<<<<<<
5939
6641
          __pyx_v_pos += 1;
5940
6642
        }
5941
6643
 
5942
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":627
 
6644
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":622
5943
6645
 *                     cetree.appendChild(parent, new_items[pos])
5944
6646
 *                     pos += 1
5945
6647
 *                 return             # <<<<<<<<<<<<<<
5946
6648
 *             item = cetree.elementFactory(parent._doc, c_node)
5947
6649
 *         while pos < python.PyList_GET_SIZE(new_items):
5948
6650
 */
5949
 
        __pyx_r = Py_None; Py_INCREF(Py_None);
 
6651
        __Pyx_XDECREF(__pyx_r);
 
6652
        __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5950
6653
        goto __pyx_L0;
5951
6654
        goto __pyx_L17;
5952
6655
      }
5953
6656
      __pyx_L17:;
5954
6657
 
5955
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":628
 
6658
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":623
5956
6659
 *                     pos += 1
5957
6660
 *                 return
5958
6661
 *             item = cetree.elementFactory(parent._doc, c_node)             # <<<<<<<<<<<<<<
5959
6662
 *         while pos < python.PyList_GET_SIZE(new_items):
5960
6663
 *             add = item.addnext
5961
6664
 */
5962
 
      __pyx_6 = ((PyObject *)elementFactory(__pyx_v_parent->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5963
 
      Py_DECREF(__pyx_v_item);
5964
 
      __pyx_v_item = __pyx_6;
5965
 
      __pyx_6 = 0;
 
6665
      __pyx_t_6 = ((PyObject *)elementFactory(__pyx_v_parent->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6666
      __Pyx_GOTREF(__pyx_t_6);
 
6667
      __Pyx_DECREF(__pyx_v_item);
 
6668
      __pyx_v_item = __pyx_t_6;
 
6669
      __pyx_t_6 = 0;
5966
6670
    }
5967
6671
    __pyx_L15:;
5968
6672
 
5969
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":629
 
6673
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":624
5970
6674
 *                 return
5971
6675
 *             item = cetree.elementFactory(parent._doc, c_node)
5972
6676
 *         while pos < python.PyList_GET_SIZE(new_items):             # <<<<<<<<<<<<<<
5974
6678
 *             item = new_items[pos]
5975
6679
 */
5976
6680
    while (1) {
5977
 
      __pyx_1 = (__pyx_v_pos < PyList_GET_SIZE(__pyx_v_new_items));
5978
 
      if (!__pyx_1) break;
 
6681
      __pyx_t_1 = (__pyx_v_pos < PyList_GET_SIZE(((PyObject *)__pyx_v_new_items)));
 
6682
      if (!__pyx_t_1) break;
5979
6683
 
5980
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":630
 
6684
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":625
5981
6685
 *             item = cetree.elementFactory(parent._doc, c_node)
5982
6686
 *         while pos < python.PyList_GET_SIZE(new_items):
5983
6687
 *             add = item.addnext             # <<<<<<<<<<<<<<
5984
6688
 *             item = new_items[pos]
5985
6689
 *             add(item)
5986
6690
 */
5987
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_item, __pyx_kp_addnext); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
5988
 
      Py_DECREF(__pyx_v_add);
5989
 
      __pyx_v_add = __pyx_4;
5990
 
      __pyx_4 = 0;
 
6691
      __pyx_t_6 = PyObject_GetAttr(__pyx_v_item, __pyx_kp_addnext); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6692
      __Pyx_GOTREF(__pyx_t_6);
 
6693
      __Pyx_DECREF(__pyx_v_add);
 
6694
      __pyx_v_add = __pyx_t_6;
 
6695
      __pyx_t_6 = 0;
5991
6696
 
5992
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":631
 
6697
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":626
5993
6698
 *         while pos < python.PyList_GET_SIZE(new_items):
5994
6699
 *             add = item.addnext
5995
6700
 *             item = new_items[pos]             # <<<<<<<<<<<<<<
5996
6701
 *             add(item)
5997
6702
 *             pos += 1
5998
6703
 */
5999
 
      __pyx_3 = __Pyx_GetItemInt(__pyx_v_new_items, __pyx_v_pos, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6000
 
      Py_DECREF(__pyx_v_item);
6001
 
      __pyx_v_item = __pyx_3;
6002
 
      __pyx_3 = 0;
 
6704
      __pyx_2 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_new_items), __pyx_v_pos, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6705
      __Pyx_GOTREF(__pyx_2);
 
6706
      __Pyx_DECREF(__pyx_v_item);
 
6707
      __pyx_v_item = __pyx_2;
 
6708
      __pyx_2 = 0;
6003
6709
 
6004
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":632
 
6710
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":627
6005
6711
 *             add = item.addnext
6006
6712
 *             item = new_items[pos]
6007
6713
 *             add(item)             # <<<<<<<<<<<<<<
6008
6714
 *             pos += 1
6009
6715
 * 
6010
6716
 */
6011
 
      __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6012
 
      Py_INCREF(__pyx_v_item);
6013
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_item);
6014
 
      __pyx_4 = PyObject_Call(__pyx_v_add, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6015
 
      Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
6016
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
6717
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6718
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
6719
      __Pyx_INCREF(__pyx_v_item);
 
6720
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_item);
 
6721
      __Pyx_GIVEREF(__pyx_v_item);
 
6722
      __pyx_t_4 = PyObject_Call(__pyx_v_add, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6723
      __Pyx_GOTREF(__pyx_t_4);
 
6724
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
6725
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
6017
6726
 
6018
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":633
 
6727
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":628
6019
6728
 *             item = new_items[pos]
6020
6729
 *             add(item)
6021
6730
 *             pos += 1             # <<<<<<<<<<<<<<
6028
6737
  }
6029
6738
  __pyx_L14:;
6030
6739
 
6031
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6740
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6032
6741
  goto __pyx_L0;
6033
6742
  __pyx_L1_error:;
6034
 
  Py_XDECREF(__pyx_3);
6035
 
  Py_XDECREF(__pyx_4);
6036
 
  Py_XDECREF(__pyx_6);
 
6743
  __Pyx_XDECREF(__pyx_1);
 
6744
  __Pyx_XDECREF(__pyx_2);
 
6745
  __Pyx_XDECREF(__pyx_t_3);
 
6746
  __Pyx_XDECREF(__pyx_t_4);
 
6747
  __Pyx_XDECREF(__pyx_t_6);
6037
6748
  __Pyx_AddTraceback("lxml.objectify._setSlice");
6038
6749
  __pyx_r = 0;
6039
6750
  __pyx_L0:;
6040
 
  Py_DECREF(__pyx_v_parent);
6041
 
  Py_DECREF(__pyx_v_del_items);
6042
 
  Py_DECREF(__pyx_v_new_items);
6043
 
  Py_DECREF(__pyx_v_tag);
6044
 
  Py_DECREF(__pyx_v_item);
6045
 
  Py_DECREF(__pyx_v_new_element);
6046
 
  Py_DECREF(__pyx_v_replace);
6047
 
  Py_DECREF(__pyx_v_remove);
6048
 
  Py_DECREF(__pyx_v_add);
 
6751
  __Pyx_DECREF((PyObject *)__pyx_v_parent);
 
6752
  __Pyx_DECREF(__pyx_v_new_items);
 
6753
  __Pyx_DECREF(__pyx_v_del_items);
 
6754
  __Pyx_DECREF(__pyx_v_tag);
 
6755
  __Pyx_DECREF(__pyx_v_item);
 
6756
  __Pyx_DECREF(__pyx_v_new_element);
 
6757
  __Pyx_DECREF(__pyx_v_replace);
 
6758
  __Pyx_DECREF(__pyx_v_remove);
 
6759
  __Pyx_DECREF(__pyx_v_add);
 
6760
  __Pyx_XGIVEREF(__pyx_r);
 
6761
  __Pyx_FinishRefcountContext();
6049
6762
  return __pyx_r;
6050
6763
}
6051
6764
 
6052
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":643
 
6765
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":638
6053
6766
 *     """
6054
6767
 *     property pyval:
6055
6768
 *         def __get__(self):             # <<<<<<<<<<<<<<
6059
6772
 
6060
6773
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/
6061
6774
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement_5pyval___get__(PyObject *__pyx_v_self) {
6062
 
  PyObject *__pyx_r;
6063
 
  PyObject *__pyx_1 = 0;
 
6775
  PyObject *__pyx_r = NULL;
 
6776
  PyObject *__pyx_t_1 = NULL;
 
6777
  __Pyx_SetupRefcountContext("__get__");
6064
6778
 
6065
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":644
 
6779
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":639
6066
6780
 *     property pyval:
6067
6781
 *         def __get__(self):
6068
6782
 *             return textOf(self._c_node)             # <<<<<<<<<<<<<<
6069
6783
 * 
6070
6784
 *     def __str__(self):
6071
6785
 */
6072
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6073
 
  __pyx_r = __pyx_1;
6074
 
  __pyx_1 = 0;
 
6786
  __Pyx_XDECREF(__pyx_r);
 
6787
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6788
  __Pyx_GOTREF(__pyx_t_1);
 
6789
  __pyx_r = __pyx_t_1;
 
6790
  __pyx_t_1 = 0;
6075
6791
  goto __pyx_L0;
6076
6792
 
6077
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6793
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6078
6794
  goto __pyx_L0;
6079
6795
  __pyx_L1_error:;
6080
 
  Py_XDECREF(__pyx_1);
 
6796
  __Pyx_XDECREF(__pyx_t_1);
6081
6797
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.pyval.__get__");
6082
6798
  __pyx_r = NULL;
6083
6799
  __pyx_L0:;
 
6800
  __Pyx_XGIVEREF(__pyx_r);
 
6801
  __Pyx_FinishRefcountContext();
6084
6802
  return __pyx_r;
6085
6803
}
6086
6804
 
6087
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":646
 
6805
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":641
6088
6806
 *             return textOf(self._c_node)
6089
6807
 * 
6090
6808
 *     def __str__(self):             # <<<<<<<<<<<<<<
6094
6812
 
6095
6813
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__(PyObject *__pyx_v_self); /*proto*/
6096
6814
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__(PyObject *__pyx_v_self) {
6097
 
  PyObject *__pyx_r;
6098
 
  PyObject *__pyx_1 = 0;
6099
 
  int __pyx_2;
 
6815
  PyObject *__pyx_r = NULL;
 
6816
  PyObject *__pyx_t_1 = NULL;
 
6817
  int __pyx_t_2;
 
6818
  PyObject *__pyx_t_3 = NULL;
 
6819
  __Pyx_SetupRefcountContext("__str__");
6100
6820
 
6101
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":647
 
6821
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":642
6102
6822
 * 
6103
6823
 *     def __str__(self):
6104
6824
 *         return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
6105
6825
 * 
6106
6826
 *     def __repr__(self):
6107
6827
 */
6108
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6109
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6110
 
  if (!__pyx_2) {
6111
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
6112
 
    __pyx_1 = ((PyObject *)__pyx_kp_687);
6113
 
    Py_INCREF(__pyx_1);
 
6828
  __Pyx_XDECREF(__pyx_r);
 
6829
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6830
  __Pyx_GOTREF(__pyx_t_1);
 
6831
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6832
  if (!__pyx_t_2) {
 
6833
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
6834
    __Pyx_INCREF(((PyObject *)__pyx_kp_754));
 
6835
    __pyx_t_3 = __pyx_kp_754;
 
6836
  } else {
 
6837
    __pyx_t_3 = __pyx_t_1;
 
6838
    __pyx_t_1 = 0;
6114
6839
  }
6115
 
  __pyx_r = __pyx_1;
6116
 
  __pyx_1 = 0;
 
6840
  __pyx_r = __pyx_t_3;
 
6841
  __pyx_t_3 = 0;
6117
6842
  goto __pyx_L0;
6118
6843
 
6119
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6844
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6120
6845
  goto __pyx_L0;
6121
6846
  __pyx_L1_error:;
6122
 
  Py_XDECREF(__pyx_1);
 
6847
  __Pyx_XDECREF(__pyx_t_1);
 
6848
  __Pyx_XDECREF(__pyx_t_3);
6123
6849
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.__str__");
6124
6850
  __pyx_r = NULL;
6125
6851
  __pyx_L0:;
 
6852
  __Pyx_XGIVEREF(__pyx_r);
 
6853
  __Pyx_FinishRefcountContext();
6126
6854
  return __pyx_r;
6127
6855
}
6128
6856
 
6129
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":649
 
6857
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":644
6130
6858
 *         return textOf(self._c_node) or u''
6131
6859
 * 
6132
6860
 *     def __repr__(self):             # <<<<<<<<<<<<<<
6136
6864
 
6137
6865
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___repr__(PyObject *__pyx_v_self); /*proto*/
6138
6866
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___repr__(PyObject *__pyx_v_self) {
6139
 
  PyObject *__pyx_r;
6140
 
  PyObject *__pyx_1 = 0;
6141
 
  int __pyx_2;
 
6867
  PyObject *__pyx_r = NULL;
 
6868
  PyObject *__pyx_t_1 = NULL;
 
6869
  int __pyx_t_2;
 
6870
  PyObject *__pyx_t_3 = NULL;
 
6871
  __Pyx_SetupRefcountContext("__repr__");
6142
6872
 
6143
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":650
 
6873
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":645
6144
6874
 * 
6145
6875
 *     def __repr__(self):
6146
6876
 *         return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
6147
6877
 * 
6148
6878
 *     def _setText(self, s):
6149
6879
 */
6150
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6151
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6152
 
  if (!__pyx_2) {
6153
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
6154
 
    __pyx_1 = ((PyObject *)__pyx_kp_688);
6155
 
    Py_INCREF(__pyx_1);
 
6880
  __Pyx_XDECREF(__pyx_r);
 
6881
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6882
  __Pyx_GOTREF(__pyx_t_1);
 
6883
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6884
  if (!__pyx_t_2) {
 
6885
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
6886
    __Pyx_INCREF(((PyObject *)__pyx_kp_755));
 
6887
    __pyx_t_3 = __pyx_kp_755;
 
6888
  } else {
 
6889
    __pyx_t_3 = __pyx_t_1;
 
6890
    __pyx_t_1 = 0;
6156
6891
  }
6157
 
  __pyx_r = __pyx_1;
6158
 
  __pyx_1 = 0;
 
6892
  __pyx_r = __pyx_t_3;
 
6893
  __pyx_t_3 = 0;
6159
6894
  goto __pyx_L0;
6160
6895
 
6161
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6896
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6162
6897
  goto __pyx_L0;
6163
6898
  __pyx_L1_error:;
6164
 
  Py_XDECREF(__pyx_1);
 
6899
  __Pyx_XDECREF(__pyx_t_1);
 
6900
  __Pyx_XDECREF(__pyx_t_3);
6165
6901
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement.__repr__");
6166
6902
  __pyx_r = NULL;
6167
6903
  __pyx_L0:;
 
6904
  __Pyx_XGIVEREF(__pyx_r);
 
6905
  __Pyx_FinishRefcountContext();
6168
6906
  return __pyx_r;
6169
6907
}
6170
6908
 
6171
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":652
 
6909
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":647
6172
6910
 *         return textOf(self._c_node) or u''
6173
6911
 * 
6174
6912
 *     def _setText(self, s):             # <<<<<<<<<<<<<<
6179
6917
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement__setText(PyObject *__pyx_v_self, PyObject *__pyx_v_s); /*proto*/
6180
6918
static char __pyx_doc_4lxml_9objectify_22ObjectifiedDataElement__setText[] = "For use in subclasses only. Don't use unless you know what you are\n        doing.\n        ";
6181
6919
static PyObject *__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement__setText(PyObject *__pyx_v_self, PyObject *__pyx_v_s) {
6182
 
  PyObject *__pyx_r;
6183
 
  int __pyx_1;
 
6920
  PyObject *__pyx_r = NULL;
 
6921
  int __pyx_t_1;
 
6922
  __Pyx_SetupRefcountContext("_setText");
6184
6923
 
6185
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":656
 
6924
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":651
6186
6925
 *         doing.
6187
6926
 *         """
6188
6927
 *         cetree.setNodeText(self._c_node, s)             # <<<<<<<<<<<<<<
6189
6928
 * 
6190
6929
 * cdef class NumberElement(ObjectifiedDataElement):
6191
6930
 */
6192
 
  __pyx_1 = setNodeText(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node, __pyx_v_s); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
6931
  __pyx_t_1 = setNodeText(((struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base._c_node, __pyx_v_s); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6193
6932
 
6194
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6933
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6195
6934
  goto __pyx_L0;
6196
6935
  __pyx_L1_error:;
6197
6936
  __Pyx_AddTraceback("lxml.objectify.ObjectifiedDataElement._setText");
6198
6937
  __pyx_r = NULL;
6199
6938
  __pyx_L0:;
 
6939
  __Pyx_XGIVEREF(__pyx_r);
 
6940
  __Pyx_FinishRefcountContext();
6200
6941
  return __pyx_r;
6201
6942
}
6202
6943
 
6203
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":660
 
6944
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":655
6204
6945
 * cdef class NumberElement(ObjectifiedDataElement):
6205
6946
 *     cdef object _parse_value
6206
6947
 *     def _setValueParser(self, function):             # <<<<<<<<<<<<<<
6211
6952
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_v_function); /*proto*/
6212
6953
static char __pyx_doc_4lxml_9objectify_13NumberElement__setValueParser[] = "Set the function that parses the Python value from a string.\n\n        Do not use this unless you know what you are doing.\n        ";
6213
6954
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser(PyObject *__pyx_v_self, PyObject *__pyx_v_function) {
6214
 
  PyObject *__pyx_r;
 
6955
  PyObject *__pyx_r = NULL;
 
6956
  __Pyx_SetupRefcountContext("_setValueParser");
6215
6957
 
6216
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":665
 
6958
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":660
6217
6959
 *         Do not use this unless you know what you are doing.
6218
6960
 *         """
6219
6961
 *         self._parse_value = function             # <<<<<<<<<<<<<<
6220
6962
 * 
6221
6963
 *     property pyval:
6222
6964
 */
6223
 
  Py_INCREF(__pyx_v_function);
6224
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)->_parse_value);
 
6965
  __Pyx_INCREF(__pyx_v_function);
 
6966
  __Pyx_GIVEREF(__pyx_v_function);
 
6967
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)->_parse_value);
 
6968
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)->_parse_value);
6225
6969
  ((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)->_parse_value = __pyx_v_function;
6226
6970
 
6227
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
6971
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
6972
  __Pyx_XGIVEREF(__pyx_r);
 
6973
  __Pyx_FinishRefcountContext();
6228
6974
  return __pyx_r;
6229
6975
}
6230
6976
 
6231
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":668
 
6977
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":663
6232
6978
 * 
6233
6979
 *     property pyval:
6234
6980
 *         def __get__(self):             # <<<<<<<<<<<<<<
6238
6984
 
6239
6985
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/
6240
6986
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement_5pyval___get__(PyObject *__pyx_v_self) {
6241
 
  PyObject *__pyx_r;
6242
 
  PyObject *__pyx_1 = 0;
 
6987
  PyObject *__pyx_r = NULL;
 
6988
  PyObject *__pyx_t_1 = NULL;
 
6989
  __Pyx_SetupRefcountContext("__get__");
6243
6990
 
6244
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":669
 
6991
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":664
6245
6992
 *     property pyval:
6246
6993
 *         def __get__(self):
6247
6994
 *             return _parseNumber(self)             # <<<<<<<<<<<<<<
6248
6995
 * 
6249
6996
 *     def __int__(self):
6250
6997
 */
6251
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6252
 
  __pyx_r = __pyx_1;
6253
 
  __pyx_1 = 0;
 
6998
  __Pyx_XDECREF(__pyx_r);
 
6999
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7000
  __Pyx_GOTREF(__pyx_t_1);
 
7001
  __pyx_r = __pyx_t_1;
 
7002
  __pyx_t_1 = 0;
6254
7003
  goto __pyx_L0;
6255
7004
 
6256
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7005
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6257
7006
  goto __pyx_L0;
6258
7007
  __pyx_L1_error:;
6259
 
  Py_XDECREF(__pyx_1);
 
7008
  __Pyx_XDECREF(__pyx_t_1);
6260
7009
  __Pyx_AddTraceback("lxml.objectify.NumberElement.pyval.__get__");
6261
7010
  __pyx_r = NULL;
6262
7011
  __pyx_L0:;
 
7012
  __Pyx_XGIVEREF(__pyx_r);
 
7013
  __Pyx_FinishRefcountContext();
6263
7014
  return __pyx_r;
6264
7015
}
6265
7016
 
6266
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":671
 
7017
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":666
6267
7018
 *             return _parseNumber(self)
6268
7019
 * 
6269
7020
 *     def __int__(self):             # <<<<<<<<<<<<<<
6273
7024
 
6274
7025
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___int__(PyObject *__pyx_v_self); /*proto*/
6275
7026
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___int__(PyObject *__pyx_v_self) {
6276
 
  PyObject *__pyx_r;
6277
 
  PyObject *__pyx_1 = 0;
6278
 
  PyObject *__pyx_2 = 0;
 
7027
  PyObject *__pyx_r = NULL;
 
7028
  PyObject *__pyx_t_1 = NULL;
 
7029
  PyObject *__pyx_t_2 = NULL;
 
7030
  __Pyx_SetupRefcountContext("__int__");
6279
7031
 
6280
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":672
 
7032
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":667
6281
7033
 * 
6282
7034
 *     def __int__(self):
6283
7035
 *         return int(_parseNumber(self))             # <<<<<<<<<<<<<<
6284
7036
 * 
6285
7037
 *     def __long__(self):
6286
7038
 */
6287
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6288
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6289
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6290
 
  __pyx_1 = 0;
6291
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6292
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6293
 
  __pyx_r = __pyx_1;
6294
 
  __pyx_1 = 0;
 
7039
  __Pyx_XDECREF(__pyx_r);
 
7040
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7041
  __Pyx_GOTREF(__pyx_t_1);
 
7042
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7043
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7044
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7045
  __Pyx_GIVEREF(__pyx_t_1);
 
7046
  __pyx_t_1 = 0;
 
7047
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7048
  __Pyx_GOTREF(__pyx_t_1);
 
7049
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7050
  __pyx_r = __pyx_t_1;
 
7051
  __pyx_t_1 = 0;
6295
7052
  goto __pyx_L0;
6296
7053
 
6297
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7054
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6298
7055
  goto __pyx_L0;
6299
7056
  __pyx_L1_error:;
6300
 
  Py_XDECREF(__pyx_1);
6301
 
  Py_XDECREF(__pyx_2);
 
7057
  __Pyx_XDECREF(__pyx_t_1);
 
7058
  __Pyx_XDECREF(__pyx_t_2);
6302
7059
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__int__");
6303
7060
  __pyx_r = NULL;
6304
7061
  __pyx_L0:;
 
7062
  __Pyx_XGIVEREF(__pyx_r);
 
7063
  __Pyx_FinishRefcountContext();
6305
7064
  return __pyx_r;
6306
7065
}
6307
7066
 
6308
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":674
 
7067
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":669
6309
7068
 *         return int(_parseNumber(self))
6310
7069
 * 
6311
7070
 *     def __long__(self):             # <<<<<<<<<<<<<<
6315
7074
 
6316
7075
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___long__(PyObject *__pyx_v_self); /*proto*/
6317
7076
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___long__(PyObject *__pyx_v_self) {
6318
 
  PyObject *__pyx_r;
6319
 
  PyObject *__pyx_1 = 0;
6320
 
  PyObject *__pyx_2 = 0;
 
7077
  PyObject *__pyx_r = NULL;
 
7078
  PyObject *__pyx_t_1 = NULL;
 
7079
  PyObject *__pyx_t_2 = NULL;
 
7080
  __Pyx_SetupRefcountContext("__long__");
6321
7081
 
6322
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":675
 
7082
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":670
6323
7083
 * 
6324
7084
 *     def __long__(self):
6325
7085
 *         return long(_parseNumber(self))             # <<<<<<<<<<<<<<
6326
7086
 * 
6327
7087
 *     def __float__(self):
6328
7088
 */
6329
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6330
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6331
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6332
 
  __pyx_1 = 0;
6333
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyLong_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6334
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6335
 
  __pyx_r = __pyx_1;
6336
 
  __pyx_1 = 0;
 
7089
  __Pyx_XDECREF(__pyx_r);
 
7090
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7091
  __Pyx_GOTREF(__pyx_t_1);
 
7092
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7093
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7094
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7095
  __Pyx_GIVEREF(__pyx_t_1);
 
7096
  __pyx_t_1 = 0;
 
7097
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyLong_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7098
  __Pyx_GOTREF(__pyx_t_1);
 
7099
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7100
  __pyx_r = __pyx_t_1;
 
7101
  __pyx_t_1 = 0;
6337
7102
  goto __pyx_L0;
6338
7103
 
6339
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7104
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6340
7105
  goto __pyx_L0;
6341
7106
  __pyx_L1_error:;
6342
 
  Py_XDECREF(__pyx_1);
6343
 
  Py_XDECREF(__pyx_2);
 
7107
  __Pyx_XDECREF(__pyx_t_1);
 
7108
  __Pyx_XDECREF(__pyx_t_2);
6344
7109
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__long__");
6345
7110
  __pyx_r = NULL;
6346
7111
  __pyx_L0:;
 
7112
  __Pyx_XGIVEREF(__pyx_r);
 
7113
  __Pyx_FinishRefcountContext();
6347
7114
  return __pyx_r;
6348
7115
}
6349
7116
 
6350
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":677
 
7117
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":672
6351
7118
 *         return long(_parseNumber(self))
6352
7119
 * 
6353
7120
 *     def __float__(self):             # <<<<<<<<<<<<<<
6357
7124
 
6358
7125
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___float__(PyObject *__pyx_v_self); /*proto*/
6359
7126
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___float__(PyObject *__pyx_v_self) {
6360
 
  PyObject *__pyx_r;
6361
 
  PyObject *__pyx_1 = 0;
6362
 
  PyObject *__pyx_2 = 0;
 
7127
  PyObject *__pyx_r = NULL;
 
7128
  PyObject *__pyx_t_1 = NULL;
 
7129
  PyObject *__pyx_t_2 = NULL;
 
7130
  __Pyx_SetupRefcountContext("__float__");
6363
7131
 
6364
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":678
 
7132
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":673
6365
7133
 * 
6366
7134
 *     def __float__(self):
6367
7135
 *         return float(_parseNumber(self))             # <<<<<<<<<<<<<<
6368
7136
 * 
6369
7137
 *     def __complex__(self):
6370
7138
 */
6371
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6372
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6373
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6374
 
  __pyx_1 = 0;
6375
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyFloat_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6376
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6377
 
  __pyx_r = __pyx_1;
6378
 
  __pyx_1 = 0;
 
7139
  __Pyx_XDECREF(__pyx_r);
 
7140
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7141
  __Pyx_GOTREF(__pyx_t_1);
 
7142
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7143
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7144
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7145
  __Pyx_GIVEREF(__pyx_t_1);
 
7146
  __pyx_t_1 = 0;
 
7147
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyFloat_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7148
  __Pyx_GOTREF(__pyx_t_1);
 
7149
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7150
  __pyx_r = __pyx_t_1;
 
7151
  __pyx_t_1 = 0;
6379
7152
  goto __pyx_L0;
6380
7153
 
6381
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7154
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6382
7155
  goto __pyx_L0;
6383
7156
  __pyx_L1_error:;
6384
 
  Py_XDECREF(__pyx_1);
6385
 
  Py_XDECREF(__pyx_2);
 
7157
  __Pyx_XDECREF(__pyx_t_1);
 
7158
  __Pyx_XDECREF(__pyx_t_2);
6386
7159
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__float__");
6387
7160
  __pyx_r = NULL;
6388
7161
  __pyx_L0:;
 
7162
  __Pyx_XGIVEREF(__pyx_r);
 
7163
  __Pyx_FinishRefcountContext();
6389
7164
  return __pyx_r;
6390
7165
}
6391
7166
 
6392
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":680
 
7167
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":675
6393
7168
 *         return float(_parseNumber(self))
6394
7169
 * 
6395
7170
 *     def __complex__(self):             # <<<<<<<<<<<<<<
6399
7174
 
6400
7175
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___complex__(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
6401
7176
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___complex__(PyObject *__pyx_v_self, PyObject *unused) {
6402
 
  PyObject *__pyx_r;
6403
 
  PyObject *__pyx_1 = 0;
6404
 
  PyObject *__pyx_2 = 0;
 
7177
  PyObject *__pyx_r = NULL;
 
7178
  PyObject *__pyx_t_1 = NULL;
 
7179
  PyObject *__pyx_t_2 = NULL;
 
7180
  __Pyx_SetupRefcountContext("__complex__");
6405
7181
 
6406
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":681
 
7182
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":676
6407
7183
 * 
6408
7184
 *     def __complex__(self):
6409
7185
 *         return complex(_parseNumber(self))             # <<<<<<<<<<<<<<
6410
7186
 * 
6411
7187
 *     def __str__(self):
6412
7188
 */
6413
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6414
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6415
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6416
 
  __pyx_1 = 0;
6417
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyComplex_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6418
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6419
 
  __pyx_r = __pyx_1;
6420
 
  __pyx_1 = 0;
 
7189
  __Pyx_XDECREF(__pyx_r);
 
7190
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7191
  __Pyx_GOTREF(__pyx_t_1);
 
7192
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7193
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7194
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7195
  __Pyx_GIVEREF(__pyx_t_1);
 
7196
  __pyx_t_1 = 0;
 
7197
  __pyx_t_1 = PyObject_Call(((PyObject*)&PyComplex_Type), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7198
  __Pyx_GOTREF(__pyx_t_1);
 
7199
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7200
  __pyx_r = __pyx_t_1;
 
7201
  __pyx_t_1 = 0;
6421
7202
  goto __pyx_L0;
6422
7203
 
6423
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7204
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6424
7205
  goto __pyx_L0;
6425
7206
  __pyx_L1_error:;
6426
 
  Py_XDECREF(__pyx_1);
6427
 
  Py_XDECREF(__pyx_2);
 
7207
  __Pyx_XDECREF(__pyx_t_1);
 
7208
  __Pyx_XDECREF(__pyx_t_2);
6428
7209
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__complex__");
6429
7210
  __pyx_r = NULL;
6430
7211
  __pyx_L0:;
 
7212
  __Pyx_XGIVEREF(__pyx_r);
 
7213
  __Pyx_FinishRefcountContext();
6431
7214
  return __pyx_r;
6432
7215
}
6433
7216
 
6434
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":683
 
7217
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":678
6435
7218
 *         return complex(_parseNumber(self))
6436
7219
 * 
6437
7220
 *     def __str__(self):             # <<<<<<<<<<<<<<
6441
7224
 
6442
7225
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___str__(PyObject *__pyx_v_self); /*proto*/
6443
7226
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___str__(PyObject *__pyx_v_self) {
6444
 
  PyObject *__pyx_r;
6445
 
  PyObject *__pyx_1 = 0;
6446
 
  PyObject *__pyx_2 = 0;
 
7227
  PyObject *__pyx_r = NULL;
 
7228
  PyObject *__pyx_t_1 = NULL;
 
7229
  PyObject *__pyx_t_2 = NULL;
 
7230
  __Pyx_SetupRefcountContext("__str__");
6447
7231
 
6448
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":684
 
7232
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":679
6449
7233
 * 
6450
7234
 *     def __str__(self):
6451
7235
 *         return unicode(_parseNumber(self))             # <<<<<<<<<<<<<<
6452
7236
 * 
6453
7237
 *     def __repr__(self):
6454
7238
 */
6455
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6456
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6457
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6458
 
  __pyx_1 = 0;
6459
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6460
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6461
 
  __pyx_r = __pyx_1;
6462
 
  __pyx_1 = 0;
 
7239
  __Pyx_XDECREF(__pyx_r);
 
7240
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7241
  __Pyx_GOTREF(__pyx_t_1);
 
7242
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7243
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7244
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7245
  __Pyx_GIVEREF(__pyx_t_1);
 
7246
  __pyx_t_1 = 0;
 
7247
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7248
  __Pyx_GOTREF(__pyx_t_1);
 
7249
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7250
  __pyx_r = __pyx_t_1;
 
7251
  __pyx_t_1 = 0;
6463
7252
  goto __pyx_L0;
6464
7253
 
6465
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7254
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6466
7255
  goto __pyx_L0;
6467
7256
  __pyx_L1_error:;
6468
 
  Py_XDECREF(__pyx_1);
6469
 
  Py_XDECREF(__pyx_2);
 
7257
  __Pyx_XDECREF(__pyx_t_1);
 
7258
  __Pyx_XDECREF(__pyx_t_2);
6470
7259
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__str__");
6471
7260
  __pyx_r = NULL;
6472
7261
  __pyx_L0:;
 
7262
  __Pyx_XGIVEREF(__pyx_r);
 
7263
  __Pyx_FinishRefcountContext();
6473
7264
  return __pyx_r;
6474
7265
}
6475
7266
 
6476
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":686
 
7267
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":681
6477
7268
 *         return unicode(_parseNumber(self))
6478
7269
 * 
6479
7270
 *     def __repr__(self):             # <<<<<<<<<<<<<<
6483
7274
 
6484
7275
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___repr__(PyObject *__pyx_v_self); /*proto*/
6485
7276
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___repr__(PyObject *__pyx_v_self) {
6486
 
  PyObject *__pyx_r;
6487
 
  PyObject *__pyx_1 = 0;
6488
 
  PyObject *__pyx_2 = 0;
 
7277
  PyObject *__pyx_r = NULL;
 
7278
  PyObject *__pyx_t_1 = NULL;
 
7279
  PyObject *__pyx_t_2 = NULL;
 
7280
  __Pyx_SetupRefcountContext("__repr__");
6489
7281
 
6490
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":687
 
7282
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":682
6491
7283
 * 
6492
7284
 *     def __repr__(self):
6493
7285
 *         return repr(_parseNumber(self))             # <<<<<<<<<<<<<<
6494
7286
 * 
6495
7287
 *     def __oct__(self):
6496
7288
 */
6497
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6498
 
  __pyx_2 = PyObject_Repr(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6499
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6500
 
  __pyx_r = __pyx_2;
6501
 
  __pyx_2 = 0;
 
7289
  __Pyx_XDECREF(__pyx_r);
 
7290
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7291
  __Pyx_GOTREF(__pyx_t_1);
 
7292
  __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7293
  __Pyx_GOTREF(__pyx_t_2);
 
7294
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7295
  __pyx_r = __pyx_t_2;
 
7296
  __pyx_t_2 = 0;
6502
7297
  goto __pyx_L0;
6503
7298
 
6504
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7299
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6505
7300
  goto __pyx_L0;
6506
7301
  __pyx_L1_error:;
6507
 
  Py_XDECREF(__pyx_1);
6508
 
  Py_XDECREF(__pyx_2);
 
7302
  __Pyx_XDECREF(__pyx_t_1);
 
7303
  __Pyx_XDECREF(__pyx_t_2);
6509
7304
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__repr__");
6510
7305
  __pyx_r = NULL;
6511
7306
  __pyx_L0:;
 
7307
  __Pyx_XGIVEREF(__pyx_r);
 
7308
  __Pyx_FinishRefcountContext();
6512
7309
  return __pyx_r;
6513
7310
}
6514
7311
 
6515
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":689
 
7312
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":684
6516
7313
 *         return repr(_parseNumber(self))
6517
7314
 * 
6518
7315
 *     def __oct__(self):             # <<<<<<<<<<<<<<
6522
7319
 
6523
7320
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___oct__(PyObject *__pyx_v_self); /*proto*/
6524
7321
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___oct__(PyObject *__pyx_v_self) {
6525
 
  PyObject *__pyx_r;
6526
 
  PyObject *__pyx_1 = 0;
6527
 
  PyObject *__pyx_2 = 0;
 
7322
  PyObject *__pyx_r = NULL;
 
7323
  PyObject *__pyx_t_1 = NULL;
 
7324
  PyObject *__pyx_t_2 = NULL;
 
7325
  __Pyx_SetupRefcountContext("__oct__");
6528
7326
 
6529
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":690
 
7327
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":685
6530
7328
 * 
6531
7329
 *     def __oct__(self):
6532
7330
 *         return oct(_parseNumber(self))             # <<<<<<<<<<<<<<
6533
7331
 * 
6534
7332
 *     def __hex__(self):
6535
7333
 */
6536
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6537
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6538
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6539
 
  __pyx_1 = 0;
6540
 
  __pyx_1 = PyObject_Call(__pyx_builtin_oct, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6541
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6542
 
  __pyx_r = __pyx_1;
6543
 
  __pyx_1 = 0;
 
7334
  __Pyx_XDECREF(__pyx_r);
 
7335
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7336
  __Pyx_GOTREF(__pyx_t_1);
 
7337
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7338
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7339
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7340
  __Pyx_GIVEREF(__pyx_t_1);
 
7341
  __pyx_t_1 = 0;
 
7342
  __pyx_t_1 = PyObject_Call(__pyx_builtin_oct, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7343
  __Pyx_GOTREF(__pyx_t_1);
 
7344
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7345
  __pyx_r = __pyx_t_1;
 
7346
  __pyx_t_1 = 0;
6544
7347
  goto __pyx_L0;
6545
7348
 
6546
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7349
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6547
7350
  goto __pyx_L0;
6548
7351
  __pyx_L1_error:;
6549
 
  Py_XDECREF(__pyx_1);
6550
 
  Py_XDECREF(__pyx_2);
 
7352
  __Pyx_XDECREF(__pyx_t_1);
 
7353
  __Pyx_XDECREF(__pyx_t_2);
6551
7354
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__oct__");
6552
7355
  __pyx_r = NULL;
6553
7356
  __pyx_L0:;
 
7357
  __Pyx_XGIVEREF(__pyx_r);
 
7358
  __Pyx_FinishRefcountContext();
6554
7359
  return __pyx_r;
6555
7360
}
6556
7361
 
6557
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":692
 
7362
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":687
6558
7363
 *         return oct(_parseNumber(self))
6559
7364
 * 
6560
7365
 *     def __hex__(self):             # <<<<<<<<<<<<<<
6564
7369
 
6565
7370
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___hex__(PyObject *__pyx_v_self); /*proto*/
6566
7371
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___hex__(PyObject *__pyx_v_self) {
6567
 
  PyObject *__pyx_r;
6568
 
  PyObject *__pyx_1 = 0;
6569
 
  PyObject *__pyx_2 = 0;
 
7372
  PyObject *__pyx_r = NULL;
 
7373
  PyObject *__pyx_t_1 = NULL;
 
7374
  PyObject *__pyx_t_2 = NULL;
 
7375
  __Pyx_SetupRefcountContext("__hex__");
6570
7376
 
6571
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":693
 
7377
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":688
6572
7378
 * 
6573
7379
 *     def __hex__(self):
6574
7380
 *         return hex(_parseNumber(self))             # <<<<<<<<<<<<<<
6575
7381
 * 
6576
7382
 *     def __richcmp__(self, other, int op):
6577
7383
 */
6578
 
  __pyx_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6579
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6580
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
6581
 
  __pyx_1 = 0;
6582
 
  __pyx_1 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6583
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
6584
 
  __pyx_r = __pyx_1;
6585
 
  __pyx_1 = 0;
 
7384
  __Pyx_XDECREF(__pyx_r);
 
7385
  __pyx_t_1 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7386
  __Pyx_GOTREF(__pyx_t_1);
 
7387
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7388
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
7389
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
7390
  __Pyx_GIVEREF(__pyx_t_1);
 
7391
  __pyx_t_1 = 0;
 
7392
  __pyx_t_1 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7393
  __Pyx_GOTREF(__pyx_t_1);
 
7394
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
7395
  __pyx_r = __pyx_t_1;
 
7396
  __pyx_t_1 = 0;
6586
7397
  goto __pyx_L0;
6587
7398
 
6588
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7399
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6589
7400
  goto __pyx_L0;
6590
7401
  __pyx_L1_error:;
6591
 
  Py_XDECREF(__pyx_1);
6592
 
  Py_XDECREF(__pyx_2);
 
7402
  __Pyx_XDECREF(__pyx_t_1);
 
7403
  __Pyx_XDECREF(__pyx_t_2);
6593
7404
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__hex__");
6594
7405
  __pyx_r = NULL;
6595
7406
  __pyx_L0:;
 
7407
  __Pyx_XGIVEREF(__pyx_r);
 
7408
  __Pyx_FinishRefcountContext();
6596
7409
  return __pyx_r;
6597
7410
}
6598
7411
 
6599
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":695
 
7412
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":690
6600
7413
 *         return hex(_parseNumber(self))
6601
7414
 * 
6602
7415
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
6606
7419
 
6607
7420
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
6608
7421
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
6609
 
  PyObject *__pyx_r;
6610
 
  PyObject *__pyx_1 = 0;
 
7422
  PyObject *__pyx_r = NULL;
 
7423
  PyObject *__pyx_t_1 = NULL;
 
7424
  __Pyx_SetupRefcountContext("__richcmp__");
6611
7425
 
6612
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":696
 
7426
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":691
6613
7427
 * 
6614
7428
 *     def __richcmp__(self, other, int op):
6615
7429
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
6616
7430
 * 
6617
7431
 *     def __add__(self, other):
6618
7432
 */
6619
 
  __pyx_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 696; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6620
 
  __pyx_r = __pyx_1;
6621
 
  __pyx_1 = 0;
 
7433
  __Pyx_XDECREF(__pyx_r);
 
7434
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7435
  __Pyx_GOTREF(__pyx_t_1);
 
7436
  __pyx_r = __pyx_t_1;
 
7437
  __pyx_t_1 = 0;
6622
7438
  goto __pyx_L0;
6623
7439
 
6624
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7440
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6625
7441
  goto __pyx_L0;
6626
7442
  __pyx_L1_error:;
6627
 
  Py_XDECREF(__pyx_1);
 
7443
  __Pyx_XDECREF(__pyx_t_1);
6628
7444
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__richcmp__");
6629
7445
  __pyx_r = NULL;
6630
7446
  __pyx_L0:;
 
7447
  __Pyx_XGIVEREF(__pyx_r);
 
7448
  __Pyx_FinishRefcountContext();
6631
7449
  return __pyx_r;
6632
7450
}
6633
7451
 
6634
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":698
 
7452
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":693
6635
7453
 *         return _richcmpPyvals(self, other, op)
6636
7454
 * 
6637
7455
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
6641
7459
 
6642
7460
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6643
7461
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6644
 
  PyObject *__pyx_r;
6645
 
  PyObject *__pyx_1 = 0;
6646
 
  PyObject *__pyx_2 = 0;
 
7462
  PyObject *__pyx_r = NULL;
6647
7463
  PyObject *__pyx_t_1 = NULL;
 
7464
  PyObject *__pyx_t_2 = NULL;
 
7465
  PyObject *__pyx_t_3 = NULL;
 
7466
  __Pyx_SetupRefcountContext("__add__");
6648
7467
 
6649
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":699
 
7468
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":694
6650
7469
 * 
6651
7470
 *     def __add__(self, other):
6652
7471
 *         return _numericValueOf(self) + _numericValueOf(other)             # <<<<<<<<<<<<<<
6653
7472
 * 
6654
7473
 *     def __sub__(self, other):
6655
7474
 */
6656
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6657
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6658
 
  __pyx_t_1 = PyNumber_Add(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6659
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6660
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6661
 
  __pyx_r = __pyx_t_1;
6662
 
  __pyx_t_1 = 0;
 
7475
  __Pyx_XDECREF(__pyx_r);
 
7476
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7477
  __Pyx_GOTREF(__pyx_t_1);
 
7478
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7479
  __Pyx_GOTREF(__pyx_t_2);
 
7480
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7481
  __Pyx_GOTREF(__pyx_t_3);
 
7482
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7483
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7484
  __pyx_r = __pyx_t_3;
 
7485
  __pyx_t_3 = 0;
6663
7486
  goto __pyx_L0;
6664
7487
 
6665
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7488
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6666
7489
  goto __pyx_L0;
6667
7490
  __pyx_L1_error:;
6668
 
  Py_XDECREF(__pyx_1);
6669
 
  Py_XDECREF(__pyx_2);
 
7491
  __Pyx_XDECREF(__pyx_t_1);
 
7492
  __Pyx_XDECREF(__pyx_t_2);
 
7493
  __Pyx_XDECREF(__pyx_t_3);
6670
7494
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__add__");
6671
7495
  __pyx_r = NULL;
6672
7496
  __pyx_L0:;
 
7497
  __Pyx_XGIVEREF(__pyx_r);
 
7498
  __Pyx_FinishRefcountContext();
6673
7499
  return __pyx_r;
6674
7500
}
6675
7501
 
6676
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":701
 
7502
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":696
6677
7503
 *         return _numericValueOf(self) + _numericValueOf(other)
6678
7504
 * 
6679
7505
 *     def __sub__(self, other):             # <<<<<<<<<<<<<<
6683
7509
 
6684
7510
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6685
7511
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6686
 
  PyObject *__pyx_r;
6687
 
  PyObject *__pyx_1 = 0;
6688
 
  PyObject *__pyx_2 = 0;
 
7512
  PyObject *__pyx_r = NULL;
6689
7513
  PyObject *__pyx_t_1 = NULL;
 
7514
  PyObject *__pyx_t_2 = NULL;
 
7515
  PyObject *__pyx_t_3 = NULL;
 
7516
  __Pyx_SetupRefcountContext("__sub__");
6690
7517
 
6691
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":702
 
7518
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":697
6692
7519
 * 
6693
7520
 *     def __sub__(self, other):
6694
7521
 *         return _numericValueOf(self) - _numericValueOf(other)             # <<<<<<<<<<<<<<
6695
7522
 * 
6696
7523
 *     def __mul__(self, other):
6697
7524
 */
6698
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6699
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6700
 
  __pyx_t_1 = PyNumber_Subtract(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6701
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6702
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6703
 
  __pyx_r = __pyx_t_1;
6704
 
  __pyx_t_1 = 0;
 
7525
  __Pyx_XDECREF(__pyx_r);
 
7526
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7527
  __Pyx_GOTREF(__pyx_t_1);
 
7528
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7529
  __Pyx_GOTREF(__pyx_t_2);
 
7530
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7531
  __Pyx_GOTREF(__pyx_t_3);
 
7532
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7533
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7534
  __pyx_r = __pyx_t_3;
 
7535
  __pyx_t_3 = 0;
6705
7536
  goto __pyx_L0;
6706
7537
 
6707
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7538
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6708
7539
  goto __pyx_L0;
6709
7540
  __pyx_L1_error:;
6710
 
  Py_XDECREF(__pyx_1);
6711
 
  Py_XDECREF(__pyx_2);
 
7541
  __Pyx_XDECREF(__pyx_t_1);
 
7542
  __Pyx_XDECREF(__pyx_t_2);
 
7543
  __Pyx_XDECREF(__pyx_t_3);
6712
7544
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__sub__");
6713
7545
  __pyx_r = NULL;
6714
7546
  __pyx_L0:;
 
7547
  __Pyx_XGIVEREF(__pyx_r);
 
7548
  __Pyx_FinishRefcountContext();
6715
7549
  return __pyx_r;
6716
7550
}
6717
7551
 
6718
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":704
 
7552
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":699
6719
7553
 *         return _numericValueOf(self) - _numericValueOf(other)
6720
7554
 * 
6721
7555
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
6725
7559
 
6726
7560
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6727
7561
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6728
 
  PyObject *__pyx_r;
6729
 
  PyObject *__pyx_1 = 0;
6730
 
  PyObject *__pyx_2 = 0;
 
7562
  PyObject *__pyx_r = NULL;
6731
7563
  PyObject *__pyx_t_1 = NULL;
 
7564
  PyObject *__pyx_t_2 = NULL;
 
7565
  PyObject *__pyx_t_3 = NULL;
 
7566
  __Pyx_SetupRefcountContext("__mul__");
6732
7567
 
6733
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":705
 
7568
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":700
6734
7569
 * 
6735
7570
 *     def __mul__(self, other):
6736
7571
 *         return _numericValueOf(self) * _numericValueOf(other)             # <<<<<<<<<<<<<<
6737
7572
 * 
6738
7573
 *     def __div__(self, other):
6739
7574
 */
6740
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6741
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6742
 
  __pyx_t_1 = PyNumber_Multiply(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6743
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6744
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6745
 
  __pyx_r = __pyx_t_1;
6746
 
  __pyx_t_1 = 0;
 
7575
  __Pyx_XDECREF(__pyx_r);
 
7576
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7577
  __Pyx_GOTREF(__pyx_t_1);
 
7578
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7579
  __Pyx_GOTREF(__pyx_t_2);
 
7580
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7581
  __Pyx_GOTREF(__pyx_t_3);
 
7582
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7583
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7584
  __pyx_r = __pyx_t_3;
 
7585
  __pyx_t_3 = 0;
6747
7586
  goto __pyx_L0;
6748
7587
 
6749
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7588
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6750
7589
  goto __pyx_L0;
6751
7590
  __pyx_L1_error:;
6752
 
  Py_XDECREF(__pyx_1);
6753
 
  Py_XDECREF(__pyx_2);
 
7591
  __Pyx_XDECREF(__pyx_t_1);
 
7592
  __Pyx_XDECREF(__pyx_t_2);
 
7593
  __Pyx_XDECREF(__pyx_t_3);
6754
7594
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__mul__");
6755
7595
  __pyx_r = NULL;
6756
7596
  __pyx_L0:;
 
7597
  __Pyx_XGIVEREF(__pyx_r);
 
7598
  __Pyx_FinishRefcountContext();
6757
7599
  return __pyx_r;
6758
7600
}
6759
7601
 
6760
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":707
 
7602
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":702
6761
7603
 *         return _numericValueOf(self) * _numericValueOf(other)
6762
7604
 * 
6763
7605
 *     def __div__(self, other):             # <<<<<<<<<<<<<<
6767
7609
 
6768
7610
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6769
7611
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___div__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6770
 
  PyObject *__pyx_r;
6771
 
  PyObject *__pyx_1 = 0;
6772
 
  PyObject *__pyx_2 = 0;
 
7612
  PyObject *__pyx_r = NULL;
6773
7613
  PyObject *__pyx_t_1 = NULL;
 
7614
  PyObject *__pyx_t_2 = NULL;
 
7615
  PyObject *__pyx_t_3 = NULL;
 
7616
  __Pyx_SetupRefcountContext("__div__");
6774
7617
 
6775
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":708
 
7618
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":703
6776
7619
 * 
6777
7620
 *     def __div__(self, other):
6778
7621
 *         return _numericValueOf(self) / _numericValueOf(other)             # <<<<<<<<<<<<<<
6779
7622
 * 
6780
7623
 *     def __truediv__(self, other):
6781
7624
 */
6782
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6783
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6784
 
  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6785
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6786
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6787
 
  __pyx_r = __pyx_t_1;
6788
 
  __pyx_t_1 = 0;
 
7625
  __Pyx_XDECREF(__pyx_r);
 
7626
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7627
  __Pyx_GOTREF(__pyx_t_1);
 
7628
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7629
  __Pyx_GOTREF(__pyx_t_2);
 
7630
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7631
  __Pyx_GOTREF(__pyx_t_3);
 
7632
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7633
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7634
  __pyx_r = __pyx_t_3;
 
7635
  __pyx_t_3 = 0;
6789
7636
  goto __pyx_L0;
6790
7637
 
6791
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7638
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6792
7639
  goto __pyx_L0;
6793
7640
  __pyx_L1_error:;
6794
 
  Py_XDECREF(__pyx_1);
6795
 
  Py_XDECREF(__pyx_2);
 
7641
  __Pyx_XDECREF(__pyx_t_1);
 
7642
  __Pyx_XDECREF(__pyx_t_2);
 
7643
  __Pyx_XDECREF(__pyx_t_3);
6796
7644
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__div__");
6797
7645
  __pyx_r = NULL;
6798
7646
  __pyx_L0:;
 
7647
  __Pyx_XGIVEREF(__pyx_r);
 
7648
  __Pyx_FinishRefcountContext();
6799
7649
  return __pyx_r;
6800
7650
}
6801
7651
 
6802
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":710
 
7652
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":705
6803
7653
 *         return _numericValueOf(self) / _numericValueOf(other)
6804
7654
 * 
6805
7655
 *     def __truediv__(self, other):             # <<<<<<<<<<<<<<
6809
7659
 
6810
7660
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6811
7661
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6812
 
  PyObject *__pyx_r;
6813
 
  PyObject *__pyx_1 = 0;
6814
 
  PyObject *__pyx_2 = 0;
 
7662
  PyObject *__pyx_r = NULL;
6815
7663
  PyObject *__pyx_t_1 = NULL;
 
7664
  PyObject *__pyx_t_2 = NULL;
 
7665
  PyObject *__pyx_t_3 = NULL;
 
7666
  __Pyx_SetupRefcountContext("__truediv__");
6816
7667
 
6817
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":711
 
7668
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":706
6818
7669
 * 
6819
7670
 *     def __truediv__(self, other):
6820
7671
 *         return _numericValueOf(self) / _numericValueOf(other)             # <<<<<<<<<<<<<<
6821
7672
 * 
6822
7673
 *     def __mod__(self, other):
6823
7674
 */
6824
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 711; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6825
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 711; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6826
 
  __pyx_t_1 = __Pyx_PyNumber_Divide(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 711; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6827
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6828
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6829
 
  __pyx_r = __pyx_t_1;
6830
 
  __pyx_t_1 = 0;
 
7675
  __Pyx_XDECREF(__pyx_r);
 
7676
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7677
  __Pyx_GOTREF(__pyx_t_1);
 
7678
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7679
  __Pyx_GOTREF(__pyx_t_2);
 
7680
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7681
  __Pyx_GOTREF(__pyx_t_3);
 
7682
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7683
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7684
  __pyx_r = __pyx_t_3;
 
7685
  __pyx_t_3 = 0;
6831
7686
  goto __pyx_L0;
6832
7687
 
6833
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7688
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6834
7689
  goto __pyx_L0;
6835
7690
  __pyx_L1_error:;
6836
 
  Py_XDECREF(__pyx_1);
6837
 
  Py_XDECREF(__pyx_2);
 
7691
  __Pyx_XDECREF(__pyx_t_1);
 
7692
  __Pyx_XDECREF(__pyx_t_2);
 
7693
  __Pyx_XDECREF(__pyx_t_3);
6838
7694
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__truediv__");
6839
7695
  __pyx_r = NULL;
6840
7696
  __pyx_L0:;
 
7697
  __Pyx_XGIVEREF(__pyx_r);
 
7698
  __Pyx_FinishRefcountContext();
6841
7699
  return __pyx_r;
6842
7700
}
6843
7701
 
6844
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":713
 
7702
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":708
6845
7703
 *         return _numericValueOf(self) / _numericValueOf(other)
6846
7704
 * 
6847
7705
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
6851
7709
 
6852
7710
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
6853
7711
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
6854
 
  PyObject *__pyx_r;
6855
 
  PyObject *__pyx_1 = 0;
6856
 
  PyObject *__pyx_2 = 0;
 
7712
  PyObject *__pyx_r = NULL;
6857
7713
  PyObject *__pyx_t_1 = NULL;
 
7714
  PyObject *__pyx_t_2 = NULL;
 
7715
  PyObject *__pyx_t_3 = NULL;
 
7716
  __Pyx_SetupRefcountContext("__mod__");
6858
7717
 
6859
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":714
 
7718
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":709
6860
7719
 * 
6861
7720
 *     def __mod__(self, other):
6862
7721
 *         return _numericValueOf(self) % _numericValueOf(other)             # <<<<<<<<<<<<<<
6863
7722
 * 
6864
7723
 *     def __pow__(self, other, modulo):
6865
7724
 */
6866
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 714; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6867
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 714; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6868
 
  __pyx_t_1 = PyNumber_Remainder(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 714; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6869
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6870
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
6871
 
  __pyx_r = __pyx_t_1;
6872
 
  __pyx_t_1 = 0;
 
7725
  __Pyx_XDECREF(__pyx_r);
 
7726
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7727
  __Pyx_GOTREF(__pyx_t_1);
 
7728
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7729
  __Pyx_GOTREF(__pyx_t_2);
 
7730
  __pyx_t_3 = PyNumber_Remainder(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7731
  __Pyx_GOTREF(__pyx_t_3);
 
7732
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7733
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7734
  __pyx_r = __pyx_t_3;
 
7735
  __pyx_t_3 = 0;
6873
7736
  goto __pyx_L0;
6874
7737
 
6875
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7738
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6876
7739
  goto __pyx_L0;
6877
7740
  __pyx_L1_error:;
6878
 
  Py_XDECREF(__pyx_1);
6879
 
  Py_XDECREF(__pyx_2);
 
7741
  __Pyx_XDECREF(__pyx_t_1);
 
7742
  __Pyx_XDECREF(__pyx_t_2);
 
7743
  __Pyx_XDECREF(__pyx_t_3);
6880
7744
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__mod__");
6881
7745
  __pyx_r = NULL;
6882
7746
  __pyx_L0:;
 
7747
  __Pyx_XGIVEREF(__pyx_r);
 
7748
  __Pyx_FinishRefcountContext();
6883
7749
  return __pyx_r;
6884
7750
}
6885
7751
 
6886
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":716
 
7752
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":711
6887
7753
 *         return _numericValueOf(self) % _numericValueOf(other)
6888
7754
 * 
6889
7755
 *     def __pow__(self, other, modulo):             # <<<<<<<<<<<<<<
6893
7759
 
6894
7760
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo); /*proto*/
6895
7761
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___pow__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_modulo) {
6896
 
  PyObject *__pyx_r;
6897
 
  int __pyx_1;
6898
 
  PyObject *__pyx_2 = 0;
6899
 
  PyObject *__pyx_3 = 0;
6900
 
  PyObject *__pyx_4 = 0;
6901
 
  PyObject *__pyx_t_1 = NULL;
 
7762
  PyObject *__pyx_r = NULL;
 
7763
  int __pyx_t_1;
 
7764
  PyObject *__pyx_t_2 = NULL;
 
7765
  PyObject *__pyx_t_3 = NULL;
 
7766
  PyObject *__pyx_t_4 = NULL;
 
7767
  __Pyx_SetupRefcountContext("__pow__");
6902
7768
 
6903
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":717
 
7769
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":712
6904
7770
 * 
6905
7771
 *     def __pow__(self, other, modulo):
6906
7772
 *         if modulo is None:             # <<<<<<<<<<<<<<
6907
7773
 *             return _numericValueOf(self) ** _numericValueOf(other)
6908
7774
 *         else:
6909
7775
 */
6910
 
  __pyx_1 = (__pyx_v_modulo == Py_None);
6911
 
  if (__pyx_1) {
 
7776
  __pyx_t_1 = (__pyx_v_modulo == Py_None);
 
7777
  if (__pyx_t_1) {
6912
7778
 
6913
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":718
 
7779
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":713
6914
7780
 *     def __pow__(self, other, modulo):
6915
7781
 *         if modulo is None:
6916
7782
 *             return _numericValueOf(self) ** _numericValueOf(other)             # <<<<<<<<<<<<<<
6917
7783
 *         else:
6918
7784
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)
6919
7785
 */
6920
 
    __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6921
 
    __pyx_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6922
 
    __pyx_t_1 = PyNumber_Power(__pyx_2, __pyx_3, Py_None); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6923
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
6924
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
6925
 
    __pyx_r = __pyx_t_1;
6926
 
    __pyx_t_1 = 0;
 
7786
    __Pyx_XDECREF(__pyx_r);
 
7787
    __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7788
    __Pyx_GOTREF(__pyx_t_2);
 
7789
    __pyx_t_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7790
    __Pyx_GOTREF(__pyx_t_3);
 
7791
    __pyx_t_4 = PyNumber_Power(__pyx_t_2, __pyx_t_3, Py_None); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7792
    __Pyx_GOTREF(__pyx_t_4);
 
7793
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
7794
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7795
    __pyx_r = __pyx_t_4;
 
7796
    __pyx_t_4 = 0;
6927
7797
    goto __pyx_L0;
6928
7798
    goto __pyx_L5;
6929
7799
  }
6930
7800
  /*else*/ {
6931
7801
 
6932
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":720
 
7802
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":715
6933
7803
 *             return _numericValueOf(self) ** _numericValueOf(other)
6934
7804
 *         else:
6935
7805
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)             # <<<<<<<<<<<<<<
6936
7806
 * 
6937
7807
 *     def __neg__(self):
6938
7808
 */
6939
 
    __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6940
 
    __pyx_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6941
 
    __pyx_4 = PyNumber_Power(__pyx_2, __pyx_3, __pyx_v_modulo); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6942
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
6943
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
6944
 
    __pyx_r = __pyx_4;
6945
 
    __pyx_4 = 0;
 
7809
    __Pyx_XDECREF(__pyx_r);
 
7810
    __pyx_t_4 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7811
    __Pyx_GOTREF(__pyx_t_4);
 
7812
    __pyx_t_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7813
    __Pyx_GOTREF(__pyx_t_3);
 
7814
    __pyx_t_2 = PyNumber_Power(__pyx_t_4, __pyx_t_3, __pyx_v_modulo); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7815
    __Pyx_GOTREF(__pyx_t_2);
 
7816
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
7817
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
7818
    __pyx_r = __pyx_t_2;
 
7819
    __pyx_t_2 = 0;
6946
7820
    goto __pyx_L0;
6947
7821
  }
6948
7822
  __pyx_L5:;
6949
7823
 
6950
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7824
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6951
7825
  goto __pyx_L0;
6952
7826
  __pyx_L1_error:;
6953
 
  Py_XDECREF(__pyx_2);
6954
 
  Py_XDECREF(__pyx_3);
6955
 
  Py_XDECREF(__pyx_4);
 
7827
  __Pyx_XDECREF(__pyx_t_2);
 
7828
  __Pyx_XDECREF(__pyx_t_3);
 
7829
  __Pyx_XDECREF(__pyx_t_4);
6956
7830
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__pow__");
6957
7831
  __pyx_r = NULL;
6958
7832
  __pyx_L0:;
 
7833
  __Pyx_XGIVEREF(__pyx_r);
 
7834
  __Pyx_FinishRefcountContext();
6959
7835
  return __pyx_r;
6960
7836
}
6961
7837
 
6962
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":722
 
7838
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":717
6963
7839
 *             return pow(_numericValueOf(self), _numericValueOf(other), modulo)
6964
7840
 * 
6965
7841
 *     def __neg__(self):             # <<<<<<<<<<<<<<
6969
7845
 
6970
7846
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___neg__(PyObject *__pyx_v_self); /*proto*/
6971
7847
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___neg__(PyObject *__pyx_v_self) {
6972
 
  PyObject *__pyx_r;
 
7848
  PyObject *__pyx_r = NULL;
6973
7849
  PyObject *__pyx_1 = 0;
6974
 
  PyObject *__pyx_2 = 0;
 
7850
  PyObject *__pyx_t_1 = NULL;
 
7851
  __Pyx_SetupRefcountContext("__neg__");
6975
7852
 
6976
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":723
 
7853
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":718
6977
7854
 * 
6978
7855
 *     def __neg__(self):
6979
7856
 *         return - _numericValueOf(self)             # <<<<<<<<<<<<<<
6980
7857
 * 
6981
7858
 *     def __pos__(self):
6982
7859
 */
6983
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6984
 
  __pyx_2 = PyNumber_Negative(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
6985
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
6986
 
  __pyx_r = __pyx_2;
6987
 
  __pyx_2 = 0;
 
7860
  __Pyx_XDECREF(__pyx_r);
 
7861
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7862
  __Pyx_GOTREF(__pyx_t_1);
 
7863
  __pyx_1 = PyNumber_Negative(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7864
  __Pyx_GOTREF(__pyx_1);
 
7865
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7866
  __pyx_r = __pyx_1;
 
7867
  __pyx_1 = 0;
6988
7868
  goto __pyx_L0;
6989
7869
 
6990
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7870
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
6991
7871
  goto __pyx_L0;
6992
7872
  __pyx_L1_error:;
6993
 
  Py_XDECREF(__pyx_1);
6994
 
  Py_XDECREF(__pyx_2);
 
7873
  __Pyx_XDECREF(__pyx_1);
 
7874
  __Pyx_XDECREF(__pyx_t_1);
6995
7875
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__neg__");
6996
7876
  __pyx_r = NULL;
6997
7877
  __pyx_L0:;
 
7878
  __Pyx_XGIVEREF(__pyx_r);
 
7879
  __Pyx_FinishRefcountContext();
6998
7880
  return __pyx_r;
6999
7881
}
7000
7882
 
7001
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":725
 
7883
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":720
7002
7884
 *         return - _numericValueOf(self)
7003
7885
 * 
7004
7886
 *     def __pos__(self):             # <<<<<<<<<<<<<<
7008
7890
 
7009
7891
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___pos__(PyObject *__pyx_v_self); /*proto*/
7010
7892
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___pos__(PyObject *__pyx_v_self) {
7011
 
  PyObject *__pyx_r;
 
7893
  PyObject *__pyx_r = NULL;
7012
7894
  PyObject *__pyx_1 = 0;
7013
 
  PyObject *__pyx_2 = 0;
 
7895
  PyObject *__pyx_t_1 = NULL;
 
7896
  __Pyx_SetupRefcountContext("__pos__");
7014
7897
 
7015
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":726
 
7898
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":721
7016
7899
 * 
7017
7900
 *     def __pos__(self):
7018
7901
 *         return + _numericValueOf(self)             # <<<<<<<<<<<<<<
7019
7902
 * 
7020
7903
 *     def __abs__(self):
7021
7904
 */
7022
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7023
 
  __pyx_2 = PyNumber_Positive(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7024
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7025
 
  __pyx_r = __pyx_2;
7026
 
  __pyx_2 = 0;
 
7905
  __Pyx_XDECREF(__pyx_r);
 
7906
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7907
  __Pyx_GOTREF(__pyx_t_1);
 
7908
  __pyx_1 = PyNumber_Positive(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7909
  __Pyx_GOTREF(__pyx_1);
 
7910
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7911
  __pyx_r = __pyx_1;
 
7912
  __pyx_1 = 0;
7027
7913
  goto __pyx_L0;
7028
7914
 
7029
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7915
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7030
7916
  goto __pyx_L0;
7031
7917
  __pyx_L1_error:;
7032
 
  Py_XDECREF(__pyx_1);
7033
 
  Py_XDECREF(__pyx_2);
 
7918
  __Pyx_XDECREF(__pyx_1);
 
7919
  __Pyx_XDECREF(__pyx_t_1);
7034
7920
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__pos__");
7035
7921
  __pyx_r = NULL;
7036
7922
  __pyx_L0:;
 
7923
  __Pyx_XGIVEREF(__pyx_r);
 
7924
  __Pyx_FinishRefcountContext();
7037
7925
  return __pyx_r;
7038
7926
}
7039
7927
 
7040
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":728
 
7928
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":723
7041
7929
 *         return + _numericValueOf(self)
7042
7930
 * 
7043
7931
 *     def __abs__(self):             # <<<<<<<<<<<<<<
7047
7935
 
7048
7936
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___abs__(PyObject *__pyx_v_self); /*proto*/
7049
7937
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___abs__(PyObject *__pyx_v_self) {
7050
 
  PyObject *__pyx_r;
7051
 
  PyObject *__pyx_1 = 0;
7052
 
  PyObject *__pyx_2 = 0;
 
7938
  PyObject *__pyx_r = NULL;
 
7939
  PyObject *__pyx_t_1 = NULL;
 
7940
  PyObject *__pyx_t_2 = NULL;
 
7941
  __Pyx_SetupRefcountContext("__abs__");
7053
7942
 
7054
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":729
 
7943
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":724
7055
7944
 * 
7056
7945
 *     def __abs__(self):
7057
7946
 *         return abs( _numericValueOf(self) )             # <<<<<<<<<<<<<<
7058
7947
 * 
7059
7948
 *     def __nonzero__(self):
7060
7949
 */
7061
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7062
 
  __pyx_2 = PyNumber_Absolute(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7063
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7064
 
  __pyx_r = __pyx_2;
7065
 
  __pyx_2 = 0;
 
7950
  __Pyx_XDECREF(__pyx_r);
 
7951
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7952
  __Pyx_GOTREF(__pyx_t_1);
 
7953
  __pyx_t_2 = PyNumber_Absolute(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7954
  __Pyx_GOTREF(__pyx_t_2);
 
7955
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
7956
  __pyx_r = __pyx_t_2;
 
7957
  __pyx_t_2 = 0;
7066
7958
  goto __pyx_L0;
7067
7959
 
7068
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
7960
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7069
7961
  goto __pyx_L0;
7070
7962
  __pyx_L1_error:;
7071
 
  Py_XDECREF(__pyx_1);
7072
 
  Py_XDECREF(__pyx_2);
 
7963
  __Pyx_XDECREF(__pyx_t_1);
 
7964
  __Pyx_XDECREF(__pyx_t_2);
7073
7965
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__abs__");
7074
7966
  __pyx_r = NULL;
7075
7967
  __pyx_L0:;
 
7968
  __Pyx_XGIVEREF(__pyx_r);
 
7969
  __Pyx_FinishRefcountContext();
7076
7970
  return __pyx_r;
7077
7971
}
7078
7972
 
7079
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":731
 
7973
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":726
7080
7974
 *         return abs( _numericValueOf(self) )
7081
7975
 * 
7082
7976
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
7087
7981
static int __pyx_pf_4lxml_9objectify_13NumberElement___nonzero__(PyObject *__pyx_v_self); /*proto*/
7088
7982
static int __pyx_pf_4lxml_9objectify_13NumberElement___nonzero__(PyObject *__pyx_v_self) {
7089
7983
  int __pyx_r;
7090
 
  PyObject *__pyx_1 = 0;
7091
 
  PyObject *__pyx_2 = 0;
7092
 
  int __pyx_3;
 
7984
  PyObject *__pyx_t_1 = NULL;
 
7985
  PyObject *__pyx_t_2 = NULL;
 
7986
  int __pyx_t_3;
 
7987
  __Pyx_SetupRefcountContext("__nonzero__");
7093
7988
 
7094
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":732
 
7989
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":727
7095
7990
 * 
7096
7991
 *     def __nonzero__(self):
7097
7992
 *         return _numericValueOf(self) != 0             # <<<<<<<<<<<<<<
7098
7993
 * 
7099
7994
 *     def __invert__(self):
7100
7995
 */
7101
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7102
 
  __pyx_2 = PyObject_RichCompare(__pyx_1, __pyx_int_0, Py_NE); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7103
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7104
 
  __pyx_3 = __pyx_PyInt_int(__pyx_2); if (unlikely((__pyx_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7105
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7106
 
  __pyx_r = __pyx_3;
 
7996
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7997
  __Pyx_GOTREF(__pyx_t_1);
 
7998
  __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_int_0, Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
7999
  __Pyx_GOTREF(__pyx_t_2);
 
8000
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8001
  __pyx_t_3 = __Pyx_PyInt_AsInt(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8002
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8003
  __pyx_r = __pyx_t_3;
7107
8004
  goto __pyx_L0;
7108
8005
 
7109
8006
  __pyx_r = 0;
7110
8007
  goto __pyx_L0;
7111
8008
  __pyx_L1_error:;
7112
 
  Py_XDECREF(__pyx_1);
7113
 
  Py_XDECREF(__pyx_2);
 
8009
  __Pyx_XDECREF(__pyx_t_1);
 
8010
  __Pyx_XDECREF(__pyx_t_2);
7114
8011
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__nonzero__");
7115
8012
  __pyx_r = -1;
7116
8013
  __pyx_L0:;
 
8014
  __Pyx_FinishRefcountContext();
7117
8015
  return __pyx_r;
7118
8016
}
7119
8017
 
7120
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":734
 
8018
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":729
7121
8019
 *         return _numericValueOf(self) != 0
7122
8020
 * 
7123
8021
 *     def __invert__(self):             # <<<<<<<<<<<<<<
7127
8025
 
7128
8026
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___invert__(PyObject *__pyx_v_self); /*proto*/
7129
8027
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___invert__(PyObject *__pyx_v_self) {
7130
 
  PyObject *__pyx_r;
 
8028
  PyObject *__pyx_r = NULL;
7131
8029
  PyObject *__pyx_1 = 0;
7132
 
  PyObject *__pyx_2 = 0;
 
8030
  PyObject *__pyx_t_1 = NULL;
 
8031
  __Pyx_SetupRefcountContext("__invert__");
7133
8032
 
7134
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":735
 
8033
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":730
7135
8034
 * 
7136
8035
 *     def __invert__(self):
7137
8036
 *         return ~ _numericValueOf(self)             # <<<<<<<<<<<<<<
7138
8037
 * 
7139
8038
 *     def __lshift__(self, other):
7140
8039
 */
7141
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7142
 
  __pyx_2 = PyNumber_Invert(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7143
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7144
 
  __pyx_r = __pyx_2;
7145
 
  __pyx_2 = 0;
 
8040
  __Pyx_XDECREF(__pyx_r);
 
8041
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8042
  __Pyx_GOTREF(__pyx_t_1);
 
8043
  __pyx_1 = PyNumber_Invert(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8044
  __Pyx_GOTREF(__pyx_1);
 
8045
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8046
  __pyx_r = __pyx_1;
 
8047
  __pyx_1 = 0;
7146
8048
  goto __pyx_L0;
7147
8049
 
7148
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8050
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7149
8051
  goto __pyx_L0;
7150
8052
  __pyx_L1_error:;
7151
 
  Py_XDECREF(__pyx_1);
7152
 
  Py_XDECREF(__pyx_2);
 
8053
  __Pyx_XDECREF(__pyx_1);
 
8054
  __Pyx_XDECREF(__pyx_t_1);
7153
8055
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__invert__");
7154
8056
  __pyx_r = NULL;
7155
8057
  __pyx_L0:;
 
8058
  __Pyx_XGIVEREF(__pyx_r);
 
8059
  __Pyx_FinishRefcountContext();
7156
8060
  return __pyx_r;
7157
8061
}
7158
8062
 
7159
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":737
 
8063
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":732
7160
8064
 *         return ~ _numericValueOf(self)
7161
8065
 * 
7162
8066
 *     def __lshift__(self, other):             # <<<<<<<<<<<<<<
7166
8070
 
7167
8071
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7168
8072
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___lshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7169
 
  PyObject *__pyx_r;
7170
 
  PyObject *__pyx_1 = 0;
7171
 
  PyObject *__pyx_2 = 0;
 
8073
  PyObject *__pyx_r = NULL;
7172
8074
  PyObject *__pyx_t_1 = NULL;
 
8075
  PyObject *__pyx_t_2 = NULL;
 
8076
  PyObject *__pyx_t_3 = NULL;
 
8077
  __Pyx_SetupRefcountContext("__lshift__");
7173
8078
 
7174
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":738
 
8079
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":733
7175
8080
 * 
7176
8081
 *     def __lshift__(self, other):
7177
8082
 *         return _numericValueOf(self) << _numericValueOf(other)             # <<<<<<<<<<<<<<
7178
8083
 * 
7179
8084
 *     def __rshift__(self, other):
7180
8085
 */
7181
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7182
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7183
 
  __pyx_t_1 = PyNumber_Lshift(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7184
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7185
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7186
 
  __pyx_r = __pyx_t_1;
7187
 
  __pyx_t_1 = 0;
 
8086
  __Pyx_XDECREF(__pyx_r);
 
8087
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8088
  __Pyx_GOTREF(__pyx_t_1);
 
8089
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8090
  __Pyx_GOTREF(__pyx_t_2);
 
8091
  __pyx_t_3 = PyNumber_Lshift(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8092
  __Pyx_GOTREF(__pyx_t_3);
 
8093
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8094
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8095
  __pyx_r = __pyx_t_3;
 
8096
  __pyx_t_3 = 0;
7188
8097
  goto __pyx_L0;
7189
8098
 
7190
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8099
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7191
8100
  goto __pyx_L0;
7192
8101
  __pyx_L1_error:;
7193
 
  Py_XDECREF(__pyx_1);
7194
 
  Py_XDECREF(__pyx_2);
 
8102
  __Pyx_XDECREF(__pyx_t_1);
 
8103
  __Pyx_XDECREF(__pyx_t_2);
 
8104
  __Pyx_XDECREF(__pyx_t_3);
7195
8105
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__lshift__");
7196
8106
  __pyx_r = NULL;
7197
8107
  __pyx_L0:;
 
8108
  __Pyx_XGIVEREF(__pyx_r);
 
8109
  __Pyx_FinishRefcountContext();
7198
8110
  return __pyx_r;
7199
8111
}
7200
8112
 
7201
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":740
 
8113
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":735
7202
8114
 *         return _numericValueOf(self) << _numericValueOf(other)
7203
8115
 * 
7204
8116
 *     def __rshift__(self, other):             # <<<<<<<<<<<<<<
7208
8120
 
7209
8121
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7210
8122
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___rshift__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7211
 
  PyObject *__pyx_r;
7212
 
  PyObject *__pyx_1 = 0;
7213
 
  PyObject *__pyx_2 = 0;
 
8123
  PyObject *__pyx_r = NULL;
7214
8124
  PyObject *__pyx_t_1 = NULL;
 
8125
  PyObject *__pyx_t_2 = NULL;
 
8126
  PyObject *__pyx_t_3 = NULL;
 
8127
  __Pyx_SetupRefcountContext("__rshift__");
7215
8128
 
7216
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":741
 
8129
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":736
7217
8130
 * 
7218
8131
 *     def __rshift__(self, other):
7219
8132
 *         return _numericValueOf(self) >> _numericValueOf(other)             # <<<<<<<<<<<<<<
7220
8133
 * 
7221
8134
 *     def __and__(self, other):
7222
8135
 */
7223
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7224
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7225
 
  __pyx_t_1 = PyNumber_Rshift(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7226
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7227
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7228
 
  __pyx_r = __pyx_t_1;
7229
 
  __pyx_t_1 = 0;
 
8136
  __Pyx_XDECREF(__pyx_r);
 
8137
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8138
  __Pyx_GOTREF(__pyx_t_1);
 
8139
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8140
  __Pyx_GOTREF(__pyx_t_2);
 
8141
  __pyx_t_3 = PyNumber_Rshift(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8142
  __Pyx_GOTREF(__pyx_t_3);
 
8143
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8144
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8145
  __pyx_r = __pyx_t_3;
 
8146
  __pyx_t_3 = 0;
7230
8147
  goto __pyx_L0;
7231
8148
 
7232
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8149
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7233
8150
  goto __pyx_L0;
7234
8151
  __pyx_L1_error:;
7235
 
  Py_XDECREF(__pyx_1);
7236
 
  Py_XDECREF(__pyx_2);
 
8152
  __Pyx_XDECREF(__pyx_t_1);
 
8153
  __Pyx_XDECREF(__pyx_t_2);
 
8154
  __Pyx_XDECREF(__pyx_t_3);
7237
8155
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__rshift__");
7238
8156
  __pyx_r = NULL;
7239
8157
  __pyx_L0:;
 
8158
  __Pyx_XGIVEREF(__pyx_r);
 
8159
  __Pyx_FinishRefcountContext();
7240
8160
  return __pyx_r;
7241
8161
}
7242
8162
 
7243
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":743
 
8163
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":738
7244
8164
 *         return _numericValueOf(self) >> _numericValueOf(other)
7245
8165
 * 
7246
8166
 *     def __and__(self, other):             # <<<<<<<<<<<<<<
7250
8170
 
7251
8171
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7252
8172
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7253
 
  PyObject *__pyx_r;
7254
 
  PyObject *__pyx_1 = 0;
7255
 
  PyObject *__pyx_2 = 0;
 
8173
  PyObject *__pyx_r = NULL;
7256
8174
  PyObject *__pyx_t_1 = NULL;
 
8175
  PyObject *__pyx_t_2 = NULL;
 
8176
  PyObject *__pyx_t_3 = NULL;
 
8177
  __Pyx_SetupRefcountContext("__and__");
7257
8178
 
7258
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":744
 
8179
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":739
7259
8180
 * 
7260
8181
 *     def __and__(self, other):
7261
8182
 *         return _numericValueOf(self) & _numericValueOf(other)             # <<<<<<<<<<<<<<
7262
8183
 * 
7263
8184
 *     def __or__(self, other):
7264
8185
 */
7265
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7266
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7267
 
  __pyx_t_1 = PyNumber_And(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7268
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7269
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7270
 
  __pyx_r = __pyx_t_1;
7271
 
  __pyx_t_1 = 0;
 
8186
  __Pyx_XDECREF(__pyx_r);
 
8187
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8188
  __Pyx_GOTREF(__pyx_t_1);
 
8189
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8190
  __Pyx_GOTREF(__pyx_t_2);
 
8191
  __pyx_t_3 = PyNumber_And(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8192
  __Pyx_GOTREF(__pyx_t_3);
 
8193
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8194
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8195
  __pyx_r = __pyx_t_3;
 
8196
  __pyx_t_3 = 0;
7272
8197
  goto __pyx_L0;
7273
8198
 
7274
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8199
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7275
8200
  goto __pyx_L0;
7276
8201
  __pyx_L1_error:;
7277
 
  Py_XDECREF(__pyx_1);
7278
 
  Py_XDECREF(__pyx_2);
 
8202
  __Pyx_XDECREF(__pyx_t_1);
 
8203
  __Pyx_XDECREF(__pyx_t_2);
 
8204
  __Pyx_XDECREF(__pyx_t_3);
7279
8205
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__and__");
7280
8206
  __pyx_r = NULL;
7281
8207
  __pyx_L0:;
 
8208
  __Pyx_XGIVEREF(__pyx_r);
 
8209
  __Pyx_FinishRefcountContext();
7282
8210
  return __pyx_r;
7283
8211
}
7284
8212
 
7285
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":746
 
8213
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":741
7286
8214
 *         return _numericValueOf(self) & _numericValueOf(other)
7287
8215
 * 
7288
8216
 *     def __or__(self, other):             # <<<<<<<<<<<<<<
7292
8220
 
7293
8221
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7294
8222
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7295
 
  PyObject *__pyx_r;
7296
 
  PyObject *__pyx_1 = 0;
7297
 
  PyObject *__pyx_2 = 0;
 
8223
  PyObject *__pyx_r = NULL;
7298
8224
  PyObject *__pyx_t_1 = NULL;
 
8225
  PyObject *__pyx_t_2 = NULL;
 
8226
  PyObject *__pyx_t_3 = NULL;
 
8227
  __Pyx_SetupRefcountContext("__or__");
7299
8228
 
7300
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":747
 
8229
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":742
7301
8230
 * 
7302
8231
 *     def __or__(self, other):
7303
8232
 *         return _numericValueOf(self) | _numericValueOf(other)             # <<<<<<<<<<<<<<
7304
8233
 * 
7305
8234
 *     def __xor__(self, other):
7306
8235
 */
7307
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7308
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7309
 
  __pyx_t_1 = PyNumber_Or(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7310
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7311
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7312
 
  __pyx_r = __pyx_t_1;
7313
 
  __pyx_t_1 = 0;
 
8236
  __Pyx_XDECREF(__pyx_r);
 
8237
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8238
  __Pyx_GOTREF(__pyx_t_1);
 
8239
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8240
  __Pyx_GOTREF(__pyx_t_2);
 
8241
  __pyx_t_3 = PyNumber_Or(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8242
  __Pyx_GOTREF(__pyx_t_3);
 
8243
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8244
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8245
  __pyx_r = __pyx_t_3;
 
8246
  __pyx_t_3 = 0;
7314
8247
  goto __pyx_L0;
7315
8248
 
7316
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8249
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7317
8250
  goto __pyx_L0;
7318
8251
  __pyx_L1_error:;
7319
 
  Py_XDECREF(__pyx_1);
7320
 
  Py_XDECREF(__pyx_2);
 
8252
  __Pyx_XDECREF(__pyx_t_1);
 
8253
  __Pyx_XDECREF(__pyx_t_2);
 
8254
  __Pyx_XDECREF(__pyx_t_3);
7321
8255
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__or__");
7322
8256
  __pyx_r = NULL;
7323
8257
  __pyx_L0:;
 
8258
  __Pyx_XGIVEREF(__pyx_r);
 
8259
  __Pyx_FinishRefcountContext();
7324
8260
  return __pyx_r;
7325
8261
}
7326
8262
 
7327
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":749
 
8263
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":744
7328
8264
 *         return _numericValueOf(self) | _numericValueOf(other)
7329
8265
 * 
7330
8266
 *     def __xor__(self, other):             # <<<<<<<<<<<<<<
7334
8270
 
7335
8271
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7336
8272
static PyObject *__pyx_pf_4lxml_9objectify_13NumberElement___xor__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7337
 
  PyObject *__pyx_r;
7338
 
  PyObject *__pyx_1 = 0;
7339
 
  PyObject *__pyx_2 = 0;
 
8273
  PyObject *__pyx_r = NULL;
7340
8274
  PyObject *__pyx_t_1 = NULL;
 
8275
  PyObject *__pyx_t_2 = NULL;
 
8276
  PyObject *__pyx_t_3 = NULL;
 
8277
  __Pyx_SetupRefcountContext("__xor__");
7341
8278
 
7342
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":750
 
8279
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":745
7343
8280
 * 
7344
8281
 *     def __xor__(self, other):
7345
8282
 *         return _numericValueOf(self) ^ _numericValueOf(other)             # <<<<<<<<<<<<<<
7346
8283
 * 
7347
8284
 * cdef class IntElement(NumberElement):
7348
8285
 */
7349
 
  __pyx_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7350
 
  __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7351
 
  __pyx_t_1 = PyNumber_Xor(__pyx_1, __pyx_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7352
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7353
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
7354
 
  __pyx_r = __pyx_t_1;
7355
 
  __pyx_t_1 = 0;
 
8286
  __Pyx_XDECREF(__pyx_r);
 
8287
  __pyx_t_1 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8288
  __Pyx_GOTREF(__pyx_t_1);
 
8289
  __pyx_t_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8290
  __Pyx_GOTREF(__pyx_t_2);
 
8291
  __pyx_t_3 = PyNumber_Xor(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8292
  __Pyx_GOTREF(__pyx_t_3);
 
8293
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8294
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8295
  __pyx_r = __pyx_t_3;
 
8296
  __pyx_t_3 = 0;
7356
8297
  goto __pyx_L0;
7357
8298
 
7358
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8299
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7359
8300
  goto __pyx_L0;
7360
8301
  __pyx_L1_error:;
7361
 
  Py_XDECREF(__pyx_1);
7362
 
  Py_XDECREF(__pyx_2);
 
8302
  __Pyx_XDECREF(__pyx_t_1);
 
8303
  __Pyx_XDECREF(__pyx_t_2);
 
8304
  __Pyx_XDECREF(__pyx_t_3);
7363
8305
  __Pyx_AddTraceback("lxml.objectify.NumberElement.__xor__");
7364
8306
  __pyx_r = NULL;
7365
8307
  __pyx_L0:;
 
8308
  __Pyx_XGIVEREF(__pyx_r);
 
8309
  __Pyx_FinishRefcountContext();
7366
8310
  return __pyx_r;
7367
8311
}
7368
8312
 
7369
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":753
 
8313
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":748
7370
8314
 * 
7371
8315
 * cdef class IntElement(NumberElement):
7372
8316
 *     def _init(self):             # <<<<<<<<<<<<<<
7376
8320
 
7377
8321
static PyObject *__pyx_pf_4lxml_9objectify_10IntElement__init(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
7378
8322
static PyObject *__pyx_pf_4lxml_9objectify_10IntElement__init(PyObject *__pyx_v_self, PyObject *unused) {
7379
 
  PyObject *__pyx_r;
 
8323
  PyObject *__pyx_r = NULL;
 
8324
  __Pyx_SetupRefcountContext("_init");
7380
8325
 
7381
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":754
 
8326
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":749
7382
8327
 * cdef class IntElement(NumberElement):
7383
8328
 *     def _init(self):
7384
8329
 *         self._parse_value = int             # <<<<<<<<<<<<<<
7385
8330
 * 
7386
8331
 * cdef class LongElement(NumberElement):
7387
8332
 */
7388
 
  Py_INCREF(((PyObject *)((PyObject*)&PyInt_Type)));
7389
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_IntElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8333
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyInt_Type)));
 
8334
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyInt_Type)));
 
8335
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_IntElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8336
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_IntElement *)__pyx_v_self)->__pyx_base._parse_value);
7390
8337
  ((struct __pyx_obj_4lxml_9objectify_IntElement *)__pyx_v_self)->__pyx_base._parse_value = ((PyObject *)((PyObject*)&PyInt_Type));
7391
8338
 
7392
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8339
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8340
  __Pyx_XGIVEREF(__pyx_r);
 
8341
  __Pyx_FinishRefcountContext();
7393
8342
  return __pyx_r;
7394
8343
}
7395
8344
 
7396
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":757
 
8345
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":752
7397
8346
 * 
7398
8347
 * cdef class LongElement(NumberElement):
7399
8348
 *     def _init(self):             # <<<<<<<<<<<<<<
7403
8352
 
7404
8353
static PyObject *__pyx_pf_4lxml_9objectify_11LongElement__init(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
7405
8354
static PyObject *__pyx_pf_4lxml_9objectify_11LongElement__init(PyObject *__pyx_v_self, PyObject *unused) {
7406
 
  PyObject *__pyx_r;
 
8355
  PyObject *__pyx_r = NULL;
 
8356
  __Pyx_SetupRefcountContext("_init");
7407
8357
 
7408
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":758
 
8358
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":753
7409
8359
 * cdef class LongElement(NumberElement):
7410
8360
 *     def _init(self):
7411
8361
 *         self._parse_value = long             # <<<<<<<<<<<<<<
7412
8362
 * 
7413
8363
 * cdef class FloatElement(NumberElement):
7414
8364
 */
7415
 
  Py_INCREF(((PyObject *)((PyObject*)&PyLong_Type)));
7416
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_LongElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8365
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyLong_Type)));
 
8366
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyLong_Type)));
 
8367
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_LongElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8368
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_LongElement *)__pyx_v_self)->__pyx_base._parse_value);
7417
8369
  ((struct __pyx_obj_4lxml_9objectify_LongElement *)__pyx_v_self)->__pyx_base._parse_value = ((PyObject *)((PyObject*)&PyLong_Type));
7418
8370
 
7419
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8371
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8372
  __Pyx_XGIVEREF(__pyx_r);
 
8373
  __Pyx_FinishRefcountContext();
7420
8374
  return __pyx_r;
7421
8375
}
7422
8376
 
7423
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":761
 
8377
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":756
7424
8378
 * 
7425
8379
 * cdef class FloatElement(NumberElement):
7426
8380
 *     def _init(self):             # <<<<<<<<<<<<<<
7430
8384
 
7431
8385
static PyObject *__pyx_pf_4lxml_9objectify_12FloatElement__init(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
7432
8386
static PyObject *__pyx_pf_4lxml_9objectify_12FloatElement__init(PyObject *__pyx_v_self, PyObject *unused) {
7433
 
  PyObject *__pyx_r;
 
8387
  PyObject *__pyx_r = NULL;
 
8388
  __Pyx_SetupRefcountContext("_init");
7434
8389
 
7435
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":762
 
8390
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":757
7436
8391
 * cdef class FloatElement(NumberElement):
7437
8392
 *     def _init(self):
7438
8393
 *         self._parse_value = float             # <<<<<<<<<<<<<<
7439
8394
 * 
7440
8395
 * cdef class StringElement(ObjectifiedDataElement):
7441
8396
 */
7442
 
  Py_INCREF(((PyObject *)((PyObject*)&PyFloat_Type)));
7443
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8397
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyFloat_Type)));
 
8398
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyFloat_Type)));
 
8399
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._parse_value);
 
8400
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._parse_value);
7444
8401
  ((struct __pyx_obj_4lxml_9objectify_FloatElement *)__pyx_v_self)->__pyx_base._parse_value = ((PyObject *)((PyObject*)&PyFloat_Type));
7445
8402
 
7446
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8403
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 
8404
  __Pyx_XGIVEREF(__pyx_r);
 
8405
  __Pyx_FinishRefcountContext();
7447
8406
  return __pyx_r;
7448
8407
}
7449
8408
 
7450
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":772
 
8409
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":767
7451
8410
 *     """
7452
8411
 *     property pyval:
7453
8412
 *         def __get__(self):             # <<<<<<<<<<<<<<
7457
8416
 
7458
8417
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/
7459
8418
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_5pyval___get__(PyObject *__pyx_v_self) {
7460
 
  PyObject *__pyx_r;
7461
 
  PyObject *__pyx_1 = 0;
7462
 
  int __pyx_2;
 
8419
  PyObject *__pyx_r = NULL;
 
8420
  PyObject *__pyx_t_1 = NULL;
 
8421
  int __pyx_t_2;
 
8422
  PyObject *__pyx_t_3 = NULL;
 
8423
  __Pyx_SetupRefcountContext("__get__");
7463
8424
 
7464
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":773
 
8425
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":768
7465
8426
 *     property pyval:
7466
8427
 *         def __get__(self):
7467
8428
 *             return textOf(self._c_node) or u''             # <<<<<<<<<<<<<<
7468
8429
 * 
7469
8430
 *     def __repr__(self):
7470
8431
 */
7471
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7472
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7473
 
  if (!__pyx_2) {
7474
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
7475
 
    __pyx_1 = ((PyObject *)__pyx_kp_689);
7476
 
    Py_INCREF(__pyx_1);
 
8432
  __Pyx_XDECREF(__pyx_r);
 
8433
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8434
  __Pyx_GOTREF(__pyx_t_1);
 
8435
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8436
  if (!__pyx_t_2) {
 
8437
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8438
    __Pyx_INCREF(((PyObject *)__pyx_kp_756));
 
8439
    __pyx_t_3 = __pyx_kp_756;
 
8440
  } else {
 
8441
    __pyx_t_3 = __pyx_t_1;
 
8442
    __pyx_t_1 = 0;
7477
8443
  }
7478
 
  __pyx_r = __pyx_1;
7479
 
  __pyx_1 = 0;
 
8444
  __pyx_r = __pyx_t_3;
 
8445
  __pyx_t_3 = 0;
7480
8446
  goto __pyx_L0;
7481
8447
 
7482
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8448
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7483
8449
  goto __pyx_L0;
7484
8450
  __pyx_L1_error:;
7485
 
  Py_XDECREF(__pyx_1);
 
8451
  __Pyx_XDECREF(__pyx_t_1);
 
8452
  __Pyx_XDECREF(__pyx_t_3);
7486
8453
  __Pyx_AddTraceback("lxml.objectify.StringElement.pyval.__get__");
7487
8454
  __pyx_r = NULL;
7488
8455
  __pyx_L0:;
 
8456
  __Pyx_XGIVEREF(__pyx_r);
 
8457
  __Pyx_FinishRefcountContext();
7489
8458
  return __pyx_r;
7490
8459
}
7491
8460
 
7492
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":775
 
8461
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":770
7493
8462
 *             return textOf(self._c_node) or u''
7494
8463
 * 
7495
8464
 *     def __repr__(self):             # <<<<<<<<<<<<<<
7499
8468
 
7500
8469
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___repr__(PyObject *__pyx_v_self); /*proto*/
7501
8470
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___repr__(PyObject *__pyx_v_self) {
7502
 
  PyObject *__pyx_r;
7503
 
  PyObject *__pyx_1 = 0;
7504
 
  int __pyx_2;
7505
 
  PyObject *__pyx_3 = 0;
 
8471
  PyObject *__pyx_r = NULL;
 
8472
  PyObject *__pyx_t_1 = NULL;
 
8473
  int __pyx_t_2;
 
8474
  PyObject *__pyx_t_3 = NULL;
 
8475
  __Pyx_SetupRefcountContext("__repr__");
7506
8476
 
7507
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":776
 
8477
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":771
7508
8478
 * 
7509
8479
 *     def __repr__(self):
7510
8480
 *         return repr(textOf(self._c_node) or u'')             # <<<<<<<<<<<<<<
7511
8481
 * 
7512
8482
 *     def strlen(self):
7513
8483
 */
7514
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7515
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7516
 
  if (!__pyx_2) {
7517
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
7518
 
    __pyx_1 = ((PyObject *)__pyx_kp_690);
7519
 
    Py_INCREF(__pyx_1);
 
8484
  __Pyx_XDECREF(__pyx_r);
 
8485
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8486
  __Pyx_GOTREF(__pyx_t_1);
 
8487
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8488
  if (!__pyx_t_2) {
 
8489
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8490
    __Pyx_INCREF(((PyObject *)__pyx_kp_757));
 
8491
    __pyx_t_3 = __pyx_kp_757;
 
8492
  } else {
 
8493
    __pyx_t_3 = __pyx_t_1;
 
8494
    __pyx_t_1 = 0;
7520
8495
  }
7521
 
  __pyx_3 = PyObject_Repr(__pyx_1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7522
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7523
 
  __pyx_r = __pyx_3;
7524
 
  __pyx_3 = 0;
 
8496
  __pyx_t_1 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8497
  __Pyx_GOTREF(__pyx_t_1);
 
8498
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
8499
  __pyx_r = __pyx_t_1;
 
8500
  __pyx_t_1 = 0;
7525
8501
  goto __pyx_L0;
7526
8502
 
7527
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8503
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7528
8504
  goto __pyx_L0;
7529
8505
  __pyx_L1_error:;
7530
 
  Py_XDECREF(__pyx_1);
7531
 
  Py_XDECREF(__pyx_3);
 
8506
  __Pyx_XDECREF(__pyx_t_1);
 
8507
  __Pyx_XDECREF(__pyx_t_3);
7532
8508
  __Pyx_AddTraceback("lxml.objectify.StringElement.__repr__");
7533
8509
  __pyx_r = NULL;
7534
8510
  __pyx_L0:;
 
8511
  __Pyx_XGIVEREF(__pyx_r);
 
8512
  __Pyx_FinishRefcountContext();
7535
8513
  return __pyx_r;
7536
8514
}
7537
8515
 
7538
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":778
 
8516
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":773
7539
8517
 *         return repr(textOf(self._c_node) or u'')
7540
8518
 * 
7541
8519
 *     def strlen(self):             # <<<<<<<<<<<<<<
7546
8524
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_strlen(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
7547
8525
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement_strlen(PyObject *__pyx_v_self, PyObject *unused) {
7548
8526
  PyObject *__pyx_v_text;
7549
 
  PyObject *__pyx_r;
7550
 
  PyObject *__pyx_1 = 0;
7551
 
  int __pyx_2;
7552
 
  Py_ssize_t __pyx_3 = 0;
7553
 
  __pyx_v_text = Py_None; Py_INCREF(Py_None);
 
8527
  PyObject *__pyx_r = NULL;
 
8528
  PyObject *__pyx_t_1 = NULL;
 
8529
  int __pyx_t_2;
 
8530
  Py_ssize_t __pyx_t_3;
 
8531
  __Pyx_SetupRefcountContext("strlen");
 
8532
  __pyx_v_text = Py_None; __Pyx_INCREF(Py_None);
7554
8533
 
7555
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":779
 
8534
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":774
7556
8535
 * 
7557
8536
 *     def strlen(self):
7558
8537
 *         text = textOf(self._c_node)             # <<<<<<<<<<<<<<
7559
8538
 *         if text is None:
7560
8539
 *             return 0
7561
8540
 */
7562
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7563
 
  Py_DECREF(__pyx_v_text);
7564
 
  __pyx_v_text = __pyx_1;
7565
 
  __pyx_1 = 0;
 
8541
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8542
  __Pyx_GOTREF(__pyx_t_1);
 
8543
  __Pyx_DECREF(__pyx_v_text);
 
8544
  __pyx_v_text = __pyx_t_1;
 
8545
  __pyx_t_1 = 0;
7566
8546
 
7567
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":780
 
8547
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":775
7568
8548
 *     def strlen(self):
7569
8549
 *         text = textOf(self._c_node)
7570
8550
 *         if text is None:             # <<<<<<<<<<<<<<
7571
8551
 *             return 0
7572
8552
 *         else:
7573
8553
 */
7574
 
  __pyx_2 = (__pyx_v_text == Py_None);
7575
 
  if (__pyx_2) {
 
8554
  __pyx_t_2 = (__pyx_v_text == Py_None);
 
8555
  if (__pyx_t_2) {
7576
8556
 
7577
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":781
 
8557
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":776
7578
8558
 *         text = textOf(self._c_node)
7579
8559
 *         if text is None:
7580
8560
 *             return 0             # <<<<<<<<<<<<<<
7581
8561
 *         else:
7582
8562
 *             return len(text)
7583
8563
 */
7584
 
    Py_INCREF(__pyx_int_0);
 
8564
    __Pyx_XDECREF(__pyx_r);
 
8565
    __Pyx_INCREF(__pyx_int_0);
7585
8566
    __pyx_r = __pyx_int_0;
7586
8567
    goto __pyx_L0;
7587
8568
    goto __pyx_L5;
7588
8569
  }
7589
8570
  /*else*/ {
7590
8571
 
7591
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":783
 
8572
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":778
7592
8573
 *             return 0
7593
8574
 *         else:
7594
8575
 *             return len(text)             # <<<<<<<<<<<<<<
7595
8576
 * 
7596
8577
 *     def __nonzero__(self):
7597
8578
 */
7598
 
    __pyx_3 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7599
 
    __pyx_1 = PyInt_FromSsize_t(__pyx_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7600
 
    __pyx_r = __pyx_1;
7601
 
    __pyx_1 = 0;
 
8579
    __Pyx_XDECREF(__pyx_r);
 
8580
    __pyx_t_3 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8581
    __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8582
    __Pyx_GOTREF(__pyx_t_1);
 
8583
    __pyx_r = __pyx_t_1;
 
8584
    __pyx_t_1 = 0;
7602
8585
    goto __pyx_L0;
7603
8586
  }
7604
8587
  __pyx_L5:;
7605
8588
 
7606
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8589
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7607
8590
  goto __pyx_L0;
7608
8591
  __pyx_L1_error:;
7609
 
  Py_XDECREF(__pyx_1);
 
8592
  __Pyx_XDECREF(__pyx_t_1);
7610
8593
  __Pyx_AddTraceback("lxml.objectify.StringElement.strlen");
7611
8594
  __pyx_r = NULL;
7612
8595
  __pyx_L0:;
7613
 
  Py_DECREF(__pyx_v_text);
 
8596
  __Pyx_DECREF(__pyx_v_text);
 
8597
  __Pyx_XGIVEREF(__pyx_r);
 
8598
  __Pyx_FinishRefcountContext();
7614
8599
  return __pyx_r;
7615
8600
}
7616
8601
 
7617
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":785
 
8602
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":780
7618
8603
 *             return len(text)
7619
8604
 * 
7620
8605
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
7626
8611
static int __pyx_pf_4lxml_9objectify_13StringElement___nonzero__(PyObject *__pyx_v_self) {
7627
8612
  PyObject *__pyx_v_text;
7628
8613
  int __pyx_r;
7629
 
  PyObject *__pyx_1 = 0;
7630
 
  int __pyx_2;
7631
 
  Py_ssize_t __pyx_3 = 0;
7632
 
  __pyx_v_text = Py_None; Py_INCREF(Py_None);
 
8614
  PyObject *__pyx_t_1 = NULL;
 
8615
  int __pyx_t_2;
 
8616
  Py_ssize_t __pyx_t_3;
 
8617
  __Pyx_SetupRefcountContext("__nonzero__");
 
8618
  __pyx_v_text = Py_None; __Pyx_INCREF(Py_None);
7633
8619
 
7634
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":786
 
8620
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":781
7635
8621
 * 
7636
8622
 *     def __nonzero__(self):
7637
8623
 *         text = textOf(self._c_node)             # <<<<<<<<<<<<<<
7638
8624
 *         if text is None:
7639
8625
 *             return False
7640
8626
 */
7641
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7642
 
  Py_DECREF(__pyx_v_text);
7643
 
  __pyx_v_text = __pyx_1;
7644
 
  __pyx_1 = 0;
 
8627
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8628
  __Pyx_GOTREF(__pyx_t_1);
 
8629
  __Pyx_DECREF(__pyx_v_text);
 
8630
  __pyx_v_text = __pyx_t_1;
 
8631
  __pyx_t_1 = 0;
7645
8632
 
7646
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":787
 
8633
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":782
7647
8634
 *     def __nonzero__(self):
7648
8635
 *         text = textOf(self._c_node)
7649
8636
 *         if text is None:             # <<<<<<<<<<<<<<
7650
8637
 *             return False
7651
8638
 *         return len(text) > 0
7652
8639
 */
7653
 
  __pyx_2 = (__pyx_v_text == Py_None);
7654
 
  if (__pyx_2) {
 
8640
  __pyx_t_2 = (__pyx_v_text == Py_None);
 
8641
  if (__pyx_t_2) {
7655
8642
 
7656
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":788
 
8643
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":783
7657
8644
 *         text = textOf(self._c_node)
7658
8645
 *         if text is None:
7659
8646
 *             return False             # <<<<<<<<<<<<<<
7666
8653
  }
7667
8654
  __pyx_L5:;
7668
8655
 
7669
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":789
 
8656
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":784
7670
8657
 *         if text is None:
7671
8658
 *             return False
7672
8659
 *         return len(text) > 0             # <<<<<<<<<<<<<<
7673
8660
 * 
7674
8661
 *     def __richcmp__(self, other, int op):
7675
8662
 */
7676
 
  __pyx_3 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7677
 
  __pyx_r = (__pyx_3 > 0);
 
8663
  __pyx_t_3 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8664
  __pyx_r = (__pyx_t_3 > 0);
7678
8665
  goto __pyx_L0;
7679
8666
 
7680
8667
  __pyx_r = 0;
7681
8668
  goto __pyx_L0;
7682
8669
  __pyx_L1_error:;
7683
 
  Py_XDECREF(__pyx_1);
 
8670
  __Pyx_XDECREF(__pyx_t_1);
7684
8671
  __Pyx_AddTraceback("lxml.objectify.StringElement.__nonzero__");
7685
8672
  __pyx_r = -1;
7686
8673
  __pyx_L0:;
7687
 
  Py_DECREF(__pyx_v_text);
 
8674
  __Pyx_DECREF(__pyx_v_text);
 
8675
  __Pyx_FinishRefcountContext();
7688
8676
  return __pyx_r;
7689
8677
}
7690
8678
 
7691
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":791
 
8679
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":786
7692
8680
 *         return len(text) > 0
7693
8681
 * 
7694
8682
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
7698
8686
 
7699
8687
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
7700
8688
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
7701
 
  PyObject *__pyx_r;
7702
 
  PyObject *__pyx_1 = 0;
 
8689
  PyObject *__pyx_r = NULL;
 
8690
  PyObject *__pyx_t_1 = NULL;
 
8691
  __Pyx_SetupRefcountContext("__richcmp__");
7703
8692
 
7704
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":792
 
8693
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":787
7705
8694
 * 
7706
8695
 *     def __richcmp__(self, other, int op):
7707
8696
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
7708
8697
 * 
7709
8698
 *     def __add__(self, other):
7710
8699
 */
7711
 
  __pyx_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7712
 
  __pyx_r = __pyx_1;
7713
 
  __pyx_1 = 0;
 
8700
  __Pyx_XDECREF(__pyx_r);
 
8701
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8702
  __Pyx_GOTREF(__pyx_t_1);
 
8703
  __pyx_r = __pyx_t_1;
 
8704
  __pyx_t_1 = 0;
7714
8705
  goto __pyx_L0;
7715
8706
 
7716
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8707
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7717
8708
  goto __pyx_L0;
7718
8709
  __pyx_L1_error:;
7719
 
  Py_XDECREF(__pyx_1);
 
8710
  __Pyx_XDECREF(__pyx_t_1);
7720
8711
  __Pyx_AddTraceback("lxml.objectify.StringElement.__richcmp__");
7721
8712
  __pyx_r = NULL;
7722
8713
  __pyx_L0:;
 
8714
  __Pyx_XGIVEREF(__pyx_r);
 
8715
  __Pyx_FinishRefcountContext();
7723
8716
  return __pyx_r;
7724
8717
}
7725
8718
 
7726
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":794
 
8719
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":789
7727
8720
 *         return _richcmpPyvals(self, other, op)
7728
8721
 * 
7729
8722
 *     def __add__(self, other):             # <<<<<<<<<<<<<<
7734
8727
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7735
8728
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7736
8729
  PyObject *__pyx_v_text;
7737
 
  PyObject *__pyx_r;
7738
 
  PyObject *__pyx_1 = 0;
7739
 
  int __pyx_2;
 
8730
  PyObject *__pyx_r = NULL;
7740
8731
  PyObject *__pyx_t_1 = NULL;
7741
 
  Py_INCREF(__pyx_v_other);
7742
 
  __pyx_v_text = Py_None; Py_INCREF(Py_None);
 
8732
  int __pyx_t_2;
 
8733
  __Pyx_SetupRefcountContext("__add__");
 
8734
  __Pyx_INCREF(__pyx_v_other);
 
8735
  __pyx_v_text = Py_None; __Pyx_INCREF(Py_None);
7743
8736
 
7744
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":795
 
8737
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":790
7745
8738
 * 
7746
8739
 *     def __add__(self, other):
7747
8740
 *         text  = _strValueOf(self)             # <<<<<<<<<<<<<<
7748
8741
 *         other = _strValueOf(other)
7749
8742
 *         if text is None:
7750
8743
 */
7751
 
  __pyx_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7752
 
  Py_DECREF(__pyx_v_text);
7753
 
  __pyx_v_text = __pyx_1;
7754
 
  __pyx_1 = 0;
 
8744
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8745
  __Pyx_GOTREF(__pyx_t_1);
 
8746
  __Pyx_DECREF(__pyx_v_text);
 
8747
  __pyx_v_text = __pyx_t_1;
 
8748
  __pyx_t_1 = 0;
7755
8749
 
7756
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":796
 
8750
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":791
7757
8751
 *     def __add__(self, other):
7758
8752
 *         text  = _strValueOf(self)
7759
8753
 *         other = _strValueOf(other)             # <<<<<<<<<<<<<<
7760
8754
 *         if text is None:
7761
8755
 *             return other
7762
8756
 */
7763
 
  __pyx_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_other); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7764
 
  Py_DECREF(__pyx_v_other);
7765
 
  __pyx_v_other = __pyx_1;
7766
 
  __pyx_1 = 0;
 
8757
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_other); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8758
  __Pyx_GOTREF(__pyx_t_1);
 
8759
  __Pyx_DECREF(__pyx_v_other);
 
8760
  __pyx_v_other = __pyx_t_1;
 
8761
  __pyx_t_1 = 0;
7767
8762
 
7768
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":797
 
8763
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":792
7769
8764
 *         text  = _strValueOf(self)
7770
8765
 *         other = _strValueOf(other)
7771
8766
 *         if text is None:             # <<<<<<<<<<<<<<
7772
8767
 *             return other
7773
8768
 *         if other is None:
7774
8769
 */
7775
 
  __pyx_2 = (__pyx_v_text == Py_None);
7776
 
  if (__pyx_2) {
 
8770
  __pyx_t_2 = (__pyx_v_text == Py_None);
 
8771
  if (__pyx_t_2) {
7777
8772
 
7778
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":798
 
8773
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":793
7779
8774
 *         other = _strValueOf(other)
7780
8775
 *         if text is None:
7781
8776
 *             return other             # <<<<<<<<<<<<<<
7782
8777
 *         if other is None:
7783
8778
 *             return text
7784
8779
 */
7785
 
    Py_INCREF(__pyx_v_other);
 
8780
    __Pyx_XDECREF(__pyx_r);
 
8781
    __Pyx_INCREF(__pyx_v_other);
7786
8782
    __pyx_r = __pyx_v_other;
7787
8783
    goto __pyx_L0;
7788
8784
    goto __pyx_L5;
7789
8785
  }
7790
8786
  __pyx_L5:;
7791
8787
 
7792
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":799
 
8788
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":794
7793
8789
 *         if text is None:
7794
8790
 *             return other
7795
8791
 *         if other is None:             # <<<<<<<<<<<<<<
7796
8792
 *             return text
7797
8793
 *         return text + other
7798
8794
 */
7799
 
  __pyx_2 = (__pyx_v_other == Py_None);
7800
 
  if (__pyx_2) {
 
8795
  __pyx_t_2 = (__pyx_v_other == Py_None);
 
8796
  if (__pyx_t_2) {
7801
8797
 
7802
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":800
 
8798
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":795
7803
8799
 *             return other
7804
8800
 *         if other is None:
7805
8801
 *             return text             # <<<<<<<<<<<<<<
7806
8802
 *         return text + other
7807
8803
 * 
7808
8804
 */
7809
 
    Py_INCREF(__pyx_v_text);
 
8805
    __Pyx_XDECREF(__pyx_r);
 
8806
    __Pyx_INCREF(__pyx_v_text);
7810
8807
    __pyx_r = __pyx_v_text;
7811
8808
    goto __pyx_L0;
7812
8809
    goto __pyx_L6;
7813
8810
  }
7814
8811
  __pyx_L6:;
7815
8812
 
7816
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":801
 
8813
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":796
7817
8814
 *         if other is None:
7818
8815
 *             return text
7819
8816
 *         return text + other             # <<<<<<<<<<<<<<
7820
8817
 * 
7821
8818
 *     def __mul__(self, other):
7822
8819
 */
7823
 
  __pyx_t_1 = PyNumber_Add(__pyx_v_text, __pyx_v_other); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8820
  __Pyx_XDECREF(__pyx_r);
 
8821
  __pyx_t_1 = PyNumber_Add(__pyx_v_text, __pyx_v_other); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8822
  __Pyx_GOTREF(__pyx_t_1);
7824
8823
  __pyx_r = __pyx_t_1;
7825
8824
  __pyx_t_1 = 0;
7826
8825
  goto __pyx_L0;
7827
8826
 
7828
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8827
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7829
8828
  goto __pyx_L0;
7830
8829
  __pyx_L1_error:;
7831
 
  Py_XDECREF(__pyx_1);
 
8830
  __Pyx_XDECREF(__pyx_t_1);
7832
8831
  __Pyx_AddTraceback("lxml.objectify.StringElement.__add__");
7833
8832
  __pyx_r = NULL;
7834
8833
  __pyx_L0:;
7835
 
  Py_DECREF(__pyx_v_text);
7836
 
  Py_DECREF(__pyx_v_other);
 
8834
  __Pyx_DECREF(__pyx_v_text);
 
8835
  __Pyx_DECREF(__pyx_v_other);
 
8836
  __Pyx_XGIVEREF(__pyx_r);
 
8837
  __Pyx_FinishRefcountContext();
7837
8838
  return __pyx_r;
7838
8839
}
7839
8840
 
7840
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":803
 
8841
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":798
7841
8842
 *         return text + other
7842
8843
 * 
7843
8844
 *     def __mul__(self, other):             # <<<<<<<<<<<<<<
7847
8848
 
7848
8849
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7849
8850
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7850
 
  PyObject *__pyx_r;
7851
 
  int __pyx_1;
7852
 
  PyObject *__pyx_2 = 0;
7853
 
  PyObject *__pyx_3 = 0;
7854
 
  PyObject *__pyx_t_1 = NULL;
 
8851
  PyObject *__pyx_r = NULL;
 
8852
  int __pyx_t_1;
 
8853
  PyObject *__pyx_t_2 = NULL;
 
8854
  PyObject *__pyx_t_3 = NULL;
 
8855
  PyObject *__pyx_t_4 = NULL;
 
8856
  __Pyx_SetupRefcountContext("__mul__");
7855
8857
 
7856
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":804
 
8858
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":799
7857
8859
 * 
7858
8860
 *     def __mul__(self, other):
7859
8861
 *         if isinstance(self, StringElement):             # <<<<<<<<<<<<<<
7860
8862
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
7861
8863
 *         elif isinstance(other, StringElement):
7862
8864
 */
7863
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_self, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement))); 
7864
 
  if (__pyx_1) {
 
8865
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_self, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement))); 
 
8866
  if (__pyx_t_1) {
7865
8867
 
7866
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":805
 
8868
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":800
7867
8869
 *     def __mul__(self, other):
7868
8870
 *         if isinstance(self, StringElement):
7869
8871
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)             # <<<<<<<<<<<<<<
7870
8872
 *         elif isinstance(other, StringElement):
7871
8873
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
7872
8874
 */
7873
 
    __pyx_2 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7874
 
    __pyx_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7875
 
    __pyx_t_1 = PyNumber_Multiply(__pyx_2, __pyx_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7876
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
7877
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
7878
 
    __pyx_r = __pyx_t_1;
7879
 
    __pyx_t_1 = 0;
 
8875
    __Pyx_XDECREF(__pyx_r);
 
8876
    __pyx_t_2 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8877
    __Pyx_GOTREF(__pyx_t_2);
 
8878
    __pyx_t_3 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_other); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8879
    __Pyx_GOTREF(__pyx_t_3);
 
8880
    __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8881
    __Pyx_GOTREF(__pyx_t_4);
 
8882
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
8883
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
8884
    __pyx_r = __pyx_t_4;
 
8885
    __pyx_t_4 = 0;
7880
8886
    goto __pyx_L0;
7881
8887
    goto __pyx_L5;
7882
8888
  }
7883
8889
 
7884
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":806
 
8890
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":801
7885
8891
 *         if isinstance(self, StringElement):
7886
8892
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
7887
8893
 *         elif isinstance(other, StringElement):             # <<<<<<<<<<<<<<
7888
8894
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
7889
8895
 *         else:
7890
8896
 */
7891
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_other, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement))); 
7892
 
  if (__pyx_1) {
 
8897
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_other, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement))); 
 
8898
  if (__pyx_t_1) {
7893
8899
 
7894
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":807
 
8900
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":802
7895
8901
 *             return textOf((<StringElement>self)._c_node) * _numericValueOf(other)
7896
8902
 *         elif isinstance(other, StringElement):
7897
8903
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)             # <<<<<<<<<<<<<<
7898
8904
 *         else:
7899
8905
 *             raise TypeError, u"invalid types for * operator"
7900
8906
 */
7901
 
    __pyx_2 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7902
 
    __pyx_3 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_other)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7903
 
    __pyx_t_1 = PyNumber_Multiply(__pyx_2, __pyx_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7904
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
7905
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
7906
 
    __pyx_r = __pyx_t_1;
7907
 
    __pyx_t_1 = 0;
 
8907
    __Pyx_XDECREF(__pyx_r);
 
8908
    __pyx_t_4 = __pyx_f_4lxml_9objectify__numericValueOf(__pyx_v_self); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8909
    __Pyx_GOTREF(__pyx_t_4);
 
8910
    __pyx_t_3 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_other)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8911
    __Pyx_GOTREF(__pyx_t_3);
 
8912
    __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8913
    __Pyx_GOTREF(__pyx_t_2);
 
8914
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
8915
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
8916
    __pyx_r = __pyx_t_2;
 
8917
    __pyx_t_2 = 0;
7908
8918
    goto __pyx_L0;
7909
8919
    goto __pyx_L5;
7910
8920
  }
7911
8921
  /*else*/ {
7912
8922
 
7913
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":809
 
8923
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":804
7914
8924
 *             return _numericValueOf(self) * textOf((<StringElement>other)._c_node)
7915
8925
 *         else:
7916
8926
 *             raise TypeError, u"invalid types for * operator"             # <<<<<<<<<<<<<<
7917
8927
 * 
7918
8928
 *     def __mod__(self, other):
7919
8929
 */
7920
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_691), 0);
7921
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 809; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8930
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_758), 0);
 
8931
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7922
8932
  }
7923
8933
  __pyx_L5:;
7924
8934
 
7925
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8935
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7926
8936
  goto __pyx_L0;
7927
8937
  __pyx_L1_error:;
7928
 
  Py_XDECREF(__pyx_2);
7929
 
  Py_XDECREF(__pyx_3);
 
8938
  __Pyx_XDECREF(__pyx_t_2);
 
8939
  __Pyx_XDECREF(__pyx_t_3);
 
8940
  __Pyx_XDECREF(__pyx_t_4);
7930
8941
  __Pyx_AddTraceback("lxml.objectify.StringElement.__mul__");
7931
8942
  __pyx_r = NULL;
7932
8943
  __pyx_L0:;
 
8944
  __Pyx_XGIVEREF(__pyx_r);
 
8945
  __Pyx_FinishRefcountContext();
7933
8946
  return __pyx_r;
7934
8947
}
7935
8948
 
7936
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":811
 
8949
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":806
7937
8950
 *             raise TypeError, u"invalid types for * operator"
7938
8951
 * 
7939
8952
 *     def __mod__(self, other):             # <<<<<<<<<<<<<<
7943
8956
 
7944
8957
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
7945
8958
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___mod__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
7946
 
  PyObject *__pyx_r;
7947
 
  PyObject *__pyx_1 = 0;
 
8959
  PyObject *__pyx_r = NULL;
7948
8960
  PyObject *__pyx_t_1 = NULL;
 
8961
  PyObject *__pyx_t_2 = NULL;
 
8962
  __Pyx_SetupRefcountContext("__mod__");
7949
8963
 
7950
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":812
 
8964
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":807
7951
8965
 * 
7952
8966
 *     def __mod__(self, other):
7953
8967
 *         return _strValueOf(self) % other             # <<<<<<<<<<<<<<
7954
8968
 * 
7955
8969
 *     def __int__(self):
7956
8970
 */
7957
 
  __pyx_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7958
 
  __pyx_t_1 = PyNumber_Remainder(__pyx_1, __pyx_v_other); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7959
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
7960
 
  __pyx_r = __pyx_t_1;
7961
 
  __pyx_t_1 = 0;
 
8971
  __Pyx_XDECREF(__pyx_r);
 
8972
  __pyx_t_1 = __pyx_f_4lxml_9objectify__strValueOf(__pyx_v_self); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8973
  __Pyx_GOTREF(__pyx_t_1);
 
8974
  __pyx_t_2 = PyNumber_Remainder(__pyx_t_1, __pyx_v_other); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
8975
  __Pyx_GOTREF(__pyx_t_2);
 
8976
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
8977
  __pyx_r = __pyx_t_2;
 
8978
  __pyx_t_2 = 0;
7962
8979
  goto __pyx_L0;
7963
8980
 
7964
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
8981
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
7965
8982
  goto __pyx_L0;
7966
8983
  __pyx_L1_error:;
7967
 
  Py_XDECREF(__pyx_1);
 
8984
  __Pyx_XDECREF(__pyx_t_1);
 
8985
  __Pyx_XDECREF(__pyx_t_2);
7968
8986
  __Pyx_AddTraceback("lxml.objectify.StringElement.__mod__");
7969
8987
  __pyx_r = NULL;
7970
8988
  __pyx_L0:;
 
8989
  __Pyx_XGIVEREF(__pyx_r);
 
8990
  __Pyx_FinishRefcountContext();
7971
8991
  return __pyx_r;
7972
8992
}
7973
8993
 
7974
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":814
 
8994
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":809
7975
8995
 *         return _strValueOf(self) % other
7976
8996
 * 
7977
8997
 *     def __int__(self):             # <<<<<<<<<<<<<<
7981
9001
 
7982
9002
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___int__(PyObject *__pyx_v_self); /*proto*/
7983
9003
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___int__(PyObject *__pyx_v_self) {
7984
 
  PyObject *__pyx_r;
7985
 
  PyObject *__pyx_1 = 0;
7986
 
  PyObject *__pyx_2 = 0;
 
9004
  PyObject *__pyx_r = NULL;
 
9005
  PyObject *__pyx_t_1 = NULL;
 
9006
  PyObject *__pyx_t_2 = NULL;
 
9007
  __Pyx_SetupRefcountContext("__int__");
7987
9008
 
7988
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":815
 
9009
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":810
7989
9010
 * 
7990
9011
 *     def __int__(self):
7991
9012
 *         return int(textOf(self._c_node))             # <<<<<<<<<<<<<<
7992
9013
 * 
7993
9014
 *     def __long__(self):
7994
9015
 */
7995
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7996
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
7997
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
7998
 
  __pyx_1 = 0;
7999
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8000
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
8001
 
  __pyx_r = __pyx_1;
8002
 
  __pyx_1 = 0;
 
9016
  __Pyx_XDECREF(__pyx_r);
 
9017
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9018
  __Pyx_GOTREF(__pyx_t_1);
 
9019
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9020
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
9021
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
9022
  __Pyx_GIVEREF(__pyx_t_1);
 
9023
  __pyx_t_1 = 0;
 
9024
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9025
  __Pyx_GOTREF(__pyx_t_1);
 
9026
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
9027
  __pyx_r = __pyx_t_1;
 
9028
  __pyx_t_1 = 0;
8003
9029
  goto __pyx_L0;
8004
9030
 
8005
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9031
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8006
9032
  goto __pyx_L0;
8007
9033
  __pyx_L1_error:;
8008
 
  Py_XDECREF(__pyx_1);
8009
 
  Py_XDECREF(__pyx_2);
 
9034
  __Pyx_XDECREF(__pyx_t_1);
 
9035
  __Pyx_XDECREF(__pyx_t_2);
8010
9036
  __Pyx_AddTraceback("lxml.objectify.StringElement.__int__");
8011
9037
  __pyx_r = NULL;
8012
9038
  __pyx_L0:;
 
9039
  __Pyx_XGIVEREF(__pyx_r);
 
9040
  __Pyx_FinishRefcountContext();
8013
9041
  return __pyx_r;
8014
9042
}
8015
9043
 
8016
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":817
 
9044
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":812
8017
9045
 *         return int(textOf(self._c_node))
8018
9046
 * 
8019
9047
 *     def __long__(self):             # <<<<<<<<<<<<<<
8023
9051
 
8024
9052
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___long__(PyObject *__pyx_v_self); /*proto*/
8025
9053
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___long__(PyObject *__pyx_v_self) {
8026
 
  PyObject *__pyx_r;
8027
 
  PyObject *__pyx_1 = 0;
8028
 
  PyObject *__pyx_2 = 0;
 
9054
  PyObject *__pyx_r = NULL;
 
9055
  PyObject *__pyx_t_1 = NULL;
 
9056
  PyObject *__pyx_t_2 = NULL;
 
9057
  __Pyx_SetupRefcountContext("__long__");
8029
9058
 
8030
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":818
 
9059
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":813
8031
9060
 * 
8032
9061
 *     def __long__(self):
8033
9062
 *         return long(textOf(self._c_node))             # <<<<<<<<<<<<<<
8034
9063
 * 
8035
9064
 *     def __float__(self):
8036
9065
 */
8037
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8038
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8039
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
8040
 
  __pyx_1 = 0;
8041
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyLong_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8042
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
8043
 
  __pyx_r = __pyx_1;
8044
 
  __pyx_1 = 0;
 
9066
  __Pyx_XDECREF(__pyx_r);
 
9067
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9068
  __Pyx_GOTREF(__pyx_t_1);
 
9069
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9070
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
9071
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
9072
  __Pyx_GIVEREF(__pyx_t_1);
 
9073
  __pyx_t_1 = 0;
 
9074
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyLong_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9075
  __Pyx_GOTREF(__pyx_t_1);
 
9076
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
9077
  __pyx_r = __pyx_t_1;
 
9078
  __pyx_t_1 = 0;
8045
9079
  goto __pyx_L0;
8046
9080
 
8047
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9081
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8048
9082
  goto __pyx_L0;
8049
9083
  __pyx_L1_error:;
8050
 
  Py_XDECREF(__pyx_1);
8051
 
  Py_XDECREF(__pyx_2);
 
9084
  __Pyx_XDECREF(__pyx_t_1);
 
9085
  __Pyx_XDECREF(__pyx_t_2);
8052
9086
  __Pyx_AddTraceback("lxml.objectify.StringElement.__long__");
8053
9087
  __pyx_r = NULL;
8054
9088
  __pyx_L0:;
 
9089
  __Pyx_XGIVEREF(__pyx_r);
 
9090
  __Pyx_FinishRefcountContext();
8055
9091
  return __pyx_r;
8056
9092
}
8057
9093
 
8058
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":820
 
9094
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":815
8059
9095
 *         return long(textOf(self._c_node))
8060
9096
 * 
8061
9097
 *     def __float__(self):             # <<<<<<<<<<<<<<
8065
9101
 
8066
9102
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___float__(PyObject *__pyx_v_self); /*proto*/
8067
9103
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___float__(PyObject *__pyx_v_self) {
8068
 
  PyObject *__pyx_r;
8069
 
  PyObject *__pyx_1 = 0;
8070
 
  PyObject *__pyx_2 = 0;
 
9104
  PyObject *__pyx_r = NULL;
 
9105
  PyObject *__pyx_t_1 = NULL;
 
9106
  PyObject *__pyx_t_2 = NULL;
 
9107
  __Pyx_SetupRefcountContext("__float__");
8071
9108
 
8072
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":821
 
9109
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":816
8073
9110
 * 
8074
9111
 *     def __float__(self):
8075
9112
 *         return float(textOf(self._c_node))             # <<<<<<<<<<<<<<
8076
9113
 * 
8077
9114
 *     def __complex__(self):
8078
9115
 */
8079
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8080
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8081
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
8082
 
  __pyx_1 = 0;
8083
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyFloat_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8084
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
8085
 
  __pyx_r = __pyx_1;
8086
 
  __pyx_1 = 0;
 
9116
  __Pyx_XDECREF(__pyx_r);
 
9117
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9118
  __Pyx_GOTREF(__pyx_t_1);
 
9119
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9120
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
9121
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
9122
  __Pyx_GIVEREF(__pyx_t_1);
 
9123
  __pyx_t_1 = 0;
 
9124
  __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyFloat_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9125
  __Pyx_GOTREF(__pyx_t_1);
 
9126
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
9127
  __pyx_r = __pyx_t_1;
 
9128
  __pyx_t_1 = 0;
8087
9129
  goto __pyx_L0;
8088
9130
 
8089
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9131
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8090
9132
  goto __pyx_L0;
8091
9133
  __pyx_L1_error:;
8092
 
  Py_XDECREF(__pyx_1);
8093
 
  Py_XDECREF(__pyx_2);
 
9134
  __Pyx_XDECREF(__pyx_t_1);
 
9135
  __Pyx_XDECREF(__pyx_t_2);
8094
9136
  __Pyx_AddTraceback("lxml.objectify.StringElement.__float__");
8095
9137
  __pyx_r = NULL;
8096
9138
  __pyx_L0:;
 
9139
  __Pyx_XGIVEREF(__pyx_r);
 
9140
  __Pyx_FinishRefcountContext();
8097
9141
  return __pyx_r;
8098
9142
}
8099
9143
 
8100
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":823
 
9144
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":818
8101
9145
 *         return float(textOf(self._c_node))
8102
9146
 * 
8103
9147
 *     def __complex__(self):             # <<<<<<<<<<<<<<
8107
9151
 
8108
9152
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___complex__(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
8109
9153
static PyObject *__pyx_pf_4lxml_9objectify_13StringElement___complex__(PyObject *__pyx_v_self, PyObject *unused) {
8110
 
  PyObject *__pyx_r;
8111
 
  PyObject *__pyx_1 = 0;
8112
 
  PyObject *__pyx_2 = 0;
 
9154
  PyObject *__pyx_r = NULL;
 
9155
  PyObject *__pyx_t_1 = NULL;
 
9156
  PyObject *__pyx_t_2 = NULL;
 
9157
  __Pyx_SetupRefcountContext("__complex__");
8113
9158
 
8114
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":824
 
9159
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":819
8115
9160
 * 
8116
9161
 *     def __complex__(self):
8117
9162
 *         return complex(textOf(self._c_node))             # <<<<<<<<<<<<<<
8118
9163
 * 
8119
9164
 * cdef class NoneElement(ObjectifiedDataElement):
8120
9165
 */
8121
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8122
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8123
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
8124
 
  __pyx_1 = 0;
8125
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyComplex_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8126
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
8127
 
  __pyx_r = __pyx_1;
8128
 
  __pyx_1 = 0;
 
9166
  __Pyx_XDECREF(__pyx_r);
 
9167
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_StringElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9168
  __Pyx_GOTREF(__pyx_t_1);
 
9169
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9170
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
9171
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
9172
  __Pyx_GIVEREF(__pyx_t_1);
 
9173
  __pyx_t_1 = 0;
 
9174
  __pyx_t_1 = PyObject_Call(((PyObject*)&PyComplex_Type), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9175
  __Pyx_GOTREF(__pyx_t_1);
 
9176
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
9177
  __pyx_r = __pyx_t_1;
 
9178
  __pyx_t_1 = 0;
8129
9179
  goto __pyx_L0;
8130
9180
 
8131
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9181
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8132
9182
  goto __pyx_L0;
8133
9183
  __pyx_L1_error:;
8134
 
  Py_XDECREF(__pyx_1);
8135
 
  Py_XDECREF(__pyx_2);
 
9184
  __Pyx_XDECREF(__pyx_t_1);
 
9185
  __Pyx_XDECREF(__pyx_t_2);
8136
9186
  __Pyx_AddTraceback("lxml.objectify.StringElement.__complex__");
8137
9187
  __pyx_r = NULL;
8138
9188
  __pyx_L0:;
 
9189
  __Pyx_XGIVEREF(__pyx_r);
 
9190
  __Pyx_FinishRefcountContext();
8139
9191
  return __pyx_r;
8140
9192
}
8141
9193
 
8142
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":827
 
9194
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":822
8143
9195
 * 
8144
9196
 * cdef class NoneElement(ObjectifiedDataElement):
8145
9197
 *     def __str__(self):             # <<<<<<<<<<<<<<
8149
9201
 
8150
9202
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___str__(PyObject *__pyx_v_self); /*proto*/
8151
9203
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___str__(PyObject *__pyx_v_self) {
8152
 
  PyObject *__pyx_r;
 
9204
  PyObject *__pyx_r = NULL;
 
9205
  __Pyx_SetupRefcountContext("__str__");
8153
9206
 
8154
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":828
 
9207
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":823
8155
9208
 * cdef class NoneElement(ObjectifiedDataElement):
8156
9209
 *     def __str__(self):
8157
9210
 *         return u"None"             # <<<<<<<<<<<<<<
8158
9211
 * 
8159
9212
 *     def __repr__(self):
8160
9213
 */
8161
 
  Py_INCREF(((PyObject *)__pyx_kp_692));
8162
 
  __pyx_r = ((PyObject *)__pyx_kp_692);
 
9214
  __Pyx_XDECREF(__pyx_r);
 
9215
  __Pyx_INCREF(((PyObject *)__pyx_kp_759));
 
9216
  __pyx_r = ((PyObject *)__pyx_kp_759);
8163
9217
  goto __pyx_L0;
8164
9218
 
8165
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9219
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8166
9220
  __pyx_L0:;
 
9221
  __Pyx_XGIVEREF(__pyx_r);
 
9222
  __Pyx_FinishRefcountContext();
8167
9223
  return __pyx_r;
8168
9224
}
8169
9225
 
8170
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":830
 
9226
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":825
8171
9227
 *         return u"None"
8172
9228
 * 
8173
9229
 *     def __repr__(self):             # <<<<<<<<<<<<<<
8177
9233
 
8178
9234
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___repr__(PyObject *__pyx_v_self); /*proto*/
8179
9235
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___repr__(PyObject *__pyx_v_self) {
8180
 
  PyObject *__pyx_r;
 
9236
  PyObject *__pyx_r = NULL;
 
9237
  __Pyx_SetupRefcountContext("__repr__");
8181
9238
 
8182
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":831
 
9239
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":826
8183
9240
 * 
8184
9241
 *     def __repr__(self):
8185
9242
 *         return u"None"             # <<<<<<<<<<<<<<
8186
9243
 * 
8187
9244
 *     def __nonzero__(self):
8188
9245
 */
8189
 
  Py_INCREF(((PyObject *)__pyx_kp_693));
8190
 
  __pyx_r = ((PyObject *)__pyx_kp_693);
 
9246
  __Pyx_XDECREF(__pyx_r);
 
9247
  __Pyx_INCREF(((PyObject *)__pyx_kp_760));
 
9248
  __pyx_r = ((PyObject *)__pyx_kp_760);
8191
9249
  goto __pyx_L0;
8192
9250
 
8193
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9251
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8194
9252
  __pyx_L0:;
 
9253
  __Pyx_XGIVEREF(__pyx_r);
 
9254
  __Pyx_FinishRefcountContext();
8195
9255
  return __pyx_r;
8196
9256
}
8197
9257
 
8198
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":833
 
9258
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":828
8199
9259
 *         return u"None"
8200
9260
 * 
8201
9261
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
8206
9266
static int __pyx_pf_4lxml_9objectify_11NoneElement___nonzero__(PyObject *__pyx_v_self); /*proto*/
8207
9267
static int __pyx_pf_4lxml_9objectify_11NoneElement___nonzero__(PyObject *__pyx_v_self) {
8208
9268
  int __pyx_r;
 
9269
  __Pyx_SetupRefcountContext("__nonzero__");
8209
9270
 
8210
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":834
 
9271
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":829
8211
9272
 * 
8212
9273
 *     def __nonzero__(self):
8213
9274
 *         return False             # <<<<<<<<<<<<<<
8219
9280
 
8220
9281
  __pyx_r = 0;
8221
9282
  __pyx_L0:;
 
9283
  __Pyx_FinishRefcountContext();
8222
9284
  return __pyx_r;
8223
9285
}
8224
9286
 
8225
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":836
 
9287
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":831
8226
9288
 *         return False
8227
9289
 * 
8228
9290
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
8232
9294
 
8233
9295
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
8234
9296
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
8235
 
  PyObject *__pyx_r;
8236
 
  int __pyx_1;
8237
 
  PyObject *__pyx_2 = 0;
 
9297
  PyObject *__pyx_r = NULL;
 
9298
  int __pyx_t_1;
 
9299
  int __pyx_t_2;
 
9300
  int __pyx_t_3;
 
9301
  PyObject *__pyx_t_4 = NULL;
 
9302
  __Pyx_SetupRefcountContext("__richcmp__");
8238
9303
 
8239
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":837
 
9304
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":832
8240
9305
 * 
8241
9306
 *     def __richcmp__(self, other, int op):
8242
9307
 *         if other is None or self is None:             # <<<<<<<<<<<<<<
8243
9308
 *             return python.PyObject_RichCompare(None, None, op)
8244
9309
 *         if isinstance(self, NoneElement):
8245
9310
 */
8246
 
  __pyx_1 = (__pyx_v_other == Py_None);
8247
 
  if (!__pyx_1) {
8248
 
    __pyx_1 = (__pyx_v_self == Py_None);
 
9311
  __pyx_t_1 = (__pyx_v_other == Py_None);
 
9312
  if (!__pyx_t_1) {
 
9313
    __pyx_t_2 = (__pyx_v_self == Py_None);
 
9314
    __pyx_t_3 = __pyx_t_2;
 
9315
  } else {
 
9316
    __pyx_t_3 = __pyx_t_1;
8249
9317
  }
8250
 
  if (__pyx_1) {
 
9318
  if (__pyx_t_3) {
8251
9319
 
8252
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":838
 
9320
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":833
8253
9321
 *     def __richcmp__(self, other, int op):
8254
9322
 *         if other is None or self is None:
8255
9323
 *             return python.PyObject_RichCompare(None, None, op)             # <<<<<<<<<<<<<<
8256
9324
 *         if isinstance(self, NoneElement):
8257
9325
 *             return python.PyObject_RichCompare(None, other, op)
8258
9326
 */
8259
 
    __pyx_2 = PyObject_RichCompare(Py_None, Py_None, __pyx_v_op); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8260
 
    __pyx_r = __pyx_2;
8261
 
    __pyx_2 = 0;
 
9327
    __Pyx_XDECREF(__pyx_r);
 
9328
    __pyx_t_4 = PyObject_RichCompare(Py_None, Py_None, __pyx_v_op); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9329
    __Pyx_GOTREF(__pyx_t_4);
 
9330
    __pyx_r = __pyx_t_4;
 
9331
    __pyx_t_4 = 0;
8262
9332
    goto __pyx_L0;
8263
9333
    goto __pyx_L5;
8264
9334
  }
8265
9335
  __pyx_L5:;
8266
9336
 
8267
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":839
 
9337
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":834
8268
9338
 *         if other is None or self is None:
8269
9339
 *             return python.PyObject_RichCompare(None, None, op)
8270
9340
 *         if isinstance(self, NoneElement):             # <<<<<<<<<<<<<<
8271
9341
 *             return python.PyObject_RichCompare(None, other, op)
8272
9342
 *         else:
8273
9343
 */
8274
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_self, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement))); 
8275
 
  if (__pyx_1) {
 
9344
  __pyx_t_3 = PyObject_TypeCheck(__pyx_v_self, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement))); 
 
9345
  if (__pyx_t_3) {
8276
9346
 
8277
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":840
 
9347
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":835
8278
9348
 *             return python.PyObject_RichCompare(None, None, op)
8279
9349
 *         if isinstance(self, NoneElement):
8280
9350
 *             return python.PyObject_RichCompare(None, other, op)             # <<<<<<<<<<<<<<
8281
9351
 *         else:
8282
9352
 *             return python.PyObject_RichCompare(self, None, op)
8283
9353
 */
8284
 
    __pyx_2 = PyObject_RichCompare(Py_None, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8285
 
    __pyx_r = __pyx_2;
8286
 
    __pyx_2 = 0;
 
9354
    __Pyx_XDECREF(__pyx_r);
 
9355
    __pyx_t_4 = PyObject_RichCompare(Py_None, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9356
    __Pyx_GOTREF(__pyx_t_4);
 
9357
    __pyx_r = __pyx_t_4;
 
9358
    __pyx_t_4 = 0;
8287
9359
    goto __pyx_L0;
8288
9360
    goto __pyx_L6;
8289
9361
  }
8290
9362
  /*else*/ {
8291
9363
 
8292
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":842
 
9364
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":837
8293
9365
 *             return python.PyObject_RichCompare(None, other, op)
8294
9366
 *         else:
8295
9367
 *             return python.PyObject_RichCompare(self, None, op)             # <<<<<<<<<<<<<<
8296
9368
 * 
8297
9369
 *     property pyval:
8298
9370
 */
8299
 
    __pyx_2 = PyObject_RichCompare(__pyx_v_self, Py_None, __pyx_v_op); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8300
 
    __pyx_r = __pyx_2;
8301
 
    __pyx_2 = 0;
 
9371
    __Pyx_XDECREF(__pyx_r);
 
9372
    __pyx_t_4 = PyObject_RichCompare(__pyx_v_self, Py_None, __pyx_v_op); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9373
    __Pyx_GOTREF(__pyx_t_4);
 
9374
    __pyx_r = __pyx_t_4;
 
9375
    __pyx_t_4 = 0;
8302
9376
    goto __pyx_L0;
8303
9377
  }
8304
9378
  __pyx_L6:;
8305
9379
 
8306
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9380
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8307
9381
  goto __pyx_L0;
8308
9382
  __pyx_L1_error:;
8309
 
  Py_XDECREF(__pyx_2);
 
9383
  __Pyx_XDECREF(__pyx_t_4);
8310
9384
  __Pyx_AddTraceback("lxml.objectify.NoneElement.__richcmp__");
8311
9385
  __pyx_r = NULL;
8312
9386
  __pyx_L0:;
 
9387
  __Pyx_XGIVEREF(__pyx_r);
 
9388
  __Pyx_FinishRefcountContext();
8313
9389
  return __pyx_r;
8314
9390
}
8315
9391
 
8316
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":845
 
9392
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":840
8317
9393
 * 
8318
9394
 *     property pyval:
8319
9395
 *         def __get__(self):             # <<<<<<<<<<<<<<
8323
9399
 
8324
9400
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/
8325
9401
static PyObject *__pyx_pf_4lxml_9objectify_11NoneElement_5pyval___get__(PyObject *__pyx_v_self) {
8326
 
  PyObject *__pyx_r;
 
9402
  PyObject *__pyx_r = NULL;
 
9403
  __Pyx_SetupRefcountContext("__get__");
8327
9404
 
8328
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":846
 
9405
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":841
8329
9406
 *     property pyval:
8330
9407
 *         def __get__(self):
8331
9408
 *             return None             # <<<<<<<<<<<<<<
8332
9409
 * 
8333
9410
 * cdef class BoolElement(IntElement):
8334
9411
 */
8335
 
  Py_INCREF(Py_None);
 
9412
  __Pyx_XDECREF(__pyx_r);
 
9413
  __Pyx_INCREF(Py_None);
8336
9414
  __pyx_r = Py_None;
8337
9415
  goto __pyx_L0;
8338
9416
 
8339
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9417
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8340
9418
  __pyx_L0:;
 
9419
  __Pyx_XGIVEREF(__pyx_r);
 
9420
  __Pyx_FinishRefcountContext();
8341
9421
  return __pyx_r;
8342
9422
}
8343
9423
 
8344
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":854
 
9424
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":849
8345
9425
 *     Python's bool type.
8346
9426
 *     """
8347
9427
 *     def _init(self):             # <<<<<<<<<<<<<<
8351
9431
 
8352
9432
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement__init(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
8353
9433
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement__init(PyObject *__pyx_v_self, PyObject *unused) {
8354
 
  PyObject *__pyx_r;
 
9434
  PyObject *__pyx_r = NULL;
8355
9435
  PyObject *__pyx_1 = 0;
 
9436
  __Pyx_SetupRefcountContext("_init");
8356
9437
 
8357
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":855
 
9438
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":850
8358
9439
 *     """
8359
9440
 *     def _init(self):
8360
9441
 *         self._parse_value = __parseBool             # <<<<<<<<<<<<<<
8361
9442
 * 
8362
9443
 *     def __nonzero__(self):
8363
9444
 */
8364
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp___parseBool); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8365
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base._parse_value);
 
9445
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp___parseBool); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9446
  __Pyx_GOTREF(__pyx_1);
 
9447
  __Pyx_GIVEREF(__pyx_1);
 
9448
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base._parse_value);
 
9449
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base._parse_value);
8366
9450
  ((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base._parse_value = __pyx_1;
8367
9451
  __pyx_1 = 0;
8368
9452
 
8369
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9453
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8370
9454
  goto __pyx_L0;
8371
9455
  __pyx_L1_error:;
8372
 
  Py_XDECREF(__pyx_1);
 
9456
  __Pyx_XDECREF(__pyx_1);
8373
9457
  __Pyx_AddTraceback("lxml.objectify.BoolElement._init");
8374
9458
  __pyx_r = NULL;
8375
9459
  __pyx_L0:;
 
9460
  __Pyx_XGIVEREF(__pyx_r);
 
9461
  __Pyx_FinishRefcountContext();
8376
9462
  return __pyx_r;
8377
9463
}
8378
9464
 
8379
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":857
 
9465
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":852
8380
9466
 *         self._parse_value = __parseBool
8381
9467
 * 
8382
9468
 *     def __nonzero__(self):             # <<<<<<<<<<<<<<
8387
9473
static int __pyx_pf_4lxml_9objectify_11BoolElement___nonzero__(PyObject *__pyx_v_self); /*proto*/
8388
9474
static int __pyx_pf_4lxml_9objectify_11BoolElement___nonzero__(PyObject *__pyx_v_self) {
8389
9475
  int __pyx_r;
8390
 
  PyObject *__pyx_1 = 0;
8391
 
  PyObject *__pyx_2 = 0;
8392
 
  int __pyx_3;
 
9476
  PyObject *__pyx_t_1 = NULL;
 
9477
  PyObject *__pyx_t_2 = NULL;
 
9478
  int __pyx_t_3;
 
9479
  __Pyx_SetupRefcountContext("__nonzero__");
8393
9480
 
8394
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":858
 
9481
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":853
8395
9482
 * 
8396
9483
 *     def __nonzero__(self):
8397
9484
 *         return __parseBool(textOf(self._c_node))             # <<<<<<<<<<<<<<
8398
9485
 * 
8399
9486
 *     def __richcmp__(self, other, int op):
8400
9487
 */
8401
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8402
 
  __pyx_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8403
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8404
 
  __pyx_3 = __pyx_PyInt_int(__pyx_2); if (unlikely((__pyx_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8405
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8406
 
  __pyx_r = __pyx_3;
 
9488
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9489
  __Pyx_GOTREF(__pyx_t_1);
 
9490
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9491
  __Pyx_GOTREF(__pyx_t_2);
 
9492
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9493
  __pyx_t_3 = __Pyx_PyInt_AsInt(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9494
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
9495
  __pyx_r = __pyx_t_3;
8407
9496
  goto __pyx_L0;
8408
9497
 
8409
9498
  __pyx_r = 0;
8410
9499
  goto __pyx_L0;
8411
9500
  __pyx_L1_error:;
8412
 
  Py_XDECREF(__pyx_1);
8413
 
  Py_XDECREF(__pyx_2);
 
9501
  __Pyx_XDECREF(__pyx_t_1);
 
9502
  __Pyx_XDECREF(__pyx_t_2);
8414
9503
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__nonzero__");
8415
9504
  __pyx_r = -1;
8416
9505
  __pyx_L0:;
 
9506
  __Pyx_FinishRefcountContext();
8417
9507
  return __pyx_r;
8418
9508
}
8419
9509
 
8420
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":860
 
9510
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":855
8421
9511
 *         return __parseBool(textOf(self._c_node))
8422
9512
 * 
8423
9513
 *     def __richcmp__(self, other, int op):             # <<<<<<<<<<<<<<
8427
9517
 
8428
9518
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op); /*proto*/
8429
9519
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___richcmp__(PyObject *__pyx_v_self, PyObject *__pyx_v_other, int __pyx_v_op) {
8430
 
  PyObject *__pyx_r;
8431
 
  PyObject *__pyx_1 = 0;
 
9520
  PyObject *__pyx_r = NULL;
 
9521
  PyObject *__pyx_t_1 = NULL;
 
9522
  __Pyx_SetupRefcountContext("__richcmp__");
8432
9523
 
8433
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":861
 
9524
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":856
8434
9525
 * 
8435
9526
 *     def __richcmp__(self, other, int op):
8436
9527
 *         return _richcmpPyvals(self, other, op)             # <<<<<<<<<<<<<<
8437
9528
 * 
8438
9529
 *     def __str__(self):
8439
9530
 */
8440
 
  __pyx_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8441
 
  __pyx_r = __pyx_1;
8442
 
  __pyx_1 = 0;
 
9531
  __Pyx_XDECREF(__pyx_r);
 
9532
  __pyx_t_1 = __pyx_f_4lxml_9objectify__richcmpPyvals(__pyx_v_self, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9533
  __Pyx_GOTREF(__pyx_t_1);
 
9534
  __pyx_r = __pyx_t_1;
 
9535
  __pyx_t_1 = 0;
8443
9536
  goto __pyx_L0;
8444
9537
 
8445
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9538
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8446
9539
  goto __pyx_L0;
8447
9540
  __pyx_L1_error:;
8448
 
  Py_XDECREF(__pyx_1);
 
9541
  __Pyx_XDECREF(__pyx_t_1);
8449
9542
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__richcmp__");
8450
9543
  __pyx_r = NULL;
8451
9544
  __pyx_L0:;
 
9545
  __Pyx_XGIVEREF(__pyx_r);
 
9546
  __Pyx_FinishRefcountContext();
8452
9547
  return __pyx_r;
8453
9548
}
8454
9549
 
8455
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":863
 
9550
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":858
8456
9551
 *         return _richcmpPyvals(self, other, op)
8457
9552
 * 
8458
9553
 *     def __str__(self):             # <<<<<<<<<<<<<<
8462
9557
 
8463
9558
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___str__(PyObject *__pyx_v_self); /*proto*/
8464
9559
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___str__(PyObject *__pyx_v_self) {
8465
 
  PyObject *__pyx_r;
8466
 
  PyObject *__pyx_1 = 0;
8467
 
  PyObject *__pyx_2 = 0;
 
9560
  PyObject *__pyx_r = NULL;
 
9561
  PyObject *__pyx_t_1 = NULL;
 
9562
  PyObject *__pyx_t_2 = NULL;
 
9563
  __Pyx_SetupRefcountContext("__str__");
8468
9564
 
8469
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":864
 
9565
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":859
8470
9566
 * 
8471
9567
 *     def __str__(self):
8472
9568
 *         return unicode(__parseBool(textOf(self._c_node)))             # <<<<<<<<<<<<<<
8473
9569
 * 
8474
9570
 *     def __repr__(self):
8475
9571
 */
8476
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8477
 
  __pyx_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8478
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8479
 
  __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8480
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
8481
 
  __pyx_2 = 0;
8482
 
  __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8483
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
8484
 
  __pyx_r = __pyx_2;
8485
 
  __pyx_2 = 0;
 
9572
  __Pyx_XDECREF(__pyx_r);
 
9573
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9574
  __Pyx_GOTREF(__pyx_t_1);
 
9575
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9576
  __Pyx_GOTREF(__pyx_t_2);
 
9577
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9578
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9579
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
9580
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
 
9581
  __Pyx_GIVEREF(__pyx_t_2);
 
9582
  __pyx_t_2 = 0;
 
9583
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9584
  __Pyx_GOTREF(__pyx_t_2);
 
9585
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
9586
  __pyx_r = __pyx_t_2;
 
9587
  __pyx_t_2 = 0;
8486
9588
  goto __pyx_L0;
8487
9589
 
8488
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9590
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8489
9591
  goto __pyx_L0;
8490
9592
  __pyx_L1_error:;
8491
 
  Py_XDECREF(__pyx_1);
8492
 
  Py_XDECREF(__pyx_2);
 
9593
  __Pyx_XDECREF(__pyx_t_1);
 
9594
  __Pyx_XDECREF(__pyx_t_2);
8493
9595
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__str__");
8494
9596
  __pyx_r = NULL;
8495
9597
  __pyx_L0:;
 
9598
  __Pyx_XGIVEREF(__pyx_r);
 
9599
  __Pyx_FinishRefcountContext();
8496
9600
  return __pyx_r;
8497
9601
}
8498
9602
 
8499
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":866
 
9603
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":861
8500
9604
 *         return unicode(__parseBool(textOf(self._c_node)))
8501
9605
 * 
8502
9606
 *     def __repr__(self):             # <<<<<<<<<<<<<<
8506
9610
 
8507
9611
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___repr__(PyObject *__pyx_v_self); /*proto*/
8508
9612
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement___repr__(PyObject *__pyx_v_self) {
8509
 
  PyObject *__pyx_r;
8510
 
  PyObject *__pyx_1 = 0;
8511
 
  PyObject *__pyx_2 = 0;
 
9613
  PyObject *__pyx_r = NULL;
 
9614
  PyObject *__pyx_t_1 = NULL;
 
9615
  PyObject *__pyx_t_2 = NULL;
 
9616
  __Pyx_SetupRefcountContext("__repr__");
8512
9617
 
8513
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":867
 
9618
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":862
8514
9619
 * 
8515
9620
 *     def __repr__(self):
8516
9621
 *         return repr(__parseBool(textOf(self._c_node)))             # <<<<<<<<<<<<<<
8517
9622
 * 
8518
9623
 *     property pyval:
8519
9624
 */
8520
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8521
 
  __pyx_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8522
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8523
 
  __pyx_1 = PyObject_Repr(__pyx_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8524
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
8525
 
  __pyx_r = __pyx_1;
8526
 
  __pyx_1 = 0;
 
9625
  __Pyx_XDECREF(__pyx_r);
 
9626
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9627
  __Pyx_GOTREF(__pyx_t_1);
 
9628
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9629
  __Pyx_GOTREF(__pyx_t_2);
 
9630
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9631
  __pyx_t_1 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9632
  __Pyx_GOTREF(__pyx_t_1);
 
9633
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
9634
  __pyx_r = __pyx_t_1;
 
9635
  __pyx_t_1 = 0;
8527
9636
  goto __pyx_L0;
8528
9637
 
8529
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9638
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8530
9639
  goto __pyx_L0;
8531
9640
  __pyx_L1_error:;
8532
 
  Py_XDECREF(__pyx_1);
8533
 
  Py_XDECREF(__pyx_2);
 
9641
  __Pyx_XDECREF(__pyx_t_1);
 
9642
  __Pyx_XDECREF(__pyx_t_2);
8534
9643
  __Pyx_AddTraceback("lxml.objectify.BoolElement.__repr__");
8535
9644
  __pyx_r = NULL;
8536
9645
  __pyx_L0:;
 
9646
  __Pyx_XGIVEREF(__pyx_r);
 
9647
  __Pyx_FinishRefcountContext();
8537
9648
  return __pyx_r;
8538
9649
}
8539
9650
 
8540
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":870
 
9651
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":865
8541
9652
 * 
8542
9653
 *     property pyval:
8543
9654
 *         def __get__(self):             # <<<<<<<<<<<<<<
8547
9658
 
8548
9659
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_5pyval___get__(PyObject *__pyx_v_self); /*proto*/
8549
9660
static PyObject *__pyx_pf_4lxml_9objectify_11BoolElement_5pyval___get__(PyObject *__pyx_v_self) {
8550
 
  PyObject *__pyx_r;
8551
 
  PyObject *__pyx_1 = 0;
8552
 
  PyObject *__pyx_2 = 0;
 
9661
  PyObject *__pyx_r = NULL;
 
9662
  PyObject *__pyx_t_1 = NULL;
 
9663
  PyObject *__pyx_t_2 = NULL;
 
9664
  __Pyx_SetupRefcountContext("__get__");
8553
9665
 
8554
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":871
 
9666
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":866
8555
9667
 *     property pyval:
8556
9668
 *         def __get__(self):
8557
9669
 *             return __parseBool(textOf(self._c_node))             # <<<<<<<<<<<<<<
8558
9670
 * 
8559
9671
 * def __checkBool(s):
8560
9672
 */
8561
 
  __pyx_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8562
 
  __pyx_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8563
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8564
 
  __pyx_r = __pyx_2;
8565
 
  __pyx_2 = 0;
 
9673
  __Pyx_XDECREF(__pyx_r);
 
9674
  __pyx_t_1 = textOf(((struct __pyx_obj_4lxml_9objectify_BoolElement *)__pyx_v_self)->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9675
  __Pyx_GOTREF(__pyx_t_1);
 
9676
  __pyx_t_2 = __pyx_f_4lxml_9objectify___parseBool(__pyx_t_1, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9677
  __Pyx_GOTREF(__pyx_t_2);
 
9678
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9679
  __pyx_r = __pyx_t_2;
 
9680
  __pyx_t_2 = 0;
8566
9681
  goto __pyx_L0;
8567
9682
 
8568
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9683
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8569
9684
  goto __pyx_L0;
8570
9685
  __pyx_L1_error:;
8571
 
  Py_XDECREF(__pyx_1);
8572
 
  Py_XDECREF(__pyx_2);
 
9686
  __Pyx_XDECREF(__pyx_t_1);
 
9687
  __Pyx_XDECREF(__pyx_t_2);
8573
9688
  __Pyx_AddTraceback("lxml.objectify.BoolElement.pyval.__get__");
8574
9689
  __pyx_r = NULL;
8575
9690
  __pyx_L0:;
 
9691
  __Pyx_XGIVEREF(__pyx_r);
 
9692
  __Pyx_FinishRefcountContext();
8576
9693
  return __pyx_r;
8577
9694
}
8578
9695
 
8579
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":873
 
9696
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":868
8580
9697
 *             return __parseBool(textOf(self._c_node))
8581
9698
 * 
8582
9699
 * def __checkBool(s):             # <<<<<<<<<<<<<<
8587
9704
static PyObject *__pyx_pf_4lxml_9objectify___checkBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
8588
9705
static PyObject *__pyx_pf_4lxml_9objectify___checkBool(PyObject *__pyx_self, PyObject *__pyx_v_s) {
8589
9706
  int __pyx_v_value;
8590
 
  PyObject *__pyx_r;
8591
 
  int __pyx_1;
 
9707
  PyObject *__pyx_r = NULL;
 
9708
  int __pyx_t_1;
 
9709
  __Pyx_SetupRefcountContext("__checkBool");
8592
9710
  __pyx_self = __pyx_self;
8593
9711
 
8594
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":874
 
9712
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":869
8595
9713
 * 
8596
9714
 * def __checkBool(s):
8597
9715
 *     cdef int value = -1             # <<<<<<<<<<<<<<
8600
9718
 */
8601
9719
  __pyx_v_value = -1;
8602
9720
 
8603
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":875
 
9721
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":870
8604
9722
 * def __checkBool(s):
8605
9723
 *     cdef int value = -1
8606
9724
 *     if s is not None:             # <<<<<<<<<<<<<<
8607
9725
 *         value = __parseBoolAsInt(s)
8608
9726
 *     if value == -1:
8609
9727
 */
8610
 
  __pyx_1 = (__pyx_v_s != Py_None);
8611
 
  if (__pyx_1) {
 
9728
  __pyx_t_1 = (__pyx_v_s != Py_None);
 
9729
  if (__pyx_t_1) {
8612
9730
 
8613
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":876
 
9731
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":871
8614
9732
 *     cdef int value = -1
8615
9733
 *     if s is not None:
8616
9734
 *         value = __parseBoolAsInt(s)             # <<<<<<<<<<<<<<
8622
9740
  }
8623
9741
  __pyx_L5:;
8624
9742
 
8625
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":877
 
9743
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":872
8626
9744
 *     if s is not None:
8627
9745
 *         value = __parseBoolAsInt(s)
8628
9746
 *     if value == -1:             # <<<<<<<<<<<<<<
8629
9747
 *         raise ValueError
8630
9748
 * 
8631
9749
 */
8632
 
  __pyx_1 = (__pyx_v_value == -1);
8633
 
  if (__pyx_1) {
 
9750
  __pyx_t_1 = (__pyx_v_value == -1);
 
9751
  if (__pyx_t_1) {
8634
9752
 
8635
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":878
 
9753
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":873
8636
9754
 *         value = __parseBoolAsInt(s)
8637
9755
 *     if value == -1:
8638
9756
 *         raise ValueError             # <<<<<<<<<<<<<<
8640
9758
 * cpdef __parseBool(s):
8641
9759
 */
8642
9760
    __Pyx_Raise(__pyx_builtin_ValueError, 0, 0);
8643
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9761
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8644
9762
    goto __pyx_L6;
8645
9763
  }
8646
9764
  __pyx_L6:;
8647
9765
 
8648
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9766
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8649
9767
  goto __pyx_L0;
8650
9768
  __pyx_L1_error:;
8651
9769
  __Pyx_AddTraceback("lxml.objectify.__checkBool");
8652
9770
  __pyx_r = NULL;
8653
9771
  __pyx_L0:;
 
9772
  __Pyx_XGIVEREF(__pyx_r);
 
9773
  __Pyx_FinishRefcountContext();
8654
9774
  return __pyx_r;
8655
9775
}
8656
9776
 
8657
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":880
 
9777
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":875
8658
9778
 *         raise ValueError
8659
9779
 * 
8660
9780
 * cpdef __parseBool(s):             # <<<<<<<<<<<<<<
8665
9785
static PyObject *__pyx_pf_4lxml_9objectify___parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
8666
9786
static  PyObject *__pyx_f_4lxml_9objectify___parseBool(PyObject *__pyx_v_s, int __pyx_skip_dispatch) {
8667
9787
  int __pyx_v_value;
8668
 
  PyObject *__pyx_r;
8669
 
  int __pyx_1;
8670
 
  PyObject *__pyx_2 = 0;
8671
 
  PyObject *__pyx_t_1 = NULL;
 
9788
  PyObject *__pyx_r = NULL;
 
9789
  int __pyx_t_1;
 
9790
  PyObject *__pyx_t_2 = NULL;
 
9791
  __Pyx_SetupRefcountContext("__parseBool");
8672
9792
 
8673
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":882
 
9793
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":877
8674
9794
 * cpdef __parseBool(s):
8675
9795
 *     cdef int value
8676
9796
 *     if s is None:             # <<<<<<<<<<<<<<
8677
9797
 *         return False
8678
9798
 *     value = __parseBoolAsInt(s)
8679
9799
 */
8680
 
  __pyx_1 = (__pyx_v_s == Py_None);
8681
 
  if (__pyx_1) {
 
9800
  __pyx_t_1 = (__pyx_v_s == Py_None);
 
9801
  if (__pyx_t_1) {
8682
9802
 
8683
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":883
 
9803
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":878
8684
9804
 *     cdef int value
8685
9805
 *     if s is None:
8686
9806
 *         return False             # <<<<<<<<<<<<<<
8687
9807
 *     value = __parseBoolAsInt(s)
8688
9808
 *     if value == -1:
8689
9809
 */
8690
 
    __pyx_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8691
 
    __pyx_r = __pyx_2;
8692
 
    __pyx_2 = 0;
 
9810
    __Pyx_XDECREF(__pyx_r);
 
9811
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9812
    __Pyx_GOTREF(__pyx_t_2);
 
9813
    __pyx_r = __pyx_t_2;
 
9814
    __pyx_t_2 = 0;
8693
9815
    goto __pyx_L0;
8694
9816
    goto __pyx_L3;
8695
9817
  }
8696
9818
  __pyx_L3:;
8697
9819
 
8698
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":884
 
9820
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":879
8699
9821
 *     if s is None:
8700
9822
 *         return False
8701
9823
 *     value = __parseBoolAsInt(s)             # <<<<<<<<<<<<<<
8704
9826
 */
8705
9827
  __pyx_v_value = __pyx_f_4lxml_9objectify___parseBoolAsInt(__pyx_v_s);
8706
9828
 
8707
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":885
 
9829
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":880
8708
9830
 *         return False
8709
9831
 *     value = __parseBoolAsInt(s)
8710
9832
 *     if value == -1:             # <<<<<<<<<<<<<<
8711
9833
 *         raise ValueError, u"Invalid boolean value: '%s'" % s
8712
9834
 *     return <bint>value
8713
9835
 */
8714
 
  __pyx_1 = (__pyx_v_value == -1);
8715
 
  if (__pyx_1) {
 
9836
  __pyx_t_1 = (__pyx_v_value == -1);
 
9837
  if (__pyx_t_1) {
8716
9838
 
8717
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":886
 
9839
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":881
8718
9840
 *     value = __parseBoolAsInt(s)
8719
9841
 *     if value == -1:
8720
9842
 *         raise ValueError, u"Invalid boolean value: '%s'" % s             # <<<<<<<<<<<<<<
8721
9843
 *     return <bint>value
8722
9844
 * 
8723
9845
 */
8724
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_694), __pyx_v_s); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8725
 
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_1, 0);
8726
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8727
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9846
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_761), __pyx_v_s); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9847
    __Pyx_GOTREF(__pyx_t_2);
 
9848
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_2, 0);
 
9849
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
9850
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8728
9851
    goto __pyx_L4;
8729
9852
  }
8730
9853
  __pyx_L4:;
8731
9854
 
8732
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":887
 
9855
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":882
8733
9856
 *     if value == -1:
8734
9857
 *         raise ValueError, u"Invalid boolean value: '%s'" % s
8735
9858
 *     return <bint>value             # <<<<<<<<<<<<<<
8736
9859
 * 
8737
9860
 * cdef inline int __parseBoolAsInt(text):
8738
9861
 */
8739
 
  __pyx_2 = __Pyx_PyBool_FromLong(((int)__pyx_v_value)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8740
 
  __pyx_r = __pyx_2;
8741
 
  __pyx_2 = 0;
 
9862
  __Pyx_XDECREF(__pyx_r);
 
9863
  __pyx_t_2 = __Pyx_PyBool_FromLong(((int)__pyx_v_value)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9864
  __Pyx_GOTREF(__pyx_t_2);
 
9865
  __pyx_r = __pyx_t_2;
 
9866
  __pyx_t_2 = 0;
8742
9867
  goto __pyx_L0;
8743
9868
 
8744
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9869
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8745
9870
  goto __pyx_L0;
8746
9871
  __pyx_L1_error:;
8747
 
  Py_XDECREF(__pyx_2);
 
9872
  __Pyx_XDECREF(__pyx_t_2);
8748
9873
  __Pyx_AddTraceback("lxml.objectify.__parseBool");
8749
9874
  __pyx_r = 0;
8750
9875
  __pyx_L0:;
 
9876
  __Pyx_XGIVEREF(__pyx_r);
 
9877
  __Pyx_FinishRefcountContext();
8751
9878
  return __pyx_r;
8752
9879
}
8753
9880
 
8754
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":880
 
9881
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":875
8755
9882
 *         raise ValueError
8756
9883
 * 
8757
9884
 * cpdef __parseBool(s):             # <<<<<<<<<<<<<<
8761
9888
 
8762
9889
static PyObject *__pyx_pf_4lxml_9objectify___parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/
8763
9890
static PyObject *__pyx_pf_4lxml_9objectify___parseBool(PyObject *__pyx_self, PyObject *__pyx_v_s) {
8764
 
  PyObject *__pyx_r;
8765
 
  PyObject *__pyx_1 = 0;
 
9891
  PyObject *__pyx_r = NULL;
 
9892
  PyObject *__pyx_t_1 = NULL;
 
9893
  __Pyx_SetupRefcountContext("__parseBool");
8766
9894
  __pyx_self = __pyx_self;
8767
 
  __pyx_1 = __pyx_f_4lxml_9objectify___parseBool(__pyx_v_s, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8768
 
  __pyx_r = __pyx_1;
8769
 
  __pyx_1 = 0;
 
9895
  __Pyx_XDECREF(__pyx_r);
 
9896
  __pyx_t_1 = __pyx_f_4lxml_9objectify___parseBool(__pyx_v_s, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9897
  __Pyx_GOTREF(__pyx_t_1);
 
9898
  __pyx_r = __pyx_t_1;
 
9899
  __pyx_t_1 = 0;
8770
9900
  goto __pyx_L0;
8771
9901
 
8772
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
9902
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8773
9903
  goto __pyx_L0;
8774
9904
  __pyx_L1_error:;
8775
 
  Py_XDECREF(__pyx_1);
 
9905
  __Pyx_XDECREF(__pyx_t_1);
8776
9906
  __Pyx_AddTraceback("lxml.objectify.__parseBool");
8777
9907
  __pyx_r = NULL;
8778
9908
  __pyx_L0:;
 
9909
  __Pyx_XGIVEREF(__pyx_r);
 
9910
  __Pyx_FinishRefcountContext();
8779
9911
  return __pyx_r;
8780
9912
}
8781
9913
 
8782
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":889
 
9914
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":884
8783
9915
 *     return <bint>value
8784
9916
 * 
8785
9917
 * cdef inline int __parseBoolAsInt(text):             # <<<<<<<<<<<<<<
8786
 
 *     cdef char* c_str
8787
 
 *     if text == u'0':
 
9918
 *     if text == u'false':
 
9919
 *         return 0
8788
9920
 */
8789
9921
 
8790
9922
static INLINE int __pyx_f_4lxml_9objectify___parseBoolAsInt(PyObject *__pyx_v_text) {
8791
9923
  int __pyx_r;
8792
 
  PyObject *__pyx_1 = 0;
8793
 
  int __pyx_2;
8794
 
  PyObject *__pyx_3 = 0;
8795
 
  int __pyx_4;
8796
 
  Py_INCREF(__pyx_v_text);
8797
 
 
8798
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":891
8799
 
 * cdef inline int __parseBoolAsInt(text):
8800
 
 *     cdef char* c_str
8801
 
 *     if text == u'0':             # <<<<<<<<<<<<<<
8802
 
 *         return 0
8803
 
 *     elif text == u'1':
8804
 
 */
8805
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_695), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8806
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8807
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8808
 
  if (__pyx_2) {
8809
 
 
8810
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":892
8811
 
 *     cdef char* c_str
8812
 
 *     if text == u'0':
8813
 
 *         return 0             # <<<<<<<<<<<<<<
8814
 
 *     elif text == u'1':
8815
 
 *         return 1
8816
 
 */
8817
 
    __pyx_r = 0;
8818
 
    goto __pyx_L0;
8819
 
    goto __pyx_L3;
8820
 
  }
8821
 
 
8822
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":893
8823
 
 *     if text == u'0':
 
9924
  PyObject *__pyx_t_1 = NULL;
 
9925
  int __pyx_t_2;
 
9926
  __Pyx_SetupRefcountContext("__parseBoolAsInt");
 
9927
 
 
9928
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":885
 
9929
 * 
 
9930
 * cdef inline int __parseBoolAsInt(text):
 
9931
 *     if text == u'false':             # <<<<<<<<<<<<<<
 
9932
 *         return 0
 
9933
 *     elif text == u'true':
 
9934
 */
 
9935
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_762), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9936
  __Pyx_GOTREF(__pyx_t_1);
 
9937
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 885; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9938
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9939
  if (__pyx_t_2) {
 
9940
 
 
9941
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":886
 
9942
 * cdef inline int __parseBoolAsInt(text):
 
9943
 *     if text == u'false':
 
9944
 *         return 0             # <<<<<<<<<<<<<<
 
9945
 *     elif text == u'true':
 
9946
 *         return 1
 
9947
 */
 
9948
    __pyx_r = 0;
 
9949
    goto __pyx_L0;
 
9950
    goto __pyx_L3;
 
9951
  }
 
9952
 
 
9953
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":887
 
9954
 *     if text == u'false':
 
9955
 *         return 0
 
9956
 *     elif text == u'true':             # <<<<<<<<<<<<<<
 
9957
 *         return 1
 
9958
 *     elif text == u'0':
 
9959
 */
 
9960
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_763), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9961
  __Pyx_GOTREF(__pyx_t_1);
 
9962
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9963
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9964
  if (__pyx_t_2) {
 
9965
 
 
9966
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":888
 
9967
 *         return 0
 
9968
 *     elif text == u'true':
 
9969
 *         return 1             # <<<<<<<<<<<<<<
 
9970
 *     elif text == u'0':
 
9971
 *         return 0
 
9972
 */
 
9973
    __pyx_r = 1;
 
9974
    goto __pyx_L0;
 
9975
    goto __pyx_L3;
 
9976
  }
 
9977
 
 
9978
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":889
 
9979
 *     elif text == u'true':
 
9980
 *         return 1
 
9981
 *     elif text == u'0':             # <<<<<<<<<<<<<<
 
9982
 *         return 0
 
9983
 *     elif text == u'1':
 
9984
 */
 
9985
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_764), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9986
  __Pyx_GOTREF(__pyx_t_1);
 
9987
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
9988
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
9989
  if (__pyx_t_2) {
 
9990
 
 
9991
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":890
 
9992
 *         return 1
 
9993
 *     elif text == u'0':
 
9994
 *         return 0             # <<<<<<<<<<<<<<
 
9995
 *     elif text == u'1':
 
9996
 *         return 1
 
9997
 */
 
9998
    __pyx_r = 0;
 
9999
    goto __pyx_L0;
 
10000
    goto __pyx_L3;
 
10001
  }
 
10002
 
 
10003
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":891
 
10004
 *     elif text == u'0':
8824
10005
 *         return 0
8825
10006
 *     elif text == u'1':             # <<<<<<<<<<<<<<
8826
10007
 *         return 1
8827
 
 *     text = text.lower()
 
10008
 *     return -1
8828
10009
 */
8829
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_696), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8830
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8831
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8832
 
  if (__pyx_2) {
 
10010
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_765), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10011
  __Pyx_GOTREF(__pyx_t_1);
 
10012
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10013
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
10014
  if (__pyx_t_2) {
8833
10015
 
8834
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":894
 
10016
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":892
8835
10017
 *         return 0
8836
10018
 *     elif text == u'1':
8837
10019
 *         return 1             # <<<<<<<<<<<<<<
8838
 
 *     text = text.lower()
8839
 
 *     if text == u'f' or text == u'false':
 
10020
 *     return -1
 
10021
 * 
8840
10022
 */
8841
10023
    __pyx_r = 1;
8842
10024
    goto __pyx_L0;
8844
10026
  }
8845
10027
  __pyx_L3:;
8846
10028
 
8847
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":895
 
10029
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":893
8848
10030
 *     elif text == u'1':
8849
10031
 *         return 1
8850
 
 *     text = text.lower()             # <<<<<<<<<<<<<<
8851
 
 *     if text == u'f' or text == u'false':
8852
 
 *         return 0
8853
 
 */
8854
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_text, __pyx_kp_lower); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8855
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8856
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8857
 
  Py_DECREF(__pyx_v_text);
8858
 
  __pyx_v_text = __pyx_3;
8859
 
  __pyx_3 = 0;
8860
 
 
8861
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":896
8862
 
 *         return 1
8863
 
 *     text = text.lower()
8864
 
 *     if text == u'f' or text == u'false':             # <<<<<<<<<<<<<<
8865
 
 *         return 0
8866
 
 *     elif text == u't' or text == u'true':
8867
 
 */
8868
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_697), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8869
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8870
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8871
 
  if (!__pyx_2) {
8872
 
    __pyx_3 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_698), Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8873
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8874
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
8875
 
  }
8876
 
  if (__pyx_2) {
8877
 
 
8878
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":897
8879
 
 *     text = text.lower()
8880
 
 *     if text == u'f' or text == u'false':
8881
 
 *         return 0             # <<<<<<<<<<<<<<
8882
 
 *     elif text == u't' or text == u'true':
8883
 
 *         return 1
8884
 
 */
8885
 
    __pyx_r = 0;
8886
 
    goto __pyx_L0;
8887
 
    goto __pyx_L4;
8888
 
  }
8889
 
 
8890
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":898
8891
 
 *     if text == u'f' or text == u'false':
8892
 
 *         return 0
8893
 
 *     elif text == u't' or text == u'true':             # <<<<<<<<<<<<<<
8894
 
 *         return 1
8895
 
 *     else:
8896
 
 */
8897
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_699), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8898
 
  __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8899
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
8900
 
  if (!__pyx_4) {
8901
 
    __pyx_3 = PyObject_RichCompare(__pyx_v_text, ((PyObject *)__pyx_kp_700), Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8902
 
    __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8903
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
8904
 
  }
8905
 
  if (__pyx_4) {
8906
 
 
8907
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":899
8908
 
 *         return 0
8909
 
 *     elif text == u't' or text == u'true':
8910
 
 *         return 1             # <<<<<<<<<<<<<<
8911
 
 *     else:
8912
 
 *         return -1
8913
 
 */
8914
 
    __pyx_r = 1;
8915
 
    goto __pyx_L0;
8916
 
    goto __pyx_L4;
8917
 
  }
8918
 
  /*else*/ {
8919
 
 
8920
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":901
8921
 
 *         return 1
8922
 
 *     else:
8923
 
 *         return -1             # <<<<<<<<<<<<<<
 
10032
 *     return -1             # <<<<<<<<<<<<<<
8924
10033
 * 
8925
 
 * cdef inline _parseNumber(NumberElement element):
 
10034
 * cdef inline object _parseNumber(NumberElement element):
8926
10035
 */
8927
 
    __pyx_r = -1;
8928
 
    goto __pyx_L0;
8929
 
  }
8930
 
  __pyx_L4:;
 
10036
  __pyx_r = -1;
 
10037
  goto __pyx_L0;
8931
10038
 
8932
10039
  __pyx_r = 0;
8933
10040
  goto __pyx_L0;
8934
10041
  __pyx_L1_error:;
8935
 
  Py_XDECREF(__pyx_1);
8936
 
  Py_XDECREF(__pyx_3);
 
10042
  __Pyx_XDECREF(__pyx_t_1);
8937
10043
  __Pyx_WriteUnraisable("lxml.objectify.__parseBoolAsInt");
8938
10044
  __pyx_r = 0;
8939
10045
  __pyx_L0:;
8940
 
  Py_DECREF(__pyx_v_text);
 
10046
  __Pyx_FinishRefcountContext();
8941
10047
  return __pyx_r;
8942
10048
}
8943
10049
 
8944
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":903
8945
 
 *         return -1
 
10050
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":895
 
10051
 *     return -1
8946
10052
 * 
8947
 
 * cdef inline _parseNumber(NumberElement element):             # <<<<<<<<<<<<<<
 
10053
 * cdef inline object _parseNumber(NumberElement element):             # <<<<<<<<<<<<<<
8948
10054
 *     return element._parse_value(textOf(element._c_node))
8949
10055
 * 
8950
10056
 */
8951
10057
 
8952
10058
static INLINE PyObject *__pyx_f_4lxml_9objectify__parseNumber(struct __pyx_obj_4lxml_9objectify_NumberElement *__pyx_v_element) {
8953
 
  PyObject *__pyx_r;
8954
 
  PyObject *__pyx_1 = 0;
8955
 
  PyObject *__pyx_2 = 0;
 
10059
  PyObject *__pyx_r = NULL;
 
10060
  PyObject *__pyx_t_1 = NULL;
 
10061
  PyObject *__pyx_t_2 = NULL;
 
10062
  __Pyx_SetupRefcountContext("_parseNumber");
8956
10063
 
8957
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":904
 
10064
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":896
8958
10065
 * 
8959
 
 * cdef inline _parseNumber(NumberElement element):
 
10066
 * cdef inline object _parseNumber(NumberElement element):
8960
10067
 *     return element._parse_value(textOf(element._c_node))             # <<<<<<<<<<<<<<
8961
10068
 * 
8962
10069
 * cdef inline object _strValueOf(obj):
8963
10070
 */
8964
 
  __pyx_1 = textOf(__pyx_v_element->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8965
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8966
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
8967
 
  __pyx_1 = 0;
8968
 
  __pyx_1 = PyObject_Call(__pyx_v_element->_parse_value, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8969
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
8970
 
  __pyx_r = __pyx_1;
8971
 
  __pyx_1 = 0;
 
10071
  __Pyx_XDECREF(__pyx_r);
 
10072
  __pyx_t_1 = textOf(__pyx_v_element->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10073
  __Pyx_GOTREF(__pyx_t_1);
 
10074
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10075
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
10076
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
 
10077
  __Pyx_GIVEREF(__pyx_t_1);
 
10078
  __pyx_t_1 = 0;
 
10079
  __pyx_t_1 = PyObject_Call(__pyx_v_element->_parse_value, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10080
  __Pyx_GOTREF(__pyx_t_1);
 
10081
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
10082
  __pyx_r = __pyx_t_1;
 
10083
  __pyx_t_1 = 0;
8972
10084
  goto __pyx_L0;
8973
10085
 
8974
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
10086
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
8975
10087
  goto __pyx_L0;
8976
10088
  __pyx_L1_error:;
8977
 
  Py_XDECREF(__pyx_1);
8978
 
  Py_XDECREF(__pyx_2);
 
10089
  __Pyx_XDECREF(__pyx_t_1);
 
10090
  __Pyx_XDECREF(__pyx_t_2);
8979
10091
  __Pyx_AddTraceback("lxml.objectify._parseNumber");
8980
10092
  __pyx_r = 0;
8981
10093
  __pyx_L0:;
 
10094
  __Pyx_XGIVEREF(__pyx_r);
 
10095
  __Pyx_FinishRefcountContext();
8982
10096
  return __pyx_r;
8983
10097
}
8984
10098
 
8985
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":906
 
10099
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":898
8986
10100
 *     return element._parse_value(textOf(element._c_node))
8987
10101
 * 
8988
10102
 * cdef inline object _strValueOf(obj):             # <<<<<<<<<<<<<<
8991
10105
 */
8992
10106
 
8993
10107
static INLINE PyObject *__pyx_f_4lxml_9objectify__strValueOf(PyObject *__pyx_v_obj) {
8994
 
  PyObject *__pyx_r;
8995
 
  int __pyx_1;
8996
 
  PyObject *__pyx_2 = 0;
8997
 
  PyObject *__pyx_3 = 0;
 
10108
  PyObject *__pyx_r = NULL;
 
10109
  int __pyx_t_1;
 
10110
  PyObject *__pyx_t_2 = NULL;
 
10111
  PyObject *__pyx_t_3 = NULL;
 
10112
  __Pyx_SetupRefcountContext("_strValueOf");
8998
10113
 
8999
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":907
 
10114
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":899
9000
10115
 * 
9001
10116
 * cdef inline object _strValueOf(obj):
9002
10117
 *     if python._isString(obj):             # <<<<<<<<<<<<<<
9003
10118
 *         return obj
9004
10119
 *     if isinstance(obj, _Element):
9005
10120
 */
9006
 
  __pyx_1 = _isString(__pyx_v_obj);
9007
 
  if (__pyx_1) {
 
10121
  __pyx_t_1 = _isString(__pyx_v_obj);
 
10122
  if (__pyx_t_1) {
9008
10123
 
9009
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":908
 
10124
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":900
9010
10125
 * cdef inline object _strValueOf(obj):
9011
10126
 *     if python._isString(obj):
9012
10127
 *         return obj             # <<<<<<<<<<<<<<
9013
10128
 *     if isinstance(obj, _Element):
9014
10129
 *         return textOf((<_Element>obj)._c_node) or u''
9015
10130
 */
9016
 
    Py_INCREF(__pyx_v_obj);
 
10131
    __Pyx_XDECREF(__pyx_r);
 
10132
    __Pyx_INCREF(__pyx_v_obj);
9017
10133
    __pyx_r = __pyx_v_obj;
9018
10134
    goto __pyx_L0;
9019
10135
    goto __pyx_L3;
9020
10136
  }
9021
10137
  __pyx_L3:;
9022
10138
 
9023
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":909
 
10139
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":901
9024
10140
 *     if python._isString(obj):
9025
10141
 *         return obj
9026
10142
 *     if isinstance(obj, _Element):             # <<<<<<<<<<<<<<
9027
10143
 *         return textOf((<_Element>obj)._c_node) or u''
9028
10144
 *     if obj is None:
9029
10145
 */
9030
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_obj, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
9031
 
  if (__pyx_1) {
 
10146
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_obj, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
10147
  if (__pyx_t_1) {
9032
10148
 
9033
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":910
 
10149
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":902
9034
10150
 *         return obj
9035
10151
 *     if isinstance(obj, _Element):
9036
10152
 *         return textOf((<_Element>obj)._c_node) or u''             # <<<<<<<<<<<<<<
9037
10153
 *     if obj is None:
9038
10154
 *         return u''
9039
10155
 */
9040
 
    __pyx_2 = textOf(((struct LxmlElement *)__pyx_v_obj)->_c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9041
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9042
 
    if (!__pyx_1) {
9043
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
9044
 
      __pyx_2 = ((PyObject *)__pyx_kp_701);
9045
 
      Py_INCREF(__pyx_2);
 
10156
    __Pyx_XDECREF(__pyx_r);
 
10157
    __pyx_t_2 = textOf(((struct LxmlElement *)__pyx_v_obj)->_c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10158
    __Pyx_GOTREF(__pyx_t_2);
 
10159
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10160
    if (!__pyx_t_1) {
 
10161
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
10162
      __Pyx_INCREF(((PyObject *)__pyx_kp_766));
 
10163
      __pyx_t_3 = __pyx_kp_766;
 
10164
    } else {
 
10165
      __pyx_t_3 = __pyx_t_2;
 
10166
      __pyx_t_2 = 0;
9046
10167
    }
9047
 
    __pyx_r = __pyx_2;
9048
 
    __pyx_2 = 0;
 
10168
    __pyx_r = __pyx_t_3;
 
10169
    __pyx_t_3 = 0;
9049
10170
    goto __pyx_L0;
9050
10171
    goto __pyx_L4;
9051
10172
  }
9052
10173
  __pyx_L4:;
9053
10174
 
9054
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":911
 
10175
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":903
9055
10176
 *     if isinstance(obj, _Element):
9056
10177
 *         return textOf((<_Element>obj)._c_node) or u''
9057
10178
 *     if obj is None:             # <<<<<<<<<<<<<<
9058
10179
 *         return u''
9059
10180
 *     return unicode(obj)
9060
10181
 */
9061
 
  __pyx_1 = (__pyx_v_obj == Py_None);
9062
 
  if (__pyx_1) {
 
10182
  __pyx_t_1 = (__pyx_v_obj == Py_None);
 
10183
  if (__pyx_t_1) {
9063
10184
 
9064
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":912
 
10185
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":904
9065
10186
 *         return textOf((<_Element>obj)._c_node) or u''
9066
10187
 *     if obj is None:
9067
10188
 *         return u''             # <<<<<<<<<<<<<<
9068
10189
 *     return unicode(obj)
9069
10190
 * 
9070
10191
 */
9071
 
    Py_INCREF(((PyObject *)__pyx_kp_702));
9072
 
    __pyx_r = ((PyObject *)__pyx_kp_702);
 
10192
    __Pyx_XDECREF(__pyx_r);
 
10193
    __Pyx_INCREF(((PyObject *)__pyx_kp_767));
 
10194
    __pyx_r = ((PyObject *)__pyx_kp_767);
9073
10195
    goto __pyx_L0;
9074
10196
    goto __pyx_L5;
9075
10197
  }
9076
10198
  __pyx_L5:;
9077
10199
 
9078
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":913
 
10200
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":905
9079
10201
 *     if obj is None:
9080
10202
 *         return u''
9081
10203
 *     return unicode(obj)             # <<<<<<<<<<<<<<
9082
10204
 * 
9083
10205
 * cdef inline object _numericValueOf(obj):
9084
10206
 */
9085
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9086
 
  Py_INCREF(__pyx_v_obj);
9087
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_obj);
9088
 
  __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9089
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
9090
 
  __pyx_r = __pyx_3;
9091
 
  __pyx_3 = 0;
 
10207
  __Pyx_XDECREF(__pyx_r);
 
10208
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10209
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
10210
  __Pyx_INCREF(__pyx_v_obj);
 
10211
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_obj);
 
10212
  __Pyx_GIVEREF(__pyx_v_obj);
 
10213
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10214
  __Pyx_GOTREF(__pyx_t_2);
 
10215
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
10216
  __pyx_r = __pyx_t_2;
 
10217
  __pyx_t_2 = 0;
9092
10218
  goto __pyx_L0;
9093
10219
 
9094
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
10220
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9095
10221
  goto __pyx_L0;
9096
10222
  __pyx_L1_error:;
9097
 
  Py_XDECREF(__pyx_2);
9098
 
  Py_XDECREF(__pyx_3);
 
10223
  __Pyx_XDECREF(__pyx_t_2);
 
10224
  __Pyx_XDECREF(__pyx_t_3);
9099
10225
  __Pyx_AddTraceback("lxml.objectify._strValueOf");
9100
10226
  __pyx_r = 0;
9101
10227
  __pyx_L0:;
 
10228
  __Pyx_XGIVEREF(__pyx_r);
 
10229
  __Pyx_FinishRefcountContext();
9102
10230
  return __pyx_r;
9103
10231
}
9104
10232
 
9105
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":915
 
10233
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":907
9106
10234
 *     return unicode(obj)
9107
10235
 * 
9108
10236
 * cdef inline object _numericValueOf(obj):             # <<<<<<<<<<<<<<
9111
10239
 */
9112
10240
 
9113
10241
static INLINE PyObject *__pyx_f_4lxml_9objectify__numericValueOf(PyObject *__pyx_v_obj) {
9114
 
  PyObject *__pyx_r;
9115
 
  int __pyx_1;
9116
 
  PyObject *__pyx_2 = 0;
 
10242
  PyObject *__pyx_r = NULL;
 
10243
  int __pyx_t_1;
 
10244
  PyObject *__pyx_t_2 = NULL;
 
10245
  __Pyx_SetupRefcountContext("_numericValueOf");
9117
10246
 
9118
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":916
 
10247
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":908
9119
10248
 * 
9120
10249
 * cdef inline object _numericValueOf(obj):
9121
10250
 *     if isinstance(obj, NumberElement):             # <<<<<<<<<<<<<<
9122
10251
 *         return _parseNumber(<NumberElement>obj)
9123
10252
 *     elif hasattr(obj, u'pyval'):
9124
10253
 */
9125
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v_obj, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NumberElement))); 
9126
 
  if (__pyx_1) {
 
10254
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v_obj, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NumberElement))); 
 
10255
  if (__pyx_t_1) {
9127
10256
 
9128
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":917
 
10257
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":909
9129
10258
 * cdef inline object _numericValueOf(obj):
9130
10259
 *     if isinstance(obj, NumberElement):
9131
10260
 *         return _parseNumber(<NumberElement>obj)             # <<<<<<<<<<<<<<
9132
10261
 *     elif hasattr(obj, u'pyval'):
9133
10262
 *         # not always numeric, but Python will raise the right exception
9134
10263
 */
9135
 
    __pyx_2 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_obj)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9136
 
    __pyx_r = __pyx_2;
9137
 
    __pyx_2 = 0;
 
10264
    __Pyx_XDECREF(__pyx_r);
 
10265
    __pyx_t_2 = __pyx_f_4lxml_9objectify__parseNumber(((struct __pyx_obj_4lxml_9objectify_NumberElement *)__pyx_v_obj)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10266
    __Pyx_GOTREF(__pyx_t_2);
 
10267
    __pyx_r = __pyx_t_2;
 
10268
    __pyx_t_2 = 0;
9138
10269
    goto __pyx_L0;
9139
10270
    goto __pyx_L3;
9140
10271
  }
9141
10272
 
9142
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":918
 
10273
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":910
9143
10274
 *     if isinstance(obj, NumberElement):
9144
10275
 *         return _parseNumber(<NumberElement>obj)
9145
10276
 *     elif hasattr(obj, u'pyval'):             # <<<<<<<<<<<<<<
9146
10277
 *         # not always numeric, but Python will raise the right exception
9147
10278
 *         return obj.pyval
9148
10279
 */
9149
 
  __pyx_1 = PyObject_HasAttr(__pyx_v_obj, ((PyObject *)__pyx_kp_703)); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9150
 
  if (__pyx_1) {
 
10280
  __pyx_t_1 = PyObject_HasAttr(__pyx_v_obj, ((PyObject *)__pyx_kp_768)); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10281
  if (__pyx_t_1) {
9151
10282
 
9152
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":920
 
10283
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":912
9153
10284
 *     elif hasattr(obj, u'pyval'):
9154
10285
 *         # not always numeric, but Python will raise the right exception
9155
10286
 *         return obj.pyval             # <<<<<<<<<<<<<<
9156
10287
 *     return obj
9157
10288
 * 
9158
10289
 */
9159
 
    __pyx_2 = PyObject_GetAttr(__pyx_v_obj, __pyx_kp_pyval); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9160
 
    __pyx_r = __pyx_2;
9161
 
    __pyx_2 = 0;
 
10290
    __Pyx_XDECREF(__pyx_r);
 
10291
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_obj, __pyx_kp_pyval); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10292
    __Pyx_GOTREF(__pyx_t_2);
 
10293
    __pyx_r = __pyx_t_2;
 
10294
    __pyx_t_2 = 0;
9162
10295
    goto __pyx_L0;
9163
10296
    goto __pyx_L3;
9164
10297
  }
9165
10298
  __pyx_L3:;
9166
10299
 
9167
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":921
 
10300
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":913
9168
10301
 *         # not always numeric, but Python will raise the right exception
9169
10302
 *         return obj.pyval
9170
10303
 *     return obj             # <<<<<<<<<<<<<<
9171
10304
 * 
9172
10305
 * cdef inline _richcmpPyvals(left, right, int op):
9173
10306
 */
9174
 
  Py_INCREF(__pyx_v_obj);
 
10307
  __Pyx_XDECREF(__pyx_r);
 
10308
  __Pyx_INCREF(__pyx_v_obj);
9175
10309
  __pyx_r = __pyx_v_obj;
9176
10310
  goto __pyx_L0;
9177
10311
 
9178
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
10312
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9179
10313
  goto __pyx_L0;
9180
10314
  __pyx_L1_error:;
9181
 
  Py_XDECREF(__pyx_2);
 
10315
  __Pyx_XDECREF(__pyx_t_2);
9182
10316
  __Pyx_AddTraceback("lxml.objectify._numericValueOf");
9183
10317
  __pyx_r = 0;
9184
10318
  __pyx_L0:;
 
10319
  __Pyx_XGIVEREF(__pyx_r);
 
10320
  __Pyx_FinishRefcountContext();
9185
10321
  return __pyx_r;
9186
10322
}
9187
10323
 
9188
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":923
 
10324
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":915
9189
10325
 *     return obj
9190
10326
 * 
9191
10327
 * cdef inline _richcmpPyvals(left, right, int op):             # <<<<<<<<<<<<<<
9194
10330
 */
9195
10331
 
9196
10332
static INLINE PyObject *__pyx_f_4lxml_9objectify__richcmpPyvals(PyObject *__pyx_v_left, PyObject *__pyx_v_right, int __pyx_v_op) {
9197
 
  PyObject *__pyx_r;
9198
 
  PyObject *__pyx_1 = 0;
9199
 
  Py_INCREF(__pyx_v_left);
9200
 
  Py_INCREF(__pyx_v_right);
 
10333
  PyObject *__pyx_r = NULL;
 
10334
  PyObject *__pyx_t_1 = NULL;
 
10335
  __Pyx_SetupRefcountContext("_richcmpPyvals");
 
10336
  __Pyx_INCREF(__pyx_v_left);
 
10337
  __Pyx_INCREF(__pyx_v_right);
9201
10338
 
9202
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":924
 
10339
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":916
9203
10340
 * 
9204
10341
 * cdef inline _richcmpPyvals(left, right, int op):
9205
10342
 *     left  = getattr3(left,  u'pyval', left)             # <<<<<<<<<<<<<<
9206
10343
 *     right = getattr3(right, u'pyval', right)
9207
10344
 *     return python.PyObject_RichCompare(left, right, op)
9208
10345
 */
9209
 
  __pyx_1 = __Pyx_GetAttr3(__pyx_v_left, ((PyObject *)__pyx_kp_704), __pyx_v_left); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9210
 
  Py_DECREF(__pyx_v_left);
9211
 
  __pyx_v_left = __pyx_1;
9212
 
  __pyx_1 = 0;
 
10346
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_left, ((PyObject *)__pyx_kp_769), __pyx_v_left); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10347
  __Pyx_GOTREF(__pyx_t_1);
 
10348
  __Pyx_DECREF(__pyx_v_left);
 
10349
  __pyx_v_left = __pyx_t_1;
 
10350
  __pyx_t_1 = 0;
9213
10351
 
9214
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":925
 
10352
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":917
9215
10353
 * cdef inline _richcmpPyvals(left, right, int op):
9216
10354
 *     left  = getattr3(left,  u'pyval', left)
9217
10355
 *     right = getattr3(right, u'pyval', right)             # <<<<<<<<<<<<<<
9218
10356
 *     return python.PyObject_RichCompare(left, right, op)
9219
10357
 * 
9220
10358
 */
9221
 
  __pyx_1 = __Pyx_GetAttr3(__pyx_v_right, ((PyObject *)__pyx_kp_705), __pyx_v_right); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9222
 
  Py_DECREF(__pyx_v_right);
9223
 
  __pyx_v_right = __pyx_1;
9224
 
  __pyx_1 = 0;
 
10359
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_right, ((PyObject *)__pyx_kp_770), __pyx_v_right); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10360
  __Pyx_GOTREF(__pyx_t_1);
 
10361
  __Pyx_DECREF(__pyx_v_right);
 
10362
  __pyx_v_right = __pyx_t_1;
 
10363
  __pyx_t_1 = 0;
9225
10364
 
9226
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":926
 
10365
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":918
9227
10366
 *     left  = getattr3(left,  u'pyval', left)
9228
10367
 *     right = getattr3(right, u'pyval', right)
9229
10368
 *     return python.PyObject_RichCompare(left, right, op)             # <<<<<<<<<<<<<<
9230
10369
 * 
9231
10370
 * 
9232
10371
 */
9233
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_left, __pyx_v_right, __pyx_v_op); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9234
 
  __pyx_r = __pyx_1;
9235
 
  __pyx_1 = 0;
 
10372
  __Pyx_XDECREF(__pyx_r);
 
10373
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_left, __pyx_v_right, __pyx_v_op); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10374
  __Pyx_GOTREF(__pyx_t_1);
 
10375
  __pyx_r = __pyx_t_1;
 
10376
  __pyx_t_1 = 0;
9236
10377
  goto __pyx_L0;
9237
10378
 
9238
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
10379
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9239
10380
  goto __pyx_L0;
9240
10381
  __pyx_L1_error:;
9241
 
  Py_XDECREF(__pyx_1);
 
10382
  __Pyx_XDECREF(__pyx_t_1);
9242
10383
  __Pyx_AddTraceback("lxml.objectify._richcmpPyvals");
9243
10384
  __pyx_r = 0;
9244
10385
  __pyx_L0:;
9245
 
  Py_DECREF(__pyx_v_left);
9246
 
  Py_DECREF(__pyx_v_right);
 
10386
  __Pyx_DECREF(__pyx_v_left);
 
10387
  __Pyx_DECREF(__pyx_v_right);
 
10388
  __Pyx_XGIVEREF(__pyx_r);
 
10389
  __Pyx_FinishRefcountContext();
9247
10390
  return __pyx_r;
9248
10391
}
9249
10392
 
9250
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":954
 
10393
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":946
9251
10394
 *     cdef object _type
9252
 
 *     cdef object _schema_types
 
10395
 *     cdef list _schema_types
9253
10396
 *     def __init__(self, name, type_check, type_class, stringify=None):             # <<<<<<<<<<<<<<
9254
10397
 *         if python.PyString_Check(name):
9255
10398
 *             name = python.PyUnicode_FromEncodedObject(name, 'ASCII', NULL)
9262
10405
  PyObject *__pyx_v_type_class = 0;
9263
10406
  PyObject *__pyx_v_stringify = 0;
9264
10407
  int __pyx_r;
9265
 
  int __pyx_1;
9266
 
  PyObject *__pyx_2 = 0;
9267
 
  int __pyx_3;
9268
 
  int __pyx_4;
 
10408
  int __pyx_t_1;
 
10409
  PyObject *__pyx_t_2 = NULL;
 
10410
  int __pyx_t_3;
 
10411
  int __pyx_t_4;
9269
10412
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_name,&__pyx_kp_type_check,&__pyx_kp_type_class,&__pyx_kp_stringify,0};
9270
 
  __pyx_v_stringify = Py_None;
 
10413
  __Pyx_SetupRefcountContext("__init__");
9271
10414
  if (unlikely(__pyx_kwds)) {
 
10415
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
9272
10416
    PyObject* values[4] = {0,0,0,0};
9273
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
10417
    values[3] = Py_None;
9274
10418
    switch (PyTuple_GET_SIZE(__pyx_args)) {
9275
10419
      case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
9276
10420
      case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
9288
10432
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_kp_type_check);
9289
10433
      if (likely(values[1])) kw_args--;
9290
10434
      else {
9291
 
        __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10435
        __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9292
10436
      }
9293
10437
      case  2:
9294
10438
      values[2] = PyDict_GetItem(__pyx_kwds, __pyx_kp_type_class);
9295
10439
      if (likely(values[2])) kw_args--;
9296
10440
      else {
9297
 
        __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10441
        __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10442
      }
 
10443
      case  3:
 
10444
      if (kw_args > 1) {
 
10445
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_stringify);
 
10446
        if (unlikely(value)) { values[3] = value; kw_args--; }
9298
10447
      }
9299
10448
    }
9300
10449
    if (unlikely(kw_args > 0)) {
9301
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10450
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9302
10451
    }
9303
10452
    __pyx_v_name = values[0];
9304
10453
    __pyx_v_type_check = values[1];
9305
10454
    __pyx_v_type_class = values[2];
9306
 
    if (values[3]) {
9307
 
      __pyx_v_stringify = values[3];
9308
 
    }
 
10455
    __pyx_v_stringify = values[3];
9309
10456
  } else {
 
10457
    __pyx_v_stringify = Py_None;
9310
10458
    switch (PyTuple_GET_SIZE(__pyx_args)) {
9311
10459
      case  4:
9312
10460
      __pyx_v_stringify = PyTuple_GET_ITEM(__pyx_args, 3);
9320
10468
  }
9321
10469
  goto __pyx_L4_argument_unpacking_done;
9322
10470
  __pyx_L5_argtuple_error:;
9323
 
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10471
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9324
10472
  __pyx_L3_error:;
9325
10473
  __Pyx_AddTraceback("lxml.objectify.PyType.__init__");
9326
10474
  return -1;
9327
10475
  __pyx_L4_argument_unpacking_done:;
9328
 
  Py_INCREF(__pyx_v_name);
9329
 
  Py_INCREF(__pyx_v_stringify);
 
10476
  __Pyx_INCREF(__pyx_v_name);
 
10477
  __Pyx_INCREF(__pyx_v_stringify);
9330
10478
 
9331
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":955
9332
 
 *     cdef object _schema_types
 
10479
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":947
 
10480
 *     cdef list _schema_types
9333
10481
 *     def __init__(self, name, type_check, type_class, stringify=None):
9334
10482
 *         if python.PyString_Check(name):             # <<<<<<<<<<<<<<
9335
10483
 *             name = python.PyUnicode_FromEncodedObject(name, 'ASCII', NULL)
9336
10484
 *         elif not python.PyUnicode_Check(name):
9337
10485
 */
9338
 
  __pyx_1 = PyString_Check(__pyx_v_name);
9339
 
  if (__pyx_1) {
 
10486
  __pyx_t_1 = PyString_Check(__pyx_v_name);
 
10487
  if (__pyx_t_1) {
9340
10488
 
9341
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":956
 
10489
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":948
9342
10490
 *     def __init__(self, name, type_check, type_class, stringify=None):
9343
10491
 *         if python.PyString_Check(name):
9344
10492
 *             name = python.PyUnicode_FromEncodedObject(name, 'ASCII', NULL)             # <<<<<<<<<<<<<<
9345
10493
 *         elif not python.PyUnicode_Check(name):
9346
10494
 *             raise TypeError, u"Type name must be a string"
9347
10495
 */
9348
 
    __pyx_2 = PyUnicode_FromEncodedObject(__pyx_v_name, __pyx_k_706, NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9349
 
    Py_DECREF(__pyx_v_name);
9350
 
    __pyx_v_name = __pyx_2;
9351
 
    __pyx_2 = 0;
 
10496
    __pyx_t_2 = PyUnicode_FromEncodedObject(__pyx_v_name, __pyx_k_771, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10497
    __Pyx_GOTREF(__pyx_t_2);
 
10498
    __Pyx_DECREF(__pyx_v_name);
 
10499
    __pyx_v_name = __pyx_t_2;
 
10500
    __pyx_t_2 = 0;
9352
10501
    goto __pyx_L6;
9353
10502
  }
9354
10503
 
9355
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":957
 
10504
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":949
9356
10505
 *         if python.PyString_Check(name):
9357
10506
 *             name = python.PyUnicode_FromEncodedObject(name, 'ASCII', NULL)
9358
10507
 *         elif not python.PyUnicode_Check(name):             # <<<<<<<<<<<<<<
9359
10508
 *             raise TypeError, u"Type name must be a string"
9360
10509
 *         if type_check is not None and not callable(type_check):
9361
10510
 */
9362
 
  __pyx_3 = (!PyUnicode_Check(__pyx_v_name));
9363
 
  if (__pyx_3) {
 
10511
  __pyx_t_1 = (!PyUnicode_Check(__pyx_v_name));
 
10512
  if (__pyx_t_1) {
9364
10513
 
9365
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":958
 
10514
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":950
9366
10515
 *             name = python.PyUnicode_FromEncodedObject(name, 'ASCII', NULL)
9367
10516
 *         elif not python.PyUnicode_Check(name):
9368
10517
 *             raise TypeError, u"Type name must be a string"             # <<<<<<<<<<<<<<
9369
10518
 *         if type_check is not None and not callable(type_check):
9370
10519
 *             raise TypeError, u"Type check function must be callable (or None)"
9371
10520
 */
9372
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_707), 0);
9373
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10521
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_772), 0);
 
10522
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9374
10523
    goto __pyx_L6;
9375
10524
  }
9376
10525
  __pyx_L6:;
9377
10526
 
9378
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":959
 
10527
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":951
9379
10528
 *         elif not python.PyUnicode_Check(name):
9380
10529
 *             raise TypeError, u"Type name must be a string"
9381
10530
 *         if type_check is not None and not callable(type_check):             # <<<<<<<<<<<<<<
9382
10531
 *             raise TypeError, u"Type check function must be callable (or None)"
9383
10532
 *         if name != TREE_PYTYPE_NAME and \
9384
10533
 */
9385
 
  __pyx_3 = (__pyx_v_type_check != Py_None);
9386
 
  if (__pyx_3) {
9387
 
    __pyx_3 = (!PyCallable_Check(__pyx_v_type_check));
 
10534
  __pyx_t_1 = (__pyx_v_type_check != Py_None);
 
10535
  if (__pyx_t_1) {
 
10536
    __pyx_t_3 = (!PyCallable_Check(__pyx_v_type_check));
 
10537
  } else {
 
10538
    __pyx_t_3 = __pyx_t_1;
9388
10539
  }
9389
 
  if (__pyx_3) {
 
10540
  if (__pyx_t_3) {
9390
10541
 
9391
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":960
 
10542
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":952
9392
10543
 *             raise TypeError, u"Type name must be a string"
9393
10544
 *         if type_check is not None and not callable(type_check):
9394
10545
 *             raise TypeError, u"Type check function must be callable (or None)"             # <<<<<<<<<<<<<<
9395
10546
 *         if name != TREE_PYTYPE_NAME and \
9396
10547
 *                not issubclass(type_class, ObjectifiedDataElement):
9397
10548
 */
9398
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_708), 0);
9399
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10549
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_773), 0);
 
10550
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9400
10551
    goto __pyx_L7;
9401
10552
  }
9402
10553
  __pyx_L7:;
9403
10554
 
9404
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":961
 
10555
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":953
9405
10556
 *         if type_check is not None and not callable(type_check):
9406
10557
 *             raise TypeError, u"Type check function must be callable (or None)"
9407
10558
 *         if name != TREE_PYTYPE_NAME and \             # <<<<<<<<<<<<<<
9408
10559
 *                not issubclass(type_class, ObjectifiedDataElement):
9409
10560
 *             raise TypeError, \
9410
10561
 */
9411
 
  __pyx_2 = PyObject_RichCompare(__pyx_v_name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_NE); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9412
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9413
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
9414
 
  if (__pyx_3) {
 
10562
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10563
  __Pyx_GOTREF(__pyx_t_2);
 
10564
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10565
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
10566
  if (__pyx_t_3) {
9415
10567
 
9416
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":962
 
10568
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":954
9417
10569
 *             raise TypeError, u"Type check function must be callable (or None)"
9418
10570
 *         if name != TREE_PYTYPE_NAME and \
9419
10571
 *                not issubclass(type_class, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
9420
10572
 *             raise TypeError, \
9421
10573
 *                 u"Data classes must inherit from ObjectifiedDataElement"
9422
10574
 */
9423
 
    __pyx_4 = PyObject_IsSubclass(__pyx_v_type_class, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); if (unlikely(__pyx_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9424
 
    __pyx_3 = (!__pyx_4);
 
10575
    __pyx_t_1 = PyObject_IsSubclass(__pyx_v_type_class, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10576
    __pyx_t_4 = (!__pyx_t_1);
 
10577
    __pyx_t_1 = __pyx_t_4;
 
10578
  } else {
 
10579
    __pyx_t_1 = __pyx_t_3;
9425
10580
  }
9426
 
  if (__pyx_3) {
 
10581
  if (__pyx_t_1) {
9427
10582
 
9428
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":964
 
10583
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":956
9429
10584
 *                not issubclass(type_class, ObjectifiedDataElement):
9430
10585
 *             raise TypeError, \
9431
10586
 *                 u"Data classes must inherit from ObjectifiedDataElement"             # <<<<<<<<<<<<<<
9432
10587
 *         self.name  = name
9433
10588
 *         self._type = type_class
9434
10589
 */
9435
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_709), 0);
9436
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10590
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_774), 0);
 
10591
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9437
10592
    goto __pyx_L8;
9438
10593
  }
9439
10594
  __pyx_L8:;
9440
10595
 
9441
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":965
 
10596
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":957
9442
10597
 *             raise TypeError, \
9443
10598
 *                 u"Data classes must inherit from ObjectifiedDataElement"
9444
10599
 *         self.name  = name             # <<<<<<<<<<<<<<
9445
10600
 *         self._type = type_class
9446
10601
 *         self.type_check = type_check
9447
10602
 */
9448
 
  Py_INCREF(__pyx_v_name);
9449
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
10603
  __Pyx_INCREF(__pyx_v_name);
 
10604
  __Pyx_GIVEREF(__pyx_v_name);
 
10605
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
10606
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
9450
10607
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name = __pyx_v_name;
9451
10608
 
9452
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":966
 
10609
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":958
9453
10610
 *                 u"Data classes must inherit from ObjectifiedDataElement"
9454
10611
 *         self.name  = name
9455
10612
 *         self._type = type_class             # <<<<<<<<<<<<<<
9456
10613
 *         self.type_check = type_check
9457
10614
 *         if stringify is None:
9458
10615
 */
9459
 
  Py_INCREF(__pyx_v_type_class);
9460
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type);
 
10616
  __Pyx_INCREF(__pyx_v_type_class);
 
10617
  __Pyx_GIVEREF(__pyx_v_type_class);
 
10618
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type);
 
10619
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type);
9461
10620
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type = __pyx_v_type_class;
9462
10621
 
9463
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":967
 
10622
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":959
9464
10623
 *         self.name  = name
9465
10624
 *         self._type = type_class
9466
10625
 *         self.type_check = type_check             # <<<<<<<<<<<<<<
9467
10626
 *         if stringify is None:
9468
10627
 *             stringify = unicode
9469
10628
 */
9470
 
  Py_INCREF(__pyx_v_type_check);
9471
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10629
  __Pyx_INCREF(__pyx_v_type_check);
 
10630
  __Pyx_GIVEREF(__pyx_v_type_check);
 
10631
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10632
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
9472
10633
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check = __pyx_v_type_check;
9473
10634
 
9474
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":968
 
10635
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":960
9475
10636
 *         self._type = type_class
9476
10637
 *         self.type_check = type_check
9477
10638
 *         if stringify is None:             # <<<<<<<<<<<<<<
9478
10639
 *             stringify = unicode
9479
10640
 *         self.stringify = stringify
9480
10641
 */
9481
 
  __pyx_4 = (__pyx_v_stringify == Py_None);
9482
 
  if (__pyx_4) {
 
10642
  __pyx_t_1 = (__pyx_v_stringify == Py_None);
 
10643
  if (__pyx_t_1) {
9483
10644
 
9484
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":969
 
10645
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":961
9485
10646
 *         self.type_check = type_check
9486
10647
 *         if stringify is None:
9487
10648
 *             stringify = unicode             # <<<<<<<<<<<<<<
9488
10649
 *         self.stringify = stringify
9489
10650
 *         self._schema_types = []
9490
10651
 */
9491
 
    Py_INCREF(((PyObject *)((PyObject*)&PyUnicode_Type)));
9492
 
    Py_DECREF(__pyx_v_stringify);
 
10652
    __Pyx_INCREF(((PyObject *)((PyObject*)&PyUnicode_Type)));
 
10653
    __Pyx_DECREF(__pyx_v_stringify);
9493
10654
    __pyx_v_stringify = ((PyObject *)((PyObject*)&PyUnicode_Type));
9494
10655
    goto __pyx_L9;
9495
10656
  }
9496
10657
  __pyx_L9:;
9497
10658
 
9498
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":970
 
10659
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":962
9499
10660
 *         if stringify is None:
9500
10661
 *             stringify = unicode
9501
10662
 *         self.stringify = stringify             # <<<<<<<<<<<<<<
9502
10663
 *         self._schema_types = []
9503
10664
 * 
9504
10665
 */
9505
 
  Py_INCREF(__pyx_v_stringify);
9506
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->stringify);
 
10666
  __Pyx_INCREF(__pyx_v_stringify);
 
10667
  __Pyx_GIVEREF(__pyx_v_stringify);
 
10668
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->stringify);
 
10669
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->stringify);
9507
10670
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->stringify = __pyx_v_stringify;
9508
10671
 
9509
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":971
 
10672
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":963
9510
10673
 *             stringify = unicode
9511
10674
 *         self.stringify = stringify
9512
10675
 *         self._schema_types = []             # <<<<<<<<<<<<<<
9513
10676
 * 
9514
10677
 *     def __repr__(self):
9515
10678
 */
9516
 
  __pyx_2 = PyList_New(0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9517
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
9518
 
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types = ((PyObject *)__pyx_2);
9519
 
  __pyx_2 = 0;
 
10679
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10680
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
10681
  __Pyx_GIVEREF(((PyObject *)__pyx_t_2));
 
10682
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
 
10683
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types));
 
10684
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types = __pyx_t_2;
 
10685
  __pyx_t_2 = 0;
9520
10686
 
9521
10687
  __pyx_r = 0;
9522
10688
  goto __pyx_L0;
9523
10689
  __pyx_L1_error:;
9524
 
  Py_XDECREF(__pyx_2);
 
10690
  __Pyx_XDECREF(__pyx_t_2);
9525
10691
  __Pyx_AddTraceback("lxml.objectify.PyType.__init__");
9526
10692
  __pyx_r = -1;
9527
10693
  __pyx_L0:;
9528
 
  Py_DECREF(__pyx_v_name);
9529
 
  Py_DECREF(__pyx_v_stringify);
 
10694
  __Pyx_DECREF(__pyx_v_name);
 
10695
  __Pyx_DECREF(__pyx_v_stringify);
 
10696
  __Pyx_FinishRefcountContext();
9530
10697
  return __pyx_r;
9531
10698
}
9532
10699
 
9533
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":973
 
10700
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":965
9534
10701
 *         self._schema_types = []
9535
10702
 * 
9536
10703
 *     def __repr__(self):             # <<<<<<<<<<<<<<
9540
10707
 
9541
10708
static PyObject *__pyx_pf_4lxml_9objectify_6PyType___repr__(PyObject *__pyx_v_self); /*proto*/
9542
10709
static PyObject *__pyx_pf_4lxml_9objectify_6PyType___repr__(PyObject *__pyx_v_self) {
9543
 
  PyObject *__pyx_r;
9544
 
  PyObject *__pyx_1 = 0;
9545
 
  PyObject *__pyx_2 = 0;
 
10710
  PyObject *__pyx_r = NULL;
9546
10711
  PyObject *__pyx_t_1 = NULL;
 
10712
  PyObject *__pyx_t_2 = NULL;
 
10713
  __Pyx_SetupRefcountContext("__repr__");
9547
10714
 
9548
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":974
 
10715
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":966
9549
10716
 * 
9550
10717
 *     def __repr__(self):
9551
10718
 *         return u"PyType(%s, %s)" % (self.name, self._type.__name__)             # <<<<<<<<<<<<<<
9552
10719
 * 
9553
10720
 *     def register(self, before=None, after=None):
9554
10721
 */
9555
 
  __pyx_1 = PyObject_GetAttr(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type, __pyx_kp___name__); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9556
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9557
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
9558
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
9559
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_1);
9560
 
  __pyx_1 = 0;
9561
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_710), ((PyObject *)__pyx_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9562
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
 
10722
  __Pyx_XDECREF(__pyx_r);
 
10723
  __pyx_t_1 = PyObject_GetAttr(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_type, __pyx_kp___name__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10724
  __Pyx_GOTREF(__pyx_t_1);
 
10725
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10726
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
10727
  __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
10728
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
10729
  __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
10730
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
 
10731
  __Pyx_GIVEREF(__pyx_t_1);
 
10732
  __pyx_t_1 = 0;
 
10733
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_775), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10734
  __Pyx_GOTREF(__pyx_t_1);
 
10735
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
9563
10736
  __pyx_r = __pyx_t_1;
9564
10737
  __pyx_t_1 = 0;
9565
10738
  goto __pyx_L0;
9566
10739
 
9567
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
10740
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
9568
10741
  goto __pyx_L0;
9569
10742
  __pyx_L1_error:;
9570
 
  Py_XDECREF(__pyx_1);
9571
 
  Py_XDECREF(__pyx_2);
 
10743
  __Pyx_XDECREF(__pyx_t_1);
 
10744
  __Pyx_XDECREF(__pyx_t_2);
9572
10745
  __Pyx_AddTraceback("lxml.objectify.PyType.__repr__");
9573
10746
  __pyx_r = NULL;
9574
10747
  __pyx_L0:;
 
10748
  __Pyx_XGIVEREF(__pyx_r);
 
10749
  __Pyx_FinishRefcountContext();
9575
10750
  return __pyx_r;
9576
10751
}
9577
10752
 
9578
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":976
 
10753
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":968
9579
10754
 *         return u"PyType(%s, %s)" % (self.name, self._type.__name__)
9580
10755
 * 
9581
10756
 *     def register(self, before=None, after=None):             # <<<<<<<<<<<<<<
9596
10771
  PyObject *__pyx_v_check;
9597
10772
  PyObject *__pyx_v_pytype;
9598
10773
  PyObject *__pyx_v_xs_type;
9599
 
  PyObject *__pyx_r;
 
10774
  PyObject *__pyx_r = NULL;
9600
10775
  PyObject *__pyx_1 = 0;
9601
 
  int __pyx_2;
9602
 
  Py_ssize_t __pyx_3 = 0;
 
10776
  PyObject *__pyx_2 = 0;
 
10777
  PyObject *__pyx_3 = 0;
9603
10778
  PyObject *__pyx_4 = 0;
9604
10779
  PyObject *__pyx_5 = 0;
9605
10780
  PyObject *__pyx_6 = 0;
9606
 
  int __pyx_7;
9607
 
  PyObject *__pyx_8 = 0;
9608
 
  PyObject *__pyx_9 = 0;
9609
10781
  PyObject *__pyx_t_1 = NULL;
 
10782
  int __pyx_t_2;
 
10783
  Py_ssize_t __pyx_t_3;
 
10784
  PyObject *__pyx_t_4 = NULL;
 
10785
  PyObject *__pyx_t_5 = NULL;
 
10786
  PyObject *__pyx_t_6 = NULL;
 
10787
  int __pyx_t_7;
 
10788
  int __pyx_t_8;
 
10789
  int __pyx_t_9;
9610
10790
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_before,&__pyx_kp_after,0};
9611
 
  __pyx_v_before = Py_None;
9612
 
  __pyx_v_after = Py_None;
 
10791
  __Pyx_SetupRefcountContext("register");
9613
10792
  if (unlikely(__pyx_kwds)) {
 
10793
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
9614
10794
    PyObject* values[2] = {0,0};
9615
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
10795
    values[0] = Py_None;
 
10796
    values[1] = Py_None;
9616
10797
    switch (PyTuple_GET_SIZE(__pyx_args)) {
9617
10798
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
9618
10799
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
9619
10800
      case  0: break;
9620
10801
      default: goto __pyx_L5_argtuple_error;
9621
10802
    }
 
10803
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
10804
      case  0:
 
10805
      if (kw_args > 1) {
 
10806
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_before);
 
10807
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
10808
      }
 
10809
      case  1:
 
10810
      if (kw_args > 1) {
 
10811
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_after);
 
10812
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
10813
      }
 
10814
    }
9622
10815
    if (unlikely(kw_args > 0)) {
9623
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "register") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9624
 
    }
9625
 
    if (values[0]) {
9626
 
      __pyx_v_before = values[0];
9627
 
    }
9628
 
    if (values[1]) {
9629
 
      __pyx_v_after = values[1];
9630
 
    }
 
10816
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "register") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10817
    }
 
10818
    __pyx_v_before = values[0];
 
10819
    __pyx_v_after = values[1];
9631
10820
  } else {
 
10821
    __pyx_v_before = Py_None;
 
10822
    __pyx_v_after = Py_None;
9632
10823
    switch (PyTuple_GET_SIZE(__pyx_args)) {
9633
10824
      case  2: __pyx_v_after = PyTuple_GET_ITEM(__pyx_args, 1);
9634
10825
      case  1: __pyx_v_before = PyTuple_GET_ITEM(__pyx_args, 0);
9638
10829
  }
9639
10830
  goto __pyx_L4_argument_unpacking_done;
9640
10831
  __pyx_L5_argtuple_error:;
9641
 
  __Pyx_RaiseArgtupleInvalid("register", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
10832
  __Pyx_RaiseArgtupleInvalid("register", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
9642
10833
  __pyx_L3_error:;
9643
10834
  __Pyx_AddTraceback("lxml.objectify.PyType.register");
9644
10835
  return NULL;
9645
10836
  __pyx_L4_argument_unpacking_done:;
9646
 
  Py_INCREF(__pyx_v_before);
9647
 
  Py_INCREF(__pyx_v_after);
9648
 
  __pyx_v_item = Py_None; Py_INCREF(Py_None);
9649
 
  __pyx_v_entry = Py_None; Py_INCREF(Py_None);
9650
 
  __pyx_v_first_pos = Py_None; Py_INCREF(Py_None);
9651
 
  __pyx_v_last_pos = Py_None; Py_INCREF(Py_None);
9652
 
  __pyx_v_i = Py_None; Py_INCREF(Py_None);
9653
 
  __pyx_v_check = Py_None; Py_INCREF(Py_None);
9654
 
  __pyx_v_pytype = Py_None; Py_INCREF(Py_None);
9655
 
  __pyx_v_xs_type = Py_None; Py_INCREF(Py_None);
 
10837
  __Pyx_INCREF(__pyx_v_before);
 
10838
  __Pyx_INCREF(__pyx_v_after);
 
10839
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
 
10840
  __pyx_v_entry = Py_None; __Pyx_INCREF(Py_None);
 
10841
  __pyx_v_first_pos = Py_None; __Pyx_INCREF(Py_None);
 
10842
  __pyx_v_last_pos = Py_None; __Pyx_INCREF(Py_None);
 
10843
  __pyx_v_i = Py_None; __Pyx_INCREF(Py_None);
 
10844
  __pyx_v_check = Py_None; __Pyx_INCREF(Py_None);
 
10845
  __pyx_v_pytype = Py_None; __Pyx_INCREF(Py_None);
 
10846
  __pyx_v_xs_type = Py_None; __Pyx_INCREF(Py_None);
9656
10847
 
9657
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":986
 
10848
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":978
9658
10849
 *         ignored.  Raises ValueError if the dependencies cannot be fulfilled.
9659
10850
 *         """
9660
10851
 *         if self.name == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
9661
10852
 *             raise ValueError, u"Cannot register tree type"
9662
10853
 *         if self.type_check is not None:
9663
10854
 */
9664
 
  __pyx_1 = PyObject_RichCompare(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9665
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9666
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
9667
 
  if (__pyx_2) {
 
10855
  __pyx_t_1 = PyObject_RichCompare(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10856
  __Pyx_GOTREF(__pyx_t_1);
 
10857
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10858
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
10859
  if (__pyx_t_2) {
9668
10860
 
9669
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":987
 
10861
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":979
9670
10862
 *         """
9671
10863
 *         if self.name == TREE_PYTYPE_NAME:
9672
10864
 *             raise ValueError, u"Cannot register tree type"             # <<<<<<<<<<<<<<
9673
10865
 *         if self.type_check is not None:
9674
10866
 *             for item in _TYPE_CHECKS:
9675
10867
 */
9676
 
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_711), 0);
9677
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10868
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_776), 0);
 
10869
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9678
10870
    goto __pyx_L6;
9679
10871
  }
9680
10872
  __pyx_L6:;
9681
10873
 
9682
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":988
 
10874
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":980
9683
10875
 *         if self.name == TREE_PYTYPE_NAME:
9684
10876
 *             raise ValueError, u"Cannot register tree type"
9685
10877
 *         if self.type_check is not None:             # <<<<<<<<<<<<<<
9686
10878
 *             for item in _TYPE_CHECKS:
9687
10879
 *                 if item[0] is self.type_check:
9688
10880
 */
9689
 
  __pyx_2 = (((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check != Py_None);
9690
 
  if (__pyx_2) {
 
10881
  __pyx_t_2 = (((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check != Py_None);
 
10882
  if (__pyx_t_2) {
9691
10883
 
9692
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":989
 
10884
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":981
9693
10885
 *             raise ValueError, u"Cannot register tree type"
9694
10886
 *         if self.type_check is not None:
9695
10887
 *             for item in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
9696
10888
 *                 if item[0] is self.type_check:
9697
10889
 *                     _TYPE_CHECKS.remove(item)
9698
10890
 */
9699
 
    if (PyList_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS) || PyTuple_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS)) {
9700
 
      __pyx_3 = 0; __pyx_1 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; Py_INCREF(__pyx_1);
 
10891
    if (likely(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS) != Py_None)) {
 
10892
      __pyx_t_3 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS); __Pyx_INCREF(__pyx_t_1);
9701
10893
    } else {
9702
 
      __pyx_3 = -1; __pyx_1 = PyObject_GetIter(__pyx_v_4lxml_9objectify__TYPE_CHECKS); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10894
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9703
10895
    }
9704
10896
    for (;;) {
9705
 
      if (likely(PyList_CheckExact(__pyx_1))) {
9706
 
        if (__pyx_3 >= PyList_GET_SIZE(__pyx_1)) break;
9707
 
        __pyx_4 = PyList_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
9708
 
      } else if (likely(PyTuple_CheckExact(__pyx_1))) {
9709
 
        if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_1)) break;
9710
 
        __pyx_4 = PyTuple_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
9711
 
      } else {
9712
 
        __pyx_4 = PyIter_Next(__pyx_1);
9713
 
        if (!__pyx_4) {
9714
 
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9715
 
          break;
9716
 
        }
9717
 
      }
9718
 
      Py_DECREF(__pyx_v_item);
9719
 
      __pyx_v_item = __pyx_4;
9720
 
      __pyx_4 = 0;
 
10897
      if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
10898
      __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
 
10899
      __Pyx_DECREF(__pyx_v_item);
 
10900
      __pyx_v_item = __pyx_t_4;
 
10901
      __pyx_t_4 = 0;
9721
10902
 
9722
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":990
 
10903
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":982
9723
10904
 *         if self.type_check is not None:
9724
10905
 *             for item in _TYPE_CHECKS:
9725
10906
 *                 if item[0] is self.type_check:             # <<<<<<<<<<<<<<
9726
10907
 *                     _TYPE_CHECKS.remove(item)
9727
10908
 *                     break
9728
10909
 */
9729
 
      __pyx_4 = __Pyx_GetItemInt(__pyx_v_item, 0, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9730
 
      __pyx_2 = (__pyx_4 == ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
9731
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
9732
 
      if (__pyx_2) {
 
10910
      __pyx_1 = __Pyx_GetItemInt(__pyx_v_item, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10911
      __Pyx_GOTREF(__pyx_1);
 
10912
      __pyx_t_2 = (__pyx_1 == ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10913
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
10914
      if (__pyx_t_2) {
9733
10915
 
9734
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":991
 
10916
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":983
9735
10917
 *             for item in _TYPE_CHECKS:
9736
10918
 *                 if item[0] is self.type_check:
9737
10919
 *                     _TYPE_CHECKS.remove(item)             # <<<<<<<<<<<<<<
9738
10920
 *                     break
9739
10921
 *             entry = (self.type_check, self)
9740
10922
 */
9741
 
        __pyx_4 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_kp_remove); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9742
 
        __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9743
 
        Py_INCREF(__pyx_v_item);
9744
 
        PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_item);
9745
 
        __pyx_6 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9746
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
9747
 
        Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
9748
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
 
10923
        __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS), __pyx_kp_remove); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10924
        __Pyx_GOTREF(__pyx_t_4);
 
10925
        __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10926
        __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
10927
        __Pyx_INCREF(__pyx_v_item);
 
10928
        PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_item);
 
10929
        __Pyx_GIVEREF(__pyx_v_item);
 
10930
        __pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10931
        __Pyx_GOTREF(__pyx_t_6);
 
10932
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
10933
        __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
10934
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9749
10935
 
9750
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":992
 
10936
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":984
9751
10937
 *                 if item[0] is self.type_check:
9752
10938
 *                     _TYPE_CHECKS.remove(item)
9753
10939
 *                     break             # <<<<<<<<<<<<<<
9754
10940
 *             entry = (self.type_check, self)
9755
10941
 *             first_pos = 0
9756
10942
 */
9757
 
        goto __pyx_L9;
 
10943
        goto __pyx_L9_break;
9758
10944
        goto __pyx_L10;
9759
10945
      }
9760
10946
      __pyx_L10:;
9761
10947
    }
9762
 
    __pyx_L9:;
9763
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
 
10948
    __pyx_L9_break:;
 
10949
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
9764
10950
 
9765
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":993
 
10951
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":985
9766
10952
 *                     _TYPE_CHECKS.remove(item)
9767
10953
 *                     break
9768
10954
 *             entry = (self.type_check, self)             # <<<<<<<<<<<<<<
9769
10955
 *             first_pos = 0
9770
10956
 *             last_pos = -1
9771
10957
 */
9772
 
    __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9773
 
    Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
9774
 
    PyTuple_SET_ITEM(__pyx_4, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
9775
 
    Py_INCREF(__pyx_v_self);
9776
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_self);
9777
 
    Py_DECREF(__pyx_v_entry);
9778
 
    __pyx_v_entry = ((PyObject *)__pyx_4);
9779
 
    __pyx_4 = 0;
 
10958
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
10959
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
10960
    __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10961
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10962
    __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
10963
    __Pyx_INCREF(__pyx_v_self);
 
10964
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self);
 
10965
    __Pyx_GIVEREF(__pyx_v_self);
 
10966
    __Pyx_DECREF(__pyx_v_entry);
 
10967
    __pyx_v_entry = ((PyObject *)__pyx_t_1);
 
10968
    __pyx_t_1 = 0;
9780
10969
 
9781
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":994
 
10970
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":986
9782
10971
 *                     break
9783
10972
 *             entry = (self.type_check, self)
9784
10973
 *             first_pos = 0             # <<<<<<<<<<<<<<
9785
10974
 *             last_pos = -1
9786
10975
 *             if before or after:
9787
10976
 */
9788
 
    Py_INCREF(__pyx_int_0);
9789
 
    Py_DECREF(__pyx_v_first_pos);
 
10977
    __Pyx_INCREF(__pyx_int_0);
 
10978
    __Pyx_DECREF(__pyx_v_first_pos);
9790
10979
    __pyx_v_first_pos = __pyx_int_0;
9791
10980
 
9792
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":995
 
10981
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":987
9793
10982
 *             entry = (self.type_check, self)
9794
10983
 *             first_pos = 0
9795
10984
 *             last_pos = -1             # <<<<<<<<<<<<<<
9796
10985
 *             if before or after:
9797
10986
 *                 if before is None:
9798
10987
 */
9799
 
    Py_INCREF(__pyx_int_neg_1);
9800
 
    Py_DECREF(__pyx_v_last_pos);
 
10988
    __Pyx_INCREF(__pyx_int_neg_1);
 
10989
    __Pyx_DECREF(__pyx_v_last_pos);
9801
10990
    __pyx_v_last_pos = __pyx_int_neg_1;
9802
10991
 
9803
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":996
 
10992
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":988
9804
10993
 *             first_pos = 0
9805
10994
 *             last_pos = -1
9806
10995
 *             if before or after:             # <<<<<<<<<<<<<<
9807
10996
 *                 if before is None:
9808
10997
 *                     before = ()
9809
10998
 */
9810
 
    __pyx_7 = __Pyx_PyObject_IsTrue(__pyx_v_before); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9811
 
    __pyx_2 = __pyx_7;
9812
 
    if (!__pyx_2) {
9813
 
      __pyx_7 = __Pyx_PyObject_IsTrue(__pyx_v_after); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9814
 
      __pyx_2 = __pyx_7;
 
10999
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_before); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11000
    if (!__pyx_t_2) {
 
11001
      __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_after); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11002
      __pyx_t_8 = __pyx_t_7;
 
11003
    } else {
 
11004
      __pyx_t_8 = __pyx_t_2;
9815
11005
    }
9816
 
    if (__pyx_2) {
 
11006
    if (__pyx_t_8) {
9817
11007
 
9818
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":997
 
11008
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":989
9819
11009
 *             last_pos = -1
9820
11010
 *             if before or after:
9821
11011
 *                 if before is None:             # <<<<<<<<<<<<<<
9822
11012
 *                     before = ()
9823
11013
 *                 elif after is None:
9824
11014
 */
9825
 
      __pyx_7 = (__pyx_v_before == Py_None);
9826
 
      if (__pyx_7) {
 
11015
      __pyx_t_8 = (__pyx_v_before == Py_None);
 
11016
      if (__pyx_t_8) {
9827
11017
 
9828
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":998
 
11018
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":990
9829
11019
 *             if before or after:
9830
11020
 *                 if before is None:
9831
11021
 *                     before = ()             # <<<<<<<<<<<<<<
9832
11022
 *                 elif after is None:
9833
11023
 *                     after = ()
9834
11024
 */
9835
 
        Py_INCREF(((PyObject *)__pyx_empty_tuple));
9836
 
        Py_DECREF(__pyx_v_before);
 
11025
        __Pyx_INCREF(((PyObject *)__pyx_empty_tuple));
 
11026
        __Pyx_DECREF(__pyx_v_before);
9837
11027
        __pyx_v_before = ((PyObject *)__pyx_empty_tuple);
9838
11028
        goto __pyx_L12;
9839
11029
      }
9840
11030
 
9841
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":999
 
11031
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":991
9842
11032
 *                 if before is None:
9843
11033
 *                     before = ()
9844
11034
 *                 elif after is None:             # <<<<<<<<<<<<<<
9845
11035
 *                     after = ()
9846
11036
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
9847
11037
 */
9848
 
      __pyx_2 = (__pyx_v_after == Py_None);
9849
 
      if (__pyx_2) {
 
11038
      __pyx_t_8 = (__pyx_v_after == Py_None);
 
11039
      if (__pyx_t_8) {
9850
11040
 
9851
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1000
 
11041
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":992
9852
11042
 *                     before = ()
9853
11043
 *                 elif after is None:
9854
11044
 *                     after = ()             # <<<<<<<<<<<<<<
9855
11045
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
9856
11046
 *                     if last_pos == -1 and pytype.name in before:
9857
11047
 */
9858
 
        Py_INCREF(((PyObject *)__pyx_empty_tuple));
9859
 
        Py_DECREF(__pyx_v_after);
 
11048
        __Pyx_INCREF(((PyObject *)__pyx_empty_tuple));
 
11049
        __Pyx_DECREF(__pyx_v_after);
9860
11050
        __pyx_v_after = ((PyObject *)__pyx_empty_tuple);
9861
11051
        goto __pyx_L12;
9862
11052
      }
9863
11053
      __pyx_L12:;
9864
11054
 
9865
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1001
 
11055
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":993
9866
11056
 *                 elif after is None:
9867
11057
 *                     after = ()
9868
11058
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):             # <<<<<<<<<<<<<<
9869
11059
 *                     if last_pos == -1 and pytype.name in before:
9870
11060
 *                         last_pos = i
9871
11061
 */
9872
 
      __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9873
 
      Py_INCREF(__pyx_v_4lxml_9objectify__TYPE_CHECKS);
9874
 
      PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_4lxml_9objectify__TYPE_CHECKS);
9875
 
      __pyx_6 = PyObject_Call(__pyx_builtin_enumerate, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9876
 
      Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
9877
 
      if (PyList_CheckExact(__pyx_6) || PyTuple_CheckExact(__pyx_6)) {
9878
 
        __pyx_3 = 0; __pyx_1 = __pyx_6; Py_INCREF(__pyx_1);
 
11062
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11063
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
11064
      __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS));
 
11065
      PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS));
 
11066
      __Pyx_GIVEREF(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS));
 
11067
      __pyx_t_6 = PyObject_Call(__pyx_builtin_enumerate, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11068
      __Pyx_GOTREF(__pyx_t_6);
 
11069
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
11070
      if (PyList_CheckExact(__pyx_t_6) || PyTuple_CheckExact(__pyx_t_6)) {
 
11071
        __pyx_t_3 = 0; __pyx_t_1 = __pyx_t_6; __Pyx_INCREF(__pyx_t_1);
9879
11072
      } else {
9880
 
        __pyx_3 = -1; __pyx_1 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11073
        __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11074
        __Pyx_GOTREF(__pyx_t_1);
9881
11075
      }
9882
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
 
11076
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
9883
11077
      for (;;) {
9884
 
        if (likely(PyList_CheckExact(__pyx_1))) {
9885
 
          if (__pyx_3 >= PyList_GET_SIZE(__pyx_1)) break;
9886
 
          __pyx_4 = PyList_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
9887
 
        } else if (likely(PyTuple_CheckExact(__pyx_1))) {
9888
 
          if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_1)) break;
9889
 
          __pyx_4 = PyTuple_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
 
11078
        if (likely(PyList_CheckExact(__pyx_t_1))) {
 
11079
          if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
11080
          __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++;
 
11081
        } else if (likely(PyTuple_CheckExact(__pyx_t_1))) {
 
11082
          if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
 
11083
          __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++;
9890
11084
        } else {
9891
 
          __pyx_4 = PyIter_Next(__pyx_1);
9892
 
          if (!__pyx_4) {
9893
 
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11085
          __pyx_t_6 = PyIter_Next(__pyx_t_1);
 
11086
          if (!__pyx_t_6) {
 
11087
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9894
11088
            break;
9895
11089
          }
9896
 
        }
9897
 
        if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
9898
 
          PyObject* tuple = __pyx_4;
9899
 
          __pyx_6 = PyTuple_GET_ITEM(tuple, 0);
9900
 
          Py_INCREF(__pyx_6);
9901
 
          Py_DECREF(__pyx_v_i);
9902
 
          __pyx_v_i = __pyx_6;
9903
 
          __pyx_6 = 0;
9904
 
          __pyx_6 = PyTuple_GET_ITEM(tuple, 1);
9905
 
          Py_INCREF(__pyx_6);
9906
 
          if (PyTuple_CheckExact(__pyx_6) && PyTuple_GET_SIZE(__pyx_6) == 2) {
9907
 
            PyObject* tuple = __pyx_6;
9908
 
            __pyx_9 = PyTuple_GET_ITEM(tuple, 0);
9909
 
            Py_INCREF(__pyx_9);
9910
 
            Py_DECREF(__pyx_v_check);
9911
 
            __pyx_v_check = __pyx_9;
9912
 
            __pyx_9 = 0;
9913
 
            __pyx_9 = PyTuple_GET_ITEM(tuple, 1);
9914
 
            Py_INCREF(__pyx_9);
9915
 
            Py_DECREF(__pyx_v_pytype);
9916
 
            __pyx_v_pytype = __pyx_9;
9917
 
            __pyx_9 = 0;
9918
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
9919
 
          }
9920
 
          else {
9921
 
            __pyx_8 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9922
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
9923
 
            __pyx_9 = __Pyx_UnpackItem(__pyx_8, 0); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9924
 
            Py_DECREF(__pyx_v_check);
9925
 
            __pyx_v_check = __pyx_9;
9926
 
            __pyx_9 = 0;
9927
 
            __pyx_9 = __Pyx_UnpackItem(__pyx_8, 1); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9928
 
            Py_DECREF(__pyx_v_pytype);
9929
 
            __pyx_v_pytype = __pyx_9;
9930
 
            __pyx_9 = 0;
9931
 
            if (__Pyx_EndUnpack(__pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9932
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
9933
 
          }
9934
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
9935
 
        }
9936
 
        else {
9937
 
          __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9938
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
9939
 
          __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9940
 
          Py_DECREF(__pyx_v_i);
9941
 
          __pyx_v_i = __pyx_6;
9942
 
          __pyx_6 = 0;
9943
 
          __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9944
 
          if (PyTuple_CheckExact(__pyx_6) && PyTuple_GET_SIZE(__pyx_6) == 2) {
9945
 
            PyObject* tuple = __pyx_6;
9946
 
            __pyx_9 = PyTuple_GET_ITEM(tuple, 0);
9947
 
            Py_INCREF(__pyx_9);
9948
 
            Py_DECREF(__pyx_v_check);
9949
 
            __pyx_v_check = __pyx_9;
9950
 
            __pyx_9 = 0;
9951
 
            __pyx_9 = PyTuple_GET_ITEM(tuple, 1);
9952
 
            Py_INCREF(__pyx_9);
9953
 
            Py_DECREF(__pyx_v_pytype);
9954
 
            __pyx_v_pytype = __pyx_9;
9955
 
            __pyx_9 = 0;
9956
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
9957
 
          }
9958
 
          else {
9959
 
            __pyx_8 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9960
 
            Py_DECREF(__pyx_6); __pyx_6 = 0;
9961
 
            __pyx_9 = __Pyx_UnpackItem(__pyx_8, 0); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9962
 
            Py_DECREF(__pyx_v_check);
9963
 
            __pyx_v_check = __pyx_9;
9964
 
            __pyx_9 = 0;
9965
 
            __pyx_9 = __Pyx_UnpackItem(__pyx_8, 1); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9966
 
            Py_DECREF(__pyx_v_pytype);
9967
 
            __pyx_v_pytype = __pyx_9;
9968
 
            __pyx_9 = 0;
9969
 
            if (__Pyx_EndUnpack(__pyx_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9970
 
            Py_DECREF(__pyx_8); __pyx_8 = 0;
9971
 
          }
9972
 
          if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9973
 
          Py_DECREF(__pyx_5); __pyx_5 = 0;
 
11090
          __Pyx_GOTREF(__pyx_t_6);
 
11091
        }
 
11092
        if (PyTuple_CheckExact(__pyx_t_6) && likely(PyTuple_GET_SIZE(__pyx_t_6) == 2)) {
 
11093
          PyObject* tuple = __pyx_t_6;
 
11094
          __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
11095
          __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
11096
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
11097
          __Pyx_DECREF(__pyx_v_i);
 
11098
          __pyx_v_i = __pyx_2;
 
11099
          __pyx_2 = 0;
 
11100
          if (PyTuple_CheckExact(__pyx_3) && likely(PyTuple_GET_SIZE(__pyx_3) == 2)) {
 
11101
            PyObject* tuple = __pyx_3;
 
11102
            __pyx_5 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_5);
 
11103
            __pyx_6 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_6);
 
11104
            __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
11105
            __Pyx_DECREF(__pyx_v_check);
 
11106
            __pyx_v_check = __pyx_5;
 
11107
            __pyx_5 = 0;
 
11108
            __Pyx_DECREF(__pyx_v_pytype);
 
11109
            __pyx_v_pytype = __pyx_6;
 
11110
            __pyx_6 = 0;
 
11111
          } else {
 
11112
            __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11113
            __Pyx_GOTREF(__pyx_4);
 
11114
            __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
11115
            __pyx_5 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11116
            __Pyx_GOTREF(__pyx_5);
 
11117
            __pyx_6 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11118
            __Pyx_GOTREF(__pyx_6);
 
11119
            if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11120
            __Pyx_DECREF(__pyx_4); __pyx_4 = 0;
 
11121
            __Pyx_DECREF(__pyx_v_check);
 
11122
            __pyx_v_check = __pyx_5;
 
11123
            __pyx_5 = 0;
 
11124
            __Pyx_DECREF(__pyx_v_pytype);
 
11125
            __pyx_v_pytype = __pyx_6;
 
11126
            __pyx_6 = 0;
 
11127
          }
 
11128
        } else {
 
11129
          __pyx_1 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11130
          __Pyx_GOTREF(__pyx_1);
 
11131
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
11132
          __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11133
          __Pyx_GOTREF(__pyx_2);
 
11134
          __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11135
          __Pyx_GOTREF(__pyx_3);
 
11136
          if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11137
          __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
11138
          __Pyx_DECREF(__pyx_v_i);
 
11139
          __pyx_v_i = __pyx_2;
 
11140
          __pyx_2 = 0;
 
11141
          if (PyTuple_CheckExact(__pyx_3) && likely(PyTuple_GET_SIZE(__pyx_3) == 2)) {
 
11142
            PyObject* tuple = __pyx_3;
 
11143
            __pyx_5 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_5);
 
11144
            __pyx_6 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_6);
 
11145
            __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
11146
            __Pyx_DECREF(__pyx_v_check);
 
11147
            __pyx_v_check = __pyx_5;
 
11148
            __pyx_5 = 0;
 
11149
            __Pyx_DECREF(__pyx_v_pytype);
 
11150
            __pyx_v_pytype = __pyx_6;
 
11151
            __pyx_6 = 0;
 
11152
          } else {
 
11153
            __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11154
            __Pyx_GOTREF(__pyx_4);
 
11155
            __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
11156
            __pyx_5 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11157
            __Pyx_GOTREF(__pyx_5);
 
11158
            __pyx_6 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11159
            __Pyx_GOTREF(__pyx_6);
 
11160
            if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11161
            __Pyx_DECREF(__pyx_4); __pyx_4 = 0;
 
11162
            __Pyx_DECREF(__pyx_v_check);
 
11163
            __pyx_v_check = __pyx_5;
 
11164
            __pyx_5 = 0;
 
11165
            __Pyx_DECREF(__pyx_v_pytype);
 
11166
            __pyx_v_pytype = __pyx_6;
 
11167
            __pyx_6 = 0;
 
11168
          }
9974
11169
        }
9975
11170
 
9976
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1002
 
11171
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":994
9977
11172
 *                     after = ()
9978
11173
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
9979
11174
 *                     if last_pos == -1 and pytype.name in before:             # <<<<<<<<<<<<<<
9980
11175
 *                         last_pos = i
9981
11176
 *                     if pytype.name in after:
9982
11177
 */
9983
 
        __pyx_9 = PyObject_RichCompare(__pyx_v_last_pos, __pyx_int_neg_1, Py_EQ); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9984
 
        __pyx_7 = __Pyx_PyObject_IsTrue(__pyx_9); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9985
 
        Py_DECREF(__pyx_9); __pyx_9 = 0;
9986
 
        if (__pyx_7) {
9987
 
          __pyx_6 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9988
 
          __pyx_7 = (PySequence_Contains(__pyx_v_before, __pyx_6)); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
9989
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
 
11178
        __pyx_t_6 = PyObject_RichCompare(__pyx_v_last_pos, __pyx_int_neg_1, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11179
        __Pyx_GOTREF(__pyx_t_6);
 
11180
        __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11181
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
11182
        if (__pyx_t_8) {
 
11183
          __pyx_t_6 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11184
          __Pyx_GOTREF(__pyx_t_6);
 
11185
          __pyx_t_2 = (PySequence_Contains(__pyx_v_before, __pyx_t_6)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 994; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11186
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
11187
          __pyx_t_7 = __pyx_t_2;
 
11188
        } else {
 
11189
          __pyx_t_7 = __pyx_t_8;
9990
11190
        }
9991
 
        if (__pyx_7) {
 
11191
        if (__pyx_t_7) {
9992
11192
 
9993
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1003
 
11193
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":995
9994
11194
 *                 for i, (check, pytype) in enumerate(_TYPE_CHECKS):
9995
11195
 *                     if last_pos == -1 and pytype.name in before:
9996
11196
 *                         last_pos = i             # <<<<<<<<<<<<<<
9997
11197
 *                     if pytype.name in after:
9998
11198
 *                         first_pos = i+1
9999
11199
 */
10000
 
          Py_INCREF(__pyx_v_i);
10001
 
          Py_DECREF(__pyx_v_last_pos);
 
11200
          __Pyx_INCREF(__pyx_v_i);
 
11201
          __Pyx_DECREF(__pyx_v_last_pos);
10002
11202
          __pyx_v_last_pos = __pyx_v_i;
10003
11203
          goto __pyx_L15;
10004
11204
        }
10005
11205
        __pyx_L15:;
10006
11206
 
10007
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1004
 
11207
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":996
10008
11208
 *                     if last_pos == -1 and pytype.name in before:
10009
11209
 *                         last_pos = i
10010
11210
 *                     if pytype.name in after:             # <<<<<<<<<<<<<<
10011
11211
 *                         first_pos = i+1
10012
11212
 *             if last_pos == -1:
10013
11213
 */
10014
 
        __pyx_8 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10015
 
        __pyx_2 = (PySequence_Contains(__pyx_v_after, __pyx_8)); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10016
 
        Py_DECREF(__pyx_8); __pyx_8 = 0;
10017
 
        if (__pyx_2) {
 
11214
        __pyx_t_6 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11215
        __Pyx_GOTREF(__pyx_t_6);
 
11216
        __pyx_t_7 = (PySequence_Contains(__pyx_v_after, __pyx_t_6)); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11217
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
11218
        if (__pyx_t_7) {
10018
11219
 
10019
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1005
 
11220
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":997
10020
11221
 *                         last_pos = i
10021
11222
 *                     if pytype.name in after:
10022
11223
 *                         first_pos = i+1             # <<<<<<<<<<<<<<
10023
11224
 *             if last_pos == -1:
10024
11225
 *                 _TYPE_CHECKS.append(entry)
10025
11226
 */
10026
 
          __pyx_t_1 = PyNumber_Add(__pyx_v_i, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10027
 
          Py_DECREF(__pyx_v_first_pos);
10028
 
          __pyx_v_first_pos = __pyx_t_1;
10029
 
          __pyx_t_1 = 0;
 
11227
          __pyx_t_6 = PyNumber_Add(__pyx_v_i, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11228
          __Pyx_GOTREF(__pyx_t_6);
 
11229
          __Pyx_DECREF(__pyx_v_first_pos);
 
11230
          __pyx_v_first_pos = __pyx_t_6;
 
11231
          __pyx_t_6 = 0;
10030
11232
          goto __pyx_L16;
10031
11233
        }
10032
11234
        __pyx_L16:;
10033
11235
      }
10034
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
11236
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10035
11237
      goto __pyx_L11;
10036
11238
    }
10037
11239
    __pyx_L11:;
10038
11240
 
10039
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1006
 
11241
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":998
10040
11242
 *                     if pytype.name in after:
10041
11243
 *                         first_pos = i+1
10042
11244
 *             if last_pos == -1:             # <<<<<<<<<<<<<<
10043
11245
 *                 _TYPE_CHECKS.append(entry)
10044
11246
 *             elif first_pos > last_pos:
10045
11247
 */
10046
 
    __pyx_4 = PyObject_RichCompare(__pyx_v_last_pos, __pyx_int_neg_1, Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10047
 
    __pyx_7 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10048
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
10049
 
    if (__pyx_7) {
 
11248
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_last_pos, __pyx_int_neg_1, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11249
    __Pyx_GOTREF(__pyx_t_1);
 
11250
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11251
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
11252
    if (__pyx_t_7) {
10050
11253
 
10051
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1007
 
11254
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":999
10052
11255
 *                         first_pos = i+1
10053
11256
 *             if last_pos == -1:
10054
11257
 *                 _TYPE_CHECKS.append(entry)             # <<<<<<<<<<<<<<
10055
11258
 *             elif first_pos > last_pos:
10056
11259
 *                 raise ValueError, u"inconsistent before/after dependencies"
10057
11260
 */
10058
 
      __pyx_5 = __Pyx_PyObject_Append(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_v_entry); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10059
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
11261
      __pyx_t_9 = PyList_Append(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS), __pyx_v_entry); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 999; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10060
11262
      goto __pyx_L17;
10061
11263
    }
10062
11264
 
10063
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1008
 
11265
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1000
10064
11266
 *             if last_pos == -1:
10065
11267
 *                 _TYPE_CHECKS.append(entry)
10066
11268
 *             elif first_pos > last_pos:             # <<<<<<<<<<<<<<
10067
11269
 *                 raise ValueError, u"inconsistent before/after dependencies"
10068
11270
 *             else:
10069
11271
 */
10070
 
    __pyx_9 = PyObject_RichCompare(__pyx_v_first_pos, __pyx_v_last_pos, Py_GT); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10071
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_9); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10072
 
    Py_DECREF(__pyx_9); __pyx_9 = 0;
10073
 
    if (__pyx_2) {
 
11272
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_first_pos, __pyx_v_last_pos, Py_GT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11273
    __Pyx_GOTREF(__pyx_t_1);
 
11274
    __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11275
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
11276
    if (__pyx_t_7) {
10074
11277
 
10075
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1009
 
11278
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1001
10076
11279
 *                 _TYPE_CHECKS.append(entry)
10077
11280
 *             elif first_pos > last_pos:
10078
11281
 *                 raise ValueError, u"inconsistent before/after dependencies"             # <<<<<<<<<<<<<<
10079
11282
 *             else:
10080
11283
 *                 _TYPE_CHECKS.insert(last_pos, entry)
10081
11284
 */
10082
 
      __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_712), 0);
10083
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11285
      __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_777), 0);
 
11286
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10084
11287
      goto __pyx_L17;
10085
11288
    }
10086
11289
    /*else*/ {
10087
11290
 
10088
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1011
 
11291
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1003
10089
11292
 *                 raise ValueError, u"inconsistent before/after dependencies"
10090
11293
 *             else:
10091
11294
 *                 _TYPE_CHECKS.insert(last_pos, entry)             # <<<<<<<<<<<<<<
10092
11295
 * 
10093
11296
 *         _PYTYPE_DICT[self.name] = self
10094
11297
 */
10095
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_kp_insert); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10096
 
      __pyx_8 = PyTuple_New(2); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10097
 
      Py_INCREF(__pyx_v_last_pos);
10098
 
      PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_last_pos);
10099
 
      Py_INCREF(__pyx_v_entry);
10100
 
      PyTuple_SET_ITEM(__pyx_8, 1, __pyx_v_entry);
10101
 
      __pyx_1 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_8), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10102
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
10103
 
      Py_DECREF(((PyObject *)__pyx_8)); __pyx_8 = 0;
10104
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
11298
      __pyx_t_3 = __Pyx_PyIndex_AsSsize_t(__pyx_v_last_pos); if (unlikely((__pyx_t_3 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1003; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11299
      __pyx_t_9 = PyList_Insert(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS), __pyx_t_3, __pyx_v_entry); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1003; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10105
11300
    }
10106
11301
    __pyx_L17:;
10107
11302
    goto __pyx_L7;
10108
11303
  }
10109
11304
  __pyx_L7:;
10110
11305
 
10111
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1013
 
11306
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1005
10112
11307
 *                 _TYPE_CHECKS.insert(last_pos, entry)
10113
11308
 * 
10114
11309
 *         _PYTYPE_DICT[self.name] = self             # <<<<<<<<<<<<<<
10115
11310
 *         for xs_type in self._schema_types:
10116
11311
 *             _SCHEMA_TYPE_DICT[xs_type] = self
10117
11312
 */
10118
 
  if (PyObject_SetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11313
  if (PyDict_SetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10119
11314
 
10120
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1014
 
11315
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1006
10121
11316
 * 
10122
11317
 *         _PYTYPE_DICT[self.name] = self
10123
11318
 *         for xs_type in self._schema_types:             # <<<<<<<<<<<<<<
10124
11319
 *             _SCHEMA_TYPE_DICT[xs_type] = self
10125
11320
 * 
10126
11321
 */
10127
 
  if (PyList_CheckExact(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types) || PyTuple_CheckExact(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types)) {
10128
 
    __pyx_3 = 0; __pyx_4 = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types; Py_INCREF(__pyx_4);
 
11322
  if (likely(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types) != Py_None)) {
 
11323
    __pyx_t_3 = 0; __pyx_t_1 = ((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types); __Pyx_INCREF(__pyx_t_1);
10129
11324
  } else {
10130
 
    __pyx_3 = -1; __pyx_4 = PyObject_GetIter(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11325
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10131
11326
  }
10132
11327
  for (;;) {
10133
 
    if (likely(PyList_CheckExact(__pyx_4))) {
10134
 
      if (__pyx_3 >= PyList_GET_SIZE(__pyx_4)) break;
10135
 
      __pyx_5 = PyList_GET_ITEM(__pyx_4, __pyx_3); Py_INCREF(__pyx_5); __pyx_3++;
10136
 
    } else if (likely(PyTuple_CheckExact(__pyx_4))) {
10137
 
      if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_4)) break;
10138
 
      __pyx_5 = PyTuple_GET_ITEM(__pyx_4, __pyx_3); Py_INCREF(__pyx_5); __pyx_3++;
10139
 
    } else {
10140
 
      __pyx_5 = PyIter_Next(__pyx_4);
10141
 
      if (!__pyx_5) {
10142
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10143
 
        break;
10144
 
      }
10145
 
    }
10146
 
    Py_DECREF(__pyx_v_xs_type);
10147
 
    __pyx_v_xs_type = __pyx_5;
10148
 
    __pyx_5 = 0;
 
11328
    if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
11329
    __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_6); __pyx_t_3++;
 
11330
    __Pyx_DECREF(__pyx_v_xs_type);
 
11331
    __pyx_v_xs_type = __pyx_t_6;
 
11332
    __pyx_t_6 = 0;
10149
11333
 
10150
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1015
 
11334
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1007
10151
11335
 *         _PYTYPE_DICT[self.name] = self
10152
11336
 *         for xs_type in self._schema_types:
10153
11337
 *             _SCHEMA_TYPE_DICT[xs_type] = self             # <<<<<<<<<<<<<<
10154
11338
 * 
10155
11339
 *     def unregister(self):
10156
11340
 */
10157
 
    if (PyObject_SetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11341
    if (PyDict_SetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_xs_type, __pyx_v_self) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10158
11342
  }
10159
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
 
11343
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10160
11344
 
10161
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11345
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10162
11346
  goto __pyx_L0;
10163
11347
  __pyx_L1_error:;
10164
 
  Py_XDECREF(__pyx_1);
10165
 
  Py_XDECREF(__pyx_4);
10166
 
  Py_XDECREF(__pyx_5);
10167
 
  Py_XDECREF(__pyx_6);
10168
 
  Py_XDECREF(__pyx_8);
10169
 
  Py_XDECREF(__pyx_9);
 
11348
  __Pyx_XDECREF(__pyx_1);
 
11349
  __Pyx_XDECREF(__pyx_2);
 
11350
  __Pyx_XDECREF(__pyx_3);
 
11351
  __Pyx_XDECREF(__pyx_4);
 
11352
  __Pyx_XDECREF(__pyx_5);
 
11353
  __Pyx_XDECREF(__pyx_6);
 
11354
  __Pyx_XDECREF(__pyx_t_1);
 
11355
  __Pyx_XDECREF(__pyx_t_4);
 
11356
  __Pyx_XDECREF(__pyx_t_5);
 
11357
  __Pyx_XDECREF(__pyx_t_6);
10170
11358
  __Pyx_AddTraceback("lxml.objectify.PyType.register");
10171
11359
  __pyx_r = NULL;
10172
11360
  __pyx_L0:;
10173
 
  Py_DECREF(__pyx_v_item);
10174
 
  Py_DECREF(__pyx_v_entry);
10175
 
  Py_DECREF(__pyx_v_first_pos);
10176
 
  Py_DECREF(__pyx_v_last_pos);
10177
 
  Py_DECREF(__pyx_v_i);
10178
 
  Py_DECREF(__pyx_v_check);
10179
 
  Py_DECREF(__pyx_v_pytype);
10180
 
  Py_DECREF(__pyx_v_xs_type);
10181
 
  Py_DECREF(__pyx_v_before);
10182
 
  Py_DECREF(__pyx_v_after);
 
11361
  __Pyx_DECREF(__pyx_v_item);
 
11362
  __Pyx_DECREF(__pyx_v_entry);
 
11363
  __Pyx_DECREF(__pyx_v_first_pos);
 
11364
  __Pyx_DECREF(__pyx_v_last_pos);
 
11365
  __Pyx_DECREF(__pyx_v_i);
 
11366
  __Pyx_DECREF(__pyx_v_check);
 
11367
  __Pyx_DECREF(__pyx_v_pytype);
 
11368
  __Pyx_DECREF(__pyx_v_xs_type);
 
11369
  __Pyx_DECREF(__pyx_v_before);
 
11370
  __Pyx_DECREF(__pyx_v_after);
 
11371
  __Pyx_XGIVEREF(__pyx_r);
 
11372
  __Pyx_FinishRefcountContext();
10183
11373
  return __pyx_r;
10184
11374
}
10185
11375
 
10186
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1017
 
11376
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1009
10187
11377
 *             _SCHEMA_TYPE_DICT[xs_type] = self
10188
11378
 * 
10189
11379
 *     def unregister(self):             # <<<<<<<<<<<<<<
10196
11386
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_unregister(PyObject *__pyx_v_self, PyObject *unused) {
10197
11387
  PyObject *__pyx_v_xs_type;
10198
11388
  PyObject *__pyx_v_pytype;
10199
 
  PyObject *__pyx_r;
 
11389
  PyObject *__pyx_r = NULL;
10200
11390
  PyObject *__pyx_1 = 0;
10201
11391
  PyObject *__pyx_2 = 0;
10202
11392
  PyObject *__pyx_3 = 0;
10203
11393
  int __pyx_4;
10204
 
  Py_ssize_t __pyx_5 = 0;
10205
 
  PyObject *__pyx_6 = 0;
10206
 
  int __pyx_7;
10207
 
  __pyx_v_xs_type = Py_None; Py_INCREF(Py_None);
10208
 
  __pyx_v_pytype = Py_None; Py_INCREF(Py_None);
 
11394
  PyObject *__pyx_t_1 = NULL;
 
11395
  PyObject *__pyx_t_2 = NULL;
 
11396
  PyObject *__pyx_t_3 = NULL;
 
11397
  int __pyx_t_4;
 
11398
  Py_ssize_t __pyx_t_5;
 
11399
  __Pyx_SetupRefcountContext("unregister");
 
11400
  __pyx_v_xs_type = Py_None; __Pyx_INCREF(Py_None);
 
11401
  __pyx_v_pytype = Py_None; __Pyx_INCREF(Py_None);
10209
11402
 
10210
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1019
 
11403
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1011
10211
11404
 *     def unregister(self):
10212
11405
 *         u"unregister(self)"
10213
11406
 *         if _PYTYPE_DICT.get(self.name) is self:             # <<<<<<<<<<<<<<
10214
11407
 *             del _PYTYPE_DICT[self.name]
10215
11408
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
10216
11409
 */
10217
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_kp_get); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10218
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10219
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
10220
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
10221
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10222
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
10223
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
10224
 
  __pyx_4 = (__pyx_3 == __pyx_v_self);
10225
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
10226
 
  if (__pyx_4) {
 
11410
  __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_kp_get); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11411
  __Pyx_GOTREF(__pyx_t_1);
 
11412
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11413
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
11414
  __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
11415
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
11416
  __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name);
 
11417
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11418
  __Pyx_GOTREF(__pyx_t_3);
 
11419
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
11420
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
11421
  __pyx_t_4 = (__pyx_t_3 == __pyx_v_self);
 
11422
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
11423
  if (__pyx_t_4) {
10227
11424
 
10228
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1020
 
11425
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1012
10229
11426
 *         u"unregister(self)"
10230
11427
 *         if _PYTYPE_DICT.get(self.name) is self:
10231
11428
 *             del _PYTYPE_DICT[self.name]             # <<<<<<<<<<<<<<
10232
11429
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
10233
11430
 *             if pytype is self:
10234
11431
 */
10235
 
    if (PyObject_DelItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1020; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11432
    if (PyDict_DelItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10236
11433
    goto __pyx_L5;
10237
11434
  }
10238
11435
  __pyx_L5:;
10239
11436
 
10240
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1021
 
11437
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1013
10241
11438
 *         if _PYTYPE_DICT.get(self.name) is self:
10242
11439
 *             del _PYTYPE_DICT[self.name]
10243
11440
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):             # <<<<<<<<<<<<<<
10244
11441
 *             if pytype is self:
10245
11442
 *                 del _SCHEMA_TYPE_DICT[xs_type]
10246
11443
 */
10247
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_kp_items); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10248
 
  __pyx_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10249
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
10250
 
  __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10251
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
10252
 
  __pyx_2 = 0;
10253
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10254
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
10255
 
  if (PyList_CheckExact(__pyx_1) || PyTuple_CheckExact(__pyx_1)) {
10256
 
    __pyx_5 = 0; __pyx_2 = __pyx_1; Py_INCREF(__pyx_2);
 
11444
  __pyx_t_3 = PyDict_Items(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11445
  __Pyx_GOTREF(__pyx_t_3);
 
11446
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11447
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
11448
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
 
11449
  __Pyx_GIVEREF(__pyx_t_3);
 
11450
  __pyx_t_3 = 0;
 
11451
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11452
  __Pyx_GOTREF(__pyx_t_3);
 
11453
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
11454
  if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) {
 
11455
    __pyx_t_5 = 0; __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2);
10257
11456
  } else {
10258
 
    __pyx_5 = -1; __pyx_2 = PyObject_GetIter(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11457
    __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11458
    __Pyx_GOTREF(__pyx_t_2);
10259
11459
  }
10260
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
11460
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10261
11461
  for (;;) {
10262
 
    if (likely(PyList_CheckExact(__pyx_2))) {
10263
 
      if (__pyx_5 >= PyList_GET_SIZE(__pyx_2)) break;
10264
 
      __pyx_3 = PyList_GET_ITEM(__pyx_2, __pyx_5); Py_INCREF(__pyx_3); __pyx_5++;
10265
 
    } else if (likely(PyTuple_CheckExact(__pyx_2))) {
10266
 
      if (__pyx_5 >= PyTuple_GET_SIZE(__pyx_2)) break;
10267
 
      __pyx_3 = PyTuple_GET_ITEM(__pyx_2, __pyx_5); Py_INCREF(__pyx_3); __pyx_5++;
 
11462
    if (likely(PyList_CheckExact(__pyx_t_2))) {
 
11463
      if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2)) break;
 
11464
      __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++;
 
11465
    } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
 
11466
      if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
 
11467
      __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++;
10268
11468
    } else {
10269
 
      __pyx_3 = PyIter_Next(__pyx_2);
10270
 
      if (!__pyx_3) {
10271
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11469
      __pyx_t_3 = PyIter_Next(__pyx_t_2);
 
11470
      if (!__pyx_t_3) {
 
11471
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10272
11472
        break;
10273
11473
      }
10274
 
    }
10275
 
    if (PyTuple_CheckExact(__pyx_3) && PyTuple_GET_SIZE(__pyx_3) == 2) {
10276
 
      PyObject* tuple = __pyx_3;
10277
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 0);
10278
 
      Py_INCREF(__pyx_6);
10279
 
      Py_DECREF(__pyx_v_xs_type);
10280
 
      __pyx_v_xs_type = __pyx_6;
10281
 
      __pyx_6 = 0;
10282
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 1);
10283
 
      Py_INCREF(__pyx_6);
10284
 
      Py_DECREF(__pyx_v_pytype);
10285
 
      __pyx_v_pytype = __pyx_6;
10286
 
      __pyx_6 = 0;
10287
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
10288
 
    }
10289
 
    else {
10290
 
      __pyx_1 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10291
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
10292
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10293
 
      Py_DECREF(__pyx_v_xs_type);
10294
 
      __pyx_v_xs_type = __pyx_6;
10295
 
      __pyx_6 = 0;
10296
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10297
 
      Py_DECREF(__pyx_v_pytype);
10298
 
      __pyx_v_pytype = __pyx_6;
10299
 
      __pyx_6 = 0;
10300
 
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10301
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
11474
      __Pyx_GOTREF(__pyx_t_3);
 
11475
    }
 
11476
    if (PyTuple_CheckExact(__pyx_t_3) && likely(PyTuple_GET_SIZE(__pyx_t_3) == 2)) {
 
11477
      PyObject* tuple = __pyx_t_3;
 
11478
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
11479
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
11480
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
11481
      __Pyx_DECREF(__pyx_v_xs_type);
 
11482
      __pyx_v_xs_type = __pyx_2;
 
11483
      __pyx_2 = 0;
 
11484
      __Pyx_DECREF(__pyx_v_pytype);
 
11485
      __pyx_v_pytype = __pyx_3;
 
11486
      __pyx_3 = 0;
 
11487
    } else {
 
11488
      __pyx_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11489
      __Pyx_GOTREF(__pyx_1);
 
11490
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
11491
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11492
      __Pyx_GOTREF(__pyx_2);
 
11493
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11494
      __Pyx_GOTREF(__pyx_3);
 
11495
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11496
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
11497
      __Pyx_DECREF(__pyx_v_xs_type);
 
11498
      __pyx_v_xs_type = __pyx_2;
 
11499
      __pyx_2 = 0;
 
11500
      __Pyx_DECREF(__pyx_v_pytype);
 
11501
      __pyx_v_pytype = __pyx_3;
 
11502
      __pyx_3 = 0;
10302
11503
    }
10303
11504
 
10304
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1022
 
11505
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1014
10305
11506
 *             del _PYTYPE_DICT[self.name]
10306
11507
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
10307
11508
 *             if pytype is self:             # <<<<<<<<<<<<<<
10308
11509
 *                 del _SCHEMA_TYPE_DICT[xs_type]
10309
11510
 *         if self.type_check is None:
10310
11511
 */
10311
 
    __pyx_4 = (__pyx_v_pytype == __pyx_v_self);
10312
 
    if (__pyx_4) {
 
11512
    __pyx_t_4 = (__pyx_v_pytype == __pyx_v_self);
 
11513
    if (__pyx_t_4) {
10313
11514
 
10314
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1023
 
11515
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1015
10315
11516
 *         for xs_type, pytype in list(_SCHEMA_TYPE_DICT.items()):
10316
11517
 *             if pytype is self:
10317
11518
 *                 del _SCHEMA_TYPE_DICT[xs_type]             # <<<<<<<<<<<<<<
10318
11519
 *         if self.type_check is None:
10319
11520
 *             return
10320
11521
 */
10321
 
      if (PyObject_DelItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_xs_type) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11522
      if (PyDict_DelItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_xs_type) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10322
11523
      goto __pyx_L8;
10323
11524
    }
10324
11525
    __pyx_L8:;
10325
11526
  }
10326
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
11527
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10327
11528
 
10328
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1024
 
11529
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1016
10329
11530
 *             if pytype is self:
10330
11531
 *                 del _SCHEMA_TYPE_DICT[xs_type]
10331
11532
 *         if self.type_check is None:             # <<<<<<<<<<<<<<
10332
11533
 *             return
10333
11534
 *         try:
10334
11535
 */
10335
 
  __pyx_4 = (((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check == Py_None);
10336
 
  if (__pyx_4) {
 
11536
  __pyx_t_4 = (((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check == Py_None);
 
11537
  if (__pyx_t_4) {
10337
11538
 
10338
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1025
 
11539
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1017
10339
11540
 *                 del _SCHEMA_TYPE_DICT[xs_type]
10340
11541
 *         if self.type_check is None:
10341
11542
 *             return             # <<<<<<<<<<<<<<
10342
11543
 *         try:
10343
11544
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
10344
11545
 */
10345
 
    __pyx_r = Py_None; Py_INCREF(Py_None);
 
11546
    __Pyx_XDECREF(__pyx_r);
 
11547
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10346
11548
    goto __pyx_L0;
10347
11549
    goto __pyx_L9;
10348
11550
  }
10349
11551
  __pyx_L9:;
10350
11552
 
10351
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1026
 
11553
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1018
10352
11554
 *         if self.type_check is None:
10353
11555
 *             return
10354
11556
 *         try:             # <<<<<<<<<<<<<<
10358
11560
  {
10359
11561
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
10360
11562
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
 
11563
    __Pyx_XGOTREF(__pyx_save_exc_type);
 
11564
    __Pyx_XGOTREF(__pyx_save_exc_value);
 
11565
    __Pyx_XGOTREF(__pyx_save_exc_tb);
10361
11566
    /*try:*/ {
10362
11567
 
10363
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1027
 
11568
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1019
10364
11569
 *             return
10365
11570
 *         try:
10366
11571
 *             _TYPE_CHECKS.remove( (self.type_check, self) )             # <<<<<<<<<<<<<<
10367
11572
 *         except ValueError:
10368
11573
 *             pass
10369
11574
 */
10370
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__TYPE_CHECKS, __pyx_kp_remove); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
10371
 
      __pyx_3 = PyTuple_New(2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
10372
 
      Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
10373
 
      PyTuple_SET_ITEM(__pyx_3, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
10374
 
      Py_INCREF(__pyx_v_self);
10375
 
      PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_self);
10376
 
      __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
10377
 
      PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)__pyx_3));
10378
 
      __pyx_3 = 0;
10379
 
      __pyx_2 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
10380
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
10381
 
      Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
10382
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
 
11575
      __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS), __pyx_kp_remove); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
 
11576
      __Pyx_GOTREF(__pyx_t_2);
 
11577
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
 
11578
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
11579
      __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
11580
      PyTuple_SET_ITEM(__pyx_t_3, 0, ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
11581
      __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->type_check);
 
11582
      __Pyx_INCREF(__pyx_v_self);
 
11583
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_self);
 
11584
      __Pyx_GIVEREF(__pyx_v_self);
 
11585
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
 
11586
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
11587
      PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_t_3));
 
11588
      __Pyx_GIVEREF(((PyObject *)__pyx_t_3));
 
11589
      __pyx_t_3 = 0;
 
11590
      __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; __pyx_clineno = __LINE__; goto __pyx_L10_error;}
 
11591
      __Pyx_GOTREF(__pyx_t_3);
 
11592
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
11593
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
11594
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10383
11595
    }
10384
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
10385
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
10386
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
10387
 
    goto __pyx_L15_try;
 
11596
    __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
11597
    __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
11598
    __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
11599
    goto __pyx_L17_try_end;
10388
11600
    __pyx_L10_error:;
10389
 
    Py_XDECREF(__pyx_3); __pyx_3 = 0;
10390
 
    Py_XDECREF(__pyx_6); __pyx_6 = 0;
10391
 
    Py_XDECREF(__pyx_1); __pyx_1 = 0;
10392
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
 
11601
    __Pyx_XDECREF(__pyx_1); __pyx_1 = 0;
 
11602
    __Pyx_XDECREF(__pyx_2); __pyx_2 = 0;
 
11603
    __Pyx_XDECREF(__pyx_3); __pyx_3 = 0;
 
11604
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
 
11605
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
 
11606
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10393
11607
 
10394
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1028
 
11608
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1020
10395
11609
 *         try:
10396
11610
 *             _TYPE_CHECKS.remove( (self.type_check, self) )
10397
11611
 *         except ValueError:             # <<<<<<<<<<<<<<
10398
11612
 *             pass
10399
11613
 * 
10400
11614
 */
10401
 
    __pyx_7 = PyErr_ExceptionMatches(__pyx_builtin_ValueError);
10402
 
    if (__pyx_7) {
10403
 
      __Pyx_AddTraceback("lxml.objectify.unregister");
10404
 
      if (__Pyx_GetException(&__pyx_3, &__pyx_6, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L12_except_error;}
10405
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
10406
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
10407
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
11615
    __pyx_4 = PyErr_ExceptionMatches(__pyx_builtin_ValueError);
 
11616
    if (__pyx_4) {
 
11617
      PyErr_Restore(0,0,0);
10408
11618
      goto __pyx_L11_exception_handled;
10409
11619
    }
10410
 
    __pyx_L12_except_error:;
10411
 
    Py_XDECREF(__pyx_save_exc_type);
10412
 
    Py_XDECREF(__pyx_save_exc_value);
10413
 
    Py_XDECREF(__pyx_save_exc_tb);
 
11620
    __Pyx_XDECREF(__pyx_save_exc_type);
 
11621
    __Pyx_XDECREF(__pyx_save_exc_value);
 
11622
    __Pyx_XDECREF(__pyx_save_exc_tb);
10414
11623
    goto __pyx_L1_error;
10415
11624
    __pyx_L11_exception_handled:;
 
11625
    __Pyx_XGIVEREF(__pyx_save_exc_type);
 
11626
    __Pyx_XGIVEREF(__pyx_save_exc_value);
 
11627
    __Pyx_XGIVEREF(__pyx_save_exc_tb);
10416
11628
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
10417
 
    __pyx_L15_try:;
 
11629
    __pyx_L17_try_end:;
10418
11630
  }
10419
11631
 
10420
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11632
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10421
11633
  goto __pyx_L0;
10422
11634
  __pyx_L1_error:;
10423
 
  Py_XDECREF(__pyx_1);
10424
 
  Py_XDECREF(__pyx_2);
10425
 
  Py_XDECREF(__pyx_3);
10426
 
  Py_XDECREF(__pyx_6);
 
11635
  __Pyx_XDECREF(__pyx_1);
 
11636
  __Pyx_XDECREF(__pyx_2);
 
11637
  __Pyx_XDECREF(__pyx_3);
 
11638
  __Pyx_XDECREF(__pyx_t_1);
 
11639
  __Pyx_XDECREF(__pyx_t_2);
 
11640
  __Pyx_XDECREF(__pyx_t_3);
10427
11641
  __Pyx_AddTraceback("lxml.objectify.PyType.unregister");
10428
11642
  __pyx_r = NULL;
10429
11643
  __pyx_L0:;
10430
 
  Py_DECREF(__pyx_v_xs_type);
10431
 
  Py_DECREF(__pyx_v_pytype);
 
11644
  __Pyx_DECREF(__pyx_v_xs_type);
 
11645
  __Pyx_DECREF(__pyx_v_pytype);
 
11646
  __Pyx_XGIVEREF(__pyx_r);
 
11647
  __Pyx_FinishRefcountContext();
10432
11648
  return __pyx_r;
10433
11649
}
10434
11650
 
10435
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1036
 
11651
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1028
10436
11652
 *         Note that this must be set before registering the type!
10437
11653
 *         """
10438
11654
 *         def __get__(self):             # <<<<<<<<<<<<<<
10442
11658
 
10443
11659
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___get__(PyObject *__pyx_v_self); /*proto*/
10444
11660
static PyObject *__pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___get__(PyObject *__pyx_v_self) {
10445
 
  PyObject *__pyx_r;
 
11661
  PyObject *__pyx_r = NULL;
 
11662
  __Pyx_SetupRefcountContext("__get__");
10446
11663
 
10447
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1037
 
11664
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1029
10448
11665
 *         """
10449
11666
 *         def __get__(self):
10450
11667
 *             return self._schema_types             # <<<<<<<<<<<<<<
10451
11668
 *         def __set__(self, types):
10452
11669
 *             self._schema_types = list(map(unicode, types))
10453
11670
 */
10454
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
10455
 
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types;
 
11671
  __Pyx_XDECREF(__pyx_r);
 
11672
  __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types));
 
11673
  __pyx_r = ((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
10456
11674
  goto __pyx_L0;
10457
11675
 
10458
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11676
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10459
11677
  __pyx_L0:;
 
11678
  __Pyx_XGIVEREF(__pyx_r);
 
11679
  __Pyx_FinishRefcountContext();
10460
11680
  return __pyx_r;
10461
11681
}
10462
11682
 
10463
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1038
 
11683
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1030
10464
11684
 *         def __get__(self):
10465
11685
 *             return self._schema_types
10466
11686
 *         def __set__(self, types):             # <<<<<<<<<<<<<<
10471
11691
static int __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types); /*proto*/
10472
11692
static int __pyx_pf_4lxml_9objectify_6PyType_14xmlSchemaTypes___set__(PyObject *__pyx_v_self, PyObject *__pyx_v_types) {
10473
11693
  int __pyx_r;
10474
 
  PyObject *__pyx_1 = 0;
10475
 
  PyObject *__pyx_2 = 0;
 
11694
  PyObject *__pyx_t_1 = NULL;
 
11695
  PyObject *__pyx_t_2 = NULL;
 
11696
  __Pyx_SetupRefcountContext("__set__");
10476
11697
 
10477
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1039
 
11698
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1031
10478
11699
 *             return self._schema_types
10479
11700
 *         def __set__(self, types):
10480
11701
 *             self._schema_types = list(map(unicode, types))             # <<<<<<<<<<<<<<
10481
11702
 * 
10482
11703
 * 
10483
11704
 */
10484
 
  __pyx_1 = PyTuple_New(2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10485
 
  Py_INCREF(((PyObject *)((PyObject*)&PyUnicode_Type)));
10486
 
  PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)((PyObject*)&PyUnicode_Type)));
10487
 
  Py_INCREF(__pyx_v_types);
10488
 
  PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_types);
10489
 
  __pyx_2 = PyObject_Call(__pyx_builtin_map, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10490
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
10491
 
  __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10492
 
  PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
10493
 
  __pyx_2 = 0;
10494
 
  __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10495
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
10496
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
10497
 
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types = __pyx_2;
10498
 
  __pyx_2 = 0;
 
11705
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11706
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
11707
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyUnicode_Type)));
 
11708
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)((PyObject*)&PyUnicode_Type)));
 
11709
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyUnicode_Type)));
 
11710
  __Pyx_INCREF(__pyx_v_types);
 
11711
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_types);
 
11712
  __Pyx_GIVEREF(__pyx_v_types);
 
11713
  __pyx_t_2 = PyObject_Call(__pyx_builtin_map, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11714
  __Pyx_GOTREF(__pyx_t_2);
 
11715
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
11716
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11717
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
11718
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
 
11719
  __Pyx_GIVEREF(__pyx_t_2);
 
11720
  __pyx_t_2 = 0;
 
11721
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyList_Type)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11722
  __Pyx_GOTREF(__pyx_t_2);
 
11723
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
11724
  if (!(likely(PyList_CheckExact(__pyx_t_2)) || (__pyx_t_2) == Py_None || (PyErr_Format(PyExc_TypeError, "Expected list, got %s", Py_TYPE(__pyx_t_2)->tp_name), 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11725
  __Pyx_GIVEREF(__pyx_t_2);
 
11726
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types);
 
11727
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types));
 
11728
  ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_self)->_schema_types = ((PyObject *)__pyx_t_2);
 
11729
  __pyx_t_2 = 0;
10499
11730
 
10500
11731
  __pyx_r = 0;
10501
11732
  goto __pyx_L0;
10502
11733
  __pyx_L1_error:;
10503
 
  Py_XDECREF(__pyx_1);
10504
 
  Py_XDECREF(__pyx_2);
 
11734
  __Pyx_XDECREF(__pyx_t_1);
 
11735
  __Pyx_XDECREF(__pyx_t_2);
10505
11736
  __Pyx_AddTraceback("lxml.objectify.PyType.xmlSchemaTypes.__set__");
10506
11737
  __pyx_r = -1;
10507
11738
  __pyx_L0:;
 
11739
  __Pyx_FinishRefcountContext();
10508
11740
  return __pyx_r;
10509
11741
}
10510
11742
 
10511
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1051
 
11743
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1043
10512
11744
 * _TYPE_CHECKS = []
10513
11745
 * 
10514
11746
 * cdef _lower_bool(b):             # <<<<<<<<<<<<<<
10517
11749
 */
10518
11750
 
10519
11751
static  PyObject *__pyx_f_4lxml_9objectify__lower_bool(PyObject *__pyx_v_b) {
10520
 
  PyObject *__pyx_r;
10521
 
  int __pyx_1;
 
11752
  PyObject *__pyx_r = NULL;
 
11753
  int __pyx_t_1;
 
11754
  __Pyx_SetupRefcountContext("_lower_bool");
10522
11755
 
10523
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1052
 
11756
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1044
10524
11757
 * 
10525
11758
 * cdef _lower_bool(b):
10526
11759
 *     if b:             # <<<<<<<<<<<<<<
10527
11760
 *         return u"true"
10528
11761
 *     else:
10529
11762
 */
10530
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_b); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10531
 
  if (__pyx_1) {
 
11763
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_b); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11764
  if (__pyx_t_1) {
10532
11765
 
10533
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1053
 
11766
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1045
10534
11767
 * cdef _lower_bool(b):
10535
11768
 *     if b:
10536
11769
 *         return u"true"             # <<<<<<<<<<<<<<
10537
11770
 *     else:
10538
11771
 *         return u"false"
10539
11772
 */
10540
 
    Py_INCREF(((PyObject *)__pyx_kp_713));
10541
 
    __pyx_r = ((PyObject *)__pyx_kp_713);
 
11773
    __Pyx_XDECREF(__pyx_r);
 
11774
    __Pyx_INCREF(((PyObject *)__pyx_kp_778));
 
11775
    __pyx_r = ((PyObject *)__pyx_kp_778);
10542
11776
    goto __pyx_L0;
10543
11777
    goto __pyx_L3;
10544
11778
  }
10545
11779
  /*else*/ {
10546
11780
 
10547
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1055
 
11781
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1047
10548
11782
 *         return u"true"
10549
11783
 *     else:
10550
11784
 *         return u"false"             # <<<<<<<<<<<<<<
10551
11785
 * 
10552
11786
 * def __lower_bool(b):
10553
11787
 */
10554
 
    Py_INCREF(((PyObject *)__pyx_kp_714));
10555
 
    __pyx_r = ((PyObject *)__pyx_kp_714);
 
11788
    __Pyx_XDECREF(__pyx_r);
 
11789
    __Pyx_INCREF(((PyObject *)__pyx_kp_779));
 
11790
    __pyx_r = ((PyObject *)__pyx_kp_779);
10556
11791
    goto __pyx_L0;
10557
11792
  }
10558
11793
  __pyx_L3:;
10559
11794
 
10560
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11795
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10561
11796
  goto __pyx_L0;
10562
11797
  __pyx_L1_error:;
10563
11798
  __Pyx_AddTraceback("lxml.objectify._lower_bool");
10564
11799
  __pyx_r = 0;
10565
11800
  __pyx_L0:;
 
11801
  __Pyx_XGIVEREF(__pyx_r);
 
11802
  __Pyx_FinishRefcountContext();
10566
11803
  return __pyx_r;
10567
11804
}
10568
11805
 
10569
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1057
 
11806
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1049
10570
11807
 *         return u"false"
10571
11808
 * 
10572
11809
 * def __lower_bool(b):             # <<<<<<<<<<<<<<
10576
11813
 
10577
11814
static PyObject *__pyx_pf_4lxml_9objectify___lower_bool(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/
10578
11815
static PyObject *__pyx_pf_4lxml_9objectify___lower_bool(PyObject *__pyx_self, PyObject *__pyx_v_b) {
10579
 
  PyObject *__pyx_r;
10580
 
  PyObject *__pyx_1 = 0;
 
11816
  PyObject *__pyx_r = NULL;
 
11817
  PyObject *__pyx_t_1 = NULL;
 
11818
  __Pyx_SetupRefcountContext("__lower_bool");
10581
11819
  __pyx_self = __pyx_self;
10582
11820
 
10583
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1058
 
11821
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1050
10584
11822
 * 
10585
11823
 * def __lower_bool(b):
10586
11824
 *     return _lower_bool(b)             # <<<<<<<<<<<<<<
10587
11825
 * 
10588
11826
 * cdef _pytypename(obj):
10589
11827
 */
10590
 
  __pyx_1 = __pyx_f_4lxml_9objectify__lower_bool(__pyx_v_b); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10591
 
  __pyx_r = __pyx_1;
10592
 
  __pyx_1 = 0;
 
11828
  __Pyx_XDECREF(__pyx_r);
 
11829
  __pyx_t_1 = __pyx_f_4lxml_9objectify__lower_bool(__pyx_v_b); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11830
  __Pyx_GOTREF(__pyx_t_1);
 
11831
  __pyx_r = __pyx_t_1;
 
11832
  __pyx_t_1 = 0;
10593
11833
  goto __pyx_L0;
10594
11834
 
10595
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11835
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10596
11836
  goto __pyx_L0;
10597
11837
  __pyx_L1_error:;
10598
 
  Py_XDECREF(__pyx_1);
 
11838
  __Pyx_XDECREF(__pyx_t_1);
10599
11839
  __Pyx_AddTraceback("lxml.objectify.__lower_bool");
10600
11840
  __pyx_r = NULL;
10601
11841
  __pyx_L0:;
 
11842
  __Pyx_XGIVEREF(__pyx_r);
 
11843
  __Pyx_FinishRefcountContext();
10602
11844
  return __pyx_r;
10603
11845
}
10604
11846
 
10605
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1060
 
11847
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1052
10606
11848
 *     return _lower_bool(b)
10607
11849
 * 
10608
11850
 * cdef _pytypename(obj):             # <<<<<<<<<<<<<<
10611
11853
 */
10612
11854
 
10613
11855
static  PyObject *__pyx_f_4lxml_9objectify__pytypename(PyObject *__pyx_v_obj) {
10614
 
  PyObject *__pyx_r;
10615
 
  int __pyx_1;
10616
 
  PyObject *__pyx_2 = 0;
 
11856
  PyObject *__pyx_r = NULL;
 
11857
  int __pyx_t_1;
 
11858
  PyObject *__pyx_t_2 = NULL;
 
11859
  __Pyx_SetupRefcountContext("_pytypename");
10617
11860
 
10618
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1061
 
11861
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1053
10619
11862
 * 
10620
11863
 * cdef _pytypename(obj):
10621
11864
 *     if python._isString(obj):             # <<<<<<<<<<<<<<
10622
11865
 *         return u"str"
10623
11866
 *     else:
10624
11867
 */
10625
 
  __pyx_1 = _isString(__pyx_v_obj);
10626
 
  if (__pyx_1) {
 
11868
  __pyx_t_1 = _isString(__pyx_v_obj);
 
11869
  if (__pyx_t_1) {
10627
11870
 
10628
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1062
 
11871
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1054
10629
11872
 * cdef _pytypename(obj):
10630
11873
 *     if python._isString(obj):
10631
11874
 *         return u"str"             # <<<<<<<<<<<<<<
10632
11875
 *     else:
10633
11876
 *         return _typename(obj)
10634
11877
 */
10635
 
    Py_INCREF(((PyObject *)__pyx_kp_715));
10636
 
    __pyx_r = ((PyObject *)__pyx_kp_715);
 
11878
    __Pyx_XDECREF(__pyx_r);
 
11879
    __Pyx_INCREF(((PyObject *)__pyx_kp_780));
 
11880
    __pyx_r = ((PyObject *)__pyx_kp_780);
10637
11881
    goto __pyx_L0;
10638
11882
    goto __pyx_L3;
10639
11883
  }
10640
11884
  /*else*/ {
10641
11885
 
10642
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1064
 
11886
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1056
10643
11887
 *         return u"str"
10644
11888
 *     else:
10645
11889
 *         return _typename(obj)             # <<<<<<<<<<<<<<
10646
11890
 * 
10647
11891
 * def pytypename(obj):
10648
11892
 */
10649
 
    __pyx_2 = __pyx_f_4lxml_9objectify__typename(__pyx_v_obj); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1064; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10650
 
    __pyx_r = __pyx_2;
10651
 
    __pyx_2 = 0;
 
11893
    __Pyx_XDECREF(__pyx_r);
 
11894
    __pyx_t_2 = __pyx_f_4lxml_9objectify__typename(__pyx_v_obj); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1056; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11895
    __Pyx_GOTREF(__pyx_t_2);
 
11896
    __pyx_r = __pyx_t_2;
 
11897
    __pyx_t_2 = 0;
10652
11898
    goto __pyx_L0;
10653
11899
  }
10654
11900
  __pyx_L3:;
10655
11901
 
10656
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11902
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10657
11903
  goto __pyx_L0;
10658
11904
  __pyx_L1_error:;
10659
 
  Py_XDECREF(__pyx_2);
 
11905
  __Pyx_XDECREF(__pyx_t_2);
10660
11906
  __Pyx_AddTraceback("lxml.objectify._pytypename");
10661
11907
  __pyx_r = 0;
10662
11908
  __pyx_L0:;
 
11909
  __Pyx_XGIVEREF(__pyx_r);
 
11910
  __Pyx_FinishRefcountContext();
10663
11911
  return __pyx_r;
10664
11912
}
10665
11913
 
10666
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1066
 
11914
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1058
10667
11915
 *         return _typename(obj)
10668
11916
 * 
10669
11917
 * def pytypename(obj):             # <<<<<<<<<<<<<<
10674
11922
static PyObject *__pyx_pf_4lxml_9objectify_pytypename(PyObject *__pyx_self, PyObject *__pyx_v_obj); /*proto*/
10675
11923
static char __pyx_doc_4lxml_9objectify_pytypename[] = "pytypename(obj)\n\n    Find the name of the corresponding PyType for a Python object.\n    ";
10676
11924
static PyObject *__pyx_pf_4lxml_9objectify_pytypename(PyObject *__pyx_self, PyObject *__pyx_v_obj) {
10677
 
  PyObject *__pyx_r;
10678
 
  PyObject *__pyx_1 = 0;
 
11925
  PyObject *__pyx_r = NULL;
 
11926
  PyObject *__pyx_t_1 = NULL;
 
11927
  __Pyx_SetupRefcountContext("pytypename");
10679
11928
  __pyx_self = __pyx_self;
10680
11929
 
10681
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1071
 
11930
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1063
10682
11931
 *     Find the name of the corresponding PyType for a Python object.
10683
11932
 *     """
10684
11933
 *     return _pytypename(obj)             # <<<<<<<<<<<<<<
10685
11934
 * 
10686
11935
 * cdef _registerPyTypes():
10687
11936
 */
10688
 
  __pyx_1 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v_obj); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10689
 
  __pyx_r = __pyx_1;
10690
 
  __pyx_1 = 0;
 
11937
  __Pyx_XDECREF(__pyx_r);
 
11938
  __pyx_t_1 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v_obj); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1063; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11939
  __Pyx_GOTREF(__pyx_t_1);
 
11940
  __pyx_r = __pyx_t_1;
 
11941
  __pyx_t_1 = 0;
10691
11942
  goto __pyx_L0;
10692
11943
 
10693
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
11944
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
10694
11945
  goto __pyx_L0;
10695
11946
  __pyx_L1_error:;
10696
 
  Py_XDECREF(__pyx_1);
 
11947
  __Pyx_XDECREF(__pyx_t_1);
10697
11948
  __Pyx_AddTraceback("lxml.objectify.pytypename");
10698
11949
  __pyx_r = NULL;
10699
11950
  __pyx_L0:;
 
11951
  __Pyx_XGIVEREF(__pyx_r);
 
11952
  __Pyx_FinishRefcountContext();
10700
11953
  return __pyx_r;
10701
11954
}
10702
11955
 
10703
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1073
 
11956
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1065
10704
11957
 *     return _pytypename(obj)
10705
11958
 * 
10706
11959
 * cdef _registerPyTypes():             # <<<<<<<<<<<<<<
10710
11963
 
10711
11964
static  PyObject *__pyx_f_4lxml_9objectify__registerPyTypes(void) {
10712
11965
  PyObject *__pyx_v_pytype;
10713
 
  PyObject *__pyx_r;
 
11966
  PyObject *__pyx_r = NULL;
10714
11967
  PyObject *__pyx_1 = 0;
10715
11968
  PyObject *__pyx_2 = 0;
10716
 
  PyObject *__pyx_3 = 0;
10717
 
  __pyx_v_pytype = Py_None; Py_INCREF(Py_None);
 
11969
  PyObject *__pyx_t_1 = NULL;
 
11970
  PyObject *__pyx_t_2 = NULL;
 
11971
  __Pyx_SetupRefcountContext("_registerPyTypes");
 
11972
  __pyx_v_pytype = Py_None; __Pyx_INCREF(Py_None);
10718
11973
 
10719
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1074
 
11974
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1066
10720
11975
 * 
10721
11976
 * cdef _registerPyTypes():
10722
11977
 *     pytype = PyType(u'int', int, IntElement)             # <<<<<<<<<<<<<<
10723
11978
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",
10724
11979
 *                              u"unsignedByte", u"nonPositiveInteger",
10725
11980
 */
10726
 
  __pyx_1 = PyTuple_New(3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10727
 
  Py_INCREF(((PyObject *)__pyx_kp_716));
10728
 
  PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)__pyx_kp_716));
10729
 
  Py_INCREF(((PyObject *)((PyObject*)&PyInt_Type)));
10730
 
  PyTuple_SET_ITEM(__pyx_1, 1, ((PyObject *)((PyObject*)&PyInt_Type)));
10731
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
10732
 
  PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
10733
 
  __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10734
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
10735
 
  Py_DECREF(__pyx_v_pytype);
10736
 
  __pyx_v_pytype = __pyx_2;
10737
 
  __pyx_2 = 0;
 
11981
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11982
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
11983
  __Pyx_INCREF(((PyObject *)__pyx_kp_781));
 
11984
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_781));
 
11985
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_781));
 
11986
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyInt_Type)));
 
11987
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)((PyObject*)&PyInt_Type)));
 
11988
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyInt_Type)));
 
11989
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
11990
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
11991
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
11992
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1066; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
11993
  __Pyx_GOTREF(__pyx_t_2);
 
11994
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
11995
  __Pyx_DECREF(__pyx_v_pytype);
 
11996
  __pyx_v_pytype = __pyx_t_2;
 
11997
  __pyx_t_2 = 0;
10738
11998
 
10739
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1078
 
11999
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1070
10740
12000
 *                              u"unsignedByte", u"nonPositiveInteger",
10741
12001
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
10742
12002
 *                              u"unsignedLong", u"unsignedInt", u"positiveInteger",)             # <<<<<<<<<<<<<<
10743
12003
 *     pytype.register()
10744
12004
 * 
10745
12005
 */
10746
 
  __pyx_1 = PyTuple_New(13); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10747
 
  Py_INCREF(((PyObject *)__pyx_kp_717));
10748
 
  PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)__pyx_kp_717));
10749
 
  Py_INCREF(((PyObject *)__pyx_kp_718));
10750
 
  PyTuple_SET_ITEM(__pyx_1, 1, ((PyObject *)__pyx_kp_718));
10751
 
  Py_INCREF(((PyObject *)__pyx_kp_719));
10752
 
  PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject *)__pyx_kp_719));
10753
 
  Py_INCREF(((PyObject *)__pyx_kp_720));
10754
 
  PyTuple_SET_ITEM(__pyx_1, 3, ((PyObject *)__pyx_kp_720));
10755
 
  Py_INCREF(((PyObject *)__pyx_kp_721));
10756
 
  PyTuple_SET_ITEM(__pyx_1, 4, ((PyObject *)__pyx_kp_721));
10757
 
  Py_INCREF(((PyObject *)__pyx_kp_722));
10758
 
  PyTuple_SET_ITEM(__pyx_1, 5, ((PyObject *)__pyx_kp_722));
10759
 
  Py_INCREF(((PyObject *)__pyx_kp_723));
10760
 
  PyTuple_SET_ITEM(__pyx_1, 6, ((PyObject *)__pyx_kp_723));
10761
 
  Py_INCREF(((PyObject *)__pyx_kp_724));
10762
 
  PyTuple_SET_ITEM(__pyx_1, 7, ((PyObject *)__pyx_kp_724));
10763
 
  Py_INCREF(((PyObject *)__pyx_kp_725));
10764
 
  PyTuple_SET_ITEM(__pyx_1, 8, ((PyObject *)__pyx_kp_725));
10765
 
  Py_INCREF(((PyObject *)__pyx_kp_726));
10766
 
  PyTuple_SET_ITEM(__pyx_1, 9, ((PyObject *)__pyx_kp_726));
10767
 
  Py_INCREF(((PyObject *)__pyx_kp_727));
10768
 
  PyTuple_SET_ITEM(__pyx_1, 10, ((PyObject *)__pyx_kp_727));
10769
 
  Py_INCREF(((PyObject *)__pyx_kp_728));
10770
 
  PyTuple_SET_ITEM(__pyx_1, 11, ((PyObject *)__pyx_kp_728));
10771
 
  Py_INCREF(((PyObject *)__pyx_kp_729));
10772
 
  PyTuple_SET_ITEM(__pyx_1, 12, ((PyObject *)__pyx_kp_729));
 
12006
  __pyx_t_2 = PyTuple_New(13); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12007
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12008
  __Pyx_INCREF(((PyObject *)__pyx_kp_782));
 
12009
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_782));
 
12010
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_782));
 
12011
  __Pyx_INCREF(((PyObject *)__pyx_kp_783));
 
12012
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_783));
 
12013
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_783));
 
12014
  __Pyx_INCREF(((PyObject *)__pyx_kp_784));
 
12015
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_784));
 
12016
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_784));
 
12017
  __Pyx_INCREF(((PyObject *)__pyx_kp_785));
 
12018
  PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_kp_785));
 
12019
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_785));
 
12020
  __Pyx_INCREF(((PyObject *)__pyx_kp_786));
 
12021
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_786));
 
12022
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_786));
 
12023
  __Pyx_INCREF(((PyObject *)__pyx_kp_787));
 
12024
  PyTuple_SET_ITEM(__pyx_t_2, 5, ((PyObject *)__pyx_kp_787));
 
12025
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_787));
 
12026
  __Pyx_INCREF(((PyObject *)__pyx_kp_788));
 
12027
  PyTuple_SET_ITEM(__pyx_t_2, 6, ((PyObject *)__pyx_kp_788));
 
12028
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_788));
 
12029
  __Pyx_INCREF(((PyObject *)__pyx_kp_789));
 
12030
  PyTuple_SET_ITEM(__pyx_t_2, 7, ((PyObject *)__pyx_kp_789));
 
12031
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_789));
 
12032
  __Pyx_INCREF(((PyObject *)__pyx_kp_790));
 
12033
  PyTuple_SET_ITEM(__pyx_t_2, 8, ((PyObject *)__pyx_kp_790));
 
12034
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_790));
 
12035
  __Pyx_INCREF(((PyObject *)__pyx_kp_791));
 
12036
  PyTuple_SET_ITEM(__pyx_t_2, 9, ((PyObject *)__pyx_kp_791));
 
12037
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_791));
 
12038
  __Pyx_INCREF(((PyObject *)__pyx_kp_792));
 
12039
  PyTuple_SET_ITEM(__pyx_t_2, 10, ((PyObject *)__pyx_kp_792));
 
12040
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_792));
 
12041
  __Pyx_INCREF(((PyObject *)__pyx_kp_793));
 
12042
  PyTuple_SET_ITEM(__pyx_t_2, 11, ((PyObject *)__pyx_kp_793));
 
12043
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_793));
 
12044
  __Pyx_INCREF(((PyObject *)__pyx_kp_794));
 
12045
  PyTuple_SET_ITEM(__pyx_t_2, 12, ((PyObject *)__pyx_kp_794));
 
12046
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_794));
10773
12047
 
10774
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1075
 
12048
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1067
10775
12049
 * cdef _registerPyTypes():
10776
12050
 *     pytype = PyType(u'int', int, IntElement)
10777
12051
 *     pytype.xmlSchemaTypes = (u"integer", u"int", u"short", u"byte", u"unsignedShort",             # <<<<<<<<<<<<<<
10778
12052
 *                              u"unsignedByte", u"nonPositiveInteger",
10779
12053
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
10780
12054
 */
10781
 
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10782
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
12055
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12056
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
10783
12057
 
10784
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1079
 
12058
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1071
10785
12059
 *                              u"negativeInteger", u"long", u"nonNegativeInteger",
10786
12060
 *                              u"unsignedLong", u"unsignedInt", u"positiveInteger",)
10787
12061
 *     pytype.register()             # <<<<<<<<<<<<<<
10788
12062
 * 
10789
12063
 *     # 'long' type just for backwards compatibility
10790
12064
 */
10791
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10792
 
  __pyx_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10793
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
10794
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12065
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12066
  __Pyx_GOTREF(__pyx_t_2);
 
12067
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12068
  __Pyx_GOTREF(__pyx_t_1);
 
12069
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12070
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10795
12071
 
10796
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1082
 
12072
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1074
10797
12073
 * 
10798
12074
 *     # 'long' type just for backwards compatibility
10799
12075
 *     pytype = PyType(u'long', None, IntElement)             # <<<<<<<<<<<<<<
10800
12076
 *     pytype.register()
10801
12077
 * 
10802
12078
 */
10803
 
  __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10804
 
  Py_INCREF(((PyObject *)__pyx_kp_730));
10805
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_730));
10806
 
  Py_INCREF(Py_None);
10807
 
  PyTuple_SET_ITEM(__pyx_2, 1, Py_None);
10808
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
10809
 
  PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
10810
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10811
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
10812
 
  Py_DECREF(__pyx_v_pytype);
10813
 
  __pyx_v_pytype = __pyx_1;
10814
 
  __pyx_1 = 0;
 
12079
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12080
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12081
  __Pyx_INCREF(((PyObject *)__pyx_kp_795));
 
12082
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_795));
 
12083
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_795));
 
12084
  __Pyx_INCREF(Py_None);
 
12085
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
12086
  __Pyx_GIVEREF(Py_None);
 
12087
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
12088
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
12089
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_IntElement)));
 
12090
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12091
  __Pyx_GOTREF(__pyx_t_2);
 
12092
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12093
  __Pyx_DECREF(__pyx_v_pytype);
 
12094
  __pyx_v_pytype = __pyx_t_2;
 
12095
  __pyx_t_2 = 0;
10815
12096
 
10816
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1083
 
12097
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1075
10817
12098
 *     # 'long' type just for backwards compatibility
10818
12099
 *     pytype = PyType(u'long', None, IntElement)
10819
12100
 *     pytype.register()             # <<<<<<<<<<<<<<
10820
12101
 * 
10821
12102
 *     pytype = PyType(u'float', float, FloatElement)
10822
12103
 */
10823
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10824
 
  __pyx_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10825
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
10826
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12104
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12105
  __Pyx_GOTREF(__pyx_t_2);
 
12106
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12107
  __Pyx_GOTREF(__pyx_t_1);
 
12108
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12109
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10827
12110
 
10828
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1085
 
12111
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1077
10829
12112
 *     pytype.register()
10830
12113
 * 
10831
12114
 *     pytype = PyType(u'float', float, FloatElement)             # <<<<<<<<<<<<<<
10832
12115
 *     pytype.xmlSchemaTypes = (u"double", u"float")
10833
12116
 *     pytype.register()
10834
12117
 */
10835
 
  __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10836
 
  Py_INCREF(((PyObject *)__pyx_kp_731));
10837
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_731));
10838
 
  Py_INCREF(((PyObject *)((PyObject*)&PyFloat_Type)));
10839
 
  PyTuple_SET_ITEM(__pyx_2, 1, ((PyObject *)((PyObject*)&PyFloat_Type)));
10840
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_FloatElement)));
10841
 
  PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_FloatElement)));
10842
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10843
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
10844
 
  Py_DECREF(__pyx_v_pytype);
10845
 
  __pyx_v_pytype = __pyx_1;
10846
 
  __pyx_1 = 0;
 
12118
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12119
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12120
  __Pyx_INCREF(((PyObject *)__pyx_kp_796));
 
12121
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_796));
 
12122
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_796));
 
12123
  __Pyx_INCREF(((PyObject *)((PyObject*)&PyFloat_Type)));
 
12124
  PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)((PyObject*)&PyFloat_Type)));
 
12125
  __Pyx_GIVEREF(((PyObject *)((PyObject*)&PyFloat_Type)));
 
12126
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_FloatElement)));
 
12127
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_FloatElement)));
 
12128
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_FloatElement)));
 
12129
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1077; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12130
  __Pyx_GOTREF(__pyx_t_2);
 
12131
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12132
  __Pyx_DECREF(__pyx_v_pytype);
 
12133
  __pyx_v_pytype = __pyx_t_2;
 
12134
  __pyx_t_2 = 0;
10847
12135
 
10848
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1086
 
12136
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1078
10849
12137
 * 
10850
12138
 *     pytype = PyType(u'float', float, FloatElement)
10851
12139
 *     pytype.xmlSchemaTypes = (u"double", u"float")             # <<<<<<<<<<<<<<
10852
12140
 *     pytype.register()
10853
12141
 * 
10854
12142
 */
10855
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10856
 
  Py_INCREF(((PyObject *)__pyx_kp_732));
10857
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_732));
10858
 
  Py_INCREF(((PyObject *)__pyx_kp_733));
10859
 
  PyTuple_SET_ITEM(__pyx_2, 1, ((PyObject *)__pyx_kp_733));
10860
 
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10861
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
 
12143
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12144
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12145
  __Pyx_INCREF(((PyObject *)__pyx_kp_797));
 
12146
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_797));
 
12147
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_797));
 
12148
  __Pyx_INCREF(((PyObject *)__pyx_kp_798));
 
12149
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_798));
 
12150
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_798));
 
12151
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12152
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
10862
12153
 
10863
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1087
 
12154
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1079
10864
12155
 *     pytype = PyType(u'float', float, FloatElement)
10865
12156
 *     pytype.xmlSchemaTypes = (u"double", u"float")
10866
12157
 *     pytype.register()             # <<<<<<<<<<<<<<
10867
12158
 * 
10868
12159
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
10869
12160
 */
10870
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10871
 
  __pyx_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10872
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
10873
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
12161
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12162
  __Pyx_GOTREF(__pyx_t_2);
 
12163
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1079; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12164
  __Pyx_GOTREF(__pyx_t_1);
 
12165
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12166
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10874
12167
 
10875
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1089
 
12168
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1081
10876
12169
 *     pytype.register()
10877
12170
 * 
10878
12171
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)             # <<<<<<<<<<<<<<
10879
12172
 *     pytype.xmlSchemaTypes = (u"boolean",)
10880
12173
 *     pytype.register()
10881
12174
 */
10882
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp___checkBool); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10883
 
  __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp___lower_bool); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10884
 
  __pyx_3 = PyTuple_New(4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10885
 
  Py_INCREF(((PyObject *)__pyx_kp_734));
10886
 
  PyTuple_SET_ITEM(__pyx_3, 0, ((PyObject *)__pyx_kp_734));
10887
 
  PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1);
10888
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_BoolElement)));
10889
 
  PyTuple_SET_ITEM(__pyx_3, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_BoolElement)));
10890
 
  PyTuple_SET_ITEM(__pyx_3, 3, __pyx_2);
 
12175
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp___checkBool); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12176
  __Pyx_GOTREF(__pyx_1);
 
12177
  __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp___lower_bool); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12178
  __Pyx_GOTREF(__pyx_2);
 
12179
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12180
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12181
  __Pyx_INCREF(((PyObject *)__pyx_kp_799));
 
12182
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_799));
 
12183
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_799));
 
12184
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_1);
 
12185
  __Pyx_GIVEREF(__pyx_1);
 
12186
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_BoolElement)));
 
12187
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_BoolElement)));
 
12188
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_BoolElement)));
 
12189
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_2);
 
12190
  __Pyx_GIVEREF(__pyx_2);
10891
12191
  __pyx_1 = 0;
10892
12192
  __pyx_2 = 0;
10893
 
  __pyx_1 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10894
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
10895
 
  Py_DECREF(__pyx_v_pytype);
10896
 
  __pyx_v_pytype = __pyx_1;
10897
 
  __pyx_1 = 0;
 
12193
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12194
  __Pyx_GOTREF(__pyx_t_2);
 
12195
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12196
  __Pyx_DECREF(__pyx_v_pytype);
 
12197
  __pyx_v_pytype = __pyx_t_2;
 
12198
  __pyx_t_2 = 0;
10898
12199
 
10899
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1090
 
12200
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1082
10900
12201
 * 
10901
12202
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
10902
12203
 *     pytype.xmlSchemaTypes = (u"boolean",)             # <<<<<<<<<<<<<<
10903
12204
 *     pytype.register()
10904
12205
 * 
10905
12206
 */
10906
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1090; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10907
 
  Py_INCREF(((PyObject *)__pyx_kp_735));
10908
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_735));
10909
 
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1090; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10910
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
 
12207
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12208
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12209
  __Pyx_INCREF(((PyObject *)__pyx_kp_800));
 
12210
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_800));
 
12211
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_800));
 
12212
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1082; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12213
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
10911
12214
 
10912
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1091
 
12215
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1083
10913
12216
 *     pytype = PyType(u'bool', __checkBool, BoolElement, __lower_bool)
10914
12217
 *     pytype.xmlSchemaTypes = (u"boolean",)
10915
12218
 *     pytype.register()             # <<<<<<<<<<<<<<
10916
12219
 * 
10917
12220
 *     pytype = PyType(u'str', None, StringElement)
10918
12221
 */
10919
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10920
 
  __pyx_1 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10921
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
10922
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12222
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12223
  __Pyx_GOTREF(__pyx_t_2);
 
12224
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12225
  __Pyx_GOTREF(__pyx_t_1);
 
12226
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12227
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10923
12228
 
10924
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1093
 
12229
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1085
10925
12230
 *     pytype.register()
10926
12231
 * 
10927
12232
 *     pytype = PyType(u'str', None, StringElement)             # <<<<<<<<<<<<<<
10928
12233
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",
10929
12234
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
10930
12235
 */
10931
 
  __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1093; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10932
 
  Py_INCREF(((PyObject *)__pyx_kp_736));
10933
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_736));
10934
 
  Py_INCREF(Py_None);
10935
 
  PyTuple_SET_ITEM(__pyx_2, 1, Py_None);
10936
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
10937
 
  PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
10938
 
  __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1093; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10939
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
10940
 
  Py_DECREF(__pyx_v_pytype);
10941
 
  __pyx_v_pytype = __pyx_3;
10942
 
  __pyx_3 = 0;
 
12236
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12237
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12238
  __Pyx_INCREF(((PyObject *)__pyx_kp_801));
 
12239
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_801));
 
12240
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_801));
 
12241
  __Pyx_INCREF(Py_None);
 
12242
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
12243
  __Pyx_GIVEREF(Py_None);
 
12244
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
 
12245
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
 
12246
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
 
12247
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12248
  __Pyx_GOTREF(__pyx_t_2);
 
12249
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12250
  __Pyx_DECREF(__pyx_v_pytype);
 
12251
  __pyx_v_pytype = __pyx_t_2;
 
12252
  __pyx_t_2 = 0;
10943
12253
 
10944
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1096
 
12254
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1088
10945
12255
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",
10946
12256
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
10947
12257
 *                              u"NMTOKEN", )             # <<<<<<<<<<<<<<
10948
12258
 *     pytype.register()
10949
12259
 * 
10950
12260
 */
10951
 
  __pyx_1 = PyTuple_New(10); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10952
 
  Py_INCREF(((PyObject *)__pyx_kp_737));
10953
 
  PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)__pyx_kp_737));
10954
 
  Py_INCREF(((PyObject *)__pyx_kp_738));
10955
 
  PyTuple_SET_ITEM(__pyx_1, 1, ((PyObject *)__pyx_kp_738));
10956
 
  Py_INCREF(((PyObject *)__pyx_kp_739));
10957
 
  PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject *)__pyx_kp_739));
10958
 
  Py_INCREF(((PyObject *)__pyx_kp_740));
10959
 
  PyTuple_SET_ITEM(__pyx_1, 3, ((PyObject *)__pyx_kp_740));
10960
 
  Py_INCREF(((PyObject *)__pyx_kp_741));
10961
 
  PyTuple_SET_ITEM(__pyx_1, 4, ((PyObject *)__pyx_kp_741));
10962
 
  Py_INCREF(((PyObject *)__pyx_kp_742));
10963
 
  PyTuple_SET_ITEM(__pyx_1, 5, ((PyObject *)__pyx_kp_742));
10964
 
  Py_INCREF(((PyObject *)__pyx_kp_743));
10965
 
  PyTuple_SET_ITEM(__pyx_1, 6, ((PyObject *)__pyx_kp_743));
10966
 
  Py_INCREF(((PyObject *)__pyx_kp_744));
10967
 
  PyTuple_SET_ITEM(__pyx_1, 7, ((PyObject *)__pyx_kp_744));
10968
 
  Py_INCREF(((PyObject *)__pyx_kp_745));
10969
 
  PyTuple_SET_ITEM(__pyx_1, 8, ((PyObject *)__pyx_kp_745));
10970
 
  Py_INCREF(((PyObject *)__pyx_kp_746));
10971
 
  PyTuple_SET_ITEM(__pyx_1, 9, ((PyObject *)__pyx_kp_746));
 
12261
  __pyx_t_2 = PyTuple_New(10); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12262
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
12263
  __Pyx_INCREF(((PyObject *)__pyx_kp_802));
 
12264
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_802));
 
12265
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_802));
 
12266
  __Pyx_INCREF(((PyObject *)__pyx_kp_803));
 
12267
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_803));
 
12268
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_803));
 
12269
  __Pyx_INCREF(((PyObject *)__pyx_kp_804));
 
12270
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_804));
 
12271
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_804));
 
12272
  __Pyx_INCREF(((PyObject *)__pyx_kp_805));
 
12273
  PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_kp_805));
 
12274
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_805));
 
12275
  __Pyx_INCREF(((PyObject *)__pyx_kp_806));
 
12276
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_806));
 
12277
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_806));
 
12278
  __Pyx_INCREF(((PyObject *)__pyx_kp_807));
 
12279
  PyTuple_SET_ITEM(__pyx_t_2, 5, ((PyObject *)__pyx_kp_807));
 
12280
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_807));
 
12281
  __Pyx_INCREF(((PyObject *)__pyx_kp_808));
 
12282
  PyTuple_SET_ITEM(__pyx_t_2, 6, ((PyObject *)__pyx_kp_808));
 
12283
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_808));
 
12284
  __Pyx_INCREF(((PyObject *)__pyx_kp_809));
 
12285
  PyTuple_SET_ITEM(__pyx_t_2, 7, ((PyObject *)__pyx_kp_809));
 
12286
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_809));
 
12287
  __Pyx_INCREF(((PyObject *)__pyx_kp_810));
 
12288
  PyTuple_SET_ITEM(__pyx_t_2, 8, ((PyObject *)__pyx_kp_810));
 
12289
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_810));
 
12290
  __Pyx_INCREF(((PyObject *)__pyx_kp_811));
 
12291
  PyTuple_SET_ITEM(__pyx_t_2, 9, ((PyObject *)__pyx_kp_811));
 
12292
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_811));
10972
12293
 
10973
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1094
 
12294
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1086
10974
12295
 * 
10975
12296
 *     pytype = PyType(u'str', None, StringElement)
10976
12297
 *     pytype.xmlSchemaTypes = (u"string", u"normalizedString", u"token", u"language",             # <<<<<<<<<<<<<<
10977
12298
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
10978
12299
 *                              u"NMTOKEN", )
10979
12300
 */
10980
 
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10981
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
12301
  if (PyObject_SetAttr(__pyx_v_pytype, __pyx_kp_xmlSchemaTypes, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12302
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
10982
12303
 
10983
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1097
 
12304
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1089
10984
12305
 *                              u"Name", u"NCName", u"ID", u"IDREF", u"ENTITY",
10985
12306
 *                              u"NMTOKEN", )
10986
12307
 *     pytype.register()             # <<<<<<<<<<<<<<
10987
12308
 * 
10988
12309
 *     # since lxml 2.0
10989
12310
 */
10990
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10991
 
  __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10992
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
10993
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
12311
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12312
  __Pyx_GOTREF(__pyx_t_2);
 
12313
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12314
  __Pyx_GOTREF(__pyx_t_1);
 
12315
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12316
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10994
12317
 
10995
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1100
 
12318
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1092
10996
12319
 * 
10997
12320
 *     # since lxml 2.0
10998
12321
 *     pytype = PyType(u'NoneType', None, NoneElement)             # <<<<<<<<<<<<<<
10999
12322
 *     pytype.register()
11000
12323
 * 
11001
12324
 */
11002
 
  __pyx_1 = PyTuple_New(3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11003
 
  Py_INCREF(((PyObject *)__pyx_kp_747));
11004
 
  PyTuple_SET_ITEM(__pyx_1, 0, ((PyObject *)__pyx_kp_747));
11005
 
  Py_INCREF(Py_None);
11006
 
  PyTuple_SET_ITEM(__pyx_1, 1, Py_None);
11007
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
11008
 
  PyTuple_SET_ITEM(__pyx_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
11009
 
  __pyx_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11010
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
11011
 
  Py_DECREF(__pyx_v_pytype);
11012
 
  __pyx_v_pytype = __pyx_2;
11013
 
  __pyx_2 = 0;
 
12325
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1092; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12326
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12327
  __Pyx_INCREF(((PyObject *)__pyx_kp_812));
 
12328
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_812));
 
12329
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_812));
 
12330
  __Pyx_INCREF(Py_None);
 
12331
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
12332
  __Pyx_GIVEREF(Py_None);
 
12333
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12334
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12335
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12336
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1092; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12337
  __Pyx_GOTREF(__pyx_t_2);
 
12338
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12339
  __Pyx_DECREF(__pyx_v_pytype);
 
12340
  __pyx_v_pytype = __pyx_t_2;
 
12341
  __pyx_t_2 = 0;
11014
12342
 
11015
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1101
 
12343
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1093
11016
12344
 *     # since lxml 2.0
11017
12345
 *     pytype = PyType(u'NoneType', None, NoneElement)
11018
12346
 *     pytype.register()             # <<<<<<<<<<<<<<
11019
12347
 * 
11020
12348
 *     # backwards compatibility
11021
12349
 */
11022
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11023
 
  __pyx_1 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11024
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
11025
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12350
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1093; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12351
  __Pyx_GOTREF(__pyx_t_2);
 
12352
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1093; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12353
  __Pyx_GOTREF(__pyx_t_1);
 
12354
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12355
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11026
12356
 
11027
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1104
 
12357
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1096
11028
12358
 * 
11029
12359
 *     # backwards compatibility
11030
12360
 *     pytype = PyType(u'none', None, NoneElement)             # <<<<<<<<<<<<<<
11031
12361
 *     pytype.register()
11032
12362
 * 
11033
12363
 */
11034
 
  __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11035
 
  Py_INCREF(((PyObject *)__pyx_kp_748));
11036
 
  PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_748));
11037
 
  Py_INCREF(Py_None);
11038
 
  PyTuple_SET_ITEM(__pyx_2, 1, Py_None);
11039
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
11040
 
  PyTuple_SET_ITEM(__pyx_2, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
11041
 
  __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11042
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
11043
 
  Py_DECREF(__pyx_v_pytype);
11044
 
  __pyx_v_pytype = __pyx_3;
11045
 
  __pyx_3 = 0;
 
12364
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12365
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12366
  __Pyx_INCREF(((PyObject *)__pyx_kp_813));
 
12367
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_813));
 
12368
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_813));
 
12369
  __Pyx_INCREF(Py_None);
 
12370
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
12371
  __Pyx_GIVEREF(Py_None);
 
12372
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12373
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12374
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
12375
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1096; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12376
  __Pyx_GOTREF(__pyx_t_2);
 
12377
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
12378
  __Pyx_DECREF(__pyx_v_pytype);
 
12379
  __pyx_v_pytype = __pyx_t_2;
 
12380
  __pyx_t_2 = 0;
11046
12381
 
11047
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1105
 
12382
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1097
11048
12383
 *     # backwards compatibility
11049
12384
 *     pytype = PyType(u'none', None, NoneElement)
11050
12385
 *     pytype.register()             # <<<<<<<<<<<<<<
11051
12386
 * 
11052
12387
 * # non-registered PyType for inner tree elements
11053
12388
 */
11054
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11055
 
  __pyx_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11056
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
11057
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
12389
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_register); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12390
  __Pyx_GOTREF(__pyx_t_2);
 
12391
  __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12392
  __Pyx_GOTREF(__pyx_t_1);
 
12393
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
12394
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11058
12395
 
11059
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
12396
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11060
12397
  goto __pyx_L0;
11061
12398
  __pyx_L1_error:;
11062
 
  Py_XDECREF(__pyx_1);
11063
 
  Py_XDECREF(__pyx_2);
11064
 
  Py_XDECREF(__pyx_3);
 
12399
  __Pyx_XDECREF(__pyx_1);
 
12400
  __Pyx_XDECREF(__pyx_2);
 
12401
  __Pyx_XDECREF(__pyx_t_1);
 
12402
  __Pyx_XDECREF(__pyx_t_2);
11065
12403
  __Pyx_AddTraceback("lxml.objectify._registerPyTypes");
11066
12404
  __pyx_r = 0;
11067
12405
  __pyx_L0:;
11068
 
  Py_DECREF(__pyx_v_pytype);
 
12406
  __Pyx_DECREF(__pyx_v_pytype);
 
12407
  __Pyx_XGIVEREF(__pyx_r);
 
12408
  __Pyx_FinishRefcountContext();
11069
12409
  return __pyx_r;
11070
12410
}
11071
12411
 
11072
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1113
 
12412
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1105
11073
12413
 * _registerPyTypes()
11074
12414
 * 
11075
12415
 * def getRegisteredTypes():             # <<<<<<<<<<<<<<
11080
12420
static PyObject *__pyx_pf_4lxml_9objectify_getRegisteredTypes(PyObject *__pyx_self, PyObject *unused); /*proto*/
11081
12421
static char __pyx_doc_4lxml_9objectify_getRegisteredTypes[] = "getRegisteredTypes()\n\n    Returns a list of the currently registered PyType objects.\n\n    To add a new type, retrieve this list and call unregister() for all\n    entries.  Then add the new type at a suitable position (possibly replacing\n    an existing one) and call register() for all entries.\n\n    This is necessary if the new type interferes with the type check functions\n    of existing ones (normally only int/float/bool) and must the tried before\n    other types.  To add a type that is not yet parsable by the current type\n    check functions, you can simply register() it, which will append it to the\n    end of the type list.\n    ";
11082
12422
static PyObject *__pyx_pf_4lxml_9objectify_getRegisteredTypes(PyObject *__pyx_self, PyObject *unused) {
11083
 
  PyObject *__pyx_v_types;
11084
 
  PyObject *__pyx_v_known;
11085
 
  PyObject *__pyx_v_add_to_known;
 
12423
  PyObject *__pyx_v_types = 0;
 
12424
  PyObject *__pyx_v_known = 0;
11086
12425
  PyObject *__pyx_v_check;
11087
12426
  PyObject *__pyx_v_pytype;
11088
12427
  PyObject *__pyx_v_name;
11089
 
  PyObject *__pyx_r;
 
12428
  PyObject *__pyx_r = NULL;
11090
12429
  PyObject *__pyx_1 = 0;
11091
 
  Py_ssize_t __pyx_2 = 0;
 
12430
  PyObject *__pyx_2 = 0;
11092
12431
  PyObject *__pyx_3 = 0;
11093
 
  PyObject *__pyx_4 = 0;
11094
 
  PyObject *__pyx_5 = 0;
11095
 
  int __pyx_6;
11096
 
  int __pyx_7;
 
12432
  PyObject *__pyx_t_1 = NULL;
 
12433
  Py_ssize_t __pyx_t_2;
 
12434
  PyObject *__pyx_t_3 = NULL;
 
12435
  int __pyx_t_4;
 
12436
  int __pyx_t_5;
 
12437
  __Pyx_SetupRefcountContext("getRegisteredTypes");
11097
12438
  __pyx_self = __pyx_self;
11098
 
  __pyx_v_types = Py_None; Py_INCREF(Py_None);
11099
 
  __pyx_v_known = Py_None; Py_INCREF(Py_None);
11100
 
  __pyx_v_add_to_known = Py_None; Py_INCREF(Py_None);
11101
 
  __pyx_v_check = Py_None; Py_INCREF(Py_None);
11102
 
  __pyx_v_pytype = Py_None; Py_INCREF(Py_None);
11103
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
 
12439
  __pyx_v_check = Py_None; __Pyx_INCREF(Py_None);
 
12440
  __pyx_v_pytype = Py_None; __Pyx_INCREF(Py_None);
 
12441
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
11104
12442
 
11105
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1128
 
12443
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1120
11106
12444
 *     end of the type list.
11107
12445
 *     """
11108
 
 *     types = []             # <<<<<<<<<<<<<<
11109
 
 *     known = set()
11110
 
 *     add_to_known = known.add
 
12446
 *     cdef list types = []             # <<<<<<<<<<<<<<
 
12447
 *     cdef set known = set()
 
12448
 *     for check, pytype in _TYPE_CHECKS:
11111
12449
 */
11112
 
  __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11113
 
  Py_DECREF(__pyx_v_types);
11114
 
  __pyx_v_types = ((PyObject *)__pyx_1);
11115
 
  __pyx_1 = 0;
 
12450
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12451
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12452
  __pyx_v_types = __pyx_t_1;
 
12453
  __pyx_t_1 = 0;
11116
12454
 
11117
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1129
 
12455
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1121
11118
12456
 *     """
11119
 
 *     types = []
11120
 
 *     known = set()             # <<<<<<<<<<<<<<
11121
 
 *     add_to_known = known.add
11122
 
 *     for check, pytype in _TYPE_CHECKS:
11123
 
 */
11124
 
  __pyx_1 = PyObject_Call(__pyx_v_4lxml_9objectify_set, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11125
 
  Py_DECREF(__pyx_v_known);
11126
 
  __pyx_v_known = __pyx_1;
11127
 
  __pyx_1 = 0;
11128
 
 
11129
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1130
11130
 
 *     types = []
11131
 
 *     known = set()
11132
 
 *     add_to_known = known.add             # <<<<<<<<<<<<<<
 
12457
 *     cdef list types = []
 
12458
 *     cdef set known = set()             # <<<<<<<<<<<<<<
11133
12459
 *     for check, pytype in _TYPE_CHECKS:
11134
12460
 *         name = pytype.name
11135
12461
 */
11136
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_known, __pyx_kp_add); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11137
 
  Py_DECREF(__pyx_v_add_to_known);
11138
 
  __pyx_v_add_to_known = __pyx_1;
11139
 
  __pyx_1 = 0;
 
12462
  __pyx_t_1 = PySet_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12463
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
12464
  __pyx_v_known = __pyx_t_1;
 
12465
  __pyx_t_1 = 0;
11140
12466
 
11141
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1131
11142
 
 *     known = set()
11143
 
 *     add_to_known = known.add
 
12467
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1122
 
12468
 *     cdef list types = []
 
12469
 *     cdef set known = set()
11144
12470
 *     for check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
11145
12471
 *         name = pytype.name
11146
12472
 *         if name not in known:
11147
12473
 */
11148
 
  if (PyList_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS) || PyTuple_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS)) {
11149
 
    __pyx_2 = 0; __pyx_1 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; Py_INCREF(__pyx_1);
 
12474
  if (likely(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS) != Py_None)) {
 
12475
    __pyx_t_2 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS); __Pyx_INCREF(__pyx_t_1);
11150
12476
  } else {
11151
 
    __pyx_2 = -1; __pyx_1 = PyObject_GetIter(__pyx_v_4lxml_9objectify__TYPE_CHECKS); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12477
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11152
12478
  }
11153
12479
  for (;;) {
11154
 
    if (likely(PyList_CheckExact(__pyx_1))) {
11155
 
      if (__pyx_2 >= PyList_GET_SIZE(__pyx_1)) break;
11156
 
      __pyx_3 = PyList_GET_ITEM(__pyx_1, __pyx_2); Py_INCREF(__pyx_3); __pyx_2++;
11157
 
    } else if (likely(PyTuple_CheckExact(__pyx_1))) {
11158
 
      if (__pyx_2 >= PyTuple_GET_SIZE(__pyx_1)) break;
11159
 
      __pyx_3 = PyTuple_GET_ITEM(__pyx_1, __pyx_2); Py_INCREF(__pyx_3); __pyx_2++;
 
12480
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
12481
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++;
 
12482
    if (PyTuple_CheckExact(__pyx_t_3) && likely(PyTuple_GET_SIZE(__pyx_t_3) == 2)) {
 
12483
      PyObject* tuple = __pyx_t_3;
 
12484
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
12485
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
12486
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
12487
      __Pyx_DECREF(__pyx_v_check);
 
12488
      __pyx_v_check = __pyx_2;
 
12489
      __pyx_2 = 0;
 
12490
      __Pyx_DECREF(__pyx_v_pytype);
 
12491
      __pyx_v_pytype = __pyx_3;
 
12492
      __pyx_3 = 0;
11160
12493
    } else {
11161
 
      __pyx_3 = PyIter_Next(__pyx_1);
11162
 
      if (!__pyx_3) {
11163
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11164
 
        break;
11165
 
      }
11166
 
    }
11167
 
    if (PyTuple_CheckExact(__pyx_3) && PyTuple_GET_SIZE(__pyx_3) == 2) {
11168
 
      PyObject* tuple = __pyx_3;
11169
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 0);
11170
 
      Py_INCREF(__pyx_5);
11171
 
      Py_DECREF(__pyx_v_check);
11172
 
      __pyx_v_check = __pyx_5;
11173
 
      __pyx_5 = 0;
11174
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 1);
11175
 
      Py_INCREF(__pyx_5);
11176
 
      Py_DECREF(__pyx_v_pytype);
11177
 
      __pyx_v_pytype = __pyx_5;
11178
 
      __pyx_5 = 0;
11179
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
11180
 
    }
11181
 
    else {
11182
 
      __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11183
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
11184
 
      __pyx_5 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11185
 
      Py_DECREF(__pyx_v_check);
11186
 
      __pyx_v_check = __pyx_5;
11187
 
      __pyx_5 = 0;
11188
 
      __pyx_5 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11189
 
      Py_DECREF(__pyx_v_pytype);
11190
 
      __pyx_v_pytype = __pyx_5;
11191
 
      __pyx_5 = 0;
11192
 
      if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11193
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
12494
      __pyx_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12495
      __Pyx_GOTREF(__pyx_1);
 
12496
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
12497
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12498
      __Pyx_GOTREF(__pyx_2);
 
12499
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12500
      __Pyx_GOTREF(__pyx_3);
 
12501
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12502
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
12503
      __Pyx_DECREF(__pyx_v_check);
 
12504
      __pyx_v_check = __pyx_2;
 
12505
      __pyx_2 = 0;
 
12506
      __Pyx_DECREF(__pyx_v_pytype);
 
12507
      __pyx_v_pytype = __pyx_3;
 
12508
      __pyx_3 = 0;
11194
12509
    }
11195
12510
 
11196
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1132
11197
 
 *     add_to_known = known.add
 
12511
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1123
 
12512
 *     cdef set known = set()
11198
12513
 *     for check, pytype in _TYPE_CHECKS:
11199
12514
 *         name = pytype.name             # <<<<<<<<<<<<<<
11200
12515
 *         if name not in known:
11201
 
 *             add_to_known(name)
 
12516
 *             known.add(name)
11202
12517
 */
11203
 
    __pyx_5 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11204
 
    Py_DECREF(__pyx_v_name);
11205
 
    __pyx_v_name = __pyx_5;
11206
 
    __pyx_5 = 0;
 
12518
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12519
    __Pyx_GOTREF(__pyx_t_3);
 
12520
    __Pyx_DECREF(__pyx_v_name);
 
12521
    __pyx_v_name = __pyx_t_3;
 
12522
    __pyx_t_3 = 0;
11207
12523
 
11208
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1133
 
12524
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1124
11209
12525
 *     for check, pytype in _TYPE_CHECKS:
11210
12526
 *         name = pytype.name
11211
12527
 *         if name not in known:             # <<<<<<<<<<<<<<
11212
 
 *             add_to_known(name)
11213
 
 *             python.PyList_Append(types, pytype)
11214
 
 */
11215
 
    __pyx_6 = (!PySequence_Contains(__pyx_v_known, __pyx_v_name)); if (unlikely(__pyx_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11216
 
    if (__pyx_6) {
11217
 
 
11218
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1134
11219
 
 *         name = pytype.name
11220
 
 *         if name not in known:
11221
 
 *             add_to_known(name)             # <<<<<<<<<<<<<<
11222
 
 *             python.PyList_Append(types, pytype)
11223
 
 *     for pytype in _PYTYPE_DICT.values():
11224
 
 */
11225
 
      __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11226
 
      Py_INCREF(__pyx_v_name);
11227
 
      PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_name);
11228
 
      __pyx_4 = PyObject_Call(__pyx_v_add_to_known, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11229
 
      Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
11230
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
11231
 
 
11232
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1135
11233
 
 *         if name not in known:
11234
 
 *             add_to_known(name)
11235
 
 *             python.PyList_Append(types, pytype)             # <<<<<<<<<<<<<<
11236
 
 *     for pytype in _PYTYPE_DICT.values():
11237
 
 *         name = pytype.name
11238
 
 */
11239
 
      __pyx_7 = PyList_Append(__pyx_v_types, __pyx_v_pytype); if (unlikely(__pyx_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12528
 *             known.add(name)
 
12529
 *             types.append(pytype)
 
12530
 */
 
12531
    __pyx_t_4 = (!PySequence_Contains(((PyObject *)__pyx_v_known), __pyx_v_name)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12532
    if (__pyx_t_4) {
 
12533
 
 
12534
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1125
 
12535
 *         name = pytype.name
 
12536
 *         if name not in known:
 
12537
 *             known.add(name)             # <<<<<<<<<<<<<<
 
12538
 *             types.append(pytype)
 
12539
 *     for pytype in _PYTYPE_DICT.values():
 
12540
 */
 
12541
      __pyx_t_5 = PySet_Add(((PyObject *)__pyx_v_known), __pyx_v_name); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12542
 
 
12543
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1126
 
12544
 *         if name not in known:
 
12545
 *             known.add(name)
 
12546
 *             types.append(pytype)             # <<<<<<<<<<<<<<
 
12547
 *     for pytype in _PYTYPE_DICT.values():
 
12548
 *         name = pytype.name
 
12549
 */
 
12550
      __pyx_t_5 = PyList_Append(((PyObject *)__pyx_v_types), __pyx_v_pytype); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11240
12551
      goto __pyx_L7;
11241
12552
    }
11242
12553
    __pyx_L7:;
11243
12554
  }
11244
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12555
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11245
12556
 
11246
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1136
11247
 
 *             add_to_known(name)
11248
 
 *             python.PyList_Append(types, pytype)
 
12557
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1127
 
12558
 *             known.add(name)
 
12559
 *             types.append(pytype)
11249
12560
 *     for pytype in _PYTYPE_DICT.values():             # <<<<<<<<<<<<<<
11250
12561
 *         name = pytype.name
11251
12562
 *         if name not in known:
11252
12563
 */
11253
 
  __pyx_5 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_kp_values); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11254
 
  __pyx_3 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11255
 
  Py_DECREF(__pyx_5); __pyx_5 = 0;
11256
 
  if (PyList_CheckExact(__pyx_3) || PyTuple_CheckExact(__pyx_3)) {
11257
 
    __pyx_2 = 0; __pyx_4 = __pyx_3; Py_INCREF(__pyx_4);
 
12564
  __pyx_t_1 = PyDict_Values(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12565
  __Pyx_GOTREF(__pyx_t_1);
 
12566
  if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) {
 
12567
    __pyx_t_2 = 0; __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3);
11258
12568
  } else {
11259
 
    __pyx_2 = -1; __pyx_4 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12569
    __pyx_t_2 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12570
    __Pyx_GOTREF(__pyx_t_3);
11260
12571
  }
11261
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
12572
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11262
12573
  for (;;) {
11263
 
    if (likely(PyList_CheckExact(__pyx_4))) {
11264
 
      if (__pyx_2 >= PyList_GET_SIZE(__pyx_4)) break;
11265
 
      __pyx_1 = PyList_GET_ITEM(__pyx_4, __pyx_2); Py_INCREF(__pyx_1); __pyx_2++;
11266
 
    } else if (likely(PyTuple_CheckExact(__pyx_4))) {
11267
 
      if (__pyx_2 >= PyTuple_GET_SIZE(__pyx_4)) break;
11268
 
      __pyx_1 = PyTuple_GET_ITEM(__pyx_4, __pyx_2); Py_INCREF(__pyx_1); __pyx_2++;
 
12574
    if (likely(PyList_CheckExact(__pyx_t_3))) {
 
12575
      if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_3)) break;
 
12576
      __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++;
 
12577
    } else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
 
12578
      if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
 
12579
      __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_1); __pyx_t_2++;
11269
12580
    } else {
11270
 
      __pyx_1 = PyIter_Next(__pyx_4);
11271
 
      if (!__pyx_1) {
11272
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12581
      __pyx_t_1 = PyIter_Next(__pyx_t_3);
 
12582
      if (!__pyx_t_1) {
 
12583
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11273
12584
        break;
11274
12585
      }
 
12586
      __Pyx_GOTREF(__pyx_t_1);
11275
12587
    }
11276
 
    Py_DECREF(__pyx_v_pytype);
11277
 
    __pyx_v_pytype = __pyx_1;
11278
 
    __pyx_1 = 0;
 
12588
    __Pyx_DECREF(__pyx_v_pytype);
 
12589
    __pyx_v_pytype = __pyx_t_1;
 
12590
    __pyx_t_1 = 0;
11279
12591
 
11280
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1137
11281
 
 *             python.PyList_Append(types, pytype)
 
12592
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1128
 
12593
 *             types.append(pytype)
11282
12594
 *     for pytype in _PYTYPE_DICT.values():
11283
12595
 *         name = pytype.name             # <<<<<<<<<<<<<<
11284
12596
 *         if name not in known:
11285
 
 *             add_to_known(name)
 
12597
 *             known.add(name)
11286
12598
 */
11287
 
    __pyx_5 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11288
 
    Py_DECREF(__pyx_v_name);
11289
 
    __pyx_v_name = __pyx_5;
11290
 
    __pyx_5 = 0;
 
12599
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_pytype, __pyx_kp_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12600
    __Pyx_GOTREF(__pyx_t_1);
 
12601
    __Pyx_DECREF(__pyx_v_name);
 
12602
    __pyx_v_name = __pyx_t_1;
 
12603
    __pyx_t_1 = 0;
11291
12604
 
11292
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1138
 
12605
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1129
11293
12606
 *     for pytype in _PYTYPE_DICT.values():
11294
12607
 *         name = pytype.name
11295
12608
 *         if name not in known:             # <<<<<<<<<<<<<<
11296
 
 *             add_to_known(name)
11297
 
 *             python.PyList_Append(types, pytype)
 
12609
 *             known.add(name)
 
12610
 *             types.append(pytype)
11298
12611
 */
11299
 
    __pyx_6 = (!PySequence_Contains(__pyx_v_known, __pyx_v_name)); if (unlikely(__pyx_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11300
 
    if (__pyx_6) {
 
12612
    __pyx_t_4 = (!PySequence_Contains(((PyObject *)__pyx_v_known), __pyx_v_name)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12613
    if (__pyx_t_4) {
11301
12614
 
11302
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1139
 
12615
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1130
11303
12616
 *         name = pytype.name
11304
12617
 *         if name not in known:
11305
 
 *             add_to_known(name)             # <<<<<<<<<<<<<<
11306
 
 *             python.PyList_Append(types, pytype)
 
12618
 *             known.add(name)             # <<<<<<<<<<<<<<
 
12619
 *             types.append(pytype)
11307
12620
 *     return types
11308
12621
 */
11309
 
      __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11310
 
      Py_INCREF(__pyx_v_name);
11311
 
      PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_name);
11312
 
      __pyx_1 = PyObject_Call(__pyx_v_add_to_known, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11313
 
      Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
11314
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
12622
      __pyx_t_5 = PySet_Add(((PyObject *)__pyx_v_known), __pyx_v_name); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11315
12623
 
11316
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1140
 
12624
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1131
11317
12625
 *         if name not in known:
11318
 
 *             add_to_known(name)
11319
 
 *             python.PyList_Append(types, pytype)             # <<<<<<<<<<<<<<
 
12626
 *             known.add(name)
 
12627
 *             types.append(pytype)             # <<<<<<<<<<<<<<
11320
12628
 *     return types
11321
12629
 * 
11322
12630
 */
11323
 
      __pyx_7 = PyList_Append(__pyx_v_types, __pyx_v_pytype); if (unlikely(__pyx_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12631
      __pyx_t_5 = PyList_Append(((PyObject *)__pyx_v_types), __pyx_v_pytype); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11324
12632
      goto __pyx_L10;
11325
12633
    }
11326
12634
    __pyx_L10:;
11327
12635
  }
11328
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
 
12636
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11329
12637
 
11330
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1141
11331
 
 *             add_to_known(name)
11332
 
 *             python.PyList_Append(types, pytype)
 
12638
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1132
 
12639
 *             known.add(name)
 
12640
 *             types.append(pytype)
11333
12641
 *     return types             # <<<<<<<<<<<<<<
11334
12642
 * 
11335
12643
 * cdef PyType _guessPyType(value, PyType defaulttype):
11336
12644
 */
11337
 
  Py_INCREF(__pyx_v_types);
11338
 
  __pyx_r = __pyx_v_types;
 
12645
  __Pyx_XDECREF(__pyx_r);
 
12646
  __Pyx_INCREF(((PyObject *)__pyx_v_types));
 
12647
  __pyx_r = ((PyObject *)__pyx_v_types);
11339
12648
  goto __pyx_L0;
11340
12649
 
11341
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
12650
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11342
12651
  goto __pyx_L0;
11343
12652
  __pyx_L1_error:;
11344
 
  Py_XDECREF(__pyx_1);
11345
 
  Py_XDECREF(__pyx_3);
11346
 
  Py_XDECREF(__pyx_4);
11347
 
  Py_XDECREF(__pyx_5);
 
12653
  __Pyx_XDECREF(__pyx_1);
 
12654
  __Pyx_XDECREF(__pyx_2);
 
12655
  __Pyx_XDECREF(__pyx_3);
 
12656
  __Pyx_XDECREF(__pyx_t_1);
 
12657
  __Pyx_XDECREF(__pyx_t_3);
11348
12658
  __Pyx_AddTraceback("lxml.objectify.getRegisteredTypes");
11349
12659
  __pyx_r = NULL;
11350
12660
  __pyx_L0:;
11351
 
  Py_DECREF(__pyx_v_types);
11352
 
  Py_DECREF(__pyx_v_known);
11353
 
  Py_DECREF(__pyx_v_add_to_known);
11354
 
  Py_DECREF(__pyx_v_check);
11355
 
  Py_DECREF(__pyx_v_pytype);
11356
 
  Py_DECREF(__pyx_v_name);
 
12661
  __Pyx_XDECREF(__pyx_v_types);
 
12662
  __Pyx_XDECREF(__pyx_v_known);
 
12663
  __Pyx_DECREF(__pyx_v_check);
 
12664
  __Pyx_DECREF(__pyx_v_pytype);
 
12665
  __Pyx_DECREF(__pyx_v_name);
 
12666
  __Pyx_XGIVEREF(__pyx_r);
 
12667
  __Pyx_FinishRefcountContext();
11357
12668
  return __pyx_r;
11358
12669
}
11359
12670
 
11360
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1143
 
12671
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1134
11361
12672
 *     return types
11362
12673
 * 
11363
12674
 * cdef PyType _guessPyType(value, PyType defaulttype):             # <<<<<<<<<<<<<<
11368
12679
static  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__guessPyType(PyObject *__pyx_v_value, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_defaulttype) {
11369
12680
  PyObject *__pyx_v_type_check;
11370
12681
  PyObject *__pyx_v_tested_pytype;
11371
 
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r;
11372
 
  int __pyx_1;
11373
 
  Py_ssize_t __pyx_2 = 0;
 
12682
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r = NULL;
 
12683
  PyObject *__pyx_1 = 0;
 
12684
  PyObject *__pyx_2 = 0;
11374
12685
  PyObject *__pyx_3 = 0;
11375
 
  PyObject *__pyx_4 = 0;
11376
 
  PyObject *__pyx_5 = 0;
11377
 
  PyObject *__pyx_6 = 0;
11378
 
  int __pyx_7;
11379
 
  __pyx_v_type_check = Py_None; Py_INCREF(Py_None);
11380
 
  __pyx_v_tested_pytype = Py_None; Py_INCREF(Py_None);
 
12686
  int __pyx_4;
 
12687
  int __pyx_t_1;
 
12688
  Py_ssize_t __pyx_t_2;
 
12689
  PyObject *__pyx_t_3 = NULL;
 
12690
  PyObject *__pyx_t_4 = NULL;
 
12691
  PyObject *__pyx_t_5 = NULL;
 
12692
  __Pyx_SetupRefcountContext("_guessPyType");
 
12693
  __pyx_v_type_check = Py_None; __Pyx_INCREF(Py_None);
 
12694
  __pyx_v_tested_pytype = Py_None; __Pyx_INCREF(Py_None);
11381
12695
 
11382
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1144
 
12696
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1135
11383
12697
 * 
11384
12698
 * cdef PyType _guessPyType(value, PyType defaulttype):
11385
12699
 *     if value is None:             # <<<<<<<<<<<<<<
11386
12700
 *         return None
11387
12701
 *     for type_check, tested_pytype in _TYPE_CHECKS:
11388
12702
 */
11389
 
  __pyx_1 = (__pyx_v_value == Py_None);
11390
 
  if (__pyx_1) {
 
12703
  __pyx_t_1 = (__pyx_v_value == Py_None);
 
12704
  if (__pyx_t_1) {
11391
12705
 
11392
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1145
 
12706
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1136
11393
12707
 * cdef PyType _guessPyType(value, PyType defaulttype):
11394
12708
 *     if value is None:
11395
12709
 *         return None             # <<<<<<<<<<<<<<
11396
12710
 *     for type_check, tested_pytype in _TYPE_CHECKS:
11397
12711
 *         try:
11398
12712
 */
11399
 
    Py_INCREF(Py_None);
 
12713
    __Pyx_XDECREF(((PyObject *)__pyx_r));
 
12714
    __Pyx_INCREF(Py_None);
11400
12715
    __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
11401
12716
    goto __pyx_L0;
11402
12717
    goto __pyx_L3;
11403
12718
  }
11404
12719
  __pyx_L3:;
11405
12720
 
11406
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1146
 
12721
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1137
11407
12722
 *     if value is None:
11408
12723
 *         return None
11409
12724
 *     for type_check, tested_pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
11410
12725
 *         try:
11411
12726
 *             type_check(value)
11412
12727
 */
11413
 
  if (PyList_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS) || PyTuple_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS)) {
11414
 
    __pyx_2 = 0; __pyx_3 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; Py_INCREF(__pyx_3);
 
12728
  if (likely(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS) != Py_None)) {
 
12729
    __pyx_t_2 = 0; __pyx_t_3 = ((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS); __Pyx_INCREF(__pyx_t_3);
11415
12730
  } else {
11416
 
    __pyx_2 = -1; __pyx_3 = PyObject_GetIter(__pyx_v_4lxml_9objectify__TYPE_CHECKS); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12731
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11417
12732
  }
11418
12733
  for (;;) {
11419
 
    if (likely(PyList_CheckExact(__pyx_3))) {
11420
 
      if (__pyx_2 >= PyList_GET_SIZE(__pyx_3)) break;
11421
 
      __pyx_4 = PyList_GET_ITEM(__pyx_3, __pyx_2); Py_INCREF(__pyx_4); __pyx_2++;
11422
 
    } else if (likely(PyTuple_CheckExact(__pyx_3))) {
11423
 
      if (__pyx_2 >= PyTuple_GET_SIZE(__pyx_3)) break;
11424
 
      __pyx_4 = PyTuple_GET_ITEM(__pyx_3, __pyx_2); Py_INCREF(__pyx_4); __pyx_2++;
 
12734
    if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_3)) break;
 
12735
    __pyx_t_4 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
 
12736
    if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 2)) {
 
12737
      PyObject* tuple = __pyx_t_4;
 
12738
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
12739
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
12740
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
12741
      __Pyx_DECREF(__pyx_v_type_check);
 
12742
      __pyx_v_type_check = __pyx_2;
 
12743
      __pyx_2 = 0;
 
12744
      __Pyx_DECREF(__pyx_v_tested_pytype);
 
12745
      __pyx_v_tested_pytype = __pyx_3;
 
12746
      __pyx_3 = 0;
11425
12747
    } else {
11426
 
      __pyx_4 = PyIter_Next(__pyx_3);
11427
 
      if (!__pyx_4) {
11428
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11429
 
        break;
11430
 
      }
11431
 
    }
11432
 
    if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
11433
 
      PyObject* tuple = __pyx_4;
11434
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 0);
11435
 
      Py_INCREF(__pyx_6);
11436
 
      Py_DECREF(__pyx_v_type_check);
11437
 
      __pyx_v_type_check = __pyx_6;
11438
 
      __pyx_6 = 0;
11439
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 1);
11440
 
      Py_INCREF(__pyx_6);
11441
 
      Py_DECREF(__pyx_v_tested_pytype);
11442
 
      __pyx_v_tested_pytype = __pyx_6;
11443
 
      __pyx_6 = 0;
11444
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
11445
 
    }
11446
 
    else {
11447
 
      __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11448
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
11449
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11450
 
      Py_DECREF(__pyx_v_type_check);
11451
 
      __pyx_v_type_check = __pyx_6;
11452
 
      __pyx_6 = 0;
11453
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11454
 
      Py_DECREF(__pyx_v_tested_pytype);
11455
 
      __pyx_v_tested_pytype = __pyx_6;
11456
 
      __pyx_6 = 0;
11457
 
      if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11458
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
12748
      __pyx_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12749
      __Pyx_GOTREF(__pyx_1);
 
12750
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
12751
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12752
      __Pyx_GOTREF(__pyx_2);
 
12753
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12754
      __Pyx_GOTREF(__pyx_3);
 
12755
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12756
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
12757
      __Pyx_DECREF(__pyx_v_type_check);
 
12758
      __pyx_v_type_check = __pyx_2;
 
12759
      __pyx_2 = 0;
 
12760
      __Pyx_DECREF(__pyx_v_tested_pytype);
 
12761
      __pyx_v_tested_pytype = __pyx_3;
 
12762
      __pyx_3 = 0;
11459
12763
    }
11460
12764
 
11461
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1147
 
12765
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1138
11462
12766
 *         return None
11463
12767
 *     for type_check, tested_pytype in _TYPE_CHECKS:
11464
12768
 *         try:             # <<<<<<<<<<<<<<
11468
12772
    {
11469
12773
      PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
11470
12774
      __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
 
12775
      __Pyx_XGOTREF(__pyx_save_exc_type);
 
12776
      __Pyx_XGOTREF(__pyx_save_exc_value);
 
12777
      __Pyx_XGOTREF(__pyx_save_exc_tb);
11471
12778
      /*try:*/ {
11472
12779
 
11473
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1148
 
12780
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1139
11474
12781
 *     for type_check, tested_pytype in _TYPE_CHECKS:
11475
12782
 *         try:
11476
12783
 *             type_check(value)             # <<<<<<<<<<<<<<
11477
12784
 *             return <PyType>tested_pytype
11478
12785
 *         except IGNORABLE_ERRORS:
11479
12786
 */
11480
 
        __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; __pyx_clineno = __LINE__; goto __pyx_L6_error;}
11481
 
        Py_INCREF(__pyx_v_value);
11482
 
        PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_value);
11483
 
        __pyx_4 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1148; __pyx_clineno = __LINE__; goto __pyx_L6_error;}
11484
 
        Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
11485
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
12787
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L6_error;}
 
12788
        __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
12789
        __Pyx_INCREF(__pyx_v_value);
 
12790
        PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value);
 
12791
        __Pyx_GIVEREF(__pyx_v_value);
 
12792
        __pyx_t_5 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L6_error;}
 
12793
        __Pyx_GOTREF(__pyx_t_5);
 
12794
        __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
12795
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11486
12796
 
11487
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1149
 
12797
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1140
11488
12798
 *         try:
11489
12799
 *             type_check(value)
11490
12800
 *             return <PyType>tested_pytype             # <<<<<<<<<<<<<<
11491
12801
 *         except IGNORABLE_ERRORS:
11492
12802
 *             # could not be parsed as the specififed type => ignore
11493
12803
 */
11494
 
        Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_tested_pytype)));
 
12804
        __Pyx_XDECREF(((PyObject *)__pyx_r));
 
12805
        __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_tested_pytype)));
11495
12806
        __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_tested_pytype);
11496
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
 
12807
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11497
12808
        goto __pyx_L10_try_return;
11498
12809
      }
11499
 
      Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
11500
 
      Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
11501
 
      Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
11502
 
      goto __pyx_L11_try;
 
12810
      __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
12811
      __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
12812
      __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
12813
      goto __pyx_L13_try_end;
11503
12814
      __pyx_L10_try_return:;
11504
 
      Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
11505
 
      Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
11506
 
      Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
12815
      __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
12816
      __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
12817
      __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
11507
12818
      goto __pyx_L0;
11508
12819
      __pyx_L6_error:;
11509
 
      Py_XDECREF(__pyx_5); __pyx_5 = 0;
11510
 
      Py_XDECREF(__pyx_6); __pyx_6 = 0;
11511
 
      Py_XDECREF(__pyx_4); __pyx_4 = 0;
 
12820
      __Pyx_XDECREF(__pyx_1); __pyx_1 = 0;
 
12821
      __Pyx_XDECREF(__pyx_2); __pyx_2 = 0;
 
12822
      __Pyx_XDECREF(__pyx_3); __pyx_3 = 0;
 
12823
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
 
12824
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
11512
12825
 
11513
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1150
 
12826
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1141
11514
12827
 *             type_check(value)
11515
12828
 *             return <PyType>tested_pytype
11516
12829
 *         except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
11517
12830
 *             # could not be parsed as the specififed type => ignore
11518
12831
 *             pass
11519
12832
 */
11520
 
      __pyx_7 = PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
11521
 
      if (__pyx_7) {
11522
 
        __Pyx_AddTraceback("lxml.objectify._guessPyType");
11523
 
        if (__Pyx_GetException(&__pyx_5, &__pyx_6, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L8_except_error;}
11524
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
11525
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
11526
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
12833
      __pyx_4 = PyErr_ExceptionMatches(((PyObject *)__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS));
 
12834
      if (__pyx_4) {
 
12835
        PyErr_Restore(0,0,0);
11527
12836
        goto __pyx_L7_exception_handled;
11528
12837
      }
11529
 
      __pyx_L8_except_error:;
11530
 
      Py_XDECREF(__pyx_save_exc_type);
11531
 
      Py_XDECREF(__pyx_save_exc_value);
11532
 
      Py_XDECREF(__pyx_save_exc_tb);
 
12838
      __Pyx_XDECREF(__pyx_save_exc_type);
 
12839
      __Pyx_XDECREF(__pyx_save_exc_value);
 
12840
      __Pyx_XDECREF(__pyx_save_exc_tb);
11533
12841
      goto __pyx_L1_error;
11534
12842
      __pyx_L7_exception_handled:;
 
12843
      __Pyx_XGIVEREF(__pyx_save_exc_type);
 
12844
      __Pyx_XGIVEREF(__pyx_save_exc_value);
 
12845
      __Pyx_XGIVEREF(__pyx_save_exc_tb);
11535
12846
      __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
11536
 
      __pyx_L11_try:;
 
12847
      __pyx_L13_try_end:;
11537
12848
    }
11538
12849
  }
11539
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
12850
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11540
12851
 
11541
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1153
 
12852
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1144
11542
12853
 *             # could not be parsed as the specififed type => ignore
11543
12854
 *             pass
11544
12855
 *     return defaulttype             # <<<<<<<<<<<<<<
11545
12856
 * 
11546
12857
 * cdef object _guessElementClass(tree.xmlNode* c_node):
11547
12858
 */
11548
 
  Py_INCREF(((PyObject *)__pyx_v_defaulttype));
 
12859
  __Pyx_XDECREF(((PyObject *)__pyx_r));
 
12860
  __Pyx_INCREF(((PyObject *)__pyx_v_defaulttype));
11549
12861
  __pyx_r = __pyx_v_defaulttype;
11550
12862
  goto __pyx_L0;
11551
12863
 
11552
 
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
 
12864
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
11553
12865
  goto __pyx_L0;
11554
12866
  __pyx_L1_error:;
11555
 
  Py_XDECREF(__pyx_3);
11556
 
  Py_XDECREF(__pyx_4);
11557
 
  Py_XDECREF(__pyx_5);
11558
 
  Py_XDECREF(__pyx_6);
 
12867
  __Pyx_XDECREF(__pyx_1);
 
12868
  __Pyx_XDECREF(__pyx_2);
 
12869
  __Pyx_XDECREF(__pyx_3);
 
12870
  __Pyx_XDECREF(__pyx_t_3);
 
12871
  __Pyx_XDECREF(__pyx_t_4);
 
12872
  __Pyx_XDECREF(__pyx_t_5);
11559
12873
  __Pyx_AddTraceback("lxml.objectify._guessPyType");
11560
12874
  __pyx_r = 0;
11561
12875
  __pyx_L0:;
11562
 
  Py_DECREF(__pyx_v_type_check);
11563
 
  Py_DECREF(__pyx_v_tested_pytype);
 
12876
  __Pyx_DECREF(__pyx_v_type_check);
 
12877
  __Pyx_DECREF(__pyx_v_tested_pytype);
 
12878
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
 
12879
  __Pyx_FinishRefcountContext();
11564
12880
  return __pyx_r;
11565
12881
}
11566
12882
 
11567
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1155
 
12883
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1146
11568
12884
 *     return defaulttype
11569
12885
 * 
11570
12886
 * cdef object _guessElementClass(tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
11576
12892
  PyObject *__pyx_v_value;
11577
12893
  PyObject *__pyx_v_type_check;
11578
12894
  PyObject *__pyx_v_pytype;
11579
 
  PyObject *__pyx_r;
 
12895
  PyObject *__pyx_r = NULL;
11580
12896
  PyObject *__pyx_1 = 0;
11581
 
  int __pyx_2;
11582
 
  Py_ssize_t __pyx_3 = 0;
11583
 
  PyObject *__pyx_4 = 0;
11584
 
  PyObject *__pyx_5 = 0;
11585
 
  PyObject *__pyx_6 = 0;
11586
 
  int __pyx_7;
11587
 
  __pyx_v_value = Py_None; Py_INCREF(Py_None);
11588
 
  __pyx_v_type_check = Py_None; Py_INCREF(Py_None);
11589
 
  __pyx_v_pytype = Py_None; Py_INCREF(Py_None);
 
12897
  PyObject *__pyx_2 = 0;
 
12898
  PyObject *__pyx_3 = 0;
 
12899
  int __pyx_4;
 
12900
  PyObject *__pyx_t_1 = NULL;
 
12901
  int __pyx_t_2;
 
12902
  Py_ssize_t __pyx_t_3;
 
12903
  PyObject *__pyx_t_4 = NULL;
 
12904
  PyObject *__pyx_t_5 = NULL;
 
12905
  __Pyx_SetupRefcountContext("_guessElementClass");
 
12906
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
 
12907
  __pyx_v_type_check = Py_None; __Pyx_INCREF(Py_None);
 
12908
  __pyx_v_pytype = Py_None; __Pyx_INCREF(Py_None);
11590
12909
 
11591
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1156
 
12910
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1147
11592
12911
 * 
11593
12912
 * cdef object _guessElementClass(tree.xmlNode* c_node):
11594
12913
 *     value = textOf(c_node)             # <<<<<<<<<<<<<<
11595
12914
 *     if value is None:
11596
12915
 *         return None
11597
12916
 */
11598
 
  __pyx_1 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11599
 
  Py_DECREF(__pyx_v_value);
11600
 
  __pyx_v_value = __pyx_1;
11601
 
  __pyx_1 = 0;
 
12917
  __pyx_t_1 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12918
  __Pyx_GOTREF(__pyx_t_1);
 
12919
  __Pyx_DECREF(__pyx_v_value);
 
12920
  __pyx_v_value = __pyx_t_1;
 
12921
  __pyx_t_1 = 0;
11602
12922
 
11603
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1157
 
12923
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1148
11604
12924
 * cdef object _guessElementClass(tree.xmlNode* c_node):
11605
12925
 *     value = textOf(c_node)
11606
12926
 *     if value is None:             # <<<<<<<<<<<<<<
11607
12927
 *         return None
11608
12928
 *     if value == u'':
11609
12929
 */
11610
 
  __pyx_2 = (__pyx_v_value == Py_None);
11611
 
  if (__pyx_2) {
 
12930
  __pyx_t_2 = (__pyx_v_value == Py_None);
 
12931
  if (__pyx_t_2) {
11612
12932
 
11613
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1158
 
12933
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1149
11614
12934
 *     value = textOf(c_node)
11615
12935
 *     if value is None:
11616
12936
 *         return None             # <<<<<<<<<<<<<<
11617
12937
 *     if value == u'':
11618
12938
 *         return StringElement
11619
12939
 */
11620
 
    Py_INCREF(Py_None);
 
12940
    __Pyx_XDECREF(__pyx_r);
 
12941
    __Pyx_INCREF(Py_None);
11621
12942
    __pyx_r = Py_None;
11622
12943
    goto __pyx_L0;
11623
12944
    goto __pyx_L3;
11624
12945
  }
11625
12946
  __pyx_L3:;
11626
12947
 
11627
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1159
 
12948
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1150
11628
12949
 *     if value is None:
11629
12950
 *         return None
11630
12951
 *     if value == u'':             # <<<<<<<<<<<<<<
11631
12952
 *         return StringElement
11632
12953
 * 
11633
12954
 */
11634
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_value, ((PyObject *)__pyx_kp_749), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11635
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11636
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
11637
 
  if (__pyx_2) {
 
12955
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_value, ((PyObject *)__pyx_kp_814), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12956
  __Pyx_GOTREF(__pyx_t_1);
 
12957
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12958
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
12959
  if (__pyx_t_2) {
11638
12960
 
11639
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1160
 
12961
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1151
11640
12962
 *         return None
11641
12963
 *     if value == u'':
11642
12964
 *         return StringElement             # <<<<<<<<<<<<<<
11643
12965
 * 
11644
12966
 *     for type_check, pytype in _TYPE_CHECKS:
11645
12967
 */
11646
 
    Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
 
12968
    __Pyx_XDECREF(__pyx_r);
 
12969
    __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
11647
12970
    __pyx_r = ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement));
11648
12971
    goto __pyx_L0;
11649
12972
    goto __pyx_L4;
11650
12973
  }
11651
12974
  __pyx_L4:;
11652
12975
 
11653
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1162
 
12976
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1153
11654
12977
 *         return StringElement
11655
12978
 * 
11656
12979
 *     for type_check, pytype in _TYPE_CHECKS:             # <<<<<<<<<<<<<<
11657
12980
 *         try:
11658
12981
 *             type_check(value)
11659
12982
 */
11660
 
  if (PyList_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS) || PyTuple_CheckExact(__pyx_v_4lxml_9objectify__TYPE_CHECKS)) {
11661
 
    __pyx_3 = 0; __pyx_1 = __pyx_v_4lxml_9objectify__TYPE_CHECKS; Py_INCREF(__pyx_1);
 
12983
  if (likely(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS) != Py_None)) {
 
12984
    __pyx_t_3 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS); __Pyx_INCREF(__pyx_t_1);
11662
12985
  } else {
11663
 
    __pyx_3 = -1; __pyx_1 = PyObject_GetIter(__pyx_v_4lxml_9objectify__TYPE_CHECKS); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
12986
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11664
12987
  }
11665
12988
  for (;;) {
11666
 
    if (likely(PyList_CheckExact(__pyx_1))) {
11667
 
      if (__pyx_3 >= PyList_GET_SIZE(__pyx_1)) break;
11668
 
      __pyx_4 = PyList_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
11669
 
    } else if (likely(PyTuple_CheckExact(__pyx_1))) {
11670
 
      if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_1)) break;
11671
 
      __pyx_4 = PyTuple_GET_ITEM(__pyx_1, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
 
12989
    if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
12990
    __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
 
12991
    if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 2)) {
 
12992
      PyObject* tuple = __pyx_t_4;
 
12993
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
12994
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
12995
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
12996
      __Pyx_DECREF(__pyx_v_type_check);
 
12997
      __pyx_v_type_check = __pyx_2;
 
12998
      __pyx_2 = 0;
 
12999
      __Pyx_DECREF(__pyx_v_pytype);
 
13000
      __pyx_v_pytype = __pyx_3;
 
13001
      __pyx_3 = 0;
11672
13002
    } else {
11673
 
      __pyx_4 = PyIter_Next(__pyx_1);
11674
 
      if (!__pyx_4) {
11675
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11676
 
        break;
11677
 
      }
11678
 
    }
11679
 
    if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
11680
 
      PyObject* tuple = __pyx_4;
11681
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 0);
11682
 
      Py_INCREF(__pyx_6);
11683
 
      Py_DECREF(__pyx_v_type_check);
11684
 
      __pyx_v_type_check = __pyx_6;
11685
 
      __pyx_6 = 0;
11686
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 1);
11687
 
      Py_INCREF(__pyx_6);
11688
 
      Py_DECREF(__pyx_v_pytype);
11689
 
      __pyx_v_pytype = __pyx_6;
11690
 
      __pyx_6 = 0;
11691
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
11692
 
    }
11693
 
    else {
11694
 
      __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11695
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
11696
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11697
 
      Py_DECREF(__pyx_v_type_check);
11698
 
      __pyx_v_type_check = __pyx_6;
11699
 
      __pyx_6 = 0;
11700
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11701
 
      Py_DECREF(__pyx_v_pytype);
11702
 
      __pyx_v_pytype = __pyx_6;
11703
 
      __pyx_6 = 0;
11704
 
      if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11705
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
13003
      __pyx_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13004
      __Pyx_GOTREF(__pyx_1);
 
13005
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
13006
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13007
      __Pyx_GOTREF(__pyx_2);
 
13008
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13009
      __Pyx_GOTREF(__pyx_3);
 
13010
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13011
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
13012
      __Pyx_DECREF(__pyx_v_type_check);
 
13013
      __pyx_v_type_check = __pyx_2;
 
13014
      __pyx_2 = 0;
 
13015
      __Pyx_DECREF(__pyx_v_pytype);
 
13016
      __pyx_v_pytype = __pyx_3;
 
13017
      __pyx_3 = 0;
11706
13018
    }
11707
13019
 
11708
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1163
 
13020
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1154
11709
13021
 * 
11710
13022
 *     for type_check, pytype in _TYPE_CHECKS:
11711
13023
 *         try:             # <<<<<<<<<<<<<<
11715
13027
    {
11716
13028
      PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
11717
13029
      __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
 
13030
      __Pyx_XGOTREF(__pyx_save_exc_type);
 
13031
      __Pyx_XGOTREF(__pyx_save_exc_value);
 
13032
      __Pyx_XGOTREF(__pyx_save_exc_tb);
11718
13033
      /*try:*/ {
11719
13034
 
11720
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1164
 
13035
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1155
11721
13036
 *     for type_check, pytype in _TYPE_CHECKS:
11722
13037
 *         try:
11723
13038
 *             type_check(value)             # <<<<<<<<<<<<<<
11724
13039
 *             return (<PyType>pytype)._type
11725
13040
 *         except IGNORABLE_ERRORS:
11726
13041
 */
11727
 
        __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
11728
 
        Py_INCREF(__pyx_v_value);
11729
 
        PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_value);
11730
 
        __pyx_4 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
11731
 
        Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
11732
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
13042
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
 
13043
        __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
13044
        __Pyx_INCREF(__pyx_v_value);
 
13045
        PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value);
 
13046
        __Pyx_GIVEREF(__pyx_v_value);
 
13047
        __pyx_t_5 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
 
13048
        __Pyx_GOTREF(__pyx_t_5);
 
13049
        __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
13050
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11733
13051
 
11734
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1165
 
13052
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1156
11735
13053
 *         try:
11736
13054
 *             type_check(value)
11737
13055
 *             return (<PyType>pytype)._type             # <<<<<<<<<<<<<<
11738
13056
 *         except IGNORABLE_ERRORS:
11739
13057
 *             pass
11740
13058
 */
11741
 
        Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->_type);
 
13059
        __Pyx_XDECREF(__pyx_r);
 
13060
        __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->_type);
11742
13061
        __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->_type;
11743
 
        Py_DECREF(__pyx_1); __pyx_1 = 0;
 
13062
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11744
13063
        goto __pyx_L11_try_return;
11745
13064
      }
11746
 
      Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
11747
 
      Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
11748
 
      Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
11749
 
      goto __pyx_L12_try;
 
13065
      __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
13066
      __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
13067
      __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
13068
      goto __pyx_L14_try_end;
11750
13069
      __pyx_L11_try_return:;
11751
 
      Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
11752
 
      Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
11753
 
      Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
13070
      __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
13071
      __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
13072
      __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
11754
13073
      goto __pyx_L0;
11755
13074
      __pyx_L7_error:;
11756
 
      Py_XDECREF(__pyx_5); __pyx_5 = 0;
11757
 
      Py_XDECREF(__pyx_6); __pyx_6 = 0;
11758
 
      Py_XDECREF(__pyx_4); __pyx_4 = 0;
 
13075
      __Pyx_XDECREF(__pyx_1); __pyx_1 = 0;
 
13076
      __Pyx_XDECREF(__pyx_2); __pyx_2 = 0;
 
13077
      __Pyx_XDECREF(__pyx_3); __pyx_3 = 0;
 
13078
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
 
13079
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
11759
13080
 
11760
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1166
 
13081
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1157
11761
13082
 *             type_check(value)
11762
13083
 *             return (<PyType>pytype)._type
11763
13084
 *         except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
11764
13085
 *             pass
11765
13086
 *     return None
11766
13087
 */
11767
 
      __pyx_7 = PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
11768
 
      if (__pyx_7) {
11769
 
        __Pyx_AddTraceback("lxml.objectify._guessElementClass");
11770
 
        if (__Pyx_GetException(&__pyx_5, &__pyx_6, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1166; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
11771
 
        Py_DECREF(__pyx_5); __pyx_5 = 0;
11772
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
11773
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
13088
      __pyx_4 = PyErr_ExceptionMatches(((PyObject *)__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS));
 
13089
      if (__pyx_4) {
 
13090
        PyErr_Restore(0,0,0);
11774
13091
        goto __pyx_L8_exception_handled;
11775
13092
      }
11776
 
      __pyx_L9_except_error:;
11777
 
      Py_XDECREF(__pyx_save_exc_type);
11778
 
      Py_XDECREF(__pyx_save_exc_value);
11779
 
      Py_XDECREF(__pyx_save_exc_tb);
 
13093
      __Pyx_XDECREF(__pyx_save_exc_type);
 
13094
      __Pyx_XDECREF(__pyx_save_exc_value);
 
13095
      __Pyx_XDECREF(__pyx_save_exc_tb);
11780
13096
      goto __pyx_L1_error;
11781
13097
      __pyx_L8_exception_handled:;
 
13098
      __Pyx_XGIVEREF(__pyx_save_exc_type);
 
13099
      __Pyx_XGIVEREF(__pyx_save_exc_value);
 
13100
      __Pyx_XGIVEREF(__pyx_save_exc_tb);
11782
13101
      __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
11783
 
      __pyx_L12_try:;
 
13102
      __pyx_L14_try_end:;
11784
13103
    }
11785
13104
  }
11786
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
13105
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11787
13106
 
11788
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1168
 
13107
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1159
11789
13108
 *         except IGNORABLE_ERRORS:
11790
13109
 *             pass
11791
13110
 *     return None             # <<<<<<<<<<<<<<
11792
13111
 * 
11793
13112
 * ################################################################################
11794
13113
 */
11795
 
  Py_INCREF(Py_None);
 
13114
  __Pyx_XDECREF(__pyx_r);
 
13115
  __Pyx_INCREF(Py_None);
11796
13116
  __pyx_r = Py_None;
11797
13117
  goto __pyx_L0;
11798
13118
 
11799
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
13119
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
11800
13120
  goto __pyx_L0;
11801
13121
  __pyx_L1_error:;
11802
 
  Py_XDECREF(__pyx_1);
11803
 
  Py_XDECREF(__pyx_4);
11804
 
  Py_XDECREF(__pyx_5);
11805
 
  Py_XDECREF(__pyx_6);
 
13122
  __Pyx_XDECREF(__pyx_1);
 
13123
  __Pyx_XDECREF(__pyx_2);
 
13124
  __Pyx_XDECREF(__pyx_3);
 
13125
  __Pyx_XDECREF(__pyx_t_1);
 
13126
  __Pyx_XDECREF(__pyx_t_4);
 
13127
  __Pyx_XDECREF(__pyx_t_5);
11806
13128
  __Pyx_AddTraceback("lxml.objectify._guessElementClass");
11807
13129
  __pyx_r = 0;
11808
13130
  __pyx_L0:;
11809
 
  Py_DECREF(__pyx_v_value);
11810
 
  Py_DECREF(__pyx_v_type_check);
11811
 
  Py_DECREF(__pyx_v_pytype);
 
13131
  __Pyx_DECREF(__pyx_v_value);
 
13132
  __Pyx_DECREF(__pyx_v_type_check);
 
13133
  __Pyx_DECREF(__pyx_v_pytype);
 
13134
  __Pyx_XGIVEREF(__pyx_r);
 
13135
  __Pyx_FinishRefcountContext();
11812
13136
  return __pyx_r;
11813
13137
}
11814
13138
 
11815
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1186
 
13139
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1177
11816
13140
 *     cdef object _nsmap
11817
13141
 *     cdef bint _annotate
11818
13142
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,             # <<<<<<<<<<<<<<
11827
13151
  PyObject *__pyx_v_annotate = 0;
11828
13152
  PyObject *__pyx_v_makeelement = 0;
11829
13153
  int __pyx_r;
11830
 
  int __pyx_1;
11831
 
  PyObject *__pyx_t_1 = NULL;
 
13154
  int __pyx_t_1;
 
13155
  PyObject *__pyx_t_2 = NULL;
11832
13156
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_namespace,&__pyx_kp_nsmap,&__pyx_kp_annotate,&__pyx_kp_makeelement,0};
11833
 
  __pyx_v_namespace = Py_None;
11834
 
  __pyx_v_nsmap = Py_None;
11835
 
  __pyx_v_annotate = __pyx_k_648;
11836
 
  __pyx_v_makeelement = Py_None;
 
13157
  __Pyx_SetupRefcountContext("__init__");
11837
13158
  if (unlikely(__pyx_kwds)) {
 
13159
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
11838
13160
    PyObject* values[4] = {0,0,0,0};
11839
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
13161
    values[0] = Py_None;
 
13162
    values[1] = Py_None;
 
13163
    values[2] = __pyx_k_714;
 
13164
    values[3] = Py_None;
11840
13165
    switch (PyTuple_GET_SIZE(__pyx_args)) {
11841
13166
      case  0: break;
11842
13167
      default: goto __pyx_L5_argtuple_error;
11843
13168
    }
 
13169
    while (kw_args > 0) {
 
13170
      PyObject* value;
 
13171
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_namespace);
 
13172
      if (value) { values[0] = value; if (!(--kw_args)) break; }
 
13173
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_nsmap);
 
13174
      if (value) { values[1] = value; if (!(--kw_args)) break; }
 
13175
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_annotate);
 
13176
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
13177
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_makeelement);
 
13178
      if (value) { values[3] = value; if (!(--kw_args)) break; }
 
13179
      break;
 
13180
    }
11844
13181
    if (unlikely(kw_args > 0)) {
11845
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11846
 
    }
11847
 
    if (values[0]) {
11848
 
      __pyx_v_namespace = values[0];
11849
 
    }
11850
 
    if (values[1]) {
11851
 
      __pyx_v_nsmap = values[1];
11852
 
    }
11853
 
    if (values[2]) {
11854
 
      __pyx_v_annotate = values[2];
11855
 
    }
11856
 
    if (values[3]) {
11857
 
      __pyx_v_makeelement = values[3];
11858
 
    }
 
13182
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
13183
    }
 
13184
    __pyx_v_namespace = values[0];
 
13185
    __pyx_v_nsmap = values[1];
 
13186
    __pyx_v_annotate = values[2];
 
13187
    __pyx_v_makeelement = values[3];
11859
13188
  } else if (PyTuple_GET_SIZE(__pyx_args) != 0) {
11860
13189
    goto __pyx_L5_argtuple_error;
11861
13190
  } else {
 
13191
    __pyx_v_namespace = Py_None;
 
13192
    __pyx_v_nsmap = Py_None;
 
13193
    __pyx_v_annotate = __pyx_k_714;
 
13194
    __pyx_v_makeelement = Py_None;
11862
13195
  }
11863
13196
  goto __pyx_L4_argument_unpacking_done;
11864
13197
  __pyx_L5_argtuple_error:;
11865
 
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
13198
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11866
13199
  __pyx_L3_error:;
11867
13200
  __Pyx_AddTraceback("lxml.objectify.ElementMaker.__init__");
11868
13201
  return -1;
11869
13202
  __pyx_L4_argument_unpacking_done:;
11870
 
  Py_INCREF(__pyx_v_nsmap);
 
13203
  __Pyx_INCREF(__pyx_v_nsmap);
11871
13204
 
11872
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1188
 
13205
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1179
11873
13206
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,
11874
13207
 *                  makeelement=None):
11875
13208
 *         if nsmap is None:             # <<<<<<<<<<<<<<
11876
13209
 *             nsmap = _DEFAULT_NSMAP
11877
13210
 *         self._nsmap = nsmap
11878
13211
 */
11879
 
  __pyx_1 = (__pyx_v_nsmap == Py_None);
11880
 
  if (__pyx_1) {
 
13212
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
 
13213
  if (__pyx_t_1) {
11881
13214
 
11882
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1189
 
13215
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1180
11883
13216
 *                  makeelement=None):
11884
13217
 *         if nsmap is None:
11885
13218
 *             nsmap = _DEFAULT_NSMAP             # <<<<<<<<<<<<<<
11886
13219
 *         self._nsmap = nsmap
11887
13220
 *         if namespace is None:
11888
13221
 */
11889
 
    Py_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
11890
 
    Py_DECREF(__pyx_v_nsmap);
11891
 
    __pyx_v_nsmap = __pyx_v_4lxml_9objectify__DEFAULT_NSMAP;
 
13222
    __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
13223
    __Pyx_DECREF(__pyx_v_nsmap);
 
13224
    __pyx_v_nsmap = ((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
11892
13225
    goto __pyx_L6;
11893
13226
  }
11894
13227
  __pyx_L6:;
11895
13228
 
11896
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1190
 
13229
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1181
11897
13230
 *         if nsmap is None:
11898
13231
 *             nsmap = _DEFAULT_NSMAP
11899
13232
 *         self._nsmap = nsmap             # <<<<<<<<<<<<<<
11900
13233
 *         if namespace is None:
11901
13234
 *             self._namespace = None
11902
13235
 */
11903
 
  Py_INCREF(__pyx_v_nsmap);
11904
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
 
13236
  __Pyx_INCREF(__pyx_v_nsmap);
 
13237
  __Pyx_GIVEREF(__pyx_v_nsmap);
 
13238
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
 
13239
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
11905
13240
  ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap = __pyx_v_nsmap;
11906
13241
 
11907
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1191
 
13242
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1182
11908
13243
 *             nsmap = _DEFAULT_NSMAP
11909
13244
 *         self._nsmap = nsmap
11910
13245
 *         if namespace is None:             # <<<<<<<<<<<<<<
11911
13246
 *             self._namespace = None
11912
13247
 *         else:
11913
13248
 */
11914
 
  __pyx_1 = (__pyx_v_namespace == Py_None);
11915
 
  if (__pyx_1) {
 
13249
  __pyx_t_1 = (__pyx_v_namespace == Py_None);
 
13250
  if (__pyx_t_1) {
11916
13251
 
11917
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1192
 
13252
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1183
11918
13253
 *         self._nsmap = nsmap
11919
13254
 *         if namespace is None:
11920
13255
 *             self._namespace = None             # <<<<<<<<<<<<<<
11921
13256
 *         else:
11922
13257
 *             self._namespace = u"{%s}" % namespace
11923
13258
 */
11924
 
    Py_INCREF(Py_None);
11925
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
 
13259
    __Pyx_INCREF(Py_None);
 
13260
    __Pyx_GIVEREF(Py_None);
 
13261
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
 
13262
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
11926
13263
    ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace = Py_None;
11927
13264
    goto __pyx_L7;
11928
13265
  }
11929
13266
  /*else*/ {
11930
13267
 
11931
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1194
 
13268
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1185
11932
13269
 *             self._namespace = None
11933
13270
 *         else:
11934
13271
 *             self._namespace = u"{%s}" % namespace             # <<<<<<<<<<<<<<
11935
13272
 *         self._annotate = annotate
11936
13273
 *         if makeelement is not None:
11937
13274
 */
11938
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_750), __pyx_v_namespace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11939
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
11940
 
    ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace = __pyx_t_1;
11941
 
    __pyx_t_1 = 0;
 
13275
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_815), __pyx_v_namespace); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13276
    __Pyx_GOTREF(__pyx_t_2);
 
13277
    __Pyx_GIVEREF(__pyx_t_2);
 
13278
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
 
13279
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace);
 
13280
    ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace = __pyx_t_2;
 
13281
    __pyx_t_2 = 0;
11942
13282
  }
11943
13283
  __pyx_L7:;
11944
13284
 
11945
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1195
 
13285
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1186
11946
13286
 *         else:
11947
13287
 *             self._namespace = u"{%s}" % namespace
11948
13288
 *         self._annotate = annotate             # <<<<<<<<<<<<<<
11949
13289
 *         if makeelement is not None:
11950
13290
 *             assert callable(makeelement)
11951
13291
 */
11952
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_annotate); if (unlikely((__pyx_1 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11953
 
  ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_annotate = __pyx_1;
 
13292
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_annotate); if (unlikely((__pyx_t_1 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13293
  ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_annotate = __pyx_t_1;
11954
13294
 
11955
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1196
 
13295
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1187
11956
13296
 *             self._namespace = u"{%s}" % namespace
11957
13297
 *         self._annotate = annotate
11958
13298
 *         if makeelement is not None:             # <<<<<<<<<<<<<<
11959
13299
 *             assert callable(makeelement)
11960
13300
 *             self._makeelement = makeelement
11961
13301
 */
11962
 
  __pyx_1 = (__pyx_v_makeelement != Py_None);
11963
 
  if (__pyx_1) {
 
13302
  __pyx_t_1 = (__pyx_v_makeelement != Py_None);
 
13303
  if (__pyx_t_1) {
11964
13304
 
11965
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1197
 
13305
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1188
11966
13306
 *         self._annotate = annotate
11967
13307
 *         if makeelement is not None:
11968
13308
 *             assert callable(makeelement)             # <<<<<<<<<<<<<<
11972
13312
    #ifndef PYREX_WITHOUT_ASSERTIONS
11973
13313
    if (unlikely(!PyCallable_Check(__pyx_v_makeelement))) {
11974
13314
      PyErr_SetNone(PyExc_AssertionError);
11975
 
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13315
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11976
13316
    }
11977
13317
    #endif
11978
13318
 
11979
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1198
 
13319
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1189
11980
13320
 *         if makeelement is not None:
11981
13321
 *             assert callable(makeelement)
11982
13322
 *             self._makeelement = makeelement             # <<<<<<<<<<<<<<
11983
13323
 *         else:
11984
13324
 *             self._makeelement = None
11985
13325
 */
11986
 
    Py_INCREF(__pyx_v_makeelement);
11987
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13326
    __Pyx_INCREF(__pyx_v_makeelement);
 
13327
    __Pyx_GIVEREF(__pyx_v_makeelement);
 
13328
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13329
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
11988
13330
    ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement = __pyx_v_makeelement;
11989
13331
    goto __pyx_L8;
11990
13332
  }
11991
13333
  /*else*/ {
11992
13334
 
11993
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1200
 
13335
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1191
11994
13336
 *             self._makeelement = makeelement
11995
13337
 *         else:
11996
13338
 *             self._makeelement = None             # <<<<<<<<<<<<<<
11997
13339
 * 
11998
13340
 *     def __getattr__(self, tag):
11999
13341
 */
12000
 
    Py_INCREF(Py_None);
12001
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13342
    __Pyx_INCREF(Py_None);
 
13343
    __Pyx_GIVEREF(Py_None);
 
13344
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13345
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
12002
13346
    ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement = Py_None;
12003
13347
  }
12004
13348
  __pyx_L8:;
12006
13350
  __pyx_r = 0;
12007
13351
  goto __pyx_L0;
12008
13352
  __pyx_L1_error:;
 
13353
  __Pyx_XDECREF(__pyx_t_2);
12009
13354
  __Pyx_AddTraceback("lxml.objectify.ElementMaker.__init__");
12010
13355
  __pyx_r = -1;
12011
13356
  __pyx_L0:;
12012
 
  Py_DECREF(__pyx_v_nsmap);
 
13357
  __Pyx_DECREF(__pyx_v_nsmap);
 
13358
  __Pyx_FinishRefcountContext();
12013
13359
  return __pyx_r;
12014
13360
}
12015
13361
 
12016
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1202
 
13362
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1193
12017
13363
 *             self._makeelement = None
12018
13364
 * 
12019
13365
 *     def __getattr__(self, tag):             # <<<<<<<<<<<<<<
12024
13370
static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag); /*proto*/
12025
13371
static PyObject *__pyx_pf_4lxml_9objectify_12ElementMaker___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_tag) {
12026
13372
  struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *__pyx_v_element_maker;
12027
 
  PyObject *__pyx_r;
12028
 
  int __pyx_1;
12029
 
  int __pyx_2;
12030
 
  PyObject *__pyx_3 = 0;
12031
 
  PyObject *__pyx_4 = 0;
12032
 
  PyObject *__pyx_t_1 = NULL;
12033
 
  Py_INCREF(__pyx_v_tag);
12034
 
  __pyx_v_element_maker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)Py_None); Py_INCREF(Py_None);
 
13373
  PyObject *__pyx_r = NULL;
 
13374
  PyObject *__pyx_1 = 0;
 
13375
  int __pyx_t_1;
 
13376
  PyObject *__pyx_t_2 = NULL;
 
13377
  int __pyx_t_3;
 
13378
  int __pyx_t_4;
 
13379
  __Pyx_SetupRefcountContext("__getattr__");
 
13380
  __Pyx_INCREF(__pyx_v_tag);
 
13381
  __pyx_v_element_maker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)Py_None); __Pyx_INCREF(Py_None);
12035
13382
 
12036
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1204
 
13383
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1195
12037
13384
 *     def __getattr__(self, tag):
12038
13385
 *         cdef _ObjectifyElementMakerCaller element_maker
12039
13386
 *         if self._namespace is not None and tag[0] != u"{":             # <<<<<<<<<<<<<<
12040
13387
 *             tag = self._namespace + tag
12041
13388
 *         element_maker = NEW_ELEMENT_MAKER(_ObjectifyElementMakerCaller)
12042
13389
 */
12043
 
  __pyx_1 = (((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace != Py_None);
12044
 
  if (__pyx_1) {
12045
 
    __pyx_3 = __Pyx_GetItemInt(__pyx_v_tag, 0, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12046
 
    __pyx_4 = PyObject_RichCompare(__pyx_3, ((PyObject *)__pyx_kp_751), Py_NE); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12047
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
12048
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12049
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
 
13390
  __pyx_t_1 = (((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace != Py_None);
 
13391
  if (__pyx_t_1) {
 
13392
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_tag, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13393
    __Pyx_GOTREF(__pyx_1);
 
13394
    __pyx_t_2 = PyObject_RichCompare(__pyx_1, ((PyObject *)__pyx_kp_816), Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13395
    __Pyx_GOTREF(__pyx_t_2);
 
13396
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
13397
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13398
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
13399
    __pyx_t_4 = __pyx_t_3;
 
13400
  } else {
 
13401
    __pyx_t_4 = __pyx_t_1;
12050
13402
  }
12051
 
  if (__pyx_1) {
 
13403
  if (__pyx_t_4) {
12052
13404
 
12053
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1205
 
13405
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1196
12054
13406
 *         cdef _ObjectifyElementMakerCaller element_maker
12055
13407
 *         if self._namespace is not None and tag[0] != u"{":
12056
13408
 *             tag = self._namespace + tag             # <<<<<<<<<<<<<<
12057
13409
 *         element_maker = NEW_ELEMENT_MAKER(_ObjectifyElementMakerCaller)
12058
13410
 *         element_maker._tag = tag
12059
13411
 */
12060
 
    __pyx_t_1 = PyNumber_Add(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace, __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12061
 
    Py_DECREF(__pyx_v_tag);
12062
 
    __pyx_v_tag = __pyx_t_1;
12063
 
    __pyx_t_1 = 0;
 
13412
    __pyx_t_2 = PyNumber_Add(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_namespace, __pyx_v_tag); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13413
    __Pyx_GOTREF(__pyx_t_2);
 
13414
    __Pyx_DECREF(__pyx_v_tag);
 
13415
    __pyx_v_tag = __pyx_t_2;
 
13416
    __pyx_t_2 = 0;
12064
13417
    goto __pyx_L5;
12065
13418
  }
12066
13419
  __pyx_L5:;
12067
13420
 
12068
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1206
 
13421
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1197
12069
13422
 *         if self._namespace is not None and tag[0] != u"{":
12070
13423
 *             tag = self._namespace + tag
12071
13424
 *         element_maker = NEW_ELEMENT_MAKER(_ObjectifyElementMakerCaller)             # <<<<<<<<<<<<<<
12072
13425
 *         element_maker._tag = tag
12073
13426
 *         element_maker._nsmap = self._nsmap
12074
13427
 */
12075
 
  __pyx_3 = ((PyObject *)PY_NEW(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller)))); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12076
 
  Py_DECREF(((PyObject *)__pyx_v_element_maker));
12077
 
  __pyx_v_element_maker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_3);
12078
 
  __pyx_3 = 0;
 
13428
  __pyx_t_2 = ((PyObject *)PY_NEW(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller)))); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13429
  __Pyx_GOTREF(__pyx_t_2);
 
13430
  __Pyx_DECREF(((PyObject *)__pyx_v_element_maker));
 
13431
  __pyx_v_element_maker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_t_2);
 
13432
  __pyx_t_2 = 0;
12079
13433
 
12080
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1207
 
13434
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1198
12081
13435
 *             tag = self._namespace + tag
12082
13436
 *         element_maker = NEW_ELEMENT_MAKER(_ObjectifyElementMakerCaller)
12083
13437
 *         element_maker._tag = tag             # <<<<<<<<<<<<<<
12084
13438
 *         element_maker._nsmap = self._nsmap
12085
13439
 *         element_maker._annotate = self._annotate
12086
13440
 */
12087
 
  Py_INCREF(__pyx_v_tag);
12088
 
  Py_DECREF(__pyx_v_element_maker->_tag);
 
13441
  __Pyx_INCREF(__pyx_v_tag);
 
13442
  __Pyx_GIVEREF(__pyx_v_tag);
 
13443
  __Pyx_GOTREF(__pyx_v_element_maker->_tag);
 
13444
  __Pyx_DECREF(__pyx_v_element_maker->_tag);
12089
13445
  __pyx_v_element_maker->_tag = __pyx_v_tag;
12090
13446
 
12091
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1208
 
13447
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1199
12092
13448
 *         element_maker = NEW_ELEMENT_MAKER(_ObjectifyElementMakerCaller)
12093
13449
 *         element_maker._tag = tag
12094
13450
 *         element_maker._nsmap = self._nsmap             # <<<<<<<<<<<<<<
12095
13451
 *         element_maker._annotate = self._annotate
12096
13452
 *         element_maker._element_factory = self._makeelement
12097
13453
 */
12098
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
12099
 
  Py_DECREF(__pyx_v_element_maker->_nsmap);
 
13454
  __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
 
13455
  __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap);
 
13456
  __Pyx_GOTREF(__pyx_v_element_maker->_nsmap);
 
13457
  __Pyx_DECREF(__pyx_v_element_maker->_nsmap);
12100
13458
  __pyx_v_element_maker->_nsmap = ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_nsmap;
12101
13459
 
12102
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1209
 
13460
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1200
12103
13461
 *         element_maker._tag = tag
12104
13462
 *         element_maker._nsmap = self._nsmap
12105
13463
 *         element_maker._annotate = self._annotate             # <<<<<<<<<<<<<<
12108
13466
 */
12109
13467
  __pyx_v_element_maker->_annotate = ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_annotate;
12110
13468
 
12111
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1210
 
13469
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1201
12112
13470
 *         element_maker._nsmap = self._nsmap
12113
13471
 *         element_maker._annotate = self._annotate
12114
13472
 *         element_maker._element_factory = self._makeelement             # <<<<<<<<<<<<<<
12115
13473
 *         return element_maker
12116
13474
 * 
12117
13475
 */
12118
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
12119
 
  Py_DECREF(__pyx_v_element_maker->_element_factory);
 
13476
  __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13477
  __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement);
 
13478
  __Pyx_GOTREF(__pyx_v_element_maker->_element_factory);
 
13479
  __Pyx_DECREF(__pyx_v_element_maker->_element_factory);
12120
13480
  __pyx_v_element_maker->_element_factory = ((struct __pyx_obj_4lxml_9objectify_ElementMaker *)__pyx_v_self)->_makeelement;
12121
13481
 
12122
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1211
 
13482
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1202
12123
13483
 *         element_maker._annotate = self._annotate
12124
13484
 *         element_maker._element_factory = self._makeelement
12125
13485
 *         return element_maker             # <<<<<<<<<<<<<<
12126
13486
 * 
12127
13487
 * cdef class _ObjectifyElementMakerCaller:
12128
13488
 */
12129
 
  Py_INCREF(((PyObject *)__pyx_v_element_maker));
 
13489
  __Pyx_XDECREF(__pyx_r);
 
13490
  __Pyx_INCREF(((PyObject *)__pyx_v_element_maker));
12130
13491
  __pyx_r = ((PyObject *)__pyx_v_element_maker);
12131
13492
  goto __pyx_L0;
12132
13493
 
12133
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
13494
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12134
13495
  goto __pyx_L0;
12135
13496
  __pyx_L1_error:;
12136
 
  Py_XDECREF(__pyx_3);
12137
 
  Py_XDECREF(__pyx_4);
 
13497
  __Pyx_XDECREF(__pyx_1);
 
13498
  __Pyx_XDECREF(__pyx_t_2);
12138
13499
  __Pyx_AddTraceback("lxml.objectify.ElementMaker.__getattr__");
12139
13500
  __pyx_r = NULL;
12140
13501
  __pyx_L0:;
12141
 
  Py_DECREF(__pyx_v_element_maker);
12142
 
  Py_DECREF(__pyx_v_tag);
 
13502
  __Pyx_DECREF((PyObject *)__pyx_v_element_maker);
 
13503
  __Pyx_DECREF(__pyx_v_tag);
 
13504
  __Pyx_XGIVEREF(__pyx_r);
 
13505
  __Pyx_FinishRefcountContext();
12143
13506
  return __pyx_r;
12144
13507
}
12145
13508
 
12146
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1219
 
13509
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1210
12147
13510
 *     cdef bint _annotate
12148
13511
 * 
12149
13512
 *     def __call__(self, *children, **attrib):             # <<<<<<<<<<<<<<
12164
13527
  int __pyx_v_has_string_value;
12165
13528
  PyObject *__pyx_v_pytype_name;
12166
13529
  PyObject *__pyx_v_child;
12167
 
  PyObject *__pyx_r;
12168
 
  int __pyx_1;
12169
 
  PyObject *__pyx_2 = 0;
12170
 
  PyObject *__pyx_3 = 0;
12171
 
  Py_ssize_t __pyx_4 = 0;
12172
 
  int __pyx_5;
12173
 
  PyObject *__pyx_6 = 0;
 
13530
  PyObject *__pyx_r = NULL;
 
13531
  PyObject *__pyx_1 = 0;
 
13532
  int __pyx_t_1;
 
13533
  PyObject *__pyx_t_2 = NULL;
 
13534
  PyObject *__pyx_t_3 = NULL;
 
13535
  Py_ssize_t __pyx_t_4;
 
13536
  int __pyx_t_5;
 
13537
  PyObject *__pyx_t_6 = NULL;
 
13538
  __Pyx_SetupRefcountContext("__call__");
12174
13539
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__call__", 1))) return NULL;
12175
13540
  __pyx_v_attrib = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
12176
13541
  if (unlikely(!__pyx_v_attrib)) return NULL;
12177
 
  Py_INCREF(__pyx_args);
 
13542
  __Pyx_GOTREF(__pyx_v_attrib);
 
13543
  __Pyx_INCREF(__pyx_args);
12178
13544
  __pyx_v_children = __pyx_args;
12179
 
  __pyx_v_elementMaker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)Py_None); Py_INCREF(Py_None);
12180
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
12181
 
  __pyx_v_childElement = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
12182
 
  __pyx_v_pytype_name = Py_None; Py_INCREF(Py_None);
12183
 
  __pyx_v_child = Py_None; Py_INCREF(Py_None);
 
13545
  __pyx_v_elementMaker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)Py_None); __Pyx_INCREF(Py_None);
 
13546
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
13547
  __pyx_v_childElement = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
13548
  __pyx_v_pytype_name = Py_None; __Pyx_INCREF(Py_None);
 
13549
  __pyx_v_child = Py_None; __Pyx_INCREF(Py_None);
12184
13550
 
12185
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1227
 
13551
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1218
12186
13552
 *         cdef bint has_children
12187
13553
 *         cdef bint has_string_value
12188
13554
 *         if self._element_factory is None:             # <<<<<<<<<<<<<<
12189
13555
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)
12190
13556
 *         else:
12191
13557
 */
12192
 
  __pyx_1 = (((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_element_factory == Py_None);
12193
 
  if (__pyx_1) {
 
13558
  __pyx_t_1 = (((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_element_factory == Py_None);
 
13559
  if (__pyx_t_1) {
12194
13560
 
12195
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1228
 
13561
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1219
12196
13562
 *         cdef bint has_string_value
12197
13563
 *         if self._element_factory is None:
12198
13564
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)             # <<<<<<<<<<<<<<
12199
13565
 *         else:
12200
13566
 *             element = self._element_factory(self._tag, attrib, self._nsmap)
12201
13567
 */
12202
 
    __pyx_2 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag, Py_None, __pyx_v_attrib, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12203
 
    Py_DECREF(((PyObject *)__pyx_v_element));
12204
 
    __pyx_v_element = ((struct LxmlElement *)__pyx_2);
12205
 
    __pyx_2 = 0;
 
13568
    __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag, Py_None, __pyx_v_attrib, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1219; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13569
    __Pyx_GOTREF(__pyx_t_2);
 
13570
    __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
13571
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_2);
 
13572
    __pyx_t_2 = 0;
12206
13573
    goto __pyx_L5;
12207
13574
  }
12208
13575
  /*else*/ {
12209
13576
 
12210
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1230
 
13577
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1221
12211
13578
 *             element = _makeElement(self._tag, None, attrib, self._nsmap)
12212
13579
 *         else:
12213
13580
 *             element = self._element_factory(self._tag, attrib, self._nsmap)             # <<<<<<<<<<<<<<
12214
13581
 * 
12215
13582
 *         pytype_name = None
12216
13583
 */
12217
 
    __pyx_2 = PyTuple_New(3); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12218
 
    Py_INCREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag);
12219
 
    PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag);
12220
 
    Py_INCREF(__pyx_v_attrib);
12221
 
    PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_attrib);
12222
 
    Py_INCREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap);
12223
 
    PyTuple_SET_ITEM(__pyx_2, 2, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap);
12224
 
    __pyx_3 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_element_factory, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12225
 
    Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
12226
 
    if (!(__Pyx_TypeTest(__pyx_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12227
 
    Py_DECREF(((PyObject *)__pyx_v_element));
12228
 
    __pyx_v_element = ((struct LxmlElement *)__pyx_3);
12229
 
    __pyx_3 = 0;
 
13584
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13585
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
13586
    __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag);
 
13587
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag);
 
13588
    __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_tag);
 
13589
    __Pyx_INCREF(__pyx_v_attrib);
 
13590
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_attrib);
 
13591
    __Pyx_GIVEREF(__pyx_v_attrib);
 
13592
    __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap);
 
13593
    PyTuple_SET_ITEM(__pyx_t_2, 2, ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap);
 
13594
    __Pyx_GIVEREF(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_nsmap);
 
13595
    __pyx_t_3 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_element_factory, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13596
    __Pyx_GOTREF(__pyx_t_3);
 
13597
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
13598
    if (!(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13599
    __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
13600
    __pyx_v_element = ((struct LxmlElement *)__pyx_t_3);
 
13601
    __pyx_t_3 = 0;
12230
13602
  }
12231
13603
  __pyx_L5:;
12232
13604
 
12233
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1232
 
13605
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1223
12234
13606
 *             element = self._element_factory(self._tag, attrib, self._nsmap)
12235
13607
 * 
12236
13608
 *         pytype_name = None             # <<<<<<<<<<<<<<
12237
13609
 *         has_children = 0
12238
13610
 *         has_string_value = 0
12239
13611
 */
12240
 
  Py_INCREF(Py_None);
12241
 
  Py_DECREF(__pyx_v_pytype_name);
 
13612
  __Pyx_INCREF(Py_None);
 
13613
  __Pyx_DECREF(__pyx_v_pytype_name);
12242
13614
  __pyx_v_pytype_name = Py_None;
12243
13615
 
12244
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1233
 
13616
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1224
12245
13617
 * 
12246
13618
 *         pytype_name = None
12247
13619
 *         has_children = 0             # <<<<<<<<<<<<<<
12250
13622
 */
12251
13623
  __pyx_v_has_children = 0;
12252
13624
 
12253
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1234
 
13625
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1225
12254
13626
 *         pytype_name = None
12255
13627
 *         has_children = 0
12256
13628
 *         has_string_value = 0             # <<<<<<<<<<<<<<
12259
13631
 */
12260
13632
  __pyx_v_has_string_value = 0;
12261
13633
 
12262
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1235
 
13634
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1226
12263
13635
 *         has_children = 0
12264
13636
 *         has_string_value = 0
12265
13637
 *         for child in children:             # <<<<<<<<<<<<<<
12267
13639
 *                 if python.PyTuple_GET_SIZE(children) == 1:
12268
13640
 */
12269
13641
  if (PyList_CheckExact(__pyx_v_children) || PyTuple_CheckExact(__pyx_v_children)) {
12270
 
    __pyx_4 = 0; __pyx_2 = __pyx_v_children; Py_INCREF(__pyx_2);
 
13642
    __pyx_t_4 = 0; __pyx_t_3 = __pyx_v_children; __Pyx_INCREF(__pyx_t_3);
12271
13643
  } else {
12272
 
    __pyx_4 = -1; __pyx_2 = PyObject_GetIter(__pyx_v_children); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13644
    __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_children); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13645
    __Pyx_GOTREF(__pyx_t_3);
12273
13646
  }
12274
13647
  for (;;) {
12275
 
    if (likely(PyList_CheckExact(__pyx_2))) {
12276
 
      if (__pyx_4 >= PyList_GET_SIZE(__pyx_2)) break;
12277
 
      __pyx_3 = PyList_GET_ITEM(__pyx_2, __pyx_4); Py_INCREF(__pyx_3); __pyx_4++;
12278
 
    } else if (likely(PyTuple_CheckExact(__pyx_2))) {
12279
 
      if (__pyx_4 >= PyTuple_GET_SIZE(__pyx_2)) break;
12280
 
      __pyx_3 = PyTuple_GET_ITEM(__pyx_2, __pyx_4); Py_INCREF(__pyx_3); __pyx_4++;
 
13648
    if (likely(PyList_CheckExact(__pyx_t_3))) {
 
13649
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
 
13650
      __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
 
13651
    } else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
 
13652
      if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
 
13653
      __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
12281
13654
    } else {
12282
 
      __pyx_3 = PyIter_Next(__pyx_2);
12283
 
      if (!__pyx_3) {
12284
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13655
      __pyx_t_2 = PyIter_Next(__pyx_t_3);
 
13656
      if (!__pyx_t_2) {
 
13657
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12285
13658
        break;
12286
13659
      }
 
13660
      __Pyx_GOTREF(__pyx_t_2);
12287
13661
    }
12288
 
    Py_DECREF(__pyx_v_child);
12289
 
    __pyx_v_child = __pyx_3;
12290
 
    __pyx_3 = 0;
 
13662
    __Pyx_DECREF(__pyx_v_child);
 
13663
    __pyx_v_child = __pyx_t_2;
 
13664
    __pyx_t_2 = 0;
12291
13665
 
12292
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1236
 
13666
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1227
12293
13667
 *         has_string_value = 0
12294
13668
 *         for child in children:
12295
13669
 *             if child is None:             # <<<<<<<<<<<<<<
12296
13670
 *                 if python.PyTuple_GET_SIZE(children) == 1:
12297
13671
 *                     cetree.setAttributeValue(
12298
13672
 */
12299
 
    __pyx_1 = (__pyx_v_child == Py_None);
12300
 
    if (__pyx_1) {
 
13673
    __pyx_t_1 = (__pyx_v_child == Py_None);
 
13674
    if (__pyx_t_1) {
12301
13675
 
12302
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1237
 
13676
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1228
12303
13677
 *         for child in children:
12304
13678
 *             if child is None:
12305
13679
 *                 if python.PyTuple_GET_SIZE(children) == 1:             # <<<<<<<<<<<<<<
12306
13680
 *                     cetree.setAttributeValue(
12307
13681
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
12308
13682
 */
12309
 
      __pyx_1 = (PyTuple_GET_SIZE(__pyx_v_children) == 1);
12310
 
      if (__pyx_1) {
 
13683
      __pyx_t_1 = (PyTuple_GET_SIZE(__pyx_v_children) == 1);
 
13684
      if (__pyx_t_1) {
12311
13685
 
12312
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1239
 
13686
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1230
12313
13687
 *                 if python.PyTuple_GET_SIZE(children) == 1:
12314
13688
 *                     cetree.setAttributeValue(
12315
13689
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")             # <<<<<<<<<<<<<<
12316
13690
 *             elif python._isString(child):
12317
13691
 *                 _add_text(element, child)
12318
13692
 */
12319
 
        __pyx_5 = setAttributeValue(__pyx_v_element, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_752)); if (unlikely(__pyx_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13693
        __pyx_t_5 = setAttributeValue(__pyx_v_element, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_817)); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12320
13694
        goto __pyx_L9;
12321
13695
      }
12322
13696
      __pyx_L9:;
12323
13697
      goto __pyx_L8;
12324
13698
    }
12325
13699
 
12326
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1240
 
13700
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1231
12327
13701
 *                     cetree.setAttributeValue(
12328
13702
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
12329
13703
 *             elif python._isString(child):             # <<<<<<<<<<<<<<
12330
13704
 *                 _add_text(element, child)
12331
13705
 *                 has_string_value = 1
12332
13706
 */
12333
 
    __pyx_1 = _isString(__pyx_v_child);
12334
 
    if (__pyx_1) {
 
13707
    __pyx_t_1 = _isString(__pyx_v_child);
 
13708
    if (__pyx_t_1) {
12335
13709
 
12336
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1241
 
13710
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1232
12337
13711
 *                         element, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
12338
13712
 *             elif python._isString(child):
12339
13713
 *                 _add_text(element, child)             # <<<<<<<<<<<<<<
12340
13714
 *                 has_string_value = 1
12341
13715
 *             elif isinstance(child, _Element):
12342
13716
 */
12343
 
      __pyx_3 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12344
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
13717
      __pyx_t_2 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13718
      __Pyx_GOTREF(__pyx_t_2);
 
13719
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12345
13720
 
12346
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1242
 
13721
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1233
12347
13722
 *             elif python._isString(child):
12348
13723
 *                 _add_text(element, child)
12349
13724
 *                 has_string_value = 1             # <<<<<<<<<<<<<<
12354
13729
      goto __pyx_L8;
12355
13730
    }
12356
13731
 
12357
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1243
 
13732
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1234
12358
13733
 *                 _add_text(element, child)
12359
13734
 *                 has_string_value = 1
12360
13735
 *             elif isinstance(child, _Element):             # <<<<<<<<<<<<<<
12361
13736
 *                 cetree.appendChild(element, <_Element>child)
12362
13737
 *                 has_children = 1
12363
13738
 */
12364
 
    __pyx_1 = PyObject_TypeCheck(__pyx_v_child, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
12365
 
    if (__pyx_1) {
 
13739
    __pyx_t_1 = PyObject_TypeCheck(__pyx_v_child, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_11etreepublic__Element))); 
 
13740
    if (__pyx_t_1) {
12366
13741
 
12367
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1244
 
13742
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1235
12368
13743
 *                 has_string_value = 1
12369
13744
 *             elif isinstance(child, _Element):
12370
13745
 *                 cetree.appendChild(element, <_Element>child)             # <<<<<<<<<<<<<<
12373
13748
 */
12374
13749
      appendChild(__pyx_v_element, ((struct LxmlElement *)__pyx_v_child));
12375
13750
 
12376
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1245
 
13751
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1236
12377
13752
 *             elif isinstance(child, _Element):
12378
13753
 *                 cetree.appendChild(element, <_Element>child)
12379
13754
 *                 has_children = 1             # <<<<<<<<<<<<<<
12384
13759
      goto __pyx_L8;
12385
13760
    }
12386
13761
 
12387
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1246
 
13762
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1237
12388
13763
 *                 cetree.appendChild(element, <_Element>child)
12389
13764
 *                 has_children = 1
12390
13765
 *             elif isinstance(child, _ObjectifyElementMakerCaller):             # <<<<<<<<<<<<<<
12391
13766
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
12392
13767
 *                 if elementMaker._element_factory is None:
12393
13768
 */
12394
 
    __pyx_1 = PyObject_TypeCheck(__pyx_v_child, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller))); 
12395
 
    if (__pyx_1) {
 
13769
    __pyx_t_1 = PyObject_TypeCheck(__pyx_v_child, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller))); 
 
13770
    if (__pyx_t_1) {
12396
13771
 
12397
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1247
 
13772
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1238
12398
13773
 *                 has_children = 1
12399
13774
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
12400
13775
 *                 elementMaker = <_ObjectifyElementMakerCaller>child             # <<<<<<<<<<<<<<
12401
13776
 *                 if elementMaker._element_factory is None:
12402
13777
 *                     cetree.makeSubElement(element, elementMaker._tag,
12403
13778
 */
12404
 
      Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_child)));
12405
 
      Py_DECREF(((PyObject *)__pyx_v_elementMaker));
 
13779
      __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_child)));
 
13780
      __Pyx_DECREF(((PyObject *)__pyx_v_elementMaker));
12406
13781
      __pyx_v_elementMaker = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_child);
12407
13782
 
12408
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1248
 
13783
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1239
12409
13784
 *             elif isinstance(child, _ObjectifyElementMakerCaller):
12410
13785
 *                 elementMaker = <_ObjectifyElementMakerCaller>child
12411
13786
 *                 if elementMaker._element_factory is None:             # <<<<<<<<<<<<<<
12412
13787
 *                     cetree.makeSubElement(element, elementMaker._tag,
12413
13788
 *                                           None, None, None, None)
12414
13789
 */
12415
 
      __pyx_1 = (__pyx_v_elementMaker->_element_factory == Py_None);
12416
 
      if (__pyx_1) {
 
13790
      __pyx_t_1 = (__pyx_v_elementMaker->_element_factory == Py_None);
 
13791
      if (__pyx_t_1) {
12417
13792
 
12418
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1250
 
13793
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1241
12419
13794
 *                 if elementMaker._element_factory is None:
12420
13795
 *                     cetree.makeSubElement(element, elementMaker._tag,
12421
13796
 *                                           None, None, None, None)             # <<<<<<<<<<<<<<
12422
13797
 *                 else:
12423
13798
 *                     childElement = elementMaker._element_factory(
12424
13799
 */
12425
 
        __pyx_3 = ((PyObject *)makeSubElement(__pyx_v_element, __pyx_v_elementMaker->_tag, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12426
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
 
13800
        __pyx_t_2 = ((PyObject *)makeSubElement(__pyx_v_element, __pyx_v_elementMaker->_tag, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13801
        __Pyx_GOTREF(__pyx_t_2);
 
13802
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12427
13803
        goto __pyx_L10;
12428
13804
      }
12429
13805
      /*else*/ {
12430
13806
 
12431
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1253
 
13807
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1244
12432
13808
 *                 else:
12433
13809
 *                     childElement = elementMaker._element_factory(
12434
13810
 *                         elementMaker._tag)             # <<<<<<<<<<<<<<
12435
13811
 *                     cetree.appendChild(element, childElement)
12436
13812
 *                 has_children = 1
12437
13813
 */
12438
 
        __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12439
 
        Py_INCREF(__pyx_v_elementMaker->_tag);
12440
 
        PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_elementMaker->_tag);
12441
 
        __pyx_6 = PyObject_Call(__pyx_v_elementMaker->_element_factory, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12442
 
        Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
12443
 
        if (!(__Pyx_TypeTest(__pyx_6, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12444
 
        Py_DECREF(((PyObject *)__pyx_v_childElement));
12445
 
        __pyx_v_childElement = ((struct LxmlElement *)__pyx_6);
12446
 
        __pyx_6 = 0;
 
13814
        __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13815
        __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
13816
        __Pyx_INCREF(__pyx_v_elementMaker->_tag);
 
13817
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_elementMaker->_tag);
 
13818
        __Pyx_GIVEREF(__pyx_v_elementMaker->_tag);
 
13819
        __pyx_t_6 = PyObject_Call(__pyx_v_elementMaker->_element_factory, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13820
        __Pyx_GOTREF(__pyx_t_6);
 
13821
        __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
13822
        if (!(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13823
        __Pyx_DECREF(((PyObject *)__pyx_v_childElement));
 
13824
        __pyx_v_childElement = ((struct LxmlElement *)__pyx_t_6);
 
13825
        __pyx_t_6 = 0;
12447
13826
 
12448
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1254
 
13827
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1245
12449
13828
 *                     childElement = elementMaker._element_factory(
12450
13829
 *                         elementMaker._tag)
12451
13830
 *                     cetree.appendChild(element, childElement)             # <<<<<<<<<<<<<<
12456
13835
      }
12457
13836
      __pyx_L10:;
12458
13837
 
12459
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1255
 
13838
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1246
12460
13839
 *                         elementMaker._tag)
12461
13840
 *                     cetree.appendChild(element, childElement)
12462
13841
 *                 has_children = 1             # <<<<<<<<<<<<<<
12468
13847
    }
12469
13848
    /*else*/ {
12470
13849
 
12471
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1257
 
13850
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1248
12472
13851
 *                 has_children = 1
12473
13852
 *             else:
12474
13853
 *                 if pytype_name is not None:             # <<<<<<<<<<<<<<
12475
13854
 *                     # concatenation always makes the result a string
12476
13855
 *                     has_string_value = 1
12477
13856
 */
12478
 
      __pyx_1 = (__pyx_v_pytype_name != Py_None);
12479
 
      if (__pyx_1) {
 
13857
      __pyx_t_1 = (__pyx_v_pytype_name != Py_None);
 
13858
      if (__pyx_t_1) {
12480
13859
 
12481
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1259
 
13860
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1250
12482
13861
 *                 if pytype_name is not None:
12483
13862
 *                     # concatenation always makes the result a string
12484
13863
 *                     has_string_value = 1             # <<<<<<<<<<<<<<
12490
13869
      }
12491
13870
      __pyx_L11:;
12492
13871
 
12493
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1260
 
13872
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1251
12494
13873
 *                     # concatenation always makes the result a string
12495
13874
 *                     has_string_value = 1
12496
13875
 *                 pytype_name = _typename(child)             # <<<<<<<<<<<<<<
12497
13876
 *                 pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
12498
13877
 *                 if pytype is not NULL:
12499
13878
 */
12500
 
      __pyx_3 = __pyx_f_4lxml_9objectify__typename(__pyx_v_child); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12501
 
      Py_DECREF(__pyx_v_pytype_name);
12502
 
      __pyx_v_pytype_name = __pyx_3;
12503
 
      __pyx_3 = 0;
 
13879
      __pyx_t_6 = __pyx_f_4lxml_9objectify__typename(__pyx_v_child); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13880
      __Pyx_GOTREF(__pyx_t_6);
 
13881
      __Pyx_DECREF(__pyx_v_pytype_name);
 
13882
      __pyx_v_pytype_name = __pyx_t_6;
 
13883
      __pyx_t_6 = 0;
12504
13884
 
12505
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1261
 
13885
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1252
12506
13886
 *                     has_string_value = 1
12507
13887
 *                 pytype_name = _typename(child)
12508
13888
 *                 pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)             # <<<<<<<<<<<<<<
12509
13889
 *                 if pytype is not NULL:
12510
13890
 *                     _add_text(element, (<PyType>pytype).stringify(child))
12511
13891
 */
12512
 
      __pyx_v_pytype = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_pytype_name);
 
13892
      __pyx_v_pytype = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_pytype_name);
12513
13893
 
12514
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1262
 
13894
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1253
12515
13895
 *                 pytype_name = _typename(child)
12516
13896
 *                 pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
12517
13897
 *                 if pytype is not NULL:             # <<<<<<<<<<<<<<
12518
13898
 *                     _add_text(element, (<PyType>pytype).stringify(child))
12519
13899
 *                 else:
12520
13900
 */
12521
 
      __pyx_1 = (__pyx_v_pytype != NULL);
12522
 
      if (__pyx_1) {
 
13901
      __pyx_t_1 = (__pyx_v_pytype != NULL);
 
13902
      if (__pyx_t_1) {
12523
13903
 
12524
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1263
 
13904
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1254
12525
13905
 *                 pytype = python.PyDict_GetItem(_PYTYPE_DICT, pytype_name)
12526
13906
 *                 if pytype is not NULL:
12527
13907
 *                     _add_text(element, (<PyType>pytype).stringify(child))             # <<<<<<<<<<<<<<
12528
13908
 *                 else:
12529
13909
 *                     has_string_value = 1
12530
13910
 */
12531
 
        __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12532
 
        Py_INCREF(__pyx_v_child);
12533
 
        PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_child);
12534
 
        __pyx_3 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12535
 
        Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
12536
 
        __pyx_6 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_3); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12537
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
12538
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
 
13911
        __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13912
        __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
13913
        __Pyx_INCREF(__pyx_v_child);
 
13914
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_child);
 
13915
        __Pyx_GIVEREF(__pyx_v_child);
 
13916
        __pyx_t_2 = PyObject_Call(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_pytype)->stringify, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13917
        __Pyx_GOTREF(__pyx_t_2);
 
13918
        __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
13919
        __pyx_t_6 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13920
        __Pyx_GOTREF(__pyx_t_6);
 
13921
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
13922
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
12539
13923
        goto __pyx_L12;
12540
13924
      }
12541
13925
      /*else*/ {
12542
13926
 
12543
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1265
 
13927
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1256
12544
13928
 *                     _add_text(element, (<PyType>pytype).stringify(child))
12545
13929
 *                 else:
12546
13930
 *                     has_string_value = 1             # <<<<<<<<<<<<<<
12549
13933
 */
12550
13934
        __pyx_v_has_string_value = 1;
12551
13935
 
12552
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1266
 
13936
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1257
12553
13937
 *                 else:
12554
13938
 *                     has_string_value = 1
12555
13939
 *                     child = unicode(child)             # <<<<<<<<<<<<<<
12556
13940
 *                     _add_text(element, child)
12557
13941
 * 
12558
13942
 */
12559
 
        __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12560
 
        Py_INCREF(__pyx_v_child);
12561
 
        PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_child);
12562
 
        __pyx_6 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1266; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12563
 
        Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
12564
 
        Py_DECREF(__pyx_v_child);
12565
 
        __pyx_v_child = __pyx_6;
12566
 
        __pyx_6 = 0;
 
13943
        __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13944
        __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
13945
        __Pyx_INCREF(__pyx_v_child);
 
13946
        PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_child);
 
13947
        __Pyx_GIVEREF(__pyx_v_child);
 
13948
        __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13949
        __Pyx_GOTREF(__pyx_t_2);
 
13950
        __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
13951
        __Pyx_DECREF(__pyx_v_child);
 
13952
        __pyx_v_child = __pyx_t_2;
 
13953
        __pyx_t_2 = 0;
12567
13954
 
12568
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1267
 
13955
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1258
12569
13956
 *                     has_string_value = 1
12570
13957
 *                     child = unicode(child)
12571
13958
 *                     _add_text(element, child)             # <<<<<<<<<<<<<<
12572
13959
 * 
12573
13960
 *         if self._annotate and not has_children:
12574
13961
 */
12575
 
        __pyx_3 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12576
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
 
13962
        __pyx_t_2 = __pyx_f_4lxml_9objectify__add_text(__pyx_v_element, __pyx_v_child); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
13963
        __Pyx_GOTREF(__pyx_t_2);
 
13964
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12577
13965
      }
12578
13966
      __pyx_L12:;
12579
13967
    }
12580
13968
    __pyx_L8:;
12581
13969
  }
12582
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
13970
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12583
13971
 
12584
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1269
 
13972
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1260
12585
13973
 *                     _add_text(element, child)
12586
13974
 * 
12587
13975
 *         if self._annotate and not has_children:             # <<<<<<<<<<<<<<
12588
13976
 *             if has_string_value:
12589
13977
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
12590
13978
 */
12591
 
  __pyx_1 = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_annotate;
12592
 
  if (__pyx_1) {
12593
 
    __pyx_1 = (!__pyx_v_has_children);
 
13979
  if (((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_annotate) {
 
13980
    __pyx_t_1 = (!__pyx_v_has_children);
 
13981
  } else {
 
13982
    __pyx_t_1 = ((struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller *)__pyx_v_self)->_annotate;
12594
13983
  }
12595
 
  if (__pyx_1) {
 
13984
  if (__pyx_t_1) {
12596
13985
 
12597
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1270
 
13986
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1261
12598
13987
 * 
12599
13988
 *         if self._annotate and not has_children:
12600
13989
 *             if has_string_value:             # <<<<<<<<<<<<<<
12601
13990
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
12602
13991
 *             elif pytype_name is not None:
12603
13992
 */
12604
 
    __pyx_1 = __pyx_v_has_string_value;
12605
 
    if (__pyx_1) {
 
13993
    __pyx_t_1 = __pyx_v_has_string_value;
 
13994
    if (__pyx_t_1) {
12606
13995
 
12607
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1271
 
13996
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1262
12608
13997
 *         if self._annotate and not has_children:
12609
13998
 *             if has_string_value:
12610
13999
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")             # <<<<<<<<<<<<<<
12611
14000
 *             elif pytype_name is not None:
12612
14001
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
12613
14002
 */
12614
 
      __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12615
 
      __pyx_5 = setAttributeValue(__pyx_v_element, __pyx_6, ((PyObject *)__pyx_kp_753)); if (unlikely(__pyx_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12616
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
 
14003
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14004
      __Pyx_GOTREF(__pyx_1);
 
14005
      __pyx_t_5 = setAttributeValue(__pyx_v_element, __pyx_1, ((PyObject *)__pyx_kp_818)); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14006
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
12617
14007
      goto __pyx_L14;
12618
14008
    }
12619
14009
 
12620
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1272
 
14010
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1263
12621
14011
 *             if has_string_value:
12622
14012
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
12623
14013
 *             elif pytype_name is not None:             # <<<<<<<<<<<<<<
12624
14014
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
12625
14015
 * 
12626
14016
 */
12627
 
    __pyx_1 = (__pyx_v_pytype_name != Py_None);
12628
 
    if (__pyx_1) {
 
14017
    __pyx_t_1 = (__pyx_v_pytype_name != Py_None);
 
14018
    if (__pyx_t_1) {
12629
14019
 
12630
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1273
 
14020
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1264
12631
14021
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, u"str")
12632
14022
 *             elif pytype_name is not None:
12633
14023
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)             # <<<<<<<<<<<<<<
12634
14024
 * 
12635
14025
 *         return element
12636
14026
 */
12637
 
      __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12638
 
      __pyx_5 = setAttributeValue(__pyx_v_element, __pyx_3, __pyx_v_pytype_name); if (unlikely(__pyx_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12639
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
14027
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14028
      __Pyx_GOTREF(__pyx_1);
 
14029
      __pyx_t_5 = setAttributeValue(__pyx_v_element, __pyx_1, __pyx_v_pytype_name); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14030
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
12640
14031
      goto __pyx_L14;
12641
14032
    }
12642
14033
    __pyx_L14:;
12644
14035
  }
12645
14036
  __pyx_L13:;
12646
14037
 
12647
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1275
 
14038
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1266
12648
14039
 *                 cetree.setAttributeValue(element, PYTYPE_ATTRIBUTE, pytype_name)
12649
14040
 * 
12650
14041
 *         return element             # <<<<<<<<<<<<<<
12651
14042
 * 
12652
14043
 * cdef _add_text(_Element elem, text):
12653
14044
 */
12654
 
  Py_INCREF(((PyObject *)__pyx_v_element));
 
14045
  __Pyx_XDECREF(__pyx_r);
 
14046
  __Pyx_INCREF(((PyObject *)__pyx_v_element));
12655
14047
  __pyx_r = ((PyObject *)__pyx_v_element);
12656
14048
  goto __pyx_L0;
12657
14049
 
12658
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14050
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12659
14051
  goto __pyx_L0;
12660
14052
  __pyx_L1_error:;
12661
 
  Py_XDECREF(__pyx_2);
12662
 
  Py_XDECREF(__pyx_3);
12663
 
  Py_XDECREF(__pyx_6);
 
14053
  __Pyx_XDECREF(__pyx_1);
 
14054
  __Pyx_XDECREF(__pyx_t_2);
 
14055
  __Pyx_XDECREF(__pyx_t_3);
 
14056
  __Pyx_XDECREF(__pyx_t_6);
12664
14057
  __Pyx_AddTraceback("lxml.objectify._ObjectifyElementMakerCaller.__call__");
12665
14058
  __pyx_r = NULL;
12666
14059
  __pyx_L0:;
12667
 
  Py_DECREF(__pyx_v_children);
12668
 
  Py_DECREF(__pyx_v_attrib);
12669
 
  Py_DECREF(__pyx_v_elementMaker);
12670
 
  Py_DECREF(__pyx_v_element);
12671
 
  Py_DECREF(__pyx_v_childElement);
12672
 
  Py_DECREF(__pyx_v_pytype_name);
12673
 
  Py_DECREF(__pyx_v_child);
 
14060
  __Pyx_DECREF(__pyx_v_children);
 
14061
  __Pyx_DECREF(__pyx_v_attrib);
 
14062
  __Pyx_DECREF((PyObject *)__pyx_v_elementMaker);
 
14063
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
14064
  __Pyx_DECREF((PyObject *)__pyx_v_childElement);
 
14065
  __Pyx_DECREF(__pyx_v_pytype_name);
 
14066
  __Pyx_DECREF(__pyx_v_child);
 
14067
  __Pyx_XGIVEREF(__pyx_r);
 
14068
  __Pyx_FinishRefcountContext();
12674
14069
  return __pyx_r;
12675
14070
}
12676
14071
 
12677
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1277
 
14072
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1268
12678
14073
 *         return element
12679
14074
 * 
12680
14075
 * cdef _add_text(_Element elem, text):             # <<<<<<<<<<<<<<
12685
14080
static  PyObject *__pyx_f_4lxml_9objectify__add_text(struct LxmlElement *__pyx_v_elem, PyObject *__pyx_v_text) {
12686
14081
  xmlNode *__pyx_v_c_child;
12687
14082
  PyObject *__pyx_v_old;
12688
 
  PyObject *__pyx_r;
12689
 
  int __pyx_1;
12690
 
  PyObject *__pyx_2 = 0;
12691
 
  int __pyx_3;
12692
 
  PyObject *__pyx_t_1 = NULL;
12693
 
  Py_INCREF(__pyx_v_text);
12694
 
  __pyx_v_old = Py_None; Py_INCREF(Py_None);
 
14083
  PyObject *__pyx_r = NULL;
 
14084
  int __pyx_t_1;
 
14085
  PyObject *__pyx_t_2 = NULL;
 
14086
  int __pyx_t_3;
 
14087
  __Pyx_SetupRefcountContext("_add_text");
 
14088
  __Pyx_INCREF(__pyx_v_text);
 
14089
  __pyx_v_old = Py_None; __Pyx_INCREF(Py_None);
12695
14090
 
12696
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1279
 
14091
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1270
12697
14092
 * cdef _add_text(_Element elem, text):
12698
14093
 *     cdef tree.xmlNode* c_child
12699
14094
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)             # <<<<<<<<<<<<<<
12702
14097
 */
12703
14098
  __pyx_v_c_child = findChildBackwards(__pyx_v_elem->_c_node, 0);
12704
14099
 
12705
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1280
 
14100
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1271
12706
14101
 *     cdef tree.xmlNode* c_child
12707
14102
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)
12708
14103
 *     if c_child is not NULL:             # <<<<<<<<<<<<<<
12709
14104
 *         old = cetree.tailOf(c_child)
12710
14105
 *         if old is not None:
12711
14106
 */
12712
 
  __pyx_1 = (__pyx_v_c_child != NULL);
12713
 
  if (__pyx_1) {
 
14107
  __pyx_t_1 = (__pyx_v_c_child != NULL);
 
14108
  if (__pyx_t_1) {
12714
14109
 
12715
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1281
 
14110
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1272
12716
14111
 *     c_child = cetree.findChildBackwards(elem._c_node, 0)
12717
14112
 *     if c_child is not NULL:
12718
14113
 *         old = cetree.tailOf(c_child)             # <<<<<<<<<<<<<<
12719
14114
 *         if old is not None:
12720
14115
 *             text = old + text
12721
14116
 */
12722
 
    __pyx_2 = tailOf(__pyx_v_c_child); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12723
 
    Py_DECREF(__pyx_v_old);
12724
 
    __pyx_v_old = __pyx_2;
12725
 
    __pyx_2 = 0;
 
14117
    __pyx_t_2 = tailOf(__pyx_v_c_child); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14118
    __Pyx_GOTREF(__pyx_t_2);
 
14119
    __Pyx_DECREF(__pyx_v_old);
 
14120
    __pyx_v_old = __pyx_t_2;
 
14121
    __pyx_t_2 = 0;
12726
14122
 
12727
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1282
 
14123
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1273
12728
14124
 *     if c_child is not NULL:
12729
14125
 *         old = cetree.tailOf(c_child)
12730
14126
 *         if old is not None:             # <<<<<<<<<<<<<<
12731
14127
 *             text = old + text
12732
14128
 *         cetree.setTailText(c_child, text)
12733
14129
 */
12734
 
    __pyx_1 = (__pyx_v_old != Py_None);
12735
 
    if (__pyx_1) {
 
14130
    __pyx_t_1 = (__pyx_v_old != Py_None);
 
14131
    if (__pyx_t_1) {
12736
14132
 
12737
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1283
 
14133
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1274
12738
14134
 *         old = cetree.tailOf(c_child)
12739
14135
 *         if old is not None:
12740
14136
 *             text = old + text             # <<<<<<<<<<<<<<
12741
14137
 *         cetree.setTailText(c_child, text)
12742
14138
 *     else:
12743
14139
 */
12744
 
      __pyx_t_1 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12745
 
      Py_DECREF(__pyx_v_text);
12746
 
      __pyx_v_text = __pyx_t_1;
12747
 
      __pyx_t_1 = 0;
 
14140
      __pyx_t_2 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14141
      __Pyx_GOTREF(__pyx_t_2);
 
14142
      __Pyx_DECREF(__pyx_v_text);
 
14143
      __pyx_v_text = __pyx_t_2;
 
14144
      __pyx_t_2 = 0;
12748
14145
      goto __pyx_L4;
12749
14146
    }
12750
14147
    __pyx_L4:;
12751
14148
 
12752
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1284
 
14149
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1275
12753
14150
 *         if old is not None:
12754
14151
 *             text = old + text
12755
14152
 *         cetree.setTailText(c_child, text)             # <<<<<<<<<<<<<<
12756
14153
 *     else:
12757
14154
 *         old = cetree.textOf(elem._c_node)
12758
14155
 */
12759
 
    __pyx_3 = setTailText(__pyx_v_c_child, __pyx_v_text); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14156
    __pyx_t_3 = setTailText(__pyx_v_c_child, __pyx_v_text); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12760
14157
    goto __pyx_L3;
12761
14158
  }
12762
14159
  /*else*/ {
12763
14160
 
12764
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1286
 
14161
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1277
12765
14162
 *         cetree.setTailText(c_child, text)
12766
14163
 *     else:
12767
14164
 *         old = cetree.textOf(elem._c_node)             # <<<<<<<<<<<<<<
12768
14165
 *         if old is not None:
12769
14166
 *             text = old + text
12770
14167
 */
12771
 
    __pyx_2 = textOf(__pyx_v_elem->_c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12772
 
    Py_DECREF(__pyx_v_old);
12773
 
    __pyx_v_old = __pyx_2;
12774
 
    __pyx_2 = 0;
 
14168
    __pyx_t_2 = textOf(__pyx_v_elem->_c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14169
    __Pyx_GOTREF(__pyx_t_2);
 
14170
    __Pyx_DECREF(__pyx_v_old);
 
14171
    __pyx_v_old = __pyx_t_2;
 
14172
    __pyx_t_2 = 0;
12775
14173
 
12776
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1287
 
14174
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1278
12777
14175
 *     else:
12778
14176
 *         old = cetree.textOf(elem._c_node)
12779
14177
 *         if old is not None:             # <<<<<<<<<<<<<<
12780
14178
 *             text = old + text
12781
14179
 *         cetree.setNodeText(elem._c_node, text)
12782
14180
 */
12783
 
    __pyx_1 = (__pyx_v_old != Py_None);
12784
 
    if (__pyx_1) {
 
14181
    __pyx_t_1 = (__pyx_v_old != Py_None);
 
14182
    if (__pyx_t_1) {
12785
14183
 
12786
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1288
 
14184
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1279
12787
14185
 *         old = cetree.textOf(elem._c_node)
12788
14186
 *         if old is not None:
12789
14187
 *             text = old + text             # <<<<<<<<<<<<<<
12790
14188
 *         cetree.setNodeText(elem._c_node, text)
12791
14189
 * 
12792
14190
 */
12793
 
      __pyx_t_1 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12794
 
      Py_DECREF(__pyx_v_text);
12795
 
      __pyx_v_text = __pyx_t_1;
12796
 
      __pyx_t_1 = 0;
 
14191
      __pyx_t_2 = PyNumber_Add(__pyx_v_old, __pyx_v_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1279; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14192
      __Pyx_GOTREF(__pyx_t_2);
 
14193
      __Pyx_DECREF(__pyx_v_text);
 
14194
      __pyx_v_text = __pyx_t_2;
 
14195
      __pyx_t_2 = 0;
12797
14196
      goto __pyx_L5;
12798
14197
    }
12799
14198
    __pyx_L5:;
12800
14199
 
12801
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1289
 
14200
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1280
12802
14201
 *         if old is not None:
12803
14202
 *             text = old + text
12804
14203
 *         cetree.setNodeText(elem._c_node, text)             # <<<<<<<<<<<<<<
12805
14204
 * 
12806
14205
 * ################################################################################
12807
14206
 */
12808
 
    __pyx_3 = setNodeText(__pyx_v_elem->_c_node, __pyx_v_text); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14207
    __pyx_t_3 = setNodeText(__pyx_v_elem->_c_node, __pyx_v_text); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12809
14208
  }
12810
14209
  __pyx_L3:;
12811
14210
 
12812
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14211
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12813
14212
  goto __pyx_L0;
12814
14213
  __pyx_L1_error:;
12815
 
  Py_XDECREF(__pyx_2);
 
14214
  __Pyx_XDECREF(__pyx_t_2);
12816
14215
  __Pyx_AddTraceback("lxml.objectify._add_text");
12817
14216
  __pyx_r = 0;
12818
14217
  __pyx_L0:;
12819
 
  Py_DECREF(__pyx_v_old);
12820
 
  Py_DECREF(__pyx_v_text);
 
14218
  __Pyx_DECREF(__pyx_v_old);
 
14219
  __Pyx_DECREF(__pyx_v_text);
 
14220
  __Pyx_XGIVEREF(__pyx_r);
 
14221
  __Pyx_FinishRefcountContext();
12821
14222
  return __pyx_r;
12822
14223
}
12823
14224
 
12824
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1297
 
14225
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1288
12825
14226
 * __RECURSIVE_STR = 0 # default: off
12826
14227
 * 
12827
14228
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
12833
14234
static char __pyx_doc_4lxml_9objectify_enable_recursive_str[] = "enable_recursive_str(on=True)\n\n    Enable a recursively generated tree representation for str(element),\n    based on objectify.dump(element).\n    ";
12834
14235
static PyObject *__pyx_pf_4lxml_9objectify_enable_recursive_str(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12835
14236
  PyObject *__pyx_v_on = 0;
12836
 
  PyObject *__pyx_r;
12837
 
  int __pyx_1;
 
14237
  PyObject *__pyx_r = NULL;
 
14238
  int __pyx_t_1;
12838
14239
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_on,0};
 
14240
  __Pyx_SetupRefcountContext("enable_recursive_str");
12839
14241
  __pyx_self = __pyx_self;
12840
 
  __pyx_v_on = __pyx_k_649;
12841
14242
  if (unlikely(__pyx_kwds)) {
 
14243
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
12842
14244
    PyObject* values[1] = {0};
12843
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
14245
    values[0] = __pyx_k_715;
12844
14246
    switch (PyTuple_GET_SIZE(__pyx_args)) {
12845
14247
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12846
14248
      case  0: break;
12847
14249
      default: goto __pyx_L5_argtuple_error;
12848
14250
    }
 
14251
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
14252
      case  0:
 
14253
      if (kw_args > 0) {
 
14254
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_on);
 
14255
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
14256
      }
 
14257
    }
12849
14258
    if (unlikely(kw_args > 0)) {
12850
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "enable_recursive_str") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12851
 
    }
12852
 
    if (values[0]) {
12853
 
      __pyx_v_on = values[0];
12854
 
    }
 
14259
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "enable_recursive_str") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
14260
    }
 
14261
    __pyx_v_on = values[0];
12855
14262
  } else {
 
14263
    __pyx_v_on = __pyx_k_715;
12856
14264
    switch (PyTuple_GET_SIZE(__pyx_args)) {
12857
14265
      case  1: __pyx_v_on = PyTuple_GET_ITEM(__pyx_args, 0);
12858
14266
      case  0: break;
12861
14269
  }
12862
14270
  goto __pyx_L4_argument_unpacking_done;
12863
14271
  __pyx_L5_argtuple_error:;
12864
 
  __Pyx_RaiseArgtupleInvalid("enable_recursive_str", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
14272
  __Pyx_RaiseArgtupleInvalid("enable_recursive_str", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12865
14273
  __pyx_L3_error:;
12866
14274
  __Pyx_AddTraceback("lxml.objectify.enable_recursive_str");
12867
14275
  return NULL;
12868
14276
  __pyx_L4_argument_unpacking_done:;
12869
14277
 
12870
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1304
 
14278
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1295
12871
14279
 *     """
12872
14280
 *     global __RECURSIVE_STR
12873
14281
 *     __RECURSIVE_STR = on             # <<<<<<<<<<<<<<
12874
14282
 * 
12875
14283
 * def dump(_Element element not None):
12876
14284
 */
12877
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_on); if (unlikely((__pyx_1 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12878
 
  __pyx_v_4lxml_9objectify___RECURSIVE_STR = __pyx_1;
 
14285
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_on); if (unlikely((__pyx_t_1 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14286
  __pyx_v_4lxml_9objectify___RECURSIVE_STR = __pyx_t_1;
12879
14287
 
12880
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14288
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12881
14289
  goto __pyx_L0;
12882
14290
  __pyx_L1_error:;
12883
14291
  __Pyx_AddTraceback("lxml.objectify.enable_recursive_str");
12884
14292
  __pyx_r = NULL;
12885
14293
  __pyx_L0:;
 
14294
  __Pyx_XGIVEREF(__pyx_r);
 
14295
  __Pyx_FinishRefcountContext();
12886
14296
  return __pyx_r;
12887
14297
}
12888
14298
 
12889
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1306
 
14299
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1297
12890
14300
 *     __RECURSIVE_STR = on
12891
14301
 * 
12892
14302
 * def dump(_Element element not None):             # <<<<<<<<<<<<<<
12897
14307
static PyObject *__pyx_pf_4lxml_9objectify_dump(PyObject *__pyx_self, PyObject *__pyx_v_element); /*proto*/
12898
14308
static char __pyx_doc_4lxml_9objectify_dump[] = "dump(_Element element not None)\n\n    Return a recursively generated string representation of an element.\n    ";
12899
14309
static PyObject *__pyx_pf_4lxml_9objectify_dump(PyObject *__pyx_self, PyObject *__pyx_v_element) {
12900
 
  PyObject *__pyx_r;
12901
 
  PyObject *__pyx_1 = 0;
 
14310
  PyObject *__pyx_r = NULL;
 
14311
  PyObject *__pyx_t_1 = NULL;
 
14312
  __Pyx_SetupRefcountContext("dump");
12902
14313
  __pyx_self = __pyx_self;
12903
 
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_11etreepublic__Element, 0, "element", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14314
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_11etreepublic__Element, 0, "element", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12904
14315
 
12905
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1311
 
14316
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1302
12906
14317
 *     Return a recursively generated string representation of an element.
12907
14318
 *     """
12908
14319
 *     return _dump(element, 0)             # <<<<<<<<<<<<<<
12909
14320
 * 
12910
14321
 * cdef object _dump(_Element element, int indent):
12911
14322
 */
12912
 
  __pyx_1 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_element), 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12913
 
  __pyx_r = __pyx_1;
12914
 
  __pyx_1 = 0;
 
14323
  __Pyx_XDECREF(__pyx_r);
 
14324
  __pyx_t_1 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_element), 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14325
  __Pyx_GOTREF(__pyx_t_1);
 
14326
  __pyx_r = __pyx_t_1;
 
14327
  __pyx_t_1 = 0;
12915
14328
  goto __pyx_L0;
12916
14329
 
12917
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14330
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
12918
14331
  goto __pyx_L0;
12919
14332
  __pyx_L1_error:;
12920
 
  Py_XDECREF(__pyx_1);
 
14333
  __Pyx_XDECREF(__pyx_t_1);
12921
14334
  __Pyx_AddTraceback("lxml.objectify.dump");
12922
14335
  __pyx_r = NULL;
12923
14336
  __pyx_L0:;
 
14337
  __Pyx_XGIVEREF(__pyx_r);
 
14338
  __Pyx_FinishRefcountContext();
12924
14339
  return __pyx_r;
12925
14340
}
12926
14341
 
12927
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1313
 
14342
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1304
12928
14343
 *     return _dump(element, 0)
12929
14344
 * 
12930
14345
 * cdef object _dump(_Element element, int indent):             # <<<<<<<<<<<<<<
12940
14355
  PyObject *__pyx_v_pytype_ns;
12941
14356
  PyObject *__pyx_v_name;
12942
14357
  PyObject *__pyx_v_child;
12943
 
  PyObject *__pyx_r;
 
14358
  PyObject *__pyx_r = NULL;
12944
14359
  PyObject *__pyx_1 = 0;
12945
 
  int __pyx_2;
 
14360
  PyObject *__pyx_2 = 0;
12946
14361
  PyObject *__pyx_3 = 0;
12947
 
  int __pyx_4;
12948
 
  PyObject *__pyx_5 = 0;
12949
 
  Py_ssize_t __pyx_6 = 0;
12950
 
  PyObject *__pyx_7 = 0;
12951
14362
  PyObject *__pyx_t_1 = NULL;
12952
14363
  PyObject *__pyx_t_2 = NULL;
12953
 
  __pyx_v_indentstr = Py_None; Py_INCREF(Py_None);
12954
 
  __pyx_v_value = Py_None; Py_INCREF(Py_None);
12955
 
  __pyx_v_result = Py_None; Py_INCREF(Py_None);
12956
 
  __pyx_v_xsi_ns = Py_None; Py_INCREF(Py_None);
12957
 
  __pyx_v_pytype_ns = Py_None; Py_INCREF(Py_None);
12958
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
12959
 
  __pyx_v_child = Py_None; Py_INCREF(Py_None);
 
14364
  int __pyx_t_3;
 
14365
  int __pyx_t_4;
 
14366
  PyObject *__pyx_t_5 = NULL;
 
14367
  Py_ssize_t __pyx_t_6;
 
14368
  PyObject *__pyx_t_7 = NULL;
 
14369
  __Pyx_SetupRefcountContext("_dump");
 
14370
  __pyx_v_indentstr = Py_None; __Pyx_INCREF(Py_None);
 
14371
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
 
14372
  __pyx_v_result = Py_None; __Pyx_INCREF(Py_None);
 
14373
  __pyx_v_xsi_ns = Py_None; __Pyx_INCREF(Py_None);
 
14374
  __pyx_v_pytype_ns = Py_None; __Pyx_INCREF(Py_None);
 
14375
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
14376
  __pyx_v_child = Py_None; __Pyx_INCREF(Py_None);
12960
14377
 
12961
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1314
 
14378
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1305
12962
14379
 * 
12963
14380
 * cdef object _dump(_Element element, int indent):
12964
14381
 *     indentstr = u"    " * indent             # <<<<<<<<<<<<<<
12965
14382
 *     if isinstance(element, ObjectifiedDataElement):
12966
14383
 *         value = repr(element)
12967
14384
 */
12968
 
  __pyx_1 = PyInt_FromLong(__pyx_v_indent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12969
 
  __pyx_t_1 = PyNumber_Multiply(((PyObject *)__pyx_kp_754), __pyx_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12970
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
12971
 
  Py_DECREF(__pyx_v_indentstr);
12972
 
  __pyx_v_indentstr = __pyx_t_1;
12973
 
  __pyx_t_1 = 0;
 
14385
  __pyx_t_1 = PyInt_FromLong(__pyx_v_indent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14386
  __Pyx_GOTREF(__pyx_t_1);
 
14387
  __pyx_t_2 = PyNumber_Multiply(((PyObject *)__pyx_kp_819), __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14388
  __Pyx_GOTREF(__pyx_t_2);
 
14389
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
14390
  __Pyx_DECREF(__pyx_v_indentstr);
 
14391
  __pyx_v_indentstr = __pyx_t_2;
 
14392
  __pyx_t_2 = 0;
12974
14393
 
12975
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1315
 
14394
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1306
12976
14395
 * cdef object _dump(_Element element, int indent):
12977
14396
 *     indentstr = u"    " * indent
12978
14397
 *     if isinstance(element, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
12979
14398
 *         value = repr(element)
12980
14399
 *     else:
12981
14400
 */
12982
 
  __pyx_2 = PyObject_TypeCheck(((PyObject *)__pyx_v_element), ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); 
12983
 
  if (__pyx_2) {
 
14401
  __pyx_t_3 = PyObject_TypeCheck(((PyObject *)__pyx_v_element), ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); 
 
14402
  if (__pyx_t_3) {
12984
14403
 
12985
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1316
 
14404
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1307
12986
14405
 *     indentstr = u"    " * indent
12987
14406
 *     if isinstance(element, ObjectifiedDataElement):
12988
14407
 *         value = repr(element)             # <<<<<<<<<<<<<<
12989
14408
 *     else:
12990
14409
 *         value = textOf(element._c_node)
12991
14410
 */
12992
 
    __pyx_1 = PyObject_Repr(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12993
 
    Py_DECREF(__pyx_v_value);
12994
 
    __pyx_v_value = __pyx_1;
12995
 
    __pyx_1 = 0;
 
14411
    __pyx_t_2 = PyObject_Repr(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14412
    __Pyx_GOTREF(__pyx_t_2);
 
14413
    __Pyx_DECREF(__pyx_v_value);
 
14414
    __pyx_v_value = __pyx_t_2;
 
14415
    __pyx_t_2 = 0;
12996
14416
    goto __pyx_L3;
12997
14417
  }
12998
14418
  /*else*/ {
12999
14419
 
13000
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1318
 
14420
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1309
13001
14421
 *         value = repr(element)
13002
14422
 *     else:
13003
14423
 *         value = textOf(element._c_node)             # <<<<<<<<<<<<<<
13004
14424
 *         if value is not None:
13005
14425
 *             if not value.strip():
13006
14426
 */
13007
 
    __pyx_1 = textOf(__pyx_v_element->_c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13008
 
    Py_DECREF(__pyx_v_value);
13009
 
    __pyx_v_value = __pyx_1;
13010
 
    __pyx_1 = 0;
 
14427
    __pyx_t_2 = textOf(__pyx_v_element->_c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14428
    __Pyx_GOTREF(__pyx_t_2);
 
14429
    __Pyx_DECREF(__pyx_v_value);
 
14430
    __pyx_v_value = __pyx_t_2;
 
14431
    __pyx_t_2 = 0;
13011
14432
 
13012
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1319
 
14433
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1310
13013
14434
 *     else:
13014
14435
 *         value = textOf(element._c_node)
13015
14436
 *         if value is not None:             # <<<<<<<<<<<<<<
13016
14437
 *             if not value.strip():
13017
14438
 *                 value = None
13018
14439
 */
13019
 
    __pyx_2 = (__pyx_v_value != Py_None);
13020
 
    if (__pyx_2) {
 
14440
    __pyx_t_3 = (__pyx_v_value != Py_None);
 
14441
    if (__pyx_t_3) {
13021
14442
 
13022
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1320
 
14443
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1311
13023
14444
 *         value = textOf(element._c_node)
13024
14445
 *         if value is not None:
13025
14446
 *             if not value.strip():             # <<<<<<<<<<<<<<
13026
14447
 *                 value = None
13027
14448
 *             else:
13028
14449
 */
13029
 
      __pyx_1 = PyObject_GetAttr(__pyx_v_value, __pyx_kp_strip); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13030
 
      __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13031
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
13032
 
      __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13033
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
13034
 
      __pyx_4 = (!__pyx_2);
13035
 
      if (__pyx_4) {
 
14450
      __pyx_t_2 = PyObject_GetAttr(__pyx_v_value, __pyx_kp_strip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14451
      __Pyx_GOTREF(__pyx_t_2);
 
14452
      __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14453
      __Pyx_GOTREF(__pyx_t_1);
 
14454
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14455
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14456
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
14457
      __pyx_t_4 = (!__pyx_t_3);
 
14458
      if (__pyx_t_4) {
13036
14459
 
13037
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1321
 
14460
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1312
13038
14461
 *         if value is not None:
13039
14462
 *             if not value.strip():
13040
14463
 *                 value = None             # <<<<<<<<<<<<<<
13041
14464
 *             else:
13042
14465
 *                 value = repr(value)
13043
14466
 */
13044
 
        Py_INCREF(Py_None);
13045
 
        Py_DECREF(__pyx_v_value);
 
14467
        __Pyx_INCREF(Py_None);
 
14468
        __Pyx_DECREF(__pyx_v_value);
13046
14469
        __pyx_v_value = Py_None;
13047
14470
        goto __pyx_L5;
13048
14471
      }
13049
14472
      /*else*/ {
13050
14473
 
13051
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1323
 
14474
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1314
13052
14475
 *                 value = None
13053
14476
 *             else:
13054
14477
 *                 value = repr(value)             # <<<<<<<<<<<<<<
13055
14478
 *     result = u"%s%s = %s [%s]\n" % (indentstr, element.tag,
13056
14479
 *                                     value, _typename(element))
13057
14480
 */
13058
 
        __pyx_1 = PyObject_Repr(__pyx_v_value); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13059
 
        Py_DECREF(__pyx_v_value);
13060
 
        __pyx_v_value = __pyx_1;
13061
 
        __pyx_1 = 0;
 
14481
        __pyx_t_1 = PyObject_Repr(__pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14482
        __Pyx_GOTREF(__pyx_t_1);
 
14483
        __Pyx_DECREF(__pyx_v_value);
 
14484
        __pyx_v_value = __pyx_t_1;
 
14485
        __pyx_t_1 = 0;
13062
14486
      }
13063
14487
      __pyx_L5:;
13064
14488
      goto __pyx_L4;
13067
14491
  }
13068
14492
  __pyx_L3:;
13069
14493
 
13070
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1324
 
14494
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1315
13071
14495
 *             else:
13072
14496
 *                 value = repr(value)
13073
14497
 *     result = u"%s%s = %s [%s]\n" % (indentstr, element.tag,             # <<<<<<<<<<<<<<
13074
14498
 *                                     value, _typename(element))
13075
14499
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
13076
14500
 */
13077
 
  __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14501
  __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14502
  __Pyx_GOTREF(__pyx_t_1);
13078
14503
 
13079
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1325
 
14504
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1316
13080
14505
 *                 value = repr(value)
13081
14506
 *     result = u"%s%s = %s [%s]\n" % (indentstr, element.tag,
13082
14507
 *                                     value, _typename(element))             # <<<<<<<<<<<<<<
13083
14508
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
13084
14509
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
13085
14510
 */
13086
 
  __pyx_1 = __pyx_f_4lxml_9objectify__typename(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13087
 
  __pyx_5 = PyTuple_New(4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13088
 
  Py_INCREF(__pyx_v_indentstr);
13089
 
  PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_indentstr);
13090
 
  PyTuple_SET_ITEM(__pyx_5, 1, __pyx_3);
13091
 
  Py_INCREF(__pyx_v_value);
13092
 
  PyTuple_SET_ITEM(__pyx_5, 2, __pyx_v_value);
13093
 
  PyTuple_SET_ITEM(__pyx_5, 3, __pyx_1);
13094
 
  __pyx_3 = 0;
13095
 
  __pyx_1 = 0;
13096
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_755), ((PyObject *)__pyx_5)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13097
 
  Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
13098
 
  Py_DECREF(__pyx_v_result);
13099
 
  __pyx_v_result = __pyx_t_1;
 
14511
  __pyx_t_2 = __pyx_f_4lxml_9objectify__typename(((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14512
  __Pyx_GOTREF(__pyx_t_2);
 
14513
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14514
  __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
14515
  __Pyx_INCREF(__pyx_v_indentstr);
 
14516
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_indentstr);
 
14517
  __Pyx_GIVEREF(__pyx_v_indentstr);
 
14518
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
 
14519
  __Pyx_GIVEREF(__pyx_t_1);
 
14520
  __Pyx_INCREF(__pyx_v_value);
 
14521
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_value);
 
14522
  __Pyx_GIVEREF(__pyx_v_value);
 
14523
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
 
14524
  __Pyx_GIVEREF(__pyx_t_2);
13100
14525
  __pyx_t_1 = 0;
 
14526
  __pyx_t_2 = 0;
 
14527
  __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_820), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14528
  __Pyx_GOTREF(__pyx_t_2);
 
14529
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
14530
  __Pyx_DECREF(__pyx_v_result);
 
14531
  __pyx_v_result = __pyx_t_2;
 
14532
  __pyx_t_2 = 0;
13101
14533
 
13102
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1326
 
14534
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1317
13103
14535
 *     result = u"%s%s = %s [%s]\n" % (indentstr, element.tag,
13104
14536
 *                                     value, _typename(element))
13105
14537
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
13106
14538
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
13107
14539
 *     for name, value in cetree.iterattributes(element, 3):
13108
14540
 */
13109
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_756), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13110
 
  Py_DECREF(__pyx_v_xsi_ns);
13111
 
  __pyx_v_xsi_ns = __pyx_t_1;
13112
 
  __pyx_t_1 = 0;
 
14541
  __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_821), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14542
  __Pyx_GOTREF(__pyx_t_2);
 
14543
  __Pyx_DECREF(__pyx_v_xsi_ns);
 
14544
  __pyx_v_xsi_ns = __pyx_t_2;
 
14545
  __pyx_t_2 = 0;
13113
14546
 
13114
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1327
 
14547
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1318
13115
14548
 *                                     value, _typename(element))
13116
14549
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
13117
14550
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE             # <<<<<<<<<<<<<<
13118
14551
 *     for name, value in cetree.iterattributes(element, 3):
13119
14552
 *         if u'{' in name:
13120
14553
 */
13121
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_757), __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13122
 
  Py_DECREF(__pyx_v_pytype_ns);
13123
 
  __pyx_v_pytype_ns = __pyx_t_1;
13124
 
  __pyx_t_1 = 0;
 
14554
  __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_822), __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14555
  __Pyx_GOTREF(__pyx_t_2);
 
14556
  __Pyx_DECREF(__pyx_v_pytype_ns);
 
14557
  __pyx_v_pytype_ns = __pyx_t_2;
 
14558
  __pyx_t_2 = 0;
13125
14559
 
13126
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1328
 
14560
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1319
13127
14561
 *     xsi_ns    = u"{%s}" % XML_SCHEMA_INSTANCE_NS
13128
14562
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
13129
14563
 *     for name, value in cetree.iterattributes(element, 3):             # <<<<<<<<<<<<<<
13130
14564
 *         if u'{' in name:
13131
14565
 *             if name == PYTYPE_ATTRIBUTE:
13132
14566
 */
13133
 
  __pyx_3 = iterattributes(__pyx_v_element, 3); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13134
 
  if (PyList_CheckExact(__pyx_3) || PyTuple_CheckExact(__pyx_3)) {
13135
 
    __pyx_6 = 0; __pyx_1 = __pyx_3; Py_INCREF(__pyx_1);
 
14567
  __pyx_t_2 = iterattributes(__pyx_v_element, 3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14568
  __Pyx_GOTREF(__pyx_t_2);
 
14569
  if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
 
14570
    __pyx_t_6 = 0; __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5);
13136
14571
  } else {
13137
 
    __pyx_6 = -1; __pyx_1 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14572
    __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14573
    __Pyx_GOTREF(__pyx_t_5);
13138
14574
  }
13139
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
14575
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13140
14576
  for (;;) {
13141
 
    if (likely(PyList_CheckExact(__pyx_1))) {
13142
 
      if (__pyx_6 >= PyList_GET_SIZE(__pyx_1)) break;
13143
 
      __pyx_5 = PyList_GET_ITEM(__pyx_1, __pyx_6); Py_INCREF(__pyx_5); __pyx_6++;
13144
 
    } else if (likely(PyTuple_CheckExact(__pyx_1))) {
13145
 
      if (__pyx_6 >= PyTuple_GET_SIZE(__pyx_1)) break;
13146
 
      __pyx_5 = PyTuple_GET_ITEM(__pyx_1, __pyx_6); Py_INCREF(__pyx_5); __pyx_6++;
 
14577
    if (likely(PyList_CheckExact(__pyx_t_5))) {
 
14578
      if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break;
 
14579
      __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
 
14580
    } else if (likely(PyTuple_CheckExact(__pyx_t_5))) {
 
14581
      if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
 
14582
      __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
13147
14583
    } else {
13148
 
      __pyx_5 = PyIter_Next(__pyx_1);
13149
 
      if (!__pyx_5) {
13150
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14584
      __pyx_t_2 = PyIter_Next(__pyx_t_5);
 
14585
      if (!__pyx_t_2) {
 
14586
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13151
14587
        break;
13152
14588
      }
13153
 
    }
13154
 
    if (PyTuple_CheckExact(__pyx_5) && PyTuple_GET_SIZE(__pyx_5) == 2) {
13155
 
      PyObject* tuple = __pyx_5;
13156
 
      __pyx_7 = PyTuple_GET_ITEM(tuple, 0);
13157
 
      Py_INCREF(__pyx_7);
13158
 
      Py_DECREF(__pyx_v_name);
13159
 
      __pyx_v_name = __pyx_7;
13160
 
      __pyx_7 = 0;
13161
 
      __pyx_7 = PyTuple_GET_ITEM(tuple, 1);
13162
 
      Py_INCREF(__pyx_7);
13163
 
      Py_DECREF(__pyx_v_value);
13164
 
      __pyx_v_value = __pyx_7;
13165
 
      __pyx_7 = 0;
13166
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
13167
 
    }
13168
 
    else {
13169
 
      __pyx_3 = PyObject_GetIter(__pyx_5); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13170
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
13171
 
      __pyx_7 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13172
 
      Py_DECREF(__pyx_v_name);
13173
 
      __pyx_v_name = __pyx_7;
13174
 
      __pyx_7 = 0;
13175
 
      __pyx_7 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13176
 
      Py_DECREF(__pyx_v_value);
13177
 
      __pyx_v_value = __pyx_7;
13178
 
      __pyx_7 = 0;
13179
 
      if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13180
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
14589
      __Pyx_GOTREF(__pyx_t_2);
 
14590
    }
 
14591
    if (PyTuple_CheckExact(__pyx_t_2) && likely(PyTuple_GET_SIZE(__pyx_t_2) == 2)) {
 
14592
      PyObject* tuple = __pyx_t_2;
 
14593
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
14594
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
14595
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14596
      __Pyx_DECREF(__pyx_v_name);
 
14597
      __pyx_v_name = __pyx_2;
 
14598
      __pyx_2 = 0;
 
14599
      __Pyx_DECREF(__pyx_v_value);
 
14600
      __pyx_v_value = __pyx_3;
 
14601
      __pyx_3 = 0;
 
14602
    } else {
 
14603
      __pyx_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14604
      __Pyx_GOTREF(__pyx_1);
 
14605
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14606
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14607
      __Pyx_GOTREF(__pyx_2);
 
14608
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14609
      __Pyx_GOTREF(__pyx_3);
 
14610
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14611
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
14612
      __Pyx_DECREF(__pyx_v_name);
 
14613
      __pyx_v_name = __pyx_2;
 
14614
      __pyx_2 = 0;
 
14615
      __Pyx_DECREF(__pyx_v_value);
 
14616
      __pyx_v_value = __pyx_3;
 
14617
      __pyx_3 = 0;
13181
14618
    }
13182
14619
 
13183
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1329
 
14620
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1320
13184
14621
 *     pytype_ns = u"{%s}" % PYTYPE_NAMESPACE
13185
14622
 *     for name, value in cetree.iterattributes(element, 3):
13186
14623
 *         if u'{' in name:             # <<<<<<<<<<<<<<
13187
14624
 *             if name == PYTYPE_ATTRIBUTE:
13188
14625
 *                 if value == TREE_PYTYPE_NAME:
13189
14626
 */
13190
 
    __pyx_2 = (PySequence_Contains(__pyx_v_name, ((PyObject *)__pyx_kp_758))); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13191
 
    if (__pyx_2) {
 
14627
    __pyx_t_4 = (PySequence_Contains(__pyx_v_name, ((PyObject *)__pyx_kp_823))); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14628
    if (__pyx_t_4) {
13192
14629
 
13193
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1330
 
14630
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1321
13194
14631
 *     for name, value in cetree.iterattributes(element, 3):
13195
14632
 *         if u'{' in name:
13196
14633
 *             if name == PYTYPE_ATTRIBUTE:             # <<<<<<<<<<<<<<
13197
14634
 *                 if value == TREE_PYTYPE_NAME:
13198
14635
 *                     continue
13199
14636
 */
13200
 
      __pyx_7 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13201
 
      __pyx_5 = PyObject_RichCompare(__pyx_v_name, __pyx_7, Py_EQ); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13202
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
13203
 
      __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_5); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13204
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
13205
 
      if (__pyx_4) {
 
14637
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14638
      __Pyx_GOTREF(__pyx_1);
 
14639
      __pyx_t_2 = PyObject_RichCompare(__pyx_v_name, __pyx_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14640
      __Pyx_GOTREF(__pyx_t_2);
 
14641
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
14642
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14643
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14644
      if (__pyx_t_4) {
13206
14645
 
13207
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1331
 
14646
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1322
13208
14647
 *         if u'{' in name:
13209
14648
 *             if name == PYTYPE_ATTRIBUTE:
13210
14649
 *                 if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
13211
14650
 *                     continue
13212
14651
 *                 else:
13213
14652
 */
13214
 
        __pyx_3 = PyObject_RichCompare(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13215
 
        __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13216
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
13217
 
        if (__pyx_2) {
 
14653
        __pyx_t_2 = PyObject_RichCompare(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14654
        __Pyx_GOTREF(__pyx_t_2);
 
14655
        __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14656
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14657
        if (__pyx_t_4) {
13218
14658
 
13219
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1332
 
14659
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1323
13220
14660
 *             if name == PYTYPE_ATTRIBUTE:
13221
14661
 *                 if value == TREE_PYTYPE_NAME:
13222
14662
 *                     continue             # <<<<<<<<<<<<<<
13223
14663
 *                 else:
13224
14664
 *                     name = name.replace(pytype_ns, u'py:')
13225
14665
 */
13226
 
          goto __pyx_L6;
 
14666
          goto __pyx_L6_continue;
13227
14667
          goto __pyx_L10;
13228
14668
        }
13229
14669
        /*else*/ {
13230
14670
 
13231
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1334
 
14671
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1325
13232
14672
 *                     continue
13233
14673
 *                 else:
13234
14674
 *                     name = name.replace(pytype_ns, u'py:')             # <<<<<<<<<<<<<<
13235
14675
 *             name = name.replace(xsi_ns, u'xsi:')
13236
14676
 *         result = result + u"%s  * %s = %r\n" % (indentstr, name, value)
13237
14677
 */
13238
 
          __pyx_7 = PyObject_GetAttr(__pyx_v_name, __pyx_kp_replace); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13239
 
          __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13240
 
          Py_INCREF(__pyx_v_pytype_ns);
13241
 
          PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_pytype_ns);
13242
 
          Py_INCREF(((PyObject *)__pyx_kp_759));
13243
 
          PyTuple_SET_ITEM(__pyx_5, 1, ((PyObject *)__pyx_kp_759));
13244
 
          __pyx_3 = PyObject_Call(__pyx_7, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13245
 
          Py_DECREF(__pyx_7); __pyx_7 = 0;
13246
 
          Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
13247
 
          Py_DECREF(__pyx_v_name);
13248
 
          __pyx_v_name = __pyx_3;
13249
 
          __pyx_3 = 0;
 
14678
          __pyx_t_2 = PyObject_GetAttr(__pyx_v_name, __pyx_kp_replace); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14679
          __Pyx_GOTREF(__pyx_t_2);
 
14680
          __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14681
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
14682
          __Pyx_INCREF(__pyx_v_pytype_ns);
 
14683
          PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_pytype_ns);
 
14684
          __Pyx_GIVEREF(__pyx_v_pytype_ns);
 
14685
          __Pyx_INCREF(((PyObject *)__pyx_kp_824));
 
14686
          PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_824));
 
14687
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_824));
 
14688
          __pyx_t_7 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14689
          __Pyx_GOTREF(__pyx_t_7);
 
14690
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14691
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
14692
          __Pyx_DECREF(__pyx_v_name);
 
14693
          __pyx_v_name = __pyx_t_7;
 
14694
          __pyx_t_7 = 0;
13250
14695
        }
13251
14696
        __pyx_L10:;
13252
14697
        goto __pyx_L9;
13253
14698
      }
13254
14699
      __pyx_L9:;
13255
14700
 
13256
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1335
 
14701
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1326
13257
14702
 *                 else:
13258
14703
 *                     name = name.replace(pytype_ns, u'py:')
13259
14704
 *             name = name.replace(xsi_ns, u'xsi:')             # <<<<<<<<<<<<<<
13260
14705
 *         result = result + u"%s  * %s = %r\n" % (indentstr, name, value)
13261
14706
 * 
13262
14707
 */
13263
 
      __pyx_7 = PyObject_GetAttr(__pyx_v_name, __pyx_kp_replace); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13264
 
      __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13265
 
      Py_INCREF(__pyx_v_xsi_ns);
13266
 
      PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_xsi_ns);
13267
 
      Py_INCREF(((PyObject *)__pyx_kp_760));
13268
 
      PyTuple_SET_ITEM(__pyx_5, 1, ((PyObject *)__pyx_kp_760));
13269
 
      __pyx_3 = PyObject_Call(__pyx_7, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13270
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
13271
 
      Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
13272
 
      Py_DECREF(__pyx_v_name);
13273
 
      __pyx_v_name = __pyx_3;
13274
 
      __pyx_3 = 0;
 
14708
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_name, __pyx_kp_replace); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14709
      __Pyx_GOTREF(__pyx_t_7);
 
14710
      __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14711
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
14712
      __Pyx_INCREF(__pyx_v_xsi_ns);
 
14713
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_xsi_ns);
 
14714
      __Pyx_GIVEREF(__pyx_v_xsi_ns);
 
14715
      __Pyx_INCREF(((PyObject *)__pyx_kp_825));
 
14716
      PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_825));
 
14717
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_825));
 
14718
      __pyx_t_2 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14719
      __Pyx_GOTREF(__pyx_t_2);
 
14720
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
14721
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
14722
      __Pyx_DECREF(__pyx_v_name);
 
14723
      __pyx_v_name = __pyx_t_2;
 
14724
      __pyx_t_2 = 0;
13275
14725
      goto __pyx_L8;
13276
14726
    }
13277
14727
    __pyx_L8:;
13278
14728
 
13279
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1336
 
14729
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1327
13280
14730
 *                     name = name.replace(pytype_ns, u'py:')
13281
14731
 *             name = name.replace(xsi_ns, u'xsi:')
13282
14732
 *         result = result + u"%s  * %s = %r\n" % (indentstr, name, value)             # <<<<<<<<<<<<<<
13283
14733
 * 
13284
14734
 *     indent = indent + 1
13285
14735
 */
13286
 
    __pyx_7 = PyTuple_New(3); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13287
 
    Py_INCREF(__pyx_v_indentstr);
13288
 
    PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_indentstr);
13289
 
    Py_INCREF(__pyx_v_name);
13290
 
    PyTuple_SET_ITEM(__pyx_7, 1, __pyx_v_name);
13291
 
    Py_INCREF(__pyx_v_value);
13292
 
    PyTuple_SET_ITEM(__pyx_7, 2, __pyx_v_value);
13293
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_761), ((PyObject *)__pyx_7)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13294
 
    Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0;
13295
 
    __pyx_t_2 = PyNumber_Add(__pyx_v_result, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13296
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13297
 
    Py_DECREF(__pyx_v_result);
 
14736
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14737
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
14738
    __Pyx_INCREF(__pyx_v_indentstr);
 
14739
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_indentstr);
 
14740
    __Pyx_GIVEREF(__pyx_v_indentstr);
 
14741
    __Pyx_INCREF(__pyx_v_name);
 
14742
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_name);
 
14743
    __Pyx_GIVEREF(__pyx_v_name);
 
14744
    __Pyx_INCREF(__pyx_v_value);
 
14745
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_value);
 
14746
    __Pyx_GIVEREF(__pyx_v_value);
 
14747
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_826), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14748
    __Pyx_GOTREF(__pyx_t_1);
 
14749
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
14750
    __pyx_t_2 = PyNumber_Add(__pyx_v_result, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14751
    __Pyx_GOTREF(__pyx_t_2);
 
14752
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
14753
    __Pyx_DECREF(__pyx_v_result);
13298
14754
    __pyx_v_result = __pyx_t_2;
13299
14755
    __pyx_t_2 = 0;
13300
 
    __pyx_L6:;
 
14756
    __pyx_L6_continue:;
13301
14757
  }
13302
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
14758
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13303
14759
 
13304
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1338
 
14760
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1329
13305
14761
 *         result = result + u"%s  * %s = %r\n" % (indentstr, name, value)
13306
14762
 * 
13307
14763
 *     indent = indent + 1             # <<<<<<<<<<<<<<
13310
14766
 */
13311
14767
  __pyx_v_indent = (__pyx_v_indent + 1);
13312
14768
 
13313
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1339
 
14769
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1330
13314
14770
 * 
13315
14771
 *     indent = indent + 1
13316
14772
 *     for child in element.iterchildren():             # <<<<<<<<<<<<<<
13317
14773
 *         result = result + _dump(child, indent)
13318
14774
 *     if indent == 1:
13319
14775
 */
13320
 
  __pyx_5 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_iterchildren); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13321
 
  __pyx_3 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13322
 
  Py_DECREF(__pyx_5); __pyx_5 = 0;
13323
 
  if (PyList_CheckExact(__pyx_3) || PyTuple_CheckExact(__pyx_3)) {
13324
 
    __pyx_6 = 0; __pyx_7 = __pyx_3; Py_INCREF(__pyx_7);
 
14776
  __pyx_t_5 = PyObject_GetAttr(((PyObject *)__pyx_v_element), __pyx_kp_iterchildren); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14777
  __Pyx_GOTREF(__pyx_t_5);
 
14778
  __pyx_t_2 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14779
  __Pyx_GOTREF(__pyx_t_2);
 
14780
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
14781
  if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
 
14782
    __pyx_t_6 = 0; __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5);
13325
14783
  } else {
13326
 
    __pyx_6 = -1; __pyx_7 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14784
    __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14785
    __Pyx_GOTREF(__pyx_t_5);
13327
14786
  }
13328
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
14787
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13329
14788
  for (;;) {
13330
 
    if (likely(PyList_CheckExact(__pyx_7))) {
13331
 
      if (__pyx_6 >= PyList_GET_SIZE(__pyx_7)) break;
13332
 
      __pyx_1 = PyList_GET_ITEM(__pyx_7, __pyx_6); Py_INCREF(__pyx_1); __pyx_6++;
13333
 
    } else if (likely(PyTuple_CheckExact(__pyx_7))) {
13334
 
      if (__pyx_6 >= PyTuple_GET_SIZE(__pyx_7)) break;
13335
 
      __pyx_1 = PyTuple_GET_ITEM(__pyx_7, __pyx_6); Py_INCREF(__pyx_1); __pyx_6++;
 
14789
    if (likely(PyList_CheckExact(__pyx_t_5))) {
 
14790
      if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break;
 
14791
      __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
 
14792
    } else if (likely(PyTuple_CheckExact(__pyx_t_5))) {
 
14793
      if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
 
14794
      __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++;
13336
14795
    } else {
13337
 
      __pyx_1 = PyIter_Next(__pyx_7);
13338
 
      if (!__pyx_1) {
13339
 
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14796
      __pyx_t_2 = PyIter_Next(__pyx_t_5);
 
14797
      if (!__pyx_t_2) {
 
14798
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13340
14799
        break;
13341
14800
      }
 
14801
      __Pyx_GOTREF(__pyx_t_2);
13342
14802
    }
13343
 
    Py_DECREF(__pyx_v_child);
13344
 
    __pyx_v_child = __pyx_1;
13345
 
    __pyx_1 = 0;
 
14803
    __Pyx_DECREF(__pyx_v_child);
 
14804
    __pyx_v_child = __pyx_t_2;
 
14805
    __pyx_t_2 = 0;
13346
14806
 
13347
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1340
 
14807
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1331
13348
14808
 *     indent = indent + 1
13349
14809
 *     for child in element.iterchildren():
13350
14810
 *         result = result + _dump(child, indent)             # <<<<<<<<<<<<<<
13351
14811
 *     if indent == 1:
13352
14812
 *         return result[:-1] # strip last '\n'
13353
14813
 */
13354
 
    if (!(__Pyx_TypeTest(__pyx_v_child, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13355
 
    __pyx_5 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_child), __pyx_v_indent); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13356
 
    __pyx_t_2 = PyNumber_Add(__pyx_v_result, __pyx_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13357
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
13358
 
    Py_DECREF(__pyx_v_result);
13359
 
    __pyx_v_result = __pyx_t_2;
13360
 
    __pyx_t_2 = 0;
 
14814
    if (!(__Pyx_TypeTest(__pyx_v_child, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14815
    __pyx_t_2 = __pyx_f_4lxml_9objectify__dump(((struct LxmlElement *)__pyx_v_child), __pyx_v_indent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14816
    __Pyx_GOTREF(__pyx_t_2);
 
14817
    __pyx_t_1 = PyNumber_Add(__pyx_v_result, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14818
    __Pyx_GOTREF(__pyx_t_1);
 
14819
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
14820
    __Pyx_DECREF(__pyx_v_result);
 
14821
    __pyx_v_result = __pyx_t_1;
 
14822
    __pyx_t_1 = 0;
13361
14823
  }
13362
 
  Py_DECREF(__pyx_7); __pyx_7 = 0;
 
14824
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
13363
14825
 
13364
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1341
 
14826
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1332
13365
14827
 *     for child in element.iterchildren():
13366
14828
 *         result = result + _dump(child, indent)
13367
14829
 *     if indent == 1:             # <<<<<<<<<<<<<<
13368
14830
 *         return result[:-1] # strip last '\n'
13369
14831
 *     else:
13370
14832
 */
13371
 
  __pyx_4 = (__pyx_v_indent == 1);
13372
 
  if (__pyx_4) {
 
14833
  __pyx_t_4 = (__pyx_v_indent == 1);
 
14834
  if (__pyx_t_4) {
13373
14835
 
13374
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1342
 
14836
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1333
13375
14837
 *         result = result + _dump(child, indent)
13376
14838
 *     if indent == 1:
13377
14839
 *         return result[:-1] # strip last '\n'             # <<<<<<<<<<<<<<
13378
14840
 *     else:
13379
14841
 *         return result
13380
14842
 */
13381
 
    __pyx_3 = PySequence_GetSlice(__pyx_v_result, 0, -1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13382
 
    __pyx_r = __pyx_3;
13383
 
    __pyx_3 = 0;
 
14843
    __Pyx_XDECREF(__pyx_r);
 
14844
    __pyx_2 = PySequence_GetSlice(__pyx_v_result, 0, -1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14845
    __Pyx_GOTREF(__pyx_2);
 
14846
    __pyx_r = __pyx_2;
 
14847
    __pyx_2 = 0;
13384
14848
    goto __pyx_L0;
13385
14849
    goto __pyx_L13;
13386
14850
  }
13387
14851
  /*else*/ {
13388
14852
 
13389
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1344
 
14853
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1335
13390
14854
 *         return result[:-1] # strip last '\n'
13391
14855
 *     else:
13392
14856
 *         return result             # <<<<<<<<<<<<<<
13393
14857
 * 
13394
14858
 * 
13395
14859
 */
13396
 
    Py_INCREF(__pyx_v_result);
 
14860
    __Pyx_XDECREF(__pyx_r);
 
14861
    __Pyx_INCREF(__pyx_v_result);
13397
14862
    __pyx_r = __pyx_v_result;
13398
14863
    goto __pyx_L0;
13399
14864
  }
13400
14865
  __pyx_L13:;
13401
14866
 
13402
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14867
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13403
14868
  goto __pyx_L0;
13404
14869
  __pyx_L1_error:;
13405
 
  Py_XDECREF(__pyx_1);
13406
 
  Py_XDECREF(__pyx_3);
13407
 
  Py_XDECREF(__pyx_5);
13408
 
  Py_XDECREF(__pyx_7);
 
14870
  __Pyx_XDECREF(__pyx_1);
 
14871
  __Pyx_XDECREF(__pyx_2);
 
14872
  __Pyx_XDECREF(__pyx_3);
 
14873
  __Pyx_XDECREF(__pyx_t_1);
 
14874
  __Pyx_XDECREF(__pyx_t_2);
 
14875
  __Pyx_XDECREF(__pyx_t_5);
 
14876
  __Pyx_XDECREF(__pyx_t_7);
13409
14877
  __Pyx_AddTraceback("lxml.objectify._dump");
13410
14878
  __pyx_r = 0;
13411
14879
  __pyx_L0:;
13412
 
  Py_DECREF(__pyx_v_indentstr);
13413
 
  Py_DECREF(__pyx_v_value);
13414
 
  Py_DECREF(__pyx_v_result);
13415
 
  Py_DECREF(__pyx_v_xsi_ns);
13416
 
  Py_DECREF(__pyx_v_pytype_ns);
13417
 
  Py_DECREF(__pyx_v_name);
13418
 
  Py_DECREF(__pyx_v_child);
 
14880
  __Pyx_DECREF(__pyx_v_indentstr);
 
14881
  __Pyx_DECREF(__pyx_v_value);
 
14882
  __Pyx_DECREF(__pyx_v_result);
 
14883
  __Pyx_DECREF(__pyx_v_xsi_ns);
 
14884
  __Pyx_DECREF(__pyx_v_pytype_ns);
 
14885
  __Pyx_DECREF(__pyx_v_name);
 
14886
  __Pyx_DECREF(__pyx_v_child);
 
14887
  __Pyx_XGIVEREF(__pyx_r);
 
14888
  __Pyx_FinishRefcountContext();
13419
14889
  return __pyx_r;
13420
14890
}
13421
14891
 
13422
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1350
 
14892
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1341
13423
14893
 * # Pickle support
13424
14894
 * 
13425
14895
 * def __unpickleElementTree(data):             # <<<<<<<<<<<<<<
13429
14899
 
13430
14900
static PyObject *__pyx_pf_4lxml_9objectify___unpickleElementTree(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
13431
14901
static PyObject *__pyx_pf_4lxml_9objectify___unpickleElementTree(PyObject *__pyx_self, PyObject *__pyx_v_data) {
13432
 
  PyObject *__pyx_r;
 
14902
  PyObject *__pyx_r = NULL;
13433
14903
  PyObject *__pyx_1 = 0;
13434
 
  PyObject *__pyx_2 = 0;
13435
 
  PyObject *__pyx_3 = 0;
13436
 
  PyObject *__pyx_4 = 0;
 
14904
  PyObject *__pyx_t_1 = NULL;
 
14905
  PyObject *__pyx_t_2 = NULL;
 
14906
  PyObject *__pyx_t_3 = NULL;
 
14907
  __Pyx_SetupRefcountContext("__unpickleElementTree");
13437
14908
  __pyx_self = __pyx_self;
13438
14909
 
13439
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1351
 
14910
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1342
13440
14911
 * 
13441
14912
 * def __unpickleElementTree(data):
13442
14913
 *     return etree.ElementTree(fromstring(data))             # <<<<<<<<<<<<<<
13443
14914
 * 
13444
14915
 * cdef _setupPickle(elementReduceFunction, elementTreeReduceFunction):
13445
14916
 */
13446
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ElementTree); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13447
 
  __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13448
 
  __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13449
 
  Py_INCREF(__pyx_v_data);
13450
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_data);
13451
 
  __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13452
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13453
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
13454
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13455
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
13456
 
  __pyx_4 = 0;
13457
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13458
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
13459
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
13460
 
  __pyx_r = __pyx_3;
13461
 
  __pyx_3 = 0;
 
14917
  __Pyx_XDECREF(__pyx_r);
 
14918
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_ElementTree); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14919
  __Pyx_GOTREF(__pyx_t_1);
 
14920
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14921
  __Pyx_GOTREF(__pyx_1);
 
14922
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14923
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
14924
  __Pyx_INCREF(__pyx_v_data);
 
14925
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_data);
 
14926
  __Pyx_GIVEREF(__pyx_v_data);
 
14927
  __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14928
  __Pyx_GOTREF(__pyx_t_3);
 
14929
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
14930
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
14931
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14932
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
14933
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
 
14934
  __Pyx_GIVEREF(__pyx_t_3);
 
14935
  __pyx_t_3 = 0;
 
14936
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14937
  __Pyx_GOTREF(__pyx_t_3);
 
14938
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
14939
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
14940
  __pyx_r = __pyx_t_3;
 
14941
  __pyx_t_3 = 0;
13462
14942
  goto __pyx_L0;
13463
14943
 
13464
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
14944
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13465
14945
  goto __pyx_L0;
13466
14946
  __pyx_L1_error:;
13467
 
  Py_XDECREF(__pyx_1);
13468
 
  Py_XDECREF(__pyx_2);
13469
 
  Py_XDECREF(__pyx_3);
13470
 
  Py_XDECREF(__pyx_4);
 
14947
  __Pyx_XDECREF(__pyx_1);
 
14948
  __Pyx_XDECREF(__pyx_t_1);
 
14949
  __Pyx_XDECREF(__pyx_t_2);
 
14950
  __Pyx_XDECREF(__pyx_t_3);
13471
14951
  __Pyx_AddTraceback("lxml.objectify.__unpickleElementTree");
13472
14952
  __pyx_r = NULL;
13473
14953
  __pyx_L0:;
 
14954
  __Pyx_XGIVEREF(__pyx_r);
 
14955
  __Pyx_FinishRefcountContext();
13474
14956
  return __pyx_r;
13475
14957
}
13476
14958
 
13477
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1353
 
14959
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1344
13478
14960
 *     return etree.ElementTree(fromstring(data))
13479
14961
 * 
13480
14962
 * cdef _setupPickle(elementReduceFunction, elementTreeReduceFunction):             # <<<<<<<<<<<<<<
13484
14966
 
13485
14967
static  PyObject *__pyx_f_4lxml_9objectify__setupPickle(PyObject *__pyx_v_elementReduceFunction, PyObject *__pyx_v_elementTreeReduceFunction) {
13486
14968
  PyObject *__pyx_v_copyreg;
13487
 
  PyObject *__pyx_r;
13488
 
  int __pyx_1;
13489
 
  PyObject *__pyx_2 = 0;
13490
 
  PyObject *__pyx_3 = 0;
13491
 
  PyObject *__pyx_4 = 0;
13492
 
  PyObject *__pyx_5 = 0;
13493
 
  __pyx_v_copyreg = Py_None; Py_INCREF(Py_None);
 
14969
  PyObject *__pyx_r = NULL;
 
14970
  PyObject *__pyx_1 = 0;
 
14971
  int __pyx_t_1;
 
14972
  PyObject *__pyx_t_2 = NULL;
 
14973
  PyObject *__pyx_t_3 = NULL;
 
14974
  PyObject *__pyx_t_4 = NULL;
 
14975
  __Pyx_SetupRefcountContext("_setupPickle");
 
14976
  __pyx_v_copyreg = Py_None; __Pyx_INCREF(Py_None);
13494
14977
 
13495
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1354
 
14978
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1345
13496
14979
 * 
13497
14980
 * cdef _setupPickle(elementReduceFunction, elementTreeReduceFunction):
13498
14981
 *     if python.IS_PYTHON3:             # <<<<<<<<<<<<<<
13499
14982
 *         import copyreg
13500
14983
 *     else:
13501
14984
 */
13502
 
  __pyx_1 = IS_PYTHON3;
13503
 
  if (__pyx_1) {
 
14985
  __pyx_t_1 = IS_PYTHON3;
 
14986
  if (__pyx_t_1) {
13504
14987
 
13505
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1355
 
14988
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1346
13506
14989
 * cdef _setupPickle(elementReduceFunction, elementTreeReduceFunction):
13507
14990
 *     if python.IS_PYTHON3:
13508
14991
 *         import copyreg             # <<<<<<<<<<<<<<
13509
14992
 *     else:
13510
14993
 *         import copy_reg as copyreg
13511
14994
 */
13512
 
    __pyx_2 = __Pyx_Import(__pyx_kp_copyreg, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13513
 
    Py_DECREF(__pyx_v_copyreg);
13514
 
    __pyx_v_copyreg = __pyx_2;
13515
 
    __pyx_2 = 0;
 
14995
    __pyx_1 = __Pyx_Import(__pyx_kp_copyreg, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
14996
    __Pyx_GOTREF(__pyx_1);
 
14997
    __Pyx_DECREF(__pyx_v_copyreg);
 
14998
    __pyx_v_copyreg = __pyx_1;
 
14999
    __pyx_1 = 0;
13516
15000
    goto __pyx_L3;
13517
15001
  }
13518
15002
  /*else*/ {
13519
15003
 
13520
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1357
 
15004
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1348
13521
15005
 *         import copyreg
13522
15006
 *     else:
13523
15007
 *         import copy_reg as copyreg             # <<<<<<<<<<<<<<
13524
15008
 *     copyreg.constructor(fromstring)
13525
15009
 *     copyreg.constructor(__unpickleElementTree)
13526
15010
 */
13527
 
    __pyx_2 = __Pyx_Import(__pyx_kp_copy_reg, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13528
 
    Py_DECREF(__pyx_v_copyreg);
13529
 
    __pyx_v_copyreg = __pyx_2;
13530
 
    __pyx_2 = 0;
 
15011
    __pyx_1 = __Pyx_Import(__pyx_kp_copy_reg, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15012
    __Pyx_GOTREF(__pyx_1);
 
15013
    __Pyx_DECREF(__pyx_v_copyreg);
 
15014
    __pyx_v_copyreg = __pyx_1;
 
15015
    __pyx_1 = 0;
13531
15016
  }
13532
15017
  __pyx_L3:;
13533
15018
 
13534
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1358
 
15019
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1349
13535
15020
 *     else:
13536
15021
 *         import copy_reg as copyreg
13537
15022
 *     copyreg.constructor(fromstring)             # <<<<<<<<<<<<<<
13538
15023
 *     copyreg.constructor(__unpickleElementTree)
13539
15024
 *     copyreg.pickle(ObjectifiedElement,
13540
15025
 */
13541
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_constructor); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13542
 
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13543
 
  __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13544
 
  PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
13545
 
  __pyx_3 = 0;
13546
 
  __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13547
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13548
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
13549
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
15026
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_constructor); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15027
  __Pyx_GOTREF(__pyx_t_2);
 
15028
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15029
  __Pyx_GOTREF(__pyx_1);
 
15030
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15031
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
15032
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_1);
 
15033
  __Pyx_GIVEREF(__pyx_1);
 
15034
  __pyx_1 = 0;
 
15035
  __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15036
  __Pyx_GOTREF(__pyx_t_4);
 
15037
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
15038
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
15039
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13550
15040
 
13551
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1359
 
15041
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1350
13552
15042
 *         import copy_reg as copyreg
13553
15043
 *     copyreg.constructor(fromstring)
13554
15044
 *     copyreg.constructor(__unpickleElementTree)             # <<<<<<<<<<<<<<
13555
15045
 *     copyreg.pickle(ObjectifiedElement,
13556
15046
 *                    elementReduceFunction, fromstring)
13557
15047
 */
13558
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_constructor); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13559
 
  __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_kp_762); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13560
 
  __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13561
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
13562
 
  __pyx_4 = 0;
13563
 
  __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13564
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13565
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
13566
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
 
15048
  __pyx_t_4 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_constructor); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15049
  __Pyx_GOTREF(__pyx_t_4);
 
15050
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_827); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15051
  __Pyx_GOTREF(__pyx_1);
 
15052
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15053
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
15054
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_1);
 
15055
  __Pyx_GIVEREF(__pyx_1);
 
15056
  __pyx_1 = 0;
 
15057
  __pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15058
  __Pyx_GOTREF(__pyx_t_2);
 
15059
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
15060
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
15061
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13567
15062
 
13568
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1360
 
15063
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1351
13569
15064
 *     copyreg.constructor(fromstring)
13570
15065
 *     copyreg.constructor(__unpickleElementTree)
13571
15066
 *     copyreg.pickle(ObjectifiedElement,             # <<<<<<<<<<<<<<
13572
15067
 *                    elementReduceFunction, fromstring)
13573
15068
 *     copyreg.pickle(etree._ElementTree,
13574
15069
 */
13575
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_pickle); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15070
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_pickle); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15071
  __Pyx_GOTREF(__pyx_t_2);
13576
15072
 
13577
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1361
 
15073
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1352
13578
15074
 *     copyreg.constructor(__unpickleElementTree)
13579
15075
 *     copyreg.pickle(ObjectifiedElement,
13580
15076
 *                    elementReduceFunction, fromstring)             # <<<<<<<<<<<<<<
13581
15077
 *     copyreg.pickle(etree._ElementTree,
13582
15078
 *                    elementTreeReduceFunction, __unpickleElementTree)
13583
15079
 */
13584
 
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1361; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13585
 
  __pyx_4 = PyTuple_New(3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13586
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
13587
 
  PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
13588
 
  Py_INCREF(__pyx_v_elementReduceFunction);
13589
 
  PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_elementReduceFunction);
13590
 
  PyTuple_SET_ITEM(__pyx_4, 2, __pyx_3);
13591
 
  __pyx_3 = 0;
13592
 
  __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13593
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13594
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
13595
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
15080
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15081
  __Pyx_GOTREF(__pyx_1);
 
15082
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15083
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
15084
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
15085
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
15086
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
15087
  __Pyx_INCREF(__pyx_v_elementReduceFunction);
 
15088
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_elementReduceFunction);
 
15089
  __Pyx_GIVEREF(__pyx_v_elementReduceFunction);
 
15090
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_1);
 
15091
  __Pyx_GIVEREF(__pyx_1);
 
15092
  __pyx_1 = 0;
 
15093
  __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15094
  __Pyx_GOTREF(__pyx_t_4);
 
15095
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
15096
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
15097
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
13596
15098
 
13597
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1362
 
15099
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1353
13598
15100
 *     copyreg.pickle(ObjectifiedElement,
13599
15101
 *                    elementReduceFunction, fromstring)
13600
15102
 *     copyreg.pickle(etree._ElementTree,             # <<<<<<<<<<<<<<
13601
15103
 *                    elementTreeReduceFunction, __unpickleElementTree)
13602
15104
 * 
13603
15105
 */
13604
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_pickle); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13605
 
  __pyx_4 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp__ElementTree); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15106
  __pyx_t_4 = PyObject_GetAttr(__pyx_v_copyreg, __pyx_kp_pickle); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15107
  __Pyx_GOTREF(__pyx_t_4);
 
15108
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp__ElementTree); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15109
  __Pyx_GOTREF(__pyx_t_3);
13606
15110
 
13607
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1363
 
15111
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1354
13608
15112
 *                    elementReduceFunction, fromstring)
13609
15113
 *     copyreg.pickle(etree._ElementTree,
13610
15114
 *                    elementTreeReduceFunction, __unpickleElementTree)             # <<<<<<<<<<<<<<
13611
15115
 * 
13612
15116
 * def pickleReduceElement(obj):
13613
15117
 */
13614
 
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_762); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13615
 
  __pyx_5 = PyTuple_New(3); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13616
 
  PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
13617
 
  Py_INCREF(__pyx_v_elementTreeReduceFunction);
13618
 
  PyTuple_SET_ITEM(__pyx_5, 1, __pyx_v_elementTreeReduceFunction);
13619
 
  PyTuple_SET_ITEM(__pyx_5, 2, __pyx_3);
13620
 
  __pyx_4 = 0;
13621
 
  __pyx_3 = 0;
13622
 
  __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13623
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13624
 
  Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
13625
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
 
15118
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_827); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15119
  __Pyx_GOTREF(__pyx_1);
 
15120
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15121
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15122
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
 
15123
  __Pyx_GIVEREF(__pyx_t_3);
 
15124
  __Pyx_INCREF(__pyx_v_elementTreeReduceFunction);
 
15125
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_elementTreeReduceFunction);
 
15126
  __Pyx_GIVEREF(__pyx_v_elementTreeReduceFunction);
 
15127
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_1);
 
15128
  __Pyx_GIVEREF(__pyx_1);
 
15129
  __pyx_t_3 = 0;
 
15130
  __pyx_1 = 0;
 
15131
  __pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15132
  __Pyx_GOTREF(__pyx_t_3);
 
15133
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
15134
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
15135
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13626
15136
 
13627
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
15137
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13628
15138
  goto __pyx_L0;
13629
15139
  __pyx_L1_error:;
13630
 
  Py_XDECREF(__pyx_2);
13631
 
  Py_XDECREF(__pyx_3);
13632
 
  Py_XDECREF(__pyx_4);
13633
 
  Py_XDECREF(__pyx_5);
 
15140
  __Pyx_XDECREF(__pyx_1);
 
15141
  __Pyx_XDECREF(__pyx_t_2);
 
15142
  __Pyx_XDECREF(__pyx_t_3);
 
15143
  __Pyx_XDECREF(__pyx_t_4);
13634
15144
  __Pyx_AddTraceback("lxml.objectify._setupPickle");
13635
15145
  __pyx_r = 0;
13636
15146
  __pyx_L0:;
13637
 
  Py_DECREF(__pyx_v_copyreg);
 
15147
  __Pyx_DECREF(__pyx_v_copyreg);
 
15148
  __Pyx_XGIVEREF(__pyx_r);
 
15149
  __Pyx_FinishRefcountContext();
13638
15150
  return __pyx_r;
13639
15151
}
13640
15152
 
13641
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1365
 
15153
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1356
13642
15154
 *                    elementTreeReduceFunction, __unpickleElementTree)
13643
15155
 * 
13644
15156
 * def pickleReduceElement(obj):             # <<<<<<<<<<<<<<
13648
15160
 
13649
15161
static PyObject *__pyx_pf_4lxml_9objectify_pickleReduceElement(PyObject *__pyx_self, PyObject *__pyx_v_obj); /*proto*/
13650
15162
static PyObject *__pyx_pf_4lxml_9objectify_pickleReduceElement(PyObject *__pyx_self, PyObject *__pyx_v_obj) {
13651
 
  PyObject *__pyx_r;
 
15163
  PyObject *__pyx_r = NULL;
13652
15164
  PyObject *__pyx_1 = 0;
13653
 
  PyObject *__pyx_2 = 0;
13654
 
  PyObject *__pyx_3 = 0;
13655
 
  PyObject *__pyx_4 = 0;
 
15165
  PyObject *__pyx_t_1 = NULL;
 
15166
  PyObject *__pyx_t_2 = NULL;
 
15167
  PyObject *__pyx_t_3 = NULL;
 
15168
  __Pyx_SetupRefcountContext("pickleReduceElement");
13656
15169
  __pyx_self = __pyx_self;
13657
15170
 
13658
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1366
 
15171
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1357
13659
15172
 * 
13660
15173
 * def pickleReduceElement(obj):
13661
15174
 *     return (fromstring, (etree.tostring(obj),))             # <<<<<<<<<<<<<<
13662
15175
 * 
13663
15176
 * def pickleReduceElementTree(obj):
13664
15177
 */
13665
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13666
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_tostring); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13667
 
  __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13668
 
  Py_INCREF(__pyx_v_obj);
13669
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_obj);
13670
 
  __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13671
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13672
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
13673
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13674
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
13675
 
  __pyx_4 = 0;
13676
 
  __pyx_3 = PyTuple_New(2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13677
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
13678
 
  PyTuple_SET_ITEM(__pyx_3, 1, ((PyObject *)__pyx_2));
 
15178
  __Pyx_XDECREF(__pyx_r);
 
15179
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_fromstring); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15180
  __Pyx_GOTREF(__pyx_1);
 
15181
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_tostring); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15182
  __Pyx_GOTREF(__pyx_t_1);
 
15183
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15184
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15185
  __Pyx_INCREF(__pyx_v_obj);
 
15186
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
 
15187
  __Pyx_GIVEREF(__pyx_v_obj);
 
15188
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15189
  __Pyx_GOTREF(__pyx_t_3);
 
15190
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
15191
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
15192
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15193
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15194
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
 
15195
  __Pyx_GIVEREF(__pyx_t_3);
 
15196
  __pyx_t_3 = 0;
 
15197
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15198
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
15199
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_1);
 
15200
  __Pyx_GIVEREF(__pyx_1);
 
15201
  PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_t_2));
 
15202
  __Pyx_GIVEREF(((PyObject *)__pyx_t_2));
13679
15203
  __pyx_1 = 0;
13680
 
  __pyx_2 = 0;
13681
 
  __pyx_r = ((PyObject *)__pyx_3);
13682
 
  __pyx_3 = 0;
 
15204
  __pyx_t_2 = 0;
 
15205
  __pyx_r = ((PyObject *)__pyx_t_3);
 
15206
  __pyx_t_3 = 0;
13683
15207
  goto __pyx_L0;
13684
15208
 
13685
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
15209
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13686
15210
  goto __pyx_L0;
13687
15211
  __pyx_L1_error:;
13688
 
  Py_XDECREF(__pyx_1);
13689
 
  Py_XDECREF(__pyx_2);
13690
 
  Py_XDECREF(__pyx_3);
13691
 
  Py_XDECREF(__pyx_4);
 
15212
  __Pyx_XDECREF(__pyx_1);
 
15213
  __Pyx_XDECREF(__pyx_t_1);
 
15214
  __Pyx_XDECREF(__pyx_t_2);
 
15215
  __Pyx_XDECREF(__pyx_t_3);
13692
15216
  __Pyx_AddTraceback("lxml.objectify.pickleReduceElement");
13693
15217
  __pyx_r = NULL;
13694
15218
  __pyx_L0:;
 
15219
  __Pyx_XGIVEREF(__pyx_r);
 
15220
  __Pyx_FinishRefcountContext();
13695
15221
  return __pyx_r;
13696
15222
}
13697
15223
 
13698
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1368
 
15224
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1359
13699
15225
 *     return (fromstring, (etree.tostring(obj),))
13700
15226
 * 
13701
15227
 * def pickleReduceElementTree(obj):             # <<<<<<<<<<<<<<
13705
15231
 
13706
15232
static PyObject *__pyx_pf_4lxml_9objectify_pickleReduceElementTree(PyObject *__pyx_self, PyObject *__pyx_v_obj); /*proto*/
13707
15233
static PyObject *__pyx_pf_4lxml_9objectify_pickleReduceElementTree(PyObject *__pyx_self, PyObject *__pyx_v_obj) {
13708
 
  PyObject *__pyx_r;
 
15234
  PyObject *__pyx_r = NULL;
13709
15235
  PyObject *__pyx_1 = 0;
13710
 
  PyObject *__pyx_2 = 0;
13711
 
  PyObject *__pyx_3 = 0;
13712
 
  PyObject *__pyx_4 = 0;
 
15236
  PyObject *__pyx_t_1 = NULL;
 
15237
  PyObject *__pyx_t_2 = NULL;
 
15238
  PyObject *__pyx_t_3 = NULL;
 
15239
  __Pyx_SetupRefcountContext("pickleReduceElementTree");
13713
15240
  __pyx_self = __pyx_self;
13714
15241
 
13715
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1369
 
15242
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1360
13716
15243
 * 
13717
15244
 * def pickleReduceElementTree(obj):
13718
15245
 *     return (__unpickleElementTree, (etree.tostring(obj),))             # <<<<<<<<<<<<<<
13719
15246
 * 
13720
15247
 * _setupPickle(pickleReduceElement, pickleReduceElementTree)
13721
15248
 */
13722
 
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_762); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13723
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_tostring); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13724
 
  __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13725
 
  Py_INCREF(__pyx_v_obj);
13726
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_obj);
13727
 
  __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13728
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13729
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
13730
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13731
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
13732
 
  __pyx_4 = 0;
13733
 
  __pyx_3 = PyTuple_New(2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13734
 
  PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
13735
 
  PyTuple_SET_ITEM(__pyx_3, 1, ((PyObject *)__pyx_2));
 
15249
  __Pyx_XDECREF(__pyx_r);
 
15250
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_827); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15251
  __Pyx_GOTREF(__pyx_1);
 
15252
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_tostring); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15253
  __Pyx_GOTREF(__pyx_t_1);
 
15254
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15255
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15256
  __Pyx_INCREF(__pyx_v_obj);
 
15257
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
 
15258
  __Pyx_GIVEREF(__pyx_v_obj);
 
15259
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15260
  __Pyx_GOTREF(__pyx_t_3);
 
15261
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
15262
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
15263
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15264
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15265
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
 
15266
  __Pyx_GIVEREF(__pyx_t_3);
 
15267
  __pyx_t_3 = 0;
 
15268
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15269
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
15270
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_1);
 
15271
  __Pyx_GIVEREF(__pyx_1);
 
15272
  PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_t_2));
 
15273
  __Pyx_GIVEREF(((PyObject *)__pyx_t_2));
13736
15274
  __pyx_1 = 0;
13737
 
  __pyx_2 = 0;
13738
 
  __pyx_r = ((PyObject *)__pyx_3);
13739
 
  __pyx_3 = 0;
 
15275
  __pyx_t_2 = 0;
 
15276
  __pyx_r = ((PyObject *)__pyx_t_3);
 
15277
  __pyx_t_3 = 0;
13740
15278
  goto __pyx_L0;
13741
15279
 
13742
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
15280
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13743
15281
  goto __pyx_L0;
13744
15282
  __pyx_L1_error:;
13745
 
  Py_XDECREF(__pyx_1);
13746
 
  Py_XDECREF(__pyx_2);
13747
 
  Py_XDECREF(__pyx_3);
13748
 
  Py_XDECREF(__pyx_4);
 
15283
  __Pyx_XDECREF(__pyx_1);
 
15284
  __Pyx_XDECREF(__pyx_t_1);
 
15285
  __Pyx_XDECREF(__pyx_t_2);
 
15286
  __Pyx_XDECREF(__pyx_t_3);
13749
15287
  __Pyx_AddTraceback("lxml.objectify.pickleReduceElementTree");
13750
15288
  __pyx_r = NULL;
13751
15289
  __pyx_L0:;
 
15290
  __Pyx_XGIVEREF(__pyx_r);
 
15291
  __Pyx_FinishRefcountContext();
13752
15292
  return __pyx_r;
13753
15293
}
13754
15294
 
13755
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1383
 
15295
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1374
13756
15296
 *     cdef object empty_data_class
13757
15297
 *     cdef object tree_class
13758
15298
 *     def __init__(self, tree_class=None, empty_data_class=None):             # <<<<<<<<<<<<<<
13766
15306
  PyObject *__pyx_v_tree_class = 0;
13767
15307
  PyObject *__pyx_v_empty_data_class = 0;
13768
15308
  int __pyx_r;
13769
 
  int __pyx_1;
 
15309
  int __pyx_t_1;
13770
15310
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_tree_class,&__pyx_kp_empty_data_class,0};
13771
 
  __pyx_v_tree_class = Py_None;
13772
 
  __pyx_v_empty_data_class = Py_None;
 
15311
  __Pyx_SetupRefcountContext("__init__");
13773
15312
  if (unlikely(__pyx_kwds)) {
 
15313
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
13774
15314
    PyObject* values[2] = {0,0};
13775
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
15315
    values[0] = Py_None;
 
15316
    values[1] = Py_None;
13776
15317
    switch (PyTuple_GET_SIZE(__pyx_args)) {
13777
15318
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13778
15319
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13779
15320
      case  0: break;
13780
15321
      default: goto __pyx_L5_argtuple_error;
13781
15322
    }
 
15323
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
15324
      case  0:
 
15325
      if (kw_args > 1) {
 
15326
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_tree_class);
 
15327
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
15328
      }
 
15329
      case  1:
 
15330
      if (kw_args > 1) {
 
15331
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_empty_data_class);
 
15332
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
15333
      }
 
15334
    }
13782
15335
    if (unlikely(kw_args > 0)) {
13783
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1383; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13784
 
    }
13785
 
    if (values[0]) {
13786
 
      __pyx_v_tree_class = values[0];
13787
 
    }
13788
 
    if (values[1]) {
13789
 
      __pyx_v_empty_data_class = values[1];
13790
 
    }
 
15336
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1374; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
15337
    }
 
15338
    __pyx_v_tree_class = values[0];
 
15339
    __pyx_v_empty_data_class = values[1];
13791
15340
  } else {
 
15341
    __pyx_v_tree_class = Py_None;
 
15342
    __pyx_v_empty_data_class = Py_None;
13792
15343
    switch (PyTuple_GET_SIZE(__pyx_args)) {
13793
15344
      case  2: __pyx_v_empty_data_class = PyTuple_GET_ITEM(__pyx_args, 1);
13794
15345
      case  1: __pyx_v_tree_class = PyTuple_GET_ITEM(__pyx_args, 0);
13798
15349
  }
13799
15350
  goto __pyx_L4_argument_unpacking_done;
13800
15351
  __pyx_L5_argtuple_error:;
13801
 
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1383; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
15352
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1374; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13802
15353
  __pyx_L3_error:;
13803
15354
  __Pyx_AddTraceback("lxml.objectify.ObjectifyElementClassLookup.__init__");
13804
15355
  return -1;
13805
15356
  __pyx_L4_argument_unpacking_done:;
13806
 
  Py_INCREF(__pyx_v_tree_class);
13807
 
  Py_INCREF(__pyx_v_empty_data_class);
 
15357
  __Pyx_INCREF(__pyx_v_tree_class);
 
15358
  __Pyx_INCREF(__pyx_v_empty_data_class);
13808
15359
 
13809
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1392
 
15360
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1383
13810
15361
 *         empty data elements (defauls to StringElement).
13811
15362
 *         """
13812
15363
 *         self._lookup_function = _lookupElementClass             # <<<<<<<<<<<<<<
13815
15366
 */
13816
15367
  ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->__pyx_base._lookup_function = __pyx_f_4lxml_9objectify__lookupElementClass;
13817
15368
 
13818
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1393
 
15369
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1384
13819
15370
 *         """
13820
15371
 *         self._lookup_function = _lookupElementClass
13821
15372
 *         if tree_class is None:             # <<<<<<<<<<<<<<
13822
15373
 *             tree_class = ObjectifiedElement
13823
15374
 *         self.tree_class = tree_class
13824
15375
 */
13825
 
  __pyx_1 = (__pyx_v_tree_class == Py_None);
13826
 
  if (__pyx_1) {
 
15376
  __pyx_t_1 = (__pyx_v_tree_class == Py_None);
 
15377
  if (__pyx_t_1) {
13827
15378
 
13828
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1394
 
15379
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1385
13829
15380
 *         self._lookup_function = _lookupElementClass
13830
15381
 *         if tree_class is None:
13831
15382
 *             tree_class = ObjectifiedElement             # <<<<<<<<<<<<<<
13832
15383
 *         self.tree_class = tree_class
13833
15384
 *         if empty_data_class is None:
13834
15385
 */
13835
 
    Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
13836
 
    Py_DECREF(__pyx_v_tree_class);
 
15386
    __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
15387
    __Pyx_DECREF(__pyx_v_tree_class);
13837
15388
    __pyx_v_tree_class = ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement));
13838
15389
    goto __pyx_L6;
13839
15390
  }
13840
15391
  __pyx_L6:;
13841
15392
 
13842
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1395
 
15393
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1386
13843
15394
 *         if tree_class is None:
13844
15395
 *             tree_class = ObjectifiedElement
13845
15396
 *         self.tree_class = tree_class             # <<<<<<<<<<<<<<
13846
15397
 *         if empty_data_class is None:
13847
15398
 *             empty_data_class = StringElement
13848
15399
 */
13849
 
  Py_INCREF(__pyx_v_tree_class);
13850
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class);
 
15400
  __Pyx_INCREF(__pyx_v_tree_class);
 
15401
  __Pyx_GIVEREF(__pyx_v_tree_class);
 
15402
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class);
 
15403
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class);
13851
15404
  ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->tree_class = __pyx_v_tree_class;
13852
15405
 
13853
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1396
 
15406
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1387
13854
15407
 *             tree_class = ObjectifiedElement
13855
15408
 *         self.tree_class = tree_class
13856
15409
 *         if empty_data_class is None:             # <<<<<<<<<<<<<<
13857
15410
 *             empty_data_class = StringElement
13858
15411
 *         self.empty_data_class = empty_data_class
13859
15412
 */
13860
 
  __pyx_1 = (__pyx_v_empty_data_class == Py_None);
13861
 
  if (__pyx_1) {
 
15413
  __pyx_t_1 = (__pyx_v_empty_data_class == Py_None);
 
15414
  if (__pyx_t_1) {
13862
15415
 
13863
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1397
 
15416
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1388
13864
15417
 *         self.tree_class = tree_class
13865
15418
 *         if empty_data_class is None:
13866
15419
 *             empty_data_class = StringElement             # <<<<<<<<<<<<<<
13867
15420
 *         self.empty_data_class = empty_data_class
13868
15421
 * 
13869
15422
 */
13870
 
    Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
13871
 
    Py_DECREF(__pyx_v_empty_data_class);
 
15423
    __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement)));
 
15424
    __Pyx_DECREF(__pyx_v_empty_data_class);
13872
15425
    __pyx_v_empty_data_class = ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_StringElement));
13873
15426
    goto __pyx_L7;
13874
15427
  }
13875
15428
  __pyx_L7:;
13876
15429
 
13877
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1398
 
15430
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1389
13878
15431
 *         if empty_data_class is None:
13879
15432
 *             empty_data_class = StringElement
13880
15433
 *         self.empty_data_class = empty_data_class             # <<<<<<<<<<<<<<
13881
15434
 * 
13882
15435
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):
13883
15436
 */
13884
 
  Py_INCREF(__pyx_v_empty_data_class);
13885
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class);
 
15437
  __Pyx_INCREF(__pyx_v_empty_data_class);
 
15438
  __Pyx_GIVEREF(__pyx_v_empty_data_class);
 
15439
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class);
 
15440
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class);
13886
15441
  ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_self)->empty_data_class = __pyx_v_empty_data_class;
13887
15442
 
13888
15443
  __pyx_r = 0;
13889
 
  Py_DECREF(__pyx_v_tree_class);
13890
 
  Py_DECREF(__pyx_v_empty_data_class);
 
15444
  __Pyx_DECREF(__pyx_v_tree_class);
 
15445
  __Pyx_DECREF(__pyx_v_empty_data_class);
 
15446
  __Pyx_FinishRefcountContext();
13891
15447
  return __pyx_r;
13892
15448
}
13893
15449
 
13894
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1400
 
15450
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1391
13895
15451
 *         self.empty_data_class = empty_data_class
13896
15452
 * 
13897
15453
 * cdef object _lookupElementClass(state, _Document doc, tree.xmlNode* c_node):             # <<<<<<<<<<<<<<
13905
15461
  PyObject *__pyx_v_value;
13906
15462
  PyObject *__pyx_v_prefix;
13907
15463
  PyObject *__pyx_v_el_class;
13908
 
  PyObject *__pyx_r;
13909
 
  int __pyx_1;
 
15464
  PyObject *__pyx_r = NULL;
 
15465
  PyObject *__pyx_1 = 0;
13910
15466
  PyObject *__pyx_2 = 0;
13911
15467
  PyObject *__pyx_3 = 0;
13912
 
  PyObject *__pyx_4 = 0;
13913
 
  __pyx_v_lookup = ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)Py_None); Py_INCREF(Py_None);
13914
 
  __pyx_v_value = Py_None; Py_INCREF(Py_None);
13915
 
  __pyx_v_prefix = Py_None; Py_INCREF(Py_None);
13916
 
  __pyx_v_el_class = Py_None; Py_INCREF(Py_None);
 
15468
  int __pyx_t_1;
 
15469
  PyObject *__pyx_t_2 = NULL;
 
15470
  PyObject *__pyx_t_3 = NULL;
 
15471
  int __pyx_t_4;
 
15472
  PyObject *__pyx_t_5 = NULL;
 
15473
  __Pyx_SetupRefcountContext("_lookupElementClass");
 
15474
  __pyx_v_lookup = ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)Py_None); __Pyx_INCREF(Py_None);
 
15475
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
 
15476
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
 
15477
  __pyx_v_el_class = Py_None; __Pyx_INCREF(Py_None);
13917
15478
 
13918
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1403
 
15479
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1394
13919
15480
 *     cdef ObjectifyElementClassLookup lookup
13920
15481
 *     cdef python.PyObject* dict_result
13921
15482
 *     lookup = <ObjectifyElementClassLookup>state             # <<<<<<<<<<<<<<
13922
15483
 *     # if element has children => no data class
13923
15484
 *     if cetree.hasChild(c_node):
13924
15485
 */
13925
 
  Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_state)));
13926
 
  Py_DECREF(((PyObject *)__pyx_v_lookup));
 
15486
  __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_state)));
 
15487
  __Pyx_DECREF(((PyObject *)__pyx_v_lookup));
13927
15488
  __pyx_v_lookup = ((struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup *)__pyx_v_state);
13928
15489
 
13929
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1405
 
15490
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1396
13930
15491
 *     lookup = <ObjectifyElementClassLookup>state
13931
15492
 *     # if element has children => no data class
13932
15493
 *     if cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
13933
15494
 *         return lookup.tree_class
13934
15495
 * 
13935
15496
 */
13936
 
  __pyx_1 = hasChild(__pyx_v_c_node);
13937
 
  if (__pyx_1) {
 
15497
  __pyx_t_1 = hasChild(__pyx_v_c_node);
 
15498
  if (__pyx_t_1) {
13938
15499
 
13939
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1406
 
15500
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1397
13940
15501
 *     # if element has children => no data class
13941
15502
 *     if cetree.hasChild(c_node):
13942
15503
 *         return lookup.tree_class             # <<<<<<<<<<<<<<
13943
15504
 * 
13944
15505
 *     # if element is defined as xsi:nil, return NoneElement class
13945
15506
 */
13946
 
    Py_INCREF(__pyx_v_lookup->tree_class);
 
15507
    __Pyx_XDECREF(__pyx_r);
 
15508
    __Pyx_INCREF(__pyx_v_lookup->tree_class);
13947
15509
    __pyx_r = __pyx_v_lookup->tree_class;
13948
15510
    goto __pyx_L0;
13949
15511
    goto __pyx_L3;
13950
15512
  }
13951
15513
  __pyx_L3:;
13952
15514
 
13953
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1410
 
15515
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1401
13954
15516
 *     # if element is defined as xsi:nil, return NoneElement class
13955
15517
 *     if u"true" == cetree.attributeValueFromNsName(
13956
15518
 *         c_node, _XML_SCHEMA_INSTANCE_NS, "nil"):             # <<<<<<<<<<<<<<
13957
15519
 *         return NoneElement
13958
15520
 * 
13959
15521
 */
13960
 
  __pyx_2 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_764); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13961
 
  __pyx_3 = PyObject_RichCompare(((PyObject *)__pyx_kp_763), __pyx_2, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13962
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
13963
 
  __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13964
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
13965
 
  if (__pyx_1) {
 
15522
  __pyx_t_2 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_829); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15523
  __Pyx_GOTREF(__pyx_t_2);
 
15524
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_kp_828), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15525
  __Pyx_GOTREF(__pyx_t_3);
 
15526
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
15527
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15528
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
15529
  if (__pyx_t_1) {
13966
15530
 
13967
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1411
 
15531
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1402
13968
15532
 *     if u"true" == cetree.attributeValueFromNsName(
13969
15533
 *         c_node, _XML_SCHEMA_INSTANCE_NS, "nil"):
13970
15534
 *         return NoneElement             # <<<<<<<<<<<<<<
13971
15535
 * 
13972
15536
 *     # check for Python type hint
13973
15537
 */
13974
 
    Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
 
15538
    __Pyx_XDECREF(__pyx_r);
 
15539
    __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement)));
13975
15540
    __pyx_r = ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_NoneElement));
13976
15541
    goto __pyx_L0;
13977
15542
    goto __pyx_L4;
13978
15543
  }
13979
15544
  __pyx_L4:;
13980
15545
 
13981
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1415
 
15546
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1406
13982
15547
 *     # check for Python type hint
13983
15548
 *     value = cetree.attributeValueFromNsName(
13984
15549
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
13985
15550
 *     if value is not None:
13986
15551
 *         if value == TREE_PYTYPE_NAME:
13987
15552
 */
13988
 
  __pyx_2 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13989
 
  Py_DECREF(__pyx_v_value);
13990
 
  __pyx_v_value = __pyx_2;
13991
 
  __pyx_2 = 0;
 
15553
  __pyx_t_3 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15554
  __Pyx_GOTREF(__pyx_t_3);
 
15555
  __Pyx_DECREF(__pyx_v_value);
 
15556
  __pyx_v_value = __pyx_t_3;
 
15557
  __pyx_t_3 = 0;
13992
15558
 
13993
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1416
 
15559
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1407
13994
15560
 *     value = cetree.attributeValueFromNsName(
13995
15561
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
13996
15562
 *     if value is not None:             # <<<<<<<<<<<<<<
13997
15563
 *         if value == TREE_PYTYPE_NAME:
13998
15564
 *             return lookup.tree_class
13999
15565
 */
14000
 
  __pyx_1 = (__pyx_v_value != Py_None);
14001
 
  if (__pyx_1) {
 
15566
  __pyx_t_1 = (__pyx_v_value != Py_None);
 
15567
  if (__pyx_t_1) {
14002
15568
 
14003
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1417
 
15569
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1408
14004
15570
 *         c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
14005
15571
 *     if value is not None:
14006
15572
 *         if value == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
14007
15573
 *             return lookup.tree_class
14008
15574
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, value)
14009
15575
 */
14010
 
    __pyx_3 = PyObject_RichCompare(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14011
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14012
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
14013
 
    if (__pyx_1) {
 
15576
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_value, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15577
    __Pyx_GOTREF(__pyx_t_3);
 
15578
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15579
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
15580
    if (__pyx_t_1) {
14014
15581
 
14015
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1418
 
15582
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1409
14016
15583
 *     if value is not None:
14017
15584
 *         if value == TREE_PYTYPE_NAME:
14018
15585
 *             return lookup.tree_class             # <<<<<<<<<<<<<<
14019
15586
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, value)
14020
15587
 *         if dict_result is not NULL:
14021
15588
 */
14022
 
      Py_INCREF(__pyx_v_lookup->tree_class);
 
15589
      __Pyx_XDECREF(__pyx_r);
 
15590
      __Pyx_INCREF(__pyx_v_lookup->tree_class);
14023
15591
      __pyx_r = __pyx_v_lookup->tree_class;
14024
15592
      goto __pyx_L0;
14025
15593
      goto __pyx_L6;
14026
15594
    }
14027
15595
    __pyx_L6:;
14028
15596
 
14029
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1419
 
15597
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1410
14030
15598
 *         if value == TREE_PYTYPE_NAME:
14031
15599
 *             return lookup.tree_class
14032
15600
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, value)             # <<<<<<<<<<<<<<
14033
15601
 *         if dict_result is not NULL:
14034
15602
 *             return (<PyType>dict_result)._type
14035
15603
 */
14036
 
    __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_value);
 
15604
    __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_value);
14037
15605
 
14038
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1420
 
15606
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1411
14039
15607
 *             return lookup.tree_class
14040
15608
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, value)
14041
15609
 *         if dict_result is not NULL:             # <<<<<<<<<<<<<<
14042
15610
 *             return (<PyType>dict_result)._type
14043
15611
 *         # unknown 'pyval' => try to figure it out ourself, just go on
14044
15612
 */
14045
 
    __pyx_1 = (__pyx_v_dict_result != NULL);
14046
 
    if (__pyx_1) {
 
15613
    __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
15614
    if (__pyx_t_1) {
14047
15615
 
14048
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1421
 
15616
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1412
14049
15617
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, value)
14050
15618
 *         if dict_result is not NULL:
14051
15619
 *             return (<PyType>dict_result)._type             # <<<<<<<<<<<<<<
14052
15620
 *         # unknown 'pyval' => try to figure it out ourself, just go on
14053
15621
 * 
14054
15622
 */
14055
 
      Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type);
 
15623
      __Pyx_XDECREF(__pyx_r);
 
15624
      __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type);
14056
15625
      __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type;
14057
15626
      goto __pyx_L0;
14058
15627
      goto __pyx_L7;
14062
15631
  }
14063
15632
  __pyx_L5:;
14064
15633
 
14065
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1426
 
15634
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1417
14066
15635
 *     # check for XML Schema type hint
14067
15636
 *     value = cetree.attributeValueFromNsName(
14068
15637
 *         c_node, _XML_SCHEMA_INSTANCE_NS, "type")             # <<<<<<<<<<<<<<
14069
15638
 * 
14070
15639
 *     if value is not None:
14071
15640
 */
14072
 
  __pyx_2 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_765); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14073
 
  Py_DECREF(__pyx_v_value);
14074
 
  __pyx_v_value = __pyx_2;
14075
 
  __pyx_2 = 0;
 
15641
  __pyx_t_3 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_830); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15642
  __Pyx_GOTREF(__pyx_t_3);
 
15643
  __Pyx_DECREF(__pyx_v_value);
 
15644
  __pyx_v_value = __pyx_t_3;
 
15645
  __pyx_t_3 = 0;
14076
15646
 
14077
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1428
 
15647
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1419
14078
15648
 *         c_node, _XML_SCHEMA_INSTANCE_NS, "type")
14079
15649
 * 
14080
15650
 *     if value is not None:             # <<<<<<<<<<<<<<
14081
15651
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14082
15652
 *         if dict_result is NULL and u':' in value:
14083
15653
 */
14084
 
  __pyx_1 = (__pyx_v_value != Py_None);
14085
 
  if (__pyx_1) {
 
15654
  __pyx_t_1 = (__pyx_v_value != Py_None);
 
15655
  if (__pyx_t_1) {
14086
15656
 
14087
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1429
 
15657
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1420
14088
15658
 * 
14089
15659
 *     if value is not None:
14090
15660
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)             # <<<<<<<<<<<<<<
14091
15661
 *         if dict_result is NULL and u':' in value:
14092
15662
 *             prefix, value = value.split(u':', 1)
14093
15663
 */
14094
 
    __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_value);
 
15664
    __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_value);
14095
15665
 
14096
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1430
 
15666
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1421
14097
15667
 *     if value is not None:
14098
15668
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14099
15669
 *         if dict_result is NULL and u':' in value:             # <<<<<<<<<<<<<<
14100
15670
 *             prefix, value = value.split(u':', 1)
14101
15671
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14102
15672
 */
14103
 
    __pyx_1 = (__pyx_v_dict_result == NULL);
14104
 
    if (__pyx_1) {
14105
 
      __pyx_1 = (PySequence_Contains(__pyx_v_value, ((PyObject *)__pyx_kp_766))); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15673
    if ((__pyx_v_dict_result == NULL)) {
 
15674
      __pyx_t_1 = (PySequence_Contains(__pyx_v_value, ((PyObject *)__pyx_kp_831))); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15675
      __pyx_t_4 = __pyx_t_1;
 
15676
    } else {
 
15677
      __pyx_t_4 = (__pyx_v_dict_result == NULL);
14106
15678
    }
14107
 
    if (__pyx_1) {
 
15679
    if (__pyx_t_4) {
14108
15680
 
14109
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1431
 
15681
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1422
14110
15682
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14111
15683
 *         if dict_result is NULL and u':' in value:
14112
15684
 *             prefix, value = value.split(u':', 1)             # <<<<<<<<<<<<<<
14113
15685
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14114
15686
 *         if dict_result is not NULL:
14115
15687
 */
14116
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_value, __pyx_kp_split); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14117
 
      __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14118
 
      Py_INCREF(((PyObject *)__pyx_kp_767));
14119
 
      PyTuple_SET_ITEM(__pyx_2, 0, ((PyObject *)__pyx_kp_767));
14120
 
      Py_INCREF(__pyx_int_1);
14121
 
      PyTuple_SET_ITEM(__pyx_2, 1, __pyx_int_1);
14122
 
      __pyx_4 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14123
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
14124
 
      Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
14125
 
      if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
14126
 
        PyObject* tuple = __pyx_4;
14127
 
        __pyx_2 = PyTuple_GET_ITEM(tuple, 0);
14128
 
        Py_INCREF(__pyx_2);
14129
 
        Py_DECREF(__pyx_v_prefix);
14130
 
        __pyx_v_prefix = __pyx_2;
14131
 
        __pyx_2 = 0;
14132
 
        __pyx_2 = PyTuple_GET_ITEM(tuple, 1);
14133
 
        Py_INCREF(__pyx_2);
14134
 
        Py_DECREF(__pyx_v_value);
14135
 
        __pyx_v_value = __pyx_2;
14136
 
        __pyx_2 = 0;
14137
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
14138
 
      }
14139
 
      else {
14140
 
        __pyx_3 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14141
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
14142
 
        __pyx_2 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14143
 
        Py_DECREF(__pyx_v_prefix);
14144
 
        __pyx_v_prefix = __pyx_2;
14145
 
        __pyx_2 = 0;
14146
 
        __pyx_2 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14147
 
        Py_DECREF(__pyx_v_value);
14148
 
        __pyx_v_value = __pyx_2;
14149
 
        __pyx_2 = 0;
14150
 
        if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14151
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
 
15688
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_value, __pyx_kp_split); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15689
      __Pyx_GOTREF(__pyx_t_3);
 
15690
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15691
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15692
      __Pyx_INCREF(((PyObject *)__pyx_kp_832));
 
15693
      PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_832));
 
15694
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_832));
 
15695
      __Pyx_INCREF(__pyx_int_1);
 
15696
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_1);
 
15697
      __Pyx_GIVEREF(__pyx_int_1);
 
15698
      __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15699
      __Pyx_GOTREF(__pyx_t_5);
 
15700
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
15701
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
15702
      if (PyTuple_CheckExact(__pyx_t_5) && likely(PyTuple_GET_SIZE(__pyx_t_5) == 2)) {
 
15703
        PyObject* tuple = __pyx_t_5;
 
15704
        __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
15705
        __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
15706
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
15707
        __Pyx_DECREF(__pyx_v_prefix);
 
15708
        __pyx_v_prefix = __pyx_2;
 
15709
        __pyx_2 = 0;
 
15710
        __Pyx_DECREF(__pyx_v_value);
 
15711
        __pyx_v_value = __pyx_3;
 
15712
        __pyx_3 = 0;
 
15713
      } else {
 
15714
        __pyx_1 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15715
        __Pyx_GOTREF(__pyx_1);
 
15716
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
15717
        __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15718
        __Pyx_GOTREF(__pyx_2);
 
15719
        __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15720
        __Pyx_GOTREF(__pyx_3);
 
15721
        if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15722
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
15723
        __Pyx_DECREF(__pyx_v_prefix);
 
15724
        __pyx_v_prefix = __pyx_2;
 
15725
        __pyx_2 = 0;
 
15726
        __Pyx_DECREF(__pyx_v_value);
 
15727
        __pyx_v_value = __pyx_3;
 
15728
        __pyx_3 = 0;
14152
15729
      }
14153
15730
 
14154
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1432
 
15731
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1423
14155
15732
 *         if dict_result is NULL and u':' in value:
14156
15733
 *             prefix, value = value.split(u':', 1)
14157
15734
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)             # <<<<<<<<<<<<<<
14158
15735
 *         if dict_result is not NULL:
14159
15736
 *             return (<PyType>dict_result)._type
14160
15737
 */
14161
 
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_value);
 
15738
      __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_value);
14162
15739
      goto __pyx_L9;
14163
15740
    }
14164
15741
    __pyx_L9:;
14165
15742
 
14166
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1433
 
15743
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1424
14167
15744
 *             prefix, value = value.split(u':', 1)
14168
15745
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14169
15746
 *         if dict_result is not NULL:             # <<<<<<<<<<<<<<
14170
15747
 *             return (<PyType>dict_result)._type
14171
15748
 * 
14172
15749
 */
14173
 
    __pyx_1 = (__pyx_v_dict_result != NULL);
14174
 
    if (__pyx_1) {
 
15750
    __pyx_t_4 = (__pyx_v_dict_result != NULL);
 
15751
    if (__pyx_t_4) {
14175
15752
 
14176
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1434
 
15753
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1425
14177
15754
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, value)
14178
15755
 *         if dict_result is not NULL:
14179
15756
 *             return (<PyType>dict_result)._type             # <<<<<<<<<<<<<<
14180
15757
 * 
14181
15758
 *     # otherwise determine class based on text content type
14182
15759
 */
14183
 
      Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type);
 
15760
      __Pyx_XDECREF(__pyx_r);
 
15761
      __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type);
14184
15762
      __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->_type;
14185
15763
      goto __pyx_L0;
14186
15764
      goto __pyx_L10;
14190
15768
  }
14191
15769
  __pyx_L8:;
14192
15770
 
14193
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1437
 
15771
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1428
14194
15772
 * 
14195
15773
 *     # otherwise determine class based on text content type
14196
15774
 *     el_class = _guessElementClass(c_node)             # <<<<<<<<<<<<<<
14197
15775
 *     if el_class is not None:
14198
15776
 *         return el_class
14199
15777
 */
14200
 
  __pyx_2 = __pyx_f_4lxml_9objectify__guessElementClass(__pyx_v_c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14201
 
  Py_DECREF(__pyx_v_el_class);
14202
 
  __pyx_v_el_class = __pyx_2;
14203
 
  __pyx_2 = 0;
 
15778
  __pyx_t_5 = __pyx_f_4lxml_9objectify__guessElementClass(__pyx_v_c_node); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15779
  __Pyx_GOTREF(__pyx_t_5);
 
15780
  __Pyx_DECREF(__pyx_v_el_class);
 
15781
  __pyx_v_el_class = __pyx_t_5;
 
15782
  __pyx_t_5 = 0;
14204
15783
 
14205
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1438
 
15784
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1429
14206
15785
 *     # otherwise determine class based on text content type
14207
15786
 *     el_class = _guessElementClass(c_node)
14208
15787
 *     if el_class is not None:             # <<<<<<<<<<<<<<
14209
15788
 *         return el_class
14210
15789
 * 
14211
15790
 */
14212
 
  __pyx_1 = (__pyx_v_el_class != Py_None);
14213
 
  if (__pyx_1) {
 
15791
  __pyx_t_4 = (__pyx_v_el_class != Py_None);
 
15792
  if (__pyx_t_4) {
14214
15793
 
14215
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1439
 
15794
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1430
14216
15795
 *     el_class = _guessElementClass(c_node)
14217
15796
 *     if el_class is not None:
14218
15797
 *         return el_class             # <<<<<<<<<<<<<<
14219
15798
 * 
14220
15799
 *     # if element is a root node => default to tree node
14221
15800
 */
14222
 
    Py_INCREF(__pyx_v_el_class);
 
15801
    __Pyx_XDECREF(__pyx_r);
 
15802
    __Pyx_INCREF(__pyx_v_el_class);
14223
15803
    __pyx_r = __pyx_v_el_class;
14224
15804
    goto __pyx_L0;
14225
15805
    goto __pyx_L11;
14226
15806
  }
14227
15807
  __pyx_L11:;
14228
15808
 
14229
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1442
 
15809
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1433
14230
15810
 * 
14231
15811
 *     # if element is a root node => default to tree node
14232
15812
 *     if c_node.parent is NULL or not tree._isElement(c_node.parent):             # <<<<<<<<<<<<<<
14233
15813
 *         return lookup.tree_class
14234
15814
 * 
14235
15815
 */
14236
 
  __pyx_1 = (__pyx_v_c_node->parent == NULL);
14237
 
  if (!__pyx_1) {
14238
 
    __pyx_1 = (!_isElement(__pyx_v_c_node->parent));
 
15816
  if (!(__pyx_v_c_node->parent == NULL)) {
 
15817
    __pyx_t_4 = (!_isElement(__pyx_v_c_node->parent));
 
15818
  } else {
 
15819
    __pyx_t_4 = (__pyx_v_c_node->parent == NULL);
14239
15820
  }
14240
 
  if (__pyx_1) {
 
15821
  if (__pyx_t_4) {
14241
15822
 
14242
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1443
 
15823
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1434
14243
15824
 *     # if element is a root node => default to tree node
14244
15825
 *     if c_node.parent is NULL or not tree._isElement(c_node.parent):
14245
15826
 *         return lookup.tree_class             # <<<<<<<<<<<<<<
14246
15827
 * 
14247
15828
 *     return lookup.empty_data_class
14248
15829
 */
14249
 
    Py_INCREF(__pyx_v_lookup->tree_class);
 
15830
    __Pyx_XDECREF(__pyx_r);
 
15831
    __Pyx_INCREF(__pyx_v_lookup->tree_class);
14250
15832
    __pyx_r = __pyx_v_lookup->tree_class;
14251
15833
    goto __pyx_L0;
14252
15834
    goto __pyx_L12;
14253
15835
  }
14254
15836
  __pyx_L12:;
14255
15837
 
14256
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1445
 
15838
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1436
14257
15839
 *         return lookup.tree_class
14258
15840
 * 
14259
15841
 *     return lookup.empty_data_class             # <<<<<<<<<<<<<<
14260
15842
 * 
14261
15843
 * 
14262
15844
 */
14263
 
  Py_INCREF(__pyx_v_lookup->empty_data_class);
 
15845
  __Pyx_XDECREF(__pyx_r);
 
15846
  __Pyx_INCREF(__pyx_v_lookup->empty_data_class);
14264
15847
  __pyx_r = __pyx_v_lookup->empty_data_class;
14265
15848
  goto __pyx_L0;
14266
15849
 
14267
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
15850
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14268
15851
  goto __pyx_L0;
14269
15852
  __pyx_L1_error:;
14270
 
  Py_XDECREF(__pyx_2);
14271
 
  Py_XDECREF(__pyx_3);
14272
 
  Py_XDECREF(__pyx_4);
 
15853
  __Pyx_XDECREF(__pyx_1);
 
15854
  __Pyx_XDECREF(__pyx_2);
 
15855
  __Pyx_XDECREF(__pyx_3);
 
15856
  __Pyx_XDECREF(__pyx_t_2);
 
15857
  __Pyx_XDECREF(__pyx_t_3);
 
15858
  __Pyx_XDECREF(__pyx_t_5);
14273
15859
  __Pyx_AddTraceback("lxml.objectify._lookupElementClass");
14274
15860
  __pyx_r = 0;
14275
15861
  __pyx_L0:;
14276
 
  Py_DECREF((PyObject *)__pyx_v_lookup);
14277
 
  Py_DECREF(__pyx_v_value);
14278
 
  Py_DECREF(__pyx_v_prefix);
14279
 
  Py_DECREF(__pyx_v_el_class);
 
15862
  __Pyx_DECREF((PyObject *)__pyx_v_lookup);
 
15863
  __Pyx_DECREF(__pyx_v_value);
 
15864
  __Pyx_DECREF(__pyx_v_prefix);
 
15865
  __Pyx_DECREF(__pyx_v_el_class);
 
15866
  __Pyx_XGIVEREF(__pyx_r);
 
15867
  __Pyx_FinishRefcountContext();
14280
15868
  return __pyx_r;
14281
15869
}
14282
15870
 
14283
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1451
 
15871
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1442
14284
15872
 * # Type annotations
14285
15873
 * 
14286
15874
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):             # <<<<<<<<<<<<<<
14290
15878
 
14291
15879
static  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_f_4lxml_9objectify__check_type(xmlNode *__pyx_v_c_node, struct __pyx_obj_4lxml_9objectify_PyType *__pyx_v_pytype) {
14292
15880
  PyObject *__pyx_v_value;
14293
 
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r;
 
15881
  struct __pyx_obj_4lxml_9objectify_PyType *__pyx_r = NULL;
14294
15882
  int __pyx_1;
14295
 
  PyObject *__pyx_2 = 0;
14296
 
  PyObject *__pyx_3 = 0;
14297
 
  int __pyx_4;
14298
 
  PyObject *__pyx_5 = 0;
14299
 
  __pyx_v_value = Py_None; Py_INCREF(Py_None);
 
15883
  int __pyx_t_1;
 
15884
  PyObject *__pyx_t_2 = NULL;
 
15885
  PyObject *__pyx_t_3 = NULL;
 
15886
  __Pyx_SetupRefcountContext("_check_type");
 
15887
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
14300
15888
 
14301
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1452
 
15889
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1443
14302
15890
 * 
14303
15891
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):
14304
15892
 *     if pytype is None:             # <<<<<<<<<<<<<<
14305
15893
 *         return None
14306
15894
 *     value = textOf(c_node)
14307
15895
 */
14308
 
  __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
14309
 
  if (__pyx_1) {
 
15896
  __pyx_t_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
15897
  if (__pyx_t_1) {
14310
15898
 
14311
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1453
 
15899
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1444
14312
15900
 * cdef PyType _check_type(tree.xmlNode* c_node, PyType pytype):
14313
15901
 *     if pytype is None:
14314
15902
 *         return None             # <<<<<<<<<<<<<<
14315
15903
 *     value = textOf(c_node)
14316
15904
 *     try:
14317
15905
 */
14318
 
    Py_INCREF(Py_None);
 
15906
    __Pyx_XDECREF(((PyObject *)__pyx_r));
 
15907
    __Pyx_INCREF(Py_None);
14319
15908
    __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
14320
15909
    goto __pyx_L0;
14321
15910
    goto __pyx_L3;
14322
15911
  }
14323
15912
  __pyx_L3:;
14324
15913
 
14325
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1454
 
15914
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1445
14326
15915
 *     if pytype is None:
14327
15916
 *         return None
14328
15917
 *     value = textOf(c_node)             # <<<<<<<<<<<<<<
14329
15918
 *     try:
14330
15919
 *         pytype.type_check(value)
14331
15920
 */
14332
 
  __pyx_2 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14333
 
  Py_DECREF(__pyx_v_value);
14334
 
  __pyx_v_value = __pyx_2;
14335
 
  __pyx_2 = 0;
 
15921
  __pyx_t_2 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
15922
  __Pyx_GOTREF(__pyx_t_2);
 
15923
  __Pyx_DECREF(__pyx_v_value);
 
15924
  __pyx_v_value = __pyx_t_2;
 
15925
  __pyx_t_2 = 0;
14336
15926
 
14337
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1455
 
15927
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1446
14338
15928
 *         return None
14339
15929
 *     value = textOf(c_node)
14340
15930
 *     try:             # <<<<<<<<<<<<<<
14344
15934
  {
14345
15935
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
14346
15936
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
 
15937
    __Pyx_XGOTREF(__pyx_save_exc_type);
 
15938
    __Pyx_XGOTREF(__pyx_save_exc_value);
 
15939
    __Pyx_XGOTREF(__pyx_save_exc_tb);
14347
15940
    /*try:*/ {
14348
15941
 
14349
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1456
 
15942
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1447
14350
15943
 *     value = textOf(c_node)
14351
15944
 *     try:
14352
15945
 *         pytype.type_check(value)             # <<<<<<<<<<<<<<
14353
15946
 *         return pytype
14354
15947
 *     except IGNORABLE_ERRORS:
14355
15948
 */
14356
 
      __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1456; __pyx_clineno = __LINE__; goto __pyx_L4_error;}
14357
 
      Py_INCREF(__pyx_v_value);
14358
 
      PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_value);
14359
 
      __pyx_3 = PyObject_Call(__pyx_v_pytype->type_check, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1456; __pyx_clineno = __LINE__; goto __pyx_L4_error;}
14360
 
      Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
14361
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
15949
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1447; __pyx_clineno = __LINE__; goto __pyx_L4_error;}
 
15950
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
15951
      __Pyx_INCREF(__pyx_v_value);
 
15952
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_value);
 
15953
      __Pyx_GIVEREF(__pyx_v_value);
 
15954
      __pyx_t_3 = PyObject_Call(__pyx_v_pytype->type_check, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1447; __pyx_clineno = __LINE__; goto __pyx_L4_error;}
 
15955
      __Pyx_GOTREF(__pyx_t_3);
 
15956
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
15957
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14362
15958
 
14363
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1457
 
15959
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1448
14364
15960
 *     try:
14365
15961
 *         pytype.type_check(value)
14366
15962
 *         return pytype             # <<<<<<<<<<<<<<
14367
15963
 *     except IGNORABLE_ERRORS:
14368
15964
 *         # could not be parsed as the specified type => ignore
14369
15965
 */
14370
 
      Py_INCREF(((PyObject *)__pyx_v_pytype));
 
15966
      __Pyx_XDECREF(((PyObject *)__pyx_r));
 
15967
      __Pyx_INCREF(((PyObject *)__pyx_v_pytype));
14371
15968
      __pyx_r = __pyx_v_pytype;
14372
15969
      goto __pyx_L8_try_return;
14373
15970
    }
14374
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
14375
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
14376
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
14377
 
    goto __pyx_L9_try;
 
15971
    __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
15972
    __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
15973
    __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
15974
    goto __pyx_L11_try_end;
14378
15975
    __pyx_L8_try_return:;
14379
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
14380
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
14381
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
15976
    __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
15977
    __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
15978
    __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
14382
15979
    goto __pyx_L0;
14383
15980
    __pyx_L4_error:;
14384
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
14385
 
    Py_XDECREF(__pyx_3); __pyx_3 = 0;
 
15981
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
 
15982
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14386
15983
 
14387
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1458
 
15984
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1449
14388
15985
 *         pytype.type_check(value)
14389
15986
 *         return pytype
14390
15987
 *     except IGNORABLE_ERRORS:             # <<<<<<<<<<<<<<
14391
15988
 *         # could not be parsed as the specified type => ignore
14392
15989
 *         pass
14393
15990
 */
14394
 
    __pyx_4 = PyErr_ExceptionMatches(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
14395
 
    if (__pyx_4) {
14396
 
      __Pyx_AddTraceback("lxml.objectify._check_type");
14397
 
      if (__Pyx_GetException(&__pyx_2, &__pyx_3, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1458; __pyx_clineno = __LINE__; goto __pyx_L6_except_error;}
14398
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
14399
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
14400
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
15991
    __pyx_1 = PyErr_ExceptionMatches(((PyObject *)__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS));
 
15992
    if (__pyx_1) {
 
15993
      PyErr_Restore(0,0,0);
14401
15994
      goto __pyx_L5_exception_handled;
14402
15995
    }
14403
 
    __pyx_L6_except_error:;
14404
 
    Py_XDECREF(__pyx_save_exc_type);
14405
 
    Py_XDECREF(__pyx_save_exc_value);
14406
 
    Py_XDECREF(__pyx_save_exc_tb);
 
15996
    __Pyx_XDECREF(__pyx_save_exc_type);
 
15997
    __Pyx_XDECREF(__pyx_save_exc_value);
 
15998
    __Pyx_XDECREF(__pyx_save_exc_tb);
14407
15999
    goto __pyx_L1_error;
14408
16000
    __pyx_L5_exception_handled:;
 
16001
    __Pyx_XGIVEREF(__pyx_save_exc_type);
 
16002
    __Pyx_XGIVEREF(__pyx_save_exc_value);
 
16003
    __Pyx_XGIVEREF(__pyx_save_exc_tb);
14409
16004
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
14410
 
    __pyx_L9_try:;
 
16005
    __pyx_L11_try_end:;
14411
16006
  }
14412
16007
 
14413
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1461
 
16008
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1452
14414
16009
 *         # could not be parsed as the specified type => ignore
14415
16010
 *         pass
14416
16011
 *     return None             # <<<<<<<<<<<<<<
14417
16012
 * 
14418
16013
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,
14419
16014
 */
14420
 
  Py_INCREF(Py_None);
 
16015
  __Pyx_XDECREF(((PyObject *)__pyx_r));
 
16016
  __Pyx_INCREF(Py_None);
14421
16017
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
14422
16018
  goto __pyx_L0;
14423
16019
 
14424
 
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
 
16020
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
14425
16021
  goto __pyx_L0;
14426
16022
  __pyx_L1_error:;
14427
 
  Py_XDECREF(__pyx_2);
14428
 
  Py_XDECREF(__pyx_3);
14429
 
  Py_XDECREF(__pyx_5);
 
16023
  __Pyx_XDECREF(__pyx_t_2);
 
16024
  __Pyx_XDECREF(__pyx_t_3);
14430
16025
  __Pyx_AddTraceback("lxml.objectify._check_type");
14431
16026
  __pyx_r = 0;
14432
16027
  __pyx_L0:;
14433
 
  Py_DECREF(__pyx_v_value);
 
16028
  __Pyx_DECREF(__pyx_v_value);
 
16029
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
 
16030
  __Pyx_FinishRefcountContext();
14434
16031
  return __pyx_r;
14435
16032
}
14436
16033
 
14437
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1463
 
16034
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1454
14438
16035
 *     return None
14439
16036
 * 
14440
16037
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
14450
16047
  PyObject *__pyx_v_ignore_xsi = 0;
14451
16048
  PyObject *__pyx_v_empty_pytype = 0;
14452
16049
  struct LxmlElement *__pyx_v_element;
14453
 
  PyObject *__pyx_r;
14454
 
  PyObject *__pyx_1 = 0;
14455
 
  int __pyx_2;
14456
 
  int __pyx_3;
 
16050
  PyObject *__pyx_r = NULL;
 
16051
  PyObject *__pyx_t_1 = NULL;
 
16052
  int __pyx_t_2;
 
16053
  int __pyx_t_3;
14457
16054
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_element_or_tree,&__pyx_kp_ignore_old,&__pyx_kp_ignore_xsi,&__pyx_kp_empty_pytype,0};
 
16055
  __Pyx_SetupRefcountContext("pyannotate");
14458
16056
  __pyx_self = __pyx_self;
14459
 
  __pyx_v_ignore_old = __pyx_k_651;
14460
 
  __pyx_v_ignore_xsi = __pyx_k_652;
14461
 
  __pyx_v_empty_pytype = Py_None;
14462
16057
  if (unlikely(__pyx_kwds)) {
 
16058
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
14463
16059
    PyObject* values[4] = {0,0,0,0};
14464
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
16060
    values[1] = __pyx_k_717;
 
16061
    values[2] = __pyx_k_718;
 
16062
    values[3] = Py_None;
14465
16063
    switch (PyTuple_GET_SIZE(__pyx_args)) {
14466
16064
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14467
16065
      case  0: break;
14473
16071
      if (likely(values[0])) kw_args--;
14474
16072
      else goto __pyx_L5_argtuple_error;
14475
16073
    }
 
16074
    while (kw_args > 0) {
 
16075
      PyObject* value;
 
16076
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_old);
 
16077
      if (value) { values[1] = value; if (!(--kw_args)) break; }
 
16078
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_xsi);
 
16079
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
16080
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_empty_pytype);
 
16081
      if (value) { values[3] = value; if (!(--kw_args)) break; }
 
16082
      break;
 
16083
    }
14476
16084
    if (unlikely(kw_args > 0)) {
14477
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "pyannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1463; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16085
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "pyannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14478
16086
    }
14479
16087
    __pyx_v_element_or_tree = values[0];
14480
 
    if (values[1]) {
14481
 
      __pyx_v_ignore_old = values[1];
14482
 
    }
14483
 
    if (values[2]) {
14484
 
      __pyx_v_ignore_xsi = values[2];
14485
 
    }
14486
 
    if (values[3]) {
14487
 
      __pyx_v_empty_pytype = values[3];
14488
 
    }
 
16088
    __pyx_v_ignore_old = values[1];
 
16089
    __pyx_v_ignore_xsi = values[2];
 
16090
    __pyx_v_empty_pytype = values[3];
14489
16091
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
14490
16092
    goto __pyx_L5_argtuple_error;
14491
16093
  } else {
14492
16094
    __pyx_v_element_or_tree = PyTuple_GET_ITEM(__pyx_args, 0);
 
16095
    __pyx_v_ignore_old = __pyx_k_717;
 
16096
    __pyx_v_ignore_xsi = __pyx_k_718;
 
16097
    __pyx_v_empty_pytype = Py_None;
14493
16098
  }
14494
16099
  goto __pyx_L4_argument_unpacking_done;
14495
16100
  __pyx_L5_argtuple_error:;
14496
 
  __Pyx_RaiseArgtupleInvalid("pyannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1463; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16101
  __Pyx_RaiseArgtupleInvalid("pyannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14497
16102
  __pyx_L3_error:;
14498
16103
  __Pyx_AddTraceback("lxml.objectify.pyannotate");
14499
16104
  return NULL;
14500
16105
  __pyx_L4_argument_unpacking_done:;
14501
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
16106
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
14502
16107
 
14503
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1483
 
16108
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1474
14504
16109
 *     """
14505
16110
 *     cdef _Element  element
14506
16111
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
14507
16112
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
14508
16113
 * 
14509
16114
 */
14510
 
  __pyx_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14511
 
  Py_DECREF(((PyObject *)__pyx_v_element));
14512
 
  __pyx_v_element = ((struct LxmlElement *)__pyx_1);
14513
 
  __pyx_1 = 0;
 
16115
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16116
  __Pyx_GOTREF(__pyx_t_1);
 
16117
  __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
16118
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
 
16119
  __pyx_t_1 = 0;
14514
16120
 
14515
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1484
 
16121
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1475
14516
16122
 *     cdef _Element  element
14517
16123
 *     element = cetree.rootNodeOrRaise(element_or_tree)
14518
16124
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)             # <<<<<<<<<<<<<<
14519
16125
 * 
14520
16126
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,
14521
16127
 */
14522
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14523
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14524
 
  __pyx_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 0, 1, __pyx_2, __pyx_3, Py_None, __pyx_v_empty_pytype); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14525
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
16128
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_t_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16129
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16130
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 0, 1, __pyx_t_2, __pyx_t_3, Py_None, __pyx_v_empty_pytype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16131
  __Pyx_GOTREF(__pyx_t_1);
 
16132
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14526
16133
 
14527
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
16134
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14528
16135
  goto __pyx_L0;
14529
16136
  __pyx_L1_error:;
14530
 
  Py_XDECREF(__pyx_1);
 
16137
  __Pyx_XDECREF(__pyx_t_1);
14531
16138
  __Pyx_AddTraceback("lxml.objectify.pyannotate");
14532
16139
  __pyx_r = NULL;
14533
16140
  __pyx_L0:;
14534
 
  Py_DECREF(__pyx_v_element);
 
16141
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
16142
  __Pyx_XGIVEREF(__pyx_r);
 
16143
  __Pyx_FinishRefcountContext();
14535
16144
  return __pyx_r;
14536
16145
}
14537
16146
 
14538
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1486
 
16147
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1477
14539
16148
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
14540
16149
 * 
14541
16150
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
14551
16160
  PyObject *__pyx_v_ignore_pytype = 0;
14552
16161
  PyObject *__pyx_v_empty_type = 0;
14553
16162
  struct LxmlElement *__pyx_v_element;
14554
 
  PyObject *__pyx_r;
14555
 
  PyObject *__pyx_1 = 0;
14556
 
  int __pyx_2;
14557
 
  int __pyx_3;
 
16163
  PyObject *__pyx_r = NULL;
 
16164
  PyObject *__pyx_t_1 = NULL;
 
16165
  int __pyx_t_2;
 
16166
  int __pyx_t_3;
14558
16167
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_element_or_tree,&__pyx_kp_ignore_old,&__pyx_kp_ignore_pytype,&__pyx_kp_empty_type,0};
 
16168
  __Pyx_SetupRefcountContext("xsiannotate");
14559
16169
  __pyx_self = __pyx_self;
14560
 
  __pyx_v_ignore_old = __pyx_k_653;
14561
 
  __pyx_v_ignore_pytype = __pyx_k_654;
14562
 
  __pyx_v_empty_type = Py_None;
14563
16170
  if (unlikely(__pyx_kwds)) {
 
16171
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
14564
16172
    PyObject* values[4] = {0,0,0,0};
14565
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
16173
    values[1] = __pyx_k_719;
 
16174
    values[2] = __pyx_k_720;
 
16175
    values[3] = Py_None;
14566
16176
    switch (PyTuple_GET_SIZE(__pyx_args)) {
14567
16177
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14568
16178
      case  0: break;
14574
16184
      if (likely(values[0])) kw_args--;
14575
16185
      else goto __pyx_L5_argtuple_error;
14576
16186
    }
 
16187
    while (kw_args > 0) {
 
16188
      PyObject* value;
 
16189
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_old);
 
16190
      if (value) { values[1] = value; if (!(--kw_args)) break; }
 
16191
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_pytype);
 
16192
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
16193
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_empty_type);
 
16194
      if (value) { values[3] = value; if (!(--kw_args)) break; }
 
16195
      break;
 
16196
    }
14577
16197
    if (unlikely(kw_args > 0)) {
14578
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "xsiannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1486; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16198
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "xsiannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14579
16199
    }
14580
16200
    __pyx_v_element_or_tree = values[0];
14581
 
    if (values[1]) {
14582
 
      __pyx_v_ignore_old = values[1];
14583
 
    }
14584
 
    if (values[2]) {
14585
 
      __pyx_v_ignore_pytype = values[2];
14586
 
    }
14587
 
    if (values[3]) {
14588
 
      __pyx_v_empty_type = values[3];
14589
 
    }
 
16201
    __pyx_v_ignore_old = values[1];
 
16202
    __pyx_v_ignore_pytype = values[2];
 
16203
    __pyx_v_empty_type = values[3];
14590
16204
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
14591
16205
    goto __pyx_L5_argtuple_error;
14592
16206
  } else {
14593
16207
    __pyx_v_element_or_tree = PyTuple_GET_ITEM(__pyx_args, 0);
 
16208
    __pyx_v_ignore_old = __pyx_k_719;
 
16209
    __pyx_v_ignore_pytype = __pyx_k_720;
 
16210
    __pyx_v_empty_type = Py_None;
14594
16211
  }
14595
16212
  goto __pyx_L4_argument_unpacking_done;
14596
16213
  __pyx_L5_argtuple_error:;
14597
 
  __Pyx_RaiseArgtupleInvalid("xsiannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1486; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16214
  __Pyx_RaiseArgtupleInvalid("xsiannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14598
16215
  __pyx_L3_error:;
14599
16216
  __Pyx_AddTraceback("lxml.objectify.xsiannotate");
14600
16217
  return NULL;
14601
16218
  __pyx_L4_argument_unpacking_done:;
14602
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
16219
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
14603
16220
 
14604
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1511
 
16221
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1502
14605
16222
 *     """
14606
16223
 *     cdef _Element  element
14607
16224
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
14608
16225
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
14609
16226
 * 
14610
16227
 */
14611
 
  __pyx_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14612
 
  Py_DECREF(((PyObject *)__pyx_v_element));
14613
 
  __pyx_v_element = ((struct LxmlElement *)__pyx_1);
14614
 
  __pyx_1 = 0;
 
16228
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16229
  __Pyx_GOTREF(__pyx_t_1);
 
16230
  __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
16231
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
 
16232
  __pyx_t_1 = 0;
14615
16233
 
14616
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1512
 
16234
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1503
14617
16235
 *     cdef _Element  element
14618
16236
 *     element = cetree.rootNodeOrRaise(element_or_tree)
14619
16237
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)             # <<<<<<<<<<<<<<
14620
16238
 * 
14621
16239
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,
14622
16240
 */
14623
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14624
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_pytype); if (unlikely((__pyx_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14625
 
  __pyx_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 1, 0, __pyx_2, __pyx_3, __pyx_v_empty_type, Py_None); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14626
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
16241
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16242
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_pytype); if (unlikely((__pyx_t_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16243
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, 1, 0, __pyx_t_2, __pyx_t_3, __pyx_v_empty_type, Py_None); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16244
  __Pyx_GOTREF(__pyx_t_1);
 
16245
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14627
16246
 
14628
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
16247
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14629
16248
  goto __pyx_L0;
14630
16249
  __pyx_L1_error:;
14631
 
  Py_XDECREF(__pyx_1);
 
16250
  __Pyx_XDECREF(__pyx_t_1);
14632
16251
  __Pyx_AddTraceback("lxml.objectify.xsiannotate");
14633
16252
  __pyx_r = NULL;
14634
16253
  __pyx_L0:;
14635
 
  Py_DECREF(__pyx_v_element);
 
16254
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
16255
  __Pyx_XGIVEREF(__pyx_r);
 
16256
  __Pyx_FinishRefcountContext();
14636
16257
  return __pyx_r;
14637
16258
}
14638
16259
 
14639
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1514
 
16260
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1505
14640
16261
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
14641
16262
 * 
14642
16263
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
14655
16276
  PyObject *__pyx_v_annotate_xsi = 0;
14656
16277
  PyObject *__pyx_v_annotate_pytype = 0;
14657
16278
  struct LxmlElement *__pyx_v_element;
14658
 
  PyObject *__pyx_r;
14659
 
  PyObject *__pyx_1 = 0;
14660
 
  int __pyx_2;
14661
 
  int __pyx_3;
14662
 
  int __pyx_4;
14663
 
  int __pyx_5;
 
16279
  PyObject *__pyx_r = NULL;
 
16280
  PyObject *__pyx_t_1 = NULL;
 
16281
  int __pyx_t_2;
 
16282
  int __pyx_t_3;
 
16283
  int __pyx_t_4;
 
16284
  int __pyx_t_5;
14664
16285
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_element_or_tree,&__pyx_kp_ignore_old,&__pyx_kp_ignore_xsi,&__pyx_kp_empty_pytype,&__pyx_kp_empty_type,&__pyx_kp_annotate_xsi,&__pyx_kp_annotate_pytype,0};
 
16286
  __Pyx_SetupRefcountContext("annotate");
14665
16287
  __pyx_self = __pyx_self;
14666
 
  __pyx_v_ignore_old = __pyx_k_655;
14667
 
  __pyx_v_ignore_xsi = __pyx_k_656;
14668
 
  __pyx_v_empty_pytype = Py_None;
14669
 
  __pyx_v_empty_type = Py_None;
14670
 
  __pyx_v_annotate_xsi = __pyx_int_0;
14671
 
  __pyx_v_annotate_pytype = __pyx_int_1;
14672
16288
  if (unlikely(__pyx_kwds)) {
 
16289
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
14673
16290
    PyObject* values[7] = {0,0,0,0,0,0,0};
14674
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
16291
    values[1] = __pyx_k_721;
 
16292
    values[2] = __pyx_k_722;
 
16293
    values[3] = Py_None;
 
16294
    values[4] = Py_None;
 
16295
    values[5] = __pyx_int_0;
 
16296
    values[6] = __pyx_int_1;
14675
16297
    switch (PyTuple_GET_SIZE(__pyx_args)) {
14676
16298
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14677
16299
      case  0: break;
14683
16305
      if (likely(values[0])) kw_args--;
14684
16306
      else goto __pyx_L5_argtuple_error;
14685
16307
    }
 
16308
    while (kw_args > 0) {
 
16309
      PyObject* value;
 
16310
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_old);
 
16311
      if (value) { values[1] = value; if (!(--kw_args)) break; }
 
16312
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_ignore_xsi);
 
16313
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
16314
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_empty_pytype);
 
16315
      if (value) { values[3] = value; if (!(--kw_args)) break; }
 
16316
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_empty_type);
 
16317
      if (value) { values[4] = value; if (!(--kw_args)) break; }
 
16318
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_annotate_xsi);
 
16319
      if (value) { values[5] = value; if (!(--kw_args)) break; }
 
16320
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_annotate_pytype);
 
16321
      if (value) { values[6] = value; if (!(--kw_args)) break; }
 
16322
      break;
 
16323
    }
14686
16324
    if (unlikely(kw_args > 0)) {
14687
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "annotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1514; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16325
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "annotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14688
16326
    }
14689
16327
    __pyx_v_element_or_tree = values[0];
14690
 
    if (values[1]) {
14691
 
      __pyx_v_ignore_old = values[1];
14692
 
    }
14693
 
    if (values[2]) {
14694
 
      __pyx_v_ignore_xsi = values[2];
14695
 
    }
14696
 
    if (values[3]) {
14697
 
      __pyx_v_empty_pytype = values[3];
14698
 
    }
14699
 
    if (values[4]) {
14700
 
      __pyx_v_empty_type = values[4];
14701
 
    }
14702
 
    if (values[5]) {
14703
 
      __pyx_v_annotate_xsi = values[5];
14704
 
    }
14705
 
    if (values[6]) {
14706
 
      __pyx_v_annotate_pytype = values[6];
14707
 
    }
 
16328
    __pyx_v_ignore_old = values[1];
 
16329
    __pyx_v_ignore_xsi = values[2];
 
16330
    __pyx_v_empty_pytype = values[3];
 
16331
    __pyx_v_empty_type = values[4];
 
16332
    __pyx_v_annotate_xsi = values[5];
 
16333
    __pyx_v_annotate_pytype = values[6];
14708
16334
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
14709
16335
    goto __pyx_L5_argtuple_error;
14710
16336
  } else {
14711
16337
    __pyx_v_element_or_tree = PyTuple_GET_ITEM(__pyx_args, 0);
 
16338
    __pyx_v_ignore_old = __pyx_k_721;
 
16339
    __pyx_v_ignore_xsi = __pyx_k_722;
 
16340
    __pyx_v_empty_pytype = Py_None;
 
16341
    __pyx_v_empty_type = Py_None;
 
16342
    __pyx_v_annotate_xsi = __pyx_int_0;
 
16343
    __pyx_v_annotate_pytype = __pyx_int_1;
14712
16344
  }
14713
16345
  goto __pyx_L4_argument_unpacking_done;
14714
16346
  __pyx_L5_argtuple_error:;
14715
 
  __Pyx_RaiseArgtupleInvalid("annotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1514; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
16347
  __Pyx_RaiseArgtupleInvalid("annotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14716
16348
  __pyx_L3_error:;
14717
16349
  __Pyx_AddTraceback("lxml.objectify.annotate");
14718
16350
  return NULL;
14719
16351
  __pyx_L4_argument_unpacking_done:;
14720
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
16352
  __pyx_v_element = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
14721
16353
 
14722
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1548
 
16354
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1539
14723
16355
 *     """
14724
16356
 *     cdef _Element  element
14725
16357
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
14726
16358
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,
14727
16359
 *               ignore_old, empty_type, empty_pytype)
14728
16360
 */
14729
 
  __pyx_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1548; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14730
 
  Py_DECREF(((PyObject *)__pyx_v_element));
14731
 
  __pyx_v_element = ((struct LxmlElement *)__pyx_1);
14732
 
  __pyx_1 = 0;
 
16361
  __pyx_t_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16362
  __Pyx_GOTREF(__pyx_t_1);
 
16363
  __Pyx_DECREF(((PyObject *)__pyx_v_element));
 
16364
  __pyx_v_element = ((struct LxmlElement *)__pyx_t_1);
 
16365
  __pyx_t_1 = 0;
14733
16366
 
14734
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1549
 
16367
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1540
14735
16368
 *     cdef _Element  element
14736
16369
 *     element = cetree.rootNodeOrRaise(element_or_tree)
14737
16370
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,             # <<<<<<<<<<<<<<
14738
16371
 *               ignore_old, empty_type, empty_pytype)
14739
16372
 * 
14740
16373
 */
14741
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_xsi); if (unlikely((__pyx_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14742
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_pytype); if (unlikely((__pyx_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14743
 
  __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_4 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16374
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_xsi); if (unlikely((__pyx_t_2 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16375
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_annotate_pytype); if (unlikely((__pyx_t_3 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16376
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_xsi); if (unlikely((__pyx_t_4 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14744
16377
 
14745
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1550
 
16378
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1541
14746
16379
 *     element = cetree.rootNodeOrRaise(element_or_tree)
14747
16380
 *     _annotate(element, annotate_xsi, annotate_pytype, ignore_xsi,
14748
16381
 *               ignore_old, empty_type, empty_pytype)             # <<<<<<<<<<<<<<
14749
16382
 * 
14750
16383
 * 
14751
16384
 */
14752
 
  __pyx_5 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_5 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14753
 
  __pyx_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, __pyx_2, __pyx_3, __pyx_4, __pyx_5, __pyx_v_empty_type, __pyx_v_empty_pytype); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14754
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
16385
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_ignore_old); if (unlikely((__pyx_t_5 == (int)-1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16386
  __pyx_t_1 = __pyx_f_4lxml_9objectify__annotate(__pyx_v_element, __pyx_t_2, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_v_empty_type, __pyx_v_empty_pytype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16387
  __Pyx_GOTREF(__pyx_t_1);
 
16388
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14755
16389
 
14756
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
16390
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14757
16391
  goto __pyx_L0;
14758
16392
  __pyx_L1_error:;
14759
 
  Py_XDECREF(__pyx_1);
 
16393
  __Pyx_XDECREF(__pyx_t_1);
14760
16394
  __Pyx_AddTraceback("lxml.objectify.annotate");
14761
16395
  __pyx_r = NULL;
14762
16396
  __pyx_L0:;
14763
 
  Py_DECREF(__pyx_v_element);
 
16397
  __Pyx_DECREF((PyObject *)__pyx_v_element);
 
16398
  __Pyx_XGIVEREF(__pyx_r);
 
16399
  __Pyx_FinishRefcountContext();
14764
16400
  return __pyx_r;
14765
16401
}
14766
16402
 
14767
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1553
 
16403
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1544
14768
16404
 * 
14769
16405
 * 
14770
16406
 * cdef _annotate(_Element element, bint annotate_xsi, bint annotate_pytype,             # <<<<<<<<<<<<<<
14789
16425
  PyObject *__pyx_v_typename_utf8;
14790
16426
  PyObject *__pyx_v_name;
14791
16427
  PyObject *__pyx_v_pytype_name;
14792
 
  PyObject *__pyx_r;
14793
 
  int __pyx_1;
14794
 
  int __pyx_2;
 
16428
  PyObject *__pyx_r = NULL;
 
16429
  PyObject *__pyx_1 = 0;
 
16430
  PyObject *__pyx_2 = 0;
14795
16431
  PyObject *__pyx_3 = 0;
14796
 
  PyObject *__pyx_4 = 0;
14797
 
  PyObject *__pyx_5 = 0;
14798
 
  int __pyx_6;
14799
 
  PyObject *__pyx_t_1 = NULL;
 
16432
  int __pyx_t_1;
14800
16433
  PyObject *__pyx_t_2 = NULL;
14801
 
  Py_INCREF(__pyx_v_empty_type_name);
14802
 
  Py_INCREF(__pyx_v_empty_pytype_name);
14803
 
  __pyx_v_doc = ((struct LxmlDocument *)Py_None); Py_INCREF(Py_None);
14804
 
  __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
14805
 
  __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
14806
 
  __pyx_v_StrType = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
14807
 
  __pyx_v_NoneType = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
14808
 
  __pyx_v_typename = Py_None; Py_INCREF(Py_None);
14809
 
  __pyx_v_value = Py_None; Py_INCREF(Py_None);
14810
 
  __pyx_v_istree = Py_None; Py_INCREF(Py_None);
14811
 
  __pyx_v_prefix = Py_None; Py_INCREF(Py_None);
14812
 
  __pyx_v_old_pytypename = Py_None; Py_INCREF(Py_None);
14813
 
  __pyx_v_typename_utf8 = Py_None; Py_INCREF(Py_None);
14814
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
14815
 
  __pyx_v_pytype_name = Py_None; Py_INCREF(Py_None);
 
16434
  PyObject *__pyx_t_3 = NULL;
 
16435
  PyObject *__pyx_t_4 = NULL;
 
16436
  int __pyx_t_5;
 
16437
  int __pyx_t_6;
 
16438
  __Pyx_SetupRefcountContext("_annotate");
 
16439
  __Pyx_INCREF(__pyx_v_empty_type_name);
 
16440
  __Pyx_INCREF(__pyx_v_empty_pytype_name);
 
16441
  __pyx_v_doc = ((struct LxmlDocument *)Py_None); __Pyx_INCREF(Py_None);
 
16442
  __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
 
16443
  __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
 
16444
  __pyx_v_StrType = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
 
16445
  __pyx_v_NoneType = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); __Pyx_INCREF(Py_None);
 
16446
  __pyx_v_typename = Py_None; __Pyx_INCREF(Py_None);
 
16447
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
 
16448
  __pyx_v_istree = Py_None; __Pyx_INCREF(Py_None);
 
16449
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
 
16450
  __pyx_v_old_pytypename = Py_None; __Pyx_INCREF(Py_None);
 
16451
  __pyx_v_typename_utf8 = Py_None; __Pyx_INCREF(Py_None);
 
16452
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
16453
  __pyx_v_pytype_name = Py_None; __Pyx_INCREF(Py_None);
14816
16454
 
14817
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1562
 
16455
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1553
14818
16456
 *     cdef PyType pytype, empty_pytype, StrType, NoneType
14819
16457
 * 
14820
16458
 *     if not annotate_xsi and not annotate_pytype:             # <<<<<<<<<<<<<<
14821
16459
 *         return
14822
16460
 * 
14823
16461
 */
14824
 
  __pyx_1 = (!__pyx_v_annotate_xsi);
14825
 
  if (__pyx_1) {
14826
 
    __pyx_1 = (!__pyx_v_annotate_pytype);
 
16462
  if ((!__pyx_v_annotate_xsi)) {
 
16463
    __pyx_t_1 = (!__pyx_v_annotate_pytype);
 
16464
  } else {
 
16465
    __pyx_t_1 = (!__pyx_v_annotate_xsi);
14827
16466
  }
14828
 
  if (__pyx_1) {
 
16467
  if (__pyx_t_1) {
14829
16468
 
14830
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1563
 
16469
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1554
14831
16470
 * 
14832
16471
 *     if not annotate_xsi and not annotate_pytype:
14833
16472
 *         return             # <<<<<<<<<<<<<<
14834
16473
 * 
14835
16474
 *     doc = element._doc
14836
16475
 */
14837
 
    __pyx_r = Py_None; Py_INCREF(Py_None);
 
16476
    __Pyx_XDECREF(__pyx_r);
 
16477
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
14838
16478
    goto __pyx_L0;
14839
16479
    goto __pyx_L3;
14840
16480
  }
14841
16481
  __pyx_L3:;
14842
16482
 
14843
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1565
 
16483
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1556
14844
16484
 *         return
14845
16485
 * 
14846
16486
 *     doc = element._doc             # <<<<<<<<<<<<<<
14847
16487
 * 
14848
16488
 *     if empty_type_name is not None:
14849
16489
 */
14850
 
  Py_INCREF(((PyObject *)__pyx_v_element->_doc));
14851
 
  Py_DECREF(((PyObject *)__pyx_v_doc));
 
16490
  __Pyx_INCREF(((PyObject *)__pyx_v_element->_doc));
 
16491
  __Pyx_DECREF(((PyObject *)__pyx_v_doc));
14852
16492
  __pyx_v_doc = __pyx_v_element->_doc;
14853
16493
 
14854
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1567
 
16494
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1558
14855
16495
 *     doc = element._doc
14856
16496
 * 
14857
16497
 *     if empty_type_name is not None:             # <<<<<<<<<<<<<<
14858
16498
 *         if python.PyString_Check(empty_type_name):
14859
16499
 *             empty_type_name = python.PyUnicode_FromEncodedObject(
14860
16500
 */
14861
 
  __pyx_1 = (__pyx_v_empty_type_name != Py_None);
14862
 
  if (__pyx_1) {
 
16501
  __pyx_t_1 = (__pyx_v_empty_type_name != Py_None);
 
16502
  if (__pyx_t_1) {
14863
16503
 
14864
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1568
 
16504
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1559
14865
16505
 * 
14866
16506
 *     if empty_type_name is not None:
14867
16507
 *         if python.PyString_Check(empty_type_name):             # <<<<<<<<<<<<<<
14868
16508
 *             empty_type_name = python.PyUnicode_FromEncodedObject(
14869
16509
 *                 empty_type_name, "ASCII", NULL)
14870
16510
 */
14871
 
    __pyx_2 = PyString_Check(__pyx_v_empty_type_name);
14872
 
    if (__pyx_2) {
 
16511
    __pyx_t_1 = PyString_Check(__pyx_v_empty_type_name);
 
16512
    if (__pyx_t_1) {
14873
16513
 
14874
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1570
 
16514
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1561
14875
16515
 *         if python.PyString_Check(empty_type_name):
14876
16516
 *             empty_type_name = python.PyUnicode_FromEncodedObject(
14877
16517
 *                 empty_type_name, "ASCII", NULL)             # <<<<<<<<<<<<<<
14878
16518
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, empty_type_name)
14879
16519
 *     elif empty_pytype_name is not None:
14880
16520
 */
14881
 
      __pyx_3 = PyUnicode_FromEncodedObject(__pyx_v_empty_type_name, __pyx_k_768, NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14882
 
      Py_DECREF(__pyx_v_empty_type_name);
14883
 
      __pyx_v_empty_type_name = __pyx_3;
14884
 
      __pyx_3 = 0;
 
16521
      __pyx_t_2 = PyUnicode_FromEncodedObject(__pyx_v_empty_type_name, __pyx_k_833, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16522
      __Pyx_GOTREF(__pyx_t_2);
 
16523
      __Pyx_DECREF(__pyx_v_empty_type_name);
 
16524
      __pyx_v_empty_type_name = __pyx_t_2;
 
16525
      __pyx_t_2 = 0;
14885
16526
      goto __pyx_L5;
14886
16527
    }
14887
16528
    __pyx_L5:;
14888
16529
 
14889
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1571
 
16530
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1562
14890
16531
 *             empty_type_name = python.PyUnicode_FromEncodedObject(
14891
16532
 *                 empty_type_name, "ASCII", NULL)
14892
16533
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, empty_type_name)             # <<<<<<<<<<<<<<
14893
16534
 *     elif empty_pytype_name is not None:
14894
16535
 *         if python.PyString_Check(empty_pytype_name):
14895
16536
 */
14896
 
    __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_empty_type_name);
 
16537
    __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_empty_type_name);
14897
16538
    goto __pyx_L4;
14898
16539
  }
14899
16540
 
14900
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1572
 
16541
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1563
14901
16542
 *                 empty_type_name, "ASCII", NULL)
14902
16543
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, empty_type_name)
14903
16544
 *     elif empty_pytype_name is not None:             # <<<<<<<<<<<<<<
14904
16545
 *         if python.PyString_Check(empty_pytype_name):
14905
16546
 *             empty_pytype_name = python.PyUnicode_FromEncodedObject(
14906
16547
 */
14907
 
  __pyx_1 = (__pyx_v_empty_pytype_name != Py_None);
14908
 
  if (__pyx_1) {
 
16548
  __pyx_t_1 = (__pyx_v_empty_pytype_name != Py_None);
 
16549
  if (__pyx_t_1) {
14909
16550
 
14910
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1573
 
16551
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1564
14911
16552
 *         dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, empty_type_name)
14912
16553
 *     elif empty_pytype_name is not None:
14913
16554
 *         if python.PyString_Check(empty_pytype_name):             # <<<<<<<<<<<<<<
14914
16555
 *             empty_pytype_name = python.PyUnicode_FromEncodedObject(
14915
16556
 *                 empty_pytype_name, "ASCII", NULL)
14916
16557
 */
14917
 
    __pyx_2 = PyString_Check(__pyx_v_empty_pytype_name);
14918
 
    if (__pyx_2) {
 
16558
    __pyx_t_1 = PyString_Check(__pyx_v_empty_pytype_name);
 
16559
    if (__pyx_t_1) {
14919
16560
 
14920
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1575
 
16561
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1566
14921
16562
 *         if python.PyString_Check(empty_pytype_name):
14922
16563
 *             empty_pytype_name = python.PyUnicode_FromEncodedObject(
14923
16564
 *                 empty_pytype_name, "ASCII", NULL)             # <<<<<<<<<<<<<<
14924
16565
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, empty_pytype_name)
14925
16566
 *     else:
14926
16567
 */
14927
 
      __pyx_3 = PyUnicode_FromEncodedObject(__pyx_v_empty_pytype_name, __pyx_k_769, NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14928
 
      Py_DECREF(__pyx_v_empty_pytype_name);
14929
 
      __pyx_v_empty_pytype_name = __pyx_3;
14930
 
      __pyx_3 = 0;
 
16568
      __pyx_t_2 = PyUnicode_FromEncodedObject(__pyx_v_empty_pytype_name, __pyx_k_834, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16569
      __Pyx_GOTREF(__pyx_t_2);
 
16570
      __Pyx_DECREF(__pyx_v_empty_pytype_name);
 
16571
      __pyx_v_empty_pytype_name = __pyx_t_2;
 
16572
      __pyx_t_2 = 0;
14931
16573
      goto __pyx_L6;
14932
16574
    }
14933
16575
    __pyx_L6:;
14934
16576
 
14935
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1576
 
16577
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1567
14936
16578
 *             empty_pytype_name = python.PyUnicode_FromEncodedObject(
14937
16579
 *                 empty_pytype_name, "ASCII", NULL)
14938
16580
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, empty_pytype_name)             # <<<<<<<<<<<<<<
14939
16581
 *     else:
14940
16582
 *         dict_result = NULL
14941
16583
 */
14942
 
    __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_empty_pytype_name);
 
16584
    __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_empty_pytype_name);
14943
16585
    goto __pyx_L4;
14944
16586
  }
14945
16587
  /*else*/ {
14946
16588
 
14947
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1578
 
16589
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1569
14948
16590
 *         dict_result = python.PyDict_GetItem(_PYTYPE_DICT, empty_pytype_name)
14949
16591
 *     else:
14950
16592
 *         dict_result = NULL             # <<<<<<<<<<<<<<
14955
16597
  }
14956
16598
  __pyx_L4:;
14957
16599
 
14958
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1579
 
16600
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1570
14959
16601
 *     else:
14960
16602
 *         dict_result = NULL
14961
16603
 *     if dict_result is not NULL:             # <<<<<<<<<<<<<<
14962
16604
 *         empty_pytype = <PyType>dict_result
14963
16605
 *     else:
14964
16606
 */
14965
 
  __pyx_1 = (__pyx_v_dict_result != NULL);
14966
 
  if (__pyx_1) {
 
16607
  __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
16608
  if (__pyx_t_1) {
14967
16609
 
14968
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1580
 
16610
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1571
14969
16611
 *         dict_result = NULL
14970
16612
 *     if dict_result is not NULL:
14971
16613
 *         empty_pytype = <PyType>dict_result             # <<<<<<<<<<<<<<
14972
16614
 *     else:
14973
16615
 *         empty_pytype = None
14974
16616
 */
14975
 
    Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
14976
 
    Py_DECREF(((PyObject *)__pyx_v_empty_pytype));
 
16617
    __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
 
16618
    __Pyx_DECREF(((PyObject *)__pyx_v_empty_pytype));
14977
16619
    __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result);
14978
16620
    goto __pyx_L7;
14979
16621
  }
14980
16622
  /*else*/ {
14981
16623
 
14982
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1582
 
16624
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1573
14983
16625
 *         empty_pytype = <PyType>dict_result
14984
16626
 *     else:
14985
16627
 *         empty_pytype = None             # <<<<<<<<<<<<<<
14986
16628
 * 
14987
16629
 *     StrType  = _PYTYPE_DICT.get(u'str')
14988
16630
 */
14989
 
    Py_INCREF(Py_None);
14990
 
    Py_DECREF(((PyObject *)__pyx_v_empty_pytype));
 
16631
    __Pyx_INCREF(Py_None);
 
16632
    __Pyx_DECREF(((PyObject *)__pyx_v_empty_pytype));
14991
16633
    __pyx_v_empty_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
14992
16634
  }
14993
16635
  __pyx_L7:;
14994
16636
 
14995
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1584
 
16637
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1575
14996
16638
 *         empty_pytype = None
14997
16639
 * 
14998
16640
 *     StrType  = _PYTYPE_DICT.get(u'str')             # <<<<<<<<<<<<<<
14999
16641
 *     NoneType = _PYTYPE_DICT.get(u'NoneType')
15000
16642
 *     c_node = element._c_node
15001
16643
 */
15002
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_kp_get); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15003
 
  __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15004
 
  Py_INCREF(((PyObject *)__pyx_kp_770));
15005
 
  PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)__pyx_kp_770));
15006
 
  __pyx_5 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15007
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
15008
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
15009
 
  if (!(__Pyx_TypeTest(__pyx_5, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15010
 
  Py_DECREF(((PyObject *)__pyx_v_StrType));
15011
 
  __pyx_v_StrType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_5);
15012
 
  __pyx_5 = 0;
 
16644
  __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_kp_get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16645
  __Pyx_GOTREF(__pyx_t_2);
 
16646
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16647
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
16648
  __Pyx_INCREF(((PyObject *)__pyx_kp_835));
 
16649
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_835));
 
16650
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_835));
 
16651
  __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16652
  __Pyx_GOTREF(__pyx_t_4);
 
16653
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
16654
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
16655
  if (!(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16656
  __Pyx_DECREF(((PyObject *)__pyx_v_StrType));
 
16657
  __pyx_v_StrType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
 
16658
  __pyx_t_4 = 0;
15013
16659
 
15014
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1585
 
16660
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1576
15015
16661
 * 
15016
16662
 *     StrType  = _PYTYPE_DICT.get(u'str')
15017
16663
 *     NoneType = _PYTYPE_DICT.get(u'NoneType')             # <<<<<<<<<<<<<<
15018
16664
 *     c_node = element._c_node
15019
16665
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
15020
16666
 */
15021
 
  __pyx_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_kp_get); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15022
 
  __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15023
 
  Py_INCREF(((PyObject *)__pyx_kp_771));
15024
 
  PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)__pyx_kp_771));
15025
 
  __pyx_5 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15026
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
15027
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
15028
 
  if (!(__Pyx_TypeTest(__pyx_5, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15029
 
  Py_DECREF(((PyObject *)__pyx_v_NoneType));
15030
 
  __pyx_v_NoneType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_5);
15031
 
  __pyx_5 = 0;
 
16667
  __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_kp_get); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16668
  __Pyx_GOTREF(__pyx_t_4);
 
16669
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16670
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
16671
  __Pyx_INCREF(((PyObject *)__pyx_kp_836));
 
16672
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_836));
 
16673
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_836));
 
16674
  __pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16675
  __Pyx_GOTREF(__pyx_t_2);
 
16676
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
16677
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
16678
  if (!(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16679
  __Pyx_DECREF(((PyObject *)__pyx_v_NoneType));
 
16680
  __pyx_v_NoneType = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2);
 
16681
  __pyx_t_2 = 0;
15032
16682
 
15033
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1586
 
16683
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1577
15034
16684
 *     StrType  = _PYTYPE_DICT.get(u'str')
15035
16685
 *     NoneType = _PYTYPE_DICT.get(u'NoneType')
15036
16686
 *     c_node = element._c_node             # <<<<<<<<<<<<<<
15039
16689
 */
15040
16690
  __pyx_v_c_node = __pyx_v_element->_c_node;
15041
16691
 
15042
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1587
 
16692
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1578
15043
16693
 *     NoneType = _PYTYPE_DICT.get(u'NoneType')
15044
16694
 *     c_node = element._c_node
15045
16695
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)             # <<<<<<<<<<<<<<
15048
16698
 */
15049
16699
  BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node, __pyx_v_c_node, 1);
15050
16700
 
15051
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1588
 
16701
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1579
15052
16702
 *     c_node = element._c_node
15053
16703
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
15054
16704
 *     if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
15055
16705
 *         typename = None
15056
16706
 *         pytype = None
15057
16707
 */
15058
 
  __pyx_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
15059
 
  if (__pyx_1) {
 
16708
  __pyx_t_1 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
 
16709
  if (__pyx_t_1) {
15060
16710
 
15061
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1589
 
16711
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1580
15062
16712
 *     tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
15063
16713
 *     if c_node.type == tree.XML_ELEMENT_NODE:
15064
16714
 *         typename = None             # <<<<<<<<<<<<<<
15065
16715
 *         pytype = None
15066
16716
 *         value  = None
15067
16717
 */
15068
 
    Py_INCREF(Py_None);
15069
 
    Py_DECREF(__pyx_v_typename);
 
16718
    __Pyx_INCREF(Py_None);
 
16719
    __Pyx_DECREF(__pyx_v_typename);
15070
16720
    __pyx_v_typename = Py_None;
15071
16721
 
15072
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1590
 
16722
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1581
15073
16723
 *     if c_node.type == tree.XML_ELEMENT_NODE:
15074
16724
 *         typename = None
15075
16725
 *         pytype = None             # <<<<<<<<<<<<<<
15076
16726
 *         value  = None
15077
16727
 *         istree = 0
15078
16728
 */
15079
 
    Py_INCREF(Py_None);
15080
 
    Py_DECREF(((PyObject *)__pyx_v_pytype));
 
16729
    __Pyx_INCREF(Py_None);
 
16730
    __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15081
16731
    __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None);
15082
16732
 
15083
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1591
 
16733
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1582
15084
16734
 *         typename = None
15085
16735
 *         pytype = None
15086
16736
 *         value  = None             # <<<<<<<<<<<<<<
15087
16737
 *         istree = 0
15088
16738
 *         # if element is defined as xsi:nil, represent it as None
15089
16739
 */
15090
 
    Py_INCREF(Py_None);
15091
 
    Py_DECREF(__pyx_v_value);
 
16740
    __Pyx_INCREF(Py_None);
 
16741
    __Pyx_DECREF(__pyx_v_value);
15092
16742
    __pyx_v_value = Py_None;
15093
16743
 
15094
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1592
 
16744
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1583
15095
16745
 *         pytype = None
15096
16746
 *         value  = None
15097
16747
 *         istree = 0             # <<<<<<<<<<<<<<
15098
16748
 *         # if element is defined as xsi:nil, represent it as None
15099
16749
 *         if cetree.attributeValueFromNsName(
15100
16750
 */
15101
 
    Py_INCREF(__pyx_int_0);
15102
 
    Py_DECREF(__pyx_v_istree);
 
16751
    __Pyx_INCREF(__pyx_int_0);
 
16752
    __Pyx_DECREF(__pyx_v_istree);
15103
16753
    __pyx_v_istree = __pyx_int_0;
15104
16754
 
15105
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1595
 
16755
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1586
15106
16756
 *         # if element is defined as xsi:nil, represent it as None
15107
16757
 *         if cetree.attributeValueFromNsName(
15108
16758
 *             c_node, _XML_SCHEMA_INSTANCE_NS, "nil") == u"true":             # <<<<<<<<<<<<<<
15109
16759
 *             pytype = NoneType
15110
16760
 * 
15111
16761
 */
15112
 
    __pyx_3 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_772); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15113
 
    __pyx_4 = PyObject_RichCompare(__pyx_3, ((PyObject *)__pyx_kp_773), Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15114
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
15115
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15116
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
15117
 
    if (__pyx_1) {
 
16762
    __pyx_t_2 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_837); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16763
    __Pyx_GOTREF(__pyx_t_2);
 
16764
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, ((PyObject *)__pyx_kp_838), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16765
    __Pyx_GOTREF(__pyx_t_3);
 
16766
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
16767
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16768
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
16769
    if (__pyx_t_1) {
15118
16770
 
15119
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1596
 
16771
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1587
15120
16772
 *         if cetree.attributeValueFromNsName(
15121
16773
 *             c_node, _XML_SCHEMA_INSTANCE_NS, "nil") == u"true":
15122
16774
 *             pytype = NoneType             # <<<<<<<<<<<<<<
15123
16775
 * 
15124
16776
 *         if  pytype is None and not ignore_xsi:
15125
16777
 */
15126
 
      Py_INCREF(((PyObject *)__pyx_v_NoneType));
15127
 
      Py_DECREF(((PyObject *)__pyx_v_pytype));
 
16778
      __Pyx_INCREF(((PyObject *)__pyx_v_NoneType));
 
16779
      __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15128
16780
      __pyx_v_pytype = __pyx_v_NoneType;
15129
16781
      goto __pyx_L9;
15130
16782
    }
15131
16783
    __pyx_L9:;
15132
16784
 
15133
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1598
 
16785
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1589
15134
16786
 *             pytype = NoneType
15135
16787
 * 
15136
16788
 *         if  pytype is None and not ignore_xsi:             # <<<<<<<<<<<<<<
15137
16789
 *             # check that old xsi type value is valid
15138
16790
 *             typename = cetree.attributeValueFromNsName(
15139
16791
 */
15140
 
    __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15141
 
    if (__pyx_1) {
15142
 
      __pyx_1 = (!__pyx_v_ignore_xsi);
 
16792
    __pyx_t_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
16793
    if (__pyx_t_1) {
 
16794
      __pyx_t_5 = (!__pyx_v_ignore_xsi);
 
16795
    } else {
 
16796
      __pyx_t_5 = __pyx_t_1;
15143
16797
    }
15144
 
    if (__pyx_1) {
 
16798
    if (__pyx_t_5) {
15145
16799
 
15146
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1601
 
16800
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1592
15147
16801
 *             # check that old xsi type value is valid
15148
16802
 *             typename = cetree.attributeValueFromNsName(
15149
16803
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")             # <<<<<<<<<<<<<<
15150
16804
 *             if typename is not None:
15151
16805
 *                 dict_result = python.PyDict_GetItem(
15152
16806
 */
15153
 
      __pyx_5 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_774); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15154
 
      Py_DECREF(__pyx_v_typename);
15155
 
      __pyx_v_typename = __pyx_5;
15156
 
      __pyx_5 = 0;
 
16807
      __pyx_t_3 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_839); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16808
      __Pyx_GOTREF(__pyx_t_3);
 
16809
      __Pyx_DECREF(__pyx_v_typename);
 
16810
      __pyx_v_typename = __pyx_t_3;
 
16811
      __pyx_t_3 = 0;
15157
16812
 
15158
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1602
 
16813
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1593
15159
16814
 *             typename = cetree.attributeValueFromNsName(
15160
16815
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
15161
16816
 *             if typename is not None:             # <<<<<<<<<<<<<<
15162
16817
 *                 dict_result = python.PyDict_GetItem(
15163
16818
 *                     _SCHEMA_TYPE_DICT, typename)
15164
16819
 */
15165
 
      __pyx_1 = (__pyx_v_typename != Py_None);
15166
 
      if (__pyx_1) {
 
16820
      __pyx_t_5 = (__pyx_v_typename != Py_None);
 
16821
      if (__pyx_t_5) {
15167
16822
 
15168
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1604
 
16823
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1595
15169
16824
 *             if typename is not None:
15170
16825
 *                 dict_result = python.PyDict_GetItem(
15171
16826
 *                     _SCHEMA_TYPE_DICT, typename)             # <<<<<<<<<<<<<<
15172
16827
 *                 if dict_result is NULL and u':' in typename:
15173
16828
 *                     prefix, typename = typename.split(u':', 1)
15174
16829
 */
15175
 
        __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_typename);
 
16830
        __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_typename);
15176
16831
 
15177
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1605
 
16832
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1596
15178
16833
 *                 dict_result = python.PyDict_GetItem(
15179
16834
 *                     _SCHEMA_TYPE_DICT, typename)
15180
16835
 *                 if dict_result is NULL and u':' in typename:             # <<<<<<<<<<<<<<
15181
16836
 *                     prefix, typename = typename.split(u':', 1)
15182
16837
 *                     dict_result = python.PyDict_GetItem(
15183
16838
 */
15184
 
        __pyx_1 = (__pyx_v_dict_result == NULL);
15185
 
        if (__pyx_1) {
15186
 
          __pyx_1 = (PySequence_Contains(__pyx_v_typename, ((PyObject *)__pyx_kp_775))); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16839
        if ((__pyx_v_dict_result == NULL)) {
 
16840
          __pyx_t_5 = (PySequence_Contains(__pyx_v_typename, ((PyObject *)__pyx_kp_840))); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16841
          __pyx_t_1 = __pyx_t_5;
 
16842
        } else {
 
16843
          __pyx_t_1 = (__pyx_v_dict_result == NULL);
15187
16844
        }
15188
 
        if (__pyx_1) {
 
16845
        if (__pyx_t_1) {
15189
16846
 
15190
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1606
 
16847
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1597
15191
16848
 *                     _SCHEMA_TYPE_DICT, typename)
15192
16849
 *                 if dict_result is NULL and u':' in typename:
15193
16850
 *                     prefix, typename = typename.split(u':', 1)             # <<<<<<<<<<<<<<
15194
16851
 *                     dict_result = python.PyDict_GetItem(
15195
16852
 *                         _SCHEMA_TYPE_DICT, typename)
15196
16853
 */
15197
 
          __pyx_3 = PyObject_GetAttr(__pyx_v_typename, __pyx_kp_split); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15198
 
          __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15199
 
          Py_INCREF(((PyObject *)__pyx_kp_776));
15200
 
          PyTuple_SET_ITEM(__pyx_4, 0, ((PyObject *)__pyx_kp_776));
15201
 
          Py_INCREF(__pyx_int_1);
15202
 
          PyTuple_SET_ITEM(__pyx_4, 1, __pyx_int_1);
15203
 
          __pyx_5 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15204
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
15205
 
          Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
15206
 
          if (PyTuple_CheckExact(__pyx_5) && PyTuple_GET_SIZE(__pyx_5) == 2) {
15207
 
            PyObject* tuple = __pyx_5;
15208
 
            __pyx_4 = PyTuple_GET_ITEM(tuple, 0);
15209
 
            Py_INCREF(__pyx_4);
15210
 
            Py_DECREF(__pyx_v_prefix);
15211
 
            __pyx_v_prefix = __pyx_4;
15212
 
            __pyx_4 = 0;
15213
 
            __pyx_4 = PyTuple_GET_ITEM(tuple, 1);
15214
 
            Py_INCREF(__pyx_4);
15215
 
            Py_DECREF(__pyx_v_typename);
15216
 
            __pyx_v_typename = __pyx_4;
15217
 
            __pyx_4 = 0;
15218
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
15219
 
          }
15220
 
          else {
15221
 
            __pyx_3 = PyObject_GetIter(__pyx_5); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15222
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
15223
 
            __pyx_4 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15224
 
            Py_DECREF(__pyx_v_prefix);
15225
 
            __pyx_v_prefix = __pyx_4;
15226
 
            __pyx_4 = 0;
15227
 
            __pyx_4 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15228
 
            Py_DECREF(__pyx_v_typename);
15229
 
            __pyx_v_typename = __pyx_4;
15230
 
            __pyx_4 = 0;
15231
 
            if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15232
 
            Py_DECREF(__pyx_3); __pyx_3 = 0;
 
16854
          __pyx_t_3 = PyObject_GetAttr(__pyx_v_typename, __pyx_kp_split); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16855
          __Pyx_GOTREF(__pyx_t_3);
 
16856
          __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16857
          __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
16858
          __Pyx_INCREF(((PyObject *)__pyx_kp_841));
 
16859
          PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_841));
 
16860
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_841));
 
16861
          __Pyx_INCREF(__pyx_int_1);
 
16862
          PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_int_1);
 
16863
          __Pyx_GIVEREF(__pyx_int_1);
 
16864
          __pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16865
          __Pyx_GOTREF(__pyx_t_4);
 
16866
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
16867
          __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
16868
          if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 2)) {
 
16869
            PyObject* tuple = __pyx_t_4;
 
16870
            __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
16871
            __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
16872
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
16873
            __Pyx_DECREF(__pyx_v_prefix);
 
16874
            __pyx_v_prefix = __pyx_2;
 
16875
            __pyx_2 = 0;
 
16876
            __Pyx_DECREF(__pyx_v_typename);
 
16877
            __pyx_v_typename = __pyx_3;
 
16878
            __pyx_3 = 0;
 
16879
          } else {
 
16880
            __pyx_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16881
            __Pyx_GOTREF(__pyx_1);
 
16882
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
16883
            __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16884
            __Pyx_GOTREF(__pyx_2);
 
16885
            __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16886
            __Pyx_GOTREF(__pyx_3);
 
16887
            if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16888
            __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
16889
            __Pyx_DECREF(__pyx_v_prefix);
 
16890
            __pyx_v_prefix = __pyx_2;
 
16891
            __pyx_2 = 0;
 
16892
            __Pyx_DECREF(__pyx_v_typename);
 
16893
            __pyx_v_typename = __pyx_3;
 
16894
            __pyx_3 = 0;
15233
16895
          }
15234
16896
 
15235
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1608
 
16897
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1599
15236
16898
 *                     prefix, typename = typename.split(u':', 1)
15237
16899
 *                     dict_result = python.PyDict_GetItem(
15238
16900
 *                         _SCHEMA_TYPE_DICT, typename)             # <<<<<<<<<<<<<<
15239
16901
 *                 if dict_result is not NULL:
15240
16902
 *                     pytype = <PyType>dict_result
15241
16903
 */
15242
 
          __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_typename);
 
16904
          __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_typename);
15243
16905
          goto __pyx_L12;
15244
16906
        }
15245
16907
        __pyx_L12:;
15246
16908
 
15247
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1609
 
16909
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1600
15248
16910
 *                     dict_result = python.PyDict_GetItem(
15249
16911
 *                         _SCHEMA_TYPE_DICT, typename)
15250
16912
 *                 if dict_result is not NULL:             # <<<<<<<<<<<<<<
15251
16913
 *                     pytype = <PyType>dict_result
15252
16914
 *                     if pytype is not StrType:
15253
16915
 */
15254
 
        __pyx_1 = (__pyx_v_dict_result != NULL);
15255
 
        if (__pyx_1) {
 
16916
        __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
16917
        if (__pyx_t_1) {
15256
16918
 
15257
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1610
 
16919
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1601
15258
16920
 *                         _SCHEMA_TYPE_DICT, typename)
15259
16921
 *                 if dict_result is not NULL:
15260
16922
 *                     pytype = <PyType>dict_result             # <<<<<<<<<<<<<<
15261
16923
 *                     if pytype is not StrType:
15262
16924
 *                         # StrType does not have a typecheck but is the default
15263
16925
 */
15264
 
          Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
15265
 
          Py_DECREF(((PyObject *)__pyx_v_pytype));
 
16926
          __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
 
16927
          __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15266
16928
          __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result);
15267
16929
 
15268
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1611
 
16930
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1602
15269
16931
 *                 if dict_result is not NULL:
15270
16932
 *                     pytype = <PyType>dict_result
15271
16933
 *                     if pytype is not StrType:             # <<<<<<<<<<<<<<
15272
16934
 *                         # StrType does not have a typecheck but is the default
15273
16935
 *                         # anyway, so just accept it if given as type
15274
16936
 */
15275
 
          __pyx_1 = (__pyx_v_pytype != __pyx_v_StrType);
15276
 
          if (__pyx_1) {
 
16937
          __pyx_t_1 = (__pyx_v_pytype != __pyx_v_StrType);
 
16938
          if (__pyx_t_1) {
15277
16939
 
15278
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1615
 
16940
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1606
15279
16941
 *                         # anyway, so just accept it if given as type
15280
16942
 *                         # information
15281
16943
 *                         pytype = _check_type(c_node, pytype)             # <<<<<<<<<<<<<<
15282
16944
 *                         if pytype is None:
15283
16945
 *                             typename = None
15284
16946
 */
15285
 
            __pyx_4 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15286
 
            Py_DECREF(((PyObject *)__pyx_v_pytype));
15287
 
            __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_4);
15288
 
            __pyx_4 = 0;
 
16947
            __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
16948
            __Pyx_GOTREF(__pyx_t_4);
 
16949
            __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
 
16950
            __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
 
16951
            __pyx_t_4 = 0;
15289
16952
 
15290
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1616
 
16953
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1607
15291
16954
 *                         # information
15292
16955
 *                         pytype = _check_type(c_node, pytype)
15293
16956
 *                         if pytype is None:             # <<<<<<<<<<<<<<
15294
16957
 *                             typename = None
15295
16958
 * 
15296
16959
 */
15297
 
            __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15298
 
            if (__pyx_1) {
 
16960
            __pyx_t_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
16961
            if (__pyx_t_1) {
15299
16962
 
15300
 
              /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1617
 
16963
              /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1608
15301
16964
 *                         pytype = _check_type(c_node, pytype)
15302
16965
 *                         if pytype is None:
15303
16966
 *                             typename = None             # <<<<<<<<<<<<<<
15304
16967
 * 
15305
16968
 *         if pytype is None and not ignore_pytype:
15306
16969
 */
15307
 
              Py_INCREF(Py_None);
15308
 
              Py_DECREF(__pyx_v_typename);
 
16970
              __Pyx_INCREF(Py_None);
 
16971
              __Pyx_DECREF(__pyx_v_typename);
15309
16972
              __pyx_v_typename = Py_None;
15310
16973
              goto __pyx_L15;
15311
16974
            }
15323
16986
    }
15324
16987
    __pyx_L10:;
15325
16988
 
15326
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1619
 
16989
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1610
15327
16990
 *                             typename = None
15328
16991
 * 
15329
16992
 *         if pytype is None and not ignore_pytype:             # <<<<<<<<<<<<<<
15330
16993
 *             # check that old pytype value is valid
15331
16994
 *             old_pytypename = cetree.attributeValueFromNsName(
15332
16995
 */
15333
 
    __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15334
 
    if (__pyx_1) {
15335
 
      __pyx_1 = (!__pyx_v_ignore_pytype);
 
16996
    __pyx_t_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
16997
    if (__pyx_t_1) {
 
16998
      __pyx_t_5 = (!__pyx_v_ignore_pytype);
 
16999
    } else {
 
17000
      __pyx_t_5 = __pyx_t_1;
15336
17001
    }
15337
 
    if (__pyx_1) {
 
17002
    if (__pyx_t_5) {
15338
17003
 
15339
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1622
 
17004
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1613
15340
17005
 *             # check that old pytype value is valid
15341
17006
 *             old_pytypename = cetree.attributeValueFromNsName(
15342
17007
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
15343
17008
 *             if old_pytypename is not None:
15344
17009
 *                 if old_pytypename == TREE_PYTYPE_NAME:
15345
17010
 */
15346
 
      __pyx_5 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15347
 
      Py_DECREF(__pyx_v_old_pytypename);
15348
 
      __pyx_v_old_pytypename = __pyx_5;
15349
 
      __pyx_5 = 0;
 
17011
      __pyx_t_4 = attributeValueFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17012
      __Pyx_GOTREF(__pyx_t_4);
 
17013
      __Pyx_DECREF(__pyx_v_old_pytypename);
 
17014
      __pyx_v_old_pytypename = __pyx_t_4;
 
17015
      __pyx_t_4 = 0;
15350
17016
 
15351
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1623
 
17017
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1614
15352
17018
 *             old_pytypename = cetree.attributeValueFromNsName(
15353
17019
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
15354
17020
 *             if old_pytypename is not None:             # <<<<<<<<<<<<<<
15355
17021
 *                 if old_pytypename == TREE_PYTYPE_NAME:
15356
17022
 *                     if not cetree.hasChild(c_node):
15357
17023
 */
15358
 
      __pyx_1 = (__pyx_v_old_pytypename != Py_None);
15359
 
      if (__pyx_1) {
 
17024
      __pyx_t_5 = (__pyx_v_old_pytypename != Py_None);
 
17025
      if (__pyx_t_5) {
15360
17026
 
15361
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1624
 
17027
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1615
15362
17028
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
15363
17029
 *             if old_pytypename is not None:
15364
17030
 *                 if old_pytypename == TREE_PYTYPE_NAME:             # <<<<<<<<<<<<<<
15365
17031
 *                     if not cetree.hasChild(c_node):
15366
17032
 *                         # only case where we should keep it,
15367
17033
 */
15368
 
        __pyx_3 = PyObject_RichCompare(__pyx_v_old_pytypename, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15369
 
        __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15370
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
15371
 
        if (__pyx_1) {
 
17034
        __pyx_t_4 = PyObject_RichCompare(__pyx_v_old_pytypename, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17035
        __Pyx_GOTREF(__pyx_t_4);
 
17036
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17037
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
17038
        if (__pyx_t_5) {
15372
17039
 
15373
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1625
 
17040
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1616
15374
17041
 *             if old_pytypename is not None:
15375
17042
 *                 if old_pytypename == TREE_PYTYPE_NAME:
15376
17043
 *                     if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
15377
17044
 *                         # only case where we should keep it,
15378
17045
 *                         # everything else is clear enough
15379
17046
 */
15380
 
          __pyx_1 = (!hasChild(__pyx_v_c_node));
15381
 
          if (__pyx_1) {
 
17047
          __pyx_t_5 = (!hasChild(__pyx_v_c_node));
 
17048
          if (__pyx_t_5) {
15382
17049
 
15383
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1628
 
17050
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1619
15384
17051
 *                         # only case where we should keep it,
15385
17052
 *                         # everything else is clear enough
15386
17053
 *                         pytype = TREE_PYTYPE             # <<<<<<<<<<<<<<
15387
17054
 *                 else:
15388
17055
 *                     if old_pytypename == u'none':
15389
17056
 */
15390
 
            if (!(__Pyx_TypeTest(__pyx_v_4lxml_9objectify_TREE_PYTYPE, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15391
 
            Py_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE);
15392
 
            Py_DECREF(((PyObject *)__pyx_v_pytype));
15393
 
            __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_4lxml_9objectify_TREE_PYTYPE);
 
17057
            __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify_TREE_PYTYPE));
 
17058
            __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
 
17059
            __pyx_v_pytype = __pyx_v_4lxml_9objectify_TREE_PYTYPE;
15394
17060
            goto __pyx_L19;
15395
17061
          }
15396
17062
          __pyx_L19:;
15398
17064
        }
15399
17065
        /*else*/ {
15400
17066
 
15401
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1630
 
17067
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1621
15402
17068
 *                         pytype = TREE_PYTYPE
15403
17069
 *                 else:
15404
17070
 *                     if old_pytypename == u'none':             # <<<<<<<<<<<<<<
15405
17071
 *                         # transition from lxml 1.x
15406
17072
 *                         old_pytypename = u"NoneType"
15407
17073
 */
15408
 
          __pyx_4 = PyObject_RichCompare(__pyx_v_old_pytypename, ((PyObject *)__pyx_kp_777), Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15409
 
          __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15410
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
15411
 
          if (__pyx_1) {
 
17074
          __pyx_t_4 = PyObject_RichCompare(__pyx_v_old_pytypename, ((PyObject *)__pyx_kp_842), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17075
          __Pyx_GOTREF(__pyx_t_4);
 
17076
          __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17077
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
17078
          if (__pyx_t_5) {
15412
17079
 
15413
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1632
 
17080
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1623
15414
17081
 *                     if old_pytypename == u'none':
15415
17082
 *                         # transition from lxml 1.x
15416
17083
 *                         old_pytypename = u"NoneType"             # <<<<<<<<<<<<<<
15417
17084
 *                     dict_result = python.PyDict_GetItem(
15418
17085
 *                         _PYTYPE_DICT, old_pytypename)
15419
17086
 */
15420
 
            Py_INCREF(((PyObject *)__pyx_kp_778));
15421
 
            Py_DECREF(__pyx_v_old_pytypename);
15422
 
            __pyx_v_old_pytypename = ((PyObject *)__pyx_kp_778);
 
17087
            __Pyx_INCREF(((PyObject *)__pyx_kp_843));
 
17088
            __Pyx_DECREF(__pyx_v_old_pytypename);
 
17089
            __pyx_v_old_pytypename = ((PyObject *)__pyx_kp_843);
15423
17090
            goto __pyx_L20;
15424
17091
          }
15425
17092
          __pyx_L20:;
15426
17093
 
15427
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1634
 
17094
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1625
15428
17095
 *                         old_pytypename = u"NoneType"
15429
17096
 *                     dict_result = python.PyDict_GetItem(
15430
17097
 *                         _PYTYPE_DICT, old_pytypename)             # <<<<<<<<<<<<<<
15431
17098
 *                     if dict_result is not NULL:
15432
17099
 *                         pytype = <PyType>dict_result
15433
17100
 */
15434
 
          __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v_old_pytypename);
 
17101
          __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v_old_pytypename);
15435
17102
 
15436
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1635
 
17103
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1626
15437
17104
 *                     dict_result = python.PyDict_GetItem(
15438
17105
 *                         _PYTYPE_DICT, old_pytypename)
15439
17106
 *                     if dict_result is not NULL:             # <<<<<<<<<<<<<<
15440
17107
 *                         pytype = <PyType>dict_result
15441
17108
 *                         if pytype is not StrType:
15442
17109
 */
15443
 
          __pyx_1 = (__pyx_v_dict_result != NULL);
15444
 
          if (__pyx_1) {
 
17110
          __pyx_t_5 = (__pyx_v_dict_result != NULL);
 
17111
          if (__pyx_t_5) {
15445
17112
 
15446
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1636
 
17113
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1627
15447
17114
 *                         _PYTYPE_DICT, old_pytypename)
15448
17115
 *                     if dict_result is not NULL:
15449
17116
 *                         pytype = <PyType>dict_result             # <<<<<<<<<<<<<<
15450
17117
 *                         if pytype is not StrType:
15451
17118
 *                             # StrType does not have a typecheck but is the
15452
17119
 */
15453
 
            Py_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
15454
 
            Py_DECREF(((PyObject *)__pyx_v_pytype));
 
17120
            __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)));
 
17121
            __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15455
17122
            __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result);
15456
17123
 
15457
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1637
 
17124
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1628
15458
17125
 *                     if dict_result is not NULL:
15459
17126
 *                         pytype = <PyType>dict_result
15460
17127
 *                         if pytype is not StrType:             # <<<<<<<<<<<<<<
15461
17128
 *                             # StrType does not have a typecheck but is the
15462
17129
 *                             # default anyway, so just accept it if given as
15463
17130
 */
15464
 
            __pyx_1 = (__pyx_v_pytype != __pyx_v_StrType);
15465
 
            if (__pyx_1) {
 
17131
            __pyx_t_5 = (__pyx_v_pytype != __pyx_v_StrType);
 
17132
            if (__pyx_t_5) {
15466
17133
 
15467
 
              /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1641
 
17134
              /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1632
15468
17135
 *                             # default anyway, so just accept it if given as
15469
17136
 *                             # type information
15470
17137
 *                             pytype = _check_type(c_node, pytype)             # <<<<<<<<<<<<<<
15471
17138
 * 
15472
17139
 *         if pytype is None:
15473
17140
 */
15474
 
              __pyx_5 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15475
 
              Py_DECREF(((PyObject *)__pyx_v_pytype));
15476
 
              __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_5);
15477
 
              __pyx_5 = 0;
 
17141
              __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_9objectify__check_type(__pyx_v_c_node, __pyx_v_pytype)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17142
              __Pyx_GOTREF(__pyx_t_4);
 
17143
              __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
 
17144
              __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_4);
 
17145
              __pyx_t_4 = 0;
15478
17146
              goto __pyx_L22;
15479
17147
            }
15480
17148
            __pyx_L22:;
15490
17158
    }
15491
17159
    __pyx_L16:;
15492
17160
 
15493
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1643
 
17161
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1634
15494
17162
 *                             pytype = _check_type(c_node, pytype)
15495
17163
 * 
15496
17164
 *         if pytype is None:             # <<<<<<<<<<<<<<
15497
17165
 *             # try to guess type
15498
17166
 *             if not cetree.hasChild(c_node):
15499
17167
 */
15500
 
    __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15501
 
    if (__pyx_1) {
 
17168
    __pyx_t_5 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
17169
    if (__pyx_t_5) {
15502
17170
 
15503
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1645
 
17171
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1636
15504
17172
 *         if pytype is None:
15505
17173
 *             # try to guess type
15506
17174
 *             if not cetree.hasChild(c_node):             # <<<<<<<<<<<<<<
15507
17175
 *                 # element has no children => data class
15508
17176
 *                 pytype = _guessPyType(textOf(c_node), StrType)
15509
17177
 */
15510
 
      __pyx_1 = (!hasChild(__pyx_v_c_node));
15511
 
      if (__pyx_1) {
 
17178
      __pyx_t_5 = (!hasChild(__pyx_v_c_node));
 
17179
      if (__pyx_t_5) {
15512
17180
 
15513
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1647
 
17181
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1638
15514
17182
 *             if not cetree.hasChild(c_node):
15515
17183
 *                 # element has no children => data class
15516
17184
 *                 pytype = _guessPyType(textOf(c_node), StrType)             # <<<<<<<<<<<<<<
15517
17185
 *             else:
15518
17186
 *                 istree = 1
15519
17187
 */
15520
 
        __pyx_3 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15521
 
        __pyx_4 = ((PyObject *)__pyx_f_4lxml_9objectify__guessPyType(__pyx_3, __pyx_v_StrType)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15522
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
15523
 
        Py_DECREF(((PyObject *)__pyx_v_pytype));
15524
 
        __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_4);
15525
 
        __pyx_4 = 0;
 
17188
        __pyx_t_4 = textOf(__pyx_v_c_node); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17189
        __Pyx_GOTREF(__pyx_t_4);
 
17190
        __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_9objectify__guessPyType(__pyx_t_4, __pyx_v_StrType)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17191
        __Pyx_GOTREF(__pyx_t_2);
 
17192
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
17193
        __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
 
17194
        __pyx_v_pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_2);
 
17195
        __pyx_t_2 = 0;
15526
17196
        goto __pyx_L24;
15527
17197
      }
15528
17198
      /*else*/ {
15529
17199
 
15530
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1649
 
17200
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1640
15531
17201
 *                 pytype = _guessPyType(textOf(c_node), StrType)
15532
17202
 *             else:
15533
17203
 *                 istree = 1             # <<<<<<<<<<<<<<
15534
17204
 * 
15535
17205
 *         if pytype is None:
15536
17206
 */
15537
 
        Py_INCREF(__pyx_int_1);
15538
 
        Py_DECREF(__pyx_v_istree);
 
17207
        __Pyx_INCREF(__pyx_int_1);
 
17208
        __Pyx_DECREF(__pyx_v_istree);
15539
17209
        __pyx_v_istree = __pyx_int_1;
15540
17210
      }
15541
17211
      __pyx_L24:;
15543
17213
    }
15544
17214
    __pyx_L23:;
15545
17215
 
15546
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1651
 
17216
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1642
15547
17217
 *                 istree = 1
15548
17218
 * 
15549
17219
 *         if pytype is None:             # <<<<<<<<<<<<<<
15550
17220
 *             # use default type for empty elements
15551
17221
 *             if cetree.hasText(c_node):
15552
17222
 */
15553
 
    __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15554
 
    if (__pyx_1) {
 
17223
    __pyx_t_5 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
17224
    if (__pyx_t_5) {
15555
17225
 
15556
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1653
 
17226
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1644
15557
17227
 *         if pytype is None:
15558
17228
 *             # use default type for empty elements
15559
17229
 *             if cetree.hasText(c_node):             # <<<<<<<<<<<<<<
15560
17230
 *                 pytype = StrType
15561
17231
 *             else:
15562
17232
 */
15563
 
      __pyx_1 = hasText(__pyx_v_c_node);
15564
 
      if (__pyx_1) {
 
17233
      __pyx_t_5 = hasText(__pyx_v_c_node);
 
17234
      if (__pyx_t_5) {
15565
17235
 
15566
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1654
 
17236
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1645
15567
17237
 *             # use default type for empty elements
15568
17238
 *             if cetree.hasText(c_node):
15569
17239
 *                 pytype = StrType             # <<<<<<<<<<<<<<
15570
17240
 *             else:
15571
17241
 *                 pytype = empty_pytype
15572
17242
 */
15573
 
        Py_INCREF(((PyObject *)__pyx_v_StrType));
15574
 
        Py_DECREF(((PyObject *)__pyx_v_pytype));
 
17243
        __Pyx_INCREF(((PyObject *)__pyx_v_StrType));
 
17244
        __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15575
17245
        __pyx_v_pytype = __pyx_v_StrType;
15576
17246
        goto __pyx_L26;
15577
17247
      }
15578
17248
      /*else*/ {
15579
17249
 
15580
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1656
 
17250
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1647
15581
17251
 *                 pytype = StrType
15582
17252
 *             else:
15583
17253
 *                 pytype = empty_pytype             # <<<<<<<<<<<<<<
15584
17254
 *                 if typename is None:
15585
17255
 *                     typename = empty_type_name
15586
17256
 */
15587
 
        Py_INCREF(((PyObject *)__pyx_v_empty_pytype));
15588
 
        Py_DECREF(((PyObject *)__pyx_v_pytype));
 
17257
        __Pyx_INCREF(((PyObject *)__pyx_v_empty_pytype));
 
17258
        __Pyx_DECREF(((PyObject *)__pyx_v_pytype));
15589
17259
        __pyx_v_pytype = __pyx_v_empty_pytype;
15590
17260
 
15591
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1657
 
17261
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1648
15592
17262
 *             else:
15593
17263
 *                 pytype = empty_pytype
15594
17264
 *                 if typename is None:             # <<<<<<<<<<<<<<
15595
17265
 *                     typename = empty_type_name
15596
17266
 * 
15597
17267
 */
15598
 
        __pyx_1 = (__pyx_v_typename == Py_None);
15599
 
        if (__pyx_1) {
 
17268
        __pyx_t_5 = (__pyx_v_typename == Py_None);
 
17269
        if (__pyx_t_5) {
15600
17270
 
15601
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1658
 
17271
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1649
15602
17272
 *                 pytype = empty_pytype
15603
17273
 *                 if typename is None:
15604
17274
 *                     typename = empty_type_name             # <<<<<<<<<<<<<<
15605
17275
 * 
15606
17276
 *         if pytype is not None:
15607
17277
 */
15608
 
          Py_INCREF(__pyx_v_empty_type_name);
15609
 
          Py_DECREF(__pyx_v_typename);
 
17278
          __Pyx_INCREF(__pyx_v_empty_type_name);
 
17279
          __Pyx_DECREF(__pyx_v_typename);
15610
17280
          __pyx_v_typename = __pyx_v_empty_type_name;
15611
17281
          goto __pyx_L27;
15612
17282
        }
15617
17287
    }
15618
17288
    __pyx_L25:;
15619
17289
 
15620
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1660
 
17290
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1651
15621
17291
 *                     typename = empty_type_name
15622
17292
 * 
15623
17293
 *         if pytype is not None:             # <<<<<<<<<<<<<<
15624
17294
 *             if typename is None:
15625
17295
 *                 if not istree:
15626
17296
 */
15627
 
    __pyx_1 = (((PyObject *)__pyx_v_pytype) != Py_None);
15628
 
    if (__pyx_1) {
 
17297
    __pyx_t_5 = (((PyObject *)__pyx_v_pytype) != Py_None);
 
17298
    if (__pyx_t_5) {
15629
17299
 
15630
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1661
 
17300
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1652
15631
17301
 * 
15632
17302
 *         if pytype is not None:
15633
17303
 *             if typename is None:             # <<<<<<<<<<<<<<
15634
17304
 *                 if not istree:
15635
17305
 *                     if python.PyList_GET_SIZE(pytype._schema_types) > 0:
15636
17306
 */
15637
 
      __pyx_1 = (__pyx_v_typename == Py_None);
15638
 
      if (__pyx_1) {
 
17307
      __pyx_t_5 = (__pyx_v_typename == Py_None);
 
17308
      if (__pyx_t_5) {
15639
17309
 
15640
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1662
 
17310
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1653
15641
17311
 *         if pytype is not None:
15642
17312
 *             if typename is None:
15643
17313
 *                 if not istree:             # <<<<<<<<<<<<<<
15644
17314
 *                     if python.PyList_GET_SIZE(pytype._schema_types) > 0:
15645
17315
 *                         # pytype->xsi:type is a 1:n mapping
15646
17316
 */
15647
 
        __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_istree); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15648
 
        __pyx_6 = (!__pyx_1);
15649
 
        if (__pyx_6) {
 
17317
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_istree); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17318
        __pyx_t_1 = (!__pyx_t_5);
 
17319
        if (__pyx_t_1) {
15650
17320
 
15651
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1663
 
17321
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1654
15652
17322
 *             if typename is None:
15653
17323
 *                 if not istree:
15654
17324
 *                     if python.PyList_GET_SIZE(pytype._schema_types) > 0:             # <<<<<<<<<<<<<<
15655
17325
 *                         # pytype->xsi:type is a 1:n mapping
15656
17326
 *                         # simply take the first
15657
17327
 */
15658
 
          __pyx_1 = (PyList_GET_SIZE(__pyx_v_pytype->_schema_types) > 0);
15659
 
          if (__pyx_1) {
 
17328
          __pyx_t_1 = (PyList_GET_SIZE(((PyObject *)__pyx_v_pytype->_schema_types)) > 0);
 
17329
          if (__pyx_t_1) {
15660
17330
 
15661
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1666
 
17331
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1657
15662
17332
 *                         # pytype->xsi:type is a 1:n mapping
15663
17333
 *                         # simply take the first
15664
17334
 *                         typename = pytype._schema_types[0]             # <<<<<<<<<<<<<<
15665
17335
 *             elif typename not in pytype._schema_types:
15666
17336
 *                 typename = pytype._schema_types[0]
15667
17337
 */
15668
 
            __pyx_5 = __Pyx_GetItemInt(__pyx_v_pytype->_schema_types, 0, 0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15669
 
            Py_DECREF(__pyx_v_typename);
15670
 
            __pyx_v_typename = __pyx_5;
15671
 
            __pyx_5 = 0;
 
17338
            __pyx_1 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_pytype->_schema_types), 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17339
            __Pyx_GOTREF(__pyx_1);
 
17340
            __Pyx_DECREF(__pyx_v_typename);
 
17341
            __pyx_v_typename = __pyx_1;
 
17342
            __pyx_1 = 0;
15672
17343
            goto __pyx_L31;
15673
17344
          }
15674
17345
          __pyx_L31:;
15678
17349
        goto __pyx_L29;
15679
17350
      }
15680
17351
 
15681
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1667
 
17352
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1658
15682
17353
 *                         # simply take the first
15683
17354
 *                         typename = pytype._schema_types[0]
15684
17355
 *             elif typename not in pytype._schema_types:             # <<<<<<<<<<<<<<
15685
17356
 *                 typename = pytype._schema_types[0]
15686
17357
 * 
15687
17358
 */
15688
 
      __pyx_6 = (!PySequence_Contains(__pyx_v_pytype->_schema_types, __pyx_v_typename)); if (unlikely(__pyx_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15689
 
      if (__pyx_6) {
 
17359
      __pyx_t_1 = (!PySequence_Contains(((PyObject *)__pyx_v_pytype->_schema_types), __pyx_v_typename)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17360
      if (__pyx_t_1) {
15690
17361
 
15691
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1668
 
17362
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1659
15692
17363
 *                         typename = pytype._schema_types[0]
15693
17364
 *             elif typename not in pytype._schema_types:
15694
17365
 *                 typename = pytype._schema_types[0]             # <<<<<<<<<<<<<<
15695
17366
 * 
15696
17367
 *         if annotate_xsi:
15697
17368
 */
15698
 
        __pyx_3 = __Pyx_GetItemInt(__pyx_v_pytype->_schema_types, 0, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1668; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15699
 
        Py_DECREF(__pyx_v_typename);
15700
 
        __pyx_v_typename = __pyx_3;
15701
 
        __pyx_3 = 0;
 
17369
        __pyx_2 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_pytype->_schema_types), 0, sizeof(long), PyInt_FromLong); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17370
        __Pyx_GOTREF(__pyx_2);
 
17371
        __Pyx_DECREF(__pyx_v_typename);
 
17372
        __pyx_v_typename = __pyx_2;
 
17373
        __pyx_2 = 0;
15702
17374
        goto __pyx_L29;
15703
17375
      }
15704
17376
      __pyx_L29:;
15706
17378
    }
15707
17379
    __pyx_L28:;
15708
17380
 
15709
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1670
 
17381
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1661
15710
17382
 *                 typename = pytype._schema_types[0]
15711
17383
 * 
15712
17384
 *         if annotate_xsi:             # <<<<<<<<<<<<<<
15713
17385
 *             if typename is None or istree:
15714
17386
 *                 cetree.delAttributeFromNsName(
15715
17387
 */
15716
 
    __pyx_1 = __pyx_v_annotate_xsi;
15717
 
    if (__pyx_1) {
 
17388
    __pyx_t_1 = __pyx_v_annotate_xsi;
 
17389
    if (__pyx_t_1) {
15718
17390
 
15719
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1671
 
17391
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1662
15720
17392
 * 
15721
17393
 *         if annotate_xsi:
15722
17394
 *             if typename is None or istree:             # <<<<<<<<<<<<<<
15723
17395
 *                 cetree.delAttributeFromNsName(
15724
17396
 *                     c_node, _XML_SCHEMA_INSTANCE_NS, "type")
15725
17397
 */
15726
 
      __pyx_6 = (__pyx_v_typename == Py_None);
15727
 
      if (!__pyx_6) {
15728
 
        __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_istree); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1671; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15729
 
        __pyx_6 = __pyx_1;
 
17398
      __pyx_t_1 = (__pyx_v_typename == Py_None);
 
17399
      if (!__pyx_t_1) {
 
17400
        __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_istree); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17401
        __pyx_t_6 = __pyx_t_5;
 
17402
      } else {
 
17403
        __pyx_t_6 = __pyx_t_1;
15730
17404
      }
15731
 
      if (__pyx_6) {
 
17405
      if (__pyx_t_6) {
15732
17406
 
15733
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1673
 
17407
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1664
15734
17408
 *             if typename is None or istree:
15735
17409
 *                 cetree.delAttributeFromNsName(
15736
17410
 *                     c_node, _XML_SCHEMA_INSTANCE_NS, "type")             # <<<<<<<<<<<<<<
15737
17411
 *             else:
15738
17412
 *                 # update or create attribute
15739
17413
 */
15740
 
        delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_779);
 
17414
        delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_844);
15741
17415
        goto __pyx_L33;
15742
17416
      }
15743
17417
      /*else*/ {
15744
17418
 
15745
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1676
 
17419
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1667
15746
17420
 *             else:
15747
17421
 *                 # update or create attribute
15748
17422
 *                 typename_utf8 = cetree.utf8(typename)             # <<<<<<<<<<<<<<
15749
17423
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15750
17424
 *                     doc, c_node, _XML_SCHEMA_NS, 'xsd')
15751
17425
 */
15752
 
        __pyx_4 = utf8(__pyx_v_typename); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15753
 
        Py_DECREF(__pyx_v_typename_utf8);
15754
 
        __pyx_v_typename_utf8 = __pyx_4;
15755
 
        __pyx_4 = 0;
 
17426
        __pyx_t_2 = utf8(__pyx_v_typename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17427
        __Pyx_GOTREF(__pyx_t_2);
 
17428
        __Pyx_DECREF(__pyx_v_typename_utf8);
 
17429
        __pyx_v_typename_utf8 = __pyx_t_2;
 
17430
        __pyx_t_2 = 0;
15756
17431
 
15757
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1678
 
17432
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1669
15758
17433
 *                 typename_utf8 = cetree.utf8(typename)
15759
17434
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15760
17435
 *                     doc, c_node, _XML_SCHEMA_NS, 'xsd')             # <<<<<<<<<<<<<<
15761
17436
 *                 if c_ns is not NULL:
15762
17437
 *                     if ':' in typename_utf8:
15763
17438
 */
15764
 
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_NS, __pyx_k_780);
 
17439
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_NS, __pyx_k_845);
15765
17440
 
15766
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1679
 
17441
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1670
15767
17442
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15768
17443
 *                     doc, c_node, _XML_SCHEMA_NS, 'xsd')
15769
17444
 *                 if c_ns is not NULL:             # <<<<<<<<<<<<<<
15770
17445
 *                     if ':' in typename_utf8:
15771
17446
 *                         prefix, name = typename_utf8.split(':', 1)
15772
17447
 */
15773
 
        __pyx_1 = (__pyx_v_c_ns != NULL);
15774
 
        if (__pyx_1) {
 
17448
        __pyx_t_6 = (__pyx_v_c_ns != NULL);
 
17449
        if (__pyx_t_6) {
15775
17450
 
15776
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1680
 
17451
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1671
15777
17452
 *                     doc, c_node, _XML_SCHEMA_NS, 'xsd')
15778
17453
 *                 if c_ns is not NULL:
15779
17454
 *                     if ':' in typename_utf8:             # <<<<<<<<<<<<<<
15780
17455
 *                         prefix, name = typename_utf8.split(':', 1)
15781
17456
 *                         if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
15782
17457
 */
15783
 
          __pyx_6 = (PySequence_Contains(__pyx_v_typename_utf8, __pyx_kp_781)); if (unlikely(__pyx_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15784
 
          if (__pyx_6) {
 
17458
          __pyx_t_6 = (PySequence_Contains(__pyx_v_typename_utf8, __pyx_kp_846)); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1671; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17459
          if (__pyx_t_6) {
15785
17460
 
15786
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1681
 
17461
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1672
15787
17462
 *                 if c_ns is not NULL:
15788
17463
 *                     if ':' in typename_utf8:
15789
17464
 *                         prefix, name = typename_utf8.split(':', 1)             # <<<<<<<<<<<<<<
15790
17465
 *                         if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
15791
17466
 *                             typename_utf8 = name
15792
17467
 */
15793
 
            __pyx_5 = PyObject_GetAttr(__pyx_v_typename_utf8, __pyx_kp_split); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15794
 
            __pyx_3 = PyTuple_New(2); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15795
 
            Py_INCREF(__pyx_kp_782);
15796
 
            PyTuple_SET_ITEM(__pyx_3, 0, __pyx_kp_782);
15797
 
            Py_INCREF(__pyx_int_1);
15798
 
            PyTuple_SET_ITEM(__pyx_3, 1, __pyx_int_1);
15799
 
            __pyx_4 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15800
 
            Py_DECREF(__pyx_5); __pyx_5 = 0;
15801
 
            Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
15802
 
            if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
15803
 
              PyObject* tuple = __pyx_4;
15804
 
              __pyx_3 = PyTuple_GET_ITEM(tuple, 0);
15805
 
              Py_INCREF(__pyx_3);
15806
 
              Py_DECREF(__pyx_v_prefix);
15807
 
              __pyx_v_prefix = __pyx_3;
15808
 
              __pyx_3 = 0;
15809
 
              __pyx_3 = PyTuple_GET_ITEM(tuple, 1);
15810
 
              Py_INCREF(__pyx_3);
15811
 
              Py_DECREF(__pyx_v_name);
15812
 
              __pyx_v_name = __pyx_3;
15813
 
              __pyx_3 = 0;
15814
 
              Py_DECREF(__pyx_4); __pyx_4 = 0;
15815
 
            }
15816
 
            else {
15817
 
              __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15818
 
              Py_DECREF(__pyx_4); __pyx_4 = 0;
15819
 
              __pyx_3 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15820
 
              Py_DECREF(__pyx_v_prefix);
15821
 
              __pyx_v_prefix = __pyx_3;
15822
 
              __pyx_3 = 0;
15823
 
              __pyx_3 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15824
 
              Py_DECREF(__pyx_v_name);
15825
 
              __pyx_v_name = __pyx_3;
15826
 
              __pyx_3 = 0;
15827
 
              if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15828
 
              Py_DECREF(__pyx_5); __pyx_5 = 0;
 
17468
            __pyx_t_2 = PyObject_GetAttr(__pyx_v_typename_utf8, __pyx_kp_split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17469
            __Pyx_GOTREF(__pyx_t_2);
 
17470
            __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17471
            __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
17472
            __Pyx_INCREF(__pyx_kp_847);
 
17473
            PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_847);
 
17474
            __Pyx_GIVEREF(__pyx_kp_847);
 
17475
            __Pyx_INCREF(__pyx_int_1);
 
17476
            PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_int_1);
 
17477
            __Pyx_GIVEREF(__pyx_int_1);
 
17478
            __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17479
            __Pyx_GOTREF(__pyx_t_3);
 
17480
            __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
17481
            __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
17482
            if (PyTuple_CheckExact(__pyx_t_3) && likely(PyTuple_GET_SIZE(__pyx_t_3) == 2)) {
 
17483
              PyObject* tuple = __pyx_t_3;
 
17484
              __pyx_1 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_1);
 
17485
              __pyx_2 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_2);
 
17486
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
17487
              __Pyx_DECREF(__pyx_v_prefix);
 
17488
              __pyx_v_prefix = __pyx_1;
 
17489
              __pyx_1 = 0;
 
17490
              __Pyx_DECREF(__pyx_v_name);
 
17491
              __pyx_v_name = __pyx_2;
 
17492
              __pyx_2 = 0;
 
17493
            } else {
 
17494
              __pyx_3 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17495
              __Pyx_GOTREF(__pyx_3);
 
17496
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
17497
              __pyx_1 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17498
              __Pyx_GOTREF(__pyx_1);
 
17499
              __pyx_2 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17500
              __Pyx_GOTREF(__pyx_2);
 
17501
              if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17502
              __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
17503
              __Pyx_DECREF(__pyx_v_prefix);
 
17504
              __pyx_v_prefix = __pyx_1;
 
17505
              __pyx_1 = 0;
 
17506
              __Pyx_DECREF(__pyx_v_name);
 
17507
              __pyx_v_name = __pyx_2;
 
17508
              __pyx_2 = 0;
15829
17509
            }
15830
17510
 
15831
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1682
 
17511
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1673
15832
17512
 *                     if ':' in typename_utf8:
15833
17513
 *                         prefix, name = typename_utf8.split(':', 1)
15834
17514
 *                         if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':             # <<<<<<<<<<<<<<
15835
17515
 *                             typename_utf8 = name
15836
17516
 *                         elif cstd.strcmp(_cstr(prefix), c_ns.prefix) != 0:
15837
17517
 */
15838
 
            __pyx_1 = (__pyx_v_c_ns->prefix == NULL);
15839
 
            if (!__pyx_1) {
15840
 
              __pyx_1 = ((__pyx_v_c_ns->prefix[0]) == '\x00');
 
17518
            if (!(__pyx_v_c_ns->prefix == NULL)) {
 
17519
              __pyx_t_6 = ((__pyx_v_c_ns->prefix[0]) == '\x00');
 
17520
            } else {
 
17521
              __pyx_t_6 = (__pyx_v_c_ns->prefix == NULL);
15841
17522
            }
15842
 
            if (__pyx_1) {
 
17523
            if (__pyx_t_6) {
15843
17524
 
15844
 
              /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1683
 
17525
              /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1674
15845
17526
 *                         prefix, name = typename_utf8.split(':', 1)
15846
17527
 *                         if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
15847
17528
 *                             typename_utf8 = name             # <<<<<<<<<<<<<<
15848
17529
 *                         elif cstd.strcmp(_cstr(prefix), c_ns.prefix) != 0:
15849
17530
 *                             prefix = c_ns.prefix
15850
17531
 */
15851
 
              Py_INCREF(__pyx_v_name);
15852
 
              Py_DECREF(__pyx_v_typename_utf8);
 
17532
              __Pyx_INCREF(__pyx_v_name);
 
17533
              __Pyx_DECREF(__pyx_v_typename_utf8);
15853
17534
              __pyx_v_typename_utf8 = __pyx_v_name;
15854
17535
              goto __pyx_L36;
15855
17536
            }
15856
17537
 
15857
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1684
 
17538
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1675
15858
17539
 *                         if c_ns.prefix is NULL or c_ns.prefix[0] == c'\0':
15859
17540
 *                             typename_utf8 = name
15860
17541
 *                         elif cstd.strcmp(_cstr(prefix), c_ns.prefix) != 0:             # <<<<<<<<<<<<<<
15861
17542
 *                             prefix = c_ns.prefix
15862
17543
 *                             typename_utf8 = prefix + ':' + name
15863
17544
 */
15864
 
            __pyx_6 = (strcmp(PyString_AS_STRING(__pyx_v_prefix), __pyx_v_c_ns->prefix) != 0);
15865
 
            if (__pyx_6) {
 
17545
            __pyx_t_6 = (strcmp(PyString_AS_STRING(__pyx_v_prefix), __pyx_v_c_ns->prefix) != 0);
 
17546
            if (__pyx_t_6) {
15866
17547
 
15867
 
              /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1685
 
17548
              /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1676
15868
17549
 *                             typename_utf8 = name
15869
17550
 *                         elif cstd.strcmp(_cstr(prefix), c_ns.prefix) != 0:
15870
17551
 *                             prefix = c_ns.prefix             # <<<<<<<<<<<<<<
15871
17552
 *                             typename_utf8 = prefix + ':' + name
15872
17553
 *                     elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':
15873
17554
 */
15874
 
              __pyx_3 = __Pyx_PyBytes_FromString(__pyx_v_c_ns->prefix); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15875
 
              Py_DECREF(__pyx_v_prefix);
15876
 
              __pyx_v_prefix = __pyx_3;
15877
 
              __pyx_3 = 0;
 
17555
              __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_c_ns->prefix); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17556
              __Pyx_GOTREF(__pyx_t_3);
 
17557
              __Pyx_DECREF(__pyx_v_prefix);
 
17558
              __pyx_v_prefix = __pyx_t_3;
 
17559
              __pyx_t_3 = 0;
15878
17560
 
15879
 
              /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1686
 
17561
              /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1677
15880
17562
 *                         elif cstd.strcmp(_cstr(prefix), c_ns.prefix) != 0:
15881
17563
 *                             prefix = c_ns.prefix
15882
17564
 *                             typename_utf8 = prefix + ':' + name             # <<<<<<<<<<<<<<
15883
17565
 *                     elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':
15884
17566
 *                         prefix = c_ns.prefix
15885
17567
 */
15886
 
              __pyx_t_1 = PyNumber_Add(__pyx_v_prefix, __pyx_kp_783); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1686; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15887
 
              __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_v_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1686; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15888
 
              Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15889
 
              Py_DECREF(__pyx_v_typename_utf8);
15890
 
              __pyx_v_typename_utf8 = __pyx_t_2;
15891
 
              __pyx_t_2 = 0;
 
17568
              __pyx_t_3 = PyNumber_Add(__pyx_v_prefix, __pyx_kp_848); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17569
              __Pyx_GOTREF(__pyx_t_3);
 
17570
              __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_v_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17571
              __Pyx_GOTREF(__pyx_t_4);
 
17572
              __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
17573
              __Pyx_DECREF(__pyx_v_typename_utf8);
 
17574
              __pyx_v_typename_utf8 = __pyx_t_4;
 
17575
              __pyx_t_4 = 0;
15892
17576
              goto __pyx_L36;
15893
17577
            }
15894
17578
            __pyx_L36:;
15895
17579
            goto __pyx_L35;
15896
17580
          }
15897
17581
 
15898
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1687
 
17582
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1678
15899
17583
 *                             prefix = c_ns.prefix
15900
17584
 *                             typename_utf8 = prefix + ':' + name
15901
17585
 *                     elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':             # <<<<<<<<<<<<<<
15902
17586
 *                         prefix = c_ns.prefix
15903
17587
 *                         typename_utf8 = prefix + ':' + typename_utf8
15904
17588
 */
15905
 
          __pyx_1 = (__pyx_v_c_ns->prefix != NULL);
15906
 
          if (!__pyx_1) {
15907
 
            __pyx_1 = ((__pyx_v_c_ns->prefix[0]) != '\x00');
 
17589
          if (!(__pyx_v_c_ns->prefix != NULL)) {
 
17590
            __pyx_t_6 = ((__pyx_v_c_ns->prefix[0]) != '\x00');
 
17591
          } else {
 
17592
            __pyx_t_6 = (__pyx_v_c_ns->prefix != NULL);
15908
17593
          }
15909
 
          if (__pyx_1) {
 
17594
          if (__pyx_t_6) {
15910
17595
 
15911
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1688
 
17596
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1679
15912
17597
 *                             typename_utf8 = prefix + ':' + name
15913
17598
 *                     elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':
15914
17599
 *                         prefix = c_ns.prefix             # <<<<<<<<<<<<<<
15915
17600
 *                         typename_utf8 = prefix + ':' + typename_utf8
15916
17601
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15917
17602
 */
15918
 
            __pyx_4 = __Pyx_PyBytes_FromString(__pyx_v_c_ns->prefix); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15919
 
            Py_DECREF(__pyx_v_prefix);
15920
 
            __pyx_v_prefix = __pyx_4;
15921
 
            __pyx_4 = 0;
 
17603
            __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_c_ns->prefix); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17604
            __Pyx_GOTREF(__pyx_t_4);
 
17605
            __Pyx_DECREF(__pyx_v_prefix);
 
17606
            __pyx_v_prefix = __pyx_t_4;
 
17607
            __pyx_t_4 = 0;
15922
17608
 
15923
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1689
 
17609
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1680
15924
17610
 *                     elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':
15925
17611
 *                         prefix = c_ns.prefix
15926
17612
 *                         typename_utf8 = prefix + ':' + typename_utf8             # <<<<<<<<<<<<<<
15927
17613
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15928
17614
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')
15929
17615
 */
15930
 
            __pyx_t_2 = PyNumber_Add(__pyx_v_prefix, __pyx_kp_784); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15931
 
            __pyx_t_1 = PyNumber_Add(__pyx_t_2, __pyx_v_typename_utf8); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
15932
 
            Py_DECREF(__pyx_t_2); __pyx_t_2 = 0;
15933
 
            Py_DECREF(__pyx_v_typename_utf8);
15934
 
            __pyx_v_typename_utf8 = __pyx_t_1;
15935
 
            __pyx_t_1 = 0;
 
17616
            __pyx_t_4 = PyNumber_Add(__pyx_v_prefix, __pyx_kp_849); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17617
            __Pyx_GOTREF(__pyx_t_4);
 
17618
            __pyx_t_3 = PyNumber_Add(__pyx_t_4, __pyx_v_typename_utf8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17619
            __Pyx_GOTREF(__pyx_t_3);
 
17620
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
17621
            __Pyx_DECREF(__pyx_v_typename_utf8);
 
17622
            __pyx_v_typename_utf8 = __pyx_t_3;
 
17623
            __pyx_t_3 = 0;
15936
17624
            goto __pyx_L35;
15937
17625
          }
15938
17626
          __pyx_L35:;
15940
17628
        }
15941
17629
        __pyx_L34:;
15942
17630
 
15943
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1691
 
17631
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1682
15944
17632
 *                         typename_utf8 = prefix + ':' + typename_utf8
15945
17633
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15946
17634
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')             # <<<<<<<<<<<<<<
15947
17635
 *                 tree.xmlSetNsProp(c_node, c_ns, "type", _cstr(typename_utf8))
15948
17636
 * 
15949
17637
 */
15950
 
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_785);
 
17638
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_850);
15951
17639
 
15952
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1692
 
17640
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1683
15953
17641
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
15954
17642
 *                     doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')
15955
17643
 *                 tree.xmlSetNsProp(c_node, c_ns, "type", _cstr(typename_utf8))             # <<<<<<<<<<<<<<
15956
17644
 * 
15957
17645
 *         if annotate_pytype:
15958
17646
 */
15959
 
        xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_k_786, PyString_AS_STRING(__pyx_v_typename_utf8));
 
17647
        xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_k_851, PyString_AS_STRING(__pyx_v_typename_utf8));
15960
17648
      }
15961
17649
      __pyx_L33:;
15962
17650
      goto __pyx_L32;
15963
17651
    }
15964
17652
    __pyx_L32:;
15965
17653
 
15966
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1694
 
17654
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1685
15967
17655
 *                 tree.xmlSetNsProp(c_node, c_ns, "type", _cstr(typename_utf8))
15968
17656
 * 
15969
17657
 *         if annotate_pytype:             # <<<<<<<<<<<<<<
15970
17658
 *             if pytype is None:
15971
17659
 *                 # delete attribute if it exists
15972
17660
 */
15973
 
    __pyx_6 = __pyx_v_annotate_pytype;
15974
 
    if (__pyx_6) {
 
17661
    __pyx_t_6 = __pyx_v_annotate_pytype;
 
17662
    if (__pyx_t_6) {
15975
17663
 
15976
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1695
 
17664
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1686
15977
17665
 * 
15978
17666
 *         if annotate_pytype:
15979
17667
 *             if pytype is None:             # <<<<<<<<<<<<<<
15980
17668
 *                 # delete attribute if it exists
15981
17669
 *                 cetree.delAttributeFromNsName(
15982
17670
 */
15983
 
      __pyx_1 = (((PyObject *)__pyx_v_pytype) == Py_None);
15984
 
      if (__pyx_1) {
 
17671
      __pyx_t_6 = (((PyObject *)__pyx_v_pytype) == Py_None);
 
17672
      if (__pyx_t_6) {
15985
17673
 
15986
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1698
 
17674
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1689
15987
17675
 *                 # delete attribute if it exists
15988
17676
 *                 cetree.delAttributeFromNsName(
15989
17677
 *                     c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
15995
17683
      }
15996
17684
      /*else*/ {
15997
17685
 
15998
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1702
 
17686
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1693
15999
17687
 *                 # update or create attribute
16000
17688
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
16001
17689
 *                     doc, c_node, _PYTYPE_NAMESPACE, 'py')             # <<<<<<<<<<<<<<
16002
17690
 *                 pytype_name = cetree.utf8(pytype.name)
16003
17691
 *                 tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
16004
17692
 */
16005
 
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_k_787);
 
17693
        __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_k_852);
16006
17694
 
16007
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1703
 
17695
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1694
16008
17696
 *                 c_ns = cetree.findOrBuildNodeNsPrefix(
16009
17697
 *                     doc, c_node, _PYTYPE_NAMESPACE, 'py')
16010
17698
 *                 pytype_name = cetree.utf8(pytype.name)             # <<<<<<<<<<<<<<
16011
17699
 *                 tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
16012
17700
 *                                   _cstr(pytype_name))
16013
17701
 */
16014
 
        __pyx_5 = utf8(__pyx_v_pytype->name); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1703; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16015
 
        Py_DECREF(__pyx_v_pytype_name);
16016
 
        __pyx_v_pytype_name = __pyx_5;
16017
 
        __pyx_5 = 0;
 
17702
        __pyx_t_3 = utf8(__pyx_v_pytype->name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17703
        __Pyx_GOTREF(__pyx_t_3);
 
17704
        __Pyx_DECREF(__pyx_v_pytype_name);
 
17705
        __pyx_v_pytype_name = __pyx_t_3;
 
17706
        __pyx_t_3 = 0;
16018
17707
 
16019
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1705
 
17708
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1696
16020
17709
 *                 pytype_name = cetree.utf8(pytype.name)
16021
17710
 *                 tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
16022
17711
 *                                   _cstr(pytype_name))             # <<<<<<<<<<<<<<
16025
17714
 */
16026
17715
        xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME, PyString_AS_STRING(__pyx_v_pytype_name));
16027
17716
 
16028
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1706
 
17717
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1697
16029
17718
 *                 tree.xmlSetNsProp(c_node, c_ns, _PYTYPE_ATTRIBUTE_NAME,
16030
17719
 *                                   _cstr(pytype_name))
16031
17720
 *                 if pytype is NoneType:             # <<<<<<<<<<<<<<
16032
17721
 *                     c_ns = cetree.findOrBuildNodeNsPrefix(
16033
17722
 *                         doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')
16034
17723
 */
16035
 
        __pyx_6 = (__pyx_v_pytype == __pyx_v_NoneType);
16036
 
        if (__pyx_6) {
 
17724
        __pyx_t_6 = (__pyx_v_pytype == __pyx_v_NoneType);
 
17725
        if (__pyx_t_6) {
16037
17726
 
16038
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1708
 
17727
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1699
16039
17728
 *                 if pytype is NoneType:
16040
17729
 *                     c_ns = cetree.findOrBuildNodeNsPrefix(
16041
17730
 *                         doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')             # <<<<<<<<<<<<<<
16042
17731
 *                     tree.xmlSetNsProp(c_node, c_ns, "nil", "true")
16043
17732
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16044
17733
 */
16045
 
          __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_788);
 
17734
          __pyx_v_c_ns = findOrBuildNodeNsPrefix(__pyx_v_doc, __pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_853);
16046
17735
 
16047
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1709
 
17736
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1700
16048
17737
 *                     c_ns = cetree.findOrBuildNodeNsPrefix(
16049
17738
 *                         doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')
16050
17739
 *                     tree.xmlSetNsProp(c_node, c_ns, "nil", "true")             # <<<<<<<<<<<<<<
16051
17740
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16052
17741
 * 
16053
17742
 */
16054
 
          xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_k_789, __pyx_k_790);
 
17743
          xmlSetNsProp(__pyx_v_c_node, __pyx_v_c_ns, __pyx_k_854, __pyx_k_855);
16055
17744
          goto __pyx_L39;
16056
17745
        }
16057
17746
        __pyx_L39:;
16064
17753
  }
16065
17754
  __pyx_L8:;
16066
17755
 
16067
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1710
 
17756
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1701
16068
17757
 *                         doc, c_node, _XML_SCHEMA_INSTANCE_NS, 'xsi')
16069
17758
 *                     tree.xmlSetNsProp(c_node, c_ns, "nil", "true")
16070
17759
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)             # <<<<<<<<<<<<<<
16071
17760
 * 
16072
 
 * def deannotate(element_or_tree, *, pytype=True, xsi=True):
 
17761
 * cdef object _strip_attributes
16073
17762
 */
16074
17763
  END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
16075
17764
 
16076
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
17765
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16077
17766
  goto __pyx_L0;
16078
17767
  __pyx_L1_error:;
16079
 
  Py_XDECREF(__pyx_3);
16080
 
  Py_XDECREF(__pyx_4);
16081
 
  Py_XDECREF(__pyx_5);
 
17768
  __Pyx_XDECREF(__pyx_1);
 
17769
  __Pyx_XDECREF(__pyx_2);
 
17770
  __Pyx_XDECREF(__pyx_3);
 
17771
  __Pyx_XDECREF(__pyx_t_2);
 
17772
  __Pyx_XDECREF(__pyx_t_3);
 
17773
  __Pyx_XDECREF(__pyx_t_4);
16082
17774
  __Pyx_AddTraceback("lxml.objectify._annotate");
16083
17775
  __pyx_r = 0;
16084
17776
  __pyx_L0:;
16085
 
  Py_DECREF(__pyx_v_doc);
16086
 
  Py_DECREF(__pyx_v_pytype);
16087
 
  Py_DECREF(__pyx_v_empty_pytype);
16088
 
  Py_DECREF(__pyx_v_StrType);
16089
 
  Py_DECREF(__pyx_v_NoneType);
16090
 
  Py_DECREF(__pyx_v_typename);
16091
 
  Py_DECREF(__pyx_v_value);
16092
 
  Py_DECREF(__pyx_v_istree);
16093
 
  Py_DECREF(__pyx_v_prefix);
16094
 
  Py_DECREF(__pyx_v_old_pytypename);
16095
 
  Py_DECREF(__pyx_v_typename_utf8);
16096
 
  Py_DECREF(__pyx_v_name);
16097
 
  Py_DECREF(__pyx_v_pytype_name);
16098
 
  Py_DECREF(__pyx_v_empty_type_name);
16099
 
  Py_DECREF(__pyx_v_empty_pytype_name);
 
17777
  __Pyx_DECREF((PyObject *)__pyx_v_doc);
 
17778
  __Pyx_DECREF((PyObject *)__pyx_v_pytype);
 
17779
  __Pyx_DECREF((PyObject *)__pyx_v_empty_pytype);
 
17780
  __Pyx_DECREF((PyObject *)__pyx_v_StrType);
 
17781
  __Pyx_DECREF((PyObject *)__pyx_v_NoneType);
 
17782
  __Pyx_DECREF(__pyx_v_typename);
 
17783
  __Pyx_DECREF(__pyx_v_value);
 
17784
  __Pyx_DECREF(__pyx_v_istree);
 
17785
  __Pyx_DECREF(__pyx_v_prefix);
 
17786
  __Pyx_DECREF(__pyx_v_old_pytypename);
 
17787
  __Pyx_DECREF(__pyx_v_typename_utf8);
 
17788
  __Pyx_DECREF(__pyx_v_name);
 
17789
  __Pyx_DECREF(__pyx_v_pytype_name);
 
17790
  __Pyx_DECREF(__pyx_v_empty_type_name);
 
17791
  __Pyx_DECREF(__pyx_v_empty_pytype_name);
 
17792
  __Pyx_XGIVEREF(__pyx_r);
 
17793
  __Pyx_FinishRefcountContext();
16100
17794
  return __pyx_r;
16101
17795
}
16102
17796
 
16103
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1712
16104
 
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
 
17797
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1706
 
17798
 * _strip_attributes = etree.strip_attributes
16105
17799
 * 
16106
 
 * def deannotate(element_or_tree, *, pytype=True, xsi=True):             # <<<<<<<<<<<<<<
16107
 
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True)
 
17800
 * def deannotate(element_or_tree, *, pytype=True, xsi=True, xsi_nil=False):             # <<<<<<<<<<<<<<
 
17801
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False)
16108
17802
 * 
16109
17803
 */
16110
17804
 
16111
17805
static PyObject *__pyx_pf_4lxml_9objectify_deannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
16112
 
static char __pyx_doc_4lxml_9objectify_deannotate[] = "deannotate(element_or_tree, pytype=True, xsi=True)\n\n    Recursively de-annotate the elements of an XML tree by removing 'pytype'\n    and/or 'type' attributes.\n\n    If the 'pytype' keyword argument is True (the default), 'pytype' attributes\n    will be removed. If the 'xsi' keyword argument is True (the default),\n    'xsi:type' attributes will be removed.\n    ";
 
17806
static char __pyx_doc_4lxml_9objectify_deannotate[] = "deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False)\n\n    Recursively de-annotate the elements of an XML tree by removing 'py:pytype'\n    and/or 'xsi:type' attributes and/or 'xsi:nil' attributes.\n\n    If the 'pytype' keyword argument is True (the default), 'py:pytype'\n    attributes will be removed. If the 'xsi' keyword argument is True (the \n    default), 'xsi:type' attributes will be removed.\n    If the 'xsi_nil' keyword argument is True (default: False), 'xsi:nil'\n    attributes will be removed.\n    ";
16113
17807
static PyObject *__pyx_pf_4lxml_9objectify_deannotate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16114
17808
  PyObject *__pyx_v_element_or_tree = 0;
16115
17809
  PyObject *__pyx_v_pytype = 0;
16116
17810
  PyObject *__pyx_v_xsi = 0;
16117
 
  struct LxmlElement *__pyx_v_element;
16118
 
  xmlNode *__pyx_v_c_node;
16119
 
  PyObject *__pyx_r;
 
17811
  PyObject *__pyx_v_xsi_nil = 0;
 
17812
  PyObject *__pyx_v_attribute_names = 0;
 
17813
  PyObject *__pyx_r = NULL;
16120
17814
  PyObject *__pyx_1 = 0;
16121
 
  int __pyx_2;
16122
 
  int __pyx_3;
16123
 
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_element_or_tree,&__pyx_kp_pytype,&__pyx_kp_xsi,0};
 
17815
  PyObject *__pyx_t_1 = NULL;
 
17816
  int __pyx_t_2;
 
17817
  int __pyx_t_3;
 
17818
  PyObject *__pyx_t_4 = NULL;
 
17819
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_element_or_tree,&__pyx_kp_pytype,&__pyx_kp_xsi,&__pyx_kp_xsi_nil,0};
 
17820
  __Pyx_SetupRefcountContext("deannotate");
16124
17821
  __pyx_self = __pyx_self;
16125
 
  __pyx_v_pytype = __pyx_k_657;
16126
 
  __pyx_v_xsi = __pyx_k_658;
16127
17822
  if (unlikely(__pyx_kwds)) {
16128
 
    PyObject* values[3] = {0,0,0};
16129
17823
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
17824
    PyObject* values[4] = {0,0,0,0};
 
17825
    values[1] = __pyx_k_723;
 
17826
    values[2] = __pyx_k_724;
 
17827
    values[3] = __pyx_k_725;
16130
17828
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16131
17829
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16132
17830
      case  0: break;
16138
17836
      if (likely(values[0])) kw_args--;
16139
17837
      else goto __pyx_L5_argtuple_error;
16140
17838
    }
 
17839
    while (kw_args > 0) {
 
17840
      PyObject* value;
 
17841
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_pytype);
 
17842
      if (value) { values[1] = value; if (!(--kw_args)) break; }
 
17843
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_xsi);
 
17844
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
17845
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_xsi_nil);
 
17846
      if (value) { values[3] = value; if (!(--kw_args)) break; }
 
17847
      break;
 
17848
    }
16141
17849
    if (unlikely(kw_args > 0)) {
16142
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "deannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1712; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
17850
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "deannotate") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16143
17851
    }
16144
17852
    __pyx_v_element_or_tree = values[0];
16145
 
    if (values[1]) {
16146
 
      __pyx_v_pytype = values[1];
16147
 
    }
16148
 
    if (values[2]) {
16149
 
      __pyx_v_xsi = values[2];
16150
 
    }
 
17853
    __pyx_v_pytype = values[1];
 
17854
    __pyx_v_xsi = values[2];
 
17855
    __pyx_v_xsi_nil = values[3];
16151
17856
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
16152
17857
    goto __pyx_L5_argtuple_error;
16153
17858
  } else {
16154
17859
    __pyx_v_element_or_tree = PyTuple_GET_ITEM(__pyx_args, 0);
 
17860
    __pyx_v_pytype = __pyx_k_723;
 
17861
    __pyx_v_xsi = __pyx_k_724;
 
17862
    __pyx_v_xsi_nil = __pyx_k_725;
16155
17863
  }
16156
17864
  goto __pyx_L4_argument_unpacking_done;
16157
17865
  __pyx_L5_argtuple_error:;
16158
 
  __Pyx_RaiseArgtupleInvalid("deannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1712; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
17866
  __Pyx_RaiseArgtupleInvalid("deannotate", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16159
17867
  __pyx_L3_error:;
16160
17868
  __Pyx_AddTraceback("lxml.objectify.deannotate");
16161
17869
  return NULL;
16162
17870
  __pyx_L4_argument_unpacking_done:;
16163
 
  __pyx_v_element = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
16164
 
 
16165
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1725
16166
 
 *     cdef tree.xmlNode* c_node
16167
 
 * 
16168
 
 *     element = cetree.rootNodeOrRaise(element_or_tree)             # <<<<<<<<<<<<<<
16169
 
 *     c_node = element._c_node
16170
 
 *     if pytype and xsi:
16171
 
 */
16172
 
  __pyx_1 = ((PyObject *)rootNodeOrRaise(__pyx_v_element_or_tree)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1725; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16173
 
  Py_DECREF(((PyObject *)__pyx_v_element));
16174
 
  __pyx_v_element = ((struct LxmlElement *)__pyx_1);
16175
 
  __pyx_1 = 0;
16176
 
 
16177
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1726
16178
 
 * 
16179
 
 *     element = cetree.rootNodeOrRaise(element_or_tree)
16180
 
 *     c_node = element._c_node             # <<<<<<<<<<<<<<
16181
 
 *     if pytype and xsi:
16182
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16183
 
 */
16184
 
  __pyx_v_c_node = __pyx_v_element->_c_node;
16185
 
 
16186
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1727
16187
 
 *     element = cetree.rootNodeOrRaise(element_or_tree)
16188
 
 *     c_node = element._c_node
16189
 
 *     if pytype and xsi:             # <<<<<<<<<<<<<<
16190
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16191
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16192
 
 */
16193
 
  __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_v_pytype); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16194
 
  __pyx_2 = __pyx_3;
16195
 
  if (__pyx_2) {
16196
 
    __pyx_3 = __Pyx_PyObject_IsTrue(__pyx_v_xsi); if (unlikely(__pyx_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16197
 
    __pyx_2 = __pyx_3;
16198
 
  }
16199
 
  if (__pyx_2) {
16200
 
 
16201
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1728
16202
 
 *     c_node = element._c_node
16203
 
 *     if pytype and xsi:
16204
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)             # <<<<<<<<<<<<<<
16205
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16206
 
 *             cetree.delAttributeFromNsName(
16207
 
 */
16208
 
    BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node, __pyx_v_c_node, 1);
16209
 
 
16210
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1729
16211
 
 *     if pytype and xsi:
16212
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16213
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
16214
 
 *             cetree.delAttributeFromNsName(
16215
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
16216
 
 */
16217
 
    __pyx_3 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
16218
 
    if (__pyx_3) {
16219
 
 
16220
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1731
16221
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16222
 
 *             cetree.delAttributeFromNsName(
16223
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
16224
 
 *             cetree.delAttributeFromNsName(
16225
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
16226
 
 */
16227
 
      delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME);
16228
 
 
16229
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1733
16230
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
16231
 
 *             cetree.delAttributeFromNsName(
16232
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")             # <<<<<<<<<<<<<<
16233
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16234
 
 *     elif pytype:
16235
 
 */
16236
 
      delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_791);
16237
 
      goto __pyx_L7;
16238
 
    }
16239
 
    __pyx_L7:;
16240
 
 
16241
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1734
16242
 
 *             cetree.delAttributeFromNsName(
16243
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
16244
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)             # <<<<<<<<<<<<<<
16245
 
 *     elif pytype:
16246
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16247
 
 */
16248
 
    END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
16249
 
    goto __pyx_L6;
16250
 
  }
16251
 
 
16252
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1735
16253
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
16254
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16255
 
 *     elif pytype:             # <<<<<<<<<<<<<<
16256
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16257
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16258
 
 */
16259
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_pytype); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1735; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16260
 
  if (__pyx_2) {
16261
 
 
16262
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1736
16263
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16264
 
 *     elif pytype:
16265
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)             # <<<<<<<<<<<<<<
16266
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16267
 
 *             cetree.delAttributeFromNsName(
16268
 
 */
16269
 
    BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node, __pyx_v_c_node, 1);
16270
 
 
16271
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1737
16272
 
 *     elif pytype:
16273
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16274
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
16275
 
 *             cetree.delAttributeFromNsName(
16276
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
16277
 
 */
16278
 
    __pyx_3 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
16279
 
    if (__pyx_3) {
16280
 
 
16281
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1739
16282
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16283
 
 *             cetree.delAttributeFromNsName(
16284
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)             # <<<<<<<<<<<<<<
16285
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16286
 
 *     elif xsi:
16287
 
 */
16288
 
      delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__PYTYPE_NAMESPACE, __pyx_v_4lxml_9objectify__PYTYPE_ATTRIBUTE_NAME);
16289
 
      goto __pyx_L8;
16290
 
    }
16291
 
    __pyx_L8:;
16292
 
 
16293
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1740
16294
 
 *             cetree.delAttributeFromNsName(
16295
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
16296
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)             # <<<<<<<<<<<<<<
16297
 
 *     elif xsi:
16298
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16299
 
 */
16300
 
    END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
16301
 
    goto __pyx_L6;
16302
 
  }
16303
 
 
16304
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1741
16305
 
 *                 c_node, _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
16306
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16307
 
 *     elif xsi:             # <<<<<<<<<<<<<<
16308
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16309
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16310
 
 */
16311
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_xsi); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16312
 
  if (__pyx_2) {
16313
 
 
16314
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1742
16315
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16316
 
 *     elif xsi:
16317
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)             # <<<<<<<<<<<<<<
16318
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16319
 
 *             cetree.delAttributeFromNsName(
16320
 
 */
16321
 
    BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node, __pyx_v_c_node, 1);
16322
 
 
16323
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1743
16324
 
 *     elif xsi:
16325
 
 *         tree.BEGIN_FOR_EACH_ELEMENT_FROM(c_node, c_node, 1)
16326
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
16327
 
 *             cetree.delAttributeFromNsName(
16328
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
16329
 
 */
16330
 
    __pyx_3 = (__pyx_v_c_node->type == XML_ELEMENT_NODE);
16331
 
    if (__pyx_3) {
16332
 
 
16333
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1745
16334
 
 *         if c_node.type == tree.XML_ELEMENT_NODE:
16335
 
 *             cetree.delAttributeFromNsName(
16336
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")             # <<<<<<<<<<<<<<
16337
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)
16338
 
 * 
16339
 
 */
16340
 
      delAttributeFromNsName(__pyx_v_c_node, __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS, __pyx_k_792);
16341
 
      goto __pyx_L9;
16342
 
    }
16343
 
    __pyx_L9:;
16344
 
 
16345
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1746
16346
 
 *             cetree.delAttributeFromNsName(
16347
 
 *                 c_node, _XML_SCHEMA_INSTANCE_NS, "type")
16348
 
 *         tree.END_FOR_EACH_ELEMENT_FROM(c_node)             # <<<<<<<<<<<<<<
16349
 
 * 
16350
 
 * 
16351
 
 */
16352
 
    END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
 
17871
 
 
17872
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1718
 
17873
 *     attributes will be removed.
 
17874
 *     """
 
17875
 *     cdef list attribute_names = []             # <<<<<<<<<<<<<<
 
17876
 * 
 
17877
 *     if pytype:
 
17878
 */
 
17879
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1718; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17880
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
17881
  __pyx_v_attribute_names = __pyx_t_1;
 
17882
  __pyx_t_1 = 0;
 
17883
 
 
17884
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1720
 
17885
 *     cdef list attribute_names = []
 
17886
 * 
 
17887
 *     if pytype:             # <<<<<<<<<<<<<<
 
17888
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 
17889
 *     if xsi:
 
17890
 */
 
17891
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_pytype); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17892
  if (__pyx_t_2) {
 
17893
 
 
17894
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1721
 
17895
 * 
 
17896
 *     if pytype:
 
17897
 *         attribute_names.append(PYTYPE_ATTRIBUTE)             # <<<<<<<<<<<<<<
 
17898
 *     if xsi:
 
17899
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 
17900
 */
 
17901
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1721; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17902
    __Pyx_GOTREF(__pyx_1);
 
17903
    __pyx_t_3 = PyList_Append(((PyObject *)__pyx_v_attribute_names), __pyx_1); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1721; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17904
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
16353
17905
    goto __pyx_L6;
16354
17906
  }
16355
17907
  __pyx_L6:;
16356
17908
 
16357
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
17909
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1722
 
17910
 *     if pytype:
 
17911
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 
17912
 *     if xsi:             # <<<<<<<<<<<<<<
 
17913
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 
17914
 *     if xsi_nil:
 
17915
 */
 
17916
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xsi); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1722; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17917
  if (__pyx_t_2) {
 
17918
 
 
17919
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1723
 
17920
 *         attribute_names.append(PYTYPE_ATTRIBUTE)
 
17921
 *     if xsi:
 
17922
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)             # <<<<<<<<<<<<<<
 
17923
 *     if xsi_nil:
 
17924
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 
17925
 */
 
17926
    __pyx_t_3 = PyList_Append(((PyObject *)__pyx_v_attribute_names), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17927
    goto __pyx_L7;
 
17928
  }
 
17929
  __pyx_L7:;
 
17930
 
 
17931
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1724
 
17932
 *     if xsi:
 
17933
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 
17934
 *     if xsi_nil:             # <<<<<<<<<<<<<<
 
17935
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 
17936
 * 
 
17937
 */
 
17938
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xsi_nil); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17939
  if (__pyx_t_2) {
 
17940
 
 
17941
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1725
 
17942
 *         attribute_names.append(XML_SCHEMA_INSTANCE_TYPE_ATTR)
 
17943
 *     if xsi_nil:
 
17944
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)             # <<<<<<<<<<<<<<
 
17945
 * 
 
17946
 *     _strip_attributes(element_or_tree, *attribute_names)
 
17947
 */
 
17948
    __pyx_t_3 = PyList_Append(((PyObject *)__pyx_v_attribute_names), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1725; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17949
    goto __pyx_L8;
 
17950
  }
 
17951
  __pyx_L8:;
 
17952
 
 
17953
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1727
 
17954
 *         attribute_names.append(XML_SCHEMA_INSTANCE_NIL_ATTR)
 
17955
 * 
 
17956
 *     _strip_attributes(element_or_tree, *attribute_names)             # <<<<<<<<<<<<<<
 
17957
 * 
 
17958
 * ################################################################################
 
17959
 */
 
17960
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17961
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
17962
  __Pyx_INCREF(__pyx_v_element_or_tree);
 
17963
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_element_or_tree);
 
17964
  __Pyx_GIVEREF(__pyx_v_element_or_tree);
 
17965
  __pyx_1 = PySequence_Tuple(((PyObject *)__pyx_v_attribute_names)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17966
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
17967
  __pyx_t_4 = PyNumber_Add(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17968
  __Pyx_GOTREF(__pyx_t_4);
 
17969
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
17970
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
17971
  __pyx_t_1 = PyObject_Call(__pyx_v_4lxml_9objectify__strip_attributes, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
17972
  __Pyx_GOTREF(__pyx_t_1);
 
17973
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
17974
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
17975
 
 
17976
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16358
17977
  goto __pyx_L0;
16359
17978
  __pyx_L1_error:;
16360
 
  Py_XDECREF(__pyx_1);
 
17979
  __Pyx_XDECREF(__pyx_1);
 
17980
  __Pyx_XDECREF(__pyx_t_1);
 
17981
  __Pyx_XDECREF(__pyx_t_4);
16361
17982
  __Pyx_AddTraceback("lxml.objectify.deannotate");
16362
17983
  __pyx_r = NULL;
16363
17984
  __pyx_L0:;
16364
 
  Py_DECREF(__pyx_v_element);
 
17985
  __Pyx_XDECREF(__pyx_v_attribute_names);
 
17986
  __Pyx_XGIVEREF(__pyx_r);
 
17987
  __Pyx_FinishRefcountContext();
16365
17988
  return __pyx_r;
16366
17989
}
16367
17990
 
16368
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1759
 
17991
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1739
16369
17992
 * objectify_parser = __DEFAULT_PARSER
16370
17993
 * 
16371
17994
 * def set_default_parser(new_parser = None):             # <<<<<<<<<<<<<<
16377
18000
static char __pyx_doc_4lxml_9objectify_set_default_parser[] = "set_default_parser(new_parser = None)\n\n    Replace the default parser used by objectify's Element() and\n    fromstring() functions.\n\n    The new parser must be an etree.XMLParser.\n\n    Call without arguments to reset to the original parser.\n    ";
16378
18001
static PyObject *__pyx_pf_4lxml_9objectify_set_default_parser(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16379
18002
  PyObject *__pyx_v_new_parser = 0;
16380
 
  PyObject *__pyx_r;
16381
 
  int __pyx_1;
16382
 
  PyObject *__pyx_2 = 0;
 
18003
  PyObject *__pyx_r = NULL;
 
18004
  int __pyx_t_1;
 
18005
  PyObject *__pyx_t_2 = NULL;
16383
18006
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_new_parser,0};
 
18007
  __Pyx_SetupRefcountContext("set_default_parser");
16384
18008
  __pyx_self = __pyx_self;
16385
 
  __pyx_v_new_parser = Py_None;
16386
18009
  if (unlikely(__pyx_kwds)) {
 
18010
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
16387
18011
    PyObject* values[1] = {0};
16388
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
18012
    values[0] = Py_None;
16389
18013
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16390
18014
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16391
18015
      case  0: break;
16392
18016
      default: goto __pyx_L5_argtuple_error;
16393
18017
    }
 
18018
    switch (PyTuple_GET_SIZE(__pyx_args)) {
 
18019
      case  0:
 
18020
      if (kw_args > 0) {
 
18021
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_new_parser);
 
18022
        if (unlikely(value)) { values[0] = value; kw_args--; }
 
18023
      }
 
18024
    }
16394
18025
    if (unlikely(kw_args > 0)) {
16395
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_default_parser") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1759; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16396
 
    }
16397
 
    if (values[0]) {
16398
 
      __pyx_v_new_parser = values[0];
16399
 
    }
 
18026
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set_default_parser") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1739; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18027
    }
 
18028
    __pyx_v_new_parser = values[0];
16400
18029
  } else {
 
18030
    __pyx_v_new_parser = Py_None;
16401
18031
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16402
18032
      case  1: __pyx_v_new_parser = PyTuple_GET_ITEM(__pyx_args, 0);
16403
18033
      case  0: break;
16406
18036
  }
16407
18037
  goto __pyx_L4_argument_unpacking_done;
16408
18038
  __pyx_L5_argtuple_error:;
16409
 
  __Pyx_RaiseArgtupleInvalid("set_default_parser", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1759; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18039
  __Pyx_RaiseArgtupleInvalid("set_default_parser", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1739; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16410
18040
  __pyx_L3_error:;
16411
18041
  __Pyx_AddTraceback("lxml.objectify.set_default_parser");
16412
18042
  return NULL;
16413
18043
  __pyx_L4_argument_unpacking_done:;
16414
18044
 
16415
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1770
 
18045
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1750
16416
18046
 *     """
16417
18047
 *     global objectify_parser
16418
18048
 *     if new_parser is None:             # <<<<<<<<<<<<<<
16419
18049
 *         objectify_parser = __DEFAULT_PARSER
16420
18050
 *     elif isinstance(new_parser, etree.XMLParser):
16421
18051
 */
16422
 
  __pyx_1 = (__pyx_v_new_parser == Py_None);
16423
 
  if (__pyx_1) {
 
18052
  __pyx_t_1 = (__pyx_v_new_parser == Py_None);
 
18053
  if (__pyx_t_1) {
16424
18054
 
16425
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1771
 
18055
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1751
16426
18056
 *     global objectify_parser
16427
18057
 *     if new_parser is None:
16428
18058
 *         objectify_parser = __DEFAULT_PARSER             # <<<<<<<<<<<<<<
16429
18059
 *     elif isinstance(new_parser, etree.XMLParser):
16430
18060
 *         objectify_parser = new_parser
16431
18061
 */
16432
 
    Py_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
16433
 
    Py_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18062
    __Pyx_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
 
18063
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18064
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18065
    __Pyx_GIVEREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
16434
18066
    __pyx_v_4lxml_9objectify_objectify_parser = __pyx_v_4lxml_9objectify___DEFAULT_PARSER;
16435
18067
    goto __pyx_L6;
16436
18068
  }
16437
18069
 
16438
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1772
 
18070
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1752
16439
18071
 *     if new_parser is None:
16440
18072
 *         objectify_parser = __DEFAULT_PARSER
16441
18073
 *     elif isinstance(new_parser, etree.XMLParser):             # <<<<<<<<<<<<<<
16442
18074
 *         objectify_parser = new_parser
16443
18075
 *     else:
16444
18076
 */
16445
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16446
 
  __pyx_1 = PyObject_IsInstance(__pyx_v_new_parser, __pyx_2); if (unlikely(__pyx_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16447
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
16448
 
  if (__pyx_1) {
 
18077
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18078
  __Pyx_GOTREF(__pyx_t_2);
 
18079
  __pyx_t_1 = PyObject_IsInstance(__pyx_v_new_parser, __pyx_t_2); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18080
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
18081
  if (__pyx_t_1) {
16449
18082
 
16450
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1773
 
18083
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1753
16451
18084
 *         objectify_parser = __DEFAULT_PARSER
16452
18085
 *     elif isinstance(new_parser, etree.XMLParser):
16453
18086
 *         objectify_parser = new_parser             # <<<<<<<<<<<<<<
16454
18087
 *     else:
16455
18088
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
16456
18089
 */
16457
 
    Py_INCREF(__pyx_v_new_parser);
16458
 
    Py_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18090
    __Pyx_INCREF(__pyx_v_new_parser);
 
18091
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18092
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18093
    __Pyx_GIVEREF(__pyx_v_new_parser);
16459
18094
    __pyx_v_4lxml_9objectify_objectify_parser = __pyx_v_new_parser;
16460
18095
    goto __pyx_L6;
16461
18096
  }
16462
18097
  /*else*/ {
16463
18098
 
16464
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1775
 
18099
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1755
16465
18100
 *         objectify_parser = new_parser
16466
18101
 *     else:
16467
18102
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"             # <<<<<<<<<<<<<<
16468
18103
 * 
16469
18104
 * def makeparser(**kw):
16470
18105
 */
16471
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_793), 0);
16472
 
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1775; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18106
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_856), 0);
 
18107
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1755; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16473
18108
  }
16474
18109
  __pyx_L6:;
16475
18110
 
16476
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18111
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16477
18112
  goto __pyx_L0;
16478
18113
  __pyx_L1_error:;
16479
 
  Py_XDECREF(__pyx_2);
 
18114
  __Pyx_XDECREF(__pyx_t_2);
16480
18115
  __Pyx_AddTraceback("lxml.objectify.set_default_parser");
16481
18116
  __pyx_r = NULL;
16482
18117
  __pyx_L0:;
 
18118
  __Pyx_XGIVEREF(__pyx_r);
 
18119
  __Pyx_FinishRefcountContext();
16483
18120
  return __pyx_r;
16484
18121
}
16485
18122
 
16486
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1777
 
18123
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1757
16487
18124
 *         raise TypeError, u"parser must inherit from lxml.etree.XMLParser"
16488
18125
 * 
16489
18126
 * def makeparser(**kw):             # <<<<<<<<<<<<<<
16497
18134
  PyObject *__pyx_v_kw = 0;
16498
18135
  PyObject *__pyx_v_remove_blank_text;
16499
18136
  PyObject *__pyx_v_parser;
16500
 
  PyObject *__pyx_r;
16501
 
  int __pyx_1;
16502
 
  PyObject *__pyx_2 = 0;
16503
 
  PyObject *__pyx_3 = 0;
16504
 
  PyObject *__pyx_4 = 0;
 
18137
  PyObject *__pyx_r = NULL;
 
18138
  int __pyx_t_1;
 
18139
  PyObject *__pyx_t_2 = NULL;
 
18140
  PyObject *__pyx_t_3 = NULL;
 
18141
  PyObject *__pyx_t_4 = NULL;
 
18142
  __Pyx_SetupRefcountContext("makeparser");
16505
18143
  __pyx_self = __pyx_self;
16506
18144
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
16507
18145
    __Pyx_RaiseArgtupleInvalid("makeparser", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return NULL;}
16508
18146
  if (__pyx_kwds && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "makeparser", 1))) return NULL;
16509
18147
  __pyx_v_kw = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
16510
18148
  if (unlikely(!__pyx_v_kw)) return NULL;
16511
 
  __pyx_v_remove_blank_text = Py_None; Py_INCREF(Py_None);
16512
 
  __pyx_v_parser = Py_None; Py_INCREF(Py_None);
 
18149
  __Pyx_GOTREF(__pyx_v_kw);
 
18150
  __pyx_v_remove_blank_text = Py_None; __Pyx_INCREF(Py_None);
 
18151
  __pyx_v_parser = Py_None; __Pyx_INCREF(Py_None);
16513
18152
 
16514
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1787
 
18153
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1767
16515
18154
 *     ``remove_blank_text`` boolean keyword option yourself.
16516
18155
 *     """
16517
18156
 *     if python.IS_PYTHON3:             # <<<<<<<<<<<<<<
16518
18157
 *         remove_blank_text = u'remove_blank_text'
16519
18158
 *     else:
16520
18159
 */
16521
 
  __pyx_1 = IS_PYTHON3;
16522
 
  if (__pyx_1) {
 
18160
  __pyx_t_1 = IS_PYTHON3;
 
18161
  if (__pyx_t_1) {
16523
18162
 
16524
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1788
 
18163
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1768
16525
18164
 *     """
16526
18165
 *     if python.IS_PYTHON3:
16527
18166
 *         remove_blank_text = u'remove_blank_text'             # <<<<<<<<<<<<<<
16528
18167
 *     else:
16529
18168
 *         remove_blank_text = 'remove_blank_text'
16530
18169
 */
16531
 
    Py_INCREF(((PyObject *)__pyx_kp_794));
16532
 
    Py_DECREF(__pyx_v_remove_blank_text);
16533
 
    __pyx_v_remove_blank_text = ((PyObject *)__pyx_kp_794);
 
18170
    __Pyx_INCREF(((PyObject *)__pyx_kp_857));
 
18171
    __Pyx_DECREF(__pyx_v_remove_blank_text);
 
18172
    __pyx_v_remove_blank_text = ((PyObject *)__pyx_kp_857);
16534
18173
    goto __pyx_L5;
16535
18174
  }
16536
18175
  /*else*/ {
16537
18176
 
16538
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1790
 
18177
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1770
16539
18178
 *         remove_blank_text = u'remove_blank_text'
16540
18179
 *     else:
16541
18180
 *         remove_blank_text = 'remove_blank_text'             # <<<<<<<<<<<<<<
16542
18181
 *     if remove_blank_text not in kw:
16543
18182
 *         kw[remove_blank_text] = True
16544
18183
 */
16545
 
    Py_INCREF(__pyx_kp_795);
16546
 
    Py_DECREF(__pyx_v_remove_blank_text);
16547
 
    __pyx_v_remove_blank_text = __pyx_kp_795;
 
18184
    __Pyx_INCREF(__pyx_kp_858);
 
18185
    __Pyx_DECREF(__pyx_v_remove_blank_text);
 
18186
    __pyx_v_remove_blank_text = __pyx_kp_858;
16548
18187
  }
16549
18188
  __pyx_L5:;
16550
18189
 
16551
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1791
 
18190
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1771
16552
18191
 *     else:
16553
18192
 *         remove_blank_text = 'remove_blank_text'
16554
18193
 *     if remove_blank_text not in kw:             # <<<<<<<<<<<<<<
16555
18194
 *         kw[remove_blank_text] = True
16556
18195
 *     parser = etree.XMLParser(**kw)
16557
18196
 */
16558
 
  __pyx_1 = (!PySequence_Contains(__pyx_v_kw, __pyx_v_remove_blank_text)); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16559
 
  if (__pyx_1) {
 
18197
  __pyx_t_1 = (!PySequence_Contains(__pyx_v_kw, __pyx_v_remove_blank_text)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18198
  if (__pyx_t_1) {
16560
18199
 
16561
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1792
 
18200
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1772
16562
18201
 *         remove_blank_text = 'remove_blank_text'
16563
18202
 *     if remove_blank_text not in kw:
16564
18203
 *         kw[remove_blank_text] = True             # <<<<<<<<<<<<<<
16565
18204
 *     parser = etree.XMLParser(**kw)
16566
18205
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
16567
18206
 */
16568
 
    __pyx_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16569
 
    if (PyObject_SetItem(__pyx_v_kw, __pyx_v_remove_blank_text, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16570
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
18207
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18208
    __Pyx_GOTREF(__pyx_t_2);
 
18209
    if (PyObject_SetItem(__pyx_v_kw, __pyx_v_remove_blank_text, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18210
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16571
18211
    goto __pyx_L6;
16572
18212
  }
16573
18213
  __pyx_L6:;
16574
18214
 
16575
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1793
 
18215
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1773
16576
18216
 *     if remove_blank_text not in kw:
16577
18217
 *         kw[remove_blank_text] = True
16578
18218
 *     parser = etree.XMLParser(**kw)             # <<<<<<<<<<<<<<
16579
18219
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
16580
18220
 *     return parser
16581
18221
 */
16582
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16583
 
  __pyx_3 = PyEval_CallObjectWithKeywords(__pyx_2, ((PyObject *)__pyx_empty_tuple), __pyx_v_kw); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16584
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
16585
 
  Py_DECREF(__pyx_v_parser);
16586
 
  __pyx_v_parser = __pyx_3;
16587
 
  __pyx_3 = 0;
 
18222
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1773; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18223
  __Pyx_GOTREF(__pyx_t_2);
 
18224
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), __pyx_v_kw); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1773; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18225
  __Pyx_GOTREF(__pyx_t_3);
 
18226
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
18227
  __Pyx_DECREF(__pyx_v_parser);
 
18228
  __pyx_v_parser = __pyx_t_3;
 
18229
  __pyx_t_3 = 0;
16588
18230
 
16589
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1794
 
18231
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1774
16590
18232
 *         kw[remove_blank_text] = True
16591
18233
 *     parser = etree.XMLParser(**kw)
16592
18234
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )             # <<<<<<<<<<<<<<
16593
18235
 *     return parser
16594
18236
 * 
16595
18237
 */
16596
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_kp_659); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16597
 
  __pyx_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16598
 
  __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16599
 
  PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
16600
 
  __pyx_3 = 0;
16601
 
  __pyx_3 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1794; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16602
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
16603
 
  Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
16604
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
18238
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_kp_726); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18239
  __Pyx_GOTREF(__pyx_t_3);
 
18240
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18241
  __Pyx_GOTREF(__pyx_t_2);
 
18242
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18243
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
18244
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
 
18245
  __Pyx_GIVEREF(__pyx_t_2);
 
18246
  __pyx_t_2 = 0;
 
18247
  __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18248
  __Pyx_GOTREF(__pyx_t_2);
 
18249
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
18250
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
18251
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
16605
18252
 
16606
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1795
 
18253
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1775
16607
18254
 *     parser = etree.XMLParser(**kw)
16608
18255
 *     parser.set_element_class_lookup( ObjectifyElementClassLookup() )
16609
18256
 *     return parser             # <<<<<<<<<<<<<<
16610
18257
 * 
16611
18258
 * cdef _Element _makeElement(tag, text, attrib, nsmap):
16612
18259
 */
16613
 
  Py_INCREF(__pyx_v_parser);
 
18260
  __Pyx_XDECREF(__pyx_r);
 
18261
  __Pyx_INCREF(__pyx_v_parser);
16614
18262
  __pyx_r = __pyx_v_parser;
16615
18263
  goto __pyx_L0;
16616
18264
 
16617
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18265
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16618
18266
  goto __pyx_L0;
16619
18267
  __pyx_L1_error:;
16620
 
  Py_XDECREF(__pyx_2);
16621
 
  Py_XDECREF(__pyx_3);
16622
 
  Py_XDECREF(__pyx_4);
 
18268
  __Pyx_XDECREF(__pyx_t_2);
 
18269
  __Pyx_XDECREF(__pyx_t_3);
 
18270
  __Pyx_XDECREF(__pyx_t_4);
16623
18271
  __Pyx_AddTraceback("lxml.objectify.makeparser");
16624
18272
  __pyx_r = NULL;
16625
18273
  __pyx_L0:;
16626
 
  Py_DECREF(__pyx_v_kw);
16627
 
  Py_DECREF(__pyx_v_remove_blank_text);
16628
 
  Py_DECREF(__pyx_v_parser);
 
18274
  __Pyx_DECREF(__pyx_v_kw);
 
18275
  __Pyx_DECREF(__pyx_v_remove_blank_text);
 
18276
  __Pyx_DECREF(__pyx_v_parser);
 
18277
  __Pyx_XGIVEREF(__pyx_r);
 
18278
  __Pyx_FinishRefcountContext();
16629
18279
  return __pyx_r;
16630
18280
}
16631
18281
 
16632
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1797
 
18282
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1777
16633
18283
 *     return parser
16634
18284
 * 
16635
18285
 * cdef _Element _makeElement(tag, text, attrib, nsmap):             # <<<<<<<<<<<<<<
16638
18288
 */
16639
18289
 
16640
18290
static  struct LxmlElement *__pyx_f_4lxml_9objectify__makeElement(PyObject *__pyx_v_tag, PyObject *__pyx_v_text, PyObject *__pyx_v_attrib, PyObject *__pyx_v_nsmap) {
16641
 
  struct LxmlElement *__pyx_r;
16642
 
  PyObject *__pyx_1 = 0;
 
18291
  struct LxmlElement *__pyx_r = NULL;
 
18292
  PyObject *__pyx_t_1 = NULL;
 
18293
  __Pyx_SetupRefcountContext("_makeElement");
16643
18294
 
16644
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1798
 
18295
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1778
16645
18296
 * 
16646
18297
 * cdef _Element _makeElement(tag, text, attrib, nsmap):
16647
18298
 *     return cetree.makeElement(tag, None, objectify_parser, text, None, attrib, nsmap)             # <<<<<<<<<<<<<<
16648
18299
 * 
16649
18300
 * ################################################################################
16650
18301
 */
16651
 
  __pyx_1 = ((PyObject *)makeElement(__pyx_v_tag, ((struct LxmlDocument *)Py_None), __pyx_v_4lxml_9objectify_objectify_parser, __pyx_v_text, Py_None, __pyx_v_attrib, __pyx_v_nsmap)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16652
 
  __pyx_r = ((struct LxmlElement *)__pyx_1);
16653
 
  __pyx_1 = 0;
 
18302
  __Pyx_XDECREF(((PyObject *)__pyx_r));
 
18303
  __pyx_t_1 = ((PyObject *)makeElement(__pyx_v_tag, ((struct LxmlDocument *)Py_None), __pyx_v_4lxml_9objectify_objectify_parser, __pyx_v_text, Py_None, __pyx_v_attrib, __pyx_v_nsmap)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18304
  __Pyx_GOTREF(__pyx_t_1);
 
18305
  __pyx_r = ((struct LxmlElement *)__pyx_t_1);
 
18306
  __pyx_t_1 = 0;
16654
18307
  goto __pyx_L0;
16655
18308
 
16656
 
  __pyx_r = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
 
18309
  __pyx_r = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
16657
18310
  goto __pyx_L0;
16658
18311
  __pyx_L1_error:;
16659
 
  Py_XDECREF(__pyx_1);
 
18312
  __Pyx_XDECREF(__pyx_t_1);
16660
18313
  __Pyx_AddTraceback("lxml.objectify._makeElement");
16661
18314
  __pyx_r = 0;
16662
18315
  __pyx_L0:;
 
18316
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
 
18317
  __Pyx_FinishRefcountContext();
16663
18318
  return __pyx_r;
16664
18319
}
16665
18320
 
16666
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1806
 
18321
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1786
16667
18322
 * _fromstring = etree.fromstring
16668
18323
 * 
16669
18324
 * def fromstring(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
16677
18332
  PyObject *__pyx_v_xml = 0;
16678
18333
  PyObject *__pyx_v_parser = 0;
16679
18334
  PyObject *__pyx_v_base_url = 0;
16680
 
  PyObject *__pyx_r;
16681
 
  int __pyx_1;
16682
 
  PyObject *__pyx_2 = 0;
16683
 
  PyObject *__pyx_3 = 0;
16684
 
  PyObject *__pyx_4 = 0;
 
18335
  PyObject *__pyx_r = NULL;
 
18336
  PyObject *__pyx_1 = 0;
 
18337
  int __pyx_t_1;
 
18338
  PyObject *__pyx_t_2 = NULL;
 
18339
  PyObject *__pyx_t_3 = NULL;
16685
18340
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_xml,&__pyx_kp_parser,&__pyx_kp_base_url,0};
 
18341
  __Pyx_SetupRefcountContext("fromstring");
16686
18342
  __pyx_self = __pyx_self;
16687
 
  __pyx_v_parser = Py_None;
16688
 
  __pyx_v_base_url = Py_None;
16689
18343
  if (unlikely(__pyx_kwds)) {
 
18344
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
16690
18345
    PyObject* values[3] = {0,0,0};
16691
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
18346
    values[1] = Py_None;
 
18347
    values[2] = Py_None;
16692
18348
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16693
18349
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16694
18350
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16700
18356
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_xml);
16701
18357
      if (likely(values[0])) kw_args--;
16702
18358
      else goto __pyx_L5_argtuple_error;
 
18359
      case  1:
 
18360
      if (kw_args > 0) {
 
18361
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_parser);
 
18362
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
18363
      }
 
18364
    }
 
18365
    while (kw_args > 0) {
 
18366
      PyObject* value;
 
18367
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_base_url);
 
18368
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
18369
      break;
16703
18370
    }
16704
18371
    if (unlikely(kw_args > 0)) {
16705
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "fromstring") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1806; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18372
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "fromstring") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1786; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16706
18373
    }
16707
18374
    __pyx_v_xml = values[0];
16708
 
    if (values[1]) {
16709
 
      __pyx_v_parser = values[1];
16710
 
    }
16711
 
    if (values[2]) {
16712
 
      __pyx_v_base_url = values[2];
16713
 
    }
 
18375
    __pyx_v_parser = values[1];
 
18376
    __pyx_v_base_url = values[2];
16714
18377
  } else {
 
18378
    __pyx_v_parser = Py_None;
 
18379
    __pyx_v_base_url = Py_None;
16715
18380
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16716
18381
      case  2: __pyx_v_parser = PyTuple_GET_ITEM(__pyx_args, 1);
16717
18382
      case  1: __pyx_v_xml = PyTuple_GET_ITEM(__pyx_args, 0);
16721
18386
  }
16722
18387
  goto __pyx_L4_argument_unpacking_done;
16723
18388
  __pyx_L5_argtuple_error:;
16724
 
  __Pyx_RaiseArgtupleInvalid("fromstring", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1806; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18389
  __Pyx_RaiseArgtupleInvalid("fromstring", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1786; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16725
18390
  __pyx_L3_error:;
16726
18391
  __Pyx_AddTraceback("lxml.objectify.fromstring");
16727
18392
  return NULL;
16728
18393
  __pyx_L4_argument_unpacking_done:;
16729
 
  Py_INCREF(__pyx_v_parser);
 
18394
  __Pyx_INCREF(__pyx_v_parser);
16730
18395
 
16731
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1818
 
18396
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1798
16732
18397
 *     (DTD, XInclude, ...).
16733
18398
 *     """
16734
18399
 *     if parser is None:             # <<<<<<<<<<<<<<
16735
18400
 *         parser = objectify_parser
16736
18401
 *     return _fromstring(xml, parser, base_url=base_url)
16737
18402
 */
16738
 
  __pyx_1 = (__pyx_v_parser == Py_None);
16739
 
  if (__pyx_1) {
 
18403
  __pyx_t_1 = (__pyx_v_parser == Py_None);
 
18404
  if (__pyx_t_1) {
16740
18405
 
16741
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1819
 
18406
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1799
16742
18407
 *     """
16743
18408
 *     if parser is None:
16744
18409
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
16745
18410
 *     return _fromstring(xml, parser, base_url=base_url)
16746
18411
 * 
16747
18412
 */
16748
 
    Py_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
16749
 
    Py_DECREF(__pyx_v_parser);
 
18413
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18414
    __Pyx_DECREF(__pyx_v_parser);
16750
18415
    __pyx_v_parser = __pyx_v_4lxml_9objectify_objectify_parser;
16751
18416
    goto __pyx_L6;
16752
18417
  }
16753
18418
  __pyx_L6:;
16754
18419
 
16755
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1820
 
18420
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1800
16756
18421
 *     if parser is None:
16757
18422
 *         parser = objectify_parser
16758
18423
 *     return _fromstring(xml, parser, base_url=base_url)             # <<<<<<<<<<<<<<
16759
18424
 * 
16760
18425
 * def XML(xml, parser=None, *, base_url=None):
16761
18426
 */
16762
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1820; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16763
 
  Py_INCREF(__pyx_v_xml);
16764
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_xml);
16765
 
  Py_INCREF(__pyx_v_parser);
16766
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_parser);
16767
 
  __pyx_3 = PyDict_New(); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1820; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16768
 
  if (PyDict_SetItem(__pyx_3, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1820; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16769
 
  __pyx_4 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__fromstring, ((PyObject *)__pyx_2), ((PyObject *)__pyx_3)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1820; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16770
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
16771
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
16772
 
  __pyx_r = __pyx_4;
16773
 
  __pyx_4 = 0;
 
18427
  __Pyx_XDECREF(__pyx_r);
 
18428
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18429
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
18430
  __Pyx_INCREF(__pyx_v_xml);
 
18431
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_xml);
 
18432
  __Pyx_GIVEREF(__pyx_v_xml);
 
18433
  __Pyx_INCREF(__pyx_v_parser);
 
18434
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_parser);
 
18435
  __Pyx_GIVEREF(__pyx_v_parser);
 
18436
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18437
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
18438
  if (PyDict_SetItem(__pyx_1, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18439
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__fromstring, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18440
  __Pyx_GOTREF(__pyx_t_3);
 
18441
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
18442
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
18443
  __pyx_r = __pyx_t_3;
 
18444
  __pyx_t_3 = 0;
16774
18445
  goto __pyx_L0;
16775
18446
 
16776
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18447
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16777
18448
  goto __pyx_L0;
16778
18449
  __pyx_L1_error:;
16779
 
  Py_XDECREF(__pyx_2);
16780
 
  Py_XDECREF(__pyx_3);
16781
 
  Py_XDECREF(__pyx_4);
 
18450
  __Pyx_XDECREF(__pyx_1);
 
18451
  __Pyx_XDECREF(__pyx_t_2);
 
18452
  __Pyx_XDECREF(__pyx_t_3);
16782
18453
  __Pyx_AddTraceback("lxml.objectify.fromstring");
16783
18454
  __pyx_r = NULL;
16784
18455
  __pyx_L0:;
16785
 
  Py_DECREF(__pyx_v_parser);
 
18456
  __Pyx_DECREF(__pyx_v_parser);
 
18457
  __Pyx_XGIVEREF(__pyx_r);
 
18458
  __Pyx_FinishRefcountContext();
16786
18459
  return __pyx_r;
16787
18460
}
16788
18461
 
16789
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1822
 
18462
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1802
16790
18463
 *     return _fromstring(xml, parser, base_url=base_url)
16791
18464
 * 
16792
18465
 * def XML(xml, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
16800
18473
  PyObject *__pyx_v_xml = 0;
16801
18474
  PyObject *__pyx_v_parser = 0;
16802
18475
  PyObject *__pyx_v_base_url = 0;
16803
 
  PyObject *__pyx_r;
16804
 
  int __pyx_1;
16805
 
  PyObject *__pyx_2 = 0;
16806
 
  PyObject *__pyx_3 = 0;
16807
 
  PyObject *__pyx_4 = 0;
 
18476
  PyObject *__pyx_r = NULL;
 
18477
  PyObject *__pyx_1 = 0;
 
18478
  int __pyx_t_1;
 
18479
  PyObject *__pyx_t_2 = NULL;
 
18480
  PyObject *__pyx_t_3 = NULL;
16808
18481
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_xml,&__pyx_kp_parser,&__pyx_kp_base_url,0};
 
18482
  __Pyx_SetupRefcountContext("XML");
16809
18483
  __pyx_self = __pyx_self;
16810
 
  __pyx_v_parser = Py_None;
16811
 
  __pyx_v_base_url = Py_None;
16812
18484
  if (unlikely(__pyx_kwds)) {
 
18485
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
16813
18486
    PyObject* values[3] = {0,0,0};
16814
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
18487
    values[1] = Py_None;
 
18488
    values[2] = Py_None;
16815
18489
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16816
18490
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16817
18491
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16823
18497
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_xml);
16824
18498
      if (likely(values[0])) kw_args--;
16825
18499
      else goto __pyx_L5_argtuple_error;
 
18500
      case  1:
 
18501
      if (kw_args > 0) {
 
18502
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_parser);
 
18503
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
18504
      }
 
18505
    }
 
18506
    while (kw_args > 0) {
 
18507
      PyObject* value;
 
18508
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_base_url);
 
18509
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
18510
      break;
16826
18511
    }
16827
18512
    if (unlikely(kw_args > 0)) {
16828
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "XML") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1822; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18513
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "XML") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1802; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16829
18514
    }
16830
18515
    __pyx_v_xml = values[0];
16831
 
    if (values[1]) {
16832
 
      __pyx_v_parser = values[1];
16833
 
    }
16834
 
    if (values[2]) {
16835
 
      __pyx_v_base_url = values[2];
16836
 
    }
 
18516
    __pyx_v_parser = values[1];
 
18517
    __pyx_v_base_url = values[2];
16837
18518
  } else {
 
18519
    __pyx_v_parser = Py_None;
 
18520
    __pyx_v_base_url = Py_None;
16838
18521
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16839
18522
      case  2: __pyx_v_parser = PyTuple_GET_ITEM(__pyx_args, 1);
16840
18523
      case  1: __pyx_v_xml = PyTuple_GET_ITEM(__pyx_args, 0);
16844
18527
  }
16845
18528
  goto __pyx_L4_argument_unpacking_done;
16846
18529
  __pyx_L5_argtuple_error:;
16847
 
  __Pyx_RaiseArgtupleInvalid("XML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1822; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18530
  __Pyx_RaiseArgtupleInvalid("XML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1802; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16848
18531
  __pyx_L3_error:;
16849
18532
  __Pyx_AddTraceback("lxml.objectify.XML");
16850
18533
  return NULL;
16851
18534
  __pyx_L4_argument_unpacking_done:;
16852
 
  Py_INCREF(__pyx_v_parser);
 
18535
  __Pyx_INCREF(__pyx_v_parser);
16853
18536
 
16854
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1834
 
18537
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1814
16855
18538
 *     (DTD, XInclude, ...).
16856
18539
 *     """
16857
18540
 *     if parser is None:             # <<<<<<<<<<<<<<
16858
18541
 *         parser = objectify_parser
16859
18542
 *     return _fromstring(xml, parser, base_url=base_url)
16860
18543
 */
16861
 
  __pyx_1 = (__pyx_v_parser == Py_None);
16862
 
  if (__pyx_1) {
 
18544
  __pyx_t_1 = (__pyx_v_parser == Py_None);
 
18545
  if (__pyx_t_1) {
16863
18546
 
16864
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1835
 
18547
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1815
16865
18548
 *     """
16866
18549
 *     if parser is None:
16867
18550
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
16868
18551
 *     return _fromstring(xml, parser, base_url=base_url)
16869
18552
 * 
16870
18553
 */
16871
 
    Py_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
16872
 
    Py_DECREF(__pyx_v_parser);
 
18554
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18555
    __Pyx_DECREF(__pyx_v_parser);
16873
18556
    __pyx_v_parser = __pyx_v_4lxml_9objectify_objectify_parser;
16874
18557
    goto __pyx_L6;
16875
18558
  }
16876
18559
  __pyx_L6:;
16877
18560
 
16878
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1836
 
18561
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1816
16879
18562
 *     if parser is None:
16880
18563
 *         parser = objectify_parser
16881
18564
 *     return _fromstring(xml, parser, base_url=base_url)             # <<<<<<<<<<<<<<
16882
18565
 * 
16883
18566
 * cdef object _parse
16884
18567
 */
16885
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16886
 
  Py_INCREF(__pyx_v_xml);
16887
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_xml);
16888
 
  Py_INCREF(__pyx_v_parser);
16889
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_parser);
16890
 
  __pyx_3 = PyDict_New(); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16891
 
  if (PyDict_SetItem(__pyx_3, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16892
 
  __pyx_4 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__fromstring, ((PyObject *)__pyx_2), ((PyObject *)__pyx_3)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1836; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16893
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
16894
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
16895
 
  __pyx_r = __pyx_4;
16896
 
  __pyx_4 = 0;
 
18568
  __Pyx_XDECREF(__pyx_r);
 
18569
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18570
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
18571
  __Pyx_INCREF(__pyx_v_xml);
 
18572
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_xml);
 
18573
  __Pyx_GIVEREF(__pyx_v_xml);
 
18574
  __Pyx_INCREF(__pyx_v_parser);
 
18575
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_parser);
 
18576
  __Pyx_GIVEREF(__pyx_v_parser);
 
18577
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18578
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
18579
  if (PyDict_SetItem(__pyx_1, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18580
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__fromstring, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18581
  __Pyx_GOTREF(__pyx_t_3);
 
18582
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
18583
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
18584
  __pyx_r = __pyx_t_3;
 
18585
  __pyx_t_3 = 0;
16897
18586
  goto __pyx_L0;
16898
18587
 
16899
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18588
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
16900
18589
  goto __pyx_L0;
16901
18590
  __pyx_L1_error:;
16902
 
  Py_XDECREF(__pyx_2);
16903
 
  Py_XDECREF(__pyx_3);
16904
 
  Py_XDECREF(__pyx_4);
 
18591
  __Pyx_XDECREF(__pyx_1);
 
18592
  __Pyx_XDECREF(__pyx_t_2);
 
18593
  __Pyx_XDECREF(__pyx_t_3);
16905
18594
  __Pyx_AddTraceback("lxml.objectify.XML");
16906
18595
  __pyx_r = NULL;
16907
18596
  __pyx_L0:;
16908
 
  Py_DECREF(__pyx_v_parser);
 
18597
  __Pyx_DECREF(__pyx_v_parser);
 
18598
  __Pyx_XGIVEREF(__pyx_r);
 
18599
  __Pyx_FinishRefcountContext();
16909
18600
  return __pyx_r;
16910
18601
}
16911
18602
 
16912
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1841
 
18603
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1821
16913
18604
 * _parse = etree.parse
16914
18605
 * 
16915
18606
 * def parse(f, parser=None, *, base_url=None):             # <<<<<<<<<<<<<<
16923
18614
  PyObject *__pyx_v_f = 0;
16924
18615
  PyObject *__pyx_v_parser = 0;
16925
18616
  PyObject *__pyx_v_base_url = 0;
16926
 
  PyObject *__pyx_r;
16927
 
  int __pyx_1;
16928
 
  PyObject *__pyx_2 = 0;
16929
 
  PyObject *__pyx_3 = 0;
16930
 
  PyObject *__pyx_4 = 0;
 
18617
  PyObject *__pyx_r = NULL;
 
18618
  PyObject *__pyx_1 = 0;
 
18619
  int __pyx_t_1;
 
18620
  PyObject *__pyx_t_2 = NULL;
 
18621
  PyObject *__pyx_t_3 = NULL;
16931
18622
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_f,&__pyx_kp_parser,&__pyx_kp_base_url,0};
 
18623
  __Pyx_SetupRefcountContext("parse");
16932
18624
  __pyx_self = __pyx_self;
16933
 
  __pyx_v_parser = Py_None;
16934
 
  __pyx_v_base_url = Py_None;
16935
18625
  if (unlikely(__pyx_kwds)) {
 
18626
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
16936
18627
    PyObject* values[3] = {0,0,0};
16937
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
18628
    values[1] = Py_None;
 
18629
    values[2] = Py_None;
16938
18630
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16939
18631
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16940
18632
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16946
18638
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_f);
16947
18639
      if (likely(values[0])) kw_args--;
16948
18640
      else goto __pyx_L5_argtuple_error;
 
18641
      case  1:
 
18642
      if (kw_args > 0) {
 
18643
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_parser);
 
18644
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
18645
      }
 
18646
    }
 
18647
    while (kw_args > 0) {
 
18648
      PyObject* value;
 
18649
      value = PyDict_GetItem(__pyx_kwds, __pyx_kp_base_url);
 
18650
      if (value) { values[2] = value; if (!(--kw_args)) break; }
 
18651
      break;
16949
18652
    }
16950
18653
    if (unlikely(kw_args > 0)) {
16951
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "parse") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18654
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "parse") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1821; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16952
18655
    }
16953
18656
    __pyx_v_f = values[0];
16954
 
    if (values[1]) {
16955
 
      __pyx_v_parser = values[1];
16956
 
    }
16957
 
    if (values[2]) {
16958
 
      __pyx_v_base_url = values[2];
16959
 
    }
 
18657
    __pyx_v_parser = values[1];
 
18658
    __pyx_v_base_url = values[2];
16960
18659
  } else {
 
18660
    __pyx_v_parser = Py_None;
 
18661
    __pyx_v_base_url = Py_None;
16961
18662
    switch (PyTuple_GET_SIZE(__pyx_args)) {
16962
18663
      case  2: __pyx_v_parser = PyTuple_GET_ITEM(__pyx_args, 1);
16963
18664
      case  1: __pyx_v_f = PyTuple_GET_ITEM(__pyx_args, 0);
16967
18668
  }
16968
18669
  goto __pyx_L4_argument_unpacking_done;
16969
18670
  __pyx_L5_argtuple_error:;
16970
 
  __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18671
  __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1821; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
16971
18672
  __pyx_L3_error:;
16972
18673
  __Pyx_AddTraceback("lxml.objectify.parse");
16973
18674
  return NULL;
16974
18675
  __pyx_L4_argument_unpacking_done:;
16975
 
  Py_INCREF(__pyx_v_parser);
 
18676
  __Pyx_INCREF(__pyx_v_parser);
16976
18677
 
16977
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1852
 
18678
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1832
16978
18679
 *     up external entities (DTD, XInclude, ...) with relative paths.
16979
18680
 *     """
16980
18681
 *     if parser is None:             # <<<<<<<<<<<<<<
16981
18682
 *         parser = objectify_parser
16982
18683
 *     return _parse(f, parser, base_url=base_url)
16983
18684
 */
16984
 
  __pyx_1 = (__pyx_v_parser == Py_None);
16985
 
  if (__pyx_1) {
 
18685
  __pyx_t_1 = (__pyx_v_parser == Py_None);
 
18686
  if (__pyx_t_1) {
16986
18687
 
16987
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1853
 
18688
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1833
16988
18689
 *     """
16989
18690
 *     if parser is None:
16990
18691
 *         parser = objectify_parser             # <<<<<<<<<<<<<<
16991
18692
 *     return _parse(f, parser, base_url=base_url)
16992
18693
 * 
16993
18694
 */
16994
 
    Py_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
16995
 
    Py_DECREF(__pyx_v_parser);
 
18695
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
18696
    __Pyx_DECREF(__pyx_v_parser);
16996
18697
    __pyx_v_parser = __pyx_v_4lxml_9objectify_objectify_parser;
16997
18698
    goto __pyx_L6;
16998
18699
  }
16999
18700
  __pyx_L6:;
17000
18701
 
17001
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1854
 
18702
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1834
17002
18703
 *     if parser is None:
17003
18704
 *         parser = objectify_parser
17004
18705
 *     return _parse(f, parser, base_url=base_url)             # <<<<<<<<<<<<<<
17005
18706
 * 
17006
 
 * cdef object _DEFAULT_NSMAP
 
18707
 * cdef dict _DEFAULT_NSMAP
17007
18708
 */
17008
 
  __pyx_2 = PyTuple_New(2); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17009
 
  Py_INCREF(__pyx_v_f);
17010
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_f);
17011
 
  Py_INCREF(__pyx_v_parser);
17012
 
  PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_parser);
17013
 
  __pyx_3 = PyDict_New(); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17014
 
  if (PyDict_SetItem(__pyx_3, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17015
 
  __pyx_4 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__parse, ((PyObject *)__pyx_2), ((PyObject *)__pyx_3)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17016
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
17017
 
  Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
17018
 
  __pyx_r = __pyx_4;
17019
 
  __pyx_4 = 0;
 
18709
  __Pyx_XDECREF(__pyx_r);
 
18710
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18711
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
18712
  __Pyx_INCREF(__pyx_v_f);
 
18713
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_f);
 
18714
  __Pyx_GIVEREF(__pyx_v_f);
 
18715
  __Pyx_INCREF(__pyx_v_parser);
 
18716
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_parser);
 
18717
  __Pyx_GIVEREF(__pyx_v_parser);
 
18718
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18719
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
18720
  if (PyDict_SetItem(__pyx_1, __pyx_kp_base_url, __pyx_v_base_url) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18721
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_v_4lxml_9objectify__parse, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18722
  __Pyx_GOTREF(__pyx_t_3);
 
18723
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
18724
  __Pyx_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
18725
  __pyx_r = __pyx_t_3;
 
18726
  __pyx_t_3 = 0;
17020
18727
  goto __pyx_L0;
17021
18728
 
17022
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18729
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17023
18730
  goto __pyx_L0;
17024
18731
  __pyx_L1_error:;
17025
 
  Py_XDECREF(__pyx_2);
17026
 
  Py_XDECREF(__pyx_3);
17027
 
  Py_XDECREF(__pyx_4);
 
18732
  __Pyx_XDECREF(__pyx_1);
 
18733
  __Pyx_XDECREF(__pyx_t_2);
 
18734
  __Pyx_XDECREF(__pyx_t_3);
17028
18735
  __Pyx_AddTraceback("lxml.objectify.parse");
17029
18736
  __pyx_r = NULL;
17030
18737
  __pyx_L0:;
17031
 
  Py_DECREF(__pyx_v_parser);
 
18738
  __Pyx_DECREF(__pyx_v_parser);
 
18739
  __Pyx_XGIVEREF(__pyx_r);
 
18740
  __Pyx_FinishRefcountContext();
17032
18741
  return __pyx_r;
17033
18742
}
17034
18743
 
17035
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1863
 
18744
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1843
17036
18745
 * E = ElementMaker()
17037
18746
 * 
17038
18747
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):             # <<<<<<<<<<<<<<
17048
18757
  PyObject *__pyx_v_nsmap = 0;
17049
18758
  PyObject *__pyx_v__pytype = 0;
17050
18759
  PyObject *__pyx_v__attributes = 0;
17051
 
  PyObject *__pyx_r;
17052
 
  int __pyx_1;
17053
 
  Py_ssize_t __pyx_2 = 0;
17054
 
  PyObject *__pyx_3 = 0;
17055
 
  PyObject *__pyx_4 = 0;
17056
 
  PyObject *__pyx_5 = 0;
 
18760
  PyObject *__pyx_r = NULL;
 
18761
  PyObject *__pyx_1 = 0;
 
18762
  int __pyx_t_1;
 
18763
  Py_ssize_t __pyx_t_2;
 
18764
  PyObject *__pyx_t_3 = NULL;
 
18765
  PyObject *__pyx_t_4 = NULL;
 
18766
  PyObject *__pyx_t_5 = NULL;
17057
18767
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp__tag,&__pyx_kp_attrib,&__pyx_kp_nsmap,&__pyx_kp__pytype,0};
 
18768
  __Pyx_SetupRefcountContext("Element");
17058
18769
  __pyx_self = __pyx_self;
17059
 
  __pyx_v_attrib = Py_None;
17060
 
  __pyx_v_nsmap = Py_None;
17061
 
  __pyx_v__pytype = Py_None;
17062
18770
  __pyx_v__attributes = PyDict_New(); if (unlikely(!__pyx_v__attributes)) return NULL;
 
18771
  __Pyx_GOTREF(__pyx_v__attributes);
17063
18772
  if (unlikely(__pyx_kwds)) {
 
18773
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
17064
18774
    PyObject* values[4] = {0,0,0,0};
17065
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
18775
    values[1] = Py_None;
 
18776
    values[2] = Py_None;
 
18777
    values[3] = Py_None;
17066
18778
    switch (PyTuple_GET_SIZE(__pyx_args)) {
17067
18779
      case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17068
18780
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17075
18787
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp__tag);
17076
18788
      if (likely(values[0])) kw_args--;
17077
18789
      else goto __pyx_L5_argtuple_error;
 
18790
      case  1:
 
18791
      if (kw_args > 0) {
 
18792
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_attrib);
 
18793
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
18794
      }
 
18795
      case  2:
 
18796
      if (kw_args > 0) {
 
18797
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_nsmap);
 
18798
        if (unlikely(value)) { values[2] = value; kw_args--; }
 
18799
      }
17078
18800
    }
17079
18801
    if (unlikely(kw_args > 0)) {
17080
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, PyTuple_GET_SIZE(__pyx_args), "Element") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1863; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18802
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, PyTuple_GET_SIZE(__pyx_args), "Element") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1843; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
17081
18803
    }
17082
18804
    __pyx_v__tag = values[0];
17083
 
    if (values[1]) {
17084
 
      __pyx_v_attrib = values[1];
17085
 
    }
17086
 
    if (values[2]) {
17087
 
      __pyx_v_nsmap = values[2];
17088
 
    }
17089
 
    if (values[3]) {
17090
 
      __pyx_v__pytype = values[3];
17091
 
    }
 
18805
    __pyx_v_attrib = values[1];
 
18806
    __pyx_v_nsmap = values[2];
 
18807
    __pyx_v__pytype = values[3];
17092
18808
  } else {
 
18809
    __pyx_v_attrib = Py_None;
 
18810
    __pyx_v_nsmap = Py_None;
 
18811
    __pyx_v__pytype = Py_None;
17093
18812
    switch (PyTuple_GET_SIZE(__pyx_args)) {
17094
18813
      case  3: __pyx_v_nsmap = PyTuple_GET_ITEM(__pyx_args, 2);
17095
18814
      case  2: __pyx_v_attrib = PyTuple_GET_ITEM(__pyx_args, 1);
17100
18819
  }
17101
18820
  goto __pyx_L4_argument_unpacking_done;
17102
18821
  __pyx_L5_argtuple_error:;
17103
 
  __Pyx_RaiseArgtupleInvalid("Element", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1863; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
18822
  __Pyx_RaiseArgtupleInvalid("Element", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1843; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
17104
18823
  __pyx_L3_error:;
17105
 
  Py_DECREF(__pyx_v__attributes);
 
18824
  __Pyx_DECREF(__pyx_v__attributes);
17106
18825
  __Pyx_AddTraceback("lxml.objectify.Element");
17107
18826
  return NULL;
17108
18827
  __pyx_L4_argument_unpacking_done:;
17109
 
  Py_INCREF(__pyx_v_nsmap);
17110
 
  Py_INCREF(__pyx_v__pytype);
 
18828
  __Pyx_INCREF(__pyx_v_nsmap);
 
18829
  __Pyx_INCREF(__pyx_v__pytype);
17111
18830
 
17112
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1871
 
18831
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1851
17113
18832
 *     NOTE: requires parser based element class lookup activated in lxml.etree!
17114
18833
 *     """
17115
18834
 *     if attrib is not None:             # <<<<<<<<<<<<<<
17116
18835
 *         if python.PyDict_Size(_attributes):
17117
18836
 *             attrib.update(_attributes)
17118
18837
 */
17119
 
  __pyx_1 = (__pyx_v_attrib != Py_None);
17120
 
  if (__pyx_1) {
 
18838
  __pyx_t_1 = (__pyx_v_attrib != Py_None);
 
18839
  if (__pyx_t_1) {
17121
18840
 
17122
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1872
 
18841
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1852
17123
18842
 *     """
17124
18843
 *     if attrib is not None:
17125
18844
 *         if python.PyDict_Size(_attributes):             # <<<<<<<<<<<<<<
17126
18845
 *             attrib.update(_attributes)
17127
18846
 *         _attributes = attrib
17128
18847
 */
17129
 
    __pyx_2 = PyDict_Size(__pyx_v__attributes);
17130
 
    if (__pyx_2) {
 
18848
    __pyx_t_2 = PyDict_Size(__pyx_v__attributes);
 
18849
    if (__pyx_t_2) {
17131
18850
 
17132
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1873
 
18851
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1853
17133
18852
 *     if attrib is not None:
17134
18853
 *         if python.PyDict_Size(_attributes):
17135
18854
 *             attrib.update(_attributes)             # <<<<<<<<<<<<<<
17136
18855
 *         _attributes = attrib
17137
18856
 *     if _pytype is None:
17138
18857
 */
17139
 
      __pyx_3 = PyObject_GetAttr(__pyx_v_attrib, __pyx_kp_update); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1873; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17140
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1873; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17141
 
      Py_INCREF(__pyx_v__attributes);
17142
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v__attributes);
17143
 
      __pyx_5 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1873; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17144
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
17145
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17146
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
18858
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_attrib, __pyx_kp_update); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18859
      __Pyx_GOTREF(__pyx_t_3);
 
18860
      __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18861
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
18862
      __Pyx_INCREF(__pyx_v__attributes);
 
18863
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__attributes);
 
18864
      __Pyx_GIVEREF(__pyx_v__attributes);
 
18865
      __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18866
      __Pyx_GOTREF(__pyx_t_5);
 
18867
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
18868
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
18869
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
17147
18870
      goto __pyx_L7;
17148
18871
    }
17149
18872
    __pyx_L7:;
17150
18873
 
17151
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1874
 
18874
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1854
17152
18875
 *         if python.PyDict_Size(_attributes):
17153
18876
 *             attrib.update(_attributes)
17154
18877
 *         _attributes = attrib             # <<<<<<<<<<<<<<
17155
18878
 *     if _pytype is None:
17156
18879
 *         _pytype = TREE_PYTYPE_NAME
17157
18880
 */
17158
 
    Py_INCREF(__pyx_v_attrib);
17159
 
    Py_DECREF(__pyx_v__attributes);
 
18881
    __Pyx_INCREF(__pyx_v_attrib);
 
18882
    __Pyx_DECREF(__pyx_v__attributes);
17160
18883
    __pyx_v__attributes = __pyx_v_attrib;
17161
18884
    goto __pyx_L6;
17162
18885
  }
17163
18886
  __pyx_L6:;
17164
18887
 
17165
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1875
 
18888
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1855
17166
18889
 *             attrib.update(_attributes)
17167
18890
 *         _attributes = attrib
17168
18891
 *     if _pytype is None:             # <<<<<<<<<<<<<<
17169
18892
 *         _pytype = TREE_PYTYPE_NAME
17170
18893
 *     if nsmap is None:
17171
18894
 */
17172
 
  __pyx_1 = (__pyx_v__pytype == Py_None);
17173
 
  if (__pyx_1) {
 
18895
  __pyx_t_1 = (__pyx_v__pytype == Py_None);
 
18896
  if (__pyx_t_1) {
17174
18897
 
17175
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1876
 
18898
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1856
17176
18899
 *         _attributes = attrib
17177
18900
 *     if _pytype is None:
17178
18901
 *         _pytype = TREE_PYTYPE_NAME             # <<<<<<<<<<<<<<
17179
18902
 *     if nsmap is None:
17180
18903
 *         nsmap = _DEFAULT_NSMAP
17181
18904
 */
17182
 
    Py_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
17183
 
    Py_DECREF(__pyx_v__pytype);
 
18905
    __Pyx_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
18906
    __Pyx_DECREF(__pyx_v__pytype);
17184
18907
    __pyx_v__pytype = __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME;
17185
18908
    goto __pyx_L8;
17186
18909
  }
17187
18910
  __pyx_L8:;
17188
18911
 
17189
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1877
 
18912
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1857
17190
18913
 *     if _pytype is None:
17191
18914
 *         _pytype = TREE_PYTYPE_NAME
17192
18915
 *     if nsmap is None:             # <<<<<<<<<<<<<<
17193
18916
 *         nsmap = _DEFAULT_NSMAP
17194
18917
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
17195
18918
 */
17196
 
  __pyx_1 = (__pyx_v_nsmap == Py_None);
17197
 
  if (__pyx_1) {
 
18919
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
 
18920
  if (__pyx_t_1) {
17198
18921
 
17199
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1878
 
18922
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1858
17200
18923
 *         _pytype = TREE_PYTYPE_NAME
17201
18924
 *     if nsmap is None:
17202
18925
 *         nsmap = _DEFAULT_NSMAP             # <<<<<<<<<<<<<<
17203
18926
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
17204
18927
 *     return _makeElement(_tag, None, _attributes, nsmap)
17205
18928
 */
17206
 
    Py_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
17207
 
    Py_DECREF(__pyx_v_nsmap);
17208
 
    __pyx_v_nsmap = __pyx_v_4lxml_9objectify__DEFAULT_NSMAP;
 
18929
    __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
18930
    __Pyx_DECREF(__pyx_v_nsmap);
 
18931
    __pyx_v_nsmap = ((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
17209
18932
    goto __pyx_L9;
17210
18933
  }
17211
18934
  __pyx_L9:;
17212
18935
 
17213
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1879
 
18936
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1859
17214
18937
 *     if nsmap is None:
17215
18938
 *         nsmap = _DEFAULT_NSMAP
17216
18939
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype             # <<<<<<<<<<<<<<
17217
18940
 *     return _makeElement(_tag, None, _attributes, nsmap)
17218
18941
 * 
17219
18942
 */
17220
 
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1879; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17221
 
  if (PyObject_SetItem(__pyx_v__attributes, __pyx_3, __pyx_v__pytype) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1879; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17222
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
18943
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18944
  __Pyx_GOTREF(__pyx_1);
 
18945
  if (PyObject_SetItem(__pyx_v__attributes, __pyx_1, __pyx_v__pytype) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18946
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
17223
18947
 
17224
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1880
 
18948
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1860
17225
18949
 *         nsmap = _DEFAULT_NSMAP
17226
18950
 *     _attributes[PYTYPE_ATTRIBUTE] = _pytype
17227
18951
 *     return _makeElement(_tag, None, _attributes, nsmap)             # <<<<<<<<<<<<<<
17228
18952
 * 
17229
18953
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,
17230
18954
 */
17231
 
  __pyx_4 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(__pyx_v__tag, Py_None, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17232
 
  __pyx_r = __pyx_4;
17233
 
  __pyx_4 = 0;
 
18955
  __Pyx_XDECREF(__pyx_r);
 
18956
  __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(__pyx_v__tag, Py_None, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
18957
  __Pyx_GOTREF(__pyx_t_5);
 
18958
  __pyx_r = __pyx_t_5;
 
18959
  __pyx_t_5 = 0;
17234
18960
  goto __pyx_L0;
17235
18961
 
17236
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
18962
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
17237
18963
  goto __pyx_L0;
17238
18964
  __pyx_L1_error:;
17239
 
  Py_XDECREF(__pyx_3);
17240
 
  Py_XDECREF(__pyx_4);
17241
 
  Py_XDECREF(__pyx_5);
 
18965
  __Pyx_XDECREF(__pyx_1);
 
18966
  __Pyx_XDECREF(__pyx_t_3);
 
18967
  __Pyx_XDECREF(__pyx_t_4);
 
18968
  __Pyx_XDECREF(__pyx_t_5);
17242
18969
  __Pyx_AddTraceback("lxml.objectify.Element");
17243
18970
  __pyx_r = NULL;
17244
18971
  __pyx_L0:;
17245
 
  Py_DECREF(__pyx_v__attributes);
17246
 
  Py_DECREF(__pyx_v_nsmap);
17247
 
  Py_DECREF(__pyx_v__pytype);
 
18972
  __Pyx_DECREF(__pyx_v__attributes);
 
18973
  __Pyx_DECREF(__pyx_v_nsmap);
 
18974
  __Pyx_DECREF(__pyx_v__pytype);
 
18975
  __Pyx_XGIVEREF(__pyx_r);
 
18976
  __Pyx_FinishRefcountContext();
17248
18977
  return __pyx_r;
17249
18978
}
17250
18979
 
17251
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1882
 
18980
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1862
17252
18981
 *     return _makeElement(_tag, None, _attributes, nsmap)
17253
18982
 * 
17254
18983
 * def DataElement(_value, attrib=None, nsmap=None, *, _pytype=None, _xsi=None,             # <<<<<<<<<<<<<<
17272
19001
  PyObject *__pyx_v_ns;
17273
19002
  PyObject *__pyx_v_strval;
17274
19003
  PyObject *__pyx_v_type_check;
17275
 
  PyObject *__pyx_r;
17276
 
  int __pyx_1;
17277
 
  int __pyx_2;
17278
 
  Py_ssize_t __pyx_3 = 0;
17279
 
  PyObject *__pyx_4 = 0;
17280
 
  PyObject *__pyx_5 = 0;
17281
 
  PyObject *__pyx_6 = 0;
17282
 
  PyObject *__pyx_7 = 0;
17283
 
  int __pyx_8;
17284
 
  PyObject *__pyx_t_1 = NULL;
17285
 
  PyObject *__pyx_t_2 = NULL;
 
19004
  PyObject *__pyx_r = NULL;
 
19005
  PyObject *__pyx_1 = 0;
 
19006
  PyObject *__pyx_2 = 0;
 
19007
  PyObject *__pyx_3 = 0;
 
19008
  int __pyx_t_1;
 
19009
  int __pyx_t_2;
 
19010
  int __pyx_t_3;
 
19011
  Py_ssize_t __pyx_t_4;
 
19012
  PyObject *__pyx_t_5 = NULL;
 
19013
  PyObject *__pyx_t_6 = NULL;
 
19014
  PyObject *__pyx_t_7 = NULL;
 
19015
  int __pyx_t_8;
17286
19016
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp__value,&__pyx_kp_attrib,&__pyx_kp_nsmap,&__pyx_kp__pytype,&__pyx_kp__xsi,0};
 
19017
  __Pyx_SetupRefcountContext("DataElement");
17287
19018
  __pyx_self = __pyx_self;
17288
 
  __pyx_v_attrib = Py_None;
17289
 
  __pyx_v_nsmap = Py_None;
17290
 
  __pyx_v__pytype = Py_None;
17291
 
  __pyx_v__xsi = Py_None;
17292
19019
  __pyx_v__attributes = PyDict_New(); if (unlikely(!__pyx_v__attributes)) return NULL;
 
19020
  __Pyx_GOTREF(__pyx_v__attributes);
17293
19021
  if (unlikely(__pyx_kwds)) {
 
19022
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
17294
19023
    PyObject* values[5] = {0,0,0,0,0};
17295
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
 
19024
    values[1] = Py_None;
 
19025
    values[2] = Py_None;
 
19026
    values[3] = Py_None;
 
19027
    values[4] = Py_None;
17296
19028
    switch (PyTuple_GET_SIZE(__pyx_args)) {
17297
19029
      case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17298
19030
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17305
19037
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp__value);
17306
19038
      if (likely(values[0])) kw_args--;
17307
19039
      else goto __pyx_L5_argtuple_error;
 
19040
      case  1:
 
19041
      if (kw_args > 0) {
 
19042
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_attrib);
 
19043
        if (unlikely(value)) { values[1] = value; kw_args--; }
 
19044
      }
 
19045
      case  2:
 
19046
      if (kw_args > 0) {
 
19047
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_nsmap);
 
19048
        if (unlikely(value)) { values[2] = value; kw_args--; }
 
19049
      }
17308
19050
    }
17309
19051
    if (unlikely(kw_args > 0)) {
17310
 
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, PyTuple_GET_SIZE(__pyx_args), "DataElement") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1882; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
19052
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__attributes, values, PyTuple_GET_SIZE(__pyx_args), "DataElement") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1862; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
17311
19053
    }
17312
19054
    __pyx_v__value = values[0];
17313
 
    if (values[1]) {
17314
 
      __pyx_v_attrib = values[1];
17315
 
    }
17316
 
    if (values[2]) {
17317
 
      __pyx_v_nsmap = values[2];
17318
 
    }
17319
 
    if (values[3]) {
17320
 
      __pyx_v__pytype = values[3];
17321
 
    }
17322
 
    if (values[4]) {
17323
 
      __pyx_v__xsi = values[4];
17324
 
    }
 
19055
    __pyx_v_attrib = values[1];
 
19056
    __pyx_v_nsmap = values[2];
 
19057
    __pyx_v__pytype = values[3];
 
19058
    __pyx_v__xsi = values[4];
17325
19059
  } else {
 
19060
    __pyx_v_attrib = Py_None;
 
19061
    __pyx_v_nsmap = Py_None;
 
19062
    __pyx_v__pytype = Py_None;
 
19063
    __pyx_v__xsi = Py_None;
17326
19064
    switch (PyTuple_GET_SIZE(__pyx_args)) {
17327
19065
      case  3: __pyx_v_nsmap = PyTuple_GET_ITEM(__pyx_args, 2);
17328
19066
      case  2: __pyx_v_attrib = PyTuple_GET_ITEM(__pyx_args, 1);
17333
19071
  }
17334
19072
  goto __pyx_L4_argument_unpacking_done;
17335
19073
  __pyx_L5_argtuple_error:;
17336
 
  __Pyx_RaiseArgtupleInvalid("DataElement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1882; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
 
19074
  __Pyx_RaiseArgtupleInvalid("DataElement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1862; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
17337
19075
  __pyx_L3_error:;
17338
 
  Py_DECREF(__pyx_v__attributes);
 
19076
  __Pyx_DECREF(__pyx_v__attributes);
17339
19077
  __Pyx_AddTraceback("lxml.objectify.DataElement");
17340
19078
  return NULL;
17341
19079
  __pyx_L4_argument_unpacking_done:;
17342
 
  Py_INCREF(__pyx_v_attrib);
17343
 
  Py_INCREF(__pyx_v_nsmap);
17344
 
  Py_INCREF(__pyx_v__pytype);
17345
 
  Py_INCREF(__pyx_v__xsi);
17346
 
  __pyx_v_temp = Py_None; Py_INCREF(Py_None);
17347
 
  __pyx_v_prefix = Py_None; Py_INCREF(Py_None);
17348
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
17349
 
  __pyx_v_ns = Py_None; Py_INCREF(Py_None);
17350
 
  __pyx_v_strval = Py_None; Py_INCREF(Py_None);
17351
 
  __pyx_v_type_check = Py_None; Py_INCREF(Py_None);
 
19080
  __Pyx_INCREF(__pyx_v_attrib);
 
19081
  __Pyx_INCREF(__pyx_v_nsmap);
 
19082
  __Pyx_INCREF(__pyx_v__pytype);
 
19083
  __Pyx_INCREF(__pyx_v__xsi);
 
19084
  __pyx_v_temp = Py_None; __Pyx_INCREF(Py_None);
 
19085
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
 
19086
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
19087
  __pyx_v_ns = Py_None; __Pyx_INCREF(Py_None);
 
19088
  __pyx_v_strval = Py_None; __Pyx_INCREF(Py_None);
 
19089
  __pyx_v_type_check = Py_None; __Pyx_INCREF(Py_None);
17352
19090
 
17353
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1898
 
19091
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1878
17354
19092
 *     """
17355
19093
 *     cdef python.PyObject* dict_result
17356
19094
 *     if nsmap is None:             # <<<<<<<<<<<<<<
17357
19095
 *         nsmap = _DEFAULT_NSMAP
17358
19096
 *     if attrib is not None and attrib:
17359
19097
 */
17360
 
  __pyx_1 = (__pyx_v_nsmap == Py_None);
17361
 
  if (__pyx_1) {
 
19098
  __pyx_t_1 = (__pyx_v_nsmap == Py_None);
 
19099
  if (__pyx_t_1) {
17362
19100
 
17363
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1899
 
19101
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1879
17364
19102
 *     cdef python.PyObject* dict_result
17365
19103
 *     if nsmap is None:
17366
19104
 *         nsmap = _DEFAULT_NSMAP             # <<<<<<<<<<<<<<
17367
19105
 *     if attrib is not None and attrib:
17368
19106
 *         if python.PyDict_Size(_attributes):
17369
19107
 */
17370
 
    Py_INCREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
17371
 
    Py_DECREF(__pyx_v_nsmap);
17372
 
    __pyx_v_nsmap = __pyx_v_4lxml_9objectify__DEFAULT_NSMAP;
 
19108
    __Pyx_INCREF(((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
19109
    __Pyx_DECREF(__pyx_v_nsmap);
 
19110
    __pyx_v_nsmap = ((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
17373
19111
    goto __pyx_L6;
17374
19112
  }
17375
19113
  __pyx_L6:;
17376
19114
 
17377
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1900
 
19115
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1880
17378
19116
 *     if nsmap is None:
17379
19117
 *         nsmap = _DEFAULT_NSMAP
17380
19118
 *     if attrib is not None and attrib:             # <<<<<<<<<<<<<<
17381
19119
 *         if python.PyDict_Size(_attributes):
17382
19120
 *             attrib = dict(attrib)
17383
19121
 */
17384
 
  __pyx_1 = (__pyx_v_attrib != Py_None);
17385
 
  if (__pyx_1) {
17386
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_attrib); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1900; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17387
 
    __pyx_1 = __pyx_2;
 
19122
  __pyx_t_1 = (__pyx_v_attrib != Py_None);
 
19123
  if (__pyx_t_1) {
 
19124
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_attrib); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19125
    __pyx_t_3 = __pyx_t_2;
 
19126
  } else {
 
19127
    __pyx_t_3 = __pyx_t_1;
17388
19128
  }
17389
 
  if (__pyx_1) {
 
19129
  if (__pyx_t_3) {
17390
19130
 
17391
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1901
 
19131
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1881
17392
19132
 *         nsmap = _DEFAULT_NSMAP
17393
19133
 *     if attrib is not None and attrib:
17394
19134
 *         if python.PyDict_Size(_attributes):             # <<<<<<<<<<<<<<
17395
19135
 *             attrib = dict(attrib)
17396
19136
 *             attrib.update(_attributes)
17397
19137
 */
17398
 
    __pyx_3 = PyDict_Size(__pyx_v__attributes);
17399
 
    if (__pyx_3) {
 
19138
    __pyx_t_4 = PyDict_Size(__pyx_v__attributes);
 
19139
    if (__pyx_t_4) {
17400
19140
 
17401
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1902
 
19141
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1882
17402
19142
 *     if attrib is not None and attrib:
17403
19143
 *         if python.PyDict_Size(_attributes):
17404
19144
 *             attrib = dict(attrib)             # <<<<<<<<<<<<<<
17405
19145
 *             attrib.update(_attributes)
17406
19146
 *         _attributes = attrib
17407
19147
 */
17408
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1902; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17409
 
      Py_INCREF(__pyx_v_attrib);
17410
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_attrib);
17411
 
      __pyx_5 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1902; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17412
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17413
 
      Py_DECREF(__pyx_v_attrib);
17414
 
      __pyx_v_attrib = __pyx_5;
17415
 
      __pyx_5 = 0;
 
19148
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1882; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19149
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
19150
      __Pyx_INCREF(__pyx_v_attrib);
 
19151
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_attrib);
 
19152
      __Pyx_GIVEREF(__pyx_v_attrib);
 
19153
      __pyx_t_6 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1882; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19154
      __Pyx_GOTREF(__pyx_t_6);
 
19155
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
19156
      __Pyx_DECREF(__pyx_v_attrib);
 
19157
      __pyx_v_attrib = __pyx_t_6;
 
19158
      __pyx_t_6 = 0;
17416
19159
 
17417
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1903
 
19160
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1883
17418
19161
 *         if python.PyDict_Size(_attributes):
17419
19162
 *             attrib = dict(attrib)
17420
19163
 *             attrib.update(_attributes)             # <<<<<<<<<<<<<<
17421
19164
 *         _attributes = attrib
17422
19165
 *     if isinstance(_value, ObjectifiedElement):
17423
19166
 */
17424
 
      __pyx_4 = PyObject_GetAttr(__pyx_v_attrib, __pyx_kp_update); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1903; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17425
 
      __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1903; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17426
 
      Py_INCREF(__pyx_v__attributes);
17427
 
      PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v__attributes);
17428
 
      __pyx_6 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1903; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17429
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
17430
 
      Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
17431
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
 
19167
      __pyx_t_6 = PyObject_GetAttr(__pyx_v_attrib, __pyx_kp_update); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1883; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19168
      __Pyx_GOTREF(__pyx_t_6);
 
19169
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1883; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19170
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
19171
      __Pyx_INCREF(__pyx_v__attributes);
 
19172
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v__attributes);
 
19173
      __Pyx_GIVEREF(__pyx_v__attributes);
 
19174
      __pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1883; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19175
      __Pyx_GOTREF(__pyx_t_7);
 
19176
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
19177
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
19178
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
17432
19179
      goto __pyx_L8;
17433
19180
    }
17434
19181
    __pyx_L8:;
17435
19182
 
17436
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1904
 
19183
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1884
17437
19184
 *             attrib = dict(attrib)
17438
19185
 *             attrib.update(_attributes)
17439
19186
 *         _attributes = attrib             # <<<<<<<<<<<<<<
17440
19187
 *     if isinstance(_value, ObjectifiedElement):
17441
19188
 *         if _pytype is None:
17442
19189
 */
17443
 
    Py_INCREF(__pyx_v_attrib);
17444
 
    Py_DECREF(__pyx_v__attributes);
 
19190
    __Pyx_INCREF(__pyx_v_attrib);
 
19191
    __Pyx_DECREF(__pyx_v__attributes);
17445
19192
    __pyx_v__attributes = __pyx_v_attrib;
17446
19193
    goto __pyx_L7;
17447
19194
  }
17448
19195
  __pyx_L7:;
17449
19196
 
17450
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1905
 
19197
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1885
17451
19198
 *             attrib.update(_attributes)
17452
19199
 *         _attributes = attrib
17453
19200
 *     if isinstance(_value, ObjectifiedElement):             # <<<<<<<<<<<<<<
17454
19201
 *         if _pytype is None:
17455
19202
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
17456
19203
 */
17457
 
  __pyx_2 = PyObject_TypeCheck(__pyx_v__value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement))); 
17458
 
  if (__pyx_2) {
 
19204
  __pyx_t_3 = PyObject_TypeCheck(__pyx_v__value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement))); 
 
19205
  if (__pyx_t_3) {
17459
19206
 
17460
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1906
 
19207
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1886
17461
19208
 *         _attributes = attrib
17462
19209
 *     if isinstance(_value, ObjectifiedElement):
17463
19210
 *         if _pytype is None:             # <<<<<<<<<<<<<<
17464
19211
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
17465
19212
 *                 # special case: no change!
17466
19213
 */
17467
 
    __pyx_1 = (__pyx_v__pytype == Py_None);
17468
 
    if (__pyx_1) {
 
19214
    __pyx_t_3 = (__pyx_v__pytype == Py_None);
 
19215
    if (__pyx_t_3) {
17469
19216
 
17470
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1907
 
19217
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1887
17471
19218
 *     if isinstance(_value, ObjectifiedElement):
17472
19219
 *         if _pytype is None:
17473
19220
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
17474
19221
 *                 # special case: no change!
17475
19222
 *                 return _value.__copy__()
17476
19223
 */
17477
 
      __pyx_2 = (__pyx_v__xsi == Py_None);
17478
 
      if (__pyx_2) {
17479
 
        __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v__attributes); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1907; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17480
 
        __pyx_2 = (!__pyx_1);
17481
 
        if (__pyx_2) {
17482
 
          __pyx_2 = (__pyx_v_nsmap == __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
 
19224
      __pyx_t_3 = (__pyx_v__xsi == Py_None);
 
19225
      if (__pyx_t_3) {
 
19226
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v__attributes); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1887; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19227
        if ((!__pyx_t_1)) {
 
19228
          __pyx_t_2 = (__pyx_v_nsmap == ((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
19229
          __pyx_t_8 = __pyx_t_2;
 
19230
        } else {
 
19231
          __pyx_t_8 = (!__pyx_t_1);
17483
19232
        }
 
19233
        __pyx_t_1 = __pyx_t_8;
 
19234
      } else {
 
19235
        __pyx_t_1 = __pyx_t_3;
17484
19236
      }
17485
 
      if (__pyx_2) {
 
19237
      if (__pyx_t_1) {
17486
19238
 
17487
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1909
 
19239
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1889
17488
19240
 *             if _xsi is None and not _attributes and nsmap is _DEFAULT_NSMAP:
17489
19241
 *                 # special case: no change!
17490
19242
 *                 return _value.__copy__()             # <<<<<<<<<<<<<<
17491
19243
 *     if isinstance(_value, ObjectifiedDataElement):
17492
19244
 *         # reuse existing nsmap unless redefined in nsmap parameter
17493
19245
 */
17494
 
        __pyx_4 = PyObject_GetAttr(__pyx_v__value, __pyx_kp___copy__); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17495
 
        __pyx_5 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17496
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
17497
 
        __pyx_r = __pyx_5;
17498
 
        __pyx_5 = 0;
 
19246
        __Pyx_XDECREF(__pyx_r);
 
19247
        __pyx_t_7 = PyObject_GetAttr(__pyx_v__value, __pyx_kp___copy__); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1889; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19248
        __Pyx_GOTREF(__pyx_t_7);
 
19249
        __pyx_t_5 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1889; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19250
        __Pyx_GOTREF(__pyx_t_5);
 
19251
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19252
        __pyx_r = __pyx_t_5;
 
19253
        __pyx_t_5 = 0;
17499
19254
        goto __pyx_L0;
17500
19255
        goto __pyx_L11;
17501
19256
      }
17507
19262
  }
17508
19263
  __pyx_L9:;
17509
19264
 
17510
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1910
 
19265
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1890
17511
19266
 *                 # special case: no change!
17512
19267
 *                 return _value.__copy__()
17513
19268
 *     if isinstance(_value, ObjectifiedDataElement):             # <<<<<<<<<<<<<<
17514
19269
 *         # reuse existing nsmap unless redefined in nsmap parameter
17515
19270
 *         temp = _value.nsmap
17516
19271
 */
17517
 
  __pyx_1 = PyObject_TypeCheck(__pyx_v__value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); 
17518
 
  if (__pyx_1) {
 
19272
  __pyx_t_1 = PyObject_TypeCheck(__pyx_v__value, ((PyTypeObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedDataElement))); 
 
19273
  if (__pyx_t_1) {
17519
19274
 
17520
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1912
 
19275
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1892
17521
19276
 *     if isinstance(_value, ObjectifiedDataElement):
17522
19277
 *         # reuse existing nsmap unless redefined in nsmap parameter
17523
19278
 *         temp = _value.nsmap             # <<<<<<<<<<<<<<
17524
19279
 *         if temp is not None and temp:
17525
19280
 *             temp = dict(temp)
17526
19281
 */
17527
 
    __pyx_6 = PyObject_GetAttr(__pyx_v__value, __pyx_kp_nsmap); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1912; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17528
 
    Py_DECREF(__pyx_v_temp);
17529
 
    __pyx_v_temp = __pyx_6;
17530
 
    __pyx_6 = 0;
 
19282
    __pyx_t_5 = PyObject_GetAttr(__pyx_v__value, __pyx_kp_nsmap); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1892; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19283
    __Pyx_GOTREF(__pyx_t_5);
 
19284
    __Pyx_DECREF(__pyx_v_temp);
 
19285
    __pyx_v_temp = __pyx_t_5;
 
19286
    __pyx_t_5 = 0;
17531
19287
 
17532
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1913
 
19288
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1893
17533
19289
 *         # reuse existing nsmap unless redefined in nsmap parameter
17534
19290
 *         temp = _value.nsmap
17535
19291
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
17536
19292
 *             temp = dict(temp)
17537
19293
 *             temp.update(nsmap)
17538
19294
 */
17539
 
    __pyx_2 = (__pyx_v_temp != Py_None);
17540
 
    if (__pyx_2) {
17541
 
      __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1913; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17542
 
      __pyx_2 = __pyx_1;
 
19295
    __pyx_t_1 = (__pyx_v_temp != Py_None);
 
19296
    if (__pyx_t_1) {
 
19297
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1893; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19298
      __pyx_t_8 = __pyx_t_3;
 
19299
    } else {
 
19300
      __pyx_t_8 = __pyx_t_1;
17543
19301
    }
17544
 
    if (__pyx_2) {
 
19302
    if (__pyx_t_8) {
17545
19303
 
17546
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1914
 
19304
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1894
17547
19305
 *         temp = _value.nsmap
17548
19306
 *         if temp is not None and temp:
17549
19307
 *             temp = dict(temp)             # <<<<<<<<<<<<<<
17550
19308
 *             temp.update(nsmap)
17551
19309
 *             nsmap = temp
17552
19310
 */
17553
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1914; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17554
 
      Py_INCREF(__pyx_v_temp);
17555
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_temp);
17556
 
      __pyx_5 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1914; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17557
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17558
 
      Py_DECREF(__pyx_v_temp);
17559
 
      __pyx_v_temp = __pyx_5;
17560
 
      __pyx_5 = 0;
 
19311
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1894; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19312
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
19313
      __Pyx_INCREF(__pyx_v_temp);
 
19314
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_temp);
 
19315
      __Pyx_GIVEREF(__pyx_v_temp);
 
19316
      __pyx_t_7 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1894; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19317
      __Pyx_GOTREF(__pyx_t_7);
 
19318
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
19319
      __Pyx_DECREF(__pyx_v_temp);
 
19320
      __pyx_v_temp = __pyx_t_7;
 
19321
      __pyx_t_7 = 0;
17561
19322
 
17562
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1915
 
19323
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1895
17563
19324
 *         if temp is not None and temp:
17564
19325
 *             temp = dict(temp)
17565
19326
 *             temp.update(nsmap)             # <<<<<<<<<<<<<<
17566
19327
 *             nsmap = temp
17567
19328
 *         # reuse existing attributes unless redefined in attrib/_attributes
17568
19329
 */
17569
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_temp, __pyx_kp_update); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17570
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17571
 
      Py_INCREF(__pyx_v_nsmap);
17572
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_nsmap);
17573
 
      __pyx_5 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17574
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
17575
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17576
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
19330
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_temp, __pyx_kp_update); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1895; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19331
      __Pyx_GOTREF(__pyx_t_7);
 
19332
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1895; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19333
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
19334
      __Pyx_INCREF(__pyx_v_nsmap);
 
19335
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_nsmap);
 
19336
      __Pyx_GIVEREF(__pyx_v_nsmap);
 
19337
      __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1895; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19338
      __Pyx_GOTREF(__pyx_t_6);
 
19339
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19340
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
19341
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
17577
19342
 
17578
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1916
 
19343
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1896
17579
19344
 *             temp = dict(temp)
17580
19345
 *             temp.update(nsmap)
17581
19346
 *             nsmap = temp             # <<<<<<<<<<<<<<
17582
19347
 *         # reuse existing attributes unless redefined in attrib/_attributes
17583
19348
 *         temp = _value.attrib
17584
19349
 */
17585
 
      Py_INCREF(__pyx_v_temp);
17586
 
      Py_DECREF(__pyx_v_nsmap);
 
19350
      __Pyx_INCREF(__pyx_v_temp);
 
19351
      __Pyx_DECREF(__pyx_v_nsmap);
17587
19352
      __pyx_v_nsmap = __pyx_v_temp;
17588
19353
      goto __pyx_L13;
17589
19354
    }
17590
19355
    __pyx_L13:;
17591
19356
 
17592
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1918
 
19357
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1898
17593
19358
 *             nsmap = temp
17594
19359
 *         # reuse existing attributes unless redefined in attrib/_attributes
17595
19360
 *         temp = _value.attrib             # <<<<<<<<<<<<<<
17596
19361
 *         if temp is not None and temp:
17597
19362
 *             temp = dict(temp)
17598
19363
 */
17599
 
    __pyx_6 = PyObject_GetAttr(__pyx_v__value, __pyx_kp_attrib); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1918; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17600
 
    Py_DECREF(__pyx_v_temp);
17601
 
    __pyx_v_temp = __pyx_6;
17602
 
    __pyx_6 = 0;
 
19364
    __pyx_t_6 = PyObject_GetAttr(__pyx_v__value, __pyx_kp_attrib); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1898; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19365
    __Pyx_GOTREF(__pyx_t_6);
 
19366
    __Pyx_DECREF(__pyx_v_temp);
 
19367
    __pyx_v_temp = __pyx_t_6;
 
19368
    __pyx_t_6 = 0;
17603
19369
 
17604
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1919
 
19370
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1899
17605
19371
 *         # reuse existing attributes unless redefined in attrib/_attributes
17606
19372
 *         temp = _value.attrib
17607
19373
 *         if temp is not None and temp:             # <<<<<<<<<<<<<<
17608
19374
 *             temp = dict(temp)
17609
19375
 *             temp.update(_attributes)
17610
19376
 */
17611
 
    __pyx_1 = (__pyx_v_temp != Py_None);
17612
 
    if (__pyx_1) {
17613
 
      __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1919; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17614
 
      __pyx_1 = __pyx_2;
 
19377
    __pyx_t_8 = (__pyx_v_temp != Py_None);
 
19378
    if (__pyx_t_8) {
 
19379
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_temp); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1899; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19380
      __pyx_t_3 = __pyx_t_1;
 
19381
    } else {
 
19382
      __pyx_t_3 = __pyx_t_8;
17615
19383
    }
17616
 
    if (__pyx_1) {
 
19384
    if (__pyx_t_3) {
17617
19385
 
17618
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1920
 
19386
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1900
17619
19387
 *         temp = _value.attrib
17620
19388
 *         if temp is not None and temp:
17621
19389
 *             temp = dict(temp)             # <<<<<<<<<<<<<<
17622
19390
 *             temp.update(_attributes)
17623
19391
 *             _attributes = temp
17624
19392
 */
17625
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1920; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17626
 
      Py_INCREF(__pyx_v_temp);
17627
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_temp);
17628
 
      __pyx_5 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1920; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17629
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17630
 
      Py_DECREF(__pyx_v_temp);
17631
 
      __pyx_v_temp = __pyx_5;
17632
 
      __pyx_5 = 0;
 
19393
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1900; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19394
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
19395
      __Pyx_INCREF(__pyx_v_temp);
 
19396
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_temp);
 
19397
      __Pyx_GIVEREF(__pyx_v_temp);
 
19398
      __pyx_t_5 = PyObject_Call(((PyObject *)((PyObject*)&PyDict_Type)), ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1900; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19399
      __Pyx_GOTREF(__pyx_t_5);
 
19400
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
19401
      __Pyx_DECREF(__pyx_v_temp);
 
19402
      __pyx_v_temp = __pyx_t_5;
 
19403
      __pyx_t_5 = 0;
17633
19404
 
17634
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1921
 
19405
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1901
17635
19406
 *         if temp is not None and temp:
17636
19407
 *             temp = dict(temp)
17637
19408
 *             temp.update(_attributes)             # <<<<<<<<<<<<<<
17638
19409
 *             _attributes = temp
17639
19410
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
17640
19411
 */
17641
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_temp, __pyx_kp_update); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1921; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17642
 
      __pyx_4 = PyTuple_New(1); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1921; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17643
 
      Py_INCREF(__pyx_v__attributes);
17644
 
      PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v__attributes);
17645
 
      __pyx_5 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_4), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1921; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17646
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
17647
 
      Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
17648
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
19412
      __pyx_t_5 = PyObject_GetAttr(__pyx_v_temp, __pyx_kp_update); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1901; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19413
      __Pyx_GOTREF(__pyx_t_5);
 
19414
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1901; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19415
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
19416
      __Pyx_INCREF(__pyx_v__attributes);
 
19417
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v__attributes);
 
19418
      __Pyx_GIVEREF(__pyx_v__attributes);
 
19419
      __pyx_t_7 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1901; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19420
      __Pyx_GOTREF(__pyx_t_7);
 
19421
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
19422
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
19423
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
17649
19424
 
17650
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1922
 
19425
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1902
17651
19426
 *             temp = dict(temp)
17652
19427
 *             temp.update(_attributes)
17653
19428
 *             _attributes = temp             # <<<<<<<<<<<<<<
17654
19429
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
17655
19430
 *         # arguments
17656
19431
 */
17657
 
      Py_INCREF(__pyx_v_temp);
17658
 
      Py_DECREF(__pyx_v__attributes);
 
19432
      __Pyx_INCREF(__pyx_v_temp);
 
19433
      __Pyx_DECREF(__pyx_v__attributes);
17659
19434
      __pyx_v__attributes = __pyx_v_temp;
17660
19435
      goto __pyx_L14;
17661
19436
    }
17662
19437
    __pyx_L14:;
17663
19438
 
17664
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1925
 
19439
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1905
17665
19440
 *         # reuse existing xsi:type or py:pytype attributes, unless provided as
17666
19441
 *         # arguments
17667
19442
 *         if _xsi is None and _pytype is None:             # <<<<<<<<<<<<<<
17668
19443
 *             dict_result = python.PyDict_GetItem(_attributes,
17669
19444
 *                                                 XML_SCHEMA_INSTANCE_TYPE_ATTR)
17670
19445
 */
17671
 
    __pyx_2 = (__pyx_v__xsi == Py_None);
17672
 
    if (__pyx_2) {
17673
 
      __pyx_2 = (__pyx_v__pytype == Py_None);
 
19446
    __pyx_t_3 = (__pyx_v__xsi == Py_None);
 
19447
    if (__pyx_t_3) {
 
19448
      __pyx_t_8 = (__pyx_v__pytype == Py_None);
 
19449
      __pyx_t_1 = __pyx_t_8;
 
19450
    } else {
 
19451
      __pyx_t_1 = __pyx_t_3;
17674
19452
    }
17675
 
    if (__pyx_2) {
 
19453
    if (__pyx_t_1) {
17676
19454
 
17677
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1927
 
19455
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1907
17678
19456
 *         if _xsi is None and _pytype is None:
17679
19457
 *             dict_result = python.PyDict_GetItem(_attributes,
17680
19458
 *                                                 XML_SCHEMA_INSTANCE_TYPE_ATTR)             # <<<<<<<<<<<<<<
17683
19461
 */
17684
19462
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
17685
19463
 
17686
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1928
 
19464
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1908
17687
19465
 *             dict_result = python.PyDict_GetItem(_attributes,
17688
19466
 *                                                 XML_SCHEMA_INSTANCE_TYPE_ATTR)
17689
19467
 *             if dict_result is not NULL:             # <<<<<<<<<<<<<<
17690
19468
 *                 _xsi = <object>dict_result
17691
19469
 *             dict_result = python.PyDict_GetItem(_attributes, PYTYPE_ATTRIBUTE)
17692
19470
 */
17693
 
      __pyx_1 = (__pyx_v_dict_result != NULL);
17694
 
      if (__pyx_1) {
 
19471
      __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
19472
      if (__pyx_t_1) {
17695
19473
 
17696
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1929
 
19474
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1909
17697
19475
 *                                                 XML_SCHEMA_INSTANCE_TYPE_ATTR)
17698
19476
 *             if dict_result is not NULL:
17699
19477
 *                 _xsi = <object>dict_result             # <<<<<<<<<<<<<<
17700
19478
 *             dict_result = python.PyDict_GetItem(_attributes, PYTYPE_ATTRIBUTE)
17701
19479
 *             if dict_result is not NULL:
17702
19480
 */
17703
 
        Py_INCREF(((PyObject *)__pyx_v_dict_result));
17704
 
        Py_DECREF(__pyx_v__xsi);
 
19481
        __Pyx_INCREF(((PyObject *)__pyx_v_dict_result));
 
19482
        __Pyx_DECREF(__pyx_v__xsi);
17705
19483
        __pyx_v__xsi = ((PyObject *)__pyx_v_dict_result);
17706
19484
        goto __pyx_L16;
17707
19485
      }
17708
19486
      __pyx_L16:;
17709
19487
 
17710
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1930
 
19488
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1910
17711
19489
 *             if dict_result is not NULL:
17712
19490
 *                 _xsi = <object>dict_result
17713
19491
 *             dict_result = python.PyDict_GetItem(_attributes, PYTYPE_ATTRIBUTE)             # <<<<<<<<<<<<<<
17714
19492
 *             if dict_result is not NULL:
17715
19493
 *                 _pytype = <object>dict_result
17716
19494
 */
17717
 
      __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1930; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17718
 
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v__attributes, __pyx_6);
17719
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
 
19495
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1910; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19496
      __Pyx_GOTREF(__pyx_1);
 
19497
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v__attributes, __pyx_1);
 
19498
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
17720
19499
 
17721
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1931
 
19500
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1911
17722
19501
 *                 _xsi = <object>dict_result
17723
19502
 *             dict_result = python.PyDict_GetItem(_attributes, PYTYPE_ATTRIBUTE)
17724
19503
 *             if dict_result is not NULL:             # <<<<<<<<<<<<<<
17725
19504
 *                 _pytype = <object>dict_result
17726
19505
 * 
17727
19506
 */
17728
 
      __pyx_2 = (__pyx_v_dict_result != NULL);
17729
 
      if (__pyx_2) {
 
19507
      __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
19508
      if (__pyx_t_1) {
17730
19509
 
17731
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1932
 
19510
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1912
17732
19511
 *             dict_result = python.PyDict_GetItem(_attributes, PYTYPE_ATTRIBUTE)
17733
19512
 *             if dict_result is not NULL:
17734
19513
 *                 _pytype = <object>dict_result             # <<<<<<<<<<<<<<
17735
19514
 * 
17736
19515
 *     if _xsi is not None:
17737
19516
 */
17738
 
        Py_INCREF(((PyObject *)__pyx_v_dict_result));
17739
 
        Py_DECREF(__pyx_v__pytype);
 
19517
        __Pyx_INCREF(((PyObject *)__pyx_v_dict_result));
 
19518
        __Pyx_DECREF(__pyx_v__pytype);
17740
19519
        __pyx_v__pytype = ((PyObject *)__pyx_v_dict_result);
17741
19520
        goto __pyx_L17;
17742
19521
      }
17748
19527
  }
17749
19528
  __pyx_L12:;
17750
19529
 
17751
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1934
 
19530
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1914
17752
19531
 *                 _pytype = <object>dict_result
17753
19532
 * 
17754
19533
 *     if _xsi is not None:             # <<<<<<<<<<<<<<
17755
19534
 *         if u':' in _xsi:
17756
19535
 *             prefix, name = _xsi.split(u':', 1)
17757
19536
 */
17758
 
  __pyx_1 = (__pyx_v__xsi != Py_None);
17759
 
  if (__pyx_1) {
 
19537
  __pyx_t_1 = (__pyx_v__xsi != Py_None);
 
19538
  if (__pyx_t_1) {
17760
19539
 
17761
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1935
 
19540
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1915
17762
19541
 * 
17763
19542
 *     if _xsi is not None:
17764
19543
 *         if u':' in _xsi:             # <<<<<<<<<<<<<<
17765
19544
 *             prefix, name = _xsi.split(u':', 1)
17766
19545
 *             ns = nsmap.get(prefix)
17767
19546
 */
17768
 
    __pyx_2 = (PySequence_Contains(__pyx_v__xsi, ((PyObject *)__pyx_kp_796))); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1935; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17769
 
    if (__pyx_2) {
 
19547
    __pyx_t_1 = (PySequence_Contains(__pyx_v__xsi, ((PyObject *)__pyx_kp_859))); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19548
    if (__pyx_t_1) {
17770
19549
 
17771
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1936
 
19550
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1916
17772
19551
 *     if _xsi is not None:
17773
19552
 *         if u':' in _xsi:
17774
19553
 *             prefix, name = _xsi.split(u':', 1)             # <<<<<<<<<<<<<<
17775
19554
 *             ns = nsmap.get(prefix)
17776
19555
 *             if ns != XML_SCHEMA_NS:
17777
19556
 */
17778
 
      __pyx_4 = PyObject_GetAttr(__pyx_v__xsi, __pyx_kp_split); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17779
 
      __pyx_5 = PyTuple_New(2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17780
 
      Py_INCREF(((PyObject *)__pyx_kp_797));
17781
 
      PyTuple_SET_ITEM(__pyx_5, 0, ((PyObject *)__pyx_kp_797));
17782
 
      Py_INCREF(__pyx_int_1);
17783
 
      PyTuple_SET_ITEM(__pyx_5, 1, __pyx_int_1);
17784
 
      __pyx_6 = PyObject_Call(__pyx_4, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17785
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
17786
 
      Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
17787
 
      if (PyTuple_CheckExact(__pyx_6) && PyTuple_GET_SIZE(__pyx_6) == 2) {
17788
 
        PyObject* tuple = __pyx_6;
17789
 
        __pyx_5 = PyTuple_GET_ITEM(tuple, 0);
17790
 
        Py_INCREF(__pyx_5);
17791
 
        Py_DECREF(__pyx_v_prefix);
17792
 
        __pyx_v_prefix = __pyx_5;
17793
 
        __pyx_5 = 0;
17794
 
        __pyx_5 = PyTuple_GET_ITEM(tuple, 1);
17795
 
        Py_INCREF(__pyx_5);
17796
 
        Py_DECREF(__pyx_v_name);
17797
 
        __pyx_v_name = __pyx_5;
17798
 
        __pyx_5 = 0;
17799
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
17800
 
      }
17801
 
      else {
17802
 
        __pyx_4 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17803
 
        Py_DECREF(__pyx_6); __pyx_6 = 0;
17804
 
        __pyx_5 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17805
 
        Py_DECREF(__pyx_v_prefix);
17806
 
        __pyx_v_prefix = __pyx_5;
17807
 
        __pyx_5 = 0;
17808
 
        __pyx_5 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17809
 
        Py_DECREF(__pyx_v_name);
17810
 
        __pyx_v_name = __pyx_5;
17811
 
        __pyx_5 = 0;
17812
 
        if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1936; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17813
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
19557
      __pyx_t_7 = PyObject_GetAttr(__pyx_v__xsi, __pyx_kp_split); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19558
      __Pyx_GOTREF(__pyx_t_7);
 
19559
      __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19560
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
19561
      __Pyx_INCREF(((PyObject *)__pyx_kp_860));
 
19562
      PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_860));
 
19563
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_860));
 
19564
      __Pyx_INCREF(__pyx_int_1);
 
19565
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_int_1);
 
19566
      __Pyx_GIVEREF(__pyx_int_1);
 
19567
      __pyx_t_5 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19568
      __Pyx_GOTREF(__pyx_t_5);
 
19569
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19570
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
19571
      if (PyTuple_CheckExact(__pyx_t_5) && likely(PyTuple_GET_SIZE(__pyx_t_5) == 2)) {
 
19572
        PyObject* tuple = __pyx_t_5;
 
19573
        __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
19574
        __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
19575
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
19576
        __Pyx_DECREF(__pyx_v_prefix);
 
19577
        __pyx_v_prefix = __pyx_2;
 
19578
        __pyx_2 = 0;
 
19579
        __Pyx_DECREF(__pyx_v_name);
 
19580
        __pyx_v_name = __pyx_3;
 
19581
        __pyx_3 = 0;
 
19582
      } else {
 
19583
        __pyx_1 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19584
        __Pyx_GOTREF(__pyx_1);
 
19585
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
19586
        __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19587
        __Pyx_GOTREF(__pyx_2);
 
19588
        __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19589
        __Pyx_GOTREF(__pyx_3);
 
19590
        if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1916; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19591
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
19592
        __Pyx_DECREF(__pyx_v_prefix);
 
19593
        __pyx_v_prefix = __pyx_2;
 
19594
        __pyx_2 = 0;
 
19595
        __Pyx_DECREF(__pyx_v_name);
 
19596
        __pyx_v_name = __pyx_3;
 
19597
        __pyx_3 = 0;
17814
19598
      }
17815
19599
 
17816
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1937
 
19600
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1917
17817
19601
 *         if u':' in _xsi:
17818
19602
 *             prefix, name = _xsi.split(u':', 1)
17819
19603
 *             ns = nsmap.get(prefix)             # <<<<<<<<<<<<<<
17820
19604
 *             if ns != XML_SCHEMA_NS:
17821
19605
 *                 raise ValueError, u"XSD types require the XSD namespace"
17822
19606
 */
17823
 
      __pyx_5 = PyObject_GetAttr(__pyx_v_nsmap, __pyx_kp_get); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1937; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17824
 
      __pyx_6 = PyTuple_New(1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1937; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17825
 
      Py_INCREF(__pyx_v_prefix);
17826
 
      PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_prefix);
17827
 
      __pyx_4 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1937; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17828
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
17829
 
      Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
17830
 
      Py_DECREF(__pyx_v_ns);
17831
 
      __pyx_v_ns = __pyx_4;
17832
 
      __pyx_4 = 0;
 
19607
      __pyx_t_5 = PyObject_GetAttr(__pyx_v_nsmap, __pyx_kp_get); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19608
      __Pyx_GOTREF(__pyx_t_5);
 
19609
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19610
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
 
19611
      __Pyx_INCREF(__pyx_v_prefix);
 
19612
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_prefix);
 
19613
      __Pyx_GIVEREF(__pyx_v_prefix);
 
19614
      __pyx_t_7 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19615
      __Pyx_GOTREF(__pyx_t_7);
 
19616
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
19617
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
 
19618
      __Pyx_DECREF(__pyx_v_ns);
 
19619
      __pyx_v_ns = __pyx_t_7;
 
19620
      __pyx_t_7 = 0;
17833
19621
 
17834
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1938
 
19622
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1918
17835
19623
 *             prefix, name = _xsi.split(u':', 1)
17836
19624
 *             ns = nsmap.get(prefix)
17837
19625
 *             if ns != XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
17838
19626
 *                 raise ValueError, u"XSD types require the XSD namespace"
17839
19627
 *         elif nsmap is _DEFAULT_NSMAP:
17840
19628
 */
17841
 
      __pyx_5 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_NE); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1938; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17842
 
      __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_5); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1938; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17843
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
17844
 
      if (__pyx_1) {
 
19629
      __pyx_t_7 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_NE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1918; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19630
      __Pyx_GOTREF(__pyx_t_7);
 
19631
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1918; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19632
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19633
      if (__pyx_t_1) {
17845
19634
 
17846
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1939
 
19635
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1919
17847
19636
 *             ns = nsmap.get(prefix)
17848
19637
 *             if ns != XML_SCHEMA_NS:
17849
19638
 *                 raise ValueError, u"XSD types require the XSD namespace"             # <<<<<<<<<<<<<<
17850
19639
 *         elif nsmap is _DEFAULT_NSMAP:
17851
19640
 *             name = _xsi
17852
19641
 */
17853
 
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_798), 0);
17854
 
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1939; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19642
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_861), 0);
 
19643
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1919; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17855
19644
        goto __pyx_L20;
17856
19645
      }
17857
19646
      __pyx_L20:;
17858
19647
      goto __pyx_L19;
17859
19648
    }
17860
19649
 
17861
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1940
 
19650
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1920
17862
19651
 *             if ns != XML_SCHEMA_NS:
17863
19652
 *                 raise ValueError, u"XSD types require the XSD namespace"
17864
19653
 *         elif nsmap is _DEFAULT_NSMAP:             # <<<<<<<<<<<<<<
17865
19654
 *             name = _xsi
17866
19655
 *             _xsi = u'xsd:' + _xsi
17867
19656
 */
17868
 
    __pyx_2 = (__pyx_v_nsmap == __pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
17869
 
    if (__pyx_2) {
 
19657
    __pyx_t_1 = (__pyx_v_nsmap == ((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
19658
    if (__pyx_t_1) {
17870
19659
 
17871
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1941
 
19660
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1921
17872
19661
 *                 raise ValueError, u"XSD types require the XSD namespace"
17873
19662
 *         elif nsmap is _DEFAULT_NSMAP:
17874
19663
 *             name = _xsi             # <<<<<<<<<<<<<<
17875
19664
 *             _xsi = u'xsd:' + _xsi
17876
19665
 *         else:
17877
19666
 */
17878
 
      Py_INCREF(__pyx_v__xsi);
17879
 
      Py_DECREF(__pyx_v_name);
 
19667
      __Pyx_INCREF(__pyx_v__xsi);
 
19668
      __Pyx_DECREF(__pyx_v_name);
17880
19669
      __pyx_v_name = __pyx_v__xsi;
17881
19670
 
17882
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1942
 
19671
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1922
17883
19672
 *         elif nsmap is _DEFAULT_NSMAP:
17884
19673
 *             name = _xsi
17885
19674
 *             _xsi = u'xsd:' + _xsi             # <<<<<<<<<<<<<<
17886
19675
 *         else:
17887
19676
 *             name = _xsi
17888
19677
 */
17889
 
      __pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_kp_799), __pyx_v__xsi); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1942; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17890
 
      Py_DECREF(__pyx_v__xsi);
17891
 
      __pyx_v__xsi = __pyx_t_1;
17892
 
      __pyx_t_1 = 0;
 
19678
      __pyx_t_7 = PyNumber_Add(((PyObject *)__pyx_kp_862), __pyx_v__xsi); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1922; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19679
      __Pyx_GOTREF(__pyx_t_7);
 
19680
      __Pyx_DECREF(__pyx_v__xsi);
 
19681
      __pyx_v__xsi = __pyx_t_7;
 
19682
      __pyx_t_7 = 0;
17893
19683
      goto __pyx_L19;
17894
19684
    }
17895
19685
    /*else*/ {
17896
19686
 
17897
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1944
 
19687
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1924
17898
19688
 *             _xsi = u'xsd:' + _xsi
17899
19689
 *         else:
17900
19690
 *             name = _xsi             # <<<<<<<<<<<<<<
17901
19691
 *             for prefix, ns in nsmap.items():
17902
19692
 *                 if ns == XML_SCHEMA_NS:
17903
19693
 */
17904
 
      Py_INCREF(__pyx_v__xsi);
17905
 
      Py_DECREF(__pyx_v_name);
 
19694
      __Pyx_INCREF(__pyx_v__xsi);
 
19695
      __Pyx_DECREF(__pyx_v_name);
17906
19696
      __pyx_v_name = __pyx_v__xsi;
17907
19697
 
17908
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1945
 
19698
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1925
17909
19699
 *         else:
17910
19700
 *             name = _xsi
17911
19701
 *             for prefix, ns in nsmap.items():             # <<<<<<<<<<<<<<
17912
19702
 *                 if ns == XML_SCHEMA_NS:
17913
19703
 *                     if prefix is not None and prefix:
17914
19704
 */
17915
 
      __pyx_6 = PyObject_GetAttr(__pyx_v_nsmap, __pyx_kp_items); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17916
 
      __pyx_4 = PyObject_Call(__pyx_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17917
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
17918
 
      if (PyList_CheckExact(__pyx_4) || PyTuple_CheckExact(__pyx_4)) {
17919
 
        __pyx_3 = 0; __pyx_5 = __pyx_4; Py_INCREF(__pyx_5);
 
19705
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_nsmap, __pyx_kp_items); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19706
      __Pyx_GOTREF(__pyx_t_7);
 
19707
      __pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19708
      __Pyx_GOTREF(__pyx_t_6);
 
19709
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19710
      if (PyList_CheckExact(__pyx_t_6) || PyTuple_CheckExact(__pyx_t_6)) {
 
19711
        __pyx_t_4 = 0; __pyx_t_7 = __pyx_t_6; __Pyx_INCREF(__pyx_t_7);
17920
19712
      } else {
17921
 
        __pyx_3 = -1; __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19713
        __pyx_t_4 = -1; __pyx_t_7 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19714
        __Pyx_GOTREF(__pyx_t_7);
17922
19715
      }
17923
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
19716
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
17924
19717
      for (;;) {
17925
 
        if (likely(PyList_CheckExact(__pyx_5))) {
17926
 
          if (__pyx_3 >= PyList_GET_SIZE(__pyx_5)) break;
17927
 
          __pyx_6 = PyList_GET_ITEM(__pyx_5, __pyx_3); Py_INCREF(__pyx_6); __pyx_3++;
17928
 
        } else if (likely(PyTuple_CheckExact(__pyx_5))) {
17929
 
          if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_5)) break;
17930
 
          __pyx_6 = PyTuple_GET_ITEM(__pyx_5, __pyx_3); Py_INCREF(__pyx_6); __pyx_3++;
 
19718
        if (likely(PyList_CheckExact(__pyx_t_7))) {
 
19719
          if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_7)) break;
 
19720
          __pyx_t_6 = PyList_GET_ITEM(__pyx_t_7, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
 
19721
        } else if (likely(PyTuple_CheckExact(__pyx_t_7))) {
 
19722
          if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_7)) break;
 
19723
          __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_7, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
17931
19724
        } else {
17932
 
          __pyx_6 = PyIter_Next(__pyx_5);
17933
 
          if (!__pyx_6) {
17934
 
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19725
          __pyx_t_6 = PyIter_Next(__pyx_t_7);
 
19726
          if (!__pyx_t_6) {
 
19727
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17935
19728
            break;
17936
19729
          }
17937
 
        }
17938
 
        if (PyTuple_CheckExact(__pyx_6) && PyTuple_GET_SIZE(__pyx_6) == 2) {
17939
 
          PyObject* tuple = __pyx_6;
17940
 
          __pyx_7 = PyTuple_GET_ITEM(tuple, 0);
17941
 
          Py_INCREF(__pyx_7);
17942
 
          Py_DECREF(__pyx_v_prefix);
17943
 
          __pyx_v_prefix = __pyx_7;
17944
 
          __pyx_7 = 0;
17945
 
          __pyx_7 = PyTuple_GET_ITEM(tuple, 1);
17946
 
          Py_INCREF(__pyx_7);
17947
 
          Py_DECREF(__pyx_v_ns);
17948
 
          __pyx_v_ns = __pyx_7;
17949
 
          __pyx_7 = 0;
17950
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
17951
 
        }
17952
 
        else {
17953
 
          __pyx_4 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17954
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
17955
 
          __pyx_7 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17956
 
          Py_DECREF(__pyx_v_prefix);
17957
 
          __pyx_v_prefix = __pyx_7;
17958
 
          __pyx_7 = 0;
17959
 
          __pyx_7 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17960
 
          Py_DECREF(__pyx_v_ns);
17961
 
          __pyx_v_ns = __pyx_7;
17962
 
          __pyx_7 = 0;
17963
 
          if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1945; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17964
 
          Py_DECREF(__pyx_4); __pyx_4 = 0;
 
19730
          __Pyx_GOTREF(__pyx_t_6);
 
19731
        }
 
19732
        if (PyTuple_CheckExact(__pyx_t_6) && likely(PyTuple_GET_SIZE(__pyx_t_6) == 2)) {
 
19733
          PyObject* tuple = __pyx_t_6;
 
19734
          __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
19735
          __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
19736
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
19737
          __Pyx_DECREF(__pyx_v_prefix);
 
19738
          __pyx_v_prefix = __pyx_2;
 
19739
          __pyx_2 = 0;
 
19740
          __Pyx_DECREF(__pyx_v_ns);
 
19741
          __pyx_v_ns = __pyx_3;
 
19742
          __pyx_3 = 0;
 
19743
        } else {
 
19744
          __pyx_1 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19745
          __Pyx_GOTREF(__pyx_1);
 
19746
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
19747
          __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19748
          __Pyx_GOTREF(__pyx_2);
 
19749
          __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19750
          __Pyx_GOTREF(__pyx_3);
 
19751
          if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1925; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19752
          __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
19753
          __Pyx_DECREF(__pyx_v_prefix);
 
19754
          __pyx_v_prefix = __pyx_2;
 
19755
          __pyx_2 = 0;
 
19756
          __Pyx_DECREF(__pyx_v_ns);
 
19757
          __pyx_v_ns = __pyx_3;
 
19758
          __pyx_3 = 0;
17965
19759
        }
17966
19760
 
17967
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1946
 
19761
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1926
17968
19762
 *             name = _xsi
17969
19763
 *             for prefix, ns in nsmap.items():
17970
19764
 *                 if ns == XML_SCHEMA_NS:             # <<<<<<<<<<<<<<
17971
19765
 *                     if prefix is not None and prefix:
17972
19766
 *                         _xsi = prefix + u':' + _xsi
17973
19767
 */
17974
 
        __pyx_7 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_EQ); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1946; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17975
 
        __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_7); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1946; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17976
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
17977
 
        if (__pyx_1) {
 
19768
        __pyx_t_6 = PyObject_RichCompare(__pyx_v_ns, __pyx_v_4lxml_9objectify_XML_SCHEMA_NS, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1926; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19769
        __Pyx_GOTREF(__pyx_t_6);
 
19770
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1926; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19771
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
19772
        if (__pyx_t_1) {
17978
19773
 
17979
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1947
 
19774
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1927
17980
19775
 *             for prefix, ns in nsmap.items():
17981
19776
 *                 if ns == XML_SCHEMA_NS:
17982
19777
 *                     if prefix is not None and prefix:             # <<<<<<<<<<<<<<
17983
19778
 *                         _xsi = prefix + u':' + _xsi
17984
19779
 *                     break
17985
19780
 */
17986
 
          __pyx_2 = (__pyx_v_prefix != Py_None);
17987
 
          if (__pyx_2) {
17988
 
            __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_v_prefix); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1947; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17989
 
            __pyx_2 = __pyx_1;
 
19781
          __pyx_t_1 = (__pyx_v_prefix != Py_None);
 
19782
          if (__pyx_t_1) {
 
19783
            __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_prefix); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1927; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19784
            __pyx_t_8 = __pyx_t_3;
 
19785
          } else {
 
19786
            __pyx_t_8 = __pyx_t_1;
17990
19787
          }
17991
 
          if (__pyx_2) {
 
19788
          if (__pyx_t_8) {
17992
19789
 
17993
 
            /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1948
 
19790
            /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1928
17994
19791
 *                 if ns == XML_SCHEMA_NS:
17995
19792
 *                     if prefix is not None and prefix:
17996
19793
 *                         _xsi = prefix + u':' + _xsi             # <<<<<<<<<<<<<<
17997
19794
 *                     break
17998
19795
 *             else:
17999
19796
 */
18000
 
            __pyx_t_1 = PyNumber_Add(__pyx_v_prefix, ((PyObject *)__pyx_kp_800)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1948; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18001
 
            __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_v__xsi); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1948; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18002
 
            Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18003
 
            Py_DECREF(__pyx_v__xsi);
18004
 
            __pyx_v__xsi = __pyx_t_2;
18005
 
            __pyx_t_2 = 0;
 
19797
            __pyx_t_6 = PyNumber_Add(__pyx_v_prefix, ((PyObject *)__pyx_kp_863)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1928; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19798
            __Pyx_GOTREF(__pyx_t_6);
 
19799
            __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_v__xsi); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1928; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19800
            __Pyx_GOTREF(__pyx_t_5);
 
19801
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
 
19802
            __Pyx_DECREF(__pyx_v__xsi);
 
19803
            __pyx_v__xsi = __pyx_t_5;
 
19804
            __pyx_t_5 = 0;
18006
19805
            goto __pyx_L24;
18007
19806
          }
18008
19807
          __pyx_L24:;
18009
19808
 
18010
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1949
 
19809
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1929
18011
19810
 *                     if prefix is not None and prefix:
18012
19811
 *                         _xsi = prefix + u':' + _xsi
18013
19812
 *                     break             # <<<<<<<<<<<<<<
18014
19813
 *             else:
18015
19814
 *                 raise ValueError, u"XSD types require the XSD namespace"
18016
19815
 */
18017
 
          goto __pyx_L22;
 
19816
          goto __pyx_L22_break;
18018
19817
          goto __pyx_L23;
18019
19818
        }
18020
19819
        __pyx_L23:;
18021
19820
      }
18022
19821
      /*else*/ {
18023
19822
 
18024
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1951
 
19823
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1931
18025
19824
 *                     break
18026
19825
 *             else:
18027
19826
 *                 raise ValueError, u"XSD types require the XSD namespace"             # <<<<<<<<<<<<<<
18028
 
 *         python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_TYPE_ATTR, _xsi)
 
19827
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi
18029
19828
 *         if _pytype is None:
18030
19829
 */
18031
 
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_801), 0);
18032
 
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1951; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19830
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_864), 0);
 
19831
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1931; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18033
19832
      }
18034
 
      __pyx_L22:;
18035
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
19833
      __pyx_L22_break:;
 
19834
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
18036
19835
    }
18037
19836
    __pyx_L19:;
18038
19837
 
18039
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1952
 
19838
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1932
18040
19839
 *             else:
18041
19840
 *                 raise ValueError, u"XSD types require the XSD namespace"
18042
 
 *         python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_TYPE_ATTR, _xsi)             # <<<<<<<<<<<<<<
 
19841
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi             # <<<<<<<<<<<<<<
18043
19842
 *         if _pytype is None:
18044
19843
 *             # allow using unregistered or even wrong xsi:type names
18045
19844
 */
18046
 
    __pyx_8 = PyDict_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR, __pyx_v__xsi); if (unlikely(__pyx_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1952; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19845
    if (PyObject_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR, __pyx_v__xsi) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18047
19846
 
18048
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1953
 
19847
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1933
18049
19848
 *                 raise ValueError, u"XSD types require the XSD namespace"
18050
 
 *         python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_TYPE_ATTR, _xsi)
 
19849
 *         _attributes[XML_SCHEMA_INSTANCE_TYPE_ATTR] = _xsi
18051
19850
 *         if _pytype is None:             # <<<<<<<<<<<<<<
18052
19851
 *             # allow using unregistered or even wrong xsi:type names
18053
19852
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, _xsi)
18054
19853
 */
18055
 
    __pyx_1 = (__pyx_v__pytype == Py_None);
18056
 
    if (__pyx_1) {
 
19854
    __pyx_t_8 = (__pyx_v__pytype == Py_None);
 
19855
    if (__pyx_t_8) {
18057
19856
 
18058
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1955
 
19857
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1935
18059
19858
 *         if _pytype is None:
18060
19859
 *             # allow using unregistered or even wrong xsi:type names
18061
19860
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, _xsi)             # <<<<<<<<<<<<<<
18062
19861
 *             if dict_result is NULL:
18063
19862
 *                 dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, name)
18064
19863
 */
18065
 
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v__xsi);
 
19864
      __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v__xsi);
18066
19865
 
18067
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1956
 
19866
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1936
18068
19867
 *             # allow using unregistered or even wrong xsi:type names
18069
19868
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, _xsi)
18070
19869
 *             if dict_result is NULL:             # <<<<<<<<<<<<<<
18071
19870
 *                 dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, name)
18072
19871
 *             if dict_result is not NULL:
18073
19872
 */
18074
 
      __pyx_2 = (__pyx_v_dict_result == NULL);
18075
 
      if (__pyx_2) {
 
19873
      __pyx_t_8 = (__pyx_v_dict_result == NULL);
 
19874
      if (__pyx_t_8) {
18076
19875
 
18077
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1957
 
19876
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1937
18078
19877
 *             dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, _xsi)
18079
19878
 *             if dict_result is NULL:
18080
19879
 *                 dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, name)             # <<<<<<<<<<<<<<
18081
19880
 *             if dict_result is not NULL:
18082
19881
 *                 _pytype = (<PyType>dict_result).name
18083
19882
 */
18084
 
        __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT, __pyx_v_name);
 
19883
        __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT), __pyx_v_name);
18085
19884
        goto __pyx_L26;
18086
19885
      }
18087
19886
      __pyx_L26:;
18088
19887
 
18089
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1958
 
19888
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1938
18090
19889
 *             if dict_result is NULL:
18091
19890
 *                 dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, name)
18092
19891
 *             if dict_result is not NULL:             # <<<<<<<<<<<<<<
18093
19892
 *                 _pytype = (<PyType>dict_result).name
18094
19893
 * 
18095
19894
 */
18096
 
      __pyx_1 = (__pyx_v_dict_result != NULL);
18097
 
      if (__pyx_1) {
 
19895
      __pyx_t_8 = (__pyx_v_dict_result != NULL);
 
19896
      if (__pyx_t_8) {
18098
19897
 
18099
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1959
 
19898
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1939
18100
19899
 *                 dict_result = python.PyDict_GetItem(_SCHEMA_TYPE_DICT, name)
18101
19900
 *             if dict_result is not NULL:
18102
19901
 *                 _pytype = (<PyType>dict_result).name             # <<<<<<<<<<<<<<
18103
19902
 * 
18104
19903
 *     if _value is None and _pytype != u"str":
18105
19904
 */
18106
 
        Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->name);
18107
 
        Py_DECREF(__pyx_v__pytype);
 
19905
        __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->name);
 
19906
        __Pyx_DECREF(__pyx_v__pytype);
18108
19907
        __pyx_v__pytype = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->name;
18109
19908
        goto __pyx_L27;
18110
19909
      }
18116
19915
  }
18117
19916
  __pyx_L18:;
18118
19917
 
18119
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1961
 
19918
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1941
18120
19919
 *                 _pytype = (<PyType>dict_result).name
18121
19920
 * 
18122
19921
 *     if _value is None and _pytype != u"str":             # <<<<<<<<<<<<<<
18123
19922
 *         _pytype = _pytype or u"NoneType"
18124
19923
 *         strval = None
18125
19924
 */
18126
 
  __pyx_2 = (__pyx_v__value == Py_None);
18127
 
  if (__pyx_2) {
18128
 
    __pyx_6 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_802), Py_NE); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1961; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18129
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_6); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1961; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18130
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
 
19925
  __pyx_t_8 = (__pyx_v__value == Py_None);
 
19926
  if (__pyx_t_8) {
 
19927
    __pyx_t_7 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_865), Py_NE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1941; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19928
    __Pyx_GOTREF(__pyx_t_7);
 
19929
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1941; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19930
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
 
19931
    __pyx_t_3 = __pyx_t_1;
 
19932
  } else {
 
19933
    __pyx_t_3 = __pyx_t_8;
18131
19934
  }
18132
 
  if (__pyx_2) {
 
19935
  if (__pyx_t_3) {
18133
19936
 
18134
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1962
 
19937
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1942
18135
19938
 * 
18136
19939
 *     if _value is None and _pytype != u"str":
18137
19940
 *         _pytype = _pytype or u"NoneType"             # <<<<<<<<<<<<<<
18138
19941
 *         strval = None
18139
19942
 *     elif python._isString(_value):
18140
19943
 */
18141
 
    __pyx_4 = __pyx_v__pytype;
18142
 
    Py_INCREF(__pyx_4);
18143
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1962; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18144
 
    if (!__pyx_1) {
18145
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
18146
 
      __pyx_4 = ((PyObject *)__pyx_kp_803);
18147
 
      Py_INCREF(__pyx_4);
 
19944
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v__pytype); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1942; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
19945
    if (!__pyx_t_3) {
 
19946
      __Pyx_INCREF(((PyObject *)__pyx_kp_866));
 
19947
      __pyx_t_7 = __pyx_kp_866;
 
19948
    } else {
 
19949
      __Pyx_INCREF(__pyx_v__pytype);
 
19950
      __pyx_t_7 = __pyx_v__pytype;
18148
19951
    }
18149
 
    Py_DECREF(__pyx_v__pytype);
18150
 
    __pyx_v__pytype = __pyx_4;
18151
 
    __pyx_4 = 0;
 
19952
    __Pyx_DECREF(__pyx_v__pytype);
 
19953
    __pyx_v__pytype = __pyx_t_7;
 
19954
    __pyx_t_7 = 0;
18152
19955
 
18153
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1963
 
19956
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1943
18154
19957
 *     if _value is None and _pytype != u"str":
18155
19958
 *         _pytype = _pytype or u"NoneType"
18156
19959
 *         strval = None             # <<<<<<<<<<<<<<
18157
19960
 *     elif python._isString(_value):
18158
19961
 *         strval = _value
18159
19962
 */
18160
 
    Py_INCREF(Py_None);
18161
 
    Py_DECREF(__pyx_v_strval);
 
19963
    __Pyx_INCREF(Py_None);
 
19964
    __Pyx_DECREF(__pyx_v_strval);
18162
19965
    __pyx_v_strval = Py_None;
18163
19966
    goto __pyx_L28;
18164
19967
  }
18165
19968
 
18166
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1964
 
19969
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1944
18167
19970
 *         _pytype = _pytype or u"NoneType"
18168
19971
 *         strval = None
18169
19972
 *     elif python._isString(_value):             # <<<<<<<<<<<<<<
18170
19973
 *         strval = _value
18171
19974
 *     elif python.PyBool_Check(_value):
18172
19975
 */
18173
 
  __pyx_2 = _isString(__pyx_v__value);
18174
 
  if (__pyx_2) {
 
19976
  __pyx_t_3 = _isString(__pyx_v__value);
 
19977
  if (__pyx_t_3) {
18175
19978
 
18176
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1965
 
19979
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1945
18177
19980
 *         strval = None
18178
19981
 *     elif python._isString(_value):
18179
19982
 *         strval = _value             # <<<<<<<<<<<<<<
18180
19983
 *     elif python.PyBool_Check(_value):
18181
19984
 *         if _value:
18182
19985
 */
18183
 
    Py_INCREF(__pyx_v__value);
18184
 
    Py_DECREF(__pyx_v_strval);
 
19986
    __Pyx_INCREF(__pyx_v__value);
 
19987
    __Pyx_DECREF(__pyx_v_strval);
18185
19988
    __pyx_v_strval = __pyx_v__value;
18186
19989
    goto __pyx_L28;
18187
19990
  }
18188
19991
 
18189
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1966
 
19992
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1946
18190
19993
 *     elif python._isString(_value):
18191
19994
 *         strval = _value
18192
19995
 *     elif python.PyBool_Check(_value):             # <<<<<<<<<<<<<<
18193
19996
 *         if _value:
18194
19997
 *             strval = u"true"
18195
19998
 */
18196
 
  __pyx_1 = PyBool_Check(__pyx_v__value);
18197
 
  if (__pyx_1) {
 
19999
  __pyx_t_3 = PyBool_Check(__pyx_v__value);
 
20000
  if (__pyx_t_3) {
18198
20001
 
18199
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1967
 
20002
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1947
18200
20003
 *         strval = _value
18201
20004
 *     elif python.PyBool_Check(_value):
18202
20005
 *         if _value:             # <<<<<<<<<<<<<<
18203
20006
 *             strval = u"true"
18204
20007
 *         else:
18205
20008
 */
18206
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v__value); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1967; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18207
 
    if (__pyx_2) {
 
20009
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v__value); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1947; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20010
    if (__pyx_t_3) {
18208
20011
 
18209
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1968
 
20012
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1948
18210
20013
 *     elif python.PyBool_Check(_value):
18211
20014
 *         if _value:
18212
20015
 *             strval = u"true"             # <<<<<<<<<<<<<<
18213
20016
 *         else:
18214
20017
 *             strval = u"false"
18215
20018
 */
18216
 
      Py_INCREF(((PyObject *)__pyx_kp_804));
18217
 
      Py_DECREF(__pyx_v_strval);
18218
 
      __pyx_v_strval = ((PyObject *)__pyx_kp_804);
 
20019
      __Pyx_INCREF(((PyObject *)__pyx_kp_867));
 
20020
      __Pyx_DECREF(__pyx_v_strval);
 
20021
      __pyx_v_strval = ((PyObject *)__pyx_kp_867);
18219
20022
      goto __pyx_L29;
18220
20023
    }
18221
20024
    /*else*/ {
18222
20025
 
18223
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1970
 
20026
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1950
18224
20027
 *             strval = u"true"
18225
20028
 *         else:
18226
20029
 *             strval = u"false"             # <<<<<<<<<<<<<<
18227
20030
 *     else:
18228
20031
 *         strval = unicode(_value)
18229
20032
 */
18230
 
      Py_INCREF(((PyObject *)__pyx_kp_805));
18231
 
      Py_DECREF(__pyx_v_strval);
18232
 
      __pyx_v_strval = ((PyObject *)__pyx_kp_805);
 
20033
      __Pyx_INCREF(((PyObject *)__pyx_kp_868));
 
20034
      __Pyx_DECREF(__pyx_v_strval);
 
20035
      __pyx_v_strval = ((PyObject *)__pyx_kp_868);
18233
20036
    }
18234
20037
    __pyx_L29:;
18235
20038
    goto __pyx_L28;
18236
20039
  }
18237
20040
  /*else*/ {
18238
20041
 
18239
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1972
 
20042
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1952
18240
20043
 *             strval = u"false"
18241
20044
 *     else:
18242
20045
 *         strval = unicode(_value)             # <<<<<<<<<<<<<<
18243
20046
 * 
18244
20047
 *     if _pytype is None:
18245
20048
 */
18246
 
    __pyx_7 = PyTuple_New(1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1972; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18247
 
    Py_INCREF(__pyx_v__value);
18248
 
    PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v__value);
18249
 
    __pyx_5 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_7), NULL); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1972; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18250
 
    Py_DECREF(((PyObject *)__pyx_7)); __pyx_7 = 0;
18251
 
    Py_DECREF(__pyx_v_strval);
18252
 
    __pyx_v_strval = __pyx_5;
18253
 
    __pyx_5 = 0;
 
20049
    __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1952; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20050
    __Pyx_GOTREF(((PyObject *)__pyx_t_7));
 
20051
    __Pyx_INCREF(__pyx_v__value);
 
20052
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v__value);
 
20053
    __Pyx_GIVEREF(__pyx_v__value);
 
20054
    __pyx_t_5 = PyObject_Call(((PyObject *)((PyObject*)&PyUnicode_Type)), ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1952; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20055
    __Pyx_GOTREF(__pyx_t_5);
 
20056
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
 
20057
    __Pyx_DECREF(__pyx_v_strval);
 
20058
    __pyx_v_strval = __pyx_t_5;
 
20059
    __pyx_t_5 = 0;
18254
20060
  }
18255
20061
  __pyx_L28:;
18256
20062
 
18257
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1974
 
20063
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1954
18258
20064
 *         strval = unicode(_value)
18259
20065
 * 
18260
20066
 *     if _pytype is None:             # <<<<<<<<<<<<<<
18261
20067
 *         _pytype = _pytypename(_value)
18262
20068
 * 
18263
20069
 */
18264
 
  __pyx_1 = (__pyx_v__pytype == Py_None);
18265
 
  if (__pyx_1) {
 
20070
  __pyx_t_3 = (__pyx_v__pytype == Py_None);
 
20071
  if (__pyx_t_3) {
18266
20072
 
18267
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1975
 
20073
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1955
18268
20074
 * 
18269
20075
 *     if _pytype is None:
18270
20076
 *         _pytype = _pytypename(_value)             # <<<<<<<<<<<<<<
18271
20077
 * 
18272
20078
 *     if _pytype is not None:
18273
20079
 */
18274
 
    __pyx_6 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v__value); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1975; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18275
 
    Py_DECREF(__pyx_v__pytype);
18276
 
    __pyx_v__pytype = __pyx_6;
18277
 
    __pyx_6 = 0;
 
20080
    __pyx_t_5 = __pyx_f_4lxml_9objectify__pytypename(__pyx_v__value); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1955; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20081
    __Pyx_GOTREF(__pyx_t_5);
 
20082
    __Pyx_DECREF(__pyx_v__pytype);
 
20083
    __pyx_v__pytype = __pyx_t_5;
 
20084
    __pyx_t_5 = 0;
18278
20085
    goto __pyx_L30;
18279
20086
  }
18280
20087
  __pyx_L30:;
18281
20088
 
18282
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1977
 
20089
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1957
18283
20090
 *         _pytype = _pytypename(_value)
18284
20091
 * 
18285
20092
 *     if _pytype is not None:             # <<<<<<<<<<<<<<
18286
20093
 *         if _pytype == u"NoneType" or _pytype == u"none":
18287
20094
 *             strval = None
18288
20095
 */
18289
 
  __pyx_2 = (__pyx_v__pytype != Py_None);
18290
 
  if (__pyx_2) {
 
20096
  __pyx_t_3 = (__pyx_v__pytype != Py_None);
 
20097
  if (__pyx_t_3) {
18291
20098
 
18292
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1978
 
20099
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1958
18293
20100
 * 
18294
20101
 *     if _pytype is not None:
18295
20102
 *         if _pytype == u"NoneType" or _pytype == u"none":             # <<<<<<<<<<<<<<
18296
20103
 *             strval = None
18297
 
 *             python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 
20104
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"
18298
20105
 */
18299
 
    __pyx_4 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_806), Py_EQ); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18300
 
    __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_4); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18301
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
18302
 
    if (!__pyx_1) {
18303
 
      __pyx_7 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_807), Py_EQ); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18304
 
      __pyx_1 = __Pyx_PyObject_IsTrue(__pyx_7); if (unlikely(__pyx_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18305
 
      Py_DECREF(__pyx_7); __pyx_7 = 0;
 
20106
    __pyx_t_5 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_869), Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20107
    __Pyx_GOTREF(__pyx_t_5);
 
20108
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20109
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
20110
    if (!__pyx_t_3) {
 
20111
      __pyx_t_5 = PyObject_RichCompare(__pyx_v__pytype, ((PyObject *)__pyx_kp_870), Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20112
      __Pyx_GOTREF(__pyx_t_5);
 
20113
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20114
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
 
20115
      __pyx_t_1 = __pyx_t_8;
 
20116
    } else {
 
20117
      __pyx_t_1 = __pyx_t_3;
18306
20118
    }
18307
 
    if (__pyx_1) {
 
20119
    if (__pyx_t_1) {
18308
20120
 
18309
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1979
 
20121
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1959
18310
20122
 *     if _pytype is not None:
18311
20123
 *         if _pytype == u"NoneType" or _pytype == u"none":
18312
20124
 *             strval = None             # <<<<<<<<<<<<<<
18313
 
 *             python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")
 
20125
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"
18314
20126
 *         else:
18315
20127
 */
18316
 
      Py_INCREF(Py_None);
18317
 
      Py_DECREF(__pyx_v_strval);
 
20128
      __Pyx_INCREF(Py_None);
 
20129
      __Pyx_DECREF(__pyx_v_strval);
18318
20130
      __pyx_v_strval = Py_None;
18319
20131
 
18320
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1980
 
20132
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1960
18321
20133
 *         if _pytype == u"NoneType" or _pytype == u"none":
18322
20134
 *             strval = None
18323
 
 *             python.PyDict_SetItem(_attributes, XML_SCHEMA_INSTANCE_NIL_ATTR, u"true")             # <<<<<<<<<<<<<<
 
20135
 *             _attributes[XML_SCHEMA_INSTANCE_NIL_ATTR] = u"true"             # <<<<<<<<<<<<<<
18324
20136
 *         else:
18325
20137
 *             # check if type information from arguments is valid
18326
20138
 */
18327
 
      __pyx_8 = PyDict_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_808)); if (unlikely(__pyx_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1980; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20139
      if (PyObject_SetItem(__pyx_v__attributes, __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR, ((PyObject *)__pyx_kp_871)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1960; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18328
20140
      goto __pyx_L32;
18329
20141
    }
18330
20142
    /*else*/ {
18331
20143
 
18332
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1983
 
20144
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1963
18333
20145
 *         else:
18334
20146
 *             # check if type information from arguments is valid
18335
20147
 *             dict_result = python.PyDict_GetItem(_PYTYPE_DICT, _pytype)             # <<<<<<<<<<<<<<
18336
20148
 *             if dict_result is not NULL:
18337
20149
 *                 type_check = (<PyType>dict_result).type_check
18338
20150
 */
18339
 
      __pyx_v_dict_result = PyDict_GetItem(__pyx_v_4lxml_9objectify__PYTYPE_DICT, __pyx_v__pytype);
 
20151
      __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT), __pyx_v__pytype);
18340
20152
 
18341
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1984
 
20153
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1964
18342
20154
 *             # check if type information from arguments is valid
18343
20155
 *             dict_result = python.PyDict_GetItem(_PYTYPE_DICT, _pytype)
18344
20156
 *             if dict_result is not NULL:             # <<<<<<<<<<<<<<
18345
20157
 *                 type_check = (<PyType>dict_result).type_check
18346
20158
 *                 if type_check is not None:
18347
20159
 */
18348
 
      __pyx_2 = (__pyx_v_dict_result != NULL);
18349
 
      if (__pyx_2) {
 
20160
      __pyx_t_1 = (__pyx_v_dict_result != NULL);
 
20161
      if (__pyx_t_1) {
18350
20162
 
18351
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1985
 
20163
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1965
18352
20164
 *             dict_result = python.PyDict_GetItem(_PYTYPE_DICT, _pytype)
18353
20165
 *             if dict_result is not NULL:
18354
20166
 *                 type_check = (<PyType>dict_result).type_check             # <<<<<<<<<<<<<<
18355
20167
 *                 if type_check is not None:
18356
20168
 *                     type_check(strval)
18357
20169
 */
18358
 
        Py_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->type_check);
18359
 
        Py_DECREF(__pyx_v_type_check);
 
20170
        __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->type_check);
 
20171
        __Pyx_DECREF(__pyx_v_type_check);
18360
20172
        __pyx_v_type_check = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_v_dict_result)->type_check;
18361
20173
 
18362
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1986
 
20174
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1966
18363
20175
 *             if dict_result is not NULL:
18364
20176
 *                 type_check = (<PyType>dict_result).type_check
18365
20177
 *                 if type_check is not None:             # <<<<<<<<<<<<<<
18366
20178
 *                     type_check(strval)
18367
20179
 * 
18368
20180
 */
18369
 
        __pyx_1 = (__pyx_v_type_check != Py_None);
18370
 
        if (__pyx_1) {
 
20181
        __pyx_t_1 = (__pyx_v_type_check != Py_None);
 
20182
        if (__pyx_t_1) {
18371
20183
 
18372
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1987
 
20184
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1967
18373
20185
 *                 type_check = (<PyType>dict_result).type_check
18374
20186
 *                 if type_check is not None:
18375
20187
 *                     type_check(strval)             # <<<<<<<<<<<<<<
18376
20188
 * 
18377
 
 *                 python.PyDict_SetItem(_attributes, PYTYPE_ATTRIBUTE, _pytype)
 
20189
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
18378
20190
 */
18379
 
          __pyx_5 = PyTuple_New(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1987; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18380
 
          Py_INCREF(__pyx_v_strval);
18381
 
          PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_strval);
18382
 
          __pyx_6 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_5), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1987; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18383
 
          Py_DECREF(((PyObject *)__pyx_5)); __pyx_5 = 0;
18384
 
          Py_DECREF(__pyx_6); __pyx_6 = 0;
 
20191
          __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1967; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20192
          __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
20193
          __Pyx_INCREF(__pyx_v_strval);
 
20194
          PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_strval);
 
20195
          __Pyx_GIVEREF(__pyx_v_strval);
 
20196
          __pyx_t_7 = PyObject_Call(__pyx_v_type_check, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1967; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20197
          __Pyx_GOTREF(__pyx_t_7);
 
20198
          __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
20199
          __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
18385
20200
          goto __pyx_L34;
18386
20201
        }
18387
20202
        __pyx_L34:;
18388
20203
 
18389
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1989
 
20204
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1969
18390
20205
 *                     type_check(strval)
18391
20206
 * 
18392
 
 *                 python.PyDict_SetItem(_attributes, PYTYPE_ATTRIBUTE, _pytype)             # <<<<<<<<<<<<<<
 
20207
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype             # <<<<<<<<<<<<<<
18393
20208
 * 
18394
20209
 *     return _makeElement(u"value", strval, _attributes, nsmap)
18395
20210
 */
18396
 
        __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1989; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18397
 
        __pyx_8 = PyDict_SetItem(__pyx_v__attributes, __pyx_4, __pyx_v__pytype); if (unlikely(__pyx_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1989; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18398
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
 
20211
        __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1969; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20212
        __Pyx_GOTREF(__pyx_1);
 
20213
        if (PyObject_SetItem(__pyx_v__attributes, __pyx_1, __pyx_v__pytype) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1969; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20214
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
18399
20215
        goto __pyx_L33;
18400
20216
      }
18401
20217
      __pyx_L33:;
18405
20221
  }
18406
20222
  __pyx_L31:;
18407
20223
 
18408
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1991
18409
 
 *                 python.PyDict_SetItem(_attributes, PYTYPE_ATTRIBUTE, _pytype)
 
20224
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1971
 
20225
 *                 _attributes[PYTYPE_ATTRIBUTE] = _pytype
18410
20226
 * 
18411
20227
 *     return _makeElement(u"value", strval, _attributes, nsmap)             # <<<<<<<<<<<<<<
18412
20228
 * 
18413
20229
 * 
18414
20230
 */
18415
 
  __pyx_7 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(((PyObject *)__pyx_kp_809), __pyx_v_strval, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1991; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18416
 
  __pyx_r = __pyx_7;
18417
 
  __pyx_7 = 0;
 
20231
  __Pyx_XDECREF(__pyx_r);
 
20232
  __pyx_t_7 = ((PyObject *)__pyx_f_4lxml_9objectify__makeElement(((PyObject *)__pyx_kp_872), __pyx_v_strval, __pyx_v__attributes, __pyx_v_nsmap)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1971; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20233
  __Pyx_GOTREF(__pyx_t_7);
 
20234
  __pyx_r = __pyx_t_7;
 
20235
  __pyx_t_7 = 0;
18418
20236
  goto __pyx_L0;
18419
20237
 
18420
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20238
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18421
20239
  goto __pyx_L0;
18422
20240
  __pyx_L1_error:;
18423
 
  Py_XDECREF(__pyx_4);
18424
 
  Py_XDECREF(__pyx_5);
18425
 
  Py_XDECREF(__pyx_6);
18426
 
  Py_XDECREF(__pyx_7);
 
20241
  __Pyx_XDECREF(__pyx_1);
 
20242
  __Pyx_XDECREF(__pyx_2);
 
20243
  __Pyx_XDECREF(__pyx_3);
 
20244
  __Pyx_XDECREF(__pyx_t_5);
 
20245
  __Pyx_XDECREF(__pyx_t_6);
 
20246
  __Pyx_XDECREF(__pyx_t_7);
18427
20247
  __Pyx_AddTraceback("lxml.objectify.DataElement");
18428
20248
  __pyx_r = NULL;
18429
20249
  __pyx_L0:;
18430
 
  Py_DECREF(__pyx_v__attributes);
18431
 
  Py_DECREF(__pyx_v_temp);
18432
 
  Py_DECREF(__pyx_v_prefix);
18433
 
  Py_DECREF(__pyx_v_name);
18434
 
  Py_DECREF(__pyx_v_ns);
18435
 
  Py_DECREF(__pyx_v_strval);
18436
 
  Py_DECREF(__pyx_v_type_check);
18437
 
  Py_DECREF(__pyx_v_attrib);
18438
 
  Py_DECREF(__pyx_v_nsmap);
18439
 
  Py_DECREF(__pyx_v__pytype);
18440
 
  Py_DECREF(__pyx_v__xsi);
 
20250
  __Pyx_DECREF(__pyx_v__attributes);
 
20251
  __Pyx_DECREF(__pyx_v_temp);
 
20252
  __Pyx_DECREF(__pyx_v_prefix);
 
20253
  __Pyx_DECREF(__pyx_v_name);
 
20254
  __Pyx_DECREF(__pyx_v_ns);
 
20255
  __Pyx_DECREF(__pyx_v_strval);
 
20256
  __Pyx_DECREF(__pyx_v_type_check);
 
20257
  __Pyx_DECREF(__pyx_v_attrib);
 
20258
  __Pyx_DECREF(__pyx_v_nsmap);
 
20259
  __Pyx_DECREF(__pyx_v__pytype);
 
20260
  __Pyx_DECREF(__pyx_v__xsi);
 
20261
  __Pyx_XGIVEREF(__pyx_r);
 
20262
  __Pyx_FinishRefcountContext();
18441
20263
  return __pyx_r;
18442
20264
}
18443
20265
 
18444
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":21
 
20266
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":21
18445
20267
 *     cdef _ObjectPath*  _c_path
18446
20268
 *     cdef Py_ssize_t _path_len
18447
20269
 *     def __init__(self, path):             # <<<<<<<<<<<<<<
18453
20275
static int __pyx_pf_4lxml_9objectify_10ObjectPath___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18454
20276
  PyObject *__pyx_v_path = 0;
18455
20277
  int __pyx_r;
18456
 
  int __pyx_1;
18457
 
  PyObject *__pyx_2 = 0;
18458
 
  PyObject *__pyx_3 = 0;
18459
 
  PyObject *__pyx_4 = 0;
18460
 
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_5;
 
20278
  int __pyx_t_1;
 
20279
  PyObject *__pyx_t_2 = NULL;
 
20280
  PyObject *__pyx_t_3 = NULL;
 
20281
  PyObject *__pyx_t_4 = NULL;
 
20282
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_t_5;
18461
20283
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_path,0};
 
20284
  __Pyx_SetupRefcountContext("__init__");
18462
20285
  if (unlikely(__pyx_kwds)) {
 
20286
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18463
20287
    PyObject* values[1] = {0};
18464
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18465
20288
    switch (PyTuple_GET_SIZE(__pyx_args)) {
18466
20289
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18467
20290
      case  0: break;
18490
20313
  return -1;
18491
20314
  __pyx_L4_argument_unpacking_done:;
18492
20315
 
18493
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":22
 
20316
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":22
18494
20317
 *     cdef Py_ssize_t _path_len
18495
20318
 *     def __init__(self, path):
18496
20319
 *         if python._isString(path):             # <<<<<<<<<<<<<<
18497
20320
 *             self._path = _parseObjectPathString(path)
18498
20321
 *             self._path_str = path
18499
20322
 */
18500
 
  __pyx_1 = _isString(__pyx_v_path);
18501
 
  if (__pyx_1) {
 
20323
  __pyx_t_1 = _isString(__pyx_v_path);
 
20324
  if (__pyx_t_1) {
18502
20325
 
18503
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":23
 
20326
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":23
18504
20327
 *     def __init__(self, path):
18505
20328
 *         if python._isString(path):
18506
20329
 *             self._path = _parseObjectPathString(path)             # <<<<<<<<<<<<<<
18507
20330
 *             self._path_str = path
18508
20331
 *         else:
18509
20332
 */
18510
 
    __pyx_2 = __pyx_f_4lxml_9objectify__parseObjectPathString(__pyx_v_path); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18511
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
18512
 
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_2;
18513
 
    __pyx_2 = 0;
 
20333
    __pyx_t_2 = __pyx_f_4lxml_9objectify__parseObjectPathString(__pyx_v_path); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20334
    __Pyx_GOTREF(__pyx_t_2);
 
20335
    __Pyx_GIVEREF(__pyx_t_2);
 
20336
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
 
20337
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
 
20338
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_t_2;
 
20339
    __pyx_t_2 = 0;
18514
20340
 
18515
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":24
 
20341
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":24
18516
20342
 *         if python._isString(path):
18517
20343
 *             self._path = _parseObjectPathString(path)
18518
20344
 *             self._path_str = path             # <<<<<<<<<<<<<<
18519
20345
 *         else:
18520
20346
 *             self._path = _parseObjectPathList(path)
18521
20347
 */
18522
 
    Py_INCREF(__pyx_v_path);
18523
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
 
20348
    __Pyx_INCREF(__pyx_v_path);
 
20349
    __Pyx_GIVEREF(__pyx_v_path);
 
20350
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
 
20351
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
18524
20352
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str = __pyx_v_path;
18525
20353
    goto __pyx_L6;
18526
20354
  }
18527
20355
  /*else*/ {
18528
20356
 
18529
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":26
 
20357
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":26
18530
20358
 *             self._path_str = path
18531
20359
 *         else:
18532
20360
 *             self._path = _parseObjectPathList(path)             # <<<<<<<<<<<<<<
18533
20361
 *             self._path_str = u'.'.join(path)
18534
20362
 *         self._path_len = python.PyList_GET_SIZE(self._path)
18535
20363
 */
18536
 
    __pyx_2 = __pyx_f_4lxml_9objectify__parseObjectPathList(__pyx_v_path); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18537
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
18538
 
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_2;
18539
 
    __pyx_2 = 0;
 
20364
    __pyx_t_2 = __pyx_f_4lxml_9objectify__parseObjectPathList(__pyx_v_path); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20365
    __Pyx_GOTREF(__pyx_t_2);
 
20366
    __Pyx_GIVEREF(__pyx_t_2);
 
20367
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
 
20368
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
 
20369
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path = __pyx_t_2;
 
20370
    __pyx_t_2 = 0;
18540
20371
 
18541
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":27
 
20372
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":27
18542
20373
 *         else:
18543
20374
 *             self._path = _parseObjectPathList(path)
18544
20375
 *             self._path_str = u'.'.join(path)             # <<<<<<<<<<<<<<
18545
20376
 *         self._path_len = python.PyList_GET_SIZE(self._path)
18546
20377
 *         self._c_path = _buildObjectPathSegments(self._path)
18547
20378
 */
18548
 
    __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_kp_810), __pyx_kp_join); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18549
 
    __pyx_3 = PyTuple_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18550
 
    Py_INCREF(__pyx_v_path);
18551
 
    PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_path);
18552
 
    __pyx_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_3), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18553
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
18554
 
    Py_DECREF(((PyObject *)__pyx_3)); __pyx_3 = 0;
18555
 
    Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
18556
 
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str = __pyx_4;
18557
 
    __pyx_4 = 0;
 
20379
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_kp_873), __pyx_kp_join); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20380
    __Pyx_GOTREF(__pyx_t_2);
 
20381
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20382
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
20383
    __Pyx_INCREF(__pyx_v_path);
 
20384
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_path);
 
20385
    __Pyx_GIVEREF(__pyx_v_path);
 
20386
    __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20387
    __Pyx_GOTREF(__pyx_t_4);
 
20388
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
20389
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
20390
    __Pyx_GIVEREF(__pyx_t_4);
 
20391
    __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
 
20392
    __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
 
20393
    ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str = __pyx_t_4;
 
20394
    __pyx_t_4 = 0;
18558
20395
  }
18559
20396
  __pyx_L6:;
18560
20397
 
18561
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":28
 
20398
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":28
18562
20399
 *             self._path = _parseObjectPathList(path)
18563
20400
 *             self._path_str = u'.'.join(path)
18564
20401
 *         self._path_len = python.PyList_GET_SIZE(self._path)             # <<<<<<<<<<<<<<
18567
20404
 */
18568
20405
  ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len = PyList_GET_SIZE(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path);
18569
20406
 
18570
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":29
 
20407
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":29
18571
20408
 *             self._path_str = u'.'.join(path)
18572
20409
 *         self._path_len = python.PyList_GET_SIZE(self._path)
18573
20410
 *         self._c_path = _buildObjectPathSegments(self._path)             # <<<<<<<<<<<<<<
18574
20411
 *         self.find = self.__call__
18575
20412
 * 
18576
20413
 */
18577
 
  __pyx_5 = __pyx_f_4lxml_9objectify__buildObjectPathSegments(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path); if (unlikely(__pyx_5 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18578
 
  ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path = __pyx_5;
 
20414
  __pyx_t_5 = __pyx_f_4lxml_9objectify__buildObjectPathSegments(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20415
  ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path = __pyx_t_5;
18579
20416
 
18580
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":30
 
20417
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":30
18581
20418
 *         self._path_len = python.PyList_GET_SIZE(self._path)
18582
20419
 *         self._c_path = _buildObjectPathSegments(self._path)
18583
20420
 *         self.find = self.__call__             # <<<<<<<<<<<<<<
18584
20421
 * 
18585
20422
 *     def __dealloc__(self):
18586
20423
 */
18587
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_kp___call__); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18588
 
  Py_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->find);
18589
 
  ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->find = __pyx_2;
18590
 
  __pyx_2 = 0;
 
20424
  __pyx_t_4 = PyObject_GetAttr(__pyx_v_self, __pyx_kp___call__); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20425
  __Pyx_GOTREF(__pyx_t_4);
 
20426
  __Pyx_GIVEREF(__pyx_t_4);
 
20427
  __Pyx_GOTREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->find);
 
20428
  __Pyx_DECREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->find);
 
20429
  ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->find = __pyx_t_4;
 
20430
  __pyx_t_4 = 0;
18591
20431
 
18592
20432
  __pyx_r = 0;
18593
20433
  goto __pyx_L0;
18594
20434
  __pyx_L1_error:;
18595
 
  Py_XDECREF(__pyx_2);
18596
 
  Py_XDECREF(__pyx_3);
18597
 
  Py_XDECREF(__pyx_4);
 
20435
  __Pyx_XDECREF(__pyx_t_2);
 
20436
  __Pyx_XDECREF(__pyx_t_3);
 
20437
  __Pyx_XDECREF(__pyx_t_4);
18598
20438
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__init__");
18599
20439
  __pyx_r = -1;
18600
20440
  __pyx_L0:;
 
20441
  __Pyx_FinishRefcountContext();
18601
20442
  return __pyx_r;
18602
20443
}
18603
20444
 
18604
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":32
 
20445
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":32
18605
20446
 *         self.find = self.__call__
18606
20447
 * 
18607
20448
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
18611
20452
 
18612
20453
static void __pyx_pf_4lxml_9objectify_10ObjectPath___dealloc__(PyObject *__pyx_v_self); /*proto*/
18613
20454
static void __pyx_pf_4lxml_9objectify_10ObjectPath___dealloc__(PyObject *__pyx_v_self) {
18614
 
  int __pyx_1;
 
20455
  int __pyx_t_1;
 
20456
  __Pyx_SetupRefcountContext("__dealloc__");
18615
20457
 
18616
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":33
 
20458
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":33
18617
20459
 * 
18618
20460
 *     def __dealloc__(self):
18619
20461
 *         if self._c_path is not NULL:             # <<<<<<<<<<<<<<
18620
20462
 *             python.PyMem_Free(self._c_path)
18621
20463
 * 
18622
20464
 */
18623
 
  __pyx_1 = (((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path != NULL);
18624
 
  if (__pyx_1) {
 
20465
  __pyx_t_1 = (((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path != NULL);
 
20466
  if (__pyx_t_1) {
18625
20467
 
18626
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":34
 
20468
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":34
18627
20469
 *     def __dealloc__(self):
18628
20470
 *         if self._c_path is not NULL:
18629
20471
 *             python.PyMem_Free(self._c_path)             # <<<<<<<<<<<<<<
18635
20477
  }
18636
20478
  __pyx_L5:;
18637
20479
 
 
20480
  __Pyx_FinishRefcountContext();
18638
20481
}
18639
20482
 
18640
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":36
 
20483
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":36
18641
20484
 *             python.PyMem_Free(self._c_path)
18642
20485
 * 
18643
20486
 *     def __str__(self):             # <<<<<<<<<<<<<<
18647
20490
 
18648
20491
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath___str__(PyObject *__pyx_v_self); /*proto*/
18649
20492
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath___str__(PyObject *__pyx_v_self) {
18650
 
  PyObject *__pyx_r;
 
20493
  PyObject *__pyx_r = NULL;
 
20494
  __Pyx_SetupRefcountContext("__str__");
18651
20495
 
18652
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":37
 
20496
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":37
18653
20497
 * 
18654
20498
 *     def __str__(self):
18655
20499
 *         return self._path_str             # <<<<<<<<<<<<<<
18656
20500
 * 
18657
20501
 *     def __call__(self, _Element root not None, *default):
18658
20502
 */
18659
 
  Py_INCREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
 
20503
  __Pyx_XDECREF(__pyx_r);
 
20504
  __Pyx_INCREF(((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str);
18660
20505
  __pyx_r = ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_str;
18661
20506
  goto __pyx_L0;
18662
20507
 
18663
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20508
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18664
20509
  __pyx_L0:;
 
20510
  __Pyx_XGIVEREF(__pyx_r);
 
20511
  __Pyx_FinishRefcountContext();
18665
20512
  return __pyx_r;
18666
20513
}
18667
20514
 
18668
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":39
 
20515
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":39
18669
20516
 *         return self._path_str
18670
20517
 * 
18671
20518
 *     def __call__(self, _Element root not None, *default):             # <<<<<<<<<<<<<<
18679
20526
  struct LxmlElement *__pyx_v_root = 0;
18680
20527
  PyObject *__pyx_v_default = 0;
18681
20528
  Py_ssize_t __pyx_v_use_default;
18682
 
  PyObject *__pyx_r;
18683
 
  int __pyx_1;
18684
 
  PyObject *__pyx_2 = 0;
 
20529
  PyObject *__pyx_r = NULL;
 
20530
  int __pyx_t_1;
 
20531
  PyObject *__pyx_t_2 = NULL;
18685
20532
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_root,0};
 
20533
  __Pyx_SetupRefcountContext("__call__");
18686
20534
  if (PyTuple_GET_SIZE(__pyx_args) > 1) {
18687
 
    __pyx_v_default = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); if (unlikely(!__pyx_v_default)) return NULL;
 
20535
    __pyx_v_default = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); __Pyx_GOTREF(__pyx_v_default);
 
20536
    if (unlikely(!__pyx_v_default)) return NULL;
18688
20537
  } else {
18689
 
    __pyx_v_default = __pyx_empty_tuple; Py_INCREF(__pyx_empty_tuple);
 
20538
    __pyx_v_default = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple);
18690
20539
  }
18691
20540
  if (unlikely(__pyx_kwds)) {
 
20541
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18692
20542
    PyObject* values[1] = {0};
18693
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18694
20543
    switch (PyTuple_GET_SIZE(__pyx_args)) {
18695
20544
      default:
18696
20545
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18716
20565
  __pyx_L5_argtuple_error:;
18717
20566
  __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
18718
20567
  __pyx_L3_error:;
18719
 
  Py_DECREF(__pyx_v_default);
 
20568
  __Pyx_DECREF(__pyx_v_default);
18720
20569
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__call__");
18721
20570
  return NULL;
18722
20571
  __pyx_L4_argument_unpacking_done:;
18723
20572
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_11etreepublic__Element, 0, "root", 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18724
20573
 
18725
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":47
 
20574
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":47
18726
20575
 *         """
18727
20576
 *         cdef Py_ssize_t use_default
18728
20577
 *         use_default = python.PyTuple_GET_SIZE(default)             # <<<<<<<<<<<<<<
18731
20580
 */
18732
20581
  __pyx_v_use_default = PyTuple_GET_SIZE(__pyx_v_default);
18733
20582
 
18734
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":48
 
20583
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":48
18735
20584
 *         cdef Py_ssize_t use_default
18736
20585
 *         use_default = python.PyTuple_GET_SIZE(default)
18737
20586
 *         if use_default == 1:             # <<<<<<<<<<<<<<
18738
20587
 *             default = python.PyTuple_GET_ITEM(default, 0)
18739
20588
 *             python.Py_INCREF(default)
18740
20589
 */
18741
 
  __pyx_1 = (__pyx_v_use_default == 1);
18742
 
  if (__pyx_1) {
 
20590
  __pyx_t_1 = (__pyx_v_use_default == 1);
 
20591
  if (__pyx_t_1) {
18743
20592
 
18744
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":49
 
20593
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":49
18745
20594
 *         use_default = python.PyTuple_GET_SIZE(default)
18746
20595
 *         if use_default == 1:
18747
20596
 *             default = python.PyTuple_GET_ITEM(default, 0)             # <<<<<<<<<<<<<<
18748
20597
 *             python.Py_INCREF(default)
18749
20598
 *             use_default = 1
18750
20599
 */
18751
 
    __pyx_2 = PyTuple_GET_ITEM(__pyx_v_default, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18752
 
    Py_DECREF(__pyx_v_default);
18753
 
    __pyx_v_default = __pyx_2;
18754
 
    __pyx_2 = 0;
 
20600
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_v_default, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20601
    __Pyx_GOTREF(__pyx_t_2);
 
20602
    __Pyx_DECREF(__pyx_v_default);
 
20603
    __pyx_v_default = __pyx_t_2;
 
20604
    __pyx_t_2 = 0;
18755
20605
 
18756
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":50
 
20606
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":50
18757
20607
 *         if use_default == 1:
18758
20608
 *             default = python.PyTuple_GET_ITEM(default, 0)
18759
20609
 *             python.Py_INCREF(default)             # <<<<<<<<<<<<<<
18762
20612
 */
18763
20613
    Py_INCREF(__pyx_v_default);
18764
20614
 
18765
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":51
 
20615
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":51
18766
20616
 *             default = python.PyTuple_GET_ITEM(default, 0)
18767
20617
 *             python.Py_INCREF(default)
18768
20618
 *             use_default = 1             # <<<<<<<<<<<<<<
18773
20623
    goto __pyx_L6;
18774
20624
  }
18775
20625
 
18776
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":52
 
20626
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":52
18777
20627
 *             python.Py_INCREF(default)
18778
20628
 *             use_default = 1
18779
20629
 *         elif use_default > 1:             # <<<<<<<<<<<<<<
18780
20630
 *             raise TypeError, u"invalid number of arguments: needs one or two"
18781
20631
 *         return _findObjectPath(root, self._c_path, self._path_len,
18782
20632
 */
18783
 
  __pyx_1 = (__pyx_v_use_default > 1);
18784
 
  if (__pyx_1) {
 
20633
  __pyx_t_1 = (__pyx_v_use_default > 1);
 
20634
  if (__pyx_t_1) {
18785
20635
 
18786
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":53
 
20636
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":53
18787
20637
 *             use_default = 1
18788
20638
 *         elif use_default > 1:
18789
20639
 *             raise TypeError, u"invalid number of arguments: needs one or two"             # <<<<<<<<<<<<<<
18790
20640
 *         return _findObjectPath(root, self._c_path, self._path_len,
18791
20641
 *                                default, use_default)
18792
20642
 */
18793
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_811), 0);
 
20643
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_874), 0);
18794
20644
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18795
20645
    goto __pyx_L6;
18796
20646
  }
18797
20647
  __pyx_L6:;
18798
20648
 
18799
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":55
 
20649
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":54
 
20650
 *         elif use_default > 1:
 
20651
 *             raise TypeError, u"invalid number of arguments: needs one or two"
 
20652
 *         return _findObjectPath(root, self._c_path, self._path_len,             # <<<<<<<<<<<<<<
 
20653
 *                                default, use_default)
 
20654
 * 
 
20655
 */
 
20656
  __Pyx_XDECREF(__pyx_r);
 
20657
 
 
20658
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":55
18800
20659
 *             raise TypeError, u"invalid number of arguments: needs one or two"
18801
20660
 *         return _findObjectPath(root, self._c_path, self._path_len,
18802
20661
 *                                default, use_default)             # <<<<<<<<<<<<<<
18803
20662
 * 
18804
20663
 *     def hasattr(self, _Element root not None):
18805
20664
 */
18806
 
  __pyx_2 = __pyx_f_4lxml_9objectify__findObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, __pyx_v_default, __pyx_v_use_default); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18807
 
  __pyx_r = __pyx_2;
18808
 
  __pyx_2 = 0;
 
20665
  __pyx_t_2 = __pyx_f_4lxml_9objectify__findObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, __pyx_v_default, __pyx_v_use_default); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20666
  __Pyx_GOTREF(__pyx_t_2);
 
20667
  __pyx_r = __pyx_t_2;
 
20668
  __pyx_t_2 = 0;
18809
20669
  goto __pyx_L0;
18810
20670
 
18811
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20671
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18812
20672
  goto __pyx_L0;
18813
20673
  __pyx_L1_error:;
18814
 
  Py_XDECREF(__pyx_2);
 
20674
  __Pyx_XDECREF(__pyx_t_2);
18815
20675
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.__call__");
18816
20676
  __pyx_r = NULL;
18817
20677
  __pyx_L0:;
18818
 
  Py_DECREF(__pyx_v_default);
 
20678
  __Pyx_DECREF(__pyx_v_default);
 
20679
  __Pyx_XGIVEREF(__pyx_r);
 
20680
  __Pyx_FinishRefcountContext();
18819
20681
  return __pyx_r;
18820
20682
}
18821
20683
 
18822
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":57
 
20684
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":57
18823
20685
 *                                default, use_default)
18824
20686
 * 
18825
20687
 *     def hasattr(self, _Element root not None):             # <<<<<<<<<<<<<<
18830
20692
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_hasattr(PyObject *__pyx_v_self, PyObject *__pyx_v_root); /*proto*/
18831
20693
static char __pyx_doc_4lxml_9objectify_10ObjectPath_hasattr[] = "hasattr(self, root)";
18832
20694
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_hasattr(PyObject *__pyx_v_self, PyObject *__pyx_v_root) {
18833
 
  PyObject *__pyx_r;
18834
 
  PyObject *__pyx_1 = 0;
18835
 
  int __pyx_2;
18836
 
  PyObject *__pyx_3 = 0;
18837
 
  PyObject *__pyx_4 = 0;
18838
 
  PyObject *__pyx_5 = 0;
 
20695
  PyObject *__pyx_r = NULL;
 
20696
  int __pyx_1;
 
20697
  PyObject *__pyx_t_1 = NULL;
 
20698
  PyObject *__pyx_t_2 = NULL;
 
20699
  PyObject *__pyx_t_3 = NULL;
 
20700
  PyObject *__pyx_t_4 = NULL;
 
20701
  __Pyx_SetupRefcountContext("hasattr");
18839
20702
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_11etreepublic__Element, 0, "root", 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18840
20703
 
18841
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":59
 
20704
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":59
18842
20705
 *     def hasattr(self, _Element root not None):
18843
20706
 *         u"hasattr(self, root)"
18844
20707
 *         try:             # <<<<<<<<<<<<<<
18848
20711
  {
18849
20712
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
18850
20713
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
 
20714
    __Pyx_XGOTREF(__pyx_save_exc_type);
 
20715
    __Pyx_XGOTREF(__pyx_save_exc_value);
 
20716
    __Pyx_XGOTREF(__pyx_save_exc_tb);
18851
20717
    /*try:*/ {
18852
20718
 
18853
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":60
 
20719
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":60
18854
20720
 *         u"hasattr(self, root)"
18855
20721
 *         try:
18856
20722
 *             _findObjectPath(root, self._c_path, self._path_len, None, 0)             # <<<<<<<<<<<<<<
18857
20723
 *         except AttributeError:
18858
20724
 *             return False
18859
20725
 */
18860
 
      __pyx_1 = __pyx_f_4lxml_9objectify__findObjectPath(((struct LxmlElement *)__pyx_v_root), ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, Py_None, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L5_error;}
18861
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
20726
      __pyx_t_1 = __pyx_f_4lxml_9objectify__findObjectPath(((struct LxmlElement *)__pyx_v_root), ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, Py_None, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L5_error;}
 
20727
      __Pyx_GOTREF(__pyx_t_1);
 
20728
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
18862
20729
    }
18863
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
18864
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
18865
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
18866
 
    goto __pyx_L10_try;
 
20730
    __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
 
20731
    __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
 
20732
    __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
 
20733
    goto __pyx_L12_try_end;
18867
20734
    __pyx_L5_error:;
18868
 
    Py_XDECREF(__pyx_1); __pyx_1 = 0;
 
20735
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
18869
20736
 
18870
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":61
 
20737
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":61
18871
20738
 *         try:
18872
20739
 *             _findObjectPath(root, self._c_path, self._path_len, None, 0)
18873
20740
 *         except AttributeError:             # <<<<<<<<<<<<<<
18874
20741
 *             return False
18875
20742
 *         return True
18876
20743
 */
18877
 
    __pyx_2 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
18878
 
    if (__pyx_2) {
 
20744
    __pyx_1 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
 
20745
    if (__pyx_1) {
18879
20746
      __Pyx_AddTraceback("lxml.objectify.hasattr");
18880
 
      if (__Pyx_GetException(&__pyx_1, &__pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L7_except_error;}
 
20747
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L7_except_error;}
 
20748
      __Pyx_GOTREF(__pyx_t_1);
 
20749
      __Pyx_GOTREF(__pyx_t_2);
 
20750
      __Pyx_GOTREF(__pyx_t_3);
18881
20751
 
18882
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":62
 
20752
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":62
18883
20753
 *             _findObjectPath(root, self._c_path, self._path_len, None, 0)
18884
20754
 *         except AttributeError:
18885
20755
 *             return False             # <<<<<<<<<<<<<<
18886
20756
 *         return True
18887
20757
 * 
18888
20758
 */
18889
 
      __pyx_5 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L7_except_error;}
18890
 
      __pyx_r = __pyx_5;
18891
 
      __pyx_5 = 0;
18892
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
18893
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
18894
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
20759
      __Pyx_XDECREF(__pyx_r);
 
20760
      __pyx_t_4 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L7_except_error;}
 
20761
      __Pyx_GOTREF(__pyx_t_4);
 
20762
      __pyx_r = __pyx_t_4;
 
20763
      __pyx_t_4 = 0;
 
20764
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
20765
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
20766
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18895
20767
      goto __pyx_L8_except_return;
18896
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
18897
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
18898
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
20768
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
20769
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
20770
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18899
20771
      goto __pyx_L6_exception_handled;
18900
20772
    }
18901
20773
    __pyx_L7_except_error:;
18902
 
    Py_XDECREF(__pyx_save_exc_type);
18903
 
    Py_XDECREF(__pyx_save_exc_value);
18904
 
    Py_XDECREF(__pyx_save_exc_tb);
 
20774
    __Pyx_XDECREF(__pyx_save_exc_type);
 
20775
    __Pyx_XDECREF(__pyx_save_exc_value);
 
20776
    __Pyx_XDECREF(__pyx_save_exc_tb);
18905
20777
    goto __pyx_L1_error;
18906
20778
    __pyx_L8_except_return:;
 
20779
    __Pyx_XGIVEREF(__pyx_save_exc_type);
 
20780
    __Pyx_XGIVEREF(__pyx_save_exc_value);
 
20781
    __Pyx_XGIVEREF(__pyx_save_exc_tb);
18907
20782
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
18908
20783
    goto __pyx_L0;
18909
20784
    __pyx_L6_exception_handled:;
 
20785
    __Pyx_XGIVEREF(__pyx_save_exc_type);
 
20786
    __Pyx_XGIVEREF(__pyx_save_exc_value);
 
20787
    __Pyx_XGIVEREF(__pyx_save_exc_tb);
18910
20788
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
18911
 
    __pyx_L10_try:;
 
20789
    __pyx_L12_try_end:;
18912
20790
  }
18913
20791
 
18914
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":63
 
20792
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":63
18915
20793
 *         except AttributeError:
18916
20794
 *             return False
18917
20795
 *         return True             # <<<<<<<<<<<<<<
18918
20796
 * 
18919
20797
 *     def setattr(self, _Element root not None, value):
18920
20798
 */
18921
 
  __pyx_5 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18922
 
  __pyx_r = __pyx_5;
18923
 
  __pyx_5 = 0;
 
20799
  __Pyx_XDECREF(__pyx_r);
 
20800
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20801
  __Pyx_GOTREF(__pyx_t_3);
 
20802
  __pyx_r = __pyx_t_3;
 
20803
  __pyx_t_3 = 0;
18924
20804
  goto __pyx_L0;
18925
20805
 
18926
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20806
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18927
20807
  goto __pyx_L0;
18928
20808
  __pyx_L1_error:;
18929
 
  Py_XDECREF(__pyx_1);
18930
 
  Py_XDECREF(__pyx_3);
18931
 
  Py_XDECREF(__pyx_4);
18932
 
  Py_XDECREF(__pyx_5);
 
20809
  __Pyx_XDECREF(__pyx_t_1);
 
20810
  __Pyx_XDECREF(__pyx_t_2);
 
20811
  __Pyx_XDECREF(__pyx_t_3);
 
20812
  __Pyx_XDECREF(__pyx_t_4);
18933
20813
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.hasattr");
18934
20814
  __pyx_r = NULL;
18935
20815
  __pyx_L0:;
 
20816
  __Pyx_XGIVEREF(__pyx_r);
 
20817
  __Pyx_FinishRefcountContext();
18936
20818
  return __pyx_r;
18937
20819
}
18938
20820
 
18939
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":65
 
20821
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":65
18940
20822
 *         return True
18941
20823
 * 
18942
20824
 *     def setattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
18949
20831
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_setattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18950
20832
  struct LxmlElement *__pyx_v_root = 0;
18951
20833
  PyObject *__pyx_v_value = 0;
18952
 
  PyObject *__pyx_r;
18953
 
  PyObject *__pyx_1 = 0;
 
20834
  PyObject *__pyx_r = NULL;
 
20835
  PyObject *__pyx_t_1 = NULL;
18954
20836
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_root,&__pyx_kp_value,0};
 
20837
  __Pyx_SetupRefcountContext("setattr");
18955
20838
  if (unlikely(__pyx_kwds)) {
 
20839
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18956
20840
    PyObject* values[2] = {0,0};
18957
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
18958
20841
    switch (PyTuple_GET_SIZE(__pyx_args)) {
18959
20842
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18960
20843
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18993
20876
  __pyx_L4_argument_unpacking_done:;
18994
20877
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_11etreepublic__Element, 0, "root", 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
18995
20878
 
18996
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":72
 
20879
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":72
18997
20880
 *         If any of the children on the path does not exist, it is created.
18998
20881
 *         """
18999
20882
 *         _createObjectPath(root, self._c_path, self._path_len, 1, value)             # <<<<<<<<<<<<<<
19000
20883
 * 
19001
20884
 *     def addattr(self, _Element root not None, value):
19002
20885
 */
19003
 
  __pyx_1 = __pyx_f_4lxml_9objectify__createObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, 1, __pyx_v_value); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19004
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
20886
  __pyx_t_1 = __pyx_f_4lxml_9objectify__createObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, 1, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20887
  __Pyx_GOTREF(__pyx_t_1);
 
20888
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19005
20889
 
19006
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20890
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19007
20891
  goto __pyx_L0;
19008
20892
  __pyx_L1_error:;
19009
 
  Py_XDECREF(__pyx_1);
 
20893
  __Pyx_XDECREF(__pyx_t_1);
19010
20894
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.setattr");
19011
20895
  __pyx_r = NULL;
19012
20896
  __pyx_L0:;
 
20897
  __Pyx_XGIVEREF(__pyx_r);
 
20898
  __Pyx_FinishRefcountContext();
19013
20899
  return __pyx_r;
19014
20900
}
19015
20901
 
19016
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":74
 
20902
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":74
19017
20903
 *         _createObjectPath(root, self._c_path, self._path_len, 1, value)
19018
20904
 * 
19019
20905
 *     def addattr(self, _Element root not None, value):             # <<<<<<<<<<<<<<
19026
20912
static PyObject *__pyx_pf_4lxml_9objectify_10ObjectPath_addattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
19027
20913
  struct LxmlElement *__pyx_v_root = 0;
19028
20914
  PyObject *__pyx_v_value = 0;
19029
 
  PyObject *__pyx_r;
19030
 
  PyObject *__pyx_1 = 0;
 
20915
  PyObject *__pyx_r = NULL;
 
20916
  PyObject *__pyx_t_1 = NULL;
19031
20917
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_root,&__pyx_kp_value,0};
 
20918
  __Pyx_SetupRefcountContext("addattr");
19032
20919
  if (unlikely(__pyx_kwds)) {
 
20920
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
19033
20921
    PyObject* values[2] = {0,0};
19034
 
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
19035
20922
    switch (PyTuple_GET_SIZE(__pyx_args)) {
19036
20923
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
19037
20924
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
19070
20957
  __pyx_L4_argument_unpacking_done:;
19071
20958
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_11etreepublic__Element, 0, "root", 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19072
20959
 
19073
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":81
 
20960
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":81
19074
20961
 *         If any of the children on the path does not exist, it is created.
19075
20962
 *         """
19076
20963
 *         _createObjectPath(root, self._c_path, self._path_len, 0, value)             # <<<<<<<<<<<<<<
19077
20964
 * 
19078
20965
 * cdef object __MATCH_PATH_SEGMENT
19079
20966
 */
19080
 
  __pyx_1 = __pyx_f_4lxml_9objectify__createObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, 0, __pyx_v_value); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19081
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
20967
  __pyx_t_1 = __pyx_f_4lxml_9objectify__createObjectPath(__pyx_v_root, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_c_path, ((struct __pyx_obj_4lxml_9objectify_ObjectPath *)__pyx_v_self)->_path_len, 0, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
20968
  __Pyx_GOTREF(__pyx_t_1);
 
20969
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19082
20970
 
19083
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
20971
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19084
20972
  goto __pyx_L0;
19085
20973
  __pyx_L1_error:;
19086
 
  Py_XDECREF(__pyx_1);
 
20974
  __Pyx_XDECREF(__pyx_t_1);
19087
20975
  __Pyx_AddTraceback("lxml.objectify.ObjectPath.addattr");
19088
20976
  __pyx_r = NULL;
19089
20977
  __pyx_L0:;
 
20978
  __Pyx_XGIVEREF(__pyx_r);
 
20979
  __Pyx_FinishRefcountContext();
19090
20980
  return __pyx_r;
19091
20981
}
19092
20982
 
19093
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":91
 
20983
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":91
19094
20984
 * _RELATIVE_PATH_SEGMENT = (None, None, 0)
19095
20985
 * 
19096
20986
 * cdef _parseObjectPathString(path):             # <<<<<<<<<<<<<<
19100
20990
 
19101
20991
static  PyObject *__pyx_f_4lxml_9objectify__parseObjectPathString(PyObject *__pyx_v_path) {
19102
20992
  int __pyx_v_has_dot;
19103
 
  PyObject *__pyx_v_new_path;
 
20993
  PyObject *__pyx_v_new_path = 0;
19104
20994
  PyObject *__pyx_v_path_pos;
19105
20995
  PyObject *__pyx_v_match;
19106
20996
  PyObject *__pyx_v_dot;
19107
20997
  PyObject *__pyx_v_ns;
19108
20998
  PyObject *__pyx_v_name;
19109
20999
  PyObject *__pyx_v_index;
19110
 
  PyObject *__pyx_r;
 
21000
  PyObject *__pyx_r = NULL;
19111
21001
  PyObject *__pyx_1 = 0;
19112
 
  int __pyx_2;
 
21002
  PyObject *__pyx_2 = 0;
19113
21003
  PyObject *__pyx_3 = 0;
19114
 
  int __pyx_4;
 
21004
  PyObject *__pyx_4 = 0;
19115
21005
  PyObject *__pyx_5 = 0;
19116
 
  int __pyx_6;
19117
 
  Py_INCREF(__pyx_v_path);
19118
 
  __pyx_v_new_path = Py_None; Py_INCREF(Py_None);
19119
 
  __pyx_v_path_pos = Py_None; Py_INCREF(Py_None);
19120
 
  __pyx_v_match = Py_None; Py_INCREF(Py_None);
19121
 
  __pyx_v_dot = Py_None; Py_INCREF(Py_None);
19122
 
  __pyx_v_ns = Py_None; Py_INCREF(Py_None);
19123
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
19124
 
  __pyx_v_index = Py_None; Py_INCREF(Py_None);
 
21006
  PyObject *__pyx_t_1 = NULL;
 
21007
  int __pyx_t_2;
 
21008
  PyObject *__pyx_t_3 = NULL;
 
21009
  int __pyx_t_4;
 
21010
  int __pyx_t_5;
 
21011
  int __pyx_t_6;
 
21012
  __Pyx_SetupRefcountContext("_parseObjectPathString");
 
21013
  __Pyx_INCREF(__pyx_v_path);
 
21014
  __pyx_v_path_pos = Py_None; __Pyx_INCREF(Py_None);
 
21015
  __pyx_v_match = Py_None; __Pyx_INCREF(Py_None);
 
21016
  __pyx_v_dot = Py_None; __Pyx_INCREF(Py_None);
 
21017
  __pyx_v_ns = Py_None; __Pyx_INCREF(Py_None);
 
21018
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
21019
  __pyx_v_index = Py_None; __Pyx_INCREF(Py_None);
19125
21020
 
19126
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":95
 
21021
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":95
19127
21022
 *     """
19128
21023
 *     cdef bint has_dot
19129
 
 *     new_path = []             # <<<<<<<<<<<<<<
 
21024
 *     cdef list new_path = []             # <<<<<<<<<<<<<<
19130
21025
 *     if python.PyString_Check(path):
19131
21026
 *         path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL)
19132
21027
 */
19133
 
  __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19134
 
  Py_DECREF(__pyx_v_new_path);
19135
 
  __pyx_v_new_path = ((PyObject *)__pyx_1);
19136
 
  __pyx_1 = 0;
 
21028
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21029
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
21030
  __pyx_v_new_path = __pyx_t_1;
 
21031
  __pyx_t_1 = 0;
19137
21032
 
19138
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":96
 
21033
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":96
19139
21034
 *     cdef bint has_dot
19140
 
 *     new_path = []
 
21035
 *     cdef list new_path = []
19141
21036
 *     if python.PyString_Check(path):             # <<<<<<<<<<<<<<
19142
21037
 *         path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL)
19143
21038
 *     path = path.strip()
19144
21039
 */
19145
 
  __pyx_2 = PyString_Check(__pyx_v_path);
19146
 
  if (__pyx_2) {
 
21040
  __pyx_t_2 = PyString_Check(__pyx_v_path);
 
21041
  if (__pyx_t_2) {
19147
21042
 
19148
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":97
19149
 
 *     new_path = []
 
21043
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":97
 
21044
 *     cdef list new_path = []
19150
21045
 *     if python.PyString_Check(path):
19151
21046
 *         path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL)             # <<<<<<<<<<<<<<
19152
21047
 *     path = path.strip()
19153
21048
 *     if path == u'.':
19154
21049
 */
19155
 
    __pyx_1 = PyUnicode_FromEncodedObject(__pyx_v_path, __pyx_k_812, NULL); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19156
 
    Py_DECREF(__pyx_v_path);
19157
 
    __pyx_v_path = __pyx_1;
19158
 
    __pyx_1 = 0;
 
21050
    __pyx_t_1 = PyUnicode_FromEncodedObject(__pyx_v_path, __pyx_k_875, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21051
    __Pyx_GOTREF(__pyx_t_1);
 
21052
    __Pyx_DECREF(__pyx_v_path);
 
21053
    __pyx_v_path = __pyx_t_1;
 
21054
    __pyx_t_1 = 0;
19159
21055
    goto __pyx_L3;
19160
21056
  }
19161
21057
  __pyx_L3:;
19162
21058
 
19163
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":98
 
21059
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":98
19164
21060
 *     if python.PyString_Check(path):
19165
21061
 *         path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL)
19166
21062
 *     path = path.strip()             # <<<<<<<<<<<<<<
19167
21063
 *     if path == u'.':
19168
21064
 *         return [_RELATIVE_PATH_SEGMENT]
19169
21065
 */
19170
 
  __pyx_1 = PyObject_GetAttr(__pyx_v_path, __pyx_kp_strip); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19171
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19172
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
19173
 
  Py_DECREF(__pyx_v_path);
19174
 
  __pyx_v_path = __pyx_3;
19175
 
  __pyx_3 = 0;
 
21066
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_path, __pyx_kp_strip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21067
  __Pyx_GOTREF(__pyx_t_1);
 
21068
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21069
  __Pyx_GOTREF(__pyx_t_3);
 
21070
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21071
  __Pyx_DECREF(__pyx_v_path);
 
21072
  __pyx_v_path = __pyx_t_3;
 
21073
  __pyx_t_3 = 0;
19176
21074
 
19177
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":99
 
21075
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":99
19178
21076
 *         path = python.PyUnicode_FromEncodedObject(path, 'ASCII', NULL)
19179
21077
 *     path = path.strip()
19180
21078
 *     if path == u'.':             # <<<<<<<<<<<<<<
19181
21079
 *         return [_RELATIVE_PATH_SEGMENT]
19182
21080
 *     path_pos = 0
19183
21081
 */
19184
 
  __pyx_1 = PyObject_RichCompare(__pyx_v_path, ((PyObject *)__pyx_kp_813), Py_EQ); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19185
 
  __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19186
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
19187
 
  if (__pyx_4) {
 
21082
  __pyx_t_3 = PyObject_RichCompare(__pyx_v_path, ((PyObject *)__pyx_kp_876), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21083
  __Pyx_GOTREF(__pyx_t_3);
 
21084
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21085
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
21086
  if (__pyx_t_2) {
19188
21087
 
19189
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":100
 
21088
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":100
19190
21089
 *     path = path.strip()
19191
21090
 *     if path == u'.':
19192
21091
 *         return [_RELATIVE_PATH_SEGMENT]             # <<<<<<<<<<<<<<
19193
21092
 *     path_pos = 0
19194
21093
 *     while python.PyUnicode_GET_SIZE(path) > 0:
19195
21094
 */
19196
 
    __pyx_3 = PyList_New(1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19197
 
    Py_INCREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
19198
 
    PyList_SET_ITEM(__pyx_3, 0, __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
19199
 
    __pyx_r = ((PyObject *)__pyx_3);
19200
 
    __pyx_3 = 0;
 
21095
    __Pyx_XDECREF(__pyx_r);
 
21096
    __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21097
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
21098
    __Pyx_INCREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
 
21099
    PyList_SET_ITEM(__pyx_t_3, 0, __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
 
21100
    __Pyx_GIVEREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
 
21101
    __pyx_r = ((PyObject *)__pyx_t_3);
 
21102
    __pyx_t_3 = 0;
19201
21103
    goto __pyx_L0;
19202
21104
    goto __pyx_L4;
19203
21105
  }
19204
21106
  __pyx_L4:;
19205
21107
 
19206
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":101
 
21108
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":101
19207
21109
 *     if path == u'.':
19208
21110
 *         return [_RELATIVE_PATH_SEGMENT]
19209
21111
 *     path_pos = 0             # <<<<<<<<<<<<<<
19210
21112
 *     while python.PyUnicode_GET_SIZE(path) > 0:
19211
21113
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
19212
21114
 */
19213
 
  Py_INCREF(__pyx_int_0);
19214
 
  Py_DECREF(__pyx_v_path_pos);
 
21115
  __Pyx_INCREF(__pyx_int_0);
 
21116
  __Pyx_DECREF(__pyx_v_path_pos);
19215
21117
  __pyx_v_path_pos = __pyx_int_0;
19216
21118
 
19217
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":102
 
21119
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":102
19218
21120
 *         return [_RELATIVE_PATH_SEGMENT]
19219
21121
 *     path_pos = 0
19220
21122
 *     while python.PyUnicode_GET_SIZE(path) > 0:             # <<<<<<<<<<<<<<
19222
21124
 *         if match is None:
19223
21125
 */
19224
21126
  while (1) {
19225
 
    __pyx_4 = (PyUnicode_GET_SIZE(__pyx_v_path) > 0);
19226
 
    if (!__pyx_4) break;
 
21127
    __pyx_t_2 = (PyUnicode_GET_SIZE(__pyx_v_path) > 0);
 
21128
    if (!__pyx_t_2) break;
19227
21129
 
19228
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":103
 
21130
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":103
19229
21131
 *     path_pos = 0
19230
21132
 *     while python.PyUnicode_GET_SIZE(path) > 0:
19231
21133
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)             # <<<<<<<<<<<<<<
19232
21134
 *         if match is None:
19233
21135
 *             break
19234
21136
 */
19235
 
    __pyx_1 = PyTuple_New(2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19236
 
    Py_INCREF(__pyx_v_path);
19237
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_path);
19238
 
    Py_INCREF(__pyx_v_path_pos);
19239
 
    PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_path_pos);
19240
 
    __pyx_3 = PyObject_Call(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT, ((PyObject *)__pyx_1), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19241
 
    Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
19242
 
    Py_DECREF(__pyx_v_match);
19243
 
    __pyx_v_match = __pyx_3;
19244
 
    __pyx_3 = 0;
 
21137
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21138
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
21139
    __Pyx_INCREF(__pyx_v_path);
 
21140
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_path);
 
21141
    __Pyx_GIVEREF(__pyx_v_path);
 
21142
    __Pyx_INCREF(__pyx_v_path_pos);
 
21143
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_path_pos);
 
21144
    __Pyx_GIVEREF(__pyx_v_path_pos);
 
21145
    __pyx_t_1 = PyObject_Call(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21146
    __Pyx_GOTREF(__pyx_t_1);
 
21147
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
21148
    __Pyx_DECREF(__pyx_v_match);
 
21149
    __pyx_v_match = __pyx_t_1;
 
21150
    __pyx_t_1 = 0;
19245
21151
 
19246
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":104
 
21152
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":104
19247
21153
 *     while python.PyUnicode_GET_SIZE(path) > 0:
19248
21154
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
19249
21155
 *         if match is None:             # <<<<<<<<<<<<<<
19250
21156
 *             break
19251
21157
 * 
19252
21158
 */
19253
 
    __pyx_4 = (__pyx_v_match == Py_None);
19254
 
    if (__pyx_4) {
 
21159
    __pyx_t_2 = (__pyx_v_match == Py_None);
 
21160
    if (__pyx_t_2) {
19255
21161
 
19256
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":105
 
21162
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":105
19257
21163
 *         match = __MATCH_PATH_SEGMENT(path, path_pos)
19258
21164
 *         if match is None:
19259
21165
 *             break             # <<<<<<<<<<<<<<
19260
21166
 * 
19261
21167
 *         dot, ns, name, index = match.groups()
19262
21168
 */
19263
 
      goto __pyx_L6;
 
21169
      goto __pyx_L6_break;
19264
21170
      goto __pyx_L7;
19265
21171
    }
19266
21172
    __pyx_L7:;
19267
21173
 
19268
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":107
 
21174
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":107
19269
21175
 *             break
19270
21176
 * 
19271
21177
 *         dot, ns, name, index = match.groups()             # <<<<<<<<<<<<<<
19272
 
 *         if index is None or python.PyUnicode_GET_SIZE(index) == 0:
 
21178
 *         if index is None or not index:
19273
21179
 *             index = 0
19274
21180
 */
19275
 
    __pyx_1 = PyObject_GetAttr(__pyx_v_match, __pyx_kp_groups); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19276
 
    __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19277
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
19278
 
    if (PyTuple_CheckExact(__pyx_3) && PyTuple_GET_SIZE(__pyx_3) == 4) {
19279
 
      PyObject* tuple = __pyx_3;
19280
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 0);
19281
 
      Py_INCREF(__pyx_5);
19282
 
      Py_DECREF(__pyx_v_dot);
19283
 
      __pyx_v_dot = __pyx_5;
19284
 
      __pyx_5 = 0;
19285
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 1);
19286
 
      Py_INCREF(__pyx_5);
19287
 
      Py_DECREF(__pyx_v_ns);
19288
 
      __pyx_v_ns = __pyx_5;
19289
 
      __pyx_5 = 0;
19290
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 2);
19291
 
      Py_INCREF(__pyx_5);
19292
 
      Py_DECREF(__pyx_v_name);
19293
 
      __pyx_v_name = __pyx_5;
19294
 
      __pyx_5 = 0;
19295
 
      __pyx_5 = PyTuple_GET_ITEM(tuple, 3);
19296
 
      Py_INCREF(__pyx_5);
19297
 
      Py_DECREF(__pyx_v_index);
 
21181
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_match, __pyx_kp_groups); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21182
    __Pyx_GOTREF(__pyx_t_1);
 
21183
    __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21184
    __Pyx_GOTREF(__pyx_t_3);
 
21185
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21186
    if (PyTuple_CheckExact(__pyx_t_3) && likely(PyTuple_GET_SIZE(__pyx_t_3) == 4)) {
 
21187
      PyObject* tuple = __pyx_t_3;
 
21188
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
21189
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
21190
      __pyx_4 = PyTuple_GET_ITEM(tuple, 2); __Pyx_INCREF(__pyx_4);
 
21191
      __pyx_5 = PyTuple_GET_ITEM(tuple, 3); __Pyx_INCREF(__pyx_5);
 
21192
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
21193
      __Pyx_DECREF(__pyx_v_dot);
 
21194
      __pyx_v_dot = __pyx_2;
 
21195
      __pyx_2 = 0;
 
21196
      __Pyx_DECREF(__pyx_v_ns);
 
21197
      __pyx_v_ns = __pyx_3;
 
21198
      __pyx_3 = 0;
 
21199
      __Pyx_DECREF(__pyx_v_name);
 
21200
      __pyx_v_name = __pyx_4;
 
21201
      __pyx_4 = 0;
 
21202
      __Pyx_DECREF(__pyx_v_index);
19298
21203
      __pyx_v_index = __pyx_5;
19299
21204
      __pyx_5 = 0;
19300
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
19301
 
    }
19302
 
    else {
19303
 
      __pyx_1 = PyObject_GetIter(__pyx_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19304
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
19305
 
      __pyx_5 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19306
 
      Py_DECREF(__pyx_v_dot);
19307
 
      __pyx_v_dot = __pyx_5;
19308
 
      __pyx_5 = 0;
19309
 
      __pyx_5 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19310
 
      Py_DECREF(__pyx_v_ns);
19311
 
      __pyx_v_ns = __pyx_5;
19312
 
      __pyx_5 = 0;
19313
 
      __pyx_5 = __Pyx_UnpackItem(__pyx_1, 2); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19314
 
      Py_DECREF(__pyx_v_name);
19315
 
      __pyx_v_name = __pyx_5;
19316
 
      __pyx_5 = 0;
 
21205
    } else {
 
21206
      __pyx_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21207
      __Pyx_GOTREF(__pyx_1);
 
21208
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
21209
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21210
      __Pyx_GOTREF(__pyx_2);
 
21211
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21212
      __Pyx_GOTREF(__pyx_3);
 
21213
      __pyx_4 = __Pyx_UnpackItem(__pyx_1, 2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21214
      __Pyx_GOTREF(__pyx_4);
19317
21215
      __pyx_5 = __Pyx_UnpackItem(__pyx_1, 3); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19318
 
      Py_DECREF(__pyx_v_index);
19319
 
      __pyx_v_index = __pyx_5;
19320
 
      __pyx_5 = 0;
 
21216
      __Pyx_GOTREF(__pyx_5);
19321
21217
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19322
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
 
21218
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
21219
      __Pyx_DECREF(__pyx_v_dot);
 
21220
      __pyx_v_dot = __pyx_2;
 
21221
      __pyx_2 = 0;
 
21222
      __Pyx_DECREF(__pyx_v_ns);
 
21223
      __pyx_v_ns = __pyx_3;
 
21224
      __pyx_3 = 0;
 
21225
      __Pyx_DECREF(__pyx_v_name);
 
21226
      __pyx_v_name = __pyx_4;
 
21227
      __pyx_4 = 0;
 
21228
      __Pyx_DECREF(__pyx_v_index);
 
21229
      __pyx_v_index = __pyx_5;
 
21230
      __pyx_5 = 0;
19323
21231
    }
19324
21232
 
19325
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":108
 
21233
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":108
19326
21234
 * 
19327
21235
 *         dot, ns, name, index = match.groups()
19328
 
 *         if index is None or python.PyUnicode_GET_SIZE(index) == 0:             # <<<<<<<<<<<<<<
 
21236
 *         if index is None or not index:             # <<<<<<<<<<<<<<
19329
21237
 *             index = 0
19330
21238
 *         else:
19331
21239
 */
19332
 
    __pyx_4 = (__pyx_v_index == Py_None);
19333
 
    if (!__pyx_4) {
19334
 
      __pyx_4 = (PyUnicode_GET_SIZE(__pyx_v_index) == 0);
 
21240
    __pyx_t_2 = (__pyx_v_index == Py_None);
 
21241
    if (!__pyx_t_2) {
 
21242
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_index); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21243
      __pyx_t_5 = (!__pyx_t_4);
 
21244
    } else {
 
21245
      __pyx_t_5 = __pyx_t_2;
19335
21246
    }
19336
 
    if (__pyx_4) {
 
21247
    if (__pyx_t_5) {
19337
21248
 
19338
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":109
 
21249
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":109
19339
21250
 *         dot, ns, name, index = match.groups()
19340
 
 *         if index is None or python.PyUnicode_GET_SIZE(index) == 0:
 
21251
 *         if index is None or not index:
19341
21252
 *             index = 0             # <<<<<<<<<<<<<<
19342
21253
 *         else:
19343
 
 *             index = python.PyNumber_Int(index)
 
21254
 *             index = int(index)
19344
21255
 */
19345
 
      Py_INCREF(__pyx_int_0);
19346
 
      Py_DECREF(__pyx_v_index);
 
21256
      __Pyx_INCREF(__pyx_int_0);
 
21257
      __Pyx_DECREF(__pyx_v_index);
19347
21258
      __pyx_v_index = __pyx_int_0;
19348
21259
      goto __pyx_L8;
19349
21260
    }
19350
21261
    /*else*/ {
19351
21262
 
19352
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":111
 
21263
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":111
19353
21264
 *             index = 0
19354
21265
 *         else:
19355
 
 *             index = python.PyNumber_Int(index)             # <<<<<<<<<<<<<<
 
21266
 *             index = int(index)             # <<<<<<<<<<<<<<
19356
21267
 *         has_dot = dot == u'.'
19357
21268
 *         if python.PyList_GET_SIZE(new_path) == 0:
19358
21269
 */
19359
 
      __pyx_5 = PyNumber_Int(__pyx_v_index); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19360
 
      Py_DECREF(__pyx_v_index);
19361
 
      __pyx_v_index = __pyx_5;
19362
 
      __pyx_5 = 0;
 
21270
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21271
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
21272
      __Pyx_INCREF(__pyx_v_index);
 
21273
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_index);
 
21274
      __Pyx_GIVEREF(__pyx_v_index);
 
21275
      __pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21276
      __Pyx_GOTREF(__pyx_t_1);
 
21277
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
21278
      __Pyx_DECREF(__pyx_v_index);
 
21279
      __pyx_v_index = __pyx_t_1;
 
21280
      __pyx_t_1 = 0;
19363
21281
    }
19364
21282
    __pyx_L8:;
19365
21283
 
19366
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":112
 
21284
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":112
19367
21285
 *         else:
19368
 
 *             index = python.PyNumber_Int(index)
 
21286
 *             index = int(index)
19369
21287
 *         has_dot = dot == u'.'             # <<<<<<<<<<<<<<
19370
21288
 *         if python.PyList_GET_SIZE(new_path) == 0:
19371
21289
 *             if has_dot:
19372
21290
 */
19373
 
    __pyx_3 = PyObject_RichCompare(__pyx_v_dot, ((PyObject *)__pyx_kp_814), Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19374
 
    __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely((__pyx_4 == (int)-1))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19375
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
19376
 
    __pyx_v_has_dot = __pyx_4;
 
21291
    __pyx_t_1 = PyObject_RichCompare(__pyx_v_dot, ((PyObject *)__pyx_kp_877), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21292
    __Pyx_GOTREF(__pyx_t_1);
 
21293
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 == (int)-1))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21294
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21295
    __pyx_v_has_dot = __pyx_t_5;
19377
21296
 
19378
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":113
19379
 
 *             index = python.PyNumber_Int(index)
 
21297
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":113
 
21298
 *             index = int(index)
19380
21299
 *         has_dot = dot == u'.'
19381
21300
 *         if python.PyList_GET_SIZE(new_path) == 0:             # <<<<<<<<<<<<<<
19382
21301
 *             if has_dot:
19383
21302
 *                 # path '.child' => ignore root
19384
21303
 */
19385
 
    __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 0);
19386
 
    if (__pyx_4) {
 
21304
    __pyx_t_5 = (PyList_GET_SIZE(((PyObject *)__pyx_v_new_path)) == 0);
 
21305
    if (__pyx_t_5) {
19387
21306
 
19388
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":114
 
21307
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":114
19389
21308
 *         has_dot = dot == u'.'
19390
21309
 *         if python.PyList_GET_SIZE(new_path) == 0:
19391
21310
 *             if has_dot:             # <<<<<<<<<<<<<<
19392
21311
 *                 # path '.child' => ignore root
19393
 
 *                 python.PyList_Append(new_path, _RELATIVE_PATH_SEGMENT)
 
21312
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
19394
21313
 */
19395
 
      __pyx_4 = __pyx_v_has_dot;
19396
 
      if (__pyx_4) {
 
21314
      __pyx_t_5 = __pyx_v_has_dot;
 
21315
      if (__pyx_t_5) {
19397
21316
 
19398
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":116
 
21317
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":116
19399
21318
 *             if has_dot:
19400
21319
 *                 # path '.child' => ignore root
19401
 
 *                 python.PyList_Append(new_path, _RELATIVE_PATH_SEGMENT)             # <<<<<<<<<<<<<<
 
21320
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)             # <<<<<<<<<<<<<<
19402
21321
 *             elif index != 0:
19403
21322
 *                 raise ValueError, u"index not allowed on root node"
19404
21323
 */
19405
 
        __pyx_2 = PyList_Append(__pyx_v_new_path, __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21324
        __pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_new_path), __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19406
21325
        goto __pyx_L10;
19407
21326
      }
19408
21327
 
19409
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":117
 
21328
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":117
19410
21329
 *                 # path '.child' => ignore root
19411
 
 *                 python.PyList_Append(new_path, _RELATIVE_PATH_SEGMENT)
 
21330
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
19412
21331
 *             elif index != 0:             # <<<<<<<<<<<<<<
19413
21332
 *                 raise ValueError, u"index not allowed on root node"
19414
21333
 *         elif not has_dot:
19415
21334
 */
19416
 
      __pyx_1 = PyObject_RichCompare(__pyx_v_index, __pyx_int_0, Py_NE); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19417
 
      __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_1); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19418
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
19419
 
      if (__pyx_4) {
 
21335
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_index, __pyx_int_0, Py_NE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21336
      __Pyx_GOTREF(__pyx_t_1);
 
21337
      __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21338
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21339
      if (__pyx_t_5) {
19420
21340
 
19421
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":118
19422
 
 *                 python.PyList_Append(new_path, _RELATIVE_PATH_SEGMENT)
 
21341
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":118
 
21342
 *                 new_path.append(_RELATIVE_PATH_SEGMENT)
19423
21343
 *             elif index != 0:
19424
21344
 *                 raise ValueError, u"index not allowed on root node"             # <<<<<<<<<<<<<<
19425
21345
 *         elif not has_dot:
19426
21346
 *             raise ValueError, u"invalid path"
19427
21347
 */
19428
 
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_815), 0);
 
21348
        __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_878), 0);
19429
21349
        {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19430
21350
        goto __pyx_L10;
19431
21351
      }
19433
21353
      goto __pyx_L9;
19434
21354
    }
19435
21355
 
19436
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":119
 
21356
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":119
19437
21357
 *             elif index != 0:
19438
21358
 *                 raise ValueError, u"index not allowed on root node"
19439
21359
 *         elif not has_dot:             # <<<<<<<<<<<<<<
19440
21360
 *             raise ValueError, u"invalid path"
19441
21361
 *         if ns is not None:
19442
21362
 */
19443
 
    __pyx_4 = (!__pyx_v_has_dot);
19444
 
    if (__pyx_4) {
 
21363
    __pyx_t_5 = (!__pyx_v_has_dot);
 
21364
    if (__pyx_t_5) {
19445
21365
 
19446
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":120
 
21366
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":120
19447
21367
 *                 raise ValueError, u"index not allowed on root node"
19448
21368
 *         elif not has_dot:
19449
21369
 *             raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
19450
21370
 *         if ns is not None:
19451
21371
 *             ns = python.PyUnicode_AsUTF8String(ns)
19452
21372
 */
19453
 
      __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_816), 0);
 
21373
      __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_879), 0);
19454
21374
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19455
21375
      goto __pyx_L9;
19456
21376
    }
19457
21377
    __pyx_L9:;
19458
21378
 
19459
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":121
 
21379
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":121
19460
21380
 *         elif not has_dot:
19461
21381
 *             raise ValueError, u"invalid path"
19462
21382
 *         if ns is not None:             # <<<<<<<<<<<<<<
19463
21383
 *             ns = python.PyUnicode_AsUTF8String(ns)
19464
21384
 *         name = python.PyUnicode_AsUTF8String(name)
19465
21385
 */
19466
 
    __pyx_4 = (__pyx_v_ns != Py_None);
19467
 
    if (__pyx_4) {
 
21386
    __pyx_t_5 = (__pyx_v_ns != Py_None);
 
21387
    if (__pyx_t_5) {
19468
21388
 
19469
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":122
 
21389
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":122
19470
21390
 *             raise ValueError, u"invalid path"
19471
21391
 *         if ns is not None:
19472
21392
 *             ns = python.PyUnicode_AsUTF8String(ns)             # <<<<<<<<<<<<<<
19473
21393
 *         name = python.PyUnicode_AsUTF8String(name)
19474
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21394
 *         new_path.append( (ns, name, index) )
19475
21395
 */
19476
 
      __pyx_5 = PyUnicode_AsUTF8String(__pyx_v_ns); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19477
 
      Py_DECREF(__pyx_v_ns);
19478
 
      __pyx_v_ns = __pyx_5;
19479
 
      __pyx_5 = 0;
 
21396
      __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_ns); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21397
      __Pyx_GOTREF(__pyx_t_1);
 
21398
      __Pyx_DECREF(__pyx_v_ns);
 
21399
      __pyx_v_ns = __pyx_t_1;
 
21400
      __pyx_t_1 = 0;
19480
21401
      goto __pyx_L11;
19481
21402
    }
19482
21403
    __pyx_L11:;
19483
21404
 
19484
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":123
 
21405
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":123
19485
21406
 *         if ns is not None:
19486
21407
 *             ns = python.PyUnicode_AsUTF8String(ns)
19487
21408
 *         name = python.PyUnicode_AsUTF8String(name)             # <<<<<<<<<<<<<<
19488
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21409
 *         new_path.append( (ns, name, index) )
19489
21410
 * 
19490
21411
 */
19491
 
    __pyx_3 = PyUnicode_AsUTF8String(__pyx_v_name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19492
 
    Py_DECREF(__pyx_v_name);
19493
 
    __pyx_v_name = __pyx_3;
19494
 
    __pyx_3 = 0;
 
21412
    __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21413
    __Pyx_GOTREF(__pyx_t_1);
 
21414
    __Pyx_DECREF(__pyx_v_name);
 
21415
    __pyx_v_name = __pyx_t_1;
 
21416
    __pyx_t_1 = 0;
19495
21417
 
19496
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":124
 
21418
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":124
19497
21419
 *             ns = python.PyUnicode_AsUTF8String(ns)
19498
21420
 *         name = python.PyUnicode_AsUTF8String(name)
19499
 
 *         python.PyList_Append(new_path, (ns, name, index))             # <<<<<<<<<<<<<<
 
21421
 *         new_path.append( (ns, name, index) )             # <<<<<<<<<<<<<<
19500
21422
 * 
19501
21423
 *         path_pos = match.end()
19502
21424
 */
19503
 
    __pyx_1 = PyTuple_New(3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19504
 
    Py_INCREF(__pyx_v_ns);
19505
 
    PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_ns);
19506
 
    Py_INCREF(__pyx_v_name);
19507
 
    PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_name);
19508
 
    Py_INCREF(__pyx_v_index);
19509
 
    PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_index);
19510
 
    __pyx_2 = PyList_Append(__pyx_v_new_path, ((PyObject *)__pyx_1)); if (unlikely(__pyx_2 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19511
 
    Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
 
21425
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21426
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
21427
    __Pyx_INCREF(__pyx_v_ns);
 
21428
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_ns);
 
21429
    __Pyx_GIVEREF(__pyx_v_ns);
 
21430
    __Pyx_INCREF(__pyx_v_name);
 
21431
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_name);
 
21432
    __Pyx_GIVEREF(__pyx_v_name);
 
21433
    __Pyx_INCREF(__pyx_v_index);
 
21434
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_index);
 
21435
    __Pyx_GIVEREF(__pyx_v_index);
 
21436
    __pyx_t_6 = PyList_Append(((PyObject *)__pyx_v_new_path), ((PyObject *)__pyx_t_1)); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21437
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
19512
21438
 
19513
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":126
19514
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21439
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":126
 
21440
 *         new_path.append( (ns, name, index) )
19515
21441
 * 
19516
21442
 *         path_pos = match.end()             # <<<<<<<<<<<<<<
19517
21443
 *     if python.PyList_GET_SIZE(new_path) == 0 or \
19518
21444
 *            python.PyUnicode_GET_SIZE(path) > path_pos:
19519
21445
 */
19520
 
    __pyx_5 = PyObject_GetAttr(__pyx_v_match, __pyx_kp_end); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19521
 
    __pyx_3 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19522
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
19523
 
    Py_DECREF(__pyx_v_path_pos);
19524
 
    __pyx_v_path_pos = __pyx_3;
19525
 
    __pyx_3 = 0;
 
21446
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_match, __pyx_kp_end); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21447
    __Pyx_GOTREF(__pyx_t_1);
 
21448
    __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21449
    __Pyx_GOTREF(__pyx_t_3);
 
21450
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21451
    __Pyx_DECREF(__pyx_v_path_pos);
 
21452
    __pyx_v_path_pos = __pyx_t_3;
 
21453
    __pyx_t_3 = 0;
19526
21454
  }
19527
 
  __pyx_L6:;
 
21455
  __pyx_L6_break:;
19528
21456
 
19529
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":127
 
21457
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":127
19530
21458
 * 
19531
21459
 *         path_pos = match.end()
19532
21460
 *     if python.PyList_GET_SIZE(new_path) == 0 or \             # <<<<<<<<<<<<<<
19533
21461
 *            python.PyUnicode_GET_SIZE(path) > path_pos:
19534
21462
 *         raise ValueError, u"invalid path"
19535
21463
 */
19536
 
  __pyx_4 = (PyList_GET_SIZE(__pyx_v_new_path) == 0);
19537
 
  if (!__pyx_4) {
 
21464
  __pyx_t_5 = (PyList_GET_SIZE(((PyObject *)__pyx_v_new_path)) == 0);
 
21465
  if (!__pyx_t_5) {
19538
21466
 
19539
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":128
 
21467
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":128
19540
21468
 *         path_pos = match.end()
19541
21469
 *     if python.PyList_GET_SIZE(new_path) == 0 or \
19542
21470
 *            python.PyUnicode_GET_SIZE(path) > path_pos:             # <<<<<<<<<<<<<<
19543
21471
 *         raise ValueError, u"invalid path"
19544
21472
 *     return new_path
19545
21473
 */
19546
 
    __pyx_1 = PyInt_FromSsize_t(PyUnicode_GET_SIZE(__pyx_v_path)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19547
 
    __pyx_5 = PyObject_RichCompare(__pyx_1, __pyx_v_path_pos, Py_GT); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19548
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
19549
 
    __pyx_4 = __Pyx_PyObject_IsTrue(__pyx_5); if (unlikely(__pyx_4 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19550
 
    Py_DECREF(__pyx_5); __pyx_5 = 0;
 
21474
    __pyx_t_3 = PyInt_FromSsize_t(PyUnicode_GET_SIZE(__pyx_v_path)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21475
    __Pyx_GOTREF(__pyx_t_3);
 
21476
    __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_v_path_pos, Py_GT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21477
    __Pyx_GOTREF(__pyx_t_1);
 
21478
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
21479
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21480
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
21481
    __pyx_t_4 = __pyx_t_2;
 
21482
  } else {
 
21483
    __pyx_t_4 = __pyx_t_5;
19551
21484
  }
19552
 
  if (__pyx_4) {
 
21485
  if (__pyx_t_4) {
19553
21486
 
19554
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":129
 
21487
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":129
19555
21488
 *     if python.PyList_GET_SIZE(new_path) == 0 or \
19556
21489
 *            python.PyUnicode_GET_SIZE(path) > path_pos:
19557
21490
 *         raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
19558
21491
 *     return new_path
19559
21492
 * 
19560
21493
 */
19561
 
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_817), 0);
 
21494
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_880), 0);
19562
21495
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19563
21496
    goto __pyx_L12;
19564
21497
  }
19565
21498
  __pyx_L12:;
19566
21499
 
19567
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":130
 
21500
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":130
19568
21501
 *            python.PyUnicode_GET_SIZE(path) > path_pos:
19569
21502
 *         raise ValueError, u"invalid path"
19570
21503
 *     return new_path             # <<<<<<<<<<<<<<
19571
21504
 * 
19572
21505
 * cdef _parseObjectPathList(path):
19573
21506
 */
19574
 
  Py_INCREF(__pyx_v_new_path);
19575
 
  __pyx_r = __pyx_v_new_path;
 
21507
  __Pyx_XDECREF(__pyx_r);
 
21508
  __Pyx_INCREF(((PyObject *)__pyx_v_new_path));
 
21509
  __pyx_r = ((PyObject *)__pyx_v_new_path);
19576
21510
  goto __pyx_L0;
19577
21511
 
19578
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
21512
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19579
21513
  goto __pyx_L0;
19580
21514
  __pyx_L1_error:;
19581
 
  Py_XDECREF(__pyx_1);
19582
 
  Py_XDECREF(__pyx_3);
19583
 
  Py_XDECREF(__pyx_5);
 
21515
  __Pyx_XDECREF(__pyx_1);
 
21516
  __Pyx_XDECREF(__pyx_2);
 
21517
  __Pyx_XDECREF(__pyx_3);
 
21518
  __Pyx_XDECREF(__pyx_4);
 
21519
  __Pyx_XDECREF(__pyx_5);
 
21520
  __Pyx_XDECREF(__pyx_t_1);
 
21521
  __Pyx_XDECREF(__pyx_t_3);
19584
21522
  __Pyx_AddTraceback("lxml.objectify._parseObjectPathString");
19585
21523
  __pyx_r = 0;
19586
21524
  __pyx_L0:;
19587
 
  Py_DECREF(__pyx_v_new_path);
19588
 
  Py_DECREF(__pyx_v_path_pos);
19589
 
  Py_DECREF(__pyx_v_match);
19590
 
  Py_DECREF(__pyx_v_dot);
19591
 
  Py_DECREF(__pyx_v_ns);
19592
 
  Py_DECREF(__pyx_v_name);
19593
 
  Py_DECREF(__pyx_v_index);
19594
 
  Py_DECREF(__pyx_v_path);
 
21525
  __Pyx_XDECREF(__pyx_v_new_path);
 
21526
  __Pyx_DECREF(__pyx_v_path_pos);
 
21527
  __Pyx_DECREF(__pyx_v_match);
 
21528
  __Pyx_DECREF(__pyx_v_dot);
 
21529
  __Pyx_DECREF(__pyx_v_ns);
 
21530
  __Pyx_DECREF(__pyx_v_name);
 
21531
  __Pyx_DECREF(__pyx_v_index);
 
21532
  __Pyx_DECREF(__pyx_v_path);
 
21533
  __Pyx_XGIVEREF(__pyx_r);
 
21534
  __Pyx_FinishRefcountContext();
19595
21535
  return __pyx_r;
19596
21536
}
19597
21537
 
19598
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":132
 
21538
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":132
19599
21539
 *     return new_path
19600
21540
 * 
19601
21541
 * cdef _parseObjectPathList(path):             # <<<<<<<<<<<<<<
19607
21547
  char *__pyx_v_index_pos;
19608
21548
  char *__pyx_v_index_end;
19609
21549
  char *__pyx_v_c_name;
19610
 
  PyObject *__pyx_v_new_path;
 
21550
  PyObject *__pyx_v_new_path = 0;
19611
21551
  PyObject *__pyx_v_item;
19612
21552
  PyObject *__pyx_v_ns;
19613
21553
  PyObject *__pyx_v_name;
19614
21554
  PyObject *__pyx_v_index;
19615
 
  PyObject *__pyx_r;
 
21555
  PyObject *__pyx_r = NULL;
19616
21556
  PyObject *__pyx_1 = 0;
19617
 
  Py_ssize_t __pyx_2 = 0;
 
21557
  PyObject *__pyx_2 = 0;
19618
21558
  PyObject *__pyx_3 = 0;
19619
 
  PyObject *__pyx_4 = 0;
19620
 
  int __pyx_5;
19621
 
  int __pyx_6;
19622
 
  PyObject *__pyx_7 = 0;
19623
 
  int __pyx_8;
19624
 
  __pyx_v_new_path = Py_None; Py_INCREF(Py_None);
19625
 
  __pyx_v_item = Py_None; Py_INCREF(Py_None);
19626
 
  __pyx_v_ns = Py_None; Py_INCREF(Py_None);
19627
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
19628
 
  __pyx_v_index = Py_None; Py_INCREF(Py_None);
 
21559
  PyObject *__pyx_t_1 = NULL;
 
21560
  Py_ssize_t __pyx_t_2;
 
21561
  PyObject *__pyx_t_3 = NULL;
 
21562
  PyObject *__pyx_t_4 = NULL;
 
21563
  int __pyx_t_5;
 
21564
  int __pyx_t_6;
 
21565
  int __pyx_t_7;
 
21566
  int __pyx_t_8;
 
21567
  __Pyx_SetupRefcountContext("_parseObjectPathList");
 
21568
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
 
21569
  __pyx_v_ns = Py_None; __Pyx_INCREF(Py_None);
 
21570
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
21571
  __pyx_v_index = Py_None; __Pyx_INCREF(Py_None);
19629
21572
 
19630
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":138
 
21573
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":138
19631
21574
 *     cdef char* index_end
19632
21575
 *     cdef char* c_name
19633
 
 *     new_path = []             # <<<<<<<<<<<<<<
 
21576
 *     cdef list new_path = []             # <<<<<<<<<<<<<<
19634
21577
 *     for item in path:
19635
21578
 *         item = item.strip()
19636
21579
 */
19637
 
  __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19638
 
  Py_DECREF(__pyx_v_new_path);
19639
 
  __pyx_v_new_path = ((PyObject *)__pyx_1);
19640
 
  __pyx_1 = 0;
 
21580
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21581
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
21582
  __pyx_v_new_path = __pyx_t_1;
 
21583
  __pyx_t_1 = 0;
19641
21584
 
19642
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":139
 
21585
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":139
19643
21586
 *     cdef char* c_name
19644
 
 *     new_path = []
 
21587
 *     cdef list new_path = []
19645
21588
 *     for item in path:             # <<<<<<<<<<<<<<
19646
21589
 *         item = item.strip()
19647
21590
 *         if python.PyList_GET_SIZE(new_path) == 0 and item == u'':
19648
21591
 */
19649
21592
  if (PyList_CheckExact(__pyx_v_path) || PyTuple_CheckExact(__pyx_v_path)) {
19650
 
    __pyx_2 = 0; __pyx_1 = __pyx_v_path; Py_INCREF(__pyx_1);
 
21593
    __pyx_t_2 = 0; __pyx_t_1 = __pyx_v_path; __Pyx_INCREF(__pyx_t_1);
19651
21594
  } else {
19652
 
    __pyx_2 = -1; __pyx_1 = PyObject_GetIter(__pyx_v_path); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21595
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_path); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21596
    __Pyx_GOTREF(__pyx_t_1);
19653
21597
  }
19654
21598
  for (;;) {
19655
 
    if (likely(PyList_CheckExact(__pyx_1))) {
19656
 
      if (__pyx_2 >= PyList_GET_SIZE(__pyx_1)) break;
19657
 
      __pyx_3 = PyList_GET_ITEM(__pyx_1, __pyx_2); Py_INCREF(__pyx_3); __pyx_2++;
19658
 
    } else if (likely(PyTuple_CheckExact(__pyx_1))) {
19659
 
      if (__pyx_2 >= PyTuple_GET_SIZE(__pyx_1)) break;
19660
 
      __pyx_3 = PyTuple_GET_ITEM(__pyx_1, __pyx_2); Py_INCREF(__pyx_3); __pyx_2++;
 
21599
    if (likely(PyList_CheckExact(__pyx_t_1))) {
 
21600
      if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
 
21601
      __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++;
 
21602
    } else if (likely(PyTuple_CheckExact(__pyx_t_1))) {
 
21603
      if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
 
21604
      __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++;
19661
21605
    } else {
19662
 
      __pyx_3 = PyIter_Next(__pyx_1);
19663
 
      if (!__pyx_3) {
 
21606
      __pyx_t_3 = PyIter_Next(__pyx_t_1);
 
21607
      if (!__pyx_t_3) {
19664
21608
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19665
21609
        break;
19666
21610
      }
 
21611
      __Pyx_GOTREF(__pyx_t_3);
19667
21612
    }
19668
 
    Py_DECREF(__pyx_v_item);
19669
 
    __pyx_v_item = __pyx_3;
19670
 
    __pyx_3 = 0;
 
21613
    __Pyx_DECREF(__pyx_v_item);
 
21614
    __pyx_v_item = __pyx_t_3;
 
21615
    __pyx_t_3 = 0;
19671
21616
 
19672
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":140
19673
 
 *     new_path = []
 
21617
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":140
 
21618
 *     cdef list new_path = []
19674
21619
 *     for item in path:
19675
21620
 *         item = item.strip()             # <<<<<<<<<<<<<<
19676
21621
 *         if python.PyList_GET_SIZE(new_path) == 0 and item == u'':
19677
21622
 *             # path '.child' => ignore root
19678
21623
 */
19679
 
    __pyx_3 = PyObject_GetAttr(__pyx_v_item, __pyx_kp_strip); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19680
 
    __pyx_4 = PyObject_Call(__pyx_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19681
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
19682
 
    Py_DECREF(__pyx_v_item);
19683
 
    __pyx_v_item = __pyx_4;
19684
 
    __pyx_4 = 0;
 
21624
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_item, __pyx_kp_strip); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21625
    __Pyx_GOTREF(__pyx_t_3);
 
21626
    __pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21627
    __Pyx_GOTREF(__pyx_t_4);
 
21628
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
21629
    __Pyx_DECREF(__pyx_v_item);
 
21630
    __pyx_v_item = __pyx_t_4;
 
21631
    __pyx_t_4 = 0;
19685
21632
 
19686
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":141
 
21633
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":141
19687
21634
 *     for item in path:
19688
21635
 *         item = item.strip()
19689
21636
 *         if python.PyList_GET_SIZE(new_path) == 0 and item == u'':             # <<<<<<<<<<<<<<
19690
21637
 *             # path '.child' => ignore root
19691
21638
 *             ns = name = None
19692
21639
 */
19693
 
    __pyx_5 = (PyList_GET_SIZE(__pyx_v_new_path) == 0);
19694
 
    if (__pyx_5) {
19695
 
      __pyx_3 = PyObject_RichCompare(__pyx_v_item, ((PyObject *)__pyx_kp_818), Py_EQ); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19696
 
      __pyx_5 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_5 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19697
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
 
21640
    __pyx_t_5 = (PyList_GET_SIZE(((PyObject *)__pyx_v_new_path)) == 0);
 
21641
    if (__pyx_t_5) {
 
21642
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_item, ((PyObject *)__pyx_kp_881), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21643
      __Pyx_GOTREF(__pyx_t_4);
 
21644
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21645
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
21646
      __pyx_t_7 = __pyx_t_6;
 
21647
    } else {
 
21648
      __pyx_t_7 = __pyx_t_5;
19698
21649
    }
19699
 
    if (__pyx_5) {
 
21650
    if (__pyx_t_7) {
19700
21651
 
19701
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":143
 
21652
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":143
19702
21653
 *         if python.PyList_GET_SIZE(new_path) == 0 and item == u'':
19703
21654
 *             # path '.child' => ignore root
19704
21655
 *             ns = name = None             # <<<<<<<<<<<<<<
19705
21656
 *             index = 0
19706
21657
 *         else:
19707
21658
 */
19708
 
      Py_INCREF(Py_None);
19709
 
      Py_DECREF(__pyx_v_ns);
 
21659
      __Pyx_INCREF(Py_None);
 
21660
      __Pyx_DECREF(__pyx_v_ns);
19710
21661
      __pyx_v_ns = Py_None;
19711
 
      Py_INCREF(Py_None);
19712
 
      Py_DECREF(__pyx_v_name);
 
21662
      __Pyx_INCREF(Py_None);
 
21663
      __Pyx_DECREF(__pyx_v_name);
19713
21664
      __pyx_v_name = Py_None;
19714
21665
 
19715
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":144
 
21666
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":144
19716
21667
 *             # path '.child' => ignore root
19717
21668
 *             ns = name = None
19718
21669
 *             index = 0             # <<<<<<<<<<<<<<
19719
21670
 *         else:
19720
21671
 *             ns, name = cetree.getNsTag(item)
19721
21672
 */
19722
 
      Py_INCREF(__pyx_int_0);
19723
 
      Py_DECREF(__pyx_v_index);
 
21673
      __Pyx_INCREF(__pyx_int_0);
 
21674
      __Pyx_DECREF(__pyx_v_index);
19724
21675
      __pyx_v_index = __pyx_int_0;
19725
21676
      goto __pyx_L5;
19726
21677
    }
19727
21678
    /*else*/ {
19728
21679
 
19729
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":146
 
21680
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":146
19730
21681
 *             index = 0
19731
21682
 *         else:
19732
21683
 *             ns, name = cetree.getNsTag(item)             # <<<<<<<<<<<<<<
19733
21684
 *             c_name = _cstr(name)
19734
21685
 *             index_pos = cstd.strchr(c_name, c'[')
19735
21686
 */
19736
 
      __pyx_4 = getNsTag(__pyx_v_item); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19737
 
      if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 2) {
19738
 
        PyObject* tuple = __pyx_4;
19739
 
        __pyx_7 = PyTuple_GET_ITEM(tuple, 0);
19740
 
        Py_INCREF(__pyx_7);
19741
 
        Py_DECREF(__pyx_v_ns);
19742
 
        __pyx_v_ns = __pyx_7;
19743
 
        __pyx_7 = 0;
19744
 
        __pyx_7 = PyTuple_GET_ITEM(tuple, 1);
19745
 
        Py_INCREF(__pyx_7);
19746
 
        Py_DECREF(__pyx_v_name);
19747
 
        __pyx_v_name = __pyx_7;
19748
 
        __pyx_7 = 0;
19749
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
19750
 
      }
19751
 
      else {
19752
 
        __pyx_3 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19753
 
        Py_DECREF(__pyx_4); __pyx_4 = 0;
19754
 
        __pyx_7 = __Pyx_UnpackItem(__pyx_3, 0); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19755
 
        Py_DECREF(__pyx_v_ns);
19756
 
        __pyx_v_ns = __pyx_7;
19757
 
        __pyx_7 = 0;
19758
 
        __pyx_7 = __Pyx_UnpackItem(__pyx_3, 1); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19759
 
        Py_DECREF(__pyx_v_name);
19760
 
        __pyx_v_name = __pyx_7;
19761
 
        __pyx_7 = 0;
19762
 
        if (__Pyx_EndUnpack(__pyx_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19763
 
        Py_DECREF(__pyx_3); __pyx_3 = 0;
 
21687
      __pyx_t_4 = getNsTag(__pyx_v_item); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21688
      __Pyx_GOTREF(__pyx_t_4);
 
21689
      if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 2)) {
 
21690
        PyObject* tuple = __pyx_t_4;
 
21691
        __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
21692
        __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
21693
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
21694
        __Pyx_DECREF(__pyx_v_ns);
 
21695
        __pyx_v_ns = __pyx_2;
 
21696
        __pyx_2 = 0;
 
21697
        __Pyx_DECREF(__pyx_v_name);
 
21698
        __pyx_v_name = __pyx_3;
 
21699
        __pyx_3 = 0;
 
21700
      } else {
 
21701
        __pyx_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21702
        __Pyx_GOTREF(__pyx_1);
 
21703
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
21704
        __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21705
        __Pyx_GOTREF(__pyx_2);
 
21706
        __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21707
        __Pyx_GOTREF(__pyx_3);
 
21708
        if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 146; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21709
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
21710
        __Pyx_DECREF(__pyx_v_ns);
 
21711
        __pyx_v_ns = __pyx_2;
 
21712
        __pyx_2 = 0;
 
21713
        __Pyx_DECREF(__pyx_v_name);
 
21714
        __pyx_v_name = __pyx_3;
 
21715
        __pyx_3 = 0;
19764
21716
      }
19765
21717
 
19766
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":147
 
21718
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":147
19767
21719
 *         else:
19768
21720
 *             ns, name = cetree.getNsTag(item)
19769
21721
 *             c_name = _cstr(name)             # <<<<<<<<<<<<<<
19772
21724
 */
19773
21725
      __pyx_v_c_name = PyString_AS_STRING(__pyx_v_name);
19774
21726
 
19775
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":148
 
21727
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":148
19776
21728
 *             ns, name = cetree.getNsTag(item)
19777
21729
 *             c_name = _cstr(name)
19778
21730
 *             index_pos = cstd.strchr(c_name, c'[')             # <<<<<<<<<<<<<<
19781
21733
 */
19782
21734
      __pyx_v_index_pos = strchr(__pyx_v_c_name, '[');
19783
21735
 
19784
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":149
 
21736
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":149
19785
21737
 *             c_name = _cstr(name)
19786
21738
 *             index_pos = cstd.strchr(c_name, c'[')
19787
21739
 *             if index_pos is NULL:             # <<<<<<<<<<<<<<
19788
21740
 *                 index = 0
19789
21741
 *             else:
19790
21742
 */
19791
 
      __pyx_6 = (__pyx_v_index_pos == NULL);
19792
 
      if (__pyx_6) {
 
21743
      __pyx_t_7 = (__pyx_v_index_pos == NULL);
 
21744
      if (__pyx_t_7) {
19793
21745
 
19794
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":150
 
21746
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":150
19795
21747
 *             index_pos = cstd.strchr(c_name, c'[')
19796
21748
 *             if index_pos is NULL:
19797
21749
 *                 index = 0             # <<<<<<<<<<<<<<
19798
21750
 *             else:
19799
21751
 *                 index_end = cstd.strchr(index_pos + 1, c']')
19800
21752
 */
19801
 
        Py_INCREF(__pyx_int_0);
19802
 
        Py_DECREF(__pyx_v_index);
 
21753
        __Pyx_INCREF(__pyx_int_0);
 
21754
        __Pyx_DECREF(__pyx_v_index);
19803
21755
        __pyx_v_index = __pyx_int_0;
19804
21756
        goto __pyx_L6;
19805
21757
      }
19806
21758
      /*else*/ {
19807
21759
 
19808
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":152
 
21760
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":152
19809
21761
 *                 index = 0
19810
21762
 *             else:
19811
21763
 *                 index_end = cstd.strchr(index_pos + 1, c']')             # <<<<<<<<<<<<<<
19814
21766
 */
19815
21767
        __pyx_v_index_end = strchr((__pyx_v_index_pos + 1), ']');
19816
21768
 
19817
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":153
 
21769
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":153
19818
21770
 *             else:
19819
21771
 *                 index_end = cstd.strchr(index_pos + 1, c']')
19820
21772
 *                 if index_end is NULL:             # <<<<<<<<<<<<<<
19821
21773
 *                     raise ValueError, u"index must be enclosed in []"
19822
 
 *                 index = python.PyNumber_Int(
 
21774
 *                 index = int(
19823
21775
 */
19824
 
        __pyx_5 = (__pyx_v_index_end == NULL);
19825
 
        if (__pyx_5) {
 
21776
        __pyx_t_7 = (__pyx_v_index_end == NULL);
 
21777
        if (__pyx_t_7) {
19826
21778
 
19827
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":154
 
21779
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":154
19828
21780
 *                 index_end = cstd.strchr(index_pos + 1, c']')
19829
21781
 *                 if index_end is NULL:
19830
21782
 *                     raise ValueError, u"index must be enclosed in []"             # <<<<<<<<<<<<<<
19831
 
 *                 index = python.PyNumber_Int(
 
21783
 *                 index = int(
19832
21784
 *                     python.PyString_FromStringAndSize(
19833
21785
 */
19834
 
          __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_819), 0);
 
21786
          __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_882), 0);
19835
21787
          {__pyx_filename = __pyx_f[1]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19836
21788
          goto __pyx_L7;
19837
21789
        }
19838
21790
        __pyx_L7:;
19839
21791
 
19840
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":157
19841
 
 *                 index = python.PyNumber_Int(
 
21792
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":157
 
21793
 *                 index = int(
19842
21794
 *                     python.PyString_FromStringAndSize(
19843
21795
 *                         index_pos + 1, <Py_ssize_t>(index_end - index_pos - 1)))             # <<<<<<<<<<<<<<
19844
21796
 *                 if python.PyList_GET_SIZE(new_path) == 0 and index != 0:
19845
21797
 *                     raise ValueError, u"index not allowed on root node"
19846
21798
 */
19847
 
        __pyx_7 = PyString_FromStringAndSize((__pyx_v_index_pos + 1), ((Py_ssize_t)((__pyx_v_index_end - __pyx_v_index_pos) - 1))); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19848
 
        __pyx_4 = PyNumber_Int(__pyx_7); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19849
 
        Py_DECREF(__pyx_7); __pyx_7 = 0;
19850
 
        Py_DECREF(__pyx_v_index);
19851
 
        __pyx_v_index = __pyx_4;
19852
 
        __pyx_4 = 0;
 
21799
        __pyx_t_4 = PyString_FromStringAndSize((__pyx_v_index_pos + 1), ((Py_ssize_t)((__pyx_v_index_end - __pyx_v_index_pos) - 1))); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21800
        __Pyx_GOTREF(__pyx_t_4);
 
21801
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21802
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
 
21803
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
 
21804
        __Pyx_GIVEREF(__pyx_t_4);
 
21805
        __pyx_t_4 = 0;
 
21806
        __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)&PyInt_Type)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21807
        __Pyx_GOTREF(__pyx_t_4);
 
21808
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
 
21809
        __Pyx_DECREF(__pyx_v_index);
 
21810
        __pyx_v_index = __pyx_t_4;
 
21811
        __pyx_t_4 = 0;
19853
21812
 
19854
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":158
 
21813
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":158
19855
21814
 *                     python.PyString_FromStringAndSize(
19856
21815
 *                         index_pos + 1, <Py_ssize_t>(index_end - index_pos - 1)))
19857
21816
 *                 if python.PyList_GET_SIZE(new_path) == 0 and index != 0:             # <<<<<<<<<<<<<<
19858
21817
 *                     raise ValueError, u"index not allowed on root node"
19859
21818
 *                 name = python.PyString_FromStringAndSize(
19860
21819
 */
19861
 
        __pyx_6 = (PyList_GET_SIZE(__pyx_v_new_path) == 0);
19862
 
        if (__pyx_6) {
19863
 
          __pyx_3 = PyObject_RichCompare(__pyx_v_index, __pyx_int_0, Py_NE); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19864
 
          __pyx_6 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_6 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19865
 
          Py_DECREF(__pyx_3); __pyx_3 = 0;
 
21820
        __pyx_t_7 = (PyList_GET_SIZE(((PyObject *)__pyx_v_new_path)) == 0);
 
21821
        if (__pyx_t_7) {
 
21822
          __pyx_t_4 = PyObject_RichCompare(__pyx_v_index, __pyx_int_0, Py_NE); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21823
          __Pyx_GOTREF(__pyx_t_4);
 
21824
          __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21825
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
21826
          __pyx_t_6 = __pyx_t_5;
 
21827
        } else {
 
21828
          __pyx_t_6 = __pyx_t_7;
19866
21829
        }
19867
 
        if (__pyx_6) {
 
21830
        if (__pyx_t_6) {
19868
21831
 
19869
 
          /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":159
 
21832
          /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":159
19870
21833
 *                         index_pos + 1, <Py_ssize_t>(index_end - index_pos - 1)))
19871
21834
 *                 if python.PyList_GET_SIZE(new_path) == 0 and index != 0:
19872
21835
 *                     raise ValueError, u"index not allowed on root node"             # <<<<<<<<<<<<<<
19873
21836
 *                 name = python.PyString_FromStringAndSize(
19874
21837
 *                     c_name, <Py_ssize_t>(index_pos - c_name))
19875
21838
 */
19876
 
          __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_820), 0);
 
21839
          __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_883), 0);
19877
21840
          {__pyx_filename = __pyx_f[1]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19878
21841
          goto __pyx_L8;
19879
21842
        }
19880
21843
        __pyx_L8:;
19881
21844
 
19882
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":161
 
21845
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":161
19883
21846
 *                     raise ValueError, u"index not allowed on root node"
19884
21847
 *                 name = python.PyString_FromStringAndSize(
19885
21848
 *                     c_name, <Py_ssize_t>(index_pos - c_name))             # <<<<<<<<<<<<<<
19886
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21849
 *         new_path.append( (ns, name, index) )
19887
21850
 *     if python.PyList_GET_SIZE(new_path) == 0:
19888
21851
 */
19889
 
        __pyx_7 = PyString_FromStringAndSize(__pyx_v_c_name, ((Py_ssize_t)(__pyx_v_index_pos - __pyx_v_c_name))); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19890
 
        Py_DECREF(__pyx_v_name);
19891
 
        __pyx_v_name = __pyx_7;
19892
 
        __pyx_7 = 0;
 
21852
        __pyx_t_4 = PyString_FromStringAndSize(__pyx_v_c_name, ((Py_ssize_t)(__pyx_v_index_pos - __pyx_v_c_name))); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21853
        __Pyx_GOTREF(__pyx_t_4);
 
21854
        __Pyx_DECREF(__pyx_v_name);
 
21855
        __pyx_v_name = __pyx_t_4;
 
21856
        __pyx_t_4 = 0;
19893
21857
      }
19894
21858
      __pyx_L6:;
19895
21859
    }
19896
21860
    __pyx_L5:;
19897
21861
 
19898
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":162
 
21862
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":162
19899
21863
 *                 name = python.PyString_FromStringAndSize(
19900
21864
 *                     c_name, <Py_ssize_t>(index_pos - c_name))
19901
 
 *         python.PyList_Append(new_path, (ns, name, index))             # <<<<<<<<<<<<<<
 
21865
 *         new_path.append( (ns, name, index) )             # <<<<<<<<<<<<<<
19902
21866
 *     if python.PyList_GET_SIZE(new_path) == 0:
19903
21867
 *         raise ValueError, u"invalid path"
19904
21868
 */
19905
 
    __pyx_4 = PyTuple_New(3); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19906
 
    Py_INCREF(__pyx_v_ns);
19907
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_ns);
19908
 
    Py_INCREF(__pyx_v_name);
19909
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_name);
19910
 
    Py_INCREF(__pyx_v_index);
19911
 
    PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_index);
19912
 
    __pyx_8 = PyList_Append(__pyx_v_new_path, ((PyObject *)__pyx_4)); if (unlikely(__pyx_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19913
 
    Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
 
21869
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21870
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
21871
    __Pyx_INCREF(__pyx_v_ns);
 
21872
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_ns);
 
21873
    __Pyx_GIVEREF(__pyx_v_ns);
 
21874
    __Pyx_INCREF(__pyx_v_name);
 
21875
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_name);
 
21876
    __Pyx_GIVEREF(__pyx_v_name);
 
21877
    __Pyx_INCREF(__pyx_v_index);
 
21878
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_index);
 
21879
    __Pyx_GIVEREF(__pyx_v_index);
 
21880
    __pyx_t_8 = PyList_Append(((PyObject *)__pyx_v_new_path), ((PyObject *)__pyx_t_4)); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21881
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
19914
21882
  }
19915
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
21883
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19916
21884
 
19917
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":163
 
21885
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":163
19918
21886
 *                     c_name, <Py_ssize_t>(index_pos - c_name))
19919
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21887
 *         new_path.append( (ns, name, index) )
19920
21888
 *     if python.PyList_GET_SIZE(new_path) == 0:             # <<<<<<<<<<<<<<
19921
21889
 *         raise ValueError, u"invalid path"
19922
21890
 *     return new_path
19923
21891
 */
19924
 
  __pyx_5 = (PyList_GET_SIZE(__pyx_v_new_path) == 0);
19925
 
  if (__pyx_5) {
 
21892
  __pyx_t_6 = (PyList_GET_SIZE(((PyObject *)__pyx_v_new_path)) == 0);
 
21893
  if (__pyx_t_6) {
19926
21894
 
19927
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":164
19928
 
 *         python.PyList_Append(new_path, (ns, name, index))
 
21895
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":164
 
21896
 *         new_path.append( (ns, name, index) )
19929
21897
 *     if python.PyList_GET_SIZE(new_path) == 0:
19930
21898
 *         raise ValueError, u"invalid path"             # <<<<<<<<<<<<<<
19931
21899
 *     return new_path
19932
21900
 * 
19933
21901
 */
19934
 
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_821), 0);
 
21902
    __Pyx_Raise(__pyx_builtin_ValueError, ((PyObject *)__pyx_kp_884), 0);
19935
21903
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19936
21904
    goto __pyx_L9;
19937
21905
  }
19938
21906
  __pyx_L9:;
19939
21907
 
19940
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":165
 
21908
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":165
19941
21909
 *     if python.PyList_GET_SIZE(new_path) == 0:
19942
21910
 *         raise ValueError, u"invalid path"
19943
21911
 *     return new_path             # <<<<<<<<<<<<<<
19944
21912
 * 
19945
21913
 * cdef _ObjectPath* _buildObjectPathSegments(path_list) except NULL:
19946
21914
 */
19947
 
  Py_INCREF(__pyx_v_new_path);
19948
 
  __pyx_r = __pyx_v_new_path;
 
21915
  __Pyx_XDECREF(__pyx_r);
 
21916
  __Pyx_INCREF(((PyObject *)__pyx_v_new_path));
 
21917
  __pyx_r = ((PyObject *)__pyx_v_new_path);
19949
21918
  goto __pyx_L0;
19950
21919
 
19951
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
21920
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
19952
21921
  goto __pyx_L0;
19953
21922
  __pyx_L1_error:;
19954
 
  Py_XDECREF(__pyx_1);
19955
 
  Py_XDECREF(__pyx_3);
19956
 
  Py_XDECREF(__pyx_4);
19957
 
  Py_XDECREF(__pyx_7);
 
21923
  __Pyx_XDECREF(__pyx_1);
 
21924
  __Pyx_XDECREF(__pyx_2);
 
21925
  __Pyx_XDECREF(__pyx_3);
 
21926
  __Pyx_XDECREF(__pyx_t_1);
 
21927
  __Pyx_XDECREF(__pyx_t_3);
 
21928
  __Pyx_XDECREF(__pyx_t_4);
19958
21929
  __Pyx_AddTraceback("lxml.objectify._parseObjectPathList");
19959
21930
  __pyx_r = 0;
19960
21931
  __pyx_L0:;
19961
 
  Py_DECREF(__pyx_v_new_path);
19962
 
  Py_DECREF(__pyx_v_item);
19963
 
  Py_DECREF(__pyx_v_ns);
19964
 
  Py_DECREF(__pyx_v_name);
19965
 
  Py_DECREF(__pyx_v_index);
 
21932
  __Pyx_XDECREF(__pyx_v_new_path);
 
21933
  __Pyx_DECREF(__pyx_v_item);
 
21934
  __Pyx_DECREF(__pyx_v_ns);
 
21935
  __Pyx_DECREF(__pyx_v_name);
 
21936
  __Pyx_DECREF(__pyx_v_index);
 
21937
  __Pyx_XGIVEREF(__pyx_r);
 
21938
  __Pyx_FinishRefcountContext();
19966
21939
  return __pyx_r;
19967
21940
}
19968
21941
 
19969
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":167
 
21942
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":167
19970
21943
 *     return new_path
19971
21944
 * 
19972
21945
 * cdef _ObjectPath* _buildObjectPathSegments(path_list) except NULL:             # <<<<<<<<<<<<<<
19981
21954
  PyObject *__pyx_v_name;
19982
21955
  PyObject *__pyx_v_index;
19983
21956
  __pyx_t_4lxml_9objectify__ObjectPath *__pyx_r;
19984
 
  int __pyx_1;
 
21957
  PyObject *__pyx_1 = 0;
19985
21958
  PyObject *__pyx_2 = 0;
19986
 
  Py_ssize_t __pyx_3 = 0;
 
21959
  PyObject *__pyx_3 = 0;
19987
21960
  PyObject *__pyx_4 = 0;
19988
 
  PyObject *__pyx_5 = 0;
19989
 
  PyObject *__pyx_6 = 0;
19990
 
  Py_ssize_t __pyx_7 = 0;
19991
 
  __pyx_v_href = Py_None; Py_INCREF(Py_None);
19992
 
  __pyx_v_name = Py_None; Py_INCREF(Py_None);
19993
 
  __pyx_v_index = Py_None; Py_INCREF(Py_None);
 
21961
  int __pyx_t_1;
 
21962
  PyObject *__pyx_t_2 = NULL;
 
21963
  Py_ssize_t __pyx_t_3;
 
21964
  PyObject *__pyx_t_4 = NULL;
 
21965
  Py_ssize_t __pyx_t_5;
 
21966
  __Pyx_SetupRefcountContext("_buildObjectPathSegments");
 
21967
  __pyx_v_href = Py_None; __Pyx_INCREF(Py_None);
 
21968
  __pyx_v_name = Py_None; __Pyx_INCREF(Py_None);
 
21969
  __pyx_v_index = Py_None; __Pyx_INCREF(Py_None);
19994
21970
 
19995
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":171
 
21971
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":171
19996
21972
 *     cdef _ObjectPath* c_path_segments
19997
21973
 *     c_path_segments = <_ObjectPath*>python.PyMem_Malloc(
19998
21974
 *         sizeof(_ObjectPath) * python.PyList_GET_SIZE(path_list))             # <<<<<<<<<<<<<<
20001
21977
 */
20002
21978
  __pyx_v_c_path_segments = ((__pyx_t_4lxml_9objectify__ObjectPath *)PyMem_Malloc(((sizeof(__pyx_t_4lxml_9objectify__ObjectPath)) * PyList_GET_SIZE(__pyx_v_path_list))));
20003
21979
 
20004
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":172
 
21980
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":172
20005
21981
 *     c_path_segments = <_ObjectPath*>python.PyMem_Malloc(
20006
21982
 *         sizeof(_ObjectPath) * python.PyList_GET_SIZE(path_list))
20007
21983
 *     if c_path_segments is NULL:             # <<<<<<<<<<<<<<
20008
21984
 *         python.PyErr_NoMemory()
20009
21985
 *     c_path = c_path_segments
20010
21986
 */
20011
 
  __pyx_1 = (__pyx_v_c_path_segments == NULL);
20012
 
  if (__pyx_1) {
 
21987
  __pyx_t_1 = (__pyx_v_c_path_segments == NULL);
 
21988
  if (__pyx_t_1) {
20013
21989
 
20014
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":173
 
21990
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":173
20015
21991
 *         sizeof(_ObjectPath) * python.PyList_GET_SIZE(path_list))
20016
21992
 *     if c_path_segments is NULL:
20017
21993
 *         python.PyErr_NoMemory()             # <<<<<<<<<<<<<<
20018
21994
 *     c_path = c_path_segments
20019
21995
 *     for href, name, index in path_list:
20020
21996
 */
20021
 
    __pyx_2 = PyErr_NoMemory(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20022
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
21997
    __pyx_t_2 = PyErr_NoMemory(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
21998
    __Pyx_GOTREF(__pyx_t_2);
 
21999
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20023
22000
    goto __pyx_L3;
20024
22001
  }
20025
22002
  __pyx_L3:;
20026
22003
 
20027
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":174
 
22004
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":174
20028
22005
 *     if c_path_segments is NULL:
20029
22006
 *         python.PyErr_NoMemory()
20030
22007
 *     c_path = c_path_segments             # <<<<<<<<<<<<<<
20033
22010
 */
20034
22011
  __pyx_v_c_path = __pyx_v_c_path_segments;
20035
22012
 
20036
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":175
 
22013
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":175
20037
22014
 *         python.PyErr_NoMemory()
20038
22015
 *     c_path = c_path_segments
20039
22016
 *     for href, name, index in path_list:             # <<<<<<<<<<<<<<
20041
22018
 *             c_path[0].href = NULL
20042
22019
 */
20043
22020
  if (PyList_CheckExact(__pyx_v_path_list) || PyTuple_CheckExact(__pyx_v_path_list)) {
20044
 
    __pyx_3 = 0; __pyx_2 = __pyx_v_path_list; Py_INCREF(__pyx_2);
 
22021
    __pyx_t_3 = 0; __pyx_t_2 = __pyx_v_path_list; __Pyx_INCREF(__pyx_t_2);
20045
22022
  } else {
20046
 
    __pyx_3 = -1; __pyx_2 = PyObject_GetIter(__pyx_v_path_list); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22023
    __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_path_list); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22024
    __Pyx_GOTREF(__pyx_t_2);
20047
22025
  }
20048
22026
  for (;;) {
20049
 
    if (likely(PyList_CheckExact(__pyx_2))) {
20050
 
      if (__pyx_3 >= PyList_GET_SIZE(__pyx_2)) break;
20051
 
      __pyx_4 = PyList_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
20052
 
    } else if (likely(PyTuple_CheckExact(__pyx_2))) {
20053
 
      if (__pyx_3 >= PyTuple_GET_SIZE(__pyx_2)) break;
20054
 
      __pyx_4 = PyTuple_GET_ITEM(__pyx_2, __pyx_3); Py_INCREF(__pyx_4); __pyx_3++;
 
22027
    if (likely(PyList_CheckExact(__pyx_t_2))) {
 
22028
      if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
 
22029
      __pyx_t_4 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
 
22030
    } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
 
22031
      if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
 
22032
      __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_4); __pyx_t_3++;
20055
22033
    } else {
20056
 
      __pyx_4 = PyIter_Next(__pyx_2);
20057
 
      if (!__pyx_4) {
 
22034
      __pyx_t_4 = PyIter_Next(__pyx_t_2);
 
22035
      if (!__pyx_t_4) {
20058
22036
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20059
22037
        break;
20060
22038
      }
20061
 
    }
20062
 
    if (PyTuple_CheckExact(__pyx_4) && PyTuple_GET_SIZE(__pyx_4) == 3) {
20063
 
      PyObject* tuple = __pyx_4;
20064
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 0);
20065
 
      Py_INCREF(__pyx_6);
20066
 
      Py_DECREF(__pyx_v_href);
20067
 
      __pyx_v_href = __pyx_6;
20068
 
      __pyx_6 = 0;
20069
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 1);
20070
 
      Py_INCREF(__pyx_6);
20071
 
      Py_DECREF(__pyx_v_name);
20072
 
      __pyx_v_name = __pyx_6;
20073
 
      __pyx_6 = 0;
20074
 
      __pyx_6 = PyTuple_GET_ITEM(tuple, 2);
20075
 
      Py_INCREF(__pyx_6);
20076
 
      Py_DECREF(__pyx_v_index);
20077
 
      __pyx_v_index = __pyx_6;
20078
 
      __pyx_6 = 0;
20079
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
20080
 
    }
20081
 
    else {
20082
 
      __pyx_5 = PyObject_GetIter(__pyx_4); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20083
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
20084
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20085
 
      Py_DECREF(__pyx_v_href);
20086
 
      __pyx_v_href = __pyx_6;
20087
 
      __pyx_6 = 0;
20088
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 1); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20089
 
      Py_DECREF(__pyx_v_name);
20090
 
      __pyx_v_name = __pyx_6;
20091
 
      __pyx_6 = 0;
20092
 
      __pyx_6 = __Pyx_UnpackItem(__pyx_5, 2); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20093
 
      Py_DECREF(__pyx_v_index);
20094
 
      __pyx_v_index = __pyx_6;
20095
 
      __pyx_6 = 0;
20096
 
      if (__Pyx_EndUnpack(__pyx_5) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20097
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
 
22039
      __Pyx_GOTREF(__pyx_t_4);
 
22040
    }
 
22041
    if (PyTuple_CheckExact(__pyx_t_4) && likely(PyTuple_GET_SIZE(__pyx_t_4) == 3)) {
 
22042
      PyObject* tuple = __pyx_t_4;
 
22043
      __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
22044
      __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
 
22045
      __pyx_4 = PyTuple_GET_ITEM(tuple, 2); __Pyx_INCREF(__pyx_4);
 
22046
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
22047
      __Pyx_DECREF(__pyx_v_href);
 
22048
      __pyx_v_href = __pyx_2;
 
22049
      __pyx_2 = 0;
 
22050
      __Pyx_DECREF(__pyx_v_name);
 
22051
      __pyx_v_name = __pyx_3;
 
22052
      __pyx_3 = 0;
 
22053
      __Pyx_DECREF(__pyx_v_index);
 
22054
      __pyx_v_index = __pyx_4;
 
22055
      __pyx_4 = 0;
 
22056
    } else {
 
22057
      __pyx_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22058
      __Pyx_GOTREF(__pyx_1);
 
22059
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
22060
      __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22061
      __Pyx_GOTREF(__pyx_2);
 
22062
      __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22063
      __Pyx_GOTREF(__pyx_3);
 
22064
      __pyx_4 = __Pyx_UnpackItem(__pyx_1, 2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22065
      __Pyx_GOTREF(__pyx_4);
 
22066
      if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22067
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
22068
      __Pyx_DECREF(__pyx_v_href);
 
22069
      __pyx_v_href = __pyx_2;
 
22070
      __pyx_2 = 0;
 
22071
      __Pyx_DECREF(__pyx_v_name);
 
22072
      __pyx_v_name = __pyx_3;
 
22073
      __pyx_3 = 0;
 
22074
      __Pyx_DECREF(__pyx_v_index);
 
22075
      __pyx_v_index = __pyx_4;
 
22076
      __pyx_4 = 0;
20098
22077
    }
20099
22078
 
20100
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":176
 
22079
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":176
20101
22080
 *     c_path = c_path_segments
20102
22081
 *     for href, name, index in path_list:
20103
22082
 *         if href is None:             # <<<<<<<<<<<<<<
20104
22083
 *             c_path[0].href = NULL
20105
22084
 *         else:
20106
22085
 */
20107
 
    __pyx_1 = (__pyx_v_href == Py_None);
20108
 
    if (__pyx_1) {
 
22086
    __pyx_t_1 = (__pyx_v_href == Py_None);
 
22087
    if (__pyx_t_1) {
20109
22088
 
20110
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":177
 
22089
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":177
20111
22090
 *     for href, name, index in path_list:
20112
22091
 *         if href is None:
20113
22092
 *             c_path[0].href = NULL             # <<<<<<<<<<<<<<
20119
22098
    }
20120
22099
    /*else*/ {
20121
22100
 
20122
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":179
 
22101
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":179
20123
22102
 *             c_path[0].href = NULL
20124
22103
 *         else:
20125
22104
 *             c_path[0].href = _cstr(href)             # <<<<<<<<<<<<<<
20130
22109
    }
20131
22110
    __pyx_L6:;
20132
22111
 
20133
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":180
 
22112
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":180
20134
22113
 *         else:
20135
22114
 *             c_path[0].href = _cstr(href)
20136
22115
 *         if name is None:             # <<<<<<<<<<<<<<
20137
22116
 *             c_path[0].name = NULL
20138
22117
 *         else:
20139
22118
 */
20140
 
    __pyx_1 = (__pyx_v_name == Py_None);
20141
 
    if (__pyx_1) {
 
22119
    __pyx_t_1 = (__pyx_v_name == Py_None);
 
22120
    if (__pyx_t_1) {
20142
22121
 
20143
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":181
 
22122
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":181
20144
22123
 *             c_path[0].href = _cstr(href)
20145
22124
 *         if name is None:
20146
22125
 *             c_path[0].name = NULL             # <<<<<<<<<<<<<<
20152
22131
    }
20153
22132
    /*else*/ {
20154
22133
 
20155
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":183
 
22134
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":183
20156
22135
 *             c_path[0].name = NULL
20157
22136
 *         else:
20158
22137
 *             c_path[0].name = _cstr(name)             # <<<<<<<<<<<<<<
20163
22142
    }
20164
22143
    __pyx_L7:;
20165
22144
 
20166
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":184
 
22145
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":184
20167
22146
 *         else:
20168
22147
 *             c_path[0].name = _cstr(name)
20169
22148
 *         c_path[0].index = index             # <<<<<<<<<<<<<<
20170
22149
 *         c_path = c_path + 1
20171
22150
 *     return c_path_segments
20172
22151
 */
20173
 
    __pyx_7 = __pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_7 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20174
 
    (__pyx_v_c_path[0]).index = __pyx_7;
 
22152
    __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22153
    (__pyx_v_c_path[0]).index = __pyx_t_5;
20175
22154
 
20176
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":185
 
22155
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":185
20177
22156
 *             c_path[0].name = _cstr(name)
20178
22157
 *         c_path[0].index = index
20179
22158
 *         c_path = c_path + 1             # <<<<<<<<<<<<<<
20182
22161
 */
20183
22162
    __pyx_v_c_path = (__pyx_v_c_path + 1);
20184
22163
  }
20185
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
22164
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20186
22165
 
20187
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":186
 
22166
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":186
20188
22167
 *         c_path[0].index = index
20189
22168
 *         c_path = c_path + 1
20190
22169
 *     return c_path_segments             # <<<<<<<<<<<<<<
20197
22176
  __pyx_r = 0;
20198
22177
  goto __pyx_L0;
20199
22178
  __pyx_L1_error:;
20200
 
  Py_XDECREF(__pyx_2);
20201
 
  Py_XDECREF(__pyx_4);
20202
 
  Py_XDECREF(__pyx_5);
20203
 
  Py_XDECREF(__pyx_6);
 
22179
  __Pyx_XDECREF(__pyx_1);
 
22180
  __Pyx_XDECREF(__pyx_2);
 
22181
  __Pyx_XDECREF(__pyx_3);
 
22182
  __Pyx_XDECREF(__pyx_4);
 
22183
  __Pyx_XDECREF(__pyx_t_2);
 
22184
  __Pyx_XDECREF(__pyx_t_4);
20204
22185
  __Pyx_AddTraceback("lxml.objectify._buildObjectPathSegments");
20205
22186
  __pyx_r = NULL;
20206
22187
  __pyx_L0:;
20207
 
  Py_DECREF(__pyx_v_href);
20208
 
  Py_DECREF(__pyx_v_name);
20209
 
  Py_DECREF(__pyx_v_index);
 
22188
  __Pyx_DECREF(__pyx_v_href);
 
22189
  __Pyx_DECREF(__pyx_v_name);
 
22190
  __Pyx_DECREF(__pyx_v_index);
 
22191
  __Pyx_FinishRefcountContext();
20210
22192
  return __pyx_r;
20211
22193
}
20212
22194
 
20213
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":188
 
22195
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":188
20214
22196
 *     return c_path_segments
20215
22197
 * 
20216
22198
 * cdef _findObjectPath(_Element root, _ObjectPath* c_path, Py_ssize_t c_path_len,             # <<<<<<<<<<<<<<
20224
22206
  char *__pyx_v_c_name;
20225
22207
  Py_ssize_t __pyx_v_c_index;
20226
22208
  PyObject *__pyx_v_tag;
20227
 
  PyObject *__pyx_r;
20228
 
  int __pyx_1;
20229
 
  PyObject *__pyx_2 = 0;
20230
 
  PyObject *__pyx_3 = 0;
20231
 
  PyObject *__pyx_4 = 0;
20232
 
  int __pyx_5;
20233
 
  PyObject *__pyx_t_1 = NULL;
20234
 
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
 
22209
  PyObject *__pyx_r = NULL;
 
22210
  int __pyx_t_1;
 
22211
  int __pyx_t_2;
 
22212
  PyObject *__pyx_t_3 = NULL;
 
22213
  PyObject *__pyx_t_4 = NULL;
 
22214
  PyObject *__pyx_t_5 = NULL;
 
22215
  __Pyx_SetupRefcountContext("_findObjectPath");
 
22216
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
20235
22217
 
20236
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":196
 
22218
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":196
20237
22219
 *     cdef char* c_name
20238
22220
 *     cdef Py_ssize_t c_index
20239
22221
 *     c_node = root._c_node             # <<<<<<<<<<<<<<
20242
22224
 */
20243
22225
  __pyx_v_c_node = __pyx_v_root->_c_node;
20244
22226
 
20245
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":197
 
22227
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":197
20246
22228
 *     cdef Py_ssize_t c_index
20247
22229
 *     c_node = root._c_node
20248
22230
 *     c_name = c_path[0].name             # <<<<<<<<<<<<<<
20251
22233
 */
20252
22234
  __pyx_v_c_name = (__pyx_v_c_path[0]).name;
20253
22235
 
20254
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":198
 
22236
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":198
20255
22237
 *     c_node = root._c_node
20256
22238
 *     c_name = c_path[0].name
20257
22239
 *     c_href = c_path[0].href             # <<<<<<<<<<<<<<
20260
22242
 */
20261
22243
  __pyx_v_c_href = (__pyx_v_c_path[0]).href;
20262
22244
 
20263
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":199
 
22245
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":199
20264
22246
 *     c_name = c_path[0].name
20265
22247
 *     c_href = c_path[0].href
20266
22248
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
20267
22249
 *         c_href = tree._getNs(c_node)
20268
22250
 *     if not cetree.tagMatches(c_node, c_href, c_name):
20269
22251
 */
20270
 
  __pyx_1 = (__pyx_v_c_href == NULL);
20271
 
  if (!__pyx_1) {
20272
 
    __pyx_1 = ((__pyx_v_c_href[0]) == '\x00');
 
22252
  if (!(__pyx_v_c_href == NULL)) {
 
22253
    __pyx_t_1 = ((__pyx_v_c_href[0]) == '\x00');
 
22254
  } else {
 
22255
    __pyx_t_1 = (__pyx_v_c_href == NULL);
20273
22256
  }
20274
 
  if (__pyx_1) {
 
22257
  if (__pyx_t_1) {
20275
22258
 
20276
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":200
 
22259
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":200
20277
22260
 *     c_href = c_path[0].href
20278
22261
 *     if c_href is NULL or c_href[0] == c'\0':
20279
22262
 *         c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
20280
22263
 *     if not cetree.tagMatches(c_node, c_href, c_name):
20281
 
 *         raise ValueError, \
 
22264
 *         if use_default:
20282
22265
 */
20283
22266
    __pyx_v_c_href = _getNs(__pyx_v_c_node);
20284
22267
    goto __pyx_L3;
20285
22268
  }
20286
22269
  __pyx_L3:;
20287
22270
 
20288
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":201
 
22271
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":201
20289
22272
 *     if c_href is NULL or c_href[0] == c'\0':
20290
22273
 *         c_href = tree._getNs(c_node)
20291
22274
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
20292
 
 *         raise ValueError, \
20293
 
 *             u"root element does not match: need %s, got %s" % \
20294
 
 */
20295
 
  __pyx_1 = (!tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name));
20296
 
  if (__pyx_1) {
20297
 
 
20298
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":204
20299
 
 *         raise ValueError, \
20300
 
 *             u"root element does not match: need %s, got %s" % \
20301
 
 *             (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)             # <<<<<<<<<<<<<<
 
22275
 *         if use_default:
 
22276
 *             return default_value
 
22277
 */
 
22278
  __pyx_t_1 = (!tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name));
 
22279
  if (__pyx_t_1) {
 
22280
 
 
22281
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":202
 
22282
 *         c_href = tree._getNs(c_node)
 
22283
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 
22284
 *         if use_default:             # <<<<<<<<<<<<<<
 
22285
 *             return default_value
 
22286
 *         else:
 
22287
 */
 
22288
    __pyx_t_2 = __pyx_v_use_default;
 
22289
    if (__pyx_t_2) {
 
22290
 
 
22291
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":203
 
22292
 *     if not cetree.tagMatches(c_node, c_href, c_name):
 
22293
 *         if use_default:
 
22294
 *             return default_value             # <<<<<<<<<<<<<<
 
22295
 *         else:
 
22296
 *             raise ValueError, \
 
22297
 */
 
22298
      __Pyx_XDECREF(__pyx_r);
 
22299
      __Pyx_INCREF(__pyx_v_default_value);
 
22300
      __pyx_r = __pyx_v_default_value;
 
22301
      goto __pyx_L0;
 
22302
      goto __pyx_L5;
 
22303
    }
 
22304
    /*else*/ {
 
22305
 
 
22306
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":207
 
22307
 *             raise ValueError, \
 
22308
 *                 u"root element does not match: need %s, got %s" % \
 
22309
 *                 (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)             # <<<<<<<<<<<<<<
20302
22310
 * 
20303
22311
 *     while c_node is not NULL:
20304
22312
 */
20305
 
    __pyx_2 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20306
 
    __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_kp_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20307
 
    __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20308
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
20309
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3);
20310
 
    __pyx_2 = 0;
20311
 
    __pyx_3 = 0;
20312
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_822), ((PyObject *)__pyx_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20313
 
    Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
20314
 
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_1, 0);
20315
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20316
 
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22313
      __pyx_t_3 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22314
      __Pyx_GOTREF(__pyx_t_3);
 
22315
      __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_kp_tag); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22316
      __Pyx_GOTREF(__pyx_t_4);
 
22317
      __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22318
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
 
22319
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
 
22320
      __Pyx_GIVEREF(__pyx_t_3);
 
22321
      PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
 
22322
      __Pyx_GIVEREF(__pyx_t_4);
 
22323
      __pyx_t_3 = 0;
 
22324
      __pyx_t_4 = 0;
 
22325
      __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_885), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22326
      __Pyx_GOTREF(__pyx_t_4);
 
22327
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
 
22328
      __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_4, 0);
 
22329
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
22330
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22331
    }
 
22332
    __pyx_L5:;
20317
22333
    goto __pyx_L4;
20318
22334
  }
20319
22335
  __pyx_L4:;
20320
22336
 
20321
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":206
20322
 
 *             (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)
 
22337
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":209
 
22338
 *                 (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)
20323
22339
 * 
20324
22340
 *     while c_node is not NULL:             # <<<<<<<<<<<<<<
20325
22341
 *         c_path_len = c_path_len - 1
20326
22342
 *         if c_path_len <= 0:
20327
22343
 */
20328
22344
  while (1) {
20329
 
    __pyx_1 = (__pyx_v_c_node != NULL);
20330
 
    if (!__pyx_1) break;
 
22345
    __pyx_t_1 = (__pyx_v_c_node != NULL);
 
22346
    if (!__pyx_t_1) break;
20331
22347
 
20332
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":207
 
22348
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":210
20333
22349
 * 
20334
22350
 *     while c_node is not NULL:
20335
22351
 *         c_path_len = c_path_len - 1             # <<<<<<<<<<<<<<
20338
22354
 */
20339
22355
    __pyx_v_c_path_len = (__pyx_v_c_path_len - 1);
20340
22356
 
20341
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":208
 
22357
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":211
20342
22358
 *     while c_node is not NULL:
20343
22359
 *         c_path_len = c_path_len - 1
20344
22360
 *         if c_path_len <= 0:             # <<<<<<<<<<<<<<
20345
22361
 *             break
20346
22362
 * 
20347
22363
 */
20348
 
    __pyx_1 = (__pyx_v_c_path_len <= 0);
20349
 
    if (__pyx_1) {
 
22364
    __pyx_t_1 = (__pyx_v_c_path_len <= 0);
 
22365
    if (__pyx_t_1) {
20350
22366
 
20351
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":209
 
22367
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":212
20352
22368
 *         c_path_len = c_path_len - 1
20353
22369
 *         if c_path_len <= 0:
20354
22370
 *             break             # <<<<<<<<<<<<<<
20355
22371
 * 
20356
22372
 *         c_path = c_path + 1
20357
22373
 */
20358
 
      goto __pyx_L6;
20359
 
      goto __pyx_L7;
 
22374
      goto __pyx_L7_break;
 
22375
      goto __pyx_L8;
20360
22376
    }
20361
 
    __pyx_L7:;
 
22377
    __pyx_L8:;
20362
22378
 
20363
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":211
 
22379
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":214
20364
22380
 *             break
20365
22381
 * 
20366
22382
 *         c_path = c_path + 1             # <<<<<<<<<<<<<<
20369
22385
 */
20370
22386
    __pyx_v_c_path = (__pyx_v_c_path + 1);
20371
22387
 
20372
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":212
 
22388
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":215
20373
22389
 * 
20374
22390
 *         c_path = c_path + 1
20375
22391
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
20376
22392
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20377
22393
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
20378
22394
 */
20379
 
    __pyx_1 = ((__pyx_v_c_path[0]).href != NULL);
20380
 
    if (__pyx_1) {
 
22395
    __pyx_t_1 = ((__pyx_v_c_path[0]).href != NULL);
 
22396
    if (__pyx_t_1) {
20381
22397
 
20382
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":213
 
22398
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":216
20383
22399
 *         c_path = c_path + 1
20384
22400
 *         if c_path[0].href is not NULL:
20385
22401
 *             c_href = c_path[0].href # otherwise: keep parent namespace             # <<<<<<<<<<<<<<
20387
22403
 *         if c_name is NULL:
20388
22404
 */
20389
22405
      __pyx_v_c_href = (__pyx_v_c_path[0]).href;
20390
 
      goto __pyx_L8;
 
22406
      goto __pyx_L9;
20391
22407
    }
20392
 
    __pyx_L8:;
 
22408
    __pyx_L9:;
20393
22409
 
20394
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":214
 
22410
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":217
20395
22411
 *         if c_path[0].href is not NULL:
20396
22412
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20397
22413
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)             # <<<<<<<<<<<<<<
20400
22416
 */
20401
22417
    __pyx_v_c_name = xmlDictExists(__pyx_v_c_node->doc->dict, (__pyx_v_c_path[0]).name, -1);
20402
22418
 
20403
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":215
 
22419
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":218
20404
22420
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20405
22421
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
20406
22422
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
20407
22423
 *             c_name = c_path[0].name
20408
22424
 *             c_node = NULL
20409
22425
 */
20410
 
    __pyx_1 = (__pyx_v_c_name == NULL);
20411
 
    if (__pyx_1) {
 
22426
    __pyx_t_1 = (__pyx_v_c_name == NULL);
 
22427
    if (__pyx_t_1) {
20412
22428
 
20413
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":216
 
22429
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":219
20414
22430
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
20415
22431
 *         if c_name is NULL:
20416
22432
 *             c_name = c_path[0].name             # <<<<<<<<<<<<<<
20419
22435
 */
20420
22436
      __pyx_v_c_name = (__pyx_v_c_path[0]).name;
20421
22437
 
20422
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":217
 
22438
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":220
20423
22439
 *         if c_name is NULL:
20424
22440
 *             c_name = c_path[0].name
20425
22441
 *             c_node = NULL             # <<<<<<<<<<<<<<
20428
22444
 */
20429
22445
      __pyx_v_c_node = NULL;
20430
22446
 
20431
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":218
 
22447
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":221
20432
22448
 *             c_name = c_path[0].name
20433
22449
 *             c_node = NULL
20434
22450
 *             break             # <<<<<<<<<<<<<<
20435
22451
 *         c_index = c_path[0].index
20436
22452
 * 
20437
22453
 */
20438
 
      goto __pyx_L6;
20439
 
      goto __pyx_L9;
 
22454
      goto __pyx_L7_break;
 
22455
      goto __pyx_L10;
20440
22456
    }
20441
 
    __pyx_L9:;
 
22457
    __pyx_L10:;
20442
22458
 
20443
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":219
 
22459
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":222
20444
22460
 *             c_node = NULL
20445
22461
 *             break
20446
22462
 *         c_index = c_path[0].index             # <<<<<<<<<<<<<<
20449
22465
 */
20450
22466
    __pyx_v_c_index = (__pyx_v_c_path[0]).index;
20451
22467
 
20452
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":221
 
22468
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":224
20453
22469
 *         c_index = c_path[0].index
20454
22470
 * 
20455
22471
 *         if c_index < 0:             # <<<<<<<<<<<<<<
20456
22472
 *             c_node = c_node.last
20457
22473
 *         else:
20458
22474
 */
20459
 
    __pyx_1 = (__pyx_v_c_index < 0);
20460
 
    if (__pyx_1) {
 
22475
    __pyx_t_1 = (__pyx_v_c_index < 0);
 
22476
    if (__pyx_t_1) {
20461
22477
 
20462
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":222
 
22478
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":225
20463
22479
 * 
20464
22480
 *         if c_index < 0:
20465
22481
 *             c_node = c_node.last             # <<<<<<<<<<<<<<
20467
22483
 *             c_node = c_node.children
20468
22484
 */
20469
22485
      __pyx_v_c_node = __pyx_v_c_node->last;
20470
 
      goto __pyx_L10;
 
22486
      goto __pyx_L11;
20471
22487
    }
20472
22488
    /*else*/ {
20473
22489
 
20474
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":224
 
22490
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":227
20475
22491
 *             c_node = c_node.last
20476
22492
 *         else:
20477
22493
 *             c_node = c_node.children             # <<<<<<<<<<<<<<
20480
22496
 */
20481
22497
      __pyx_v_c_node = __pyx_v_c_node->children;
20482
22498
    }
20483
 
    __pyx_L10:;
 
22499
    __pyx_L11:;
20484
22500
 
20485
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":225
 
22501
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":228
20486
22502
 *         else:
20487
22503
 *             c_node = c_node.children
20488
22504
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)             # <<<<<<<<<<<<<<
20491
22507
 */
20492
22508
    __pyx_v_c_node = __pyx_f_4lxml_9objectify__findFollowingSibling(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name, __pyx_v_c_index);
20493
22509
  }
20494
 
  __pyx_L6:;
 
22510
  __pyx_L7_break:;
20495
22511
 
20496
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":227
 
22512
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":230
20497
22513
 *         c_node = _findFollowingSibling(c_node, c_href, c_name, c_index)
20498
22514
 * 
20499
22515
 *     if c_node is not NULL:             # <<<<<<<<<<<<<<
20500
22516
 *         return cetree.elementFactory(root._doc, c_node)
20501
22517
 *     elif use_default:
20502
22518
 */
20503
 
  __pyx_1 = (__pyx_v_c_node != NULL);
20504
 
  if (__pyx_1) {
 
22519
  __pyx_t_1 = (__pyx_v_c_node != NULL);
 
22520
  if (__pyx_t_1) {
20505
22521
 
20506
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":228
 
22522
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":231
20507
22523
 * 
20508
22524
 *     if c_node is not NULL:
20509
22525
 *         return cetree.elementFactory(root._doc, c_node)             # <<<<<<<<<<<<<<
20510
22526
 *     elif use_default:
20511
22527
 *         return default_value
20512
22528
 */
20513
 
    __pyx_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20514
 
    __pyx_r = __pyx_2;
20515
 
    __pyx_2 = 0;
 
22529
    __Pyx_XDECREF(__pyx_r);
 
22530
    __pyx_t_4 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22531
    __Pyx_GOTREF(__pyx_t_4);
 
22532
    __pyx_r = __pyx_t_4;
 
22533
    __pyx_t_4 = 0;
20516
22534
    goto __pyx_L0;
20517
 
    goto __pyx_L11;
 
22535
    goto __pyx_L12;
20518
22536
  }
20519
22537
 
20520
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":229
 
22538
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":232
20521
22539
 *     if c_node is not NULL:
20522
22540
 *         return cetree.elementFactory(root._doc, c_node)
20523
22541
 *     elif use_default:             # <<<<<<<<<<<<<<
20524
22542
 *         return default_value
20525
22543
 *     else:
20526
22544
 */
20527
 
  __pyx_5 = __pyx_v_use_default;
20528
 
  if (__pyx_5) {
 
22545
  __pyx_t_2 = __pyx_v_use_default;
 
22546
  if (__pyx_t_2) {
20529
22547
 
20530
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":230
 
22548
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":233
20531
22549
 *         return cetree.elementFactory(root._doc, c_node)
20532
22550
 *     elif use_default:
20533
22551
 *         return default_value             # <<<<<<<<<<<<<<
20534
22552
 *     else:
20535
22553
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)
20536
22554
 */
20537
 
    Py_INCREF(__pyx_v_default_value);
 
22555
    __Pyx_XDECREF(__pyx_r);
 
22556
    __Pyx_INCREF(__pyx_v_default_value);
20538
22557
    __pyx_r = __pyx_v_default_value;
20539
22558
    goto __pyx_L0;
20540
 
    goto __pyx_L11;
 
22559
    goto __pyx_L12;
20541
22560
  }
20542
22561
  /*else*/ {
20543
22562
 
20544
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":232
 
22563
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":235
20545
22564
 *         return default_value
20546
22565
 *     else:
20547
22566
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)             # <<<<<<<<<<<<<<
20548
22567
 *         raise AttributeError, u"no such child: " + tag
20549
22568
 * 
20550
22569
 */
20551
 
    __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20552
 
    Py_DECREF(__pyx_v_tag);
20553
 
    __pyx_v_tag = __pyx_3;
20554
 
    __pyx_3 = 0;
 
22570
    __pyx_t_4 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22571
    __Pyx_GOTREF(__pyx_t_4);
 
22572
    __Pyx_DECREF(__pyx_v_tag);
 
22573
    __pyx_v_tag = __pyx_t_4;
 
22574
    __pyx_t_4 = 0;
20555
22575
 
20556
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":233
 
22576
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":236
20557
22577
 *     else:
20558
22578
 *         tag = cetree.namespacedNameFromNsName(c_href, c_name)
20559
22579
 *         raise AttributeError, u"no such child: " + tag             # <<<<<<<<<<<<<<
20560
22580
 * 
20561
22581
 * cdef _createObjectPath(_Element root, _ObjectPath* c_path,
20562
22582
 */
20563
 
    __pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_kp_823), __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20564
 
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_1, 0);
20565
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20566
 
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22583
    __pyx_t_4 = PyNumber_Add(((PyObject *)__pyx_kp_886), __pyx_v_tag); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22584
    __Pyx_GOTREF(__pyx_t_4);
 
22585
    __Pyx_Raise(__pyx_builtin_AttributeError, __pyx_t_4, 0);
 
22586
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
22587
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20567
22588
  }
20568
 
  __pyx_L11:;
 
22589
  __pyx_L12:;
20569
22590
 
20570
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
22591
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20571
22592
  goto __pyx_L0;
20572
22593
  __pyx_L1_error:;
20573
 
  Py_XDECREF(__pyx_2);
20574
 
  Py_XDECREF(__pyx_3);
20575
 
  Py_XDECREF(__pyx_4);
 
22594
  __Pyx_XDECREF(__pyx_t_3);
 
22595
  __Pyx_XDECREF(__pyx_t_4);
 
22596
  __Pyx_XDECREF(__pyx_t_5);
20576
22597
  __Pyx_AddTraceback("lxml.objectify._findObjectPath");
20577
22598
  __pyx_r = 0;
20578
22599
  __pyx_L0:;
20579
 
  Py_DECREF(__pyx_v_tag);
 
22600
  __Pyx_DECREF(__pyx_v_tag);
 
22601
  __Pyx_XGIVEREF(__pyx_r);
 
22602
  __Pyx_FinishRefcountContext();
20580
22603
  return __pyx_r;
20581
22604
}
20582
22605
 
20583
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":235
 
22606
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":238
20584
22607
 *         raise AttributeError, u"no such child: " + tag
20585
22608
 * 
20586
22609
 * cdef _createObjectPath(_Element root, _ObjectPath* c_path,             # <<<<<<<<<<<<<<
20596
22619
  char *__pyx_v_c_name;
20597
22620
  Py_ssize_t __pyx_v_c_index;
20598
22621
  PyObject *__pyx_v_element;
20599
 
  PyObject *__pyx_r;
20600
 
  int __pyx_1;
20601
 
  PyObject *__pyx_2 = 0;
20602
 
  PyObject *__pyx_3 = 0;
20603
 
  PyObject *__pyx_4 = 0;
20604
 
  int __pyx_5;
20605
 
  PyObject *__pyx_t_1 = NULL;
20606
 
  __pyx_v_child = ((struct LxmlElement *)Py_None); Py_INCREF(Py_None);
20607
 
  __pyx_v_element = Py_None; Py_INCREF(Py_None);
 
22622
  PyObject *__pyx_r = NULL;
 
22623
  int __pyx_t_1;
 
22624
  PyObject *__pyx_t_2 = NULL;
 
22625
  PyObject *__pyx_t_3 = NULL;
 
22626
  PyObject *__pyx_t_4 = NULL;
 
22627
  int __pyx_t_5;
 
22628
  __Pyx_SetupRefcountContext("_createObjectPath");
 
22629
  __pyx_v_child = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
 
22630
  __pyx_v_element = Py_None; __Pyx_INCREF(Py_None);
20608
22631
 
20609
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":247
 
22632
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":250
20610
22633
 *     cdef char* c_name
20611
22634
 *     cdef Py_ssize_t c_index
20612
22635
 *     if c_path_len == 1:             # <<<<<<<<<<<<<<
20613
22636
 *         raise TypeError, u"cannot update root node"
20614
22637
 * 
20615
22638
 */
20616
 
  __pyx_1 = (__pyx_v_c_path_len == 1);
20617
 
  if (__pyx_1) {
 
22639
  __pyx_t_1 = (__pyx_v_c_path_len == 1);
 
22640
  if (__pyx_t_1) {
20618
22641
 
20619
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":248
 
22642
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":251
20620
22643
 *     cdef Py_ssize_t c_index
20621
22644
 *     if c_path_len == 1:
20622
22645
 *         raise TypeError, u"cannot update root node"             # <<<<<<<<<<<<<<
20623
22646
 * 
20624
22647
 *     c_node = root._c_node
20625
22648
 */
20626
 
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_824), 0);
20627
 
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22649
    __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_887), 0);
 
22650
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20628
22651
    goto __pyx_L3;
20629
22652
  }
20630
22653
  __pyx_L3:;
20631
22654
 
20632
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":250
 
22655
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":253
20633
22656
 *         raise TypeError, u"cannot update root node"
20634
22657
 * 
20635
22658
 *     c_node = root._c_node             # <<<<<<<<<<<<<<
20638
22661
 */
20639
22662
  __pyx_v_c_node = __pyx_v_root->_c_node;
20640
22663
 
20641
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":251
 
22664
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":254
20642
22665
 * 
20643
22666
 *     c_node = root._c_node
20644
22667
 *     c_name = c_path[0].name             # <<<<<<<<<<<<<<
20647
22670
 */
20648
22671
  __pyx_v_c_name = (__pyx_v_c_path[0]).name;
20649
22672
 
20650
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":252
 
22673
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":255
20651
22674
 *     c_node = root._c_node
20652
22675
 *     c_name = c_path[0].name
20653
22676
 *     c_href = c_path[0].href             # <<<<<<<<<<<<<<
20656
22679
 */
20657
22680
  __pyx_v_c_href = (__pyx_v_c_path[0]).href;
20658
22681
 
20659
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":253
 
22682
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":256
20660
22683
 *     c_name = c_path[0].name
20661
22684
 *     c_href = c_path[0].href
20662
22685
 *     if c_href is NULL or c_href[0] == c'\0':             # <<<<<<<<<<<<<<
20663
22686
 *         c_href = tree._getNs(c_node)
20664
22687
 *     if not cetree.tagMatches(c_node, c_href, c_name):
20665
22688
 */
20666
 
  __pyx_1 = (__pyx_v_c_href == NULL);
20667
 
  if (!__pyx_1) {
20668
 
    __pyx_1 = ((__pyx_v_c_href[0]) == '\x00');
 
22689
  if (!(__pyx_v_c_href == NULL)) {
 
22690
    __pyx_t_1 = ((__pyx_v_c_href[0]) == '\x00');
 
22691
  } else {
 
22692
    __pyx_t_1 = (__pyx_v_c_href == NULL);
20669
22693
  }
20670
 
  if (__pyx_1) {
 
22694
  if (__pyx_t_1) {
20671
22695
 
20672
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":254
 
22696
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":257
20673
22697
 *     c_href = c_path[0].href
20674
22698
 *     if c_href is NULL or c_href[0] == c'\0':
20675
22699
 *         c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
20681
22705
  }
20682
22706
  __pyx_L4:;
20683
22707
 
20684
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":255
 
22708
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":258
20685
22709
 *     if c_href is NULL or c_href[0] == c'\0':
20686
22710
 *         c_href = tree._getNs(c_node)
20687
22711
 *     if not cetree.tagMatches(c_node, c_href, c_name):             # <<<<<<<<<<<<<<
20688
22712
 *         raise ValueError, \
20689
22713
 *             u"root element does not match: need %s, got %s" % \
20690
22714
 */
20691
 
  __pyx_1 = (!tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name));
20692
 
  if (__pyx_1) {
 
22715
  __pyx_t_1 = (!tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name));
 
22716
  if (__pyx_t_1) {
20693
22717
 
20694
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":258
 
22718
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":261
20695
22719
 *         raise ValueError, \
20696
22720
 *             u"root element does not match: need %s, got %s" % \
20697
22721
 *             (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)             # <<<<<<<<<<<<<<
20698
22722
 * 
20699
22723
 *     while c_path_len > 1:
20700
22724
 */
20701
 
    __pyx_2 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20702
 
    __pyx_3 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_kp_tag); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20703
 
    __pyx_4 = PyTuple_New(2); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20704
 
    PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
20705
 
    PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3);
20706
 
    __pyx_2 = 0;
20707
 
    __pyx_3 = 0;
20708
 
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_825), ((PyObject *)__pyx_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20709
 
    Py_DECREF(((PyObject *)__pyx_4)); __pyx_4 = 0;
20710
 
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_1, 0);
20711
 
    Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20712
 
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 256; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22725
    __pyx_t_2 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22726
    __Pyx_GOTREF(__pyx_t_2);
 
22727
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_root), __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22728
    __Pyx_GOTREF(__pyx_t_3);
 
22729
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22730
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
22731
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
 
22732
    __Pyx_GIVEREF(__pyx_t_2);
 
22733
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
 
22734
    __Pyx_GIVEREF(__pyx_t_3);
 
22735
    __pyx_t_2 = 0;
 
22736
    __pyx_t_3 = 0;
 
22737
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_888), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22738
    __Pyx_GOTREF(__pyx_t_3);
 
22739
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
22740
    __Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_3, 0);
 
22741
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
22742
    {__pyx_filename = __pyx_f[1]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20713
22743
    goto __pyx_L5;
20714
22744
  }
20715
22745
  __pyx_L5:;
20716
22746
 
20717
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":260
 
22747
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":263
20718
22748
 *             (cetree.namespacedNameFromNsName(c_href, c_name), root.tag)
20719
22749
 * 
20720
22750
 *     while c_path_len > 1:             # <<<<<<<<<<<<<<
20722
22752
 *         c_path = c_path + 1
20723
22753
 */
20724
22754
  while (1) {
20725
 
    __pyx_1 = (__pyx_v_c_path_len > 1);
20726
 
    if (!__pyx_1) break;
 
22755
    __pyx_t_1 = (__pyx_v_c_path_len > 1);
 
22756
    if (!__pyx_t_1) break;
20727
22757
 
20728
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":261
 
22758
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":264
20729
22759
 * 
20730
22760
 *     while c_path_len > 1:
20731
22761
 *         c_path_len = c_path_len - 1             # <<<<<<<<<<<<<<
20734
22764
 */
20735
22765
    __pyx_v_c_path_len = (__pyx_v_c_path_len - 1);
20736
22766
 
20737
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":262
 
22767
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":265
20738
22768
 *     while c_path_len > 1:
20739
22769
 *         c_path_len = c_path_len - 1
20740
22770
 *         c_path = c_path + 1             # <<<<<<<<<<<<<<
20743
22773
 */
20744
22774
    __pyx_v_c_path = (__pyx_v_c_path + 1);
20745
22775
 
20746
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":263
 
22776
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":266
20747
22777
 *         c_path_len = c_path_len - 1
20748
22778
 *         c_path = c_path + 1
20749
22779
 *         if c_path[0].href is not NULL:             # <<<<<<<<<<<<<<
20750
22780
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20751
22781
 *         c_index = c_path[0].index
20752
22782
 */
20753
 
    __pyx_1 = ((__pyx_v_c_path[0]).href != NULL);
20754
 
    if (__pyx_1) {
 
22783
    __pyx_t_1 = ((__pyx_v_c_path[0]).href != NULL);
 
22784
    if (__pyx_t_1) {
20755
22785
 
20756
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":264
 
22786
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":267
20757
22787
 *         c_path = c_path + 1
20758
22788
 *         if c_path[0].href is not NULL:
20759
22789
 *             c_href = c_path[0].href # otherwise: keep parent namespace             # <<<<<<<<<<<<<<
20765
22795
    }
20766
22796
    __pyx_L8:;
20767
22797
 
20768
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":265
 
22798
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":268
20769
22799
 *         if c_path[0].href is not NULL:
20770
22800
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20771
22801
 *         c_index = c_path[0].index             # <<<<<<<<<<<<<<
20774
22804
 */
20775
22805
    __pyx_v_c_index = (__pyx_v_c_path[0]).index;
20776
22806
 
20777
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":266
 
22807
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":269
20778
22808
 *             c_href = c_path[0].href # otherwise: keep parent namespace
20779
22809
 *         c_index = c_path[0].index
20780
22810
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)             # <<<<<<<<<<<<<<
20783
22813
 */
20784
22814
    __pyx_v_c_name = xmlDictExists(__pyx_v_c_node->doc->dict, (__pyx_v_c_path[0]).name, -1);
20785
22815
 
20786
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":267
 
22816
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":270
20787
22817
 *         c_index = c_path[0].index
20788
22818
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
20789
22819
 *         if c_name is NULL:             # <<<<<<<<<<<<<<
20790
22820
 *             c_name = c_path[0].name
20791
22821
 *             c_child = NULL
20792
22822
 */
20793
 
    __pyx_1 = (__pyx_v_c_name == NULL);
20794
 
    if (__pyx_1) {
 
22823
    __pyx_t_1 = (__pyx_v_c_name == NULL);
 
22824
    if (__pyx_t_1) {
20795
22825
 
20796
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":268
 
22826
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":271
20797
22827
 *         c_name = tree.xmlDictExists(c_node.doc.dict, c_path[0].name, -1)
20798
22828
 *         if c_name is NULL:
20799
22829
 *             c_name = c_path[0].name             # <<<<<<<<<<<<<<
20802
22832
 */
20803
22833
      __pyx_v_c_name = (__pyx_v_c_path[0]).name;
20804
22834
 
20805
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":269
 
22835
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":272
20806
22836
 *         if c_name is NULL:
20807
22837
 *             c_name = c_path[0].name
20808
22838
 *             c_child = NULL             # <<<<<<<<<<<<<<
20814
22844
    }
20815
22845
    /*else*/ {
20816
22846
 
20817
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":271
 
22847
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":274
20818
22848
 *             c_child = NULL
20819
22849
 *         else:
20820
22850
 *             if c_index < 0:             # <<<<<<<<<<<<<<
20821
22851
 *                 c_child = c_node.last
20822
22852
 *             else:
20823
22853
 */
20824
 
      __pyx_1 = (__pyx_v_c_index < 0);
20825
 
      if (__pyx_1) {
 
22854
      __pyx_t_1 = (__pyx_v_c_index < 0);
 
22855
      if (__pyx_t_1) {
20826
22856
 
20827
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":272
 
22857
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":275
20828
22858
 *         else:
20829
22859
 *             if c_index < 0:
20830
22860
 *                 c_child = c_node.last             # <<<<<<<<<<<<<<
20836
22866
      }
20837
22867
      /*else*/ {
20838
22868
 
20839
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":274
 
22869
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":277
20840
22870
 *                 c_child = c_node.last
20841
22871
 *             else:
20842
22872
 *                 c_child = c_node.children             # <<<<<<<<<<<<<<
20847
22877
      }
20848
22878
      __pyx_L10:;
20849
22879
 
20850
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":275
 
22880
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":278
20851
22881
 *             else:
20852
22882
 *                 c_child = c_node.children
20853
22883
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)             # <<<<<<<<<<<<<<
20858
22888
    }
20859
22889
    __pyx_L9:;
20860
22890
 
20861
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":277
 
22891
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":280
20862
22892
 *             c_child = _findFollowingSibling(c_child, c_href, c_name, c_index)
20863
22893
 * 
20864
22894
 *         if c_child is not NULL:             # <<<<<<<<<<<<<<
20865
22895
 *             c_node = c_child
20866
22896
 *         elif c_index != 0:
20867
22897
 */
20868
 
    __pyx_1 = (__pyx_v_c_child != NULL);
20869
 
    if (__pyx_1) {
 
22898
    __pyx_t_1 = (__pyx_v_c_child != NULL);
 
22899
    if (__pyx_t_1) {
20870
22900
 
20871
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":278
 
22901
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":281
20872
22902
 * 
20873
22903
 *         if c_child is not NULL:
20874
22904
 *             c_node = c_child             # <<<<<<<<<<<<<<
20879
22909
      goto __pyx_L11;
20880
22910
    }
20881
22911
 
20882
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":279
 
22912
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":282
20883
22913
 *         if c_child is not NULL:
20884
22914
 *             c_node = c_child
20885
22915
 *         elif c_index != 0:             # <<<<<<<<<<<<<<
20886
22916
 *             raise TypeError, \
20887
22917
 *                 u"creating indexed path attributes is not supported"
20888
22918
 */
20889
 
    __pyx_1 = (__pyx_v_c_index != 0);
20890
 
    if (__pyx_1) {
 
22919
    __pyx_t_1 = (__pyx_v_c_index != 0);
 
22920
    if (__pyx_t_1) {
20891
22921
 
20892
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":281
 
22922
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":284
20893
22923
 *         elif c_index != 0:
20894
22924
 *             raise TypeError, \
20895
22925
 *                 u"creating indexed path attributes is not supported"             # <<<<<<<<<<<<<<
20896
22926
 *         elif c_path_len == 1:
20897
22927
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
20898
22928
 */
20899
 
      __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_826), 0);
20900
 
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22929
      __Pyx_Raise(__pyx_builtin_TypeError, ((PyObject *)__pyx_kp_889), 0);
 
22930
      {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20901
22931
      goto __pyx_L11;
20902
22932
    }
20903
22933
 
20904
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":282
 
22934
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":285
20905
22935
 *             raise TypeError, \
20906
22936
 *                 u"creating indexed path attributes is not supported"
20907
22937
 *         elif c_path_len == 1:             # <<<<<<<<<<<<<<
20908
22938
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
20909
22939
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
20910
22940
 */
20911
 
    __pyx_1 = (__pyx_v_c_path_len == 1);
20912
 
    if (__pyx_1) {
 
22941
    __pyx_t_1 = (__pyx_v_c_path_len == 1);
 
22942
    if (__pyx_t_1) {
20913
22943
 
20914
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":283
 
22944
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":286
20915
22945
 *                 u"creating indexed path attributes is not supported"
20916
22946
 *         elif c_path_len == 1:
20917
22947
 *             _appendValue(cetree.elementFactory(root._doc, c_node),             # <<<<<<<<<<<<<<
20918
22948
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
20919
22949
 *                          value)
20920
22950
 */
20921
 
      __pyx_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22951
      __pyx_t_3 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22952
      __Pyx_GOTREF(__pyx_t_3);
20922
22953
 
20923
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":284
 
22954
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":287
20924
22955
 *         elif c_path_len == 1:
20925
22956
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
20926
22957
 *                          cetree.namespacedNameFromNsName(c_href, c_name),             # <<<<<<<<<<<<<<
20927
22958
 *                          value)
20928
22959
 *             return
20929
22960
 */
20930
 
      __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22961
      __pyx_t_4 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22962
      __Pyx_GOTREF(__pyx_t_4);
20931
22963
 
20932
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":285
 
22964
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":288
20933
22965
 *             _appendValue(cetree.elementFactory(root._doc, c_node),
20934
22966
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
20935
22967
 *                          value)             # <<<<<<<<<<<<<<
20936
22968
 *             return
20937
22969
 *         else:
20938
22970
 */
20939
 
      __pyx_4 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_2), __pyx_3, __pyx_v_value); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20940
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
20941
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
20942
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
 
22971
      __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_t_3), __pyx_t_4, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22972
      __Pyx_GOTREF(__pyx_t_2);
 
22973
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
22974
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
22975
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
20943
22976
 
20944
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":286
 
22977
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":289
20945
22978
 *                          cetree.namespacedNameFromNsName(c_href, c_name),
20946
22979
 *                          value)
20947
22980
 *             return             # <<<<<<<<<<<<<<
20948
22981
 *         else:
20949
22982
 *             child = cetree.makeSubElement(
20950
22983
 */
20951
 
      __pyx_r = Py_None; Py_INCREF(Py_None);
 
22984
      __Pyx_XDECREF(__pyx_r);
 
22985
      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20952
22986
      goto __pyx_L0;
20953
22987
      goto __pyx_L11;
20954
22988
    }
20955
22989
    /*else*/ {
20956
22990
 
20957
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":289
 
22991
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":292
20958
22992
 *         else:
20959
22993
 *             child = cetree.makeSubElement(
20960
22994
 *                 cetree.elementFactory(root._doc, c_node),             # <<<<<<<<<<<<<<
20961
22995
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
20962
22996
 *                 None, None, None, None)
20963
22997
 */
20964
 
      __pyx_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22998
      __pyx_t_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
22999
      __Pyx_GOTREF(__pyx_t_2);
20965
23000
 
20966
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":290
 
23001
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":293
20967
23002
 *             child = cetree.makeSubElement(
20968
23003
 *                 cetree.elementFactory(root._doc, c_node),
20969
23004
 *                 cetree.namespacedNameFromNsName(c_href, c_name),             # <<<<<<<<<<<<<<
20970
23005
 *                 None, None, None, None)
20971
23006
 *             c_node = child._c_node
20972
23007
 */
20973
 
      __pyx_3 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23008
      __pyx_t_4 = namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23009
      __Pyx_GOTREF(__pyx_t_4);
20974
23010
 
20975
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":291
 
23011
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":294
20976
23012
 *                 cetree.elementFactory(root._doc, c_node),
20977
23013
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
20978
23014
 *                 None, None, None, None)             # <<<<<<<<<<<<<<
20979
23015
 *             c_node = child._c_node
20980
23016
 * 
20981
23017
 */
20982
 
      __pyx_4 = ((PyObject *)makeSubElement(((struct LxmlElement *)__pyx_2), __pyx_3, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20983
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
20984
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
20985
 
      Py_DECREF(((PyObject *)__pyx_v_child));
20986
 
      __pyx_v_child = ((struct LxmlElement *)__pyx_4);
20987
 
      __pyx_4 = 0;
 
23018
      __pyx_t_3 = ((PyObject *)makeSubElement(((struct LxmlElement *)__pyx_t_2), __pyx_t_4, Py_None, Py_None, Py_None, Py_None)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23019
      __Pyx_GOTREF(__pyx_t_3);
 
23020
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
23021
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
23022
      __Pyx_DECREF(((PyObject *)__pyx_v_child));
 
23023
      __pyx_v_child = ((struct LxmlElement *)__pyx_t_3);
 
23024
      __pyx_t_3 = 0;
20988
23025
 
20989
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":292
 
23026
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":295
20990
23027
 *                 cetree.namespacedNameFromNsName(c_href, c_name),
20991
23028
 *                 None, None, None, None)
20992
23029
 *             c_node = child._c_node             # <<<<<<<<<<<<<<
20998
23035
    __pyx_L11:;
20999
23036
  }
21000
23037
 
21001
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":295
 
23038
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":298
21002
23039
 * 
21003
23040
 *     # if we get here, the entire path was already there
21004
23041
 *     if replace:             # <<<<<<<<<<<<<<
21005
23042
 *         element = cetree.elementFactory(root._doc, c_node)
21006
23043
 *         _replaceElement(element, value)
21007
23044
 */
21008
 
  __pyx_5 = __pyx_v_replace;
21009
 
  if (__pyx_5) {
 
23045
  __pyx_t_5 = __pyx_v_replace;
 
23046
  if (__pyx_t_5) {
21010
23047
 
21011
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":296
 
23048
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":299
21012
23049
 *     # if we get here, the entire path was already there
21013
23050
 *     if replace:
21014
23051
 *         element = cetree.elementFactory(root._doc, c_node)             # <<<<<<<<<<<<<<
21015
23052
 *         _replaceElement(element, value)
21016
23053
 *     else:
21017
23054
 */
21018
 
    __pyx_2 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21019
 
    Py_DECREF(__pyx_v_element);
21020
 
    __pyx_v_element = __pyx_2;
21021
 
    __pyx_2 = 0;
 
23055
    __pyx_t_3 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23056
    __Pyx_GOTREF(__pyx_t_3);
 
23057
    __Pyx_DECREF(__pyx_v_element);
 
23058
    __pyx_v_element = __pyx_t_3;
 
23059
    __pyx_t_3 = 0;
21022
23060
 
21023
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":297
 
23061
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":300
21024
23062
 *     if replace:
21025
23063
 *         element = cetree.elementFactory(root._doc, c_node)
21026
23064
 *         _replaceElement(element, value)             # <<<<<<<<<<<<<<
21027
23065
 *     else:
21028
23066
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),
21029
23067
 */
21030
 
    if (!(__Pyx_TypeTest(__pyx_v_element, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21031
 
    __pyx_3 = __pyx_f_4lxml_9objectify__replaceElement(((struct LxmlElement *)__pyx_v_element), __pyx_v_value); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21032
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
 
23068
    if (!(__Pyx_TypeTest(__pyx_v_element, __pyx_ptype_4lxml_11etreepublic__Element))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23069
    __pyx_t_3 = __pyx_f_4lxml_9objectify__replaceElement(((struct LxmlElement *)__pyx_v_element), __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23070
    __Pyx_GOTREF(__pyx_t_3);
 
23071
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21033
23072
    goto __pyx_L12;
21034
23073
  }
21035
23074
  /*else*/ {
21036
23075
 
21037
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":299
 
23076
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":302
21038
23077
 *         _replaceElement(element, value)
21039
23078
 *     else:
21040
23079
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),             # <<<<<<<<<<<<<<
21041
23080
 *                      cetree.namespacedName(c_node), value)
21042
23081
 * 
21043
23082
 */
21044
 
    __pyx_4 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node->parent)); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23083
    __pyx_t_3 = ((PyObject *)elementFactory(__pyx_v_root->_doc, __pyx_v_c_node->parent)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23084
    __Pyx_GOTREF(__pyx_t_3);
21045
23085
 
21046
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":300
 
23086
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":303
21047
23087
 *     else:
21048
23088
 *         _appendValue(cetree.elementFactory(root._doc, c_node.parent),
21049
23089
 *                      cetree.namespacedName(c_node), value)             # <<<<<<<<<<<<<<
21050
23090
 * 
21051
 
 * cdef _buildDescendantPaths(tree.xmlNode* c_node, prefix_string):
 
23091
 * cdef list _buildDescendantPaths(tree.xmlNode* c_node, prefix_string):
21052
23092
 */
21053
 
    __pyx_2 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21054
 
    __pyx_3 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_4), __pyx_2, __pyx_v_value); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21055
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
21056
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
21057
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
 
23093
    __pyx_t_4 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23094
    __Pyx_GOTREF(__pyx_t_4);
 
23095
    __pyx_t_2 = __pyx_f_4lxml_9objectify__appendValue(((struct LxmlElement *)__pyx_t_3), __pyx_t_4, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23096
    __Pyx_GOTREF(__pyx_t_2);
 
23097
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
23098
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
23099
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
21058
23100
  }
21059
23101
  __pyx_L12:;
21060
23102
 
21061
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
23103
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
21062
23104
  goto __pyx_L0;
21063
23105
  __pyx_L1_error:;
21064
 
  Py_XDECREF(__pyx_2);
21065
 
  Py_XDECREF(__pyx_3);
21066
 
  Py_XDECREF(__pyx_4);
 
23106
  __Pyx_XDECREF(__pyx_t_2);
 
23107
  __Pyx_XDECREF(__pyx_t_3);
 
23108
  __Pyx_XDECREF(__pyx_t_4);
21067
23109
  __Pyx_AddTraceback("lxml.objectify._createObjectPath");
21068
23110
  __pyx_r = 0;
21069
23111
  __pyx_L0:;
21070
 
  Py_DECREF(__pyx_v_child);
21071
 
  Py_DECREF(__pyx_v_element);
 
23112
  __Pyx_DECREF((PyObject *)__pyx_v_child);
 
23113
  __Pyx_DECREF(__pyx_v_element);
 
23114
  __Pyx_XGIVEREF(__pyx_r);
 
23115
  __Pyx_FinishRefcountContext();
21072
23116
  return __pyx_r;
21073
23117
}
21074
23118
 
21075
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":302
 
23119
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":305
21076
23120
 *                      cetree.namespacedName(c_node), value)
21077
23121
 * 
21078
 
 * cdef _buildDescendantPaths(tree.xmlNode* c_node, prefix_string):             # <<<<<<<<<<<<<<
 
23122
 * cdef list _buildDescendantPaths(tree.xmlNode* c_node, prefix_string):             # <<<<<<<<<<<<<<
21079
23123
 *     u"""Returns a list of all descendant paths.
21080
23124
 *     """
21081
23125
 */
21082
23126
 
21083
23127
static  PyObject *__pyx_f_4lxml_9objectify__buildDescendantPaths(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_prefix_string) {
21084
 
  PyObject *__pyx_v_tag;
21085
23128
  PyObject *__pyx_v_path;
21086
23129
  PyObject *__pyx_v_path_list;
21087
 
  PyObject *__pyx_r;
 
23130
  PyObject *__pyx_v_tag;
 
23131
  PyObject *__pyx_r = NULL;
21088
23132
  PyObject *__pyx_1 = 0;
21089
 
  int __pyx_2;
21090
 
  PyObject *__pyx_3 = 0;
21091
23133
  PyObject *__pyx_t_1 = NULL;
21092
 
  Py_INCREF(__pyx_v_prefix_string);
21093
 
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
21094
 
  __pyx_v_path = Py_None; Py_INCREF(Py_None);
21095
 
  __pyx_v_path_list = Py_None; Py_INCREF(Py_None);
 
23134
  int __pyx_t_2;
 
23135
  int __pyx_t_3;
 
23136
  __Pyx_SetupRefcountContext("_buildDescendantPaths");
 
23137
  __Pyx_INCREF(__pyx_v_prefix_string);
 
23138
  __pyx_v_path = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
 
23139
  __pyx_v_path_list = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
 
23140
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
21096
23141
 
21097
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":305
21098
 
 *     u"""Returns a list of all descendant paths.
 
23142
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":309
21099
23143
 *     """
 
23144
 *     cdef list path, path_list
21100
23145
 *     tag = cetree.namespacedName(c_node)             # <<<<<<<<<<<<<<
21101
23146
 *     if prefix_string:
21102
23147
 *         if prefix_string[-1] != u'.':
21103
23148
 */
21104
 
  __pyx_1 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21105
 
  Py_DECREF(__pyx_v_tag);
21106
 
  __pyx_v_tag = __pyx_1;
21107
 
  __pyx_1 = 0;
 
23149
  __pyx_t_1 = namespacedName(__pyx_v_c_node); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23150
  __Pyx_GOTREF(__pyx_t_1);
 
23151
  __Pyx_DECREF(__pyx_v_tag);
 
23152
  __pyx_v_tag = __pyx_t_1;
 
23153
  __pyx_t_1 = 0;
21108
23154
 
21109
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":306
21110
 
 *     """
 
23155
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":310
 
23156
 *     cdef list path, path_list
21111
23157
 *     tag = cetree.namespacedName(c_node)
21112
23158
 *     if prefix_string:             # <<<<<<<<<<<<<<
21113
23159
 *         if prefix_string[-1] != u'.':
21114
23160
 *             prefix_string = prefix_string + u'.'
21115
23161
 */
21116
 
  __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_v_prefix_string); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21117
 
  if (__pyx_2) {
 
23162
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_prefix_string); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23163
  if (__pyx_t_2) {
21118
23164
 
21119
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":307
 
23165
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":311
21120
23166
 *     tag = cetree.namespacedName(c_node)
21121
23167
 *     if prefix_string:
21122
23168
 *         if prefix_string[-1] != u'.':             # <<<<<<<<<<<<<<
21123
23169
 *             prefix_string = prefix_string + u'.'
21124
23170
 *         prefix_string = prefix_string + tag
21125
23171
 */
21126
 
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_prefix_string, -1, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21127
 
    __pyx_3 = PyObject_RichCompare(__pyx_1, ((PyObject *)__pyx_kp_827), Py_NE); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21128
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
21129
 
    __pyx_2 = __Pyx_PyObject_IsTrue(__pyx_3); if (unlikely(__pyx_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21130
 
    Py_DECREF(__pyx_3); __pyx_3 = 0;
21131
 
    if (__pyx_2) {
 
23172
    __pyx_1 = __Pyx_GetItemInt(__pyx_v_prefix_string, -1, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23173
    __Pyx_GOTREF(__pyx_1);
 
23174
    __pyx_t_1 = PyObject_RichCompare(__pyx_1, ((PyObject *)__pyx_kp_890), Py_NE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23175
    __Pyx_GOTREF(__pyx_t_1);
 
23176
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
23177
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23178
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
23179
    if (__pyx_t_2) {
21132
23180
 
21133
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":308
 
23181
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":312
21134
23182
 *     if prefix_string:
21135
23183
 *         if prefix_string[-1] != u'.':
21136
23184
 *             prefix_string = prefix_string + u'.'             # <<<<<<<<<<<<<<
21137
23185
 *         prefix_string = prefix_string + tag
21138
23186
 *     else:
21139
23187
 */
21140
 
      __pyx_t_1 = PyNumber_Add(__pyx_v_prefix_string, ((PyObject *)__pyx_kp_828)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21141
 
      Py_DECREF(__pyx_v_prefix_string);
 
23188
      __pyx_t_1 = PyNumber_Add(__pyx_v_prefix_string, ((PyObject *)__pyx_kp_891)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23189
      __Pyx_GOTREF(__pyx_t_1);
 
23190
      __Pyx_DECREF(__pyx_v_prefix_string);
21142
23191
      __pyx_v_prefix_string = __pyx_t_1;
21143
23192
      __pyx_t_1 = 0;
21144
23193
      goto __pyx_L4;
21145
23194
    }
21146
23195
    __pyx_L4:;
21147
23196
 
21148
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":309
 
23197
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":313
21149
23198
 *         if prefix_string[-1] != u'.':
21150
23199
 *             prefix_string = prefix_string + u'.'
21151
23200
 *         prefix_string = prefix_string + tag             # <<<<<<<<<<<<<<
21152
23201
 *     else:
21153
23202
 *         prefix_string = tag
21154
23203
 */
21155
 
    __pyx_t_1 = PyNumber_Add(__pyx_v_prefix_string, __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21156
 
    Py_DECREF(__pyx_v_prefix_string);
 
23204
    __pyx_t_1 = PyNumber_Add(__pyx_v_prefix_string, __pyx_v_tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23205
    __Pyx_GOTREF(__pyx_t_1);
 
23206
    __Pyx_DECREF(__pyx_v_prefix_string);
21157
23207
    __pyx_v_prefix_string = __pyx_t_1;
21158
23208
    __pyx_t_1 = 0;
21159
23209
    goto __pyx_L3;
21160
23210
  }
21161
23211
  /*else*/ {
21162
23212
 
21163
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":311
 
23213
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":315
21164
23214
 *         prefix_string = prefix_string + tag
21165
23215
 *     else:
21166
23216
 *         prefix_string = tag             # <<<<<<<<<<<<<<
21167
23217
 *     path = [prefix_string]
21168
23218
 *     path_list = []
21169
23219
 */
21170
 
    Py_INCREF(__pyx_v_tag);
21171
 
    Py_DECREF(__pyx_v_prefix_string);
 
23220
    __Pyx_INCREF(__pyx_v_tag);
 
23221
    __Pyx_DECREF(__pyx_v_prefix_string);
21172
23222
    __pyx_v_prefix_string = __pyx_v_tag;
21173
23223
  }
21174
23224
  __pyx_L3:;
21175
23225
 
21176
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":312
 
23226
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":316
21177
23227
 *     else:
21178
23228
 *         prefix_string = tag
21179
23229
 *     path = [prefix_string]             # <<<<<<<<<<<<<<
21180
23230
 *     path_list = []
21181
23231
 *     _recursiveBuildDescendantPaths(c_node, path, path_list)
21182
23232
 */
21183
 
  __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21184
 
  Py_INCREF(__pyx_v_prefix_string);
21185
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_v_prefix_string);
21186
 
  Py_DECREF(__pyx_v_path);
21187
 
  __pyx_v_path = ((PyObject *)__pyx_1);
21188
 
  __pyx_1 = 0;
 
23233
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23234
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
23235
  __Pyx_INCREF(__pyx_v_prefix_string);
 
23236
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_v_prefix_string);
 
23237
  __Pyx_GIVEREF(__pyx_v_prefix_string);
 
23238
  __Pyx_DECREF(((PyObject *)__pyx_v_path));
 
23239
  __pyx_v_path = __pyx_t_1;
 
23240
  __pyx_t_1 = 0;
21189
23241
 
21190
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":313
 
23242
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":317
21191
23243
 *         prefix_string = tag
21192
23244
 *     path = [prefix_string]
21193
23245
 *     path_list = []             # <<<<<<<<<<<<<<
21194
23246
 *     _recursiveBuildDescendantPaths(c_node, path, path_list)
21195
23247
 *     return path_list
21196
23248
 */
21197
 
  __pyx_3 = PyList_New(0); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21198
 
  Py_DECREF(__pyx_v_path_list);
21199
 
  __pyx_v_path_list = ((PyObject *)__pyx_3);
21200
 
  __pyx_3 = 0;
 
23249
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23250
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
23251
  __Pyx_DECREF(((PyObject *)__pyx_v_path_list));
 
23252
  __pyx_v_path_list = __pyx_t_1;
 
23253
  __pyx_t_1 = 0;
21201
23254
 
21202
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":314
 
23255
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":318
21203
23256
 *     path = [prefix_string]
21204
23257
 *     path_list = []
21205
23258
 *     _recursiveBuildDescendantPaths(c_node, path, path_list)             # <<<<<<<<<<<<<<
21206
23259
 *     return path_list
21207
23260
 * 
21208
23261
 */
21209
 
  __pyx_1 = __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_node, __pyx_v_path, __pyx_v_path_list); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21210
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
 
23262
  __pyx_t_3 = __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_node, __pyx_v_path, __pyx_v_path_list); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21211
23263
 
21212
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":315
 
23264
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":319
21213
23265
 *     path_list = []
21214
23266
 *     _recursiveBuildDescendantPaths(c_node, path, path_list)
21215
23267
 *     return path_list             # <<<<<<<<<<<<<<
21216
23268
 * 
21217
 
 * cdef _recursiveBuildDescendantPaths(tree.xmlNode* c_node, path, path_list):
 
23269
 * cdef int _recursiveBuildDescendantPaths(tree.xmlNode* c_node,
21218
23270
 */
21219
 
  Py_INCREF(__pyx_v_path_list);
 
23271
  __Pyx_XDECREF(((PyObject *)__pyx_r));
 
23272
  __Pyx_INCREF(((PyObject *)__pyx_v_path_list));
21220
23273
  __pyx_r = __pyx_v_path_list;
21221
23274
  goto __pyx_L0;
21222
23275
 
21223
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
23276
  __pyx_r = ((PyObject *)Py_None); __Pyx_INCREF(Py_None);
21224
23277
  goto __pyx_L0;
21225
23278
  __pyx_L1_error:;
21226
 
  Py_XDECREF(__pyx_1);
21227
 
  Py_XDECREF(__pyx_3);
 
23279
  __Pyx_XDECREF(__pyx_1);
 
23280
  __Pyx_XDECREF(__pyx_t_1);
21228
23281
  __Pyx_AddTraceback("lxml.objectify._buildDescendantPaths");
21229
23282
  __pyx_r = 0;
21230
23283
  __pyx_L0:;
21231
 
  Py_DECREF(__pyx_v_tag);
21232
 
  Py_DECREF(__pyx_v_path);
21233
 
  Py_DECREF(__pyx_v_path_list);
21234
 
  Py_DECREF(__pyx_v_prefix_string);
 
23284
  __Pyx_DECREF(__pyx_v_path);
 
23285
  __Pyx_DECREF(__pyx_v_path_list);
 
23286
  __Pyx_DECREF(__pyx_v_tag);
 
23287
  __Pyx_DECREF(__pyx_v_prefix_string);
 
23288
  __Pyx_XGIVEREF(__pyx_r);
 
23289
  __Pyx_FinishRefcountContext();
21235
23290
  return __pyx_r;
21236
23291
}
21237
23292
 
21238
 
/* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":317
 
23293
/* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":321
21239
23294
 *     return path_list
21240
23295
 * 
21241
 
 * cdef _recursiveBuildDescendantPaths(tree.xmlNode* c_node, path, path_list):             # <<<<<<<<<<<<<<
 
23296
 * cdef int _recursiveBuildDescendantPaths(tree.xmlNode* c_node,             # <<<<<<<<<<<<<<
 
23297
 *                                         list path, list path_list) except -1:
21242
23298
 *     u"""Fills the list 'path_list' with all descendant paths, initial prefix
21243
 
 *     being in the list 'path'.
21244
23299
 */
21245
23300
 
21246
 
static  PyObject *__pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_path, PyObject *__pyx_v_path_list) {
 
23301
static  int __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_path, PyObject *__pyx_v_path_list) {
21247
23302
  PyObject *__pyx_v_dict_result;
21248
23303
  xmlNode *__pyx_v_c_child;
21249
23304
  char *__pyx_v_c_href;
21250
 
  PyObject *__pyx_v_tags;
 
23305
  PyObject *__pyx_v_tags = 0;
21251
23306
  PyObject *__pyx_v_tag;
21252
23307
  PyObject *__pyx_v_count;
21253
 
  PyObject *__pyx_r;
 
23308
  int __pyx_r;
21254
23309
  PyObject *__pyx_1 = 0;
21255
 
  PyObject *__pyx_2 = 0;
21256
 
  PyObject *__pyx_3 = 0;
21257
 
  int __pyx_4;
21258
 
  int __pyx_5;
21259
23310
  PyObject *__pyx_t_1 = NULL;
21260
 
  __pyx_v_tags = Py_None; Py_INCREF(Py_None);
21261
 
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
21262
 
  __pyx_v_count = Py_None; Py_INCREF(Py_None);
 
23311
  PyObject *__pyx_t_2 = NULL;
 
23312
  PyObject *__pyx_t_3 = NULL;
 
23313
  int __pyx_t_4;
 
23314
  int __pyx_t_5;
 
23315
  __Pyx_SetupRefcountContext("_recursiveBuildDescendantPaths");
 
23316
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
 
23317
  __pyx_v_count = Py_None; __Pyx_INCREF(Py_None);
21263
23318
 
21264
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":324
 
23319
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":329
21265
23320
 *     cdef tree.xmlNode* c_child
21266
23321
 *     cdef char* c_href
21267
 
 *     python.PyList_Append(path_list, u'.'.join(path))             # <<<<<<<<<<<<<<
21268
 
 *     tags = {}
 
23322
 *     cdef dict tags = {}             # <<<<<<<<<<<<<<
 
23323
 *     path_list.append( u'.'.join(path) )
21269
23324
 *     c_href = tree._getNs(c_node)
21270
23325
 */
21271
 
  __pyx_1 = PyObject_GetAttr(((PyObject *)__pyx_kp_829), __pyx_kp_join); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21272
 
  __pyx_2 = PyTuple_New(1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21273
 
  Py_INCREF(__pyx_v_path);
21274
 
  PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_path);
21275
 
  __pyx_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_2), NULL); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21276
 
  Py_DECREF(__pyx_1); __pyx_1 = 0;
21277
 
  Py_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
21278
 
  __pyx_4 = PyList_Append(__pyx_v_path_list, __pyx_3); if (unlikely(__pyx_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 324; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21279
 
  Py_DECREF(__pyx_3); __pyx_3 = 0;
 
23326
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23327
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
23328
  __pyx_v_tags = __pyx_1;
 
23329
  __pyx_1 = 0;
21280
23330
 
21281
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":325
 
23331
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":330
21282
23332
 *     cdef char* c_href
21283
 
 *     python.PyList_Append(path_list, u'.'.join(path))
21284
 
 *     tags = {}             # <<<<<<<<<<<<<<
 
23333
 *     cdef dict tags = {}
 
23334
 *     path_list.append( u'.'.join(path) )             # <<<<<<<<<<<<<<
21285
23335
 *     c_href = tree._getNs(c_node)
21286
23336
 *     c_child = c_node.children
21287
23337
 */
21288
 
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21289
 
  Py_DECREF(__pyx_v_tags);
21290
 
  __pyx_v_tags = ((PyObject *)__pyx_1);
21291
 
  __pyx_1 = 0;
 
23338
  __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_kp_892), __pyx_kp_join); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23339
  __Pyx_GOTREF(__pyx_t_1);
 
23340
  __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23341
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
 
23342
  __Pyx_INCREF(((PyObject *)__pyx_v_path));
 
23343
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_path));
 
23344
  __Pyx_GIVEREF(((PyObject *)__pyx_v_path));
 
23345
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23346
  __Pyx_GOTREF(__pyx_t_3);
 
23347
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
23348
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
 
23349
  __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_path_list), __pyx_t_3); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23350
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21292
23351
 
21293
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":326
21294
 
 *     python.PyList_Append(path_list, u'.'.join(path))
21295
 
 *     tags = {}
 
23352
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":331
 
23353
 *     cdef dict tags = {}
 
23354
 *     path_list.append( u'.'.join(path) )
21296
23355
 *     c_href = tree._getNs(c_node)             # <<<<<<<<<<<<<<
21297
23356
 *     c_child = c_node.children
21298
23357
 *     while c_child is not NULL:
21299
23358
 */
21300
23359
  __pyx_v_c_href = _getNs(__pyx_v_c_node);
21301
23360
 
21302
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":327
21303
 
 *     tags = {}
 
23361
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":332
 
23362
 *     path_list.append( u'.'.join(path) )
21304
23363
 *     c_href = tree._getNs(c_node)
21305
23364
 *     c_child = c_node.children             # <<<<<<<<<<<<<<
21306
23365
 *     while c_child is not NULL:
21308
23367
 */
21309
23368
  __pyx_v_c_child = __pyx_v_c_node->children;
21310
23369
 
21311
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":328
 
23370
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":333
21312
23371
 *     c_href = tree._getNs(c_node)
21313
23372
 *     c_child = c_node.children
21314
23373
 *     while c_child is not NULL:             # <<<<<<<<<<<<<<
21316
23375
 *             c_child = c_child.next
21317
23376
 */
21318
23377
  while (1) {
21319
 
    __pyx_5 = (__pyx_v_c_child != NULL);
21320
 
    if (!__pyx_5) break;
 
23378
    __pyx_t_5 = (__pyx_v_c_child != NULL);
 
23379
    if (!__pyx_t_5) break;
21321
23380
 
21322
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":329
 
23381
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":334
21323
23382
 *     c_child = c_node.children
21324
23383
 *     while c_child is not NULL:
21325
23384
 *         while c_child.type != tree.XML_ELEMENT_NODE:             # <<<<<<<<<<<<<<
21327
23386
 *             if c_child is NULL:
21328
23387
 */
21329
23388
    while (1) {
21330
 
      __pyx_5 = (__pyx_v_c_child->type != XML_ELEMENT_NODE);
21331
 
      if (!__pyx_5) break;
 
23389
      __pyx_t_5 = (__pyx_v_c_child->type != XML_ELEMENT_NODE);
 
23390
      if (!__pyx_t_5) break;
21332
23391
 
21333
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":330
 
23392
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":335
21334
23393
 *     while c_child is not NULL:
21335
23394
 *         while c_child.type != tree.XML_ELEMENT_NODE:
21336
23395
 *             c_child = c_child.next             # <<<<<<<<<<<<<<
21337
23396
 *             if c_child is NULL:
21338
 
 *                 return
 
23397
 *                 return 0
21339
23398
 */
21340
23399
      __pyx_v_c_child = __pyx_v_c_child->next;
21341
23400
 
21342
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":331
 
23401
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":336
21343
23402
 *         while c_child.type != tree.XML_ELEMENT_NODE:
21344
23403
 *             c_child = c_child.next
21345
23404
 *             if c_child is NULL:             # <<<<<<<<<<<<<<
21346
 
 *                 return
 
23405
 *                 return 0
21347
23406
 *         if c_href is tree._getNs(c_child):
21348
23407
 */
21349
 
      __pyx_5 = (__pyx_v_c_child == NULL);
21350
 
      if (__pyx_5) {
 
23408
      __pyx_t_5 = (__pyx_v_c_child == NULL);
 
23409
      if (__pyx_t_5) {
21351
23410
 
21352
 
        /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":332
 
23411
        /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":337
21353
23412
 *             c_child = c_child.next
21354
23413
 *             if c_child is NULL:
21355
 
 *                 return             # <<<<<<<<<<<<<<
 
23414
 *                 return 0             # <<<<<<<<<<<<<<
21356
23415
 *         if c_href is tree._getNs(c_child):
21357
23416
 *             tag = pyunicode(c_child.name)
21358
23417
 */
21359
 
        __pyx_r = Py_None; Py_INCREF(Py_None);
 
23418
        __pyx_r = 0;
21360
23419
        goto __pyx_L0;
21361
23420
        goto __pyx_L7;
21362
23421
      }
21363
23422
      __pyx_L7:;
21364
23423
    }
21365
23424
 
21366
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":333
 
23425
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":338
21367
23426
 *             if c_child is NULL:
21368
 
 *                 return
 
23427
 *                 return 0
21369
23428
 *         if c_href is tree._getNs(c_child):             # <<<<<<<<<<<<<<
21370
23429
 *             tag = pyunicode(c_child.name)
21371
23430
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
21372
23431
 */
21373
 
    __pyx_5 = (__pyx_v_c_href == _getNs(__pyx_v_c_child));
21374
 
    if (__pyx_5) {
 
23432
    __pyx_t_5 = (__pyx_v_c_href == _getNs(__pyx_v_c_child));
 
23433
    if (__pyx_t_5) {
21375
23434
 
21376
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":334
21377
 
 *                 return
 
23435
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":339
 
23436
 *                 return 0
21378
23437
 *         if c_href is tree._getNs(c_child):
21379
23438
 *             tag = pyunicode(c_child.name)             # <<<<<<<<<<<<<<
21380
23439
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
21381
23440
 *             # special case: parent has namespace, child does not
21382
23441
 */
21383
 
      __pyx_2 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21384
 
      Py_DECREF(__pyx_v_tag);
21385
 
      __pyx_v_tag = __pyx_2;
21386
 
      __pyx_2 = 0;
 
23442
      __pyx_t_3 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23443
      __Pyx_GOTREF(__pyx_t_3);
 
23444
      __Pyx_DECREF(__pyx_v_tag);
 
23445
      __pyx_v_tag = __pyx_t_3;
 
23446
      __pyx_t_3 = 0;
21387
23447
      goto __pyx_L8;
21388
23448
    }
21389
23449
 
21390
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":335
 
23450
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":340
21391
23451
 *         if c_href is tree._getNs(c_child):
21392
23452
 *             tag = pyunicode(c_child.name)
21393
23453
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:             # <<<<<<<<<<<<<<
21394
23454
 *             # special case: parent has namespace, child does not
21395
23455
 *             tag = u'{}' + pyunicode(c_child.name)
21396
23456
 */
21397
 
    __pyx_5 = (__pyx_v_c_href != NULL);
21398
 
    if (__pyx_5) {
21399
 
      __pyx_5 = (_getNs(__pyx_v_c_child) == NULL);
 
23457
    if ((__pyx_v_c_href != NULL)) {
 
23458
      __pyx_t_5 = (_getNs(__pyx_v_c_child) == NULL);
 
23459
    } else {
 
23460
      __pyx_t_5 = (__pyx_v_c_href != NULL);
21400
23461
    }
21401
 
    if (__pyx_5) {
 
23462
    if (__pyx_t_5) {
21402
23463
 
21403
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":337
 
23464
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":342
21404
23465
 *         elif c_href is not NULL and tree._getNs(c_child) is NULL:
21405
23466
 *             # special case: parent has namespace, child does not
21406
23467
 *             tag = u'{}' + pyunicode(c_child.name)             # <<<<<<<<<<<<<<
21407
23468
 *         else:
21408
23469
 *             tag = cetree.namespacedName(c_child)
21409
23470
 */
21410
 
      __pyx_3 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21411
 
      __pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_kp_830), __pyx_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21412
 
      Py_DECREF(__pyx_3); __pyx_3 = 0;
21413
 
      Py_DECREF(__pyx_v_tag);
21414
 
      __pyx_v_tag = __pyx_t_1;
21415
 
      __pyx_t_1 = 0;
 
23471
      __pyx_t_3 = pyunicode(__pyx_v_c_child->name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23472
      __Pyx_GOTREF(__pyx_t_3);
 
23473
      __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_kp_893), __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23474
      __Pyx_GOTREF(__pyx_t_2);
 
23475
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
23476
      __Pyx_DECREF(__pyx_v_tag);
 
23477
      __pyx_v_tag = __pyx_t_2;
 
23478
      __pyx_t_2 = 0;
21416
23479
      goto __pyx_L8;
21417
23480
    }
21418
23481
    /*else*/ {
21419
23482
 
21420
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":339
 
23483
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":344
21421
23484
 *             tag = u'{}' + pyunicode(c_child.name)
21422
23485
 *         else:
21423
23486
 *             tag = cetree.namespacedName(c_child)             # <<<<<<<<<<<<<<
21424
23487
 *         dict_result = python.PyDict_GetItem(tags, tag)
21425
23488
 *         if dict_result is NULL:
21426
23489
 */
21427
 
      __pyx_1 = namespacedName(__pyx_v_c_child); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21428
 
      Py_DECREF(__pyx_v_tag);
21429
 
      __pyx_v_tag = __pyx_1;
21430
 
      __pyx_1 = 0;
 
23490
      __pyx_t_2 = namespacedName(__pyx_v_c_child); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23491
      __Pyx_GOTREF(__pyx_t_2);
 
23492
      __Pyx_DECREF(__pyx_v_tag);
 
23493
      __pyx_v_tag = __pyx_t_2;
 
23494
      __pyx_t_2 = 0;
21431
23495
    }
21432
23496
    __pyx_L8:;
21433
23497
 
21434
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":340
 
23498
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":345
21435
23499
 *         else:
21436
23500
 *             tag = cetree.namespacedName(c_child)
21437
23501
 *         dict_result = python.PyDict_GetItem(tags, tag)             # <<<<<<<<<<<<<<
21438
23502
 *         if dict_result is NULL:
21439
23503
 *             count = 0
21440
23504
 */
21441
 
    __pyx_v_dict_result = PyDict_GetItem(__pyx_v_tags, __pyx_v_tag);
 
23505
    __pyx_v_dict_result = PyDict_GetItem(((PyObject *)__pyx_v_tags), __pyx_v_tag);
21442
23506
 
21443
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":341
 
23507
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":346
21444
23508
 *             tag = cetree.namespacedName(c_child)
21445
23509
 *         dict_result = python.PyDict_GetItem(tags, tag)
21446
23510
 *         if dict_result is NULL:             # <<<<<<<<<<<<<<
21447
23511
 *             count = 0
21448
23512
 *         else:
21449
23513
 */
21450
 
    __pyx_5 = (__pyx_v_dict_result == NULL);
21451
 
    if (__pyx_5) {
 
23514
    __pyx_t_5 = (__pyx_v_dict_result == NULL);
 
23515
    if (__pyx_t_5) {
21452
23516
 
21453
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":342
 
23517
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":347
21454
23518
 *         dict_result = python.PyDict_GetItem(tags, tag)
21455
23519
 *         if dict_result is NULL:
21456
23520
 *             count = 0             # <<<<<<<<<<<<<<
21457
23521
 *         else:
21458
23522
 *             count = (<object>dict_result) + 1
21459
23523
 */
21460
 
      Py_INCREF(__pyx_int_0);
21461
 
      Py_DECREF(__pyx_v_count);
 
23524
      __Pyx_INCREF(__pyx_int_0);
 
23525
      __Pyx_DECREF(__pyx_v_count);
21462
23526
      __pyx_v_count = __pyx_int_0;
21463
23527
      goto __pyx_L9;
21464
23528
    }
21465
23529
    /*else*/ {
21466
23530
 
21467
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":344
 
23531
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":349
21468
23532
 *             count = 0
21469
23533
 *         else:
21470
23534
 *             count = (<object>dict_result) + 1             # <<<<<<<<<<<<<<
21471
 
 *         python.PyDict_SetItem(tags, tag, count)
 
23535
 *         tags[tag] = count
21472
23536
 *         if count > 0:
21473
23537
 */
21474
 
      __pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_v_dict_result), __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21475
 
      Py_DECREF(__pyx_v_count);
21476
 
      __pyx_v_count = __pyx_t_1;
21477
 
      __pyx_t_1 = 0;
 
23538
      __pyx_t_2 = PyNumber_Add(((PyObject *)__pyx_v_dict_result), __pyx_int_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23539
      __Pyx_GOTREF(__pyx_t_2);
 
23540
      __Pyx_DECREF(__pyx_v_count);
 
23541
      __pyx_v_count = __pyx_t_2;
 
23542
      __pyx_t_2 = 0;
21478
23543
    }
21479
23544
    __pyx_L9:;
21480
23545
 
21481
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":345
 
23546
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":350
21482
23547
 *         else:
21483
23548
 *             count = (<object>dict_result) + 1
21484
 
 *         python.PyDict_SetItem(tags, tag, count)             # <<<<<<<<<<<<<<
 
23549
 *         tags[tag] = count             # <<<<<<<<<<<<<<
21485
23550
 *         if count > 0:
21486
23551
 *             tag += u'[%d]' % count
21487
23552
 */
21488
 
    __pyx_4 = PyDict_SetItem(__pyx_v_tags, __pyx_v_tag, __pyx_v_count); if (unlikely(__pyx_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23553
    if (PyDict_SetItem(((PyObject *)__pyx_v_tags), __pyx_v_tag, __pyx_v_count) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21489
23554
 
21490
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":346
 
23555
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":351
21491
23556
 *             count = (<object>dict_result) + 1
21492
 
 *         python.PyDict_SetItem(tags, tag, count)
 
23557
 *         tags[tag] = count
21493
23558
 *         if count > 0:             # <<<<<<<<<<<<<<
21494
23559
 *             tag += u'[%d]' % count
21495
 
 *         python.PyList_Append(path, tag)
 
23560
 *         path.append(tag)
21496
23561
 */
21497
 
    __pyx_2 = PyObject_RichCompare(__pyx_v_count, __pyx_int_0, Py_GT); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21498
 
    __pyx_5 = __Pyx_PyObject_IsTrue(__pyx_2); if (unlikely(__pyx_5 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21499
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
21500
 
    if (__pyx_5) {
 
23562
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_count, __pyx_int_0, Py_GT); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23563
    __Pyx_GOTREF(__pyx_t_2);
 
23564
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23565
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
23566
    if (__pyx_t_5) {
21501
23567
 
21502
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":347
21503
 
 *         python.PyDict_SetItem(tags, tag, count)
 
23568
      /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":352
 
23569
 *         tags[tag] = count
21504
23570
 *         if count > 0:
21505
23571
 *             tag += u'[%d]' % count             # <<<<<<<<<<<<<<
21506
 
 *         python.PyList_Append(path, tag)
 
23572
 *         path.append(tag)
21507
23573
 *         _recursiveBuildDescendantPaths(c_child, path, path_list)
21508
23574
 */
21509
 
      __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_831), __pyx_v_count); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21510
 
      __pyx_3 = PyNumber_InPlaceAdd(__pyx_v_tag, __pyx_t_1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21511
 
      Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
21512
 
      Py_DECREF(__pyx_v_tag);
21513
 
      __pyx_v_tag = __pyx_3;
21514
 
      __pyx_3 = 0;
 
23575
      __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_894), __pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23576
      __Pyx_GOTREF(__pyx_t_2);
 
23577
      __pyx_1 = PyNumber_InPlaceAdd(__pyx_v_tag, __pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23578
      __Pyx_GOTREF(__pyx_1);
 
23579
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
 
23580
      __Pyx_DECREF(__pyx_v_tag);
 
23581
      __pyx_v_tag = __pyx_1;
 
23582
      __pyx_1 = 0;
21515
23583
      goto __pyx_L10;
21516
23584
    }
21517
23585
    __pyx_L10:;
21518
23586
 
21519
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":348
 
23587
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":353
21520
23588
 *         if count > 0:
21521
23589
 *             tag += u'[%d]' % count
21522
 
 *         python.PyList_Append(path, tag)             # <<<<<<<<<<<<<<
 
23590
 *         path.append(tag)             # <<<<<<<<<<<<<<
21523
23591
 *         _recursiveBuildDescendantPaths(c_child, path, path_list)
21524
23592
 *         del path[-1]
21525
23593
 */
21526
 
    __pyx_4 = PyList_Append(__pyx_v_path, __pyx_v_tag); if (unlikely(__pyx_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23594
    __pyx_t_4 = PyList_Append(((PyObject *)__pyx_v_path), __pyx_v_tag); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21527
23595
 
21528
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":349
 
23596
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":354
21529
23597
 *             tag += u'[%d]' % count
21530
 
 *         python.PyList_Append(path, tag)
 
23598
 *         path.append(tag)
21531
23599
 *         _recursiveBuildDescendantPaths(c_child, path, path_list)             # <<<<<<<<<<<<<<
21532
23600
 *         del path[-1]
21533
23601
 *         c_child = c_child.next
21534
23602
 */
21535
 
    __pyx_1 = __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_child, __pyx_v_path, __pyx_v_path_list); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21536
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
 
23603
    __pyx_t_4 = __pyx_f_4lxml_9objectify__recursiveBuildDescendantPaths(__pyx_v_c_child, __pyx_v_path, __pyx_v_path_list); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21537
23604
 
21538
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":350
21539
 
 *         python.PyList_Append(path, tag)
 
23605
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":355
 
23606
 *         path.append(tag)
21540
23607
 *         _recursiveBuildDescendantPaths(c_child, path, path_list)
21541
23608
 *         del path[-1]             # <<<<<<<<<<<<<<
21542
23609
 *         c_child = c_child.next
 
23610
 *     return 0
21543
23611
 */
21544
 
    if (__Pyx_DelItemInt(__pyx_v_path, -1, 0) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
23612
    if (__Pyx_DelItemInt(((PyObject *)__pyx_v_path), -1, sizeof(long), PyInt_FromLong) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
21545
23613
 
21546
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":351
 
23614
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":356
21547
23615
 *         _recursiveBuildDescendantPaths(c_child, path, path_list)
21548
23616
 *         del path[-1]
21549
23617
 *         c_child = c_child.next             # <<<<<<<<<<<<<<
 
23618
 *     return 0
21550
23619
 */
21551
23620
    __pyx_v_c_child = __pyx_v_c_child->next;
21552
23621
  }
21553
23622
 
21554
 
  __pyx_r = Py_None; Py_INCREF(Py_None);
 
23623
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":357
 
23624
 *         del path[-1]
 
23625
 *         c_child = c_child.next
 
23626
 *     return 0             # <<<<<<<<<<<<<<
 
23627
 */
 
23628
  __pyx_r = 0;
 
23629
  goto __pyx_L0;
 
23630
 
 
23631
  __pyx_r = 0;
21555
23632
  goto __pyx_L0;
21556
23633
  __pyx_L1_error:;
21557
 
  Py_XDECREF(__pyx_1);
21558
 
  Py_XDECREF(__pyx_2);
21559
 
  Py_XDECREF(__pyx_3);
 
23634
  __Pyx_XDECREF(__pyx_1);
 
23635
  __Pyx_XDECREF(__pyx_t_1);
 
23636
  __Pyx_XDECREF(__pyx_t_2);
 
23637
  __Pyx_XDECREF(__pyx_t_3);
21560
23638
  __Pyx_AddTraceback("lxml.objectify._recursiveBuildDescendantPaths");
21561
 
  __pyx_r = 0;
 
23639
  __pyx_r = -1;
21562
23640
  __pyx_L0:;
21563
 
  Py_DECREF(__pyx_v_tags);
21564
 
  Py_DECREF(__pyx_v_tag);
21565
 
  Py_DECREF(__pyx_v_count);
 
23641
  __Pyx_XDECREF(__pyx_v_tags);
 
23642
  __Pyx_DECREF(__pyx_v_tag);
 
23643
  __Pyx_DECREF(__pyx_v_count);
 
23644
  __Pyx_FinishRefcountContext();
21566
23645
  return __pyx_r;
21567
23646
}
21568
23647
 
21575
23654
  p->type_check = Py_None; Py_INCREF(Py_None);
21576
23655
  p->stringify = Py_None; Py_INCREF(Py_None);
21577
23656
  p->_type = Py_None; Py_INCREF(Py_None);
21578
 
  p->_schema_types = Py_None; Py_INCREF(Py_None);
 
23657
  p->_schema_types = ((PyObject *)Py_None); Py_INCREF(Py_None);
21579
23658
  return o;
21580
23659
}
21581
23660
 
21585
23664
  Py_XDECREF(p->type_check);
21586
23665
  Py_XDECREF(p->stringify);
21587
23666
  Py_XDECREF(p->_type);
21588
 
  Py_XDECREF(p->_schema_types);
 
23667
  Py_XDECREF(((PyObject *)p->_schema_types));
21589
23668
  (*Py_TYPE(o)->tp_free)(o);
21590
23669
}
21591
23670
 
21626
23705
  p->_type = Py_None; Py_INCREF(Py_None);
21627
23706
  Py_XDECREF(tmp);
21628
23707
  tmp = ((PyObject*)p->_schema_types);
21629
 
  p->_schema_types = Py_None; Py_INCREF(Py_None);
 
23708
  p->_schema_types = ((PyObject *)Py_None); Py_INCREF(Py_None);
21630
23709
  Py_XDECREF(tmp);
21631
23710
  return 0;
21632
23711
}
21646
23725
}
21647
23726
 
21648
23727
static struct PyMethodDef __pyx_methods_4lxml_9objectify_PyType[] = {
21649
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType___repr__, METH_NOARGS|METH_COEXIST, 0},
21650
 
  {"register", (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType_register, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_6PyType_register},
21651
 
  {"unregister", (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType_unregister, METH_NOARGS, __pyx_doc_4lxml_9objectify_6PyType_unregister},
 
23728
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
23729
  {__Pyx_NAMESTR("register"), (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType_register, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_6PyType_register)},
 
23730
  {__Pyx_NAMESTR("unregister"), (PyCFunction)__pyx_pf_4lxml_9objectify_6PyType_unregister, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_6PyType_unregister)},
21652
23731
  {0, 0, 0, 0}
21653
23732
};
21654
23733
 
21655
23734
static struct PyMemberDef __pyx_members_4lxml_9objectify_PyType[] = {
21656
 
  {"name", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, name), READONLY, 0},
21657
 
  {"type_check", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, type_check), READONLY, 0},
21658
 
  {"stringify", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, stringify), READONLY, 0},
 
23735
  {(char *)"name", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, name), READONLY, 0},
 
23736
  {(char *)"type_check", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, type_check), READONLY, 0},
 
23737
  {(char *)"stringify", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_PyType, stringify), READONLY, 0},
21659
23738
  {0, 0, 0, 0, 0}
21660
23739
};
21661
23740
 
21662
23741
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_PyType[] = {
21663
 
  {"xmlSchemaTypes", __pyx_getprop_4lxml_9objectify_6PyType_xmlSchemaTypes, __pyx_setprop_4lxml_9objectify_6PyType_xmlSchemaTypes, __pyx_k_641, 0},
 
23742
  {(char *)"xmlSchemaTypes", __pyx_getprop_4lxml_9objectify_6PyType_xmlSchemaTypes, __pyx_setprop_4lxml_9objectify_6PyType_xmlSchemaTypes, __pyx_k_676, 0},
21664
23743
  {0, 0, 0, 0, 0}
21665
23744
};
21666
23745
 
21688
23767
  0, /*nb_coerce*/
21689
23768
  #endif
21690
23769
  0, /*nb_int*/
 
23770
  #if PY_MAJOR_VERSION >= 3
 
23771
  0, /*reserved*/
 
23772
  #else
21691
23773
  0, /*nb_long*/
 
23774
  #endif
21692
23775
  0, /*nb_float*/
21693
23776
  #if PY_MAJOR_VERSION < 3
21694
23777
  0, /*nb_oct*/
21760
23843
 
21761
23844
PyTypeObject __pyx_type_4lxml_9objectify_PyType = {
21762
23845
  PyVarObject_HEAD_INIT(0, 0)
21763
 
  "lxml.objectify.PyType", /*tp_name*/
 
23846
  __Pyx_NAMESTR("lxml.objectify.PyType"), /*tp_name*/
21764
23847
  sizeof(struct __pyx_obj_4lxml_9objectify_PyType), /*tp_basicsize*/
21765
23848
  0, /*tp_itemsize*/
21766
23849
  __pyx_tp_dealloc_4lxml_9objectify_PyType, /*tp_dealloc*/
21779
23862
  0, /*tp_setattro*/
21780
23863
  &__pyx_tp_as_buffer_PyType, /*tp_as_buffer*/
21781
23864
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
21782
 
  "PyType(self, name, type_check, type_class, stringify=None)\n    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\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*/
 
23865
  __Pyx_DOCSTR("PyType(self, name, type_check, type_class, stringify=None)\n    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\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*/
21783
23866
  __pyx_tp_traverse_4lxml_9objectify_PyType, /*tp_traverse*/
21784
23867
  __pyx_tp_clear_4lxml_9objectify_PyType, /*tp_clear*/
21785
23868
  0, /*tp_richcompare*/
21874
23957
}
21875
23958
 
21876
23959
static struct PyMethodDef __pyx_methods_4lxml_9objectify_ObjectifiedElement[] = {
21877
 
  {"__iter__", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__, METH_NOARGS|METH_COEXIST, __pyx_doc_4lxml_9objectify_18ObjectifiedElement___iter__},
21878
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___str__, METH_NOARGS|METH_COEXIST, 0},
21879
 
  {"countchildren", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_countchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_countchildren},
21880
 
  {"getchildren", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_getchildren, METH_NOARGS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_getchildren},
21881
 
  {"__getattr__", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getattr__, METH_O|METH_COEXIST, __pyx_doc_4lxml_9objectify_18ObjectifiedElement___getattr__},
21882
 
  {"addattr", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_addattr},
21883
 
  {"__getitem__", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getitem__, METH_O|METH_COEXIST, __pyx_doc_4lxml_9objectify_18ObjectifiedElement___getitem__},
21884
 
  {"iterfind", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_iterfind, METH_O, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_iterfind},
21885
 
  {"findall", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_findall, METH_O, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_findall},
21886
 
  {"find", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_find, METH_O, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_find},
21887
 
  {"findtext", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_findtext, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_findtext},
21888
 
  {"descendantpaths", (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_descendantpaths, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_18ObjectifiedElement_descendantpaths},
 
23960
  {__Pyx_NAMESTR("__iter__"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___iter__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement___iter__)},
 
23961
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
23962
  {__Pyx_NAMESTR("countchildren"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_countchildren, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_countchildren)},
 
23963
  {__Pyx_NAMESTR("getchildren"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_getchildren, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_getchildren)},
 
23964
  {__Pyx_NAMESTR("__getattr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getattr__, METH_O|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement___getattr__)},
 
23965
  {__Pyx_NAMESTR("addattr"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_addattr, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_addattr)},
 
23966
  {__Pyx_NAMESTR("__getitem__"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement___getitem__, METH_O|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement___getitem__)},
 
23967
  {__Pyx_NAMESTR("iterfind"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_iterfind, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_iterfind)},
 
23968
  {__Pyx_NAMESTR("findall"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_findall, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_findall)},
 
23969
  {__Pyx_NAMESTR("find"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_find, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_find)},
 
23970
  {__Pyx_NAMESTR("findtext"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_findtext, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_findtext)},
 
23971
  {__Pyx_NAMESTR("descendantpaths"), (PyCFunction)__pyx_pf_4lxml_9objectify_18ObjectifiedElement_descendantpaths, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_18ObjectifiedElement_descendantpaths)},
21889
23972
  {0, 0, 0, 0}
21890
23973
};
21891
23974
 
21892
23975
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_ObjectifiedElement[] = {
21893
 
  {"text", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement_text, 0, 0, 0},
21894
 
  {"__dict__", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement___dict__, 0, __pyx_k_640, 0},
 
23976
  {(char *)"text", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement_text, 0, 0, 0},
 
23977
  {(char *)"__dict__", __pyx_getprop_4lxml_9objectify_18ObjectifiedElement___dict__, 0, __pyx_k_675, 0},
21895
23978
  {0, 0, 0, 0, 0}
21896
23979
};
21897
23980
 
21919
24002
  0, /*nb_coerce*/
21920
24003
  #endif
21921
24004
  0, /*nb_int*/
 
24005
  #if PY_MAJOR_VERSION >= 3
 
24006
  0, /*reserved*/
 
24007
  #else
21922
24008
  0, /*nb_long*/
 
24009
  #endif
21923
24010
  0, /*nb_float*/
21924
24011
  #if PY_MAJOR_VERSION < 3
21925
24012
  0, /*nb_oct*/
21991
24078
 
21992
24079
PyTypeObject __pyx_type_4lxml_9objectify_ObjectifiedElement = {
21993
24080
  PyVarObject_HEAD_INIT(0, 0)
21994
 
  "lxml.objectify.ObjectifiedElement", /*tp_name*/
 
24081
  __Pyx_NAMESTR("lxml.objectify.ObjectifiedElement"), /*tp_name*/
21995
24082
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifiedElement), /*tp_basicsize*/
21996
24083
  0, /*tp_itemsize*/
21997
24084
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
22010
24097
  __pyx_tp_setattro_4lxml_9objectify_ObjectifiedElement, /*tp_setattro*/
22011
24098
  &__pyx_tp_as_buffer_ObjectifiedElement, /*tp_as_buffer*/
22012
24099
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
22013
 
  "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(\"<root><c1><c2>0</c2><c2>1</c2></c1></root>\")\n       >>> second_c2 = root.c1.c2[1]\n\n    Note that you cannot (and must not) instantiate this class or its\n    subclasses.\n    ", /*tp_doc*/
 
24100
  __Pyx_DOCSTR("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(\"<root><c1><c2>0</c2><c2>1</c2></c1></root>\")\n       >>> second_c2 = root.c1.c2[1]\n\n    Note that you cannot (and must not) instantiate this class or its\n    subclasses.\n    "), /*tp_doc*/
22014
24101
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
22015
24102
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
22016
24103
  0, /*tp_richcompare*/
22048
24135
}
22049
24136
 
22050
24137
static struct PyMethodDef __pyx_methods_4lxml_9objectify_ObjectifiedDataElement[] = {
22051
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__, METH_NOARGS|METH_COEXIST, 0},
22052
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___repr__, METH_NOARGS|METH_COEXIST, 0},
22053
 
  {"_setText", (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement__setText, METH_O, __pyx_doc_4lxml_9objectify_22ObjectifiedDataElement__setText},
 
24138
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24139
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24140
  {__Pyx_NAMESTR("_setText"), (PyCFunction)__pyx_pf_4lxml_9objectify_22ObjectifiedDataElement__setText, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_22ObjectifiedDataElement__setText)},
22054
24141
  {0, 0, 0, 0}
22055
24142
};
22056
24143
 
22057
24144
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_ObjectifiedDataElement[] = {
22058
 
  {"pyval", __pyx_getprop_4lxml_9objectify_22ObjectifiedDataElement_pyval, 0, 0, 0},
 
24145
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_22ObjectifiedDataElement_pyval, 0, 0, 0},
22059
24146
  {0, 0, 0, 0, 0}
22060
24147
};
22061
24148
 
22083
24170
  0, /*nb_coerce*/
22084
24171
  #endif
22085
24172
  0, /*nb_int*/
 
24173
  #if PY_MAJOR_VERSION >= 3
 
24174
  0, /*reserved*/
 
24175
  #else
22086
24176
  0, /*nb_long*/
 
24177
  #endif
22087
24178
  0, /*nb_float*/
22088
24179
  #if PY_MAJOR_VERSION < 3
22089
24180
  0, /*nb_oct*/
22155
24246
 
22156
24247
PyTypeObject __pyx_type_4lxml_9objectify_ObjectifiedDataElement = {
22157
24248
  PyVarObject_HEAD_INIT(0, 0)
22158
 
  "lxml.objectify.ObjectifiedDataElement", /*tp_name*/
 
24249
  __Pyx_NAMESTR("lxml.objectify.ObjectifiedDataElement"), /*tp_name*/
22159
24250
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifiedDataElement), /*tp_basicsize*/
22160
24251
  0, /*tp_itemsize*/
22161
24252
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
22174
24265
  0, /*tp_setattro*/
22175
24266
  &__pyx_tp_as_buffer_ObjectifiedDataElement, /*tp_as_buffer*/
22176
24267
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
22177
 
  "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*/
 
24268
  __Pyx_DOCSTR("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*/
22178
24269
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
22179
24270
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
22180
24271
  0, /*tp_richcompare*/
22241
24332
}
22242
24333
 
22243
24334
static struct PyMethodDef __pyx_methods_4lxml_9objectify_NumberElement[] = {
22244
 
  {"_setValueParser", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser, METH_O, __pyx_doc_4lxml_9objectify_13NumberElement__setValueParser},
22245
 
  {"__int__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___int__, METH_NOARGS|METH_COEXIST, 0},
22246
 
  {"__long__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___long__, METH_NOARGS|METH_COEXIST, 0},
22247
 
  {"__float__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___float__, METH_NOARGS|METH_COEXIST, 0},
22248
 
  {"__complex__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___complex__, METH_NOARGS, 0},
22249
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___str__, METH_NOARGS|METH_COEXIST, 0},
22250
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___repr__, METH_NOARGS|METH_COEXIST, 0},
22251
 
  {"__oct__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___oct__, METH_NOARGS|METH_COEXIST, 0},
22252
 
  {"__hex__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___hex__, METH_NOARGS|METH_COEXIST, 0},
22253
 
  {"__add__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___add__, METH_O|METH_COEXIST, 0},
22254
 
  {"__sub__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___sub__, METH_O|METH_COEXIST, 0},
22255
 
  {"__mul__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___mul__, METH_O|METH_COEXIST, 0},
22256
 
  {"__div__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___div__, METH_O|METH_COEXIST, 0},
22257
 
  {"__truediv__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___truediv__, METH_O|METH_COEXIST, 0},
22258
 
  {"__mod__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___mod__, METH_O|METH_COEXIST, 0},
22259
 
  {"__neg__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___neg__, METH_NOARGS|METH_COEXIST, 0},
22260
 
  {"__pos__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___pos__, METH_NOARGS|METH_COEXIST, 0},
22261
 
  {"__abs__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___abs__, METH_NOARGS|METH_COEXIST, 0},
22262
 
  {"__invert__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___invert__, METH_NOARGS|METH_COEXIST, 0},
22263
 
  {"__lshift__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___lshift__, METH_O|METH_COEXIST, 0},
22264
 
  {"__rshift__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___rshift__, METH_O|METH_COEXIST, 0},
22265
 
  {"__and__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___and__, METH_O|METH_COEXIST, 0},
22266
 
  {"__or__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___or__, METH_O|METH_COEXIST, 0},
22267
 
  {"__xor__", (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___xor__, METH_O|METH_COEXIST, 0},
 
24335
  {__Pyx_NAMESTR("_setValueParser"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement__setValueParser, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_13NumberElement__setValueParser)},
 
24336
  {__Pyx_NAMESTR("__int__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___int__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24337
  {__Pyx_NAMESTR("__long__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___long__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24338
  {__Pyx_NAMESTR("__float__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___float__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24339
  {__Pyx_NAMESTR("__complex__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___complex__, METH_NOARGS, __Pyx_DOCSTR(0)},
 
24340
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24341
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24342
  {__Pyx_NAMESTR("__oct__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___oct__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24343
  {__Pyx_NAMESTR("__hex__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___hex__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24344
  {__Pyx_NAMESTR("__add__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___add__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24345
  {__Pyx_NAMESTR("__sub__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___sub__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24346
  {__Pyx_NAMESTR("__mul__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___mul__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24347
  {__Pyx_NAMESTR("__div__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___div__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24348
  {__Pyx_NAMESTR("__truediv__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___truediv__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24349
  {__Pyx_NAMESTR("__mod__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___mod__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24350
  {__Pyx_NAMESTR("__neg__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___neg__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24351
  {__Pyx_NAMESTR("__pos__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___pos__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24352
  {__Pyx_NAMESTR("__abs__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___abs__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24353
  {__Pyx_NAMESTR("__invert__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___invert__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24354
  {__Pyx_NAMESTR("__lshift__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___lshift__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24355
  {__Pyx_NAMESTR("__rshift__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___rshift__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24356
  {__Pyx_NAMESTR("__and__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___and__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24357
  {__Pyx_NAMESTR("__or__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___or__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24358
  {__Pyx_NAMESTR("__xor__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13NumberElement___xor__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
22268
24359
  {0, 0, 0, 0}
22269
24360
};
22270
24361
 
22271
24362
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_NumberElement[] = {
22272
 
  {"pyval", __pyx_getprop_4lxml_9objectify_13NumberElement_pyval, 0, 0, 0},
 
24363
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_13NumberElement_pyval, 0, 0, 0},
22273
24364
  {0, 0, 0, 0, 0}
22274
24365
};
22275
24366
 
22297
24388
  0, /*nb_coerce*/
22298
24389
  #endif
22299
24390
  __pyx_pf_4lxml_9objectify_13NumberElement___int__, /*nb_int*/
 
24391
  #if PY_MAJOR_VERSION >= 3
 
24392
  0, /*reserved*/
 
24393
  #else
22300
24394
  __pyx_pf_4lxml_9objectify_13NumberElement___long__, /*nb_long*/
 
24395
  #endif
22301
24396
  __pyx_pf_4lxml_9objectify_13NumberElement___float__, /*nb_float*/
22302
24397
  #if PY_MAJOR_VERSION < 3
22303
24398
  __pyx_pf_4lxml_9objectify_13NumberElement___oct__, /*nb_oct*/
22369
24464
 
22370
24465
PyTypeObject __pyx_type_4lxml_9objectify_NumberElement = {
22371
24466
  PyVarObject_HEAD_INIT(0, 0)
22372
 
  "lxml.objectify.NumberElement", /*tp_name*/
 
24467
  __Pyx_NAMESTR("lxml.objectify.NumberElement"), /*tp_name*/
22373
24468
  sizeof(struct __pyx_obj_4lxml_9objectify_NumberElement), /*tp_basicsize*/
22374
24469
  0, /*tp_itemsize*/
22375
24470
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
22422
24517
}
22423
24518
 
22424
24519
static struct PyMethodDef __pyx_methods_4lxml_9objectify_IntElement[] = {
22425
 
  {"_init", (PyCFunction)__pyx_pf_4lxml_9objectify_10IntElement__init, METH_NOARGS, 0},
 
24520
  {__Pyx_NAMESTR("_init"), (PyCFunction)__pyx_pf_4lxml_9objectify_10IntElement__init, METH_NOARGS, __Pyx_DOCSTR(0)},
22426
24521
  {0, 0, 0, 0}
22427
24522
};
22428
24523
 
22450
24545
  0, /*nb_coerce*/
22451
24546
  #endif
22452
24547
  0, /*nb_int*/
 
24548
  #if PY_MAJOR_VERSION >= 3
 
24549
  0, /*reserved*/
 
24550
  #else
22453
24551
  0, /*nb_long*/
 
24552
  #endif
22454
24553
  0, /*nb_float*/
22455
24554
  #if PY_MAJOR_VERSION < 3
22456
24555
  0, /*nb_oct*/
22522
24621
 
22523
24622
PyTypeObject __pyx_type_4lxml_9objectify_IntElement = {
22524
24623
  PyVarObject_HEAD_INIT(0, 0)
22525
 
  "lxml.objectify.IntElement", /*tp_name*/
 
24624
  __Pyx_NAMESTR("lxml.objectify.IntElement"), /*tp_name*/
22526
24625
  sizeof(struct __pyx_obj_4lxml_9objectify_IntElement), /*tp_basicsize*/
22527
24626
  0, /*tp_itemsize*/
22528
24627
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
22575
24674
}
22576
24675
 
22577
24676
static struct PyMethodDef __pyx_methods_4lxml_9objectify_LongElement[] = {
22578
 
  {"_init", (PyCFunction)__pyx_pf_4lxml_9objectify_11LongElement__init, METH_NOARGS, 0},
 
24677
  {__Pyx_NAMESTR("_init"), (PyCFunction)__pyx_pf_4lxml_9objectify_11LongElement__init, METH_NOARGS, __Pyx_DOCSTR(0)},
22579
24678
  {0, 0, 0, 0}
22580
24679
};
22581
24680
 
22603
24702
  0, /*nb_coerce*/
22604
24703
  #endif
22605
24704
  0, /*nb_int*/
 
24705
  #if PY_MAJOR_VERSION >= 3
 
24706
  0, /*reserved*/
 
24707
  #else
22606
24708
  0, /*nb_long*/
 
24709
  #endif
22607
24710
  0, /*nb_float*/
22608
24711
  #if PY_MAJOR_VERSION < 3
22609
24712
  0, /*nb_oct*/
22675
24778
 
22676
24779
PyTypeObject __pyx_type_4lxml_9objectify_LongElement = {
22677
24780
  PyVarObject_HEAD_INIT(0, 0)
22678
 
  "lxml.objectify.LongElement", /*tp_name*/
 
24781
  __Pyx_NAMESTR("lxml.objectify.LongElement"), /*tp_name*/
22679
24782
  sizeof(struct __pyx_obj_4lxml_9objectify_LongElement), /*tp_basicsize*/
22680
24783
  0, /*tp_itemsize*/
22681
24784
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
22728
24831
}
22729
24832
 
22730
24833
static struct PyMethodDef __pyx_methods_4lxml_9objectify_FloatElement[] = {
22731
 
  {"_init", (PyCFunction)__pyx_pf_4lxml_9objectify_12FloatElement__init, METH_NOARGS, 0},
 
24834
  {__Pyx_NAMESTR("_init"), (PyCFunction)__pyx_pf_4lxml_9objectify_12FloatElement__init, METH_NOARGS, __Pyx_DOCSTR(0)},
22732
24835
  {0, 0, 0, 0}
22733
24836
};
22734
24837
 
22756
24859
  0, /*nb_coerce*/
22757
24860
  #endif
22758
24861
  0, /*nb_int*/
 
24862
  #if PY_MAJOR_VERSION >= 3
 
24863
  0, /*reserved*/
 
24864
  #else
22759
24865
  0, /*nb_long*/
 
24866
  #endif
22760
24867
  0, /*nb_float*/
22761
24868
  #if PY_MAJOR_VERSION < 3
22762
24869
  0, /*nb_oct*/
22828
24935
 
22829
24936
PyTypeObject __pyx_type_4lxml_9objectify_FloatElement = {
22830
24937
  PyVarObject_HEAD_INIT(0, 0)
22831
 
  "lxml.objectify.FloatElement", /*tp_name*/
 
24938
  __Pyx_NAMESTR("lxml.objectify.FloatElement"), /*tp_name*/
22832
24939
  sizeof(struct __pyx_obj_4lxml_9objectify_FloatElement), /*tp_basicsize*/
22833
24940
  0, /*tp_itemsize*/
22834
24941
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
22885
24992
}
22886
24993
 
22887
24994
static struct PyMethodDef __pyx_methods_4lxml_9objectify_StringElement[] = {
22888
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___repr__, METH_NOARGS|METH_COEXIST, 0},
22889
 
  {"strlen", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement_strlen, METH_NOARGS, 0},
22890
 
  {"__add__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___add__, METH_O|METH_COEXIST, 0},
22891
 
  {"__mul__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___mul__, METH_O|METH_COEXIST, 0},
22892
 
  {"__mod__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___mod__, METH_O|METH_COEXIST, 0},
22893
 
  {"__int__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___int__, METH_NOARGS|METH_COEXIST, 0},
22894
 
  {"__long__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___long__, METH_NOARGS|METH_COEXIST, 0},
22895
 
  {"__float__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___float__, METH_NOARGS|METH_COEXIST, 0},
22896
 
  {"__complex__", (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___complex__, METH_NOARGS, 0},
 
24995
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24996
  {__Pyx_NAMESTR("strlen"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement_strlen, METH_NOARGS, __Pyx_DOCSTR(0)},
 
24997
  {__Pyx_NAMESTR("__add__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___add__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24998
  {__Pyx_NAMESTR("__mul__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___mul__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
24999
  {__Pyx_NAMESTR("__mod__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___mod__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25000
  {__Pyx_NAMESTR("__int__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___int__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25001
  {__Pyx_NAMESTR("__long__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___long__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25002
  {__Pyx_NAMESTR("__float__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___float__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25003
  {__Pyx_NAMESTR("__complex__"), (PyCFunction)__pyx_pf_4lxml_9objectify_13StringElement___complex__, METH_NOARGS, __Pyx_DOCSTR(0)},
22897
25004
  {0, 0, 0, 0}
22898
25005
};
22899
25006
 
22900
25007
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_StringElement[] = {
22901
 
  {"pyval", __pyx_getprop_4lxml_9objectify_13StringElement_pyval, 0, 0, 0},
 
25008
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_13StringElement_pyval, 0, 0, 0},
22902
25009
  {0, 0, 0, 0, 0}
22903
25010
};
22904
25011
 
22926
25033
  0, /*nb_coerce*/
22927
25034
  #endif
22928
25035
  __pyx_pf_4lxml_9objectify_13StringElement___int__, /*nb_int*/
 
25036
  #if PY_MAJOR_VERSION >= 3
 
25037
  0, /*reserved*/
 
25038
  #else
22929
25039
  __pyx_pf_4lxml_9objectify_13StringElement___long__, /*nb_long*/
 
25040
  #endif
22930
25041
  __pyx_pf_4lxml_9objectify_13StringElement___float__, /*nb_float*/
22931
25042
  #if PY_MAJOR_VERSION < 3
22932
25043
  0, /*nb_oct*/
22998
25109
 
22999
25110
PyTypeObject __pyx_type_4lxml_9objectify_StringElement = {
23000
25111
  PyVarObject_HEAD_INIT(0, 0)
23001
 
  "lxml.objectify.StringElement", /*tp_name*/
 
25112
  __Pyx_NAMESTR("lxml.objectify.StringElement"), /*tp_name*/
23002
25113
  sizeof(struct __pyx_obj_4lxml_9objectify_StringElement), /*tp_basicsize*/
23003
25114
  0, /*tp_itemsize*/
23004
25115
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
23017
25128
  0, /*tp_setattro*/
23018
25129
  &__pyx_tp_as_buffer_StringElement, /*tp_as_buffer*/
23019
25130
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
23020
 
  "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*/
 
25131
  __Pyx_DOCSTR("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*/
23021
25132
  __pyx_tp_traverse_4lxml_9objectify_ObjectifiedElement, /*tp_traverse*/
23022
25133
  __pyx_tp_clear_4lxml_9objectify_ObjectifiedElement, /*tp_clear*/
23023
25134
  __pyx_pf_4lxml_9objectify_13StringElement___richcmp__, /*tp_richcompare*/
23055
25166
}
23056
25167
 
23057
25168
static struct PyMethodDef __pyx_methods_4lxml_9objectify_NoneElement[] = {
23058
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_11NoneElement___str__, METH_NOARGS|METH_COEXIST, 0},
23059
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_11NoneElement___repr__, METH_NOARGS|METH_COEXIST, 0},
 
25169
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_11NoneElement___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25170
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_11NoneElement___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
23060
25171
  {0, 0, 0, 0}
23061
25172
};
23062
25173
 
23063
25174
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_NoneElement[] = {
23064
 
  {"pyval", __pyx_getprop_4lxml_9objectify_11NoneElement_pyval, 0, 0, 0},
 
25175
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_11NoneElement_pyval, 0, 0, 0},
23065
25176
  {0, 0, 0, 0, 0}
23066
25177
};
23067
25178
 
23089
25200
  0, /*nb_coerce*/
23090
25201
  #endif
23091
25202
  0, /*nb_int*/
 
25203
  #if PY_MAJOR_VERSION >= 3
 
25204
  0, /*reserved*/
 
25205
  #else
23092
25206
  0, /*nb_long*/
 
25207
  #endif
23093
25208
  0, /*nb_float*/
23094
25209
  #if PY_MAJOR_VERSION < 3
23095
25210
  0, /*nb_oct*/
23161
25276
 
23162
25277
PyTypeObject __pyx_type_4lxml_9objectify_NoneElement = {
23163
25278
  PyVarObject_HEAD_INIT(0, 0)
23164
 
  "lxml.objectify.NoneElement", /*tp_name*/
 
25279
  __Pyx_NAMESTR("lxml.objectify.NoneElement"), /*tp_name*/
23165
25280
  sizeof(struct __pyx_obj_4lxml_9objectify_NoneElement), /*tp_basicsize*/
23166
25281
  0, /*tp_itemsize*/
23167
25282
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifiedElement, /*tp_dealloc*/
23218
25333
}
23219
25334
 
23220
25335
static struct PyMethodDef __pyx_methods_4lxml_9objectify_BoolElement[] = {
23221
 
  {"_init", (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement__init, METH_NOARGS, 0},
23222
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement___str__, METH_NOARGS|METH_COEXIST, 0},
23223
 
  {"__repr__", (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement___repr__, METH_NOARGS|METH_COEXIST, 0},
 
25336
  {__Pyx_NAMESTR("_init"), (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement__init, METH_NOARGS, __Pyx_DOCSTR(0)},
 
25337
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
25338
  {__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_11BoolElement___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
23224
25339
  {0, 0, 0, 0}
23225
25340
};
23226
25341
 
23227
25342
static struct PyGetSetDef __pyx_getsets_4lxml_9objectify_BoolElement[] = {
23228
 
  {"pyval", __pyx_getprop_4lxml_9objectify_11BoolElement_pyval, 0, 0, 0},
 
25343
  {(char *)"pyval", __pyx_getprop_4lxml_9objectify_11BoolElement_pyval, 0, 0, 0},
23229
25344
  {0, 0, 0, 0, 0}
23230
25345
};
23231
25346
 
23253
25368
  0, /*nb_coerce*/
23254
25369
  #endif
23255
25370
  0, /*nb_int*/
 
25371
  #if PY_MAJOR_VERSION >= 3
 
25372
  0, /*reserved*/
 
25373
  #else
23256
25374
  0, /*nb_long*/
 
25375
  #endif
23257
25376
  0, /*nb_float*/
23258
25377
  #if PY_MAJOR_VERSION < 3
23259
25378
  0, /*nb_oct*/
23325
25444
 
23326
25445
PyTypeObject __pyx_type_4lxml_9objectify_BoolElement = {
23327
25446
  PyVarObject_HEAD_INIT(0, 0)
23328
 
  "lxml.objectify.BoolElement", /*tp_name*/
 
25447
  __Pyx_NAMESTR("lxml.objectify.BoolElement"), /*tp_name*/
23329
25448
  sizeof(struct __pyx_obj_4lxml_9objectify_BoolElement), /*tp_basicsize*/
23330
25449
  0, /*tp_itemsize*/
23331
25450
  __pyx_tp_dealloc_4lxml_9objectify_NumberElement, /*tp_dealloc*/
23344
25463
  0, /*tp_setattro*/
23345
25464
  &__pyx_tp_as_buffer_BoolElement, /*tp_as_buffer*/
23346
25465
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
23347
 
  "Boolean type base on string values: 'true' or 'false'.\n\n    Note that this inherits from IntElement to mimic the behaviour of\n    Python's bool type.\n    ", /*tp_doc*/
 
25466
  __Pyx_DOCSTR("Boolean type base on string values: 'true' or 'false'.\n\n    Note that this inherits from IntElement to mimic the behaviour of\n    Python's bool type.\n    "), /*tp_doc*/
23348
25467
  __pyx_tp_traverse_4lxml_9objectify_NumberElement, /*tp_traverse*/
23349
25468
  __pyx_tp_clear_4lxml_9objectify_NumberElement, /*tp_clear*/
23350
25469
  __pyx_pf_4lxml_9objectify_11BoolElement___richcmp__, /*tp_richcompare*/
23421
25540
}
23422
25541
 
23423
25542
static struct PyMethodDef __pyx_methods_4lxml_9objectify__ObjectifyElementMakerCaller[] = {
23424
 
  {"__call__", (PyCFunction)__pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__},
 
25543
  {__Pyx_NAMESTR("__call__"), (PyCFunction)__pyx_pf_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_28_ObjectifyElementMakerCaller___call__)},
23425
25544
  {0, 0, 0, 0}
23426
25545
};
23427
25546
 
23449
25568
  0, /*nb_coerce*/
23450
25569
  #endif
23451
25570
  0, /*nb_int*/
 
25571
  #if PY_MAJOR_VERSION >= 3
 
25572
  0, /*reserved*/
 
25573
  #else
23452
25574
  0, /*nb_long*/
 
25575
  #endif
23453
25576
  0, /*nb_float*/
23454
25577
  #if PY_MAJOR_VERSION < 3
23455
25578
  0, /*nb_oct*/
23521
25644
 
23522
25645
PyTypeObject __pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller = {
23523
25646
  PyVarObject_HEAD_INIT(0, 0)
23524
 
  "lxml.objectify._ObjectifyElementMakerCaller", /*tp_name*/
 
25647
  __Pyx_NAMESTR("lxml.objectify._ObjectifyElementMakerCaller"), /*tp_name*/
23525
25648
  sizeof(struct __pyx_obj_4lxml_9objectify__ObjectifyElementMakerCaller), /*tp_basicsize*/
23526
25649
  0, /*tp_itemsize*/
23527
25650
  __pyx_tp_dealloc_4lxml_9objectify__ObjectifyElementMakerCaller, /*tp_dealloc*/
23626
25749
}
23627
25750
 
23628
25751
static struct PyMethodDef __pyx_methods_4lxml_9objectify_ElementMaker[] = {
23629
 
  {"__getattr__", (PyCFunction)__pyx_pf_4lxml_9objectify_12ElementMaker___getattr__, METH_O|METH_COEXIST, 0},
 
25752
  {__Pyx_NAMESTR("__getattr__"), (PyCFunction)__pyx_pf_4lxml_9objectify_12ElementMaker___getattr__, METH_O|METH_COEXIST, __Pyx_DOCSTR(0)},
23630
25753
  {0, 0, 0, 0}
23631
25754
};
23632
25755
 
23654
25777
  0, /*nb_coerce*/
23655
25778
  #endif
23656
25779
  0, /*nb_int*/
 
25780
  #if PY_MAJOR_VERSION >= 3
 
25781
  0, /*reserved*/
 
25782
  #else
23657
25783
  0, /*nb_long*/
 
25784
  #endif
23658
25785
  0, /*nb_float*/
23659
25786
  #if PY_MAJOR_VERSION < 3
23660
25787
  0, /*nb_oct*/
23726
25853
 
23727
25854
PyTypeObject __pyx_type_4lxml_9objectify_ElementMaker = {
23728
25855
  PyVarObject_HEAD_INIT(0, 0)
23729
 
  "lxml.objectify.ElementMaker", /*tp_name*/
 
25856
  __Pyx_NAMESTR("lxml.objectify.ElementMaker"), /*tp_name*/
23730
25857
  sizeof(struct __pyx_obj_4lxml_9objectify_ElementMaker), /*tp_basicsize*/
23731
25858
  0, /*tp_itemsize*/
23732
25859
  __pyx_tp_dealloc_4lxml_9objectify_ElementMaker, /*tp_dealloc*/
23745
25872
  0, /*tp_setattro*/
23746
25873
  &__pyx_tp_as_buffer_ElementMaker, /*tp_as_buffer*/
23747
25874
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
23748
 
  "ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)\n    ", /*tp_doc*/
 
25875
  __Pyx_DOCSTR("ElementMaker(self, namespace=None, nsmap=None, annotate=True, makeelement=None)\n    "), /*tp_doc*/
23749
25876
  __pyx_tp_traverse_4lxml_9objectify_ElementMaker, /*tp_traverse*/
23750
25877
  __pyx_tp_clear_4lxml_9objectify_ElementMaker, /*tp_clear*/
23751
25878
  0, /*tp_richcompare*/
23847
25974
  0, /*nb_coerce*/
23848
25975
  #endif
23849
25976
  0, /*nb_int*/
 
25977
  #if PY_MAJOR_VERSION >= 3
 
25978
  0, /*reserved*/
 
25979
  #else
23850
25980
  0, /*nb_long*/
 
25981
  #endif
23851
25982
  0, /*nb_float*/
23852
25983
  #if PY_MAJOR_VERSION < 3
23853
25984
  0, /*nb_oct*/
23919
26050
 
23920
26051
PyTypeObject __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup = {
23921
26052
  PyVarObject_HEAD_INIT(0, 0)
23922
 
  "lxml.objectify.ObjectifyElementClassLookup", /*tp_name*/
 
26053
  __Pyx_NAMESTR("lxml.objectify.ObjectifyElementClassLookup"), /*tp_name*/
23923
26054
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectifyElementClassLookup), /*tp_basicsize*/
23924
26055
  0, /*tp_itemsize*/
23925
26056
  __pyx_tp_dealloc_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_dealloc*/
23938
26069
  0, /*tp_setattro*/
23939
26070
  &__pyx_tp_as_buffer_ObjectifyElementClassLookup, /*tp_as_buffer*/
23940
26071
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
23941
 
  "ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None)\n    Element class lookup method that uses the objectify classes.\n    ", /*tp_doc*/
 
26072
  __Pyx_DOCSTR("ObjectifyElementClassLookup(self, tree_class=None, empty_data_class=None)\n    Element class lookup method that uses the objectify classes.\n    "), /*tp_doc*/
23942
26073
  __pyx_tp_traverse_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_traverse*/
23943
26074
  __pyx_tp_clear_4lxml_9objectify_ObjectifyElementClassLookup, /*tp_clear*/
23944
26075
  0, /*tp_richcompare*/
24024
26155
}
24025
26156
 
24026
26157
static struct PyMethodDef __pyx_methods_4lxml_9objectify_ObjectPath[] = {
24027
 
  {"__str__", (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath___str__, METH_NOARGS|METH_COEXIST, 0},
24028
 
  {"__call__", (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __pyx_doc_4lxml_9objectify_10ObjectPath___call__},
24029
 
  {"hasattr", (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_hasattr, METH_O, __pyx_doc_4lxml_9objectify_10ObjectPath_hasattr},
24030
 
  {"setattr", (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_setattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_setattr},
24031
 
  {"addattr", (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_addattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_10ObjectPath_addattr},
 
26158
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
 
26159
  {__Pyx_NAMESTR("__call__"), (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath___call__, METH_VARARGS|METH_KEYWORDS|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_10ObjectPath___call__)},
 
26160
  {__Pyx_NAMESTR("hasattr"), (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_hasattr, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_10ObjectPath_hasattr)},
 
26161
  {__Pyx_NAMESTR("setattr"), (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_setattr, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_10ObjectPath_setattr)},
 
26162
  {__Pyx_NAMESTR("addattr"), (PyCFunction)__pyx_pf_4lxml_9objectify_10ObjectPath_addattr, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_10ObjectPath_addattr)},
24032
26163
  {0, 0, 0, 0}
24033
26164
};
24034
26165
 
24035
26166
static struct PyMemberDef __pyx_members_4lxml_9objectify_ObjectPath[] = {
24036
 
  {"find", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_ObjectPath, find), READONLY, 0},
 
26167
  {(char *)"find", T_OBJECT, offsetof(struct __pyx_obj_4lxml_9objectify_ObjectPath, find), READONLY, 0},
24037
26168
  {0, 0, 0, 0, 0}
24038
26169
};
24039
26170
 
24061
26192
  0, /*nb_coerce*/
24062
26193
  #endif
24063
26194
  0, /*nb_int*/
 
26195
  #if PY_MAJOR_VERSION >= 3
 
26196
  0, /*reserved*/
 
26197
  #else
24064
26198
  0, /*nb_long*/
 
26199
  #endif
24065
26200
  0, /*nb_float*/
24066
26201
  #if PY_MAJOR_VERSION < 3
24067
26202
  0, /*nb_oct*/
24133
26268
 
24134
26269
PyTypeObject __pyx_type_4lxml_9objectify_ObjectPath = {
24135
26270
  PyVarObject_HEAD_INIT(0, 0)
24136
 
  "lxml.objectify.ObjectPath", /*tp_name*/
 
26271
  __Pyx_NAMESTR("lxml.objectify.ObjectPath"), /*tp_name*/
24137
26272
  sizeof(struct __pyx_obj_4lxml_9objectify_ObjectPath), /*tp_basicsize*/
24138
26273
  0, /*tp_itemsize*/
24139
26274
  __pyx_tp_dealloc_4lxml_9objectify_ObjectPath, /*tp_dealloc*/
24152
26287
  0, /*tp_setattro*/
24153
26288
  &__pyx_tp_as_buffer_ObjectPath, /*tp_as_buffer*/
24154
26289
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
24155
 
  "ObjectPath(path)\n    Immutable object that represents a compiled object path.\n\n    Example for a path: 'root.child[1].{other}child[25]'\n    ", /*tp_doc*/
 
26290
  __Pyx_DOCSTR("ObjectPath(path)\n    Immutable object that represents a compiled object path.\n\n    Example for a path: 'root.child[1].{other}child[25]'\n    "), /*tp_doc*/
24156
26291
  __pyx_tp_traverse_4lxml_9objectify_ObjectPath, /*tp_traverse*/
24157
26292
  __pyx_tp_clear_4lxml_9objectify_ObjectPath, /*tp_clear*/
24158
26293
  0, /*tp_richcompare*/
24180
26315
};
24181
26316
 
24182
26317
static struct PyMethodDef __pyx_methods[] = {
24183
 
  {"set_pytype_attribute_tag", (PyCFunction)__pyx_pf_4lxml_9objectify_set_pytype_attribute_tag, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_set_pytype_attribute_tag},
24184
 
  {"__checkBool", (PyCFunction)__pyx_pf_4lxml_9objectify___checkBool, METH_O, 0},
24185
 
  {"__parseBool", (PyCFunction)__pyx_pf_4lxml_9objectify___parseBool, METH_O, 0},
24186
 
  {"__lower_bool", (PyCFunction)__pyx_pf_4lxml_9objectify___lower_bool, METH_O, 0},
24187
 
  {"pytypename", (PyCFunction)__pyx_pf_4lxml_9objectify_pytypename, METH_O, __pyx_doc_4lxml_9objectify_pytypename},
24188
 
  {"getRegisteredTypes", (PyCFunction)__pyx_pf_4lxml_9objectify_getRegisteredTypes, METH_NOARGS, __pyx_doc_4lxml_9objectify_getRegisteredTypes},
24189
 
  {"enable_recursive_str", (PyCFunction)__pyx_pf_4lxml_9objectify_enable_recursive_str, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_enable_recursive_str},
24190
 
  {"dump", (PyCFunction)__pyx_pf_4lxml_9objectify_dump, METH_O, __pyx_doc_4lxml_9objectify_dump},
24191
 
  {"__unpickleElementTree", (PyCFunction)__pyx_pf_4lxml_9objectify___unpickleElementTree, METH_O, 0},
24192
 
  {"pickleReduceElement", (PyCFunction)__pyx_pf_4lxml_9objectify_pickleReduceElement, METH_O, 0},
24193
 
  {"pickleReduceElementTree", (PyCFunction)__pyx_pf_4lxml_9objectify_pickleReduceElementTree, METH_O, 0},
24194
 
  {"pyannotate", (PyCFunction)__pyx_pf_4lxml_9objectify_pyannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_pyannotate},
24195
 
  {"xsiannotate", (PyCFunction)__pyx_pf_4lxml_9objectify_xsiannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_xsiannotate},
24196
 
  {"annotate", (PyCFunction)__pyx_pf_4lxml_9objectify_annotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_annotate},
24197
 
  {"deannotate", (PyCFunction)__pyx_pf_4lxml_9objectify_deannotate, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_deannotate},
24198
 
  {"set_default_parser", (PyCFunction)__pyx_pf_4lxml_9objectify_set_default_parser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_set_default_parser},
24199
 
  {"makeparser", (PyCFunction)__pyx_pf_4lxml_9objectify_makeparser, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_makeparser},
24200
 
  {"fromstring", (PyCFunction)__pyx_pf_4lxml_9objectify_fromstring, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_fromstring},
24201
 
  {"XML", (PyCFunction)__pyx_pf_4lxml_9objectify_XML, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_XML},
24202
 
  {"parse", (PyCFunction)__pyx_pf_4lxml_9objectify_parse, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_parse},
24203
 
  {"Element", (PyCFunction)__pyx_pf_4lxml_9objectify_Element, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_Element},
24204
 
  {"DataElement", (PyCFunction)__pyx_pf_4lxml_9objectify_DataElement, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4lxml_9objectify_DataElement},
 
26318
  {__Pyx_NAMESTR("set_pytype_attribute_tag"), (PyCFunction)__pyx_pf_4lxml_9objectify_set_pytype_attribute_tag, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_set_pytype_attribute_tag)},
 
26319
  {__Pyx_NAMESTR("__checkBool"), (PyCFunction)__pyx_pf_4lxml_9objectify___checkBool, METH_O, __Pyx_DOCSTR(0)},
 
26320
  {__Pyx_NAMESTR("__parseBool"), (PyCFunction)__pyx_pf_4lxml_9objectify___parseBool, METH_O, __Pyx_DOCSTR(0)},
 
26321
  {__Pyx_NAMESTR("__lower_bool"), (PyCFunction)__pyx_pf_4lxml_9objectify___lower_bool, METH_O, __Pyx_DOCSTR(0)},
 
26322
  {__Pyx_NAMESTR("pytypename"), (PyCFunction)__pyx_pf_4lxml_9objectify_pytypename, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_pytypename)},
 
26323
  {__Pyx_NAMESTR("getRegisteredTypes"), (PyCFunction)__pyx_pf_4lxml_9objectify_getRegisteredTypes, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_getRegisteredTypes)},
 
26324
  {__Pyx_NAMESTR("enable_recursive_str"), (PyCFunction)__pyx_pf_4lxml_9objectify_enable_recursive_str, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_enable_recursive_str)},
 
26325
  {__Pyx_NAMESTR("dump"), (PyCFunction)__pyx_pf_4lxml_9objectify_dump, METH_O, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_dump)},
 
26326
  {__Pyx_NAMESTR("__unpickleElementTree"), (PyCFunction)__pyx_pf_4lxml_9objectify___unpickleElementTree, METH_O, __Pyx_DOCSTR(0)},
 
26327
  {__Pyx_NAMESTR("pickleReduceElement"), (PyCFunction)__pyx_pf_4lxml_9objectify_pickleReduceElement, METH_O, __Pyx_DOCSTR(0)},
 
26328
  {__Pyx_NAMESTR("pickleReduceElementTree"), (PyCFunction)__pyx_pf_4lxml_9objectify_pickleReduceElementTree, METH_O, __Pyx_DOCSTR(0)},
 
26329
  {__Pyx_NAMESTR("pyannotate"), (PyCFunction)__pyx_pf_4lxml_9objectify_pyannotate, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_pyannotate)},
 
26330
  {__Pyx_NAMESTR("xsiannotate"), (PyCFunction)__pyx_pf_4lxml_9objectify_xsiannotate, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_xsiannotate)},
 
26331
  {__Pyx_NAMESTR("annotate"), (PyCFunction)__pyx_pf_4lxml_9objectify_annotate, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_annotate)},
 
26332
  {__Pyx_NAMESTR("deannotate"), (PyCFunction)__pyx_pf_4lxml_9objectify_deannotate, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_deannotate)},
 
26333
  {__Pyx_NAMESTR("set_default_parser"), (PyCFunction)__pyx_pf_4lxml_9objectify_set_default_parser, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_set_default_parser)},
 
26334
  {__Pyx_NAMESTR("makeparser"), (PyCFunction)__pyx_pf_4lxml_9objectify_makeparser, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_makeparser)},
 
26335
  {__Pyx_NAMESTR("fromstring"), (PyCFunction)__pyx_pf_4lxml_9objectify_fromstring, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_fromstring)},
 
26336
  {__Pyx_NAMESTR("XML"), (PyCFunction)__pyx_pf_4lxml_9objectify_XML, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_XML)},
 
26337
  {__Pyx_NAMESTR("parse"), (PyCFunction)__pyx_pf_4lxml_9objectify_parse, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_parse)},
 
26338
  {__Pyx_NAMESTR("Element"), (PyCFunction)__pyx_pf_4lxml_9objectify_Element, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_Element)},
 
26339
  {__Pyx_NAMESTR("DataElement"), (PyCFunction)__pyx_pf_4lxml_9objectify_DataElement, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4lxml_9objectify_DataElement)},
24205
26340
  {0, 0, 0, 0}
24206
26341
};
24207
26342
 
24210
26345
#if PY_MAJOR_VERSION >= 3
24211
26346
static struct PyModuleDef __pyx_moduledef = {
24212
26347
    PyModuleDef_HEAD_INIT,
24213
 
    "objectify",
24214
 
    __pyx_mdoc, /* m_doc */
 
26348
    __Pyx_NAMESTR("objectify"),
 
26349
    __Pyx_DOCSTR(__pyx_mdoc), /* m_doc */
24215
26350
    -1, /* m_size */
24216
26351
    __pyx_methods /* m_methods */,
24217
26352
    NULL, /* m_reload */
24222
26357
#endif
24223
26358
 
24224
26359
static __Pyx_StringTabEntry __pyx_string_tab[] = {
 
26360
  {&__pyx_kp___main__, __pyx_k___main__, sizeof(__pyx_k___main__), 1, 1, 1},
24225
26361
  {&__pyx_kp___iter__, __pyx_k___iter__, sizeof(__pyx_k___iter__), 1, 1, 1},
24226
26362
  {&__pyx_kp___str__, __pyx_k___str__, sizeof(__pyx_k___str__), 1, 1, 1},
24227
26363
  {&__pyx_kp___len__, __pyx_k___len__, sizeof(__pyx_k___len__), 1, 1, 1},
24317
26453
  {&__pyx_kp_annotate_pytype, __pyx_k_annotate_pytype, sizeof(__pyx_k_annotate_pytype), 1, 1, 1},
24318
26454
  {&__pyx_kp_pytype, __pyx_k_pytype, sizeof(__pyx_k_pytype), 1, 1, 1},
24319
26455
  {&__pyx_kp_xsi, __pyx_k_xsi, sizeof(__pyx_k_xsi), 1, 1, 1},
 
26456
  {&__pyx_kp_xsi_nil, __pyx_k_xsi_nil, sizeof(__pyx_k_xsi_nil), 1, 1, 1},
24320
26457
  {&__pyx_kp_new_parser, __pyx_k_new_parser, sizeof(__pyx_k_new_parser), 1, 1, 1},
24321
26458
  {&__pyx_kp_xml, __pyx_k_xml, sizeof(__pyx_k_xml), 1, 1, 1},
24322
26459
  {&__pyx_kp_parser, __pyx_k_parser, sizeof(__pyx_k_parser), 1, 1, 1},
24328
26465
  {&__pyx_kp__value, __pyx_k__value, sizeof(__pyx_k__value), 1, 1, 1},
24329
26466
  {&__pyx_kp__xsi, __pyx_k__xsi, sizeof(__pyx_k__xsi), 1, 1, 1},
24330
26467
  {&__pyx_kp_root, __pyx_k_root, sizeof(__pyx_k_root), 1, 1, 1},
 
26468
  {&__pyx_kp_677, __pyx_k_677, sizeof(__pyx_k_677), 1, 1, 0},
 
26469
  {&__pyx_kp_678, __pyx_k_678, sizeof(__pyx_k_678), 1, 1, 0},
 
26470
  {&__pyx_kp_679, __pyx_k_679, sizeof(__pyx_k_679), 1, 1, 0},
 
26471
  {&__pyx_kp_680, __pyx_k_680, sizeof(__pyx_k_680), 1, 1, 0},
 
26472
  {&__pyx_kp_681, __pyx_k_681, sizeof(__pyx_k_681), 1, 1, 0},
 
26473
  {&__pyx_kp_682, __pyx_k_682, sizeof(__pyx_k_682), 1, 1, 0},
 
26474
  {&__pyx_kp_683, __pyx_k_683, sizeof(__pyx_k_683), 1, 1, 0},
 
26475
  {&__pyx_kp_684, __pyx_k_684, sizeof(__pyx_k_684), 1, 1, 0},
 
26476
  {&__pyx_kp_685, __pyx_k_685, sizeof(__pyx_k_685), 1, 1, 0},
 
26477
  {&__pyx_kp_686, __pyx_k_686, sizeof(__pyx_k_686), 1, 1, 0},
 
26478
  {&__pyx_kp_687, __pyx_k_687, sizeof(__pyx_k_687), 1, 1, 0},
 
26479
  {&__pyx_kp_688, __pyx_k_688, sizeof(__pyx_k_688), 1, 1, 0},
 
26480
  {&__pyx_kp_689, __pyx_k_689, sizeof(__pyx_k_689), 1, 1, 0},
 
26481
  {&__pyx_kp_690, __pyx_k_690, sizeof(__pyx_k_690), 1, 1, 0},
 
26482
  {&__pyx_kp_691, __pyx_k_691, sizeof(__pyx_k_691), 1, 1, 0},
 
26483
  {&__pyx_kp_692, __pyx_k_692, sizeof(__pyx_k_692), 1, 1, 0},
 
26484
  {&__pyx_kp_693, __pyx_k_693, sizeof(__pyx_k_693), 1, 1, 0},
 
26485
  {&__pyx_kp_694, __pyx_k_694, sizeof(__pyx_k_694), 1, 1, 0},
 
26486
  {&__pyx_kp_695, __pyx_k_695, sizeof(__pyx_k_695), 1, 1, 0},
 
26487
  {&__pyx_kp_696, __pyx_k_696, sizeof(__pyx_k_696), 1, 1, 0},
 
26488
  {&__pyx_kp_697, __pyx_k_697, sizeof(__pyx_k_697), 1, 1, 0},
 
26489
  {&__pyx_kp_698, __pyx_k_698, sizeof(__pyx_k_698), 1, 1, 0},
 
26490
  {&__pyx_kp_699, __pyx_k_699, sizeof(__pyx_k_699), 1, 1, 0},
 
26491
  {&__pyx_kp_700, __pyx_k_700, sizeof(__pyx_k_700), 1, 1, 0},
 
26492
  {&__pyx_kp_701, __pyx_k_701, sizeof(__pyx_k_701), 1, 1, 0},
 
26493
  {&__pyx_kp_702, __pyx_k_702, sizeof(__pyx_k_702), 1, 1, 0},
 
26494
  {&__pyx_kp_703, __pyx_k_703, sizeof(__pyx_k_703), 1, 1, 0},
 
26495
  {&__pyx_kp_704, __pyx_k_704, sizeof(__pyx_k_704), 1, 1, 0},
 
26496
  {&__pyx_kp_705, __pyx_k_705, sizeof(__pyx_k_705), 1, 1, 0},
 
26497
  {&__pyx_kp_706, __pyx_k_706, sizeof(__pyx_k_706), 1, 1, 0},
 
26498
  {&__pyx_kp_707, __pyx_k_707, sizeof(__pyx_k_707), 1, 1, 0},
 
26499
  {&__pyx_kp___all__, __pyx_k___all__, sizeof(__pyx_k___all__), 1, 1, 1},
24331
26500
  {&__pyx_kp_lxml, __pyx_k_lxml, sizeof(__pyx_k_lxml), 1, 1, 1},
24332
26501
  {&__pyx_kp_etree, __pyx_k_etree, sizeof(__pyx_k_etree), 1, 1, 1},
24333
26502
  {&__pyx_kp___version__, __pyx_k___version__, sizeof(__pyx_k___version__), 1, 1, 1},
24334
26503
  {&__pyx_kp_re, __pyx_k_re, sizeof(__pyx_k_re), 1, 1, 1},
24335
 
  {&__pyx_kp___builtin__, __pyx_k___builtin__, sizeof(__pyx_k___builtin__), 1, 1, 1},
24336
 
  {&__pyx_kp_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 1, 1, 1},
24337
 
  {&__pyx_kp_builtins, __pyx_k_builtins, sizeof(__pyx_k_builtins), 1, 1, 1},
24338
 
  {&__pyx_kp_set, __pyx_k_set, sizeof(__pyx_k_set), 1, 1, 1},
24339
 
  {&__pyx_kp_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 1, 1, 1},
24340
 
  {&__pyx_kp_sets, __pyx_k_sets, sizeof(__pyx_k_sets), 1, 1, 1},
24341
 
  {&__pyx_kp_Set, __pyx_k_Set, sizeof(__pyx_k_Set), 1, 1, 1},
24342
26504
  {&__pyx_kp_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 1, 1, 1},
24343
26505
  {&__pyx_kp_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 1, 1, 1},
24344
26506
  {&__pyx_kp_itertools, __pyx_k_itertools, sizeof(__pyx_k_itertools), 1, 1, 1},
24345
26507
  {&__pyx_kp_islice, __pyx_k_islice, sizeof(__pyx_k_islice), 1, 1, 1},
24346
26508
  {&__pyx_kp_PYTYPE_ATTRIBUTE, __pyx_k_PYTYPE_ATTRIBUTE, sizeof(__pyx_k_PYTYPE_ATTRIBUTE), 1, 1, 1},
24347
 
  {&__pyx_kp_642, __pyx_k_642, sizeof(__pyx_k_642), 1, 1, 0},
24348
 
  {&__pyx_kp_643, __pyx_k_643, sizeof(__pyx_k_643), 1, 1, 1},
 
26509
  {&__pyx_kp_708, __pyx_k_708, sizeof(__pyx_k_708), 1, 1, 0},
 
26510
  {&__pyx_kp_709, __pyx_k_709, sizeof(__pyx_k_709), 1, 1, 1},
24349
26511
  {&__pyx_kp_pickleReduceElement, __pyx_k_pickleReduceElement, sizeof(__pyx_k_pickleReduceElement), 1, 1, 1},
24350
 
  {&__pyx_kp_650, __pyx_k_650, sizeof(__pyx_k_650), 1, 1, 1},
 
26512
  {&__pyx_kp_716, __pyx_k_716, sizeof(__pyx_k_716), 1, 1, 1},
 
26513
  {&__pyx_kp_strip_attributes, __pyx_k_strip_attributes, sizeof(__pyx_k_strip_attributes), 1, 1, 1},
24351
26514
  {&__pyx_kp_XMLParser, __pyx_k_XMLParser, sizeof(__pyx_k_XMLParser), 1, 1, 1},
24352
26515
  {&__pyx_kp_remove_blank_text, __pyx_k_remove_blank_text, sizeof(__pyx_k_remove_blank_text), 1, 1, 1},
24353
 
  {&__pyx_kp_659, __pyx_k_659, sizeof(__pyx_k_659), 1, 1, 1},
 
26516
  {&__pyx_kp_726, __pyx_k_726, sizeof(__pyx_k_726), 1, 1, 1},
24354
26517
  {&__pyx_kp_fromstring, __pyx_k_fromstring, sizeof(__pyx_k_fromstring), 1, 1, 1},
24355
26518
  {&__pyx_kp_parse, __pyx_k_parse, sizeof(__pyx_k_parse), 1, 1, 1},
24356
 
  {&__pyx_kp_660, __pyx_k_660, sizeof(__pyx_k_660), 1, 1, 0},
24357
 
  {&__pyx_kp_661, __pyx_k_661, sizeof(__pyx_k_661), 1, 1, 0},
24358
 
  {&__pyx_kp_662, __pyx_k_662, sizeof(__pyx_k_662), 1, 1, 0},
 
26519
  {&__pyx_kp_727, __pyx_k_727, sizeof(__pyx_k_727), 1, 1, 0},
 
26520
  {&__pyx_kp_728, __pyx_k_728, sizeof(__pyx_k_728), 1, 1, 0},
 
26521
  {&__pyx_kp_729, __pyx_k_729, sizeof(__pyx_k_729), 1, 1, 0},
24359
26522
  {&__pyx_kp_E, __pyx_k_E, sizeof(__pyx_k_E), 1, 1, 1},
24360
26523
  {&__pyx_kp_compile, __pyx_k_compile, sizeof(__pyx_k_compile), 1, 1, 1},
24361
26524
  {&__pyx_kp_U, __pyx_k_U, sizeof(__pyx_k_U), 1, 1, 1},
24362
26525
  {&__pyx_kp_match, __pyx_k_match, sizeof(__pyx_k_match), 1, 1, 1},
24363
 
  {&__pyx_kp_665, __pyx_k_665, sizeof(__pyx_k_665), 1, 1, 0},
 
26526
  {&__pyx_kp_732, __pyx_k_732, sizeof(__pyx_k_732), 1, 1, 0},
24364
26527
  {&__pyx_kp_getparent, __pyx_k_getparent, sizeof(__pyx_k_getparent), 1, 1, 1},
24365
 
  {&__pyx_kp_668, __pyx_k_668, sizeof(__pyx_k_668), 1, 1, 1},
24366
 
  {&__pyx_kp_671, __pyx_k_671, sizeof(__pyx_k_671), 1, 1, 0},
24367
 
  {&__pyx_kp_672, __pyx_k_672, sizeof(__pyx_k_672), 1, 1, 0},
24368
 
  {&__pyx_kp_674, __pyx_k_674, sizeof(__pyx_k_674), 1, 1, 0},
24369
 
  {&__pyx_kp_675, __pyx_k_675, sizeof(__pyx_k_675), 1, 1, 0},
 
26528
  {&__pyx_kp_735, __pyx_k_735, sizeof(__pyx_k_735), 1, 1, 1},
 
26529
  {&__pyx_kp_738, __pyx_k_738, sizeof(__pyx_k_738), 1, 1, 0},
 
26530
  {&__pyx_kp_739, __pyx_k_739, sizeof(__pyx_k_739), 1, 1, 0},
 
26531
  {&__pyx_kp_741, __pyx_k_741, sizeof(__pyx_k_741), 1, 1, 0},
 
26532
  {&__pyx_kp_742, __pyx_k_742, sizeof(__pyx_k_742), 1, 1, 0},
24370
26533
  {&__pyx_kp___set__, __pyx_k___set__, sizeof(__pyx_k___set__), 1, 1, 1},
24371
 
  {&__pyx_kp_676, __pyx_k_676, sizeof(__pyx_k_676), 1, 1, 0},
 
26534
  {&__pyx_kp_743, __pyx_k_743, sizeof(__pyx_k_743), 1, 1, 0},
 
26535
  {&__pyx_kp_base, __pyx_k_base, sizeof(__pyx_k_base), 1, 1, 1},
24372
26536
  {&__pyx_kp_remove, __pyx_k_remove, sizeof(__pyx_k_remove), 1, 1, 1},
24373
26537
  {&__pyx_kp_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 1, 1, 1},
24374
26538
  {&__pyx_kp_ETXPath, __pyx_k_ETXPath, sizeof(__pyx_k_ETXPath), 1, 1, 1},
24375
26539
  {&__pyx_kp_text, __pyx_k_text, sizeof(__pyx_k_text), 1, 1, 1},
24376
26540
  {&__pyx_kp_join, __pyx_k_join, sizeof(__pyx_k_join), 1, 1, 1},
 
26541
  {&__pyx_kp_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 1, 1, 1},
24377
26542
  {&__pyx_kp_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 1, 1, 1},
24378
 
  {&__pyx_kp_682, __pyx_k_682, sizeof(__pyx_k_682), 1, 1, 0},
24379
 
  {&__pyx_kp_683, __pyx_k_683, sizeof(__pyx_k_683), 1, 1, 0},
24380
 
  {&__pyx_kp_684, __pyx_k_684, sizeof(__pyx_k_684), 1, 1, 0},
 
26543
  {&__pyx_kp_749, __pyx_k_749, sizeof(__pyx_k_749), 1, 1, 0},
 
26544
  {&__pyx_kp_751, __pyx_k_751, sizeof(__pyx_k_751), 1, 1, 0},
24381
26545
  {&__pyx_kp_addnext, __pyx_k_addnext, sizeof(__pyx_k_addnext), 1, 1, 1},
24382
26546
  {&__pyx_kp_oct, __pyx_k_oct, sizeof(__pyx_k_oct), 1, 1, 1},
24383
26547
  {&__pyx_kp_hex, __pyx_k_hex, sizeof(__pyx_k_hex), 1, 1, 1},
24384
 
  {&__pyx_kp_692, __pyx_k_692, sizeof(__pyx_k_692), 1, 1, 0},
24385
 
  {&__pyx_kp_693, __pyx_k_693, sizeof(__pyx_k_693), 1, 1, 0},
24386
 
  {&__pyx_kp_lower, __pyx_k_lower, sizeof(__pyx_k_lower), 1, 1, 1},
24387
 
  {&__pyx_kp_697, __pyx_k_697, sizeof(__pyx_k_697), 1, 1, 0},
24388
 
  {&__pyx_kp_698, __pyx_k_698, sizeof(__pyx_k_698), 1, 1, 0},
24389
 
  {&__pyx_kp_699, __pyx_k_699, sizeof(__pyx_k_699), 1, 1, 0},
24390
 
  {&__pyx_kp_700, __pyx_k_700, sizeof(__pyx_k_700), 1, 1, 0},
24391
 
  {&__pyx_kp_703, __pyx_k_703, sizeof(__pyx_k_703), 1, 1, 0},
 
26548
  {&__pyx_kp_759, __pyx_k_759, sizeof(__pyx_k_759), 1, 1, 0},
 
26549
  {&__pyx_kp_760, __pyx_k_760, sizeof(__pyx_k_760), 1, 1, 0},
 
26550
  {&__pyx_kp_762, __pyx_k_762, sizeof(__pyx_k_762), 1, 1, 0},
 
26551
  {&__pyx_kp_763, __pyx_k_763, sizeof(__pyx_k_763), 1, 1, 0},
 
26552
  {&__pyx_kp_768, __pyx_k_768, sizeof(__pyx_k_768), 1, 1, 0},
24392
26553
  {&__pyx_kp_pyval, __pyx_k_pyval, sizeof(__pyx_k_pyval), 1, 1, 1},
24393
 
  {&__pyx_kp_704, __pyx_k_704, sizeof(__pyx_k_704), 1, 1, 0},
24394
 
  {&__pyx_kp_705, __pyx_k_705, sizeof(__pyx_k_705), 1, 1, 0},
 
26554
  {&__pyx_kp_769, __pyx_k_769, sizeof(__pyx_k_769), 1, 1, 0},
 
26555
  {&__pyx_kp_770, __pyx_k_770, sizeof(__pyx_k_770), 1, 1, 0},
24395
26556
  {&__pyx_kp___name__, __pyx_k___name__, sizeof(__pyx_k___name__), 1, 1, 1},
24396
26557
  {&__pyx_kp_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 1, 1, 1},
24397
 
  {&__pyx_kp_append, __pyx_k_append, sizeof(__pyx_k_append), 1, 1, 1},
24398
 
  {&__pyx_kp_insert, __pyx_k_insert, sizeof(__pyx_k_insert), 1, 1, 1},
24399
26558
  {&__pyx_kp_get, __pyx_k_get, sizeof(__pyx_k_get), 1, 1, 1},
24400
 
  {&__pyx_kp_items, __pyx_k_items, sizeof(__pyx_k_items), 1, 1, 1},
24401
26559
  {&__pyx_kp_map, __pyx_k_map, sizeof(__pyx_k_map), 1, 1, 1},
24402
 
  {&__pyx_kp_713, __pyx_k_713, sizeof(__pyx_k_713), 1, 1, 0},
24403
 
  {&__pyx_kp_714, __pyx_k_714, sizeof(__pyx_k_714), 1, 1, 0},
24404
 
  {&__pyx_kp_715, __pyx_k_715, sizeof(__pyx_k_715), 1, 1, 0},
24405
 
  {&__pyx_kp_716, __pyx_k_716, sizeof(__pyx_k_716), 1, 1, 0},
24406
 
  {&__pyx_kp_717, __pyx_k_717, sizeof(__pyx_k_717), 1, 1, 0},
24407
 
  {&__pyx_kp_718, __pyx_k_718, sizeof(__pyx_k_718), 1, 1, 0},
24408
 
  {&__pyx_kp_719, __pyx_k_719, sizeof(__pyx_k_719), 1, 1, 0},
24409
 
  {&__pyx_kp_720, __pyx_k_720, sizeof(__pyx_k_720), 1, 1, 0},
24410
 
  {&__pyx_kp_721, __pyx_k_721, sizeof(__pyx_k_721), 1, 1, 0},
24411
 
  {&__pyx_kp_722, __pyx_k_722, sizeof(__pyx_k_722), 1, 1, 0},
24412
 
  {&__pyx_kp_723, __pyx_k_723, sizeof(__pyx_k_723), 1, 1, 0},
24413
 
  {&__pyx_kp_724, __pyx_k_724, sizeof(__pyx_k_724), 1, 1, 0},
24414
 
  {&__pyx_kp_725, __pyx_k_725, sizeof(__pyx_k_725), 1, 1, 0},
24415
 
  {&__pyx_kp_726, __pyx_k_726, sizeof(__pyx_k_726), 1, 1, 0},
24416
 
  {&__pyx_kp_727, __pyx_k_727, sizeof(__pyx_k_727), 1, 1, 0},
24417
 
  {&__pyx_kp_728, __pyx_k_728, sizeof(__pyx_k_728), 1, 1, 0},
24418
 
  {&__pyx_kp_729, __pyx_k_729, sizeof(__pyx_k_729), 1, 1, 0},
 
26560
  {&__pyx_kp_778, __pyx_k_778, sizeof(__pyx_k_778), 1, 1, 0},
 
26561
  {&__pyx_kp_779, __pyx_k_779, sizeof(__pyx_k_779), 1, 1, 0},
 
26562
  {&__pyx_kp_780, __pyx_k_780, sizeof(__pyx_k_780), 1, 1, 0},
 
26563
  {&__pyx_kp_781, __pyx_k_781, sizeof(__pyx_k_781), 1, 1, 0},
 
26564
  {&__pyx_kp_782, __pyx_k_782, sizeof(__pyx_k_782), 1, 1, 0},
 
26565
  {&__pyx_kp_783, __pyx_k_783, sizeof(__pyx_k_783), 1, 1, 0},
 
26566
  {&__pyx_kp_784, __pyx_k_784, sizeof(__pyx_k_784), 1, 1, 0},
 
26567
  {&__pyx_kp_785, __pyx_k_785, sizeof(__pyx_k_785), 1, 1, 0},
 
26568
  {&__pyx_kp_786, __pyx_k_786, sizeof(__pyx_k_786), 1, 1, 0},
 
26569
  {&__pyx_kp_787, __pyx_k_787, sizeof(__pyx_k_787), 1, 1, 0},
 
26570
  {&__pyx_kp_788, __pyx_k_788, sizeof(__pyx_k_788), 1, 1, 0},
 
26571
  {&__pyx_kp_789, __pyx_k_789, sizeof(__pyx_k_789), 1, 1, 0},
 
26572
  {&__pyx_kp_790, __pyx_k_790, sizeof(__pyx_k_790), 1, 1, 0},
 
26573
  {&__pyx_kp_791, __pyx_k_791, sizeof(__pyx_k_791), 1, 1, 0},
 
26574
  {&__pyx_kp_792, __pyx_k_792, sizeof(__pyx_k_792), 1, 1, 0},
 
26575
  {&__pyx_kp_793, __pyx_k_793, sizeof(__pyx_k_793), 1, 1, 0},
 
26576
  {&__pyx_kp_794, __pyx_k_794, sizeof(__pyx_k_794), 1, 1, 0},
24419
26577
  {&__pyx_kp_xmlSchemaTypes, __pyx_k_xmlSchemaTypes, sizeof(__pyx_k_xmlSchemaTypes), 1, 1, 1},
24420
 
  {&__pyx_kp_730, __pyx_k_730, sizeof(__pyx_k_730), 1, 1, 0},
24421
 
  {&__pyx_kp_731, __pyx_k_731, sizeof(__pyx_k_731), 1, 1, 0},
24422
 
  {&__pyx_kp_732, __pyx_k_732, sizeof(__pyx_k_732), 1, 1, 0},
24423
 
  {&__pyx_kp_733, __pyx_k_733, sizeof(__pyx_k_733), 1, 1, 0},
24424
 
  {&__pyx_kp_734, __pyx_k_734, sizeof(__pyx_k_734), 1, 1, 0},
 
26578
  {&__pyx_kp_795, __pyx_k_795, sizeof(__pyx_k_795), 1, 1, 0},
 
26579
  {&__pyx_kp_796, __pyx_k_796, sizeof(__pyx_k_796), 1, 1, 0},
 
26580
  {&__pyx_kp_797, __pyx_k_797, sizeof(__pyx_k_797), 1, 1, 0},
 
26581
  {&__pyx_kp_798, __pyx_k_798, sizeof(__pyx_k_798), 1, 1, 0},
 
26582
  {&__pyx_kp_799, __pyx_k_799, sizeof(__pyx_k_799), 1, 1, 0},
24425
26583
  {&__pyx_kp___checkBool, __pyx_k___checkBool, sizeof(__pyx_k___checkBool), 1, 1, 1},
24426
26584
  {&__pyx_kp___lower_bool, __pyx_k___lower_bool, sizeof(__pyx_k___lower_bool), 1, 1, 1},
24427
 
  {&__pyx_kp_735, __pyx_k_735, sizeof(__pyx_k_735), 1, 1, 0},
24428
 
  {&__pyx_kp_736, __pyx_k_736, sizeof(__pyx_k_736), 1, 1, 0},
24429
 
  {&__pyx_kp_737, __pyx_k_737, sizeof(__pyx_k_737), 1, 1, 0},
24430
 
  {&__pyx_kp_738, __pyx_k_738, sizeof(__pyx_k_738), 1, 1, 0},
24431
 
  {&__pyx_kp_739, __pyx_k_739, sizeof(__pyx_k_739), 1, 1, 0},
24432
 
  {&__pyx_kp_740, __pyx_k_740, sizeof(__pyx_k_740), 1, 1, 0},
24433
 
  {&__pyx_kp_741, __pyx_k_741, sizeof(__pyx_k_741), 1, 1, 0},
24434
 
  {&__pyx_kp_742, __pyx_k_742, sizeof(__pyx_k_742), 1, 1, 0},
24435
 
  {&__pyx_kp_743, __pyx_k_743, sizeof(__pyx_k_743), 1, 1, 0},
24436
 
  {&__pyx_kp_744, __pyx_k_744, sizeof(__pyx_k_744), 1, 1, 0},
24437
 
  {&__pyx_kp_745, __pyx_k_745, sizeof(__pyx_k_745), 1, 1, 0},
24438
 
  {&__pyx_kp_746, __pyx_k_746, sizeof(__pyx_k_746), 1, 1, 0},
24439
 
  {&__pyx_kp_747, __pyx_k_747, sizeof(__pyx_k_747), 1, 1, 0},
24440
 
  {&__pyx_kp_748, __pyx_k_748, sizeof(__pyx_k_748), 1, 1, 0},
24441
 
  {&__pyx_kp_add, __pyx_k_add, sizeof(__pyx_k_add), 1, 1, 1},
24442
 
  {&__pyx_kp_values, __pyx_k_values, sizeof(__pyx_k_values), 1, 1, 1},
24443
 
  {&__pyx_kp_752, __pyx_k_752, sizeof(__pyx_k_752), 1, 1, 0},
24444
 
  {&__pyx_kp_753, __pyx_k_753, sizeof(__pyx_k_753), 1, 1, 0},
 
26585
  {&__pyx_kp_800, __pyx_k_800, sizeof(__pyx_k_800), 1, 1, 0},
 
26586
  {&__pyx_kp_801, __pyx_k_801, sizeof(__pyx_k_801), 1, 1, 0},
 
26587
  {&__pyx_kp_802, __pyx_k_802, sizeof(__pyx_k_802), 1, 1, 0},
 
26588
  {&__pyx_kp_803, __pyx_k_803, sizeof(__pyx_k_803), 1, 1, 0},
 
26589
  {&__pyx_kp_804, __pyx_k_804, sizeof(__pyx_k_804), 1, 1, 0},
 
26590
  {&__pyx_kp_805, __pyx_k_805, sizeof(__pyx_k_805), 1, 1, 0},
 
26591
  {&__pyx_kp_806, __pyx_k_806, sizeof(__pyx_k_806), 1, 1, 0},
 
26592
  {&__pyx_kp_807, __pyx_k_807, sizeof(__pyx_k_807), 1, 1, 0},
 
26593
  {&__pyx_kp_808, __pyx_k_808, sizeof(__pyx_k_808), 1, 1, 0},
 
26594
  {&__pyx_kp_809, __pyx_k_809, sizeof(__pyx_k_809), 1, 1, 0},
 
26595
  {&__pyx_kp_810, __pyx_k_810, sizeof(__pyx_k_810), 1, 1, 0},
 
26596
  {&__pyx_kp_811, __pyx_k_811, sizeof(__pyx_k_811), 1, 1, 0},
 
26597
  {&__pyx_kp_812, __pyx_k_812, sizeof(__pyx_k_812), 1, 1, 0},
 
26598
  {&__pyx_kp_813, __pyx_k_813, sizeof(__pyx_k_813), 1, 1, 0},
 
26599
  {&__pyx_kp_817, __pyx_k_817, sizeof(__pyx_k_817), 1, 1, 0},
 
26600
  {&__pyx_kp_818, __pyx_k_818, sizeof(__pyx_k_818), 1, 1, 0},
24445
26601
  {&__pyx_kp_strip, __pyx_k_strip, sizeof(__pyx_k_strip), 1, 1, 1},
24446
26602
  {&__pyx_kp_iterchildren, __pyx_k_iterchildren, sizeof(__pyx_k_iterchildren), 1, 1, 1},
24447
26603
  {&__pyx_kp_ElementTree, __pyx_k_ElementTree, sizeof(__pyx_k_ElementTree), 1, 1, 1},
24448
26604
  {&__pyx_kp_copyreg, __pyx_k_copyreg, sizeof(__pyx_k_copyreg), 1, 1, 1},
24449
26605
  {&__pyx_kp_copy_reg, __pyx_k_copy_reg, sizeof(__pyx_k_copy_reg), 1, 1, 1},
24450
26606
  {&__pyx_kp_constructor, __pyx_k_constructor, sizeof(__pyx_k_constructor), 1, 1, 1},
24451
 
  {&__pyx_kp_762, __pyx_k_762, sizeof(__pyx_k_762), 1, 1, 1},
 
26607
  {&__pyx_kp_827, __pyx_k_827, sizeof(__pyx_k_827), 1, 1, 1},
24452
26608
  {&__pyx_kp_pickle, __pyx_k_pickle, sizeof(__pyx_k_pickle), 1, 1, 1},
24453
26609
  {&__pyx_kp__ElementTree, __pyx_k__ElementTree, sizeof(__pyx_k__ElementTree), 1, 1, 1},
24454
26610
  {&__pyx_kp_tostring, __pyx_k_tostring, sizeof(__pyx_k_tostring), 1, 1, 1},
24455
 
  {&__pyx_kp_763, __pyx_k_763, sizeof(__pyx_k_763), 1, 1, 0},
 
26611
  {&__pyx_kp_828, __pyx_k_828, sizeof(__pyx_k_828), 1, 1, 0},
24456
26612
  {&__pyx_kp_split, __pyx_k_split, sizeof(__pyx_k_split), 1, 1, 1},
24457
 
  {&__pyx_kp_770, __pyx_k_770, sizeof(__pyx_k_770), 1, 1, 0},
24458
 
  {&__pyx_kp_771, __pyx_k_771, sizeof(__pyx_k_771), 1, 1, 0},
24459
 
  {&__pyx_kp_773, __pyx_k_773, sizeof(__pyx_k_773), 1, 1, 0},
24460
 
  {&__pyx_kp_777, __pyx_k_777, sizeof(__pyx_k_777), 1, 1, 0},
24461
 
  {&__pyx_kp_778, __pyx_k_778, sizeof(__pyx_k_778), 1, 1, 0},
24462
 
  {&__pyx_kp_794, __pyx_k_794, sizeof(__pyx_k_794), 1, 1, 0},
24463
 
  {&__pyx_kp_795, __pyx_k_795, sizeof(__pyx_k_795), 0, 1, 0},
 
26613
  {&__pyx_kp_835, __pyx_k_835, sizeof(__pyx_k_835), 1, 1, 0},
 
26614
  {&__pyx_kp_836, __pyx_k_836, sizeof(__pyx_k_836), 1, 1, 0},
 
26615
  {&__pyx_kp_838, __pyx_k_838, sizeof(__pyx_k_838), 1, 1, 0},
 
26616
  {&__pyx_kp_842, __pyx_k_842, sizeof(__pyx_k_842), 1, 1, 0},
 
26617
  {&__pyx_kp_843, __pyx_k_843, sizeof(__pyx_k_843), 1, 1, 0},
 
26618
  {&__pyx_kp_857, __pyx_k_857, sizeof(__pyx_k_857), 1, 1, 0},
 
26619
  {&__pyx_kp_858, __pyx_k_858, sizeof(__pyx_k_858), 0, 1, 0},
24464
26620
  {&__pyx_kp_update, __pyx_k_update, sizeof(__pyx_k_update), 1, 1, 1},
24465
26621
  {&__pyx_kp___copy__, __pyx_k___copy__, sizeof(__pyx_k___copy__), 1, 1, 1},
24466
 
  {&__pyx_kp_802, __pyx_k_802, sizeof(__pyx_k_802), 1, 1, 0},
24467
 
  {&__pyx_kp_803, __pyx_k_803, sizeof(__pyx_k_803), 1, 1, 0},
24468
 
  {&__pyx_kp_804, __pyx_k_804, sizeof(__pyx_k_804), 1, 1, 0},
24469
 
  {&__pyx_kp_805, __pyx_k_805, sizeof(__pyx_k_805), 1, 1, 0},
24470
 
  {&__pyx_kp_806, __pyx_k_806, sizeof(__pyx_k_806), 1, 1, 0},
24471
 
  {&__pyx_kp_807, __pyx_k_807, sizeof(__pyx_k_807), 1, 1, 0},
24472
 
  {&__pyx_kp_808, __pyx_k_808, sizeof(__pyx_k_808), 1, 1, 0},
24473
 
  {&__pyx_kp_809, __pyx_k_809, sizeof(__pyx_k_809), 1, 1, 0},
 
26622
  {&__pyx_kp_items, __pyx_k_items, sizeof(__pyx_k_items), 1, 1, 1},
 
26623
  {&__pyx_kp_865, __pyx_k_865, sizeof(__pyx_k_865), 1, 1, 0},
 
26624
  {&__pyx_kp_866, __pyx_k_866, sizeof(__pyx_k_866), 1, 1, 0},
 
26625
  {&__pyx_kp_867, __pyx_k_867, sizeof(__pyx_k_867), 1, 1, 0},
 
26626
  {&__pyx_kp_868, __pyx_k_868, sizeof(__pyx_k_868), 1, 1, 0},
 
26627
  {&__pyx_kp_869, __pyx_k_869, sizeof(__pyx_k_869), 1, 1, 0},
 
26628
  {&__pyx_kp_870, __pyx_k_870, sizeof(__pyx_k_870), 1, 1, 0},
 
26629
  {&__pyx_kp_871, __pyx_k_871, sizeof(__pyx_k_871), 1, 1, 0},
 
26630
  {&__pyx_kp_872, __pyx_k_872, sizeof(__pyx_k_872), 1, 1, 0},
24474
26631
  {&__pyx_kp_groups, __pyx_k_groups, sizeof(__pyx_k_groups), 1, 1, 1},
24475
26632
  {&__pyx_kp_end, __pyx_k_end, sizeof(__pyx_k_end), 1, 1, 1},
24476
 
  {&__pyx_kp_644, __pyx_k_644, sizeof(__pyx_k_644), 1, 0, 0},
24477
 
  {&__pyx_kp_645, __pyx_k_645, sizeof(__pyx_k_645), 1, 0, 0},
24478
 
  {&__pyx_kp_646, __pyx_k_646, sizeof(__pyx_k_646), 1, 0, 0},
24479
 
  {&__pyx_kp_647, __pyx_k_647, sizeof(__pyx_k_647), 1, 0, 0},
24480
 
  {&__pyx_kp_663, __pyx_k_663, sizeof(__pyx_k_663), 1, 0, 0},
24481
 
  {&__pyx_kp_664, __pyx_k_664, sizeof(__pyx_k_664), 1, 0, 0},
24482
 
  {&__pyx_kp_669, __pyx_k_669, sizeof(__pyx_k_669), 1, 0, 0},
24483
 
  {&__pyx_kp_670, __pyx_k_670, sizeof(__pyx_k_670), 1, 0, 0},
24484
 
  {&__pyx_kp_673, __pyx_k_673, sizeof(__pyx_k_673), 1, 0, 0},
24485
 
  {&__pyx_kp_677, __pyx_k_677, sizeof(__pyx_k_677), 1, 0, 0},
24486
 
  {&__pyx_kp_678, __pyx_k_678, sizeof(__pyx_k_678), 1, 0, 0},
24487
 
  {&__pyx_kp_679, __pyx_k_679, sizeof(__pyx_k_679), 1, 0, 0},
24488
 
  {&__pyx_kp_680, __pyx_k_680, sizeof(__pyx_k_680), 1, 0, 0},
24489
 
  {&__pyx_kp_681, __pyx_k_681, sizeof(__pyx_k_681), 1, 0, 0},
24490
 
  {&__pyx_kp_685, __pyx_k_685, sizeof(__pyx_k_685), 1, 0, 0},
24491
 
  {&__pyx_kp_686, __pyx_k_686, sizeof(__pyx_k_686), 1, 0, 0},
24492
 
  {&__pyx_kp_687, __pyx_k_687, sizeof(__pyx_k_687), 1, 0, 0},
24493
 
  {&__pyx_kp_688, __pyx_k_688, sizeof(__pyx_k_688), 1, 0, 0},
24494
 
  {&__pyx_kp_689, __pyx_k_689, sizeof(__pyx_k_689), 1, 0, 0},
24495
 
  {&__pyx_kp_690, __pyx_k_690, sizeof(__pyx_k_690), 1, 0, 0},
24496
 
  {&__pyx_kp_691, __pyx_k_691, sizeof(__pyx_k_691), 1, 0, 0},
24497
 
  {&__pyx_kp_694, __pyx_k_694, sizeof(__pyx_k_694), 1, 0, 0},
24498
 
  {&__pyx_kp_695, __pyx_k_695, sizeof(__pyx_k_695), 1, 0, 0},
24499
 
  {&__pyx_kp_696, __pyx_k_696, sizeof(__pyx_k_696), 1, 0, 0},
24500
 
  {&__pyx_kp_701, __pyx_k_701, sizeof(__pyx_k_701), 1, 0, 0},
24501
 
  {&__pyx_kp_702, __pyx_k_702, sizeof(__pyx_k_702), 1, 0, 0},
24502
 
  {&__pyx_kp_707, __pyx_k_707, sizeof(__pyx_k_707), 1, 0, 0},
24503
 
  {&__pyx_kp_708, __pyx_k_708, sizeof(__pyx_k_708), 1, 0, 0},
24504
 
  {&__pyx_kp_709, __pyx_k_709, sizeof(__pyx_k_709), 1, 0, 0},
24505
26633
  {&__pyx_kp_710, __pyx_k_710, sizeof(__pyx_k_710), 1, 0, 0},
24506
26634
  {&__pyx_kp_711, __pyx_k_711, sizeof(__pyx_k_711), 1, 0, 0},
24507
26635
  {&__pyx_kp_712, __pyx_k_712, sizeof(__pyx_k_712), 1, 0, 0},
24508
 
  {&__pyx_kp_749, __pyx_k_749, sizeof(__pyx_k_749), 1, 0, 0},
24509
 
  {&__pyx_kp_750, __pyx_k_750, sizeof(__pyx_k_750), 1, 0, 0},
24510
 
  {&__pyx_kp_751, __pyx_k_751, sizeof(__pyx_k_751), 1, 0, 0},
 
26636
  {&__pyx_kp_713, __pyx_k_713, sizeof(__pyx_k_713), 1, 0, 0},
 
26637
  {&__pyx_kp_730, __pyx_k_730, sizeof(__pyx_k_730), 1, 0, 0},
 
26638
  {&__pyx_kp_731, __pyx_k_731, sizeof(__pyx_k_731), 1, 0, 0},
 
26639
  {&__pyx_kp_736, __pyx_k_736, sizeof(__pyx_k_736), 1, 0, 0},
 
26640
  {&__pyx_kp_737, __pyx_k_737, sizeof(__pyx_k_737), 1, 0, 0},
 
26641
  {&__pyx_kp_740, __pyx_k_740, sizeof(__pyx_k_740), 1, 0, 0},
 
26642
  {&__pyx_kp_744, __pyx_k_744, sizeof(__pyx_k_744), 1, 0, 0},
 
26643
  {&__pyx_kp_745, __pyx_k_745, sizeof(__pyx_k_745), 1, 0, 0},
 
26644
  {&__pyx_kp_746, __pyx_k_746, sizeof(__pyx_k_746), 1, 0, 0},
 
26645
  {&__pyx_kp_747, __pyx_k_747, sizeof(__pyx_k_747), 1, 0, 0},
 
26646
  {&__pyx_kp_748, __pyx_k_748, sizeof(__pyx_k_748), 1, 0, 0},
 
26647
  {&__pyx_kp_752, __pyx_k_752, sizeof(__pyx_k_752), 1, 0, 0},
 
26648
  {&__pyx_kp_753, __pyx_k_753, sizeof(__pyx_k_753), 1, 0, 0},
24511
26649
  {&__pyx_kp_754, __pyx_k_754, sizeof(__pyx_k_754), 1, 0, 0},
24512
26650
  {&__pyx_kp_755, __pyx_k_755, sizeof(__pyx_k_755), 1, 0, 0},
24513
26651
  {&__pyx_kp_756, __pyx_k_756, sizeof(__pyx_k_756), 1, 0, 0},
24514
26652
  {&__pyx_kp_757, __pyx_k_757, sizeof(__pyx_k_757), 1, 0, 0},
24515
26653
  {&__pyx_kp_758, __pyx_k_758, sizeof(__pyx_k_758), 1, 0, 0},
24516
 
  {&__pyx_kp_759, __pyx_k_759, sizeof(__pyx_k_759), 1, 0, 0},
24517
 
  {&__pyx_kp_760, __pyx_k_760, sizeof(__pyx_k_760), 1, 0, 0},
24518
26654
  {&__pyx_kp_761, __pyx_k_761, sizeof(__pyx_k_761), 1, 0, 0},
 
26655
  {&__pyx_kp_764, __pyx_k_764, sizeof(__pyx_k_764), 1, 0, 0},
 
26656
  {&__pyx_kp_765, __pyx_k_765, sizeof(__pyx_k_765), 1, 0, 0},
24519
26657
  {&__pyx_kp_766, __pyx_k_766, sizeof(__pyx_k_766), 1, 0, 0},
24520
26658
  {&__pyx_kp_767, __pyx_k_767, sizeof(__pyx_k_767), 1, 0, 0},
 
26659
  {&__pyx_kp_772, __pyx_k_772, sizeof(__pyx_k_772), 1, 0, 0},
 
26660
  {&__pyx_kp_773, __pyx_k_773, sizeof(__pyx_k_773), 1, 0, 0},
 
26661
  {&__pyx_kp_774, __pyx_k_774, sizeof(__pyx_k_774), 1, 0, 0},
24521
26662
  {&__pyx_kp_775, __pyx_k_775, sizeof(__pyx_k_775), 1, 0, 0},
24522
26663
  {&__pyx_kp_776, __pyx_k_776, sizeof(__pyx_k_776), 1, 0, 0},
24523
 
  {&__pyx_kp_781, __pyx_k_781, sizeof(__pyx_k_781), 0, 0, 0},
24524
 
  {&__pyx_kp_782, __pyx_k_782, sizeof(__pyx_k_782), 0, 0, 0},
24525
 
  {&__pyx_kp_783, __pyx_k_783, sizeof(__pyx_k_783), 0, 0, 0},
24526
 
  {&__pyx_kp_784, __pyx_k_784, sizeof(__pyx_k_784), 0, 0, 0},
24527
 
  {&__pyx_kp_793, __pyx_k_793, sizeof(__pyx_k_793), 1, 0, 0},
24528
 
  {&__pyx_kp_796, __pyx_k_796, sizeof(__pyx_k_796), 1, 0, 0},
24529
 
  {&__pyx_kp_797, __pyx_k_797, sizeof(__pyx_k_797), 1, 0, 0},
24530
 
  {&__pyx_kp_798, __pyx_k_798, sizeof(__pyx_k_798), 1, 0, 0},
24531
 
  {&__pyx_kp_799, __pyx_k_799, sizeof(__pyx_k_799), 1, 0, 0},
24532
 
  {&__pyx_kp_800, __pyx_k_800, sizeof(__pyx_k_800), 1, 0, 0},
24533
 
  {&__pyx_kp_801, __pyx_k_801, sizeof(__pyx_k_801), 1, 0, 0},
24534
 
  {&__pyx_kp_810, __pyx_k_810, sizeof(__pyx_k_810), 1, 0, 0},
24535
 
  {&__pyx_kp_811, __pyx_k_811, sizeof(__pyx_k_811), 1, 0, 0},
24536
 
  {&__pyx_kp_813, __pyx_k_813, sizeof(__pyx_k_813), 1, 0, 0},
 
26664
  {&__pyx_kp_777, __pyx_k_777, sizeof(__pyx_k_777), 1, 0, 0},
24537
26665
  {&__pyx_kp_814, __pyx_k_814, sizeof(__pyx_k_814), 1, 0, 0},
24538
26666
  {&__pyx_kp_815, __pyx_k_815, sizeof(__pyx_k_815), 1, 0, 0},
24539
26667
  {&__pyx_kp_816, __pyx_k_816, sizeof(__pyx_k_816), 1, 0, 0},
24540
 
  {&__pyx_kp_817, __pyx_k_817, sizeof(__pyx_k_817), 1, 0, 0},
24541
 
  {&__pyx_kp_818, __pyx_k_818, sizeof(__pyx_k_818), 1, 0, 0},
24542
26668
  {&__pyx_kp_819, __pyx_k_819, sizeof(__pyx_k_819), 1, 0, 0},
24543
26669
  {&__pyx_kp_820, __pyx_k_820, sizeof(__pyx_k_820), 1, 0, 0},
24544
26670
  {&__pyx_kp_821, __pyx_k_821, sizeof(__pyx_k_821), 1, 0, 0},
24547
26673
  {&__pyx_kp_824, __pyx_k_824, sizeof(__pyx_k_824), 1, 0, 0},
24548
26674
  {&__pyx_kp_825, __pyx_k_825, sizeof(__pyx_k_825), 1, 0, 0},
24549
26675
  {&__pyx_kp_826, __pyx_k_826, sizeof(__pyx_k_826), 1, 0, 0},
24550
 
  {&__pyx_kp_827, __pyx_k_827, sizeof(__pyx_k_827), 1, 0, 0},
24551
 
  {&__pyx_kp_828, __pyx_k_828, sizeof(__pyx_k_828), 1, 0, 0},
24552
 
  {&__pyx_kp_829, __pyx_k_829, sizeof(__pyx_k_829), 1, 0, 0},
24553
 
  {&__pyx_kp_830, __pyx_k_830, sizeof(__pyx_k_830), 1, 0, 0},
24554
26676
  {&__pyx_kp_831, __pyx_k_831, sizeof(__pyx_k_831), 1, 0, 0},
 
26677
  {&__pyx_kp_832, __pyx_k_832, sizeof(__pyx_k_832), 1, 0, 0},
 
26678
  {&__pyx_kp_840, __pyx_k_840, sizeof(__pyx_k_840), 1, 0, 0},
 
26679
  {&__pyx_kp_841, __pyx_k_841, sizeof(__pyx_k_841), 1, 0, 0},
 
26680
  {&__pyx_kp_846, __pyx_k_846, sizeof(__pyx_k_846), 0, 0, 0},
 
26681
  {&__pyx_kp_847, __pyx_k_847, sizeof(__pyx_k_847), 0, 0, 0},
 
26682
  {&__pyx_kp_848, __pyx_k_848, sizeof(__pyx_k_848), 0, 0, 0},
 
26683
  {&__pyx_kp_849, __pyx_k_849, sizeof(__pyx_k_849), 0, 0, 0},
 
26684
  {&__pyx_kp_856, __pyx_k_856, sizeof(__pyx_k_856), 1, 0, 0},
 
26685
  {&__pyx_kp_859, __pyx_k_859, sizeof(__pyx_k_859), 1, 0, 0},
 
26686
  {&__pyx_kp_860, __pyx_k_860, sizeof(__pyx_k_860), 1, 0, 0},
 
26687
  {&__pyx_kp_861, __pyx_k_861, sizeof(__pyx_k_861), 1, 0, 0},
 
26688
  {&__pyx_kp_862, __pyx_k_862, sizeof(__pyx_k_862), 1, 0, 0},
 
26689
  {&__pyx_kp_863, __pyx_k_863, sizeof(__pyx_k_863), 1, 0, 0},
 
26690
  {&__pyx_kp_864, __pyx_k_864, sizeof(__pyx_k_864), 1, 0, 0},
 
26691
  {&__pyx_kp_873, __pyx_k_873, sizeof(__pyx_k_873), 1, 0, 0},
 
26692
  {&__pyx_kp_874, __pyx_k_874, sizeof(__pyx_k_874), 1, 0, 0},
 
26693
  {&__pyx_kp_876, __pyx_k_876, sizeof(__pyx_k_876), 1, 0, 0},
 
26694
  {&__pyx_kp_877, __pyx_k_877, sizeof(__pyx_k_877), 1, 0, 0},
 
26695
  {&__pyx_kp_878, __pyx_k_878, sizeof(__pyx_k_878), 1, 0, 0},
 
26696
  {&__pyx_kp_879, __pyx_k_879, sizeof(__pyx_k_879), 1, 0, 0},
 
26697
  {&__pyx_kp_880, __pyx_k_880, sizeof(__pyx_k_880), 1, 0, 0},
 
26698
  {&__pyx_kp_881, __pyx_k_881, sizeof(__pyx_k_881), 1, 0, 0},
 
26699
  {&__pyx_kp_882, __pyx_k_882, sizeof(__pyx_k_882), 1, 0, 0},
 
26700
  {&__pyx_kp_883, __pyx_k_883, sizeof(__pyx_k_883), 1, 0, 0},
 
26701
  {&__pyx_kp_884, __pyx_k_884, sizeof(__pyx_k_884), 1, 0, 0},
 
26702
  {&__pyx_kp_885, __pyx_k_885, sizeof(__pyx_k_885), 1, 0, 0},
 
26703
  {&__pyx_kp_886, __pyx_k_886, sizeof(__pyx_k_886), 1, 0, 0},
 
26704
  {&__pyx_kp_887, __pyx_k_887, sizeof(__pyx_k_887), 1, 0, 0},
 
26705
  {&__pyx_kp_888, __pyx_k_888, sizeof(__pyx_k_888), 1, 0, 0},
 
26706
  {&__pyx_kp_889, __pyx_k_889, sizeof(__pyx_k_889), 1, 0, 0},
 
26707
  {&__pyx_kp_890, __pyx_k_890, sizeof(__pyx_k_890), 1, 0, 0},
 
26708
  {&__pyx_kp_891, __pyx_k_891, sizeof(__pyx_k_891), 1, 0, 0},
 
26709
  {&__pyx_kp_892, __pyx_k_892, sizeof(__pyx_k_892), 1, 0, 0},
 
26710
  {&__pyx_kp_893, __pyx_k_893, sizeof(__pyx_k_893), 1, 0, 0},
 
26711
  {&__pyx_kp_894, __pyx_k_894, sizeof(__pyx_k_894), 1, 0, 0},
24555
26712
  {0, 0, 0, 0, 0, 0}
24556
26713
};
24557
26714
static int __Pyx_InitCachedBuiltins(void) {
24558
 
  __pyx_builtin_ImportError = __Pyx_GetName(__pyx_b, __pyx_kp_ImportError); if (!__pyx_builtin_ImportError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24559
 
  __pyx_builtin_AttributeError = __Pyx_GetName(__pyx_b, __pyx_kp_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24560
 
  __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_kp_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24561
 
  __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_kp_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24562
 
  __pyx_builtin_IndexError = __Pyx_GetName(__pyx_b, __pyx_kp_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24563
 
  __pyx_builtin_oct = __Pyx_GetName(__pyx_b, __pyx_kp_oct); if (!__pyx_builtin_oct) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24564
 
  __pyx_builtin_hex = __Pyx_GetName(__pyx_b, __pyx_kp_hex); if (!__pyx_builtin_hex) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24565
 
  __pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_kp_enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24566
 
  __pyx_builtin_map = __Pyx_GetName(__pyx_b, __pyx_kp_map); if (!__pyx_builtin_map) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26715
  __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_kp_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26716
  __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_kp_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26717
  __pyx_builtin_IndexError = __Pyx_GetName(__pyx_b, __pyx_kp_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26718
  __pyx_builtin_AttributeError = __Pyx_GetName(__pyx_b, __pyx_kp_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26719
  __pyx_builtin_oct = __Pyx_GetName(__pyx_b, __pyx_kp_oct); if (!__pyx_builtin_oct) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26720
  __pyx_builtin_hex = __Pyx_GetName(__pyx_b, __pyx_kp_hex); if (!__pyx_builtin_hex) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26721
  __pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_kp_enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26722
  __pyx_builtin_map = __Pyx_GetName(__pyx_b, __pyx_kp_map); if (!__pyx_builtin_map) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24567
26723
  return 0;
24568
26724
  __pyx_L1_error:;
24569
26725
  return -1;
24573
26729
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
24574
26730
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
24575
26731
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
26732
  #if PY_VERSION_HEX < 0x02040000
 
26733
  if (unlikely(__Pyx_Py23SetsImport() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26734
  #endif
24576
26735
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
24577
26736
  return 0;
24578
26737
  __pyx_L1_error:;
24589
26748
{
24590
26749
  PyObject *__pyx_1 = 0;
24591
26750
  PyObject *__pyx_2 = 0;
24592
 
  int __pyx_3;
24593
 
  PyObject *__pyx_4 = 0;
24594
 
  PyObject *__pyx_5 = 0;
24595
 
  PyObject *__pyx_6 = 0;
24596
 
  PyObject *__pyx_7 = 0;
24597
 
  PyObject *__pyx_8 = 0;
24598
 
  PyObject *__pyx_9 = 0;
24599
 
  PyObject *__pyx_10 = 0;
24600
 
  PyObject *__pyx_11 = 0;
24601
 
  PyObject *__pyx_12 = 0;
24602
 
  PyObject *__pyx_13 = 0;
24603
 
  PyObject *__pyx_14 = 0;
 
26751
  PyObject *__pyx_3 = 0;
24604
26752
  PyObject *__pyx_t_1 = NULL;
 
26753
  int __pyx_t_2;
 
26754
  PyObject *__pyx_t_3 = NULL;
 
26755
  PyObject *__pyx_t_4 = NULL;
 
26756
  #ifdef CYTHON_REFNANNY
 
26757
  void* __pyx_refchk = NULL;
 
26758
  __Pyx_Refnanny = __Pyx_ImportRefcountAPI("refnanny");
 
26759
  if (!__Pyx_Refnanny) {
 
26760
      PyErr_Clear();
 
26761
      __Pyx_Refnanny = __Pyx_ImportRefcountAPI("Cython.Runtime.refnanny");
 
26762
      if (!__Pyx_Refnanny)
 
26763
          Py_FatalError("failed to import refnanny module");
 
26764
  }
 
26765
  __pyx_refchk = __Pyx_Refnanny->NewContext("PyMODINIT_FUNC PyInit_objectify(void)", __LINE__, __FILE__);
 
26766
  #endif
24605
26767
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24606
26768
  /*--- Library function declarations ---*/
24607
26769
  __pyx_init_filenames();
 
26770
  /*--- Threads initialization code ---*/
 
26771
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
 
26772
  #ifdef WITH_THREAD /* Python build with threading support? */
 
26773
  PyEval_InitThreads();
 
26774
  #endif
 
26775
  #endif
24608
26776
  /*--- Initialize various global constants etc. ---*/
24609
26777
  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24610
26778
  /*--- Module creation code ---*/
24611
26779
  #if PY_MAJOR_VERSION < 3
24612
 
  __pyx_m = Py_InitModule4("objectify", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION);
 
26780
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("objectify"), __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION);
24613
26781
  #else
24614
26782
  __pyx_m = PyModule_Create(&__pyx_moduledef);
24615
26783
  #endif
24617
26785
  #if PY_MAJOR_VERSION < 3
24618
26786
  Py_INCREF(__pyx_m);
24619
26787
  #endif
24620
 
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
 
26788
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
24621
26789
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
24622
 
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
26790
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
26791
  if (__pyx_module_is_main_lxml__objectify) {
 
26792
    if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_kp___main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
 
26793
  }
24623
26794
  /*--- Builtin init code ---*/
24624
26795
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24625
26796
  __pyx_skip_dispatch = 0;
24626
26797
  /*--- Global init code ---*/
24627
26798
  __pyx_v_4lxml_9objectify_etree = Py_None; Py_INCREF(Py_None);
24628
26799
  __pyx_v_4lxml_9objectify_re = Py_None; Py_INCREF(Py_None);
24629
 
  __pyx_v_4lxml_9objectify_set = Py_None; Py_INCREF(Py_None);
24630
 
  __pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = Py_None; Py_INCREF(Py_None);
 
26800
  __pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = ((PyObject *)Py_None); Py_INCREF(Py_None);
24631
26801
  __pyx_v_4lxml_9objectify_islice = Py_None; Py_INCREF(Py_None);
24632
26802
  __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE = Py_None; Py_INCREF(Py_None);
24633
26803
  __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE_UTF8 = Py_None; Py_INCREF(Py_None);
24640
26810
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = Py_None; Py_INCREF(Py_None);
24641
26811
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = Py_None; Py_INCREF(Py_None);
24642
26812
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = Py_None; Py_INCREF(Py_None);
24643
 
  __pyx_v_4lxml_9objectify__PYTYPE_DICT = Py_None; Py_INCREF(Py_None);
24644
 
  __pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = Py_None; Py_INCREF(Py_None);
24645
 
  __pyx_v_4lxml_9objectify__TYPE_CHECKS = Py_None; Py_INCREF(Py_None);
24646
 
  __pyx_v_4lxml_9objectify_TREE_PYTYPE = Py_None; Py_INCREF(Py_None);
 
26813
  __pyx_v_4lxml_9objectify__PYTYPE_DICT = ((PyObject *)Py_None); Py_INCREF(Py_None);
 
26814
  __pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = ((PyObject *)Py_None); Py_INCREF(Py_None);
 
26815
  __pyx_v_4lxml_9objectify__TYPE_CHECKS = ((PyObject *)Py_None); Py_INCREF(Py_None);
 
26816
  __pyx_v_4lxml_9objectify_TREE_PYTYPE = ((struct __pyx_obj_4lxml_9objectify_PyType *)Py_None); Py_INCREF(Py_None);
 
26817
  __pyx_v_4lxml_9objectify__strip_attributes = Py_None; Py_INCREF(Py_None);
24647
26818
  __pyx_v_4lxml_9objectify___DEFAULT_PARSER = Py_None; Py_INCREF(Py_None);
24648
26819
  __pyx_v_4lxml_9objectify_objectify_parser = Py_None; Py_INCREF(Py_None);
24649
26820
  __pyx_v_4lxml_9objectify__fromstring = Py_None; Py_INCREF(Py_None);
24650
26821
  __pyx_v_4lxml_9objectify__parse = Py_None; Py_INCREF(Py_None);
24651
 
  __pyx_v_4lxml_9objectify__DEFAULT_NSMAP = Py_None; Py_INCREF(Py_None);
 
26822
  __pyx_v_4lxml_9objectify__DEFAULT_NSMAP = ((PyObject *)Py_None); Py_INCREF(Py_None);
24652
26823
  __pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = Py_None; Py_INCREF(Py_None);
24653
26824
  __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = Py_None; Py_INCREF(Py_None);
24654
26825
  /*--- Function export code ---*/
24655
26826
  /*--- Type init code ---*/
24656
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24657
 
  if (PyObject_SetAttrString(__pyx_m, "PyType", (PyObject *)&__pyx_type_4lxml_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26827
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26828
  if (__Pyx_SetAttrString(__pyx_m, "PyType", (PyObject *)&__pyx_type_4lxml_9objectify_PyType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24658
26829
  __pyx_ptype_4lxml_9objectify_PyType = &__pyx_type_4lxml_9objectify_PyType;
24659
26830
  __pyx_ptype_4lxml_11etreepublic_ElementBase = __Pyx_ImportType("lxml.etree", "ElementBase", sizeof(struct LxmlElementBase)); if (unlikely(!__pyx_ptype_4lxml_11etreepublic_ElementBase)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24660
26831
  __pyx_type_4lxml_9objectify_ObjectifiedElement.tp_base = __pyx_ptype_4lxml_11etreepublic_ElementBase;
24661
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24662
 
  if (PyObject_SetAttrString(__pyx_m, "ObjectifiedElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26832
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26833
  if (__Pyx_SetAttrString(__pyx_m, "ObjectifiedElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24663
26834
  __pyx_ptype_4lxml_9objectify_ObjectifiedElement = &__pyx_type_4lxml_9objectify_ObjectifiedElement;
24664
26835
  __pyx_type_4lxml_9objectify_ObjectifiedDataElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedElement;
24665
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24666
 
  if (PyObject_SetAttrString(__pyx_m, "ObjectifiedDataElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26836
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26837
  if (__Pyx_SetAttrString(__pyx_m, "ObjectifiedDataElement", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifiedDataElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24667
26838
  __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement = &__pyx_type_4lxml_9objectify_ObjectifiedDataElement;
24668
26839
  __pyx_type_4lxml_9objectify_NumberElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
24669
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24670
 
  if (PyObject_SetAttrString(__pyx_m, "NumberElement", (PyObject *)&__pyx_type_4lxml_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26840
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26841
  if (__Pyx_SetAttrString(__pyx_m, "NumberElement", (PyObject *)&__pyx_type_4lxml_9objectify_NumberElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24671
26842
  __pyx_ptype_4lxml_9objectify_NumberElement = &__pyx_type_4lxml_9objectify_NumberElement;
24672
26843
  __pyx_type_4lxml_9objectify_IntElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
24673
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24674
 
  if (PyObject_SetAttrString(__pyx_m, "IntElement", (PyObject *)&__pyx_type_4lxml_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26844
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26845
  if (__Pyx_SetAttrString(__pyx_m, "IntElement", (PyObject *)&__pyx_type_4lxml_9objectify_IntElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24675
26846
  __pyx_ptype_4lxml_9objectify_IntElement = &__pyx_type_4lxml_9objectify_IntElement;
24676
26847
  __pyx_type_4lxml_9objectify_LongElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
24677
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24678
 
  if (PyObject_SetAttrString(__pyx_m, "LongElement", (PyObject *)&__pyx_type_4lxml_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26848
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26849
  if (__Pyx_SetAttrString(__pyx_m, "LongElement", (PyObject *)&__pyx_type_4lxml_9objectify_LongElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24679
26850
  __pyx_ptype_4lxml_9objectify_LongElement = &__pyx_type_4lxml_9objectify_LongElement;
24680
26851
  __pyx_type_4lxml_9objectify_FloatElement.tp_base = __pyx_ptype_4lxml_9objectify_NumberElement;
24681
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24682
 
  if (PyObject_SetAttrString(__pyx_m, "FloatElement", (PyObject *)&__pyx_type_4lxml_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 760; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26852
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26853
  if (__Pyx_SetAttrString(__pyx_m, "FloatElement", (PyObject *)&__pyx_type_4lxml_9objectify_FloatElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24683
26854
  __pyx_ptype_4lxml_9objectify_FloatElement = &__pyx_type_4lxml_9objectify_FloatElement;
24684
26855
  __pyx_type_4lxml_9objectify_StringElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
24685
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24686
 
  if (PyObject_SetAttrString(__pyx_m, "StringElement", (PyObject *)&__pyx_type_4lxml_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26856
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26857
  if (__Pyx_SetAttrString(__pyx_m, "StringElement", (PyObject *)&__pyx_type_4lxml_9objectify_StringElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24687
26858
  __pyx_ptype_4lxml_9objectify_StringElement = &__pyx_type_4lxml_9objectify_StringElement;
24688
26859
  __pyx_type_4lxml_9objectify_NoneElement.tp_base = __pyx_ptype_4lxml_9objectify_ObjectifiedDataElement;
24689
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24690
 
  if (PyObject_SetAttrString(__pyx_m, "NoneElement", (PyObject *)&__pyx_type_4lxml_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26860
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26861
  if (__Pyx_SetAttrString(__pyx_m, "NoneElement", (PyObject *)&__pyx_type_4lxml_9objectify_NoneElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24691
26862
  __pyx_ptype_4lxml_9objectify_NoneElement = &__pyx_type_4lxml_9objectify_NoneElement;
24692
26863
  __pyx_type_4lxml_9objectify_BoolElement.tp_base = __pyx_ptype_4lxml_9objectify_IntElement;
24693
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24694
 
  if (PyObject_SetAttrString(__pyx_m, "BoolElement", (PyObject *)&__pyx_type_4lxml_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26864
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26865
  if (__Pyx_SetAttrString(__pyx_m, "BoolElement", (PyObject *)&__pyx_type_4lxml_9objectify_BoolElement) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24695
26866
  __pyx_ptype_4lxml_9objectify_BoolElement = &__pyx_type_4lxml_9objectify_BoolElement;
24696
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24697
 
  if (PyObject_SetAttrString(__pyx_m, "_ObjectifyElementMakerCaller", (PyObject *)&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26867
  if (PyType_Ready(&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26868
  if (__Pyx_SetAttrString(__pyx_m, "_ObjectifyElementMakerCaller", (PyObject *)&__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24698
26869
  __pyx_ptype_4lxml_9objectify__ObjectifyElementMakerCaller = &__pyx_type_4lxml_9objectify__ObjectifyElementMakerCaller;
24699
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ElementMaker) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24700
 
  if (PyObject_SetAttrString(__pyx_m, "ElementMaker", (PyObject *)&__pyx_type_4lxml_9objectify_ElementMaker) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26870
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ElementMaker) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26871
  if (__Pyx_SetAttrString(__pyx_m, "ElementMaker", (PyObject *)&__pyx_type_4lxml_9objectify_ElementMaker) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24701
26872
  __pyx_ptype_4lxml_9objectify_ElementMaker = &__pyx_type_4lxml_9objectify_ElementMaker;
24702
26873
  __pyx_ptype_4lxml_11etreepublic_ElementClassLookup = __Pyx_ImportType("lxml.etree", "ElementClassLookup", sizeof(struct LxmlElementClassLookup)); if (unlikely(!__pyx_ptype_4lxml_11etreepublic_ElementClassLookup)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24703
26874
  __pyx_type_4lxml_9objectify_ObjectifyElementClassLookup.tp_base = __pyx_ptype_4lxml_11etreepublic_ElementClassLookup;
24704
 
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24705
 
  if (PyObject_SetAttrString(__pyx_m, "ObjectifyElementClassLookup", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26875
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26876
  if (__Pyx_SetAttrString(__pyx_m, "ObjectifyElementClassLookup", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24706
26877
  __pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup = &__pyx_type_4lxml_9objectify_ObjectifyElementClassLookup;
24707
26878
  if (PyType_Ready(&__pyx_type_4lxml_9objectify_ObjectPath) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24708
 
  if (PyObject_SetAttrString(__pyx_m, "ObjectPath", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectPath) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26879
  if (__Pyx_SetAttrString(__pyx_m, "ObjectPath", (PyObject *)&__pyx_type_4lxml_9objectify_ObjectPath) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24709
26880
  __pyx_ptype_4lxml_9objectify_ObjectPath = &__pyx_type_4lxml_9objectify_ObjectPath;
24710
26881
  /*--- Type import code ---*/
24711
 
  __pyx_ptype_4lxml_6python_slice = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "slice", sizeof(PySliceObject)); if (unlikely(!__pyx_ptype_4lxml_6python_slice)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26882
  __pyx_ptype_4lxml_6python_slice = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "slice", sizeof(PySliceObject)); if (unlikely(!__pyx_ptype_4lxml_6python_slice)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24712
26883
  #if PY_MAJOR_VERSION >= 3
24713
 
  __pyx_ptype_4lxml_6python_unicode = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "str", sizeof(PyUnicodeObject)); if (unlikely(!__pyx_ptype_4lxml_6python_unicode)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26884
  __pyx_ptype_4lxml_6python_unicode = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "str", sizeof(PyUnicodeObject)); if (unlikely(!__pyx_ptype_4lxml_6python_unicode)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24714
26885
  #else
24715
 
  __pyx_ptype_4lxml_6python_unicode = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "unicode", sizeof(PyUnicodeObject)); if (unlikely(!__pyx_ptype_4lxml_6python_unicode)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26886
  __pyx_ptype_4lxml_6python_unicode = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "unicode", sizeof(PyUnicodeObject)); if (unlikely(!__pyx_ptype_4lxml_6python_unicode)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24716
26887
  #endif
24717
26888
  __pyx_ptype_4lxml_11etreepublic__Document = __Pyx_ImportType("lxml.etree", "_Document", sizeof(struct LxmlDocument)); if (unlikely(!__pyx_ptype_4lxml_11etreepublic__Document)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24718
26889
  __pyx_ptype_4lxml_11etreepublic__Element = __Pyx_ImportType("lxml.etree", "_Element", sizeof(struct LxmlElement)); if (unlikely(!__pyx_ptype_4lxml_11etreepublic__Element)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24723
26894
  /*--- Function import code ---*/
24724
26895
  /*--- Execution code ---*/
24725
26896
 
24726
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":15
 
26897
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":22
 
26898
 *            u'fromstring', u'getRegisteredTypes', u'makeparser', u'parse',
 
26899
 *            u'pyannotate', u'pytypename', u'set_default_parser',
 
26900
 *            u'set_pytype_attribute_tag', u'xsiannotate']             # <<<<<<<<<<<<<<
 
26901
 * 
 
26902
 * cdef object etree
 
26903
 */
 
26904
  __pyx_t_1 = PyList_New(31); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
26905
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
26906
  __Pyx_INCREF(((PyObject *)__pyx_kp_677));
 
26907
  PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_677));
 
26908
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_677));
 
26909
  __Pyx_INCREF(((PyObject *)__pyx_kp_678));
 
26910
  PyList_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_678));
 
26911
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_678));
 
26912
  __Pyx_INCREF(((PyObject *)__pyx_kp_679));
 
26913
  PyList_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_kp_679));
 
26914
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_679));
 
26915
  __Pyx_INCREF(((PyObject *)__pyx_kp_680));
 
26916
  PyList_SET_ITEM(__pyx_t_1, 3, ((PyObject *)__pyx_kp_680));
 
26917
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_680));
 
26918
  __Pyx_INCREF(((PyObject *)__pyx_kp_681));
 
26919
  PyList_SET_ITEM(__pyx_t_1, 4, ((PyObject *)__pyx_kp_681));
 
26920
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_681));
 
26921
  __Pyx_INCREF(((PyObject *)__pyx_kp_682));
 
26922
  PyList_SET_ITEM(__pyx_t_1, 5, ((PyObject *)__pyx_kp_682));
 
26923
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_682));
 
26924
  __Pyx_INCREF(((PyObject *)__pyx_kp_683));
 
26925
  PyList_SET_ITEM(__pyx_t_1, 6, ((PyObject *)__pyx_kp_683));
 
26926
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_683));
 
26927
  __Pyx_INCREF(((PyObject *)__pyx_kp_684));
 
26928
  PyList_SET_ITEM(__pyx_t_1, 7, ((PyObject *)__pyx_kp_684));
 
26929
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_684));
 
26930
  __Pyx_INCREF(((PyObject *)__pyx_kp_685));
 
26931
  PyList_SET_ITEM(__pyx_t_1, 8, ((PyObject *)__pyx_kp_685));
 
26932
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_685));
 
26933
  __Pyx_INCREF(((PyObject *)__pyx_kp_686));
 
26934
  PyList_SET_ITEM(__pyx_t_1, 9, ((PyObject *)__pyx_kp_686));
 
26935
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_686));
 
26936
  __Pyx_INCREF(((PyObject *)__pyx_kp_687));
 
26937
  PyList_SET_ITEM(__pyx_t_1, 10, ((PyObject *)__pyx_kp_687));
 
26938
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_687));
 
26939
  __Pyx_INCREF(((PyObject *)__pyx_kp_688));
 
26940
  PyList_SET_ITEM(__pyx_t_1, 11, ((PyObject *)__pyx_kp_688));
 
26941
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_688));
 
26942
  __Pyx_INCREF(((PyObject *)__pyx_kp_689));
 
26943
  PyList_SET_ITEM(__pyx_t_1, 12, ((PyObject *)__pyx_kp_689));
 
26944
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_689));
 
26945
  __Pyx_INCREF(((PyObject *)__pyx_kp_690));
 
26946
  PyList_SET_ITEM(__pyx_t_1, 13, ((PyObject *)__pyx_kp_690));
 
26947
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_690));
 
26948
  __Pyx_INCREF(((PyObject *)__pyx_kp_691));
 
26949
  PyList_SET_ITEM(__pyx_t_1, 14, ((PyObject *)__pyx_kp_691));
 
26950
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_691));
 
26951
  __Pyx_INCREF(((PyObject *)__pyx_kp_692));
 
26952
  PyList_SET_ITEM(__pyx_t_1, 15, ((PyObject *)__pyx_kp_692));
 
26953
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_692));
 
26954
  __Pyx_INCREF(((PyObject *)__pyx_kp_693));
 
26955
  PyList_SET_ITEM(__pyx_t_1, 16, ((PyObject *)__pyx_kp_693));
 
26956
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_693));
 
26957
  __Pyx_INCREF(((PyObject *)__pyx_kp_694));
 
26958
  PyList_SET_ITEM(__pyx_t_1, 17, ((PyObject *)__pyx_kp_694));
 
26959
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_694));
 
26960
  __Pyx_INCREF(((PyObject *)__pyx_kp_695));
 
26961
  PyList_SET_ITEM(__pyx_t_1, 18, ((PyObject *)__pyx_kp_695));
 
26962
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_695));
 
26963
  __Pyx_INCREF(((PyObject *)__pyx_kp_696));
 
26964
  PyList_SET_ITEM(__pyx_t_1, 19, ((PyObject *)__pyx_kp_696));
 
26965
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_696));
 
26966
  __Pyx_INCREF(((PyObject *)__pyx_kp_697));
 
26967
  PyList_SET_ITEM(__pyx_t_1, 20, ((PyObject *)__pyx_kp_697));
 
26968
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_697));
 
26969
  __Pyx_INCREF(((PyObject *)__pyx_kp_698));
 
26970
  PyList_SET_ITEM(__pyx_t_1, 21, ((PyObject *)__pyx_kp_698));
 
26971
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_698));
 
26972
  __Pyx_INCREF(((PyObject *)__pyx_kp_699));
 
26973
  PyList_SET_ITEM(__pyx_t_1, 22, ((PyObject *)__pyx_kp_699));
 
26974
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_699));
 
26975
  __Pyx_INCREF(((PyObject *)__pyx_kp_700));
 
26976
  PyList_SET_ITEM(__pyx_t_1, 23, ((PyObject *)__pyx_kp_700));
 
26977
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_700));
 
26978
  __Pyx_INCREF(((PyObject *)__pyx_kp_701));
 
26979
  PyList_SET_ITEM(__pyx_t_1, 24, ((PyObject *)__pyx_kp_701));
 
26980
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_701));
 
26981
  __Pyx_INCREF(((PyObject *)__pyx_kp_702));
 
26982
  PyList_SET_ITEM(__pyx_t_1, 25, ((PyObject *)__pyx_kp_702));
 
26983
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_702));
 
26984
  __Pyx_INCREF(((PyObject *)__pyx_kp_703));
 
26985
  PyList_SET_ITEM(__pyx_t_1, 26, ((PyObject *)__pyx_kp_703));
 
26986
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_703));
 
26987
  __Pyx_INCREF(((PyObject *)__pyx_kp_704));
 
26988
  PyList_SET_ITEM(__pyx_t_1, 27, ((PyObject *)__pyx_kp_704));
 
26989
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_704));
 
26990
  __Pyx_INCREF(((PyObject *)__pyx_kp_705));
 
26991
  PyList_SET_ITEM(__pyx_t_1, 28, ((PyObject *)__pyx_kp_705));
 
26992
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_705));
 
26993
  __Pyx_INCREF(((PyObject *)__pyx_kp_706));
 
26994
  PyList_SET_ITEM(__pyx_t_1, 29, ((PyObject *)__pyx_kp_706));
 
26995
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_706));
 
26996
  __Pyx_INCREF(((PyObject *)__pyx_kp_707));
 
26997
  PyList_SET_ITEM(__pyx_t_1, 30, ((PyObject *)__pyx_kp_707));
 
26998
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_707));
 
26999
  if (PyObject_SetAttr(__pyx_m, __pyx_kp___all__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27000
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
27001
 
 
27002
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":25
24727
27003
 * 
24728
27004
 * cdef object etree
24729
27005
 * from lxml import etree             # <<<<<<<<<<<<<<
24730
27006
 * # initialize C-API of lxml.etree
24731
27007
 * import_lxml__etree()
24732
27008
 */
24733
 
  __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24734
 
  Py_INCREF(__pyx_kp_etree);
24735
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_kp_etree);
24736
 
  __pyx_2 = __Pyx_Import(__pyx_kp_lxml, ((PyObject *)__pyx_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24737
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
24738
 
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_kp_etree); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24739
 
  Py_DECREF(__pyx_v_4lxml_9objectify_etree);
24740
 
  __pyx_v_4lxml_9objectify_etree = __pyx_1;
24741
 
  __pyx_1 = 0;
24742
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27009
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27010
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27011
  __Pyx_INCREF(__pyx_kp_etree);
 
27012
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_kp_etree);
 
27013
  __Pyx_GIVEREF(__pyx_kp_etree);
 
27014
  __pyx_1 = __Pyx_Import(__pyx_kp_lxml, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27015
  __Pyx_GOTREF(__pyx_1);
 
27016
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
27017
  __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_etree); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27018
  __Pyx_GOTREF(__pyx_2);
 
27019
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_etree);
 
27020
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_etree);
 
27021
  __Pyx_GIVEREF(__pyx_2);
 
27022
  __pyx_v_4lxml_9objectify_etree = __pyx_2;
 
27023
  __pyx_2 = 0;
 
27024
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
24743
27025
 
24744
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":17
 
27026
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":27
24745
27027
 * from lxml import etree
24746
27028
 * # initialize C-API of lxml.etree
24747
27029
 * import_lxml__etree()             # <<<<<<<<<<<<<<
24748
27030
 * 
24749
27031
 * __version__ = etree.__version__
24750
27032
 */
24751
 
  __pyx_3 = import_lxml__etree(); if (unlikely(__pyx_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27033
  __pyx_t_2 = import_lxml__etree(); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24752
27034
 
24753
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":19
 
27035
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":29
24754
27036
 * import_lxml__etree()
24755
27037
 * 
24756
27038
 * __version__ = etree.__version__             # <<<<<<<<<<<<<<
24757
27039
 * 
24758
27040
 * cdef object re
24759
27041
 */
24760
 
  __pyx_2 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp___version__); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24761
 
  if (PyObject_SetAttr(__pyx_m, __pyx_kp___version__, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24762
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27042
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp___version__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27043
  __Pyx_GOTREF(__pyx_t_1);
 
27044
  if (PyObject_SetAttr(__pyx_m, __pyx_kp___version__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27045
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24763
27046
 
24764
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":22
 
27047
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":32
24765
27048
 * 
24766
27049
 * cdef object re
24767
27050
 * import re             # <<<<<<<<<<<<<<
24768
27051
 * 
24769
 
 * try:
 
27052
 * cdef tuple IGNORABLE_ERRORS
24770
27053
 */
24771
 
  __pyx_1 = __Pyx_Import(__pyx_kp_re, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24772
 
  Py_DECREF(__pyx_v_4lxml_9objectify_re);
 
27054
  __pyx_1 = __Pyx_Import(__pyx_kp_re, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27055
  __Pyx_GOTREF(__pyx_1);
 
27056
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_re);
 
27057
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_re);
 
27058
  __Pyx_GIVEREF(__pyx_1);
24773
27059
  __pyx_v_4lxml_9objectify_re = __pyx_1;
24774
27060
  __pyx_1 = 0;
24775
27061
 
24776
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":24
24777
 
 * import re
24778
 
 * 
24779
 
 * try:             # <<<<<<<<<<<<<<
24780
 
 *     import __builtin__
24781
 
 * except ImportError:
24782
 
 */
24783
 
  {
24784
 
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
24785
 
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
24786
 
    /*try:*/ {
24787
 
 
24788
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":25
24789
 
 * 
24790
 
 * try:
24791
 
 *     import __builtin__             # <<<<<<<<<<<<<<
24792
 
 * except ImportError:
24793
 
 *     # Python 3
24794
 
 */
24795
 
      __pyx_2 = __Pyx_Import(__pyx_kp___builtin__, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L2_error;}
24796
 
      if (PyObject_SetAttr(__pyx_m, __pyx_kp___builtin__, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L2_error;}
24797
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
24798
 
    }
24799
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
24800
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
24801
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
24802
 
    goto __pyx_L7_try;
24803
 
    __pyx_L2_error:;
24804
 
    Py_XDECREF(__pyx_1); __pyx_1 = 0;
24805
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
24806
 
 
24807
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":26
24808
 
 * try:
24809
 
 *     import __builtin__
24810
 
 * except ImportError:             # <<<<<<<<<<<<<<
24811
 
 *     # Python 3
24812
 
 *     import builtins as __builtin__
24813
 
 */
24814
 
    __pyx_3 = PyErr_ExceptionMatches(__pyx_builtin_ImportError);
24815
 
    if (__pyx_3) {
24816
 
      __Pyx_AddTraceback("lxml.objectify");
24817
 
      if (__Pyx_GetException(&__pyx_1, &__pyx_2, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;}
24818
 
 
24819
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":28
24820
 
 * except ImportError:
24821
 
 *     # Python 3
24822
 
 *     import builtins as __builtin__             # <<<<<<<<<<<<<<
24823
 
 * 
24824
 
 * cdef object set
24825
 
 */
24826
 
      __pyx_5 = __Pyx_Import(__pyx_kp_builtins, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;}
24827
 
      if (PyObject_SetAttr(__pyx_m, __pyx_kp___builtin__, __pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;}
24828
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
24829
 
      Py_DECREF(__pyx_1); __pyx_1 = 0;
24830
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
24831
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
24832
 
      goto __pyx_L3_exception_handled;
24833
 
    }
24834
 
    __pyx_L4_except_error:;
24835
 
    Py_XDECREF(__pyx_save_exc_type);
24836
 
    Py_XDECREF(__pyx_save_exc_value);
24837
 
    Py_XDECREF(__pyx_save_exc_tb);
24838
 
    goto __pyx_L1_error;
24839
 
    __pyx_L3_exception_handled:;
24840
 
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
24841
 
    __pyx_L7_try:;
24842
 
  }
24843
 
 
24844
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":31
24845
 
 * 
24846
 
 * cdef object set
24847
 
 * try:             # <<<<<<<<<<<<<<
24848
 
 *     set = __builtin__.set
24849
 
 * except AttributeError:
24850
 
 */
24851
 
  {
24852
 
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
24853
 
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
24854
 
    /*try:*/ {
24855
 
 
24856
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":32
24857
 
 * cdef object set
24858
 
 * try:
24859
 
 *     set = __builtin__.set             # <<<<<<<<<<<<<<
24860
 
 * except AttributeError:
24861
 
 *     # Python 2.3
24862
 
 */
24863
 
      __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_kp___builtin__); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
24864
 
      __pyx_1 = PyObject_GetAttr(__pyx_5, __pyx_kp_set); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
24865
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
24866
 
      Py_DECREF(__pyx_v_4lxml_9objectify_set);
24867
 
      __pyx_v_4lxml_9objectify_set = __pyx_1;
24868
 
      __pyx_1 = 0;
24869
 
    }
24870
 
    Py_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
24871
 
    Py_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
24872
 
    Py_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
24873
 
    goto __pyx_L13_try;
24874
 
    __pyx_L8_error:;
24875
 
    Py_XDECREF(__pyx_2); __pyx_2 = 0;
24876
 
    Py_XDECREF(__pyx_4); __pyx_4 = 0;
24877
 
    Py_XDECREF(__pyx_5); __pyx_5 = 0;
24878
 
    Py_XDECREF(__pyx_1); __pyx_1 = 0;
24879
 
 
24880
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":33
24881
 
 * try:
24882
 
 *     set = __builtin__.set
24883
 
 * except AttributeError:             # <<<<<<<<<<<<<<
24884
 
 *     # Python 2.3
24885
 
 *     from sets import Set as set
24886
 
 */
24887
 
    __pyx_3 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
24888
 
    if (__pyx_3) {
24889
 
      __Pyx_AddTraceback("lxml.objectify");
24890
 
      if (__Pyx_GetException(&__pyx_2, &__pyx_4, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;}
24891
 
 
24892
 
      /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":35
24893
 
 * except AttributeError:
24894
 
 *     # Python 2.3
24895
 
 *     from sets import Set as set             # <<<<<<<<<<<<<<
24896
 
 * 
24897
 
 * del __builtin__
24898
 
 */
24899
 
      __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;}
24900
 
      Py_INCREF(__pyx_kp_Set);
24901
 
      PyList_SET_ITEM(__pyx_1, 0, __pyx_kp_Set);
24902
 
      __pyx_6 = __Pyx_Import(__pyx_kp_sets, ((PyObject *)__pyx_1)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;}
24903
 
      Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
24904
 
      __pyx_1 = PyObject_GetAttr(__pyx_6, __pyx_kp_Set); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;}
24905
 
      Py_DECREF(__pyx_v_4lxml_9objectify_set);
24906
 
      __pyx_v_4lxml_9objectify_set = __pyx_1;
24907
 
      __pyx_1 = 0;
24908
 
      Py_DECREF(__pyx_6); __pyx_6 = 0;
24909
 
      Py_DECREF(__pyx_2); __pyx_2 = 0;
24910
 
      Py_DECREF(__pyx_4); __pyx_4 = 0;
24911
 
      Py_DECREF(__pyx_5); __pyx_5 = 0;
24912
 
      goto __pyx_L9_exception_handled;
24913
 
    }
24914
 
    __pyx_L10_except_error:;
24915
 
    Py_XDECREF(__pyx_save_exc_type);
24916
 
    Py_XDECREF(__pyx_save_exc_value);
24917
 
    Py_XDECREF(__pyx_save_exc_tb);
24918
 
    goto __pyx_L1_error;
24919
 
    __pyx_L9_exception_handled:;
24920
 
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
24921
 
    __pyx_L13_try:;
24922
 
  }
24923
 
 
24924
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":37
24925
 
 *     from sets import Set as set
24926
 
 * 
24927
 
 * del __builtin__             # <<<<<<<<<<<<<<
24928
 
 * 
24929
 
 * cdef object IGNORABLE_ERRORS
24930
 
 */
24931
 
  if (PyObject_DelAttrString(__pyx_m, "__builtin__") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24932
 
 
24933
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":40
24934
 
 * 
24935
 
 * cdef object IGNORABLE_ERRORS
 
27062
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":35
 
27063
 * 
 
27064
 * cdef tuple IGNORABLE_ERRORS
24936
27065
 * IGNORABLE_ERRORS = (ValueError, TypeError)             # <<<<<<<<<<<<<<
24937
27066
 * 
24938
27067
 * cdef object islice
24939
27068
 */
24940
 
  __pyx_6 = PyTuple_New(2); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24941
 
  Py_INCREF(__pyx_builtin_ValueError);
24942
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_builtin_ValueError);
24943
 
  Py_INCREF(__pyx_builtin_TypeError);
24944
 
  PyTuple_SET_ITEM(__pyx_6, 1, __pyx_builtin_TypeError);
24945
 
  Py_DECREF(__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS);
24946
 
  __pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = ((PyObject *)__pyx_6);
24947
 
  __pyx_6 = 0;
 
27069
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27070
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27071
  __Pyx_INCREF(__pyx_builtin_ValueError);
 
27072
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_ValueError);
 
27073
  __Pyx_GIVEREF(__pyx_builtin_ValueError);
 
27074
  __Pyx_INCREF(__pyx_builtin_TypeError);
 
27075
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_builtin_TypeError);
 
27076
  __Pyx_GIVEREF(__pyx_builtin_TypeError);
 
27077
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS));
 
27078
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify_IGNORABLE_ERRORS));
 
27079
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
 
27080
  __pyx_v_4lxml_9objectify_IGNORABLE_ERRORS = __pyx_t_1;
 
27081
  __pyx_t_1 = 0;
24948
27082
 
24949
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":43
 
27083
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":38
24950
27084
 * 
24951
27085
 * cdef object islice
24952
27086
 * from itertools import islice             # <<<<<<<<<<<<<<
24953
27087
 * 
24954
27088
 * cdef object _typename(object t):
24955
27089
 */
24956
 
  __pyx_1 = PyList_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24957
 
  Py_INCREF(__pyx_kp_islice);
24958
 
  PyList_SET_ITEM(__pyx_1, 0, __pyx_kp_islice);
24959
 
  __pyx_2 = __Pyx_Import(__pyx_kp_itertools, ((PyObject *)__pyx_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24960
 
  Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
24961
 
  __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_kp_islice); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24962
 
  Py_DECREF(__pyx_v_4lxml_9objectify_islice);
24963
 
  __pyx_v_4lxml_9objectify_islice = __pyx_4;
24964
 
  __pyx_4 = 0;
24965
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27090
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27091
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27092
  __Pyx_INCREF(__pyx_kp_islice);
 
27093
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_kp_islice);
 
27094
  __Pyx_GIVEREF(__pyx_kp_islice);
 
27095
  __pyx_2 = __Pyx_Import(__pyx_kp_itertools, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27096
  __Pyx_GOTREF(__pyx_2);
 
27097
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
27098
  __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_kp_islice); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27099
  __Pyx_GOTREF(__pyx_1);
 
27100
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_islice);
 
27101
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_islice);
 
27102
  __Pyx_GIVEREF(__pyx_1);
 
27103
  __pyx_v_4lxml_9objectify_islice = __pyx_1;
 
27104
  __pyx_1 = 0;
 
27105
  __Pyx_DECREF(__pyx_2); __pyx_2 = 0;
24966
27106
 
24967
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":63
 
27107
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":58
24968
27108
 * cdef char* _PYTYPE_ATTRIBUTE_NAME
24969
27109
 * 
24970
27110
 * PYTYPE_ATTRIBUTE = None             # <<<<<<<<<<<<<<
24971
27111
 * 
24972
27112
 * cdef object TREE_PYTYPE_NAME
24973
27113
 */
24974
 
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27114
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_PYTYPE_ATTRIBUTE, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24975
27115
 
24976
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":66
 
27116
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":61
24977
27117
 * 
24978
27118
 * cdef object TREE_PYTYPE_NAME
24979
27119
 * TREE_PYTYPE_NAME = u"TREE"             # <<<<<<<<<<<<<<
24980
27120
 * 
24981
27121
 * cdef _unicodeAndUtf8(s):
24982
27122
 */
24983
 
  Py_INCREF(((PyObject *)__pyx_kp_642));
24984
 
  Py_DECREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
24985
 
  __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME = ((PyObject *)__pyx_kp_642);
 
27123
  __Pyx_INCREF(((PyObject *)__pyx_kp_708));
 
27124
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
27125
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
27126
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_708));
 
27127
  __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME = ((PyObject *)__pyx_kp_708);
24986
27128
 
24987
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":103
 
27129
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":98
24988
27130
 *         _PYTYPE_NAMESPACE, _PYTYPE_ATTRIBUTE_NAME)
24989
27131
 * 
24990
27132
 * set_pytype_attribute_tag()             # <<<<<<<<<<<<<<
24991
27133
 * 
24992
27134
 * 
24993
27135
 */
24994
 
  __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_kp_643); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24995
 
  __pyx_6 = PyObject_Call(__pyx_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
24996
 
  Py_DECREF(__pyx_5); __pyx_5 = 0;
24997
 
  Py_DECREF(__pyx_6); __pyx_6 = 0;
 
27136
  __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_709); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27137
  __Pyx_GOTREF(__pyx_2);
 
27138
  __pyx_t_1 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27139
  __Pyx_GOTREF(__pyx_t_1);
 
27140
  __Pyx_DECREF(__pyx_2); __pyx_2 = 0;
 
27141
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24998
27142
 
24999
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":109
 
27143
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":104
25000
27144
 * cdef object XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8
25001
27145
 * XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8 = \
25002
27146
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")             # <<<<<<<<<<<<<<
25003
27147
 * cdef char* _XML_SCHEMA_NS
25004
27148
 * _XML_SCHEMA_NS = _cstr(XML_SCHEMA_NS_UTF8)
25005
27149
 */
25006
 
  __pyx_1 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_644)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25007
 
  if (PyTuple_CheckExact(__pyx_1) && PyTuple_GET_SIZE(__pyx_1) == 2) {
25008
 
    PyObject* tuple = __pyx_1;
25009
 
    __pyx_4 = PyTuple_GET_ITEM(tuple, 0);
25010
 
    Py_INCREF(__pyx_4);
 
27150
  __pyx_t_1 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_710)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27151
  __Pyx_GOTREF(__pyx_t_1);
 
27152
  if (PyTuple_CheckExact(__pyx_t_1) && likely(PyTuple_GET_SIZE(__pyx_t_1) == 2)) {
 
27153
    PyObject* tuple = __pyx_t_1;
 
27154
    __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
27155
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
25011
27156
 
25012
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":108
 
27157
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":103
25013
27158
 * # namespaces for XML Schema
25014
27159
 * cdef object XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8
25015
27160
 * XML_SCHEMA_NS, XML_SCHEMA_NS_UTF8 = \             # <<<<<<<<<<<<<<
25016
27161
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")
25017
27162
 * cdef char* _XML_SCHEMA_NS
25018
27163
 */
25019
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
25020
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS = __pyx_4;
25021
 
    __pyx_4 = 0;
25022
 
    __pyx_5 = PyTuple_GET_ITEM(tuple, 1);
25023
 
    Py_INCREF(__pyx_5);
25024
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
25025
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = __pyx_5;
25026
 
    __pyx_5 = 0;
25027
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
25028
 
  }
25029
 
  else {
25030
 
    __pyx_2 = PyObject_GetIter(__pyx_1); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25031
 
    Py_DECREF(__pyx_1); __pyx_1 = 0;
25032
 
    __pyx_4 = __Pyx_UnpackItem(__pyx_2, 0); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25033
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
25034
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS = __pyx_4;
25035
 
    __pyx_4 = 0;
25036
 
    __pyx_5 = __Pyx_UnpackItem(__pyx_2, 1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25037
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
25038
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = __pyx_5;
25039
 
    __pyx_5 = 0;
25040
 
    if (__Pyx_EndUnpack(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25041
 
    Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27164
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27165
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
 
27166
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
 
27167
    __Pyx_GIVEREF(__pyx_2);
 
27168
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS = __pyx_2;
 
27169
    __pyx_2 = 0;
 
27170
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
 
27171
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
 
27172
    __Pyx_GIVEREF(__pyx_3);
 
27173
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = __pyx_3;
 
27174
    __pyx_3 = 0;
 
27175
  } else {
 
27176
    __pyx_1 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27177
    __Pyx_GOTREF(__pyx_1);
 
27178
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27179
    __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27180
    __Pyx_GOTREF(__pyx_2);
 
27181
    __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27182
    __Pyx_GOTREF(__pyx_3);
 
27183
    if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27184
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
27185
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
 
27186
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS);
 
27187
    __Pyx_GIVEREF(__pyx_2);
 
27188
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS = __pyx_2;
 
27189
    __pyx_2 = 0;
 
27190
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
 
27191
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
 
27192
    __Pyx_GIVEREF(__pyx_3);
 
27193
    __pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8 = __pyx_3;
 
27194
    __pyx_3 = 0;
25042
27195
  }
25043
27196
 
25044
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":111
 
27197
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":106
25045
27198
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema")
25046
27199
 * cdef char* _XML_SCHEMA_NS
25047
27200
 * _XML_SCHEMA_NS = _cstr(XML_SCHEMA_NS_UTF8)             # <<<<<<<<<<<<<<
25050
27203
 */
25051
27204
  __pyx_v_4lxml_9objectify__XML_SCHEMA_NS = PyString_AS_STRING(__pyx_v_4lxml_9objectify_XML_SCHEMA_NS_UTF8);
25052
27205
 
25053
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":115
 
27206
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":110
25054
27207
 * cdef object XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8
25055
27208
 * XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8 = \
25056
27209
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")             # <<<<<<<<<<<<<<
25057
27210
 * cdef char* _XML_SCHEMA_INSTANCE_NS
25058
27211
 * _XML_SCHEMA_INSTANCE_NS = _cstr(XML_SCHEMA_INSTANCE_NS_UTF8)
25059
27212
 */
25060
 
  __pyx_6 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_645)); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25061
 
  if (PyTuple_CheckExact(__pyx_6) && PyTuple_GET_SIZE(__pyx_6) == 2) {
25062
 
    PyObject* tuple = __pyx_6;
25063
 
    __pyx_5 = PyTuple_GET_ITEM(tuple, 0);
25064
 
    Py_INCREF(__pyx_5);
 
27213
  __pyx_t_1 = __pyx_f_4lxml_9objectify__unicodeAndUtf8(((PyObject *)__pyx_kp_711)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27214
  __Pyx_GOTREF(__pyx_t_1);
 
27215
  if (PyTuple_CheckExact(__pyx_t_1) && likely(PyTuple_GET_SIZE(__pyx_t_1) == 2)) {
 
27216
    PyObject* tuple = __pyx_t_1;
 
27217
    __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
 
27218
    __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
25065
27219
 
25066
 
    /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":114
 
27220
    /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":109
25067
27221
 * 
25068
27222
 * cdef object XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8
25069
27223
 * XML_SCHEMA_INSTANCE_NS, XML_SCHEMA_INSTANCE_NS_UTF8 = \             # <<<<<<<<<<<<<<
25070
27224
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")
25071
27225
 * cdef char* _XML_SCHEMA_INSTANCE_NS
25072
27226
 */
25073
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
25074
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = __pyx_5;
25075
 
    __pyx_5 = 0;
25076
 
    __pyx_1 = PyTuple_GET_ITEM(tuple, 1);
25077
 
    Py_INCREF(__pyx_1);
25078
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
25079
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = __pyx_1;
25080
 
    __pyx_1 = 0;
25081
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
25082
 
  }
25083
 
  else {
25084
 
    __pyx_4 = PyObject_GetIter(__pyx_6); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25085
 
    Py_DECREF(__pyx_6); __pyx_6 = 0;
25086
 
    __pyx_5 = __Pyx_UnpackItem(__pyx_4, 0); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25087
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
25088
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = __pyx_5;
25089
 
    __pyx_5 = 0;
25090
 
    __pyx_1 = __Pyx_UnpackItem(__pyx_4, 1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25091
 
    Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
25092
 
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = __pyx_1;
25093
 
    __pyx_1 = 0;
25094
 
    if (__Pyx_EndUnpack(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25095
 
    Py_DECREF(__pyx_4); __pyx_4 = 0;
 
27227
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27228
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
 
27229
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
 
27230
    __Pyx_GIVEREF(__pyx_2);
 
27231
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = __pyx_2;
 
27232
    __pyx_2 = 0;
 
27233
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
 
27234
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
 
27235
    __Pyx_GIVEREF(__pyx_3);
 
27236
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = __pyx_3;
 
27237
    __pyx_3 = 0;
 
27238
  } else {
 
27239
    __pyx_1 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27240
    __Pyx_GOTREF(__pyx_1);
 
27241
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27242
    __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27243
    __Pyx_GOTREF(__pyx_2);
 
27244
    __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27245
    __Pyx_GOTREF(__pyx_3);
 
27246
    if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27247
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
27248
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
 
27249
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS);
 
27250
    __Pyx_GIVEREF(__pyx_2);
 
27251
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS = __pyx_2;
 
27252
    __pyx_2 = 0;
 
27253
    __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
 
27254
    __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
 
27255
    __Pyx_GIVEREF(__pyx_3);
 
27256
    __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8 = __pyx_3;
 
27257
    __pyx_3 = 0;
25096
27258
  }
25097
27259
 
25098
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":117
 
27260
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":112
25099
27261
 *     _unicodeAndUtf8(u"http://www.w3.org/2001/XMLSchema-instance")
25100
27262
 * cdef char* _XML_SCHEMA_INSTANCE_NS
25101
27263
 * _XML_SCHEMA_INSTANCE_NS = _cstr(XML_SCHEMA_INSTANCE_NS_UTF8)             # <<<<<<<<<<<<<<
25104
27266
 */
25105
27267
  __pyx_v_4lxml_9objectify__XML_SCHEMA_INSTANCE_NS = PyString_AS_STRING(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS_UTF8);
25106
27268
 
25107
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":120
 
27269
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":115
25108
27270
 * 
25109
27271
 * cdef object XML_SCHEMA_INSTANCE_NIL_ATTR
25110
27272
 * XML_SCHEMA_INSTANCE_NIL_ATTR = u"{%s}nil" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
25111
27273
 * cdef object XML_SCHEMA_INSTANCE_TYPE_ATTR
25112
27274
 * XML_SCHEMA_INSTANCE_TYPE_ATTR = u"{%s}type" % XML_SCHEMA_INSTANCE_NS
25113
27275
 */
25114
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_646), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25115
 
  Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR);
 
27276
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_712), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27277
  __Pyx_GOTREF(__pyx_t_1);
 
27278
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR);
 
27279
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR);
 
27280
  __Pyx_GIVEREF(__pyx_t_1);
25116
27281
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NIL_ATTR = __pyx_t_1;
25117
27282
  __pyx_t_1 = 0;
25118
27283
 
25119
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":122
 
27284
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":117
25120
27285
 * XML_SCHEMA_INSTANCE_NIL_ATTR = u"{%s}nil" % XML_SCHEMA_INSTANCE_NS
25121
27286
 * cdef object XML_SCHEMA_INSTANCE_TYPE_ATTR
25122
27287
 * XML_SCHEMA_INSTANCE_TYPE_ATTR = u"{%s}type" % XML_SCHEMA_INSTANCE_NS             # <<<<<<<<<<<<<<
25123
27288
 * 
25124
27289
 * 
25125
27290
 */
25126
 
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_647), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25127
 
  Py_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
 
27291
  __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_713), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27292
  __Pyx_GOTREF(__pyx_t_1);
 
27293
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
 
27294
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR);
 
27295
  __Pyx_GIVEREF(__pyx_t_1);
25128
27296
  __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_TYPE_ATTR = __pyx_t_1;
25129
27297
  __pyx_t_1 = 0;
25130
27298
 
25131
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1043
 
27299
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1035
25132
27300
 * 
25133
 
 * cdef object _PYTYPE_DICT
 
27301
 * cdef dict _PYTYPE_DICT
25134
27302
 * _PYTYPE_DICT = {}             # <<<<<<<<<<<<<<
25135
27303
 * 
25136
 
 * cdef object _SCHEMA_TYPE_DICT
 
27304
 * cdef dict _SCHEMA_TYPE_DICT
25137
27305
 */
25138
 
  __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25139
 
  Py_DECREF(__pyx_v_4lxml_9objectify__PYTYPE_DICT);
25140
 
  __pyx_v_4lxml_9objectify__PYTYPE_DICT = ((PyObject *)__pyx_2);
25141
 
  __pyx_2 = 0;
 
27306
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27307
  __Pyx_GOTREF(((PyObject *)__pyx_1));
 
27308
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT));
 
27309
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify__PYTYPE_DICT));
 
27310
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
 
27311
  __pyx_v_4lxml_9objectify__PYTYPE_DICT = __pyx_1;
 
27312
  __pyx_1 = 0;
25142
27313
 
25143
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1046
 
27314
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1038
25144
27315
 * 
25145
 
 * cdef object _SCHEMA_TYPE_DICT
 
27316
 * cdef dict _SCHEMA_TYPE_DICT
25146
27317
 * _SCHEMA_TYPE_DICT = {}             # <<<<<<<<<<<<<<
25147
27318
 * 
25148
 
 * cdef object _TYPE_CHECKS
 
27319
 * cdef list _TYPE_CHECKS
25149
27320
 */
25150
 
  __pyx_5 = PyDict_New(); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25151
 
  Py_DECREF(__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT);
25152
 
  __pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = ((PyObject *)__pyx_5);
25153
 
  __pyx_5 = 0;
 
27321
  __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1038; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27322
  __Pyx_GOTREF(((PyObject *)__pyx_2));
 
27323
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT));
 
27324
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT));
 
27325
  __Pyx_GIVEREF(((PyObject *)__pyx_2));
 
27326
  __pyx_v_4lxml_9objectify__SCHEMA_TYPE_DICT = __pyx_2;
 
27327
  __pyx_2 = 0;
25154
27328
 
25155
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1049
 
27329
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1041
25156
27330
 * 
25157
 
 * cdef object _TYPE_CHECKS
 
27331
 * cdef list _TYPE_CHECKS
25158
27332
 * _TYPE_CHECKS = []             # <<<<<<<<<<<<<<
25159
27333
 * 
25160
27334
 * cdef _lower_bool(b):
25161
27335
 */
25162
 
  __pyx_1 = PyList_New(0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25163
 
  Py_DECREF(__pyx_v_4lxml_9objectify__TYPE_CHECKS);
25164
 
  __pyx_v_4lxml_9objectify__TYPE_CHECKS = ((PyObject *)__pyx_1);
25165
 
  __pyx_1 = 0;
 
27336
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1041; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27337
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27338
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS));
 
27339
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify__TYPE_CHECKS));
 
27340
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
 
27341
  __pyx_v_4lxml_9objectify__TYPE_CHECKS = __pyx_t_1;
 
27342
  __pyx_t_1 = 0;
25166
27343
 
25167
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1109
 
27344
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1101
25168
27345
 * # non-registered PyType for inner tree elements
25169
 
 * cdef object TREE_PYTYPE
 
27346
 * cdef PyType TREE_PYTYPE
25170
27347
 * TREE_PYTYPE = PyType(TREE_PYTYPE_NAME, None, ObjectifiedElement)             # <<<<<<<<<<<<<<
25171
27348
 * 
25172
27349
 * _registerPyTypes()
25173
27350
 */
25174
 
  __pyx_6 = PyTuple_New(3); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25175
 
  Py_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
25176
 
  PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
25177
 
  Py_INCREF(Py_None);
25178
 
  PyTuple_SET_ITEM(__pyx_6, 1, Py_None);
25179
 
  Py_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
25180
 
  PyTuple_SET_ITEM(__pyx_6, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
25181
 
  __pyx_4 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_6), NULL); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25182
 
  Py_DECREF(((PyObject *)__pyx_6)); __pyx_6 = 0;
25183
 
  Py_DECREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE);
25184
 
  __pyx_v_4lxml_9objectify_TREE_PYTYPE = __pyx_4;
25185
 
  __pyx_4 = 0;
 
27351
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27352
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27353
  __Pyx_INCREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
27354
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
27355
  __Pyx_GIVEREF(__pyx_v_4lxml_9objectify_TREE_PYTYPE_NAME);
 
27356
  __Pyx_INCREF(Py_None);
 
27357
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
27358
  __Pyx_GIVEREF(Py_None);
 
27359
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
27360
  PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
27361
  __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifiedElement)));
 
27362
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_PyType)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27363
  __Pyx_GOTREF(__pyx_t_3);
 
27364
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
27365
  if (!(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_4lxml_9objectify_PyType))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27366
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify_TREE_PYTYPE));
 
27367
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify_TREE_PYTYPE));
 
27368
  __Pyx_GIVEREF(__pyx_t_3);
 
27369
  __pyx_v_4lxml_9objectify_TREE_PYTYPE = ((struct __pyx_obj_4lxml_9objectify_PyType *)__pyx_t_3);
 
27370
  __pyx_t_3 = 0;
25186
27371
 
25187
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1111
 
27372
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1103
25188
27373
 * TREE_PYTYPE = PyType(TREE_PYTYPE_NAME, None, ObjectifiedElement)
25189
27374
 * 
25190
27375
 * _registerPyTypes()             # <<<<<<<<<<<<<<
25191
27376
 * 
25192
27377
 * def getRegisteredTypes():
25193
27378
 */
25194
 
  __pyx_2 = __pyx_f_4lxml_9objectify__registerPyTypes(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25195
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27379
  __pyx_t_3 = __pyx_f_4lxml_9objectify__registerPyTypes(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27380
  __Pyx_GOTREF(__pyx_t_3);
 
27381
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
25196
27382
 
25197
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1186
 
27383
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1177
25198
27384
 *     cdef object _nsmap
25199
27385
 *     cdef bint _annotate
25200
27386
 *     def __init__(self, *, namespace=None, nsmap=None, annotate=True,             # <<<<<<<<<<<<<<
25201
27387
 *                  makeelement=None):
25202
27388
 *         if nsmap is None:
25203
27389
 */
25204
 
  __pyx_5 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25205
 
  __pyx_k_648 = __pyx_5;
25206
 
  __pyx_5 = 0;
 
27390
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27391
  __Pyx_GOTREF(__pyx_t_3);
 
27392
  __pyx_k_714 = __pyx_t_3;
 
27393
  __pyx_t_3 = 0;
 
27394
  __Pyx_GIVEREF(__pyx_k_714);
25207
27395
 
25208
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1295
 
27396
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1286
25209
27397
 * 
25210
27398
 * cdef bint __RECURSIVE_STR
25211
27399
 * __RECURSIVE_STR = 0 # default: off             # <<<<<<<<<<<<<<
25214
27402
 */
25215
27403
  __pyx_v_4lxml_9objectify___RECURSIVE_STR = 0;
25216
27404
 
25217
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1297
 
27405
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1288
25218
27406
 * __RECURSIVE_STR = 0 # default: off
25219
27407
 * 
25220
27408
 * def enable_recursive_str(on=True):             # <<<<<<<<<<<<<<
25221
27409
 *     u"""enable_recursive_str(on=True)
25222
27410
 * 
25223
27411
 */
25224
 
  __pyx_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25225
 
  __pyx_k_649 = __pyx_1;
25226
 
  __pyx_1 = 0;
 
27412
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27413
  __Pyx_GOTREF(__pyx_t_3);
 
27414
  __pyx_k_715 = __pyx_t_3;
 
27415
  __pyx_t_3 = 0;
 
27416
  __Pyx_GIVEREF(__pyx_k_715);
25227
27417
 
25228
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1371
 
27418
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1362
25229
27419
 *     return (__unpickleElementTree, (etree.tostring(obj),))
25230
27420
 * 
25231
27421
 * _setupPickle(pickleReduceElement, pickleReduceElementTree)             # <<<<<<<<<<<<<<
25232
27422
 * del pickleReduceElement, pickleReduceElementTree
25233
27423
 * 
25234
27424
 */
25235
 
  __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_kp_pickleReduceElement); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25236
 
  __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_kp_650); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25237
 
  __pyx_2 = __pyx_f_4lxml_9objectify__setupPickle(__pyx_6, __pyx_4); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25238
 
  Py_DECREF(__pyx_6); __pyx_6 = 0;
25239
 
  Py_DECREF(__pyx_4); __pyx_4 = 0;
25240
 
  Py_DECREF(__pyx_2); __pyx_2 = 0;
 
27425
  __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_kp_pickleReduceElement); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27426
  __Pyx_GOTREF(__pyx_3);
 
27427
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_716); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27428
  __Pyx_GOTREF(__pyx_1);
 
27429
  __pyx_t_3 = __pyx_f_4lxml_9objectify__setupPickle(__pyx_3, __pyx_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27430
  __Pyx_GOTREF(__pyx_t_3);
 
27431
  __Pyx_DECREF(__pyx_3); __pyx_3 = 0;
 
27432
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
 
27433
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
25241
27434
 
25242
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1372
 
27435
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1363
25243
27436
 * 
25244
27437
 * _setupPickle(pickleReduceElement, pickleReduceElementTree)
25245
27438
 * del pickleReduceElement, pickleReduceElementTree             # <<<<<<<<<<<<<<
25246
27439
 * 
25247
27440
 * ################################################################################
25248
27441
 */
25249
 
  if (PyObject_DelAttrString(__pyx_m, "pickleReduceElement") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25250
 
  if (PyObject_DelAttrString(__pyx_m, "pickleReduceElementTree") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27442
  if (__Pyx_DelAttrString(__pyx_m, "pickleReduceElement") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27443
  if (__Pyx_DelAttrString(__pyx_m, "pickleReduceElementTree") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25251
27444
 
25252
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1463
 
27445
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1454
25253
27446
 *     return None
25254
27447
 * 
25255
27448
 * def pyannotate(element_or_tree, *, ignore_old=False, ignore_xsi=False,             # <<<<<<<<<<<<<<
25256
27449
 *              empty_pytype=None):
25257
27450
 *     u"""pyannotate(element_or_tree, ignore_old=False, ignore_xsi=False, empty_pytype=None)
25258
27451
 */
25259
 
  __pyx_6 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25260
 
  __pyx_k_651 = __pyx_6;
25261
 
  __pyx_6 = 0;
25262
 
  __pyx_4 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25263
 
  __pyx_k_652 = __pyx_4;
25264
 
  __pyx_4 = 0;
 
27452
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27453
  __Pyx_GOTREF(__pyx_t_3);
 
27454
  __pyx_k_717 = __pyx_t_3;
 
27455
  __pyx_t_3 = 0;
 
27456
  __Pyx_GIVEREF(__pyx_k_717);
 
27457
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27458
  __Pyx_GOTREF(__pyx_t_3);
 
27459
  __pyx_k_718 = __pyx_t_3;
 
27460
  __pyx_t_3 = 0;
 
27461
  __Pyx_GIVEREF(__pyx_k_718);
25265
27462
 
25266
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1486
 
27463
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1477
25267
27464
 *     _annotate(element, 0, 1, ignore_xsi, ignore_old, None, empty_pytype)
25268
27465
 * 
25269
27466
 * def xsiannotate(element_or_tree, *, ignore_old=False, ignore_pytype=False,             # <<<<<<<<<<<<<<
25270
27467
 *                 empty_type=None):
25271
27468
 *     u"""xsiannotate(element_or_tree, ignore_old=False, ignore_pytype=False, empty_type=None)
25272
27469
 */
25273
 
  __pyx_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25274
 
  __pyx_k_653 = __pyx_2;
25275
 
  __pyx_2 = 0;
25276
 
  __pyx_7 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25277
 
  __pyx_k_654 = __pyx_7;
25278
 
  __pyx_7 = 0;
 
27470
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27471
  __Pyx_GOTREF(__pyx_t_3);
 
27472
  __pyx_k_719 = __pyx_t_3;
 
27473
  __pyx_t_3 = 0;
 
27474
  __Pyx_GIVEREF(__pyx_k_719);
 
27475
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27476
  __Pyx_GOTREF(__pyx_t_3);
 
27477
  __pyx_k_720 = __pyx_t_3;
 
27478
  __pyx_t_3 = 0;
 
27479
  __Pyx_GIVEREF(__pyx_k_720);
25279
27480
 
25280
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1514
 
27481
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1505
25281
27482
 *     _annotate(element, 1, 0, ignore_old, ignore_pytype, empty_type, None)
25282
27483
 * 
25283
27484
 * def annotate(element_or_tree, *, ignore_old=True, ignore_xsi=False,             # <<<<<<<<<<<<<<
25284
27485
 *              empty_pytype=None, empty_type=None, annotate_xsi=0,
25285
27486
 *              annotate_pytype=1):
25286
27487
 */
25287
 
  __pyx_8 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25288
 
  __pyx_k_655 = __pyx_8;
25289
 
  __pyx_8 = 0;
25290
 
  __pyx_9 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25291
 
  __pyx_k_656 = __pyx_9;
25292
 
  __pyx_9 = 0;
25293
 
 
25294
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1712
25295
 
 *     tree.END_FOR_EACH_ELEMENT_FROM(c_node)
25296
 
 * 
25297
 
 * def deannotate(element_or_tree, *, pytype=True, xsi=True):             # <<<<<<<<<<<<<<
25298
 
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True)
25299
 
 * 
25300
 
 */
25301
 
  __pyx_10 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1712; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25302
 
  __pyx_k_657 = __pyx_10;
25303
 
  __pyx_10 = 0;
25304
 
  __pyx_11 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1712; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25305
 
  __pyx_k_658 = __pyx_11;
25306
 
  __pyx_11 = 0;
25307
 
 
25308
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1753
 
27488
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27489
  __Pyx_GOTREF(__pyx_t_3);
 
27490
  __pyx_k_721 = __pyx_t_3;
 
27491
  __pyx_t_3 = 0;
 
27492
  __Pyx_GIVEREF(__pyx_k_721);
 
27493
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27494
  __Pyx_GOTREF(__pyx_t_3);
 
27495
  __pyx_k_722 = __pyx_t_3;
 
27496
  __pyx_t_3 = 0;
 
27497
  __Pyx_GIVEREF(__pyx_k_722);
 
27498
 
 
27499
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1704
 
27500
 * 
 
27501
 * cdef object _strip_attributes
 
27502
 * _strip_attributes = etree.strip_attributes             # <<<<<<<<<<<<<<
 
27503
 * 
 
27504
 * def deannotate(element_or_tree, *, pytype=True, xsi=True, xsi_nil=False):
 
27505
 */
 
27506
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_strip_attributes); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1704; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27507
  __Pyx_GOTREF(__pyx_t_3);
 
27508
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify__strip_attributes);
 
27509
  __Pyx_DECREF(__pyx_v_4lxml_9objectify__strip_attributes);
 
27510
  __Pyx_GIVEREF(__pyx_t_3);
 
27511
  __pyx_v_4lxml_9objectify__strip_attributes = __pyx_t_3;
 
27512
  __pyx_t_3 = 0;
 
27513
 
 
27514
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1706
 
27515
 * _strip_attributes = etree.strip_attributes
 
27516
 * 
 
27517
 * def deannotate(element_or_tree, *, pytype=True, xsi=True, xsi_nil=False):             # <<<<<<<<<<<<<<
 
27518
 *     u"""deannotate(element_or_tree, pytype=True, xsi=True, xsi_nil=False)
 
27519
 * 
 
27520
 */
 
27521
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27522
  __Pyx_GOTREF(__pyx_t_3);
 
27523
  __pyx_k_723 = __pyx_t_3;
 
27524
  __pyx_t_3 = 0;
 
27525
  __Pyx_GIVEREF(__pyx_k_723);
 
27526
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27527
  __Pyx_GOTREF(__pyx_t_3);
 
27528
  __pyx_k_724 = __pyx_t_3;
 
27529
  __pyx_t_3 = 0;
 
27530
  __Pyx_GIVEREF(__pyx_k_724);
 
27531
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27532
  __Pyx_GOTREF(__pyx_t_3);
 
27533
  __pyx_k_725 = __pyx_t_3;
 
27534
  __pyx_t_3 = 0;
 
27535
  __Pyx_GIVEREF(__pyx_k_725);
 
27536
 
 
27537
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1733
25309
27538
 * 
25310
27539
 * cdef object __DEFAULT_PARSER
25311
27540
 * __DEFAULT_PARSER = etree.XMLParser(remove_blank_text=True)             # <<<<<<<<<<<<<<
25312
27541
 * __DEFAULT_PARSER.set_element_class_lookup( ObjectifyElementClassLookup() )
25313
27542
 * 
25314
27543
 */
25315
 
  __pyx_12 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25316
 
  __pyx_13 = PyDict_New(); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25317
 
  __pyx_14 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25318
 
  if (PyDict_SetItem(__pyx_13, __pyx_kp_remove_blank_text, __pyx_14) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25319
 
  Py_DECREF(__pyx_14); __pyx_14 = 0;
25320
 
  __pyx_14 = PyEval_CallObjectWithKeywords(__pyx_12, ((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_13)); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25321
 
  Py_DECREF(__pyx_12); __pyx_12 = 0;
25322
 
  Py_DECREF(((PyObject *)__pyx_13)); __pyx_13 = 0;
25323
 
  Py_DECREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
25324
 
  __pyx_v_4lxml_9objectify___DEFAULT_PARSER = __pyx_14;
25325
 
  __pyx_14 = 0;
 
27544
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_XMLParser); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27545
  __Pyx_GOTREF(__pyx_t_3);
 
27546
  __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27547
  __Pyx_GOTREF(((PyObject *)__pyx_2));
 
27548
  __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27549
  __Pyx_GOTREF(__pyx_t_1);
 
27550
  if (PyDict_SetItem(__pyx_2, __pyx_kp_remove_blank_text, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27551
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27552
  __pyx_t_1 = PyEval_CallObjectWithKeywords(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27553
  __Pyx_GOTREF(__pyx_t_1);
 
27554
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
27555
  __Pyx_DECREF(((PyObject *)__pyx_2)); __pyx_2 = 0;
 
27556
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
 
27557
  __Pyx_DECREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
 
27558
  __Pyx_GIVEREF(__pyx_t_1);
 
27559
  __pyx_v_4lxml_9objectify___DEFAULT_PARSER = __pyx_t_1;
 
27560
  __pyx_t_1 = 0;
25326
27561
 
25327
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1754
 
27562
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1734
25328
27563
 * cdef object __DEFAULT_PARSER
25329
27564
 * __DEFAULT_PARSER = etree.XMLParser(remove_blank_text=True)
25330
27565
 * __DEFAULT_PARSER.set_element_class_lookup( ObjectifyElementClassLookup() )             # <<<<<<<<<<<<<<
25331
27566
 * 
25332
27567
 * cdef object objectify_parser
25333
27568
 */
25334
 
  __pyx_12 = PyObject_GetAttr(__pyx_v_4lxml_9objectify___DEFAULT_PARSER, __pyx_kp_659); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25335
 
  __pyx_13 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25336
 
  __pyx_14 = PyTuple_New(1); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25337
 
  PyTuple_SET_ITEM(__pyx_14, 0, __pyx_13);
25338
 
  __pyx_13 = 0;
25339
 
  __pyx_13 = PyObject_Call(__pyx_12, ((PyObject *)__pyx_14), NULL); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25340
 
  Py_DECREF(__pyx_12); __pyx_12 = 0;
25341
 
  Py_DECREF(((PyObject *)__pyx_14)); __pyx_14 = 0;
25342
 
  Py_DECREF(__pyx_13); __pyx_13 = 0;
 
27569
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_4lxml_9objectify___DEFAULT_PARSER, __pyx_kp_726); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27570
  __Pyx_GOTREF(__pyx_t_1);
 
27571
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ObjectifyElementClassLookup)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27572
  __Pyx_GOTREF(__pyx_t_3);
 
27573
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27574
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
 
27575
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
 
27576
  __Pyx_GIVEREF(__pyx_t_3);
 
27577
  __pyx_t_3 = 0;
 
27578
  __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27579
  __Pyx_GOTREF(__pyx_t_3);
 
27580
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 
27581
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
 
27582
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
25343
27583
 
25344
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1757
 
27584
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1737
25345
27585
 * 
25346
27586
 * cdef object objectify_parser
25347
27587
 * objectify_parser = __DEFAULT_PARSER             # <<<<<<<<<<<<<<
25348
27588
 * 
25349
27589
 * def set_default_parser(new_parser = None):
25350
27590
 */
25351
 
  Py_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
25352
 
  Py_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
27591
  __Pyx_INCREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
 
27592
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
27593
  __Pyx_DECREF(__pyx_v_4lxml_9objectify_objectify_parser);
 
27594
  __Pyx_GIVEREF(__pyx_v_4lxml_9objectify___DEFAULT_PARSER);
25353
27595
  __pyx_v_4lxml_9objectify_objectify_parser = __pyx_v_4lxml_9objectify___DEFAULT_PARSER;
25354
27596
 
25355
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1804
 
27597
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1784
25356
27598
 * 
25357
27599
 * cdef object _fromstring
25358
27600
 * _fromstring = etree.fromstring             # <<<<<<<<<<<<<<
25359
27601
 * 
25360
27602
 * def fromstring(xml, parser=None, *, base_url=None):
25361
27603
 */
25362
 
  __pyx_12 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_fromstring); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1804; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25363
 
  Py_DECREF(__pyx_v_4lxml_9objectify__fromstring);
25364
 
  __pyx_v_4lxml_9objectify__fromstring = __pyx_12;
25365
 
  __pyx_12 = 0;
 
27604
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_fromstring); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27605
  __Pyx_GOTREF(__pyx_t_3);
 
27606
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify__fromstring);
 
27607
  __Pyx_DECREF(__pyx_v_4lxml_9objectify__fromstring);
 
27608
  __Pyx_GIVEREF(__pyx_t_3);
 
27609
  __pyx_v_4lxml_9objectify__fromstring = __pyx_t_3;
 
27610
  __pyx_t_3 = 0;
25366
27611
 
25367
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1839
 
27612
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1819
25368
27613
 * 
25369
27614
 * cdef object _parse
25370
27615
 * _parse = etree.parse             # <<<<<<<<<<<<<<
25371
27616
 * 
25372
27617
 * def parse(f, parser=None, *, base_url=None):
25373
27618
 */
25374
 
  __pyx_14 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_parse); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25375
 
  Py_DECREF(__pyx_v_4lxml_9objectify__parse);
25376
 
  __pyx_v_4lxml_9objectify__parse = __pyx_14;
25377
 
  __pyx_14 = 0;
 
27619
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_etree, __pyx_kp_parse); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1819; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27620
  __Pyx_GOTREF(__pyx_t_3);
 
27621
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify__parse);
 
27622
  __Pyx_DECREF(__pyx_v_4lxml_9objectify__parse);
 
27623
  __Pyx_GIVEREF(__pyx_t_3);
 
27624
  __pyx_v_4lxml_9objectify__parse = __pyx_t_3;
 
27625
  __pyx_t_3 = 0;
25378
27626
 
25379
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1857
 
27627
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1837
25380
27628
 * 
25381
 
 * cdef object _DEFAULT_NSMAP
 
27629
 * cdef dict _DEFAULT_NSMAP
25382
27630
 * _DEFAULT_NSMAP = { u"py"  : PYTYPE_NAMESPACE,             # <<<<<<<<<<<<<<
25383
27631
 *                    u"xsi" : XML_SCHEMA_INSTANCE_NS,
25384
27632
 *                    u"xsd" : XML_SCHEMA_NS}
25385
27633
 */
25386
 
  __pyx_13 = PyDict_New(); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1857; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25387
 
  if (PyDict_SetItem(__pyx_13, ((PyObject *)__pyx_kp_660), __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1857; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27634
  __pyx_3 = PyDict_New(); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27635
  __Pyx_GOTREF(((PyObject *)__pyx_3));
 
27636
  if (PyDict_SetItem(__pyx_3, ((PyObject *)__pyx_kp_727), __pyx_v_4lxml_9objectify_PYTYPE_NAMESPACE) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25388
27637
 
25389
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1858
25390
 
 * cdef object _DEFAULT_NSMAP
 
27638
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1838
 
27639
 * cdef dict _DEFAULT_NSMAP
25391
27640
 * _DEFAULT_NSMAP = { u"py"  : PYTYPE_NAMESPACE,
25392
27641
 *                    u"xsi" : XML_SCHEMA_INSTANCE_NS,             # <<<<<<<<<<<<<<
25393
27642
 *                    u"xsd" : XML_SCHEMA_NS}
25394
27643
 * 
25395
27644
 */
25396
 
  if (PyDict_SetItem(__pyx_13, ((PyObject *)__pyx_kp_661), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1857; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27645
  if (PyDict_SetItem(__pyx_3, ((PyObject *)__pyx_kp_728), __pyx_v_4lxml_9objectify_XML_SCHEMA_INSTANCE_NS) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25397
27646
 
25398
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1859
 
27647
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1839
25399
27648
 * _DEFAULT_NSMAP = { u"py"  : PYTYPE_NAMESPACE,
25400
27649
 *                    u"xsi" : XML_SCHEMA_INSTANCE_NS,
25401
27650
 *                    u"xsd" : XML_SCHEMA_NS}             # <<<<<<<<<<<<<<
25402
27651
 * 
25403
27652
 * E = ElementMaker()
25404
27653
 */
25405
 
  if (PyDict_SetItem(__pyx_13, ((PyObject *)__pyx_kp_662), __pyx_v_4lxml_9objectify_XML_SCHEMA_NS) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1857; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25406
 
  Py_DECREF(__pyx_v_4lxml_9objectify__DEFAULT_NSMAP);
25407
 
  __pyx_v_4lxml_9objectify__DEFAULT_NSMAP = ((PyObject *)__pyx_13);
25408
 
  __pyx_13 = 0;
 
27654
  if (PyDict_SetItem(__pyx_3, ((PyObject *)__pyx_kp_729), __pyx_v_4lxml_9objectify_XML_SCHEMA_NS) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27655
  __Pyx_GOTREF(((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
27656
  __Pyx_DECREF(((PyObject *)__pyx_v_4lxml_9objectify__DEFAULT_NSMAP));
 
27657
  __Pyx_GIVEREF(((PyObject *)__pyx_3));
 
27658
  __pyx_v_4lxml_9objectify__DEFAULT_NSMAP = __pyx_3;
 
27659
  __pyx_3 = 0;
25409
27660
 
25410
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/lxml.objectify.pyx":1861
 
27661
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/lxml.objectify.pyx":1841
25411
27662
 *                    u"xsd" : XML_SCHEMA_NS}
25412
27663
 * 
25413
27664
 * E = ElementMaker()             # <<<<<<<<<<<<<<
25414
27665
 * 
25415
27666
 * def Element(_tag, attrib=None, nsmap=None, *, _pytype=None, **_attributes):
25416
27667
 */
25417
 
  __pyx_12 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ElementMaker)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25418
 
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_E, __pyx_12) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25419
 
  Py_DECREF(__pyx_12); __pyx_12 = 0;
 
27668
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_4lxml_9objectify_ElementMaker)), ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27669
  __Pyx_GOTREF(__pyx_t_3);
 
27670
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_E, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27671
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
25420
27672
 
25421
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":84
 
27673
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":84
25422
27674
 * 
25423
27675
 * cdef object __MATCH_PATH_SEGMENT
25424
27676
 * __MATCH_PATH_SEGMENT = re.compile(             # <<<<<<<<<<<<<<
25425
27677
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
25426
27678
 *     re.U).match
25427
27679
 */
25428
 
  __pyx_14 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_re, __pyx_kp_compile); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27680
  __pyx_t_3 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_re, __pyx_kp_compile); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27681
  __Pyx_GOTREF(__pyx_t_3);
25429
27682
 
25430
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":86
 
27683
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":86
25431
27684
 * __MATCH_PATH_SEGMENT = re.compile(
25432
27685
 *     ur"(\.?)\s*(?:\{([^}]*)\})?\s*([^.{}\[\]\s]+)\s*(?:\[\s*([-0-9]+)\s*\])?",
25433
27686
 *     re.U).match             # <<<<<<<<<<<<<<
25434
27687
 * 
25435
27688
 * cdef object _RELATIVE_PATH_SEGMENT
25436
27689
 */
25437
 
  __pyx_13 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_re, __pyx_kp_U); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25438
 
  __pyx_12 = PyTuple_New(2); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25439
 
  Py_INCREF(((PyObject *)__pyx_kp_663));
25440
 
  PyTuple_SET_ITEM(__pyx_12, 0, ((PyObject *)__pyx_kp_663));
25441
 
  PyTuple_SET_ITEM(__pyx_12, 1, __pyx_13);
25442
 
  __pyx_13 = 0;
25443
 
  __pyx_13 = PyObject_Call(__pyx_14, ((PyObject *)__pyx_12), NULL); if (unlikely(!__pyx_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25444
 
  Py_DECREF(__pyx_14); __pyx_14 = 0;
25445
 
  Py_DECREF(((PyObject *)__pyx_12)); __pyx_12 = 0;
25446
 
  __pyx_14 = PyObject_GetAttr(__pyx_13, __pyx_kp_match); if (unlikely(!__pyx_14)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25447
 
  Py_DECREF(__pyx_13); __pyx_13 = 0;
25448
 
  Py_DECREF(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
25449
 
  __pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = __pyx_14;
25450
 
  __pyx_14 = 0;
 
27690
  __pyx_t_4 = PyObject_GetAttr(__pyx_v_4lxml_9objectify_re, __pyx_kp_U); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27691
  __Pyx_GOTREF(__pyx_t_4);
 
27692
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27693
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27694
  __Pyx_INCREF(((PyObject *)__pyx_kp_730));
 
27695
  PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_730));
 
27696
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_730));
 
27697
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
 
27698
  __Pyx_GIVEREF(__pyx_t_4);
 
27699
  __pyx_t_4 = 0;
 
27700
  __pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27701
  __Pyx_GOTREF(__pyx_t_4);
 
27702
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 
27703
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
 
27704
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_kp_match); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27705
  __Pyx_GOTREF(__pyx_t_1);
 
27706
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
 
27707
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
 
27708
  __Pyx_DECREF(__pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT);
 
27709
  __Pyx_GIVEREF(__pyx_t_1);
 
27710
  __pyx_v_4lxml_9objectify___MATCH_PATH_SEGMENT = __pyx_t_1;
 
27711
  __pyx_t_1 = 0;
25451
27712
 
25452
 
  /* "/home/sbehnel/source/Python/lxml/lxml-2.1/src/lxml/objectpath.pxi":89
 
27713
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/objectpath.pxi":89
25453
27714
 * 
25454
27715
 * cdef object _RELATIVE_PATH_SEGMENT
25455
27716
 * _RELATIVE_PATH_SEGMENT = (None, None, 0)             # <<<<<<<<<<<<<<
25456
27717
 * 
25457
27718
 * cdef _parseObjectPathString(path):
25458
27719
 */
25459
 
  __pyx_12 = PyTuple_New(3); if (unlikely(!__pyx_12)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
25460
 
  Py_INCREF(Py_None);
25461
 
  PyTuple_SET_ITEM(__pyx_12, 0, Py_None);
25462
 
  Py_INCREF(Py_None);
25463
 
  PyTuple_SET_ITEM(__pyx_12, 1, Py_None);
25464
 
  Py_INCREF(__pyx_int_0);
25465
 
  PyTuple_SET_ITEM(__pyx_12, 2, __pyx_int_0);
25466
 
  Py_DECREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
25467
 
  __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = ((PyObject *)__pyx_12);
25468
 
  __pyx_12 = 0;
 
27720
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 
27721
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
 
27722
  __Pyx_INCREF(Py_None);
 
27723
  PyTuple_SET_ITEM(__pyx_t_1, 0, Py_None);
 
27724
  __Pyx_GIVEREF(Py_None);
 
27725
  __Pyx_INCREF(Py_None);
 
27726
  PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
 
27727
  __Pyx_GIVEREF(Py_None);
 
27728
  __Pyx_INCREF(__pyx_int_0);
 
27729
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_int_0);
 
27730
  __Pyx_GIVEREF(__pyx_int_0);
 
27731
  __Pyx_GOTREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
 
27732
  __Pyx_DECREF(__pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT);
 
27733
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
 
27734
  __pyx_v_4lxml_9objectify__RELATIVE_PATH_SEGMENT = ((PyObject *)__pyx_t_1);
 
27735
  __pyx_t_1 = 0;
25469
27736
 
25470
 
  /* "/home/sbehnel/source/Python/cython/cython-release/Cython/Includes/python_object.pxd":1
25471
 
 * cdef extern from "Python.h":             # <<<<<<<<<<<<<<
25472
 
 *     ctypedef void PyObject
25473
 
 *     ctypedef void PyTypeObject
 
27737
  /* "/home/sbehnel/source/Python/lxml/lxml-HEAD/src/lxml/cstd.pxd":2
 
27738
 * 
 
27739
 * cdef extern from "string.h":             # <<<<<<<<<<<<<<
 
27740
 *     cdef int strlen(char* s) nogil
 
27741
 *     cdef char* strstr(char* haystack, char* needle) nogil
25474
27742
 */
 
27743
  goto __pyx_L0;
 
27744
  __pyx_L1_error:;
 
27745
  __Pyx_XDECREF(__pyx_1);
 
27746
  __Pyx_XDECREF(__pyx_2);
 
27747
  __Pyx_XDECREF(__pyx_3);
 
27748
  __Pyx_XDECREF(__pyx_t_1);
 
27749
  __Pyx_XDECREF(__pyx_t_3);
 
27750
  __Pyx_XDECREF(__pyx_t_4);
 
27751
  __Pyx_AddTraceback("lxml.objectify");
 
27752
  Py_DECREF(__pyx_m); __pyx_m = 0;
 
27753
  __pyx_L0:;
 
27754
  __Pyx_FinishRefcountContext();
25475
27755
  #if PY_MAJOR_VERSION < 3
25476
27756
  return;
25477
27757
  #else
25478
27758
  return __pyx_m;
25479
27759
  #endif
25480
 
  __pyx_L1_error:;
25481
 
  Py_XDECREF(__pyx_1);
25482
 
  Py_XDECREF(__pyx_2);
25483
 
  Py_XDECREF(__pyx_4);
25484
 
  Py_XDECREF(__pyx_5);
25485
 
  Py_XDECREF(__pyx_6);
25486
 
  Py_XDECREF(__pyx_7);
25487
 
  Py_XDECREF(__pyx_8);
25488
 
  Py_XDECREF(__pyx_9);
25489
 
  Py_XDECREF(__pyx_10);
25490
 
  Py_XDECREF(__pyx_11);
25491
 
  Py_XDECREF(__pyx_12);
25492
 
  Py_XDECREF(__pyx_13);
25493
 
  Py_XDECREF(__pyx_14);
25494
 
  __Pyx_AddTraceback("lxml.objectify");
25495
 
  #if PY_MAJOR_VERSION >= 3
25496
 
  return NULL;
25497
 
  #endif
25498
27760
}
25499
27761
 
25500
27762
static const char *__pyx_filenames[] = {
25567
27829
    PyObject*** first_kw_arg = argnames + num_pos_args;
25568
27830
 
25569
27831
    while (PyDict_Next(kwds, &pos, &key, &value)) {
25570
 
        #if PY_MAJOR_VERSION < 3
25571
 
        if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
25572
 
        #else
25573
 
        if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
25574
 
        #endif
25575
 
            goto invalid_keyword_type;
 
27832
        name = first_kw_arg;
 
27833
        while (*name && (**name != key)) name++;
 
27834
        if (*name) {
 
27835
            values[name-argnames] = value;
25576
27836
        } else {
25577
 
            name = argnames;
25578
 
            while (*name && (**name != key)) name++;
25579
 
            if (*name) {
25580
 
                if (name < first_kw_arg) goto arg_passed_twice;
25581
 
                values[name-argnames] = value;
 
27837
            #if PY_MAJOR_VERSION < 3
 
27838
            if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
 
27839
            #else
 
27840
            if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
 
27841
            #endif
 
27842
                goto invalid_keyword_type;
25582
27843
            } else {
25583
27844
                for (name = first_kw_arg; *name; name++) {
25584
27845
                    #if PY_MAJOR_VERSION >= 3
25586
27847
                        PyUnicode_Compare(**name, key) == 0) break;
25587
27848
                    #else
25588
27849
                    if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
25589
 
                        strcmp(PyString_AS_STRING(**name),
25590
 
                               PyString_AS_STRING(key)) == 0) break;
 
27850
                        _PyString_Eq(**name, key)) break;
25591
27851
                    #endif
25592
27852
                }
25593
27853
                if (*name) {
25601
27861
                            PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
25602
27862
                        #else
25603
27863
                        if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
25604
 
                            strcmp(PyString_AS_STRING(**name),
25605
 
                                   PyString_AS_STRING(key)) == 0) goto arg_passed_twice;
 
27864
                            _PyString_Eq(**name, key)) goto arg_passed_twice;
25606
27865
                        #endif
25607
27866
                    }
25608
27867
                    if (kwds2) {
25635
27894
    return -1;
25636
27895
}
25637
27896
 
 
27897
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
 
27898
    if (!type) {
 
27899
        PyErr_Format(PyExc_SystemError, "Missing type object");
 
27900
        return 0;
 
27901
    }
 
27902
    if (obj == Py_None || PyObject_TypeCheck(obj, type))
 
27903
        return 1;
 
27904
    PyErr_Format(PyExc_TypeError, "Cannot convert %s to %s",
 
27905
        Py_TYPE(obj)->tp_name, type->tp_name);
 
27906
    return 0;
 
27907
}
 
27908
 
25638
27909
 
25639
27910
static INLINE int __Pyx_CheckKeywordStrings(
25640
27911
    PyObject *kwdict,
25670
27941
    return 0;
25671
27942
}
25672
27943
 
 
27944
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
 
27945
    PyObject *tmp_type, *tmp_value, *tmp_tb;
 
27946
    PyThreadState *tstate = PyThreadState_GET();
 
27947
    *type = tstate->curexc_type;
 
27948
    *value = tstate->curexc_value;
 
27949
    *tb = tstate->curexc_traceback;
 
27950
    tstate->curexc_type = 0;
 
27951
    tstate->curexc_value = 0;
 
27952
    tstate->curexc_traceback = 0;
 
27953
    PyErr_NormalizeException(type, value, tb);
 
27954
    if (PyErr_Occurred())
 
27955
        goto bad;
 
27956
    Py_INCREF(*type);
 
27957
    Py_INCREF(*value);
 
27958
    Py_INCREF(*tb);
 
27959
    tmp_type = tstate->exc_type;
 
27960
    tmp_value = tstate->exc_value;
 
27961
    tmp_tb = tstate->exc_traceback;
 
27962
    tstate->exc_type = *type;
 
27963
    tstate->exc_value = *value;
 
27964
    tstate->exc_traceback = *tb;
 
27965
    /* Make sure tstate is in a consistent state when we XDECREF
 
27966
    these objects (XDECREF may run arbitrary code). */
 
27967
    Py_XDECREF(tmp_type);
 
27968
    Py_XDECREF(tmp_value);
 
27969
    Py_XDECREF(tmp_tb);
 
27970
    return 0;
 
27971
bad:
 
27972
    Py_XDECREF(*type);
 
27973
    Py_XDECREF(*value);
 
27974
    Py_XDECREF(*tb);
 
27975
    return -1;
 
27976
}
 
27977
 
 
27978
 
 
27979
 
 
27980
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
 
27981
    const char *name, int exact)
 
27982
{
 
27983
    if (!type) {
 
27984
        PyErr_Format(PyExc_SystemError, "Missing type object");
 
27985
        return 0;
 
27986
    }
 
27987
    if (none_allowed && obj == Py_None) return 1;
 
27988
    else if (exact) {
 
27989
        if (Py_TYPE(obj) == type) return 1;
 
27990
    }
 
27991
    else {
 
27992
        if (PyObject_TypeCheck(obj, type)) return 1;
 
27993
    }
 
27994
    PyErr_Format(PyExc_TypeError,
 
27995
        "Argument '%s' has incorrect type (expected %s, got %s)",
 
27996
        name, type->tp_name, Py_TYPE(obj)->tp_name);
 
27997
    return 0;
 
27998
}
25673
27999
 
25674
28000
static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) {
25675
28001
    PyThreadState *tstate = PyThreadState_GET();
25695
28021
    Py_XDECREF(tmp_tb);
25696
28022
}
25697
28023
 
25698
 
static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
25699
 
    const char *name, int exact)
25700
 
{
25701
 
    if (!type) {
25702
 
        PyErr_Format(PyExc_SystemError, "Missing type object");
25703
 
        return 0;
25704
 
    }
25705
 
    if (none_allowed && obj == Py_None) return 1;
25706
 
    else if (exact) {
25707
 
        if (Py_TYPE(obj) == type) return 1;
25708
 
    }
25709
 
    else {
25710
 
        if (PyObject_TypeCheck(obj, type)) return 1;
25711
 
    }
25712
 
    PyErr_Format(PyExc_TypeError,
25713
 
        "Argument '%s' has incorrect type (expected %s, got %s)",
25714
 
        name, type->tp_name, Py_TYPE(obj)->tp_name);
25715
 
    return 0;
25716
 
}
25717
 
 
25718
28024
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
25719
28025
    PyObject *__import__ = 0;
25720
28026
    PyObject *empty_list = 0;
25722
28028
    PyObject *global_dict = 0;
25723
28029
    PyObject *empty_dict = 0;
25724
28030
    PyObject *list;
25725
 
    __import__ = PyObject_GetAttrString(__pyx_b, "__import__");
 
28031
    __import__ = __Pyx_GetAttrString(__pyx_b, "__import__");
25726
28032
    if (!__import__)
25727
28033
        goto bad;
25728
28034
    if (from_list)
25739
28045
    empty_dict = PyDict_New();
25740
28046
    if (!empty_dict)
25741
28047
        goto bad;
25742
 
    module = PyObject_CallFunction(__import__, "OOOO",
25743
 
        name, global_dict, empty_dict, list);
 
28048
    module = PyObject_CallFunctionObjArgs(__import__,
 
28049
        name, global_dict, empty_dict, list, NULL);
25744
28050
bad:
25745
28051
    Py_XDECREF(empty_list);
25746
28052
    Py_XDECREF(__import__);
25756
28062
    return result;
25757
28063
}
25758
28064
 
25759
 
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
25760
 
    PyObject *tmp_type, *tmp_value, *tmp_tb;
25761
 
    PyThreadState *tstate = PyThreadState_GET();
25762
 
    __Pyx_ErrFetch(type, value, tb);
25763
 
    PyErr_NormalizeException(type, value, tb);
25764
 
    if (PyErr_Occurred())
25765
 
        goto bad;
25766
 
    Py_INCREF(*type);
25767
 
    Py_INCREF(*value);
25768
 
    Py_INCREF(*tb);
25769
 
    tmp_type = tstate->exc_type;
25770
 
    tmp_value = tstate->exc_value;
25771
 
    tmp_tb = tstate->exc_traceback;
25772
 
    tstate->exc_type = *type;
25773
 
    tstate->exc_value = *value;
25774
 
    tstate->exc_traceback = *tb;
25775
 
    /* Make sure tstate is in a consistent state when we XDECREF
25776
 
    these objects (XDECREF may run arbitrary code). */
25777
 
    Py_XDECREF(tmp_type);
25778
 
    Py_XDECREF(tmp_value);
25779
 
    Py_XDECREF(tmp_tb);
25780
 
    return 0;
25781
 
bad:
25782
 
    Py_XDECREF(*type);
25783
 
    Py_XDECREF(*value);
25784
 
    Py_XDECREF(*tb);
25785
 
    return -1;
25786
 
}
25787
 
 
25788
 
 
25789
 
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
25790
 
    PyObject *tmp_type, *tmp_value, *tmp_tb;
25791
 
    PyThreadState *tstate = PyThreadState_GET();
25792
 
 
25793
 
    tmp_type = tstate->curexc_type;
25794
 
    tmp_value = tstate->curexc_value;
25795
 
    tmp_tb = tstate->curexc_traceback;
25796
 
    tstate->curexc_type = type;
25797
 
    tstate->curexc_value = value;
25798
 
    tstate->curexc_traceback = tb;
25799
 
    Py_XDECREF(tmp_type);
25800
 
    Py_XDECREF(tmp_value);
25801
 
    Py_XDECREF(tmp_tb);
25802
 
}
25803
 
 
25804
 
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
25805
 
    PyThreadState *tstate = PyThreadState_GET();
25806
 
    *type = tstate->curexc_type;
25807
 
    *value = tstate->curexc_value;
25808
 
    *tb = tstate->curexc_traceback;
25809
 
 
25810
 
    tstate->curexc_type = 0;
25811
 
    tstate->curexc_value = 0;
25812
 
    tstate->curexc_traceback = 0;
25813
 
}
25814
 
 
 
28065
static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
 
28066
    PyErr_Format(PyExc_ValueError,
 
28067
        #if PY_VERSION_HEX < 0x02050000
 
28068
                 "need more than %d value%s to unpack", (int)index,
 
28069
        #else
 
28070
                 "need more than %zd value%s to unpack", index,
 
28071
        #endif
 
28072
                 (index == 1) ? "" : "s");
 
28073
}
 
28074
 
 
28075
static INLINE void __Pyx_RaiseTooManyValuesError(void) {
 
28076
    PyErr_SetString(PyExc_ValueError, "too many values to unpack");
 
28077
}
25815
28078
 
25816
28079
static PyObject *__Pyx_UnpackItem(PyObject *iter, Py_ssize_t index) {
25817
28080
    PyObject *item;
25818
28081
    if (!(item = PyIter_Next(iter))) {
25819
28082
        if (!PyErr_Occurred()) {
25820
 
            PyErr_Format(PyExc_ValueError,
25821
 
                #if PY_VERSION_HEX < 0x02050000
25822
 
                    "need more than %d values to unpack", (int)index);
25823
 
                #else
25824
 
                    "need more than %zd values to unpack", index);
25825
 
                #endif
 
28083
            __Pyx_RaiseNeedMoreValuesError(index);
25826
28084
        }
25827
28085
    }
25828
28086
    return item;
25832
28090
    PyObject *item;
25833
28091
    if ((item = PyIter_Next(iter))) {
25834
28092
        Py_DECREF(item);
25835
 
        PyErr_SetString(PyExc_ValueError, "too many values to unpack");
 
28093
        __Pyx_RaiseTooManyValuesError();
25836
28094
        return -1;
25837
28095
    }
25838
28096
    else if (!PyErr_Occurred())
25841
28099
        return -1;
25842
28100
}
25843
28101
 
25844
 
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
25845
 
    if (!type) {
25846
 
        PyErr_Format(PyExc_SystemError, "Missing type object");
25847
 
        return 0;
25848
 
    }
25849
 
    if (obj == Py_None || PyObject_TypeCheck(obj, type))
25850
 
        return 1;
25851
 
    PyErr_Format(PyExc_TypeError, "Cannot convert %s to %s",
25852
 
        Py_TYPE(obj)->tp_name, type->tp_name);
25853
 
    return 0;
25854
 
}
25855
 
 
25856
28102
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
25857
28103
    Py_XINCREF(type);
25858
28104
    Py_XINCREF(value);
25917
28163
    return;
25918
28164
}
25919
28165
 
 
28166
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
 
28167
    PyObject *tmp_type, *tmp_value, *tmp_tb;
 
28168
    PyThreadState *tstate = PyThreadState_GET();
 
28169
 
 
28170
#if PY_MAJOR_VERSION >= 3
 
28171
    /* Note: this is a temporary work-around to prevent crashes in Python 3.0 */
 
28172
    if ((tstate->exc_type != NULL) & (tstate->exc_type != Py_None)) {
 
28173
        tmp_type = tstate->exc_type;
 
28174
        tmp_value = tstate->exc_value;
 
28175
        tmp_tb = tstate->exc_traceback;
 
28176
        PyErr_NormalizeException(&type, &value, &tb);
 
28177
        PyErr_NormalizeException(&tmp_type, &tmp_value, &tmp_tb);
 
28178
        tstate->exc_type = 0;
 
28179
        tstate->exc_value = 0;
 
28180
        tstate->exc_traceback = 0;
 
28181
        PyException_SetContext(value, tmp_value);
 
28182
        Py_DECREF(tmp_type);
 
28183
        Py_XDECREF(tmp_tb);
 
28184
    }
 
28185
#endif
 
28186
 
 
28187
    tmp_type = tstate->curexc_type;
 
28188
    tmp_value = tstate->curexc_value;
 
28189
    tmp_tb = tstate->curexc_traceback;
 
28190
    tstate->curexc_type = type;
 
28191
    tstate->curexc_value = value;
 
28192
    tstate->curexc_traceback = tb;
 
28193
    Py_XDECREF(tmp_type);
 
28194
    Py_XDECREF(tmp_value);
 
28195
    Py_XDECREF(tmp_tb);
 
28196
}
 
28197
 
 
28198
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
 
28199
    PyThreadState *tstate = PyThreadState_GET();
 
28200
    *type = tstate->curexc_type;
 
28201
    *value = tstate->curexc_value;
 
28202
    *tb = tstate->curexc_traceback;
 
28203
 
 
28204
    tstate->curexc_type = 0;
 
28205
    tstate->curexc_value = 0;
 
28206
    tstate->curexc_traceback = 0;
 
28207
}
 
28208
 
 
28209
 
25920
28210
static PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
25921
28211
    PyObject *r = PyObject_GetAttr(o, n);
25922
28212
    if (!r) {
25931
28221
    return 0;
25932
28222
}
25933
28223
 
 
28224
static INLINE int __Pyx_StrEq(const char *s1, const char *s2) {
 
28225
     while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
 
28226
     return *s1 == *s2;
 
28227
}
 
28228
 
 
28229
static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
 
28230
    if (sizeof(unsigned char) < sizeof(long)) {
 
28231
        long val = __Pyx_PyInt_AsLong(x);
 
28232
        if (unlikely(val != (long)(unsigned char)val)) {
 
28233
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28234
                return (unsigned char)-1;
 
28235
            if (unlikely(val < 0)) {
 
28236
                PyErr_SetString(PyExc_OverflowError,
 
28237
                                "can't convert negative value to unsigned char");
 
28238
                return (unsigned char)-1;
 
28239
            }
 
28240
            PyErr_SetString(PyExc_OverflowError,
 
28241
                           "value too large to convert to unsigned char");
 
28242
            return (unsigned char)-1;
 
28243
        }
 
28244
        return (unsigned char)val;
 
28245
    }
 
28246
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
 
28247
}
 
28248
 
 
28249
static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
 
28250
    if (sizeof(unsigned short) < sizeof(long)) {
 
28251
        long val = __Pyx_PyInt_AsLong(x);
 
28252
        if (unlikely(val != (long)(unsigned short)val)) {
 
28253
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28254
                return (unsigned short)-1;
 
28255
            if (unlikely(val < 0)) {
 
28256
                PyErr_SetString(PyExc_OverflowError,
 
28257
                                "can't convert negative value to unsigned short");
 
28258
                return (unsigned short)-1;
 
28259
            }
 
28260
            PyErr_SetString(PyExc_OverflowError,
 
28261
                           "value too large to convert to unsigned short");
 
28262
            return (unsigned short)-1;
 
28263
        }
 
28264
        return (unsigned short)val;
 
28265
    }
 
28266
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
 
28267
}
 
28268
 
 
28269
static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
 
28270
    if (sizeof(unsigned int) < sizeof(long)) {
 
28271
        long val = __Pyx_PyInt_AsLong(x);
 
28272
        if (unlikely(val != (long)(unsigned int)val)) {
 
28273
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28274
                return (unsigned int)-1;
 
28275
            if (unlikely(val < 0)) {
 
28276
                PyErr_SetString(PyExc_OverflowError,
 
28277
                                "can't convert negative value to unsigned int");
 
28278
                return (unsigned int)-1;
 
28279
            }
 
28280
            PyErr_SetString(PyExc_OverflowError,
 
28281
                           "value too large to convert to unsigned int");
 
28282
            return (unsigned int)-1;
 
28283
        }
 
28284
        return (unsigned int)val;
 
28285
    }
 
28286
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
 
28287
}
 
28288
 
 
28289
static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
 
28290
    if (sizeof(char) < sizeof(long)) {
 
28291
        long val = __Pyx_PyInt_AsLong(x);
 
28292
        if (unlikely(val != (long)(char)val)) {
 
28293
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28294
                return (char)-1;
 
28295
            PyErr_SetString(PyExc_OverflowError,
 
28296
                           "value too large to convert to char");
 
28297
            return (char)-1;
 
28298
        }
 
28299
        return (char)val;
 
28300
    }
 
28301
    return (char)__Pyx_PyInt_AsLong(x);
 
28302
}
 
28303
 
 
28304
static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
 
28305
    if (sizeof(short) < sizeof(long)) {
 
28306
        long val = __Pyx_PyInt_AsLong(x);
 
28307
        if (unlikely(val != (long)(short)val)) {
 
28308
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28309
                return (short)-1;
 
28310
            PyErr_SetString(PyExc_OverflowError,
 
28311
                           "value too large to convert to short");
 
28312
            return (short)-1;
 
28313
        }
 
28314
        return (short)val;
 
28315
    }
 
28316
    return (short)__Pyx_PyInt_AsLong(x);
 
28317
}
 
28318
 
 
28319
static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
 
28320
    if (sizeof(int) < sizeof(long)) {
 
28321
        long val = __Pyx_PyInt_AsLong(x);
 
28322
        if (unlikely(val != (long)(int)val)) {
 
28323
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28324
                return (int)-1;
 
28325
            PyErr_SetString(PyExc_OverflowError,
 
28326
                           "value too large to convert to int");
 
28327
            return (int)-1;
 
28328
        }
 
28329
        return (int)val;
 
28330
    }
 
28331
    return (int)__Pyx_PyInt_AsLong(x);
 
28332
}
 
28333
 
 
28334
static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
 
28335
    if (sizeof(signed char) < sizeof(long)) {
 
28336
        long val = __Pyx_PyInt_AsLong(x);
 
28337
        if (unlikely(val != (long)(signed char)val)) {
 
28338
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28339
                return (signed char)-1;
 
28340
            PyErr_SetString(PyExc_OverflowError,
 
28341
                           "value too large to convert to signed char");
 
28342
            return (signed char)-1;
 
28343
        }
 
28344
        return (signed char)val;
 
28345
    }
 
28346
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
 
28347
}
 
28348
 
 
28349
static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
 
28350
    if (sizeof(signed short) < sizeof(long)) {
 
28351
        long val = __Pyx_PyInt_AsLong(x);
 
28352
        if (unlikely(val != (long)(signed short)val)) {
 
28353
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28354
                return (signed short)-1;
 
28355
            PyErr_SetString(PyExc_OverflowError,
 
28356
                           "value too large to convert to signed short");
 
28357
            return (signed short)-1;
 
28358
        }
 
28359
        return (signed short)val;
 
28360
    }
 
28361
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
 
28362
}
 
28363
 
 
28364
static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
 
28365
    if (sizeof(signed int) < sizeof(long)) {
 
28366
        long val = __Pyx_PyInt_AsLong(x);
 
28367
        if (unlikely(val != (long)(signed int)val)) {
 
28368
            if (unlikely(val == -1 && PyErr_Occurred()))
 
28369
                return (signed int)-1;
 
28370
            PyErr_SetString(PyExc_OverflowError,
 
28371
                           "value too large to convert to signed int");
 
28372
            return (signed int)-1;
 
28373
        }
 
28374
        return (signed int)val;
 
28375
    }
 
28376
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
 
28377
}
 
28378
 
 
28379
static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
 
28380
#if PY_VERSION_HEX < 0x03000000
 
28381
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28382
        long val = PyInt_AS_LONG(x);
 
28383
        if (unlikely(val < 0)) {
 
28384
            PyErr_SetString(PyExc_OverflowError,
 
28385
                            "can't convert negative value to unsigned long");
 
28386
            return (unsigned long)-1;
 
28387
        }
 
28388
        return (unsigned long)val;
 
28389
    } else
 
28390
#endif
 
28391
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28392
        if (unlikely(Py_SIZE(x) < 0)) {
 
28393
            PyErr_SetString(PyExc_OverflowError,
 
28394
                            "can't convert negative value to unsigned long");
 
28395
            return (unsigned long)-1;
 
28396
        }
 
28397
        return PyLong_AsUnsignedLong(x);
 
28398
    } else {
 
28399
        unsigned long val;
 
28400
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28401
        if (!tmp) return (unsigned long)-1;
 
28402
        val = __Pyx_PyInt_AsUnsignedLong(tmp);
 
28403
        Py_DECREF(tmp);
 
28404
        return val;
 
28405
    }
 
28406
}
 
28407
 
 
28408
static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
 
28409
#if PY_VERSION_HEX < 0x03000000
 
28410
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28411
        long val = PyInt_AS_LONG(x);
 
28412
        if (unlikely(val < 0)) {
 
28413
            PyErr_SetString(PyExc_OverflowError,
 
28414
                            "can't convert negative value to unsigned PY_LONG_LONG");
 
28415
            return (unsigned PY_LONG_LONG)-1;
 
28416
        }
 
28417
        return (unsigned PY_LONG_LONG)val;
 
28418
    } else
 
28419
#endif
 
28420
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28421
        if (unlikely(Py_SIZE(x) < 0)) {
 
28422
            PyErr_SetString(PyExc_OverflowError,
 
28423
                            "can't convert negative value to unsigned PY_LONG_LONG");
 
28424
            return (unsigned PY_LONG_LONG)-1;
 
28425
        }
 
28426
        return PyLong_AsUnsignedLongLong(x);
 
28427
    } else {
 
28428
        unsigned PY_LONG_LONG val;
 
28429
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28430
        if (!tmp) return (unsigned PY_LONG_LONG)-1;
 
28431
        val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
 
28432
        Py_DECREF(tmp);
 
28433
        return val;
 
28434
    }
 
28435
}
 
28436
 
 
28437
static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
 
28438
#if PY_VERSION_HEX < 0x03000000
 
28439
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28440
        long val = PyInt_AS_LONG(x);
 
28441
        return (long)val;
 
28442
    } else
 
28443
#endif
 
28444
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28445
        return PyLong_AsLong(x);
 
28446
    } else {
 
28447
        long val;
 
28448
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28449
        if (!tmp) return (long)-1;
 
28450
        val = __Pyx_PyInt_AsLong(tmp);
 
28451
        Py_DECREF(tmp);
 
28452
        return val;
 
28453
    }
 
28454
}
 
28455
 
 
28456
static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
 
28457
#if PY_VERSION_HEX < 0x03000000
 
28458
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28459
        long val = PyInt_AS_LONG(x);
 
28460
        return (PY_LONG_LONG)val;
 
28461
    } else
 
28462
#endif
 
28463
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28464
        return PyLong_AsLongLong(x);
 
28465
    } else {
 
28466
        PY_LONG_LONG val;
 
28467
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28468
        if (!tmp) return (PY_LONG_LONG)-1;
 
28469
        val = __Pyx_PyInt_AsLongLong(tmp);
 
28470
        Py_DECREF(tmp);
 
28471
        return val;
 
28472
    }
 
28473
}
 
28474
 
 
28475
static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
 
28476
#if PY_VERSION_HEX < 0x03000000
 
28477
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28478
        long val = PyInt_AS_LONG(x);
 
28479
        return (signed long)val;
 
28480
    } else
 
28481
#endif
 
28482
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28483
        return PyLong_AsLong(x);
 
28484
    } else {
 
28485
        signed long val;
 
28486
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28487
        if (!tmp) return (signed long)-1;
 
28488
        val = __Pyx_PyInt_AsSignedLong(tmp);
 
28489
        Py_DECREF(tmp);
 
28490
        return val;
 
28491
    }
 
28492
}
 
28493
 
 
28494
static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
 
28495
#if PY_VERSION_HEX < 0x03000000
 
28496
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
 
28497
        long val = PyInt_AS_LONG(x);
 
28498
        return (signed PY_LONG_LONG)val;
 
28499
    } else
 
28500
#endif
 
28501
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
 
28502
        return PyLong_AsLongLong(x);
 
28503
    } else {
 
28504
        signed PY_LONG_LONG val;
 
28505
        PyObject *tmp = __Pyx_PyNumber_Int(x);
 
28506
        if (!tmp) return (signed PY_LONG_LONG)-1;
 
28507
        val = __Pyx_PyInt_AsSignedLongLong(tmp);
 
28508
        Py_DECREF(tmp);
 
28509
        return val;
 
28510
    }
 
28511
}
 
28512
 
25934
28513
static void __Pyx_WriteUnraisable(const char *name) {
25935
28514
    PyObject *old_exc, *old_val, *old_tb;
25936
28515
    PyObject *ctx;
26123
28702
 
26124
28703
/* Type Conversion Functions */
26125
28704
 
26126
 
static INLINE Py_ssize_t __pyx_PyIndex_AsSsize_t(PyObject* b) {
 
28705
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
 
28706
   if (x == Py_True) return 1;
 
28707
   else if ((x == Py_False) | (x == Py_None)) return 0;
 
28708
   else return PyObject_IsTrue(x);
 
28709
}
 
28710
 
 
28711
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
 
28712
  PyNumberMethods *m;
 
28713
  const char *name = NULL;
 
28714
  PyObject *res = NULL;
 
28715
#if PY_VERSION_HEX < 0x03000000
 
28716
  if (PyInt_Check(x) || PyLong_Check(x))
 
28717
#else
 
28718
  if (PyLong_Check(x))
 
28719
#endif
 
28720
    return Py_INCREF(x), x;
 
28721
  m = Py_TYPE(x)->tp_as_number;
 
28722
#if PY_VERSION_HEX < 0x03000000
 
28723
  if (m && m->nb_int) {
 
28724
    name = "int";
 
28725
    res = PyNumber_Int(x);
 
28726
  }
 
28727
  else if (m && m->nb_long) {
 
28728
    name = "long";
 
28729
    res = PyNumber_Long(x);
 
28730
  }
 
28731
#else
 
28732
  if (m && m->nb_int) {
 
28733
    name = "int";
 
28734
    res = PyNumber_Long(x);
 
28735
  }
 
28736
#endif
 
28737
  if (res) {
 
28738
#if PY_VERSION_HEX < 0x03000000
 
28739
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
 
28740
#else
 
28741
    if (!PyLong_Check(res)) {
 
28742
#endif
 
28743
      PyErr_Format(PyExc_TypeError,
 
28744
                   "__%s__ returned non-%s (type %.200s)",
 
28745
                   name, name, Py_TYPE(res)->tp_name);
 
28746
      Py_DECREF(res);
 
28747
      return NULL;
 
28748
    }
 
28749
  }
 
28750
  else if (!PyErr_Occurred()) {
 
28751
    PyErr_SetString(PyExc_TypeError,
 
28752
                    "an integer is required");
 
28753
  }
 
28754
  return res;
 
28755
}
 
28756
 
 
28757
static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
26127
28758
  Py_ssize_t ival;
26128
28759
  PyObject* x = PyNumber_Index(b);
26129
28760
  if (!x) return -1;
26132
28763
  return ival;
26133
28764
}
26134
28765
 
26135
 
static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
26136
 
   if (x == Py_True) return 1;
26137
 
   else if (x == Py_False) return 0;
26138
 
   else return PyObject_IsTrue(x);
26139
 
}
26140
 
 
26141
 
static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) {
26142
 
    if (PyInt_CheckExact(x)) {
26143
 
        return PyInt_AS_LONG(x);
26144
 
    }
26145
 
    else if (PyLong_CheckExact(x)) {
26146
 
        return PyLong_AsLongLong(x);
26147
 
    }
26148
 
    else {
26149
 
        PY_LONG_LONG val;
26150
 
        PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
26151
 
        val = __pyx_PyInt_AsLongLong(tmp);
26152
 
        Py_DECREF(tmp);
26153
 
        return val;
26154
 
    }
26155
 
}
26156
 
 
26157
 
static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
26158
 
    if (PyInt_CheckExact(x)) {
26159
 
        long val = PyInt_AS_LONG(x);
26160
 
        if (unlikely(val < 0)) {
26161
 
            PyErr_SetString(PyExc_TypeError, "Negative assignment to unsigned type.");
26162
 
            return (unsigned PY_LONG_LONG)-1;
26163
 
        }
26164
 
        return val;
26165
 
    }
26166
 
    else if (PyLong_CheckExact(x)) {
26167
 
        return PyLong_AsUnsignedLongLong(x);
26168
 
    }
26169
 
    else {
26170
 
        PY_LONG_LONG val;
26171
 
        PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
26172
 
        val = __pyx_PyInt_AsUnsignedLongLong(tmp);
26173
 
        Py_DECREF(tmp);
26174
 
        return val;
26175
 
    }
26176
 
}
26177
 
 
26178
 
 
26179
 
static INLINE unsigned char __pyx_PyInt_unsigned_char(PyObject* x) {
26180
 
    if (sizeof(unsigned char) < sizeof(long)) {
26181
 
        long long_val = __pyx_PyInt_AsLong(x);
26182
 
        unsigned char val = (unsigned char)long_val;
26183
 
        if (unlikely((val != long_val)  || (long_val < 0))) {
26184
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned char");
26185
 
            return (unsigned char)-1;
26186
 
        }
26187
 
        return val;
26188
 
    }
26189
 
    else {
26190
 
        return __pyx_PyInt_AsLong(x);
26191
 
    }
26192
 
}
26193
 
 
26194
 
static INLINE unsigned short __pyx_PyInt_unsigned_short(PyObject* x) {
26195
 
    if (sizeof(unsigned short) < sizeof(long)) {
26196
 
        long long_val = __pyx_PyInt_AsLong(x);
26197
 
        unsigned short val = (unsigned short)long_val;
26198
 
        if (unlikely((val != long_val)  || (long_val < 0))) {
26199
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to unsigned short");
26200
 
            return (unsigned short)-1;
26201
 
        }
26202
 
        return val;
26203
 
    }
26204
 
    else {
26205
 
        return __pyx_PyInt_AsLong(x);
26206
 
    }
26207
 
}
26208
 
 
26209
 
static INLINE char __pyx_PyInt_char(PyObject* x) {
26210
 
    if (sizeof(char) < sizeof(long)) {
26211
 
        long long_val = __pyx_PyInt_AsLong(x);
26212
 
        char val = (char)long_val;
26213
 
        if (unlikely((val != long_val) )) {
26214
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to char");
26215
 
            return (char)-1;
26216
 
        }
26217
 
        return val;
26218
 
    }
26219
 
    else {
26220
 
        return __pyx_PyInt_AsLong(x);
26221
 
    }
26222
 
}
26223
 
 
26224
 
static INLINE short __pyx_PyInt_short(PyObject* x) {
26225
 
    if (sizeof(short) < sizeof(long)) {
26226
 
        long long_val = __pyx_PyInt_AsLong(x);
26227
 
        short val = (short)long_val;
26228
 
        if (unlikely((val != long_val) )) {
26229
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to short");
26230
 
            return (short)-1;
26231
 
        }
26232
 
        return val;
26233
 
    }
26234
 
    else {
26235
 
        return __pyx_PyInt_AsLong(x);
26236
 
    }
26237
 
}
26238
 
 
26239
 
static INLINE int __pyx_PyInt_int(PyObject* x) {
26240
 
    if (sizeof(int) < sizeof(long)) {
26241
 
        long long_val = __pyx_PyInt_AsLong(x);
26242
 
        int val = (int)long_val;
26243
 
        if (unlikely((val != long_val) )) {
26244
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to int");
26245
 
            return (int)-1;
26246
 
        }
26247
 
        return val;
26248
 
    }
26249
 
    else {
26250
 
        return __pyx_PyInt_AsLong(x);
26251
 
    }
26252
 
}
26253
 
 
26254
 
static INLINE long __pyx_PyInt_long(PyObject* x) {
26255
 
    if (sizeof(long) < sizeof(long)) {
26256
 
        long long_val = __pyx_PyInt_AsLong(x);
26257
 
        long val = (long)long_val;
26258
 
        if (unlikely((val != long_val) )) {
26259
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to long");
26260
 
            return (long)-1;
26261
 
        }
26262
 
        return val;
26263
 
    }
26264
 
    else {
26265
 
        return __pyx_PyInt_AsLong(x);
26266
 
    }
26267
 
}
26268
 
 
26269
 
static INLINE signed char __pyx_PyInt_signed_char(PyObject* x) {
26270
 
    if (sizeof(signed char) < sizeof(long)) {
26271
 
        long long_val = __pyx_PyInt_AsLong(x);
26272
 
        signed char val = (signed char)long_val;
26273
 
        if (unlikely((val != long_val) )) {
26274
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed char");
26275
 
            return (signed char)-1;
26276
 
        }
26277
 
        return val;
26278
 
    }
26279
 
    else {
26280
 
        return __pyx_PyInt_AsLong(x);
26281
 
    }
26282
 
}
26283
 
 
26284
 
static INLINE signed short __pyx_PyInt_signed_short(PyObject* x) {
26285
 
    if (sizeof(signed short) < sizeof(long)) {
26286
 
        long long_val = __pyx_PyInt_AsLong(x);
26287
 
        signed short val = (signed short)long_val;
26288
 
        if (unlikely((val != long_val) )) {
26289
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed short");
26290
 
            return (signed short)-1;
26291
 
        }
26292
 
        return val;
26293
 
    }
26294
 
    else {
26295
 
        return __pyx_PyInt_AsLong(x);
26296
 
    }
26297
 
}
26298
 
 
26299
 
static INLINE signed int __pyx_PyInt_signed_int(PyObject* x) {
26300
 
    if (sizeof(signed int) < sizeof(long)) {
26301
 
        long long_val = __pyx_PyInt_AsLong(x);
26302
 
        signed int val = (signed int)long_val;
26303
 
        if (unlikely((val != long_val) )) {
26304
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed int");
26305
 
            return (signed int)-1;
26306
 
        }
26307
 
        return val;
26308
 
    }
26309
 
    else {
26310
 
        return __pyx_PyInt_AsLong(x);
26311
 
    }
26312
 
}
26313
 
 
26314
 
static INLINE signed long __pyx_PyInt_signed_long(PyObject* x) {
26315
 
    if (sizeof(signed long) < sizeof(long)) {
26316
 
        long long_val = __pyx_PyInt_AsLong(x);
26317
 
        signed long val = (signed long)long_val;
26318
 
        if (unlikely((val != long_val) )) {
26319
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to signed long");
26320
 
            return (signed long)-1;
26321
 
        }
26322
 
        return val;
26323
 
    }
26324
 
    else {
26325
 
        return __pyx_PyInt_AsLong(x);
26326
 
    }
26327
 
}
26328
 
 
26329
 
static INLINE long double __pyx_PyInt_long_double(PyObject* x) {
26330
 
    if (sizeof(long double) < sizeof(long)) {
26331
 
        long long_val = __pyx_PyInt_AsLong(x);
26332
 
        long double val = (long double)long_val;
26333
 
        if (unlikely((val != long_val) )) {
26334
 
            PyErr_SetString(PyExc_OverflowError, "value too large to convert to long double");
26335
 
            return (long double)-1;
26336
 
        }
26337
 
        return val;
26338
 
    }
26339
 
    else {
26340
 
        return __pyx_PyInt_AsLong(x);
26341
 
    }
26342
 
}
26343
 
 
 
28766
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
 
28767
#if PY_VERSION_HEX < 0x02050000
 
28768
   if (ival <= LONG_MAX)
 
28769
       return PyInt_FromLong((long)ival);
 
28770
   else {
 
28771
       unsigned char *bytes = (unsigned char *) &ival;
 
28772
       int one = 1; int little = (int)*(unsigned char*)&one;
 
28773
       return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
 
28774
   }
 
28775
#else
 
28776
   return PyInt_FromSize_t(ival);
 
28777
#endif
 
28778
}
 
28779
 
 
28780
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
 
28781
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
 
28782
   if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
 
28783
       return (size_t)-1;
 
28784
   } else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
 
28785
       PyErr_SetString(PyExc_OverflowError,
 
28786
                       "value too large to convert to size_t");
 
28787
       return (size_t)-1;
 
28788
   }
 
28789
   return (size_t)val;
 
28790
}
 
28791
 
 
28792
 
 
28793
#endif /* Py_PYTHON_H */