1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.objectify.BoolElement</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="http://codespeak.net/lxml/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.objectify-module.html">Module objectify</a> ::
47 Class BoolElement
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.objectify.BoolElement-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class BoolElement</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <a href="lxml.etree._Element-class.html" onclick="show_private();">etree._Element</a> --+
70 <a href="lxml.etree.ElementBase-class.html">etree.ElementBase</a> --+
72 <a href="lxml.objectify.ObjectifiedElement-class.html">ObjectifiedElement</a> --+
74 <a href="lxml.objectify.ObjectifiedDataElement-class.html">ObjectifiedDataElement</a> --+
76 <a href="lxml.objectify.NumberElement-class.html">NumberElement</a> --+
78 <a href="lxml.objectify.IntElement-class.html">IntElement</a> --+
80 <strong class="uidshort">BoolElement</strong>
84 <p>Boolean type base on string values: 'true' or 'false'.</p>
85 <p>Note that this inherits from IntElement to mimic the behaviour of
86 Python's bool type.</p>
88 <!-- ==================== INSTANCE METHODS ==================== -->
89 <a name="section-InstanceMethods"></a>
90 <table class="summary" border="1" cellpadding="3"
91 cellspacing="0" width="100%" bgcolor="white">
92 <tr bgcolor="#70b0f0" class="table-header">
93 <td colspan="2" class="table-header">
94 <table border="0" cellpadding="0" cellspacing="0" width="100%">
96 <td align="left"><span class="table-header">Instance Methods</span></td>
97 <td align="right" valign="top"
98 ><span class="options">[<a href="#section-InstanceMethods"
99 class="privatelink" onclick="toggle_private();"
100 >hide private</a>]</span></td>
106 <td width="15%" align="right" valign="top" class="summary">
107 <span class="summary-type"> </span>
108 </td><td class="summary">
109 <table width="100%" cellpadding="0" cellspacing="0" border="0">
111 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__eq__" class="summary-sig-name">__eq__</a>(<span class="summary-sig-arg">x</span>,
112 <span class="summary-sig-arg">y</span>)</span><br />
114 <td align="right" valign="top">
124 <td width="15%" align="right" valign="top" class="summary">
125 <span class="summary-type"> </span>
126 </td><td class="summary">
127 <table width="100%" cellpadding="0" cellspacing="0" border="0">
129 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__ge__" class="summary-sig-name">__ge__</a>(<span class="summary-sig-arg">x</span>,
130 <span class="summary-sig-arg">y</span>)</span><br />
132 <td align="right" valign="top">
142 <td width="15%" align="right" valign="top" class="summary">
143 <span class="summary-type"> </span>
144 </td><td class="summary">
145 <table width="100%" cellpadding="0" cellspacing="0" border="0">
147 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__gt__" class="summary-sig-name">__gt__</a>(<span class="summary-sig-arg">x</span>,
148 <span class="summary-sig-arg">y</span>)</span><br />
150 <td align="right" valign="top">
160 <td width="15%" align="right" valign="top" class="summary">
161 <span class="summary-type"> </span>
162 </td><td class="summary">
163 <table width="100%" cellpadding="0" cellspacing="0" border="0">
165 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__le__" class="summary-sig-name">__le__</a>(<span class="summary-sig-arg">x</span>,
166 <span class="summary-sig-arg">y</span>)</span><br />
168 <td align="right" valign="top">
178 <td width="15%" align="right" valign="top" class="summary">
179 <span class="summary-type"> </span>
180 </td><td class="summary">
181 <table width="100%" cellpadding="0" cellspacing="0" border="0">
183 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__lt__" class="summary-sig-name">__lt__</a>(<span class="summary-sig-arg">x</span>,
184 <span class="summary-sig-arg">y</span>)</span><br />
186 <td align="right" valign="top">
196 <td width="15%" align="right" valign="top" class="summary">
197 <span class="summary-type"> </span>
198 </td><td class="summary">
199 <table width="100%" cellpadding="0" cellspacing="0" border="0">
201 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__ne__" class="summary-sig-name">__ne__</a>(<span class="summary-sig-arg">x</span>,
202 <span class="summary-sig-arg">y</span>)</span><br />
204 <td align="right" valign="top">
214 <td width="15%" align="right" valign="top" class="summary">
215 <span class="summary-type">a new object with type S, a subtype of T</span>
216 </td><td class="summary">
217 <table width="100%" cellpadding="0" cellspacing="0" border="0">
219 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
220 <span class="summary-sig-arg">S</span>,
221 <span class="summary-sig-arg">...</span>)</span></td>
222 <td align="right" valign="top">
232 <td width="15%" align="right" valign="top" class="summary">
233 <span class="summary-type"> </span>
234 </td><td class="summary">
235 <table width="100%" cellpadding="0" cellspacing="0" border="0">
237 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__nonzero__" class="summary-sig-name">__nonzero__</a>(<span class="summary-sig-arg">x</span>)</span><br />
239 <td align="right" valign="top">
249 <td width="15%" align="right" valign="top" class="summary">
250 <span class="summary-type"> </span>
251 </td><td class="summary">
252 <table width="100%" cellpadding="0" cellspacing="0" border="0">
254 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">self</span>)</span><br />
256 <td align="right" valign="top">
266 <td width="15%" align="right" valign="top" class="summary">
267 <span class="summary-type"> </span>
268 </td><td class="summary">
269 <table width="100%" cellpadding="0" cellspacing="0" border="0">
271 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#__str__" class="summary-sig-name">__str__</a>(<span class="summary-sig-arg">...</span>)</span><br />
273 <td align="right" valign="top">
283 <td width="15%" align="right" valign="top" class="summary">
284 <span class="summary-type"> </span>
285 </td><td class="summary">
286 <table width="100%" cellpadding="0" cellspacing="0" border="0">
288 <td><span class="summary-sig"><a href="lxml.objectify.BoolElement-class.html#_init" class="summary-sig-name" onclick="show_private();">_init</a>(<span class="summary-sig-arg">self</span>)</span><br />
289 Called after object initialisation.</td>
290 <td align="right" valign="top">
300 <td colspan="2" class="summary">
301 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.objectify.NumberElement-class.html">NumberElement</a></code></b>:
302 <code><a href="lxml.objectify.NumberElement-class.html#__abs__">__abs__</a></code>,
303 <code><a href="lxml.objectify.NumberElement-class.html#__add__">__add__</a></code>,
304 <code><a href="lxml.objectify.NumberElement-class.html#__and__">__and__</a></code>,
305 <code><a href="lxml.objectify.NumberElement-class.html#__complex__">__complex__</a></code>,
306 <code><a href="lxml.objectify.NumberElement-class.html#__div__">__div__</a></code>,
307 <code><a href="lxml.objectify.NumberElement-class.html#__float__">__float__</a></code>,
308 <code><a href="lxml.objectify.NumberElement-class.html#__hex__">__hex__</a></code>,
309 <code><a href="lxml.objectify.NumberElement-class.html#__int__">__int__</a></code>,
310 <code><a href="lxml.objectify.NumberElement-class.html#__invert__">__invert__</a></code>,
311 <code><a href="lxml.objectify.NumberElement-class.html#__long__">__long__</a></code>,
312 <code><a href="lxml.objectify.NumberElement-class.html#__lshift__">__lshift__</a></code>,
313 <code><a href="lxml.objectify.NumberElement-class.html#__mod__">__mod__</a></code>,
314 <code><a href="lxml.objectify.NumberElement-class.html#__mul__">__mul__</a></code>,
315 <code><a href="lxml.objectify.NumberElement-class.html#__neg__">__neg__</a></code>,
316 <code><a href="lxml.objectify.NumberElement-class.html#__oct__">__oct__</a></code>,
317 <code><a href="lxml.objectify.NumberElement-class.html#__or__">__or__</a></code>,
318 <code><a href="lxml.objectify.NumberElement-class.html#__pos__">__pos__</a></code>,
319 <code><a href="lxml.objectify.NumberElement-class.html#__pow__">__pow__</a></code>,
320 <code><a href="lxml.objectify.NumberElement-class.html#__radd__">__radd__</a></code>,
321 <code><a href="lxml.objectify.NumberElement-class.html#__rand__">__rand__</a></code>,
322 <code><a href="lxml.objectify.NumberElement-class.html#__rdiv__">__rdiv__</a></code>,
323 <code><a href="lxml.objectify.NumberElement-class.html#__rlshift__">__rlshift__</a></code>,
324 <code><a href="lxml.objectify.NumberElement-class.html#__rmod__">__rmod__</a></code>,
325 <code><a href="lxml.objectify.NumberElement-class.html#__rmul__">__rmul__</a></code>,
326 <code><a href="lxml.objectify.NumberElement-class.html#__ror__">__ror__</a></code>,
327 <code><a href="lxml.objectify.NumberElement-class.html#__rpow__">__rpow__</a></code>,
328 <code><a href="lxml.objectify.NumberElement-class.html#__rrshift__">__rrshift__</a></code>,
329 <code><a href="lxml.objectify.NumberElement-class.html#__rshift__">__rshift__</a></code>,
330 <code><a href="lxml.objectify.NumberElement-class.html#__rsub__">__rsub__</a></code>,
331 <code><a href="lxml.objectify.NumberElement-class.html#__rtruediv__">__rtruediv__</a></code>,
332 <code><a href="lxml.objectify.NumberElement-class.html#__rxor__">__rxor__</a></code>,
333 <code><a href="lxml.objectify.NumberElement-class.html#__sub__">__sub__</a></code>,
334 <code><a href="lxml.objectify.NumberElement-class.html#__truediv__">__truediv__</a></code>,
335 <code><a href="lxml.objectify.NumberElement-class.html#__xor__">__xor__</a></code>
337 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.objectify.NumberElement-class.html">NumberElement</a></code></b> (private):
338 <code><a href="lxml.objectify.NumberElement-class.html#_setValueParser" onclick="show_private();">_setValueParser</a></code>
340 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.objectify.ObjectifiedDataElement-class.html">ObjectifiedDataElement</a></code></b> (private):
341 <code><a href="lxml.objectify.ObjectifiedDataElement-class.html#_setText" onclick="show_private();">_setText</a></code>
343 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.objectify.ObjectifiedElement-class.html">ObjectifiedElement</a></code></b>:
344 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__delattr__">__delattr__</a></code>,
345 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__delitem__">__delitem__</a></code>,
346 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__getattr__">__getattr__</a></code>,
347 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__getattribute__">__getattribute__</a></code>,
348 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__getitem__">__getitem__</a></code>,
349 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__iter__">__iter__</a></code>,
350 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__len__">__len__</a></code>,
351 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__setattr__">__setattr__</a></code>,
352 <code><a href="lxml.objectify.ObjectifiedElement-class.html#__setitem__">__setitem__</a></code>,
353 <code><a href="lxml.objectify.ObjectifiedElement-class.html#addattr">addattr</a></code>,
354 <code><a href="lxml.objectify.ObjectifiedElement-class.html#countchildren">countchildren</a></code>,
355 <code><a href="lxml.objectify.ObjectifiedElement-class.html#descendantpaths">descendantpaths</a></code>,
356 <code><a href="lxml.objectify.ObjectifiedElement-class.html#find">find</a></code>,
357 <code><a href="lxml.objectify.ObjectifiedElement-class.html#findall">findall</a></code>,
358 <code><a href="lxml.objectify.ObjectifiedElement-class.html#findtext">findtext</a></code>,
359 <code><a href="lxml.objectify.ObjectifiedElement-class.html#getchildren">getchildren</a></code>,
360 <code><a href="lxml.objectify.ObjectifiedElement-class.html#iterfind">iterfind</a></code>
362 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree.ElementBase-class.html">etree.ElementBase</a></code></b>:
363 <code><a href="lxml.etree.ElementBase-class.html#__init__">__init__</a></code>
365 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">etree._Element</a></code></b>:
366 <code><a href="lxml.etree._Element-class.html#__contains__">__contains__</a></code>,
367 <code><a href="lxml.etree._Element-class.html#__copy__">__copy__</a></code>,
368 <code><a href="lxml.etree._Element-class.html#__deepcopy__">__deepcopy__</a></code>,
369 <code><a href="lxml.etree._Element-class.html#__reversed__">__reversed__</a></code>,
370 <code><a href="lxml.etree._Element-class.html#addnext">addnext</a></code>,
371 <code><a href="lxml.etree._Element-class.html#addprevious">addprevious</a></code>,
372 <code><a href="lxml.etree._Element-class.html#append">append</a></code>,
373 <code><a href="lxml.etree._Element-class.html#clear">clear</a></code>,
374 <code><a href="lxml.etree._Element-class.html#extend">extend</a></code>,
375 <code><a href="lxml.etree._Element-class.html#get">get</a></code>,
376 <code><a href="lxml.etree._Element-class.html#getiterator">getiterator</a></code>,
377 <code><a href="lxml.etree._Element-class.html#getnext">getnext</a></code>,
378 <code><a href="lxml.etree._Element-class.html#getparent">getparent</a></code>,
379 <code><a href="lxml.etree._Element-class.html#getprevious">getprevious</a></code>,
380 <code><a href="lxml.etree._Element-class.html#getroottree">getroottree</a></code>,
381 <code><a href="lxml.etree._Element-class.html#index">index</a></code>,
382 <code><a href="lxml.etree._Element-class.html#insert">insert</a></code>,
383 <code><a href="lxml.etree._Element-class.html#items">items</a></code>,
384 <code><a href="lxml.etree._Element-class.html#iter">iter</a></code>,
385 <code><a href="lxml.etree._Element-class.html#iterancestors">iterancestors</a></code>,
386 <code><a href="lxml.etree._Element-class.html#iterchildren">iterchildren</a></code>,
387 <code><a href="lxml.etree._Element-class.html#iterdescendants">iterdescendants</a></code>,
388 <code><a href="lxml.etree._Element-class.html#itersiblings">itersiblings</a></code>,
389 <code><a href="lxml.etree._Element-class.html#itertext">itertext</a></code>,
390 <code><a href="lxml.etree._Element-class.html#keys">keys</a></code>,
391 <code><a href="lxml.etree._Element-class.html#makeelement">makeelement</a></code>,
392 <code><a href="lxml.etree._Element-class.html#remove">remove</a></code>,
393 <code><a href="lxml.etree._Element-class.html#replace">replace</a></code>,
394 <code><a href="lxml.etree._Element-class.html#set">set</a></code>,
395 <code><a href="lxml.etree._Element-class.html#values">values</a></code>,
396 <code><a href="lxml.etree._Element-class.html#xpath">xpath</a></code>
398 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
399 <code>__hash__</code>,
400 <code>__reduce__</code>,
401 <code>__reduce_ex__</code>
406 <!-- ==================== PROPERTIES ==================== -->
407 <a name="section-Properties"></a>
408 <table class="summary" border="1" cellpadding="3"
409 cellspacing="0" width="100%" bgcolor="white">
410 <tr bgcolor="#70b0f0" class="table-header">
411 <td colspan="2" class="table-header">
412 <table border="0" cellpadding="0" cellspacing="0" width="100%">
414 <td align="left"><span class="table-header">Properties</span></td>
415 <td align="right" valign="top"
416 ><span class="options">[<a href="#section-Properties"
417 class="privatelink" onclick="toggle_private();"
418 >hide private</a>]</span></td>
424 <td width="15%" align="right" valign="top" class="summary">
425 <span class="summary-type"> </span>
426 </td><td class="summary">
427 <a name="pyval"></a><span class="summary-name">pyval</span>
431 <td colspan="2" class="summary">
432 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.objectify.ObjectifiedElement-class.html">ObjectifiedElement</a></code></b>:
433 <code><a href="lxml.objectify.ObjectifiedElement-class.html#text">text</a></code>
435 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._Element-class.html" onclick="show_private();">etree._Element</a></code></b>:
436 <code><a href="lxml.etree._Element-class.html#attrib">attrib</a></code>,
437 <code><a href="lxml.etree._Element-class.html#base">base</a></code>,
438 <code><a href="lxml.etree._Element-class.html#nsmap">nsmap</a></code>,
439 <code><a href="lxml.etree._Element-class.html#prefix">prefix</a></code>,
440 <code><a href="lxml.etree._Element-class.html#sourceline">sourceline</a></code>,
441 <code><a href="lxml.etree._Element-class.html#tag">tag</a></code>,
442 <code><a href="lxml.etree._Element-class.html#tail">tail</a></code>
444 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
445 <code>__class__</code>
450 <!-- ==================== METHOD DETAILS ==================== -->
451 <a name="section-MethodDetails"></a>
452 <table class="details" border="1" cellpadding="3"
453 cellspacing="0" width="100%" bgcolor="white">
454 <tr bgcolor="#70b0f0" class="table-header">
455 <td colspan="2" class="table-header">
456 <table border="0" cellpadding="0" cellspacing="0" width="100%">
458 <td align="left"><span class="table-header">Method Details</span></td>
459 <td align="right" valign="top"
460 ><span class="options">[<a href="#section-MethodDetails"
461 class="privatelink" onclick="toggle_private();"
462 >hide private</a>]</span></td>
468 <a name="__eq__"></a>
470 <table class="details" border="1" cellpadding="3"
471 cellspacing="0" width="100%" bgcolor="white">
473 <table width="100%" cellpadding="0" cellspacing="0" border="0">
474 <tr valign="top"><td>
475 <h3 class="epydoc"><span class="sig"><span class="sig-name">__eq__</span>(<span class="sig-arg">x</span>,
476 <span class="sig-arg">y</span>)</span>
477 <br /><em class="fname">(Equality operator)</em>
479 </td><td align="right" valign="top"
487 <a href="lxml.objectify.NumberElement-class.html#__eq__">NumberElement.__eq__</a>
492 <a name="__ge__"></a>
494 <table class="details" border="1" cellpadding="3"
495 cellspacing="0" width="100%" bgcolor="white">
497 <table width="100%" cellpadding="0" cellspacing="0" border="0">
498 <tr valign="top"><td>
499 <h3 class="epydoc"><span class="sig"><span class="sig-name">__ge__</span>(<span class="sig-arg">x</span>,
500 <span class="sig-arg">y</span>)</span>
501 <br /><em class="fname">(Greater-than-or-equals operator)</em>
503 </td><td align="right" valign="top"
511 <a href="lxml.objectify.NumberElement-class.html#__ge__">NumberElement.__ge__</a>
516 <a name="__gt__"></a>
518 <table class="details" border="1" cellpadding="3"
519 cellspacing="0" width="100%" bgcolor="white">
521 <table width="100%" cellpadding="0" cellspacing="0" border="0">
522 <tr valign="top"><td>
523 <h3 class="epydoc"><span class="sig"><span class="sig-name">__gt__</span>(<span class="sig-arg">x</span>,
524 <span class="sig-arg">y</span>)</span>
525 <br /><em class="fname">(Greater-than operator)</em>
527 </td><td align="right" valign="top"
535 <a href="lxml.objectify.NumberElement-class.html#__gt__">NumberElement.__gt__</a>
540 <a name="__le__"></a>
542 <table class="details" border="1" cellpadding="3"
543 cellspacing="0" width="100%" bgcolor="white">
545 <table width="100%" cellpadding="0" cellspacing="0" border="0">
546 <tr valign="top"><td>
547 <h3 class="epydoc"><span class="sig"><span class="sig-name">__le__</span>(<span class="sig-arg">x</span>,
548 <span class="sig-arg">y</span>)</span>
549 <br /><em class="fname">(Less-than-or-equals operator)</em>
551 </td><td align="right" valign="top"
559 <a href="lxml.objectify.NumberElement-class.html#__le__">NumberElement.__le__</a>
564 <a name="__lt__"></a>
566 <table class="details" border="1" cellpadding="3"
567 cellspacing="0" width="100%" bgcolor="white">
569 <table width="100%" cellpadding="0" cellspacing="0" border="0">
570 <tr valign="top"><td>
571 <h3 class="epydoc"><span class="sig"><span class="sig-name">__lt__</span>(<span class="sig-arg">x</span>,
572 <span class="sig-arg">y</span>)</span>
573 <br /><em class="fname">(Less-than operator)</em>
575 </td><td align="right" valign="top"
583 <a href="lxml.objectify.NumberElement-class.html#__lt__">NumberElement.__lt__</a>
588 <a name="__ne__"></a>
590 <table class="details" border="1" cellpadding="3"
591 cellspacing="0" width="100%" bgcolor="white">
593 <table width="100%" cellpadding="0" cellspacing="0" border="0">
594 <tr valign="top"><td>
595 <h3 class="epydoc"><span class="sig"><span class="sig-name">__ne__</span>(<span class="sig-arg">x</span>,
596 <span class="sig-arg">y</span>)</span>
598 </td><td align="right" valign="top"
606 <a href="lxml.objectify.NumberElement-class.html#__ne__">NumberElement.__ne__</a>
611 <a name="__new__"></a>
613 <table class="details" border="1" cellpadding="3"
614 cellspacing="0" width="100%" bgcolor="white">
616 <table width="100%" cellpadding="0" cellspacing="0" border="0">
617 <tr valign="top"><td>
618 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
619 <span class="sig-arg">S</span>,
620 <span class="sig-arg">...</span>)</span>
622 </td><td align="right" valign="top"
629 <dt>Returns: a new object with type S, a subtype of T</dt>
636 <a name="__nonzero__"></a>
638 <table class="details" border="1" cellpadding="3"
639 cellspacing="0" width="100%" bgcolor="white">
641 <table width="100%" cellpadding="0" cellspacing="0" border="0">
642 <tr valign="top"><td>
643 <h3 class="epydoc"><span class="sig"><span class="sig-name">__nonzero__</span>(<span class="sig-arg">x</span>)</span>
644 <br /><em class="fname">(Boolean test operator)</em>
646 </td><td align="right" valign="top"
654 <a href="lxml.etree._Element-class.html#__nonzero__">etree._Element.__nonzero__</a>
659 <a name="__repr__"></a>
661 <table class="details" border="1" cellpadding="3"
662 cellspacing="0" width="100%" bgcolor="white">
664 <table width="100%" cellpadding="0" cellspacing="0" border="0">
665 <tr valign="top"><td>
666 <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">self</span>)</span>
667 <br /><em class="fname">(Representation operator)</em>
669 </td><td align="right" valign="top"
678 <dd><em class="note">(inherited documentation)</em></dd>
683 <a name="__str__"></a>
685 <table class="details" border="1" cellpadding="3"
686 cellspacing="0" width="100%" bgcolor="white">
688 <table width="100%" cellpadding="0" cellspacing="0" border="0">
689 <tr valign="top"><td>
690 <h3 class="epydoc"><span class="sig"><span class="sig-name">__str__</span>(<span class="sig-arg">...</span>)</span>
691 <br /><em class="fname">(Informal representation operator)</em>
693 </td><td align="right" valign="top"
702 <dd><em class="note">(inherited documentation)</em></dd>
708 <div class="private">
709 <table class="details" border="1" cellpadding="3"
710 cellspacing="0" width="100%" bgcolor="white">
712 <table width="100%" cellpadding="0" cellspacing="0" border="0">
713 <tr valign="top"><td>
714 <h3 class="epydoc"><span class="sig"><span class="sig-name">_init</span>(<span class="sig-arg">self</span>)</span>
716 </td><td align="right" valign="top"
721 Called after object initialisation. Custom subclasses may override
722 this if they recursively call _init() in the superclasses.
725 <a href="lxml.etree._Element-class.html#_init" onclick="show_private();">etree._Element._init</a>
726 <dd><em class="note">(inherited documentation)</em></dd>
732 <!-- ==================== NAVIGATION BAR ==================== -->
733 <table class="navbar" border="0" width="100%" cellpadding="0"
734 bgcolor="#a0c0ff" cellspacing="0">
737 <th> <a
738 href="lxml-module.html">Home</a> </th>
741 <th> <a
742 href="module-tree.html">Trees</a> </th>
745 <th> <a
746 href="identifier-index.html">Indices</a> </th>
749 <th> <a
750 href="help.html">Help</a> </th>
752 <!-- Project homepage -->
753 <th class="navbar" align="right" width="100%">
754 <table border="0" cellpadding="0" cellspacing="0">
755 <tr><th class="navbar" align="center"
756 ><a class="navbar" target="_top" href="http://codespeak.net/lxml/">lxml API</a></th>
760 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
762 <td align="left" class="footer">
763 Generated by Epydoc 3.0 on Fri Oct 30 14:51:47 2009
765 <td align="right" class="footer">
766 <a target="mainFrame" href="http://epydoc.sourceforge.net"
767 >http://epydoc.sourceforge.net</a>
772 <script type="text/javascript">
774 // Private objects are initially displayed (because if
775 // javascript is turned off then we want them to be
776 // visible); but by default, we want to hide them. So hide
777 // them unless we have a cookie that says to show them.