Imported Upstream version 4.5.2
[platform/upstream/python-lxml.git] / doc / html / api / lxml.etree.AncestorsIterator-class.html
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">
5 <head>
6   <title>lxml.etree.AncestorsIterator</title>
7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
8   <script type="text/javascript" src="epydoc.js"></script>
9 </head>
10
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
12       alink="#204080">
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15        bgcolor="#a0c0ff" cellspacing="0">
16   <tr valign="middle">
17   <!-- Home link -->
18       <th>&nbsp;&nbsp;&nbsp;<a
19         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21   <!-- Tree link -->
22       <th>&nbsp;&nbsp;&nbsp;<a
23         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25   <!-- Index link -->
26       <th>&nbsp;&nbsp;&nbsp;<a
27         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29   <!-- Help link -->
30       <th>&nbsp;&nbsp;&nbsp;<a
31         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
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="/">lxml API</a></th>
38           </tr></table></th>
39   </tr>
40 </table>
41 <table width="100%" cellpadding="0" cellspacing="0">
42   <tr valign="top">
43     <td width="100%">
44       <span class="breadcrumbs">
45         <a href="lxml-module.html">Package&nbsp;lxml</a> ::
46         <a href="lxml.etree-module.html">Module&nbsp;etree</a> ::
47         Class&nbsp;AncestorsIterator
48       </span>
49     </td>
50     <td>
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&nbsp;private</a>]</span></td></tr>
55         <tr><td align="right"><span class="options"
56             >[<a href="frames.html" target="_top">frames</a
57             >]&nbsp;|&nbsp;<a href="lxml.etree.AncestorsIterator-class.html"
58             target="_top">no&nbsp;frames</a>]</span></td></tr>
59       </table>
60     </td>
61   </tr>
62 </table>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class AncestorsIterator</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
66            object --+    
67                     |    
68 <a href="lxml.etree._ElementMatchIterator-class.html" onclick="show_private();">_ElementMatchIterator</a> --+
69                         |
70                        <strong class="uidshort">AncestorsIterator</strong>
71 </pre>
72
73 <hr />
74 AncestorsIterator(self, node, tag=None)
75 Iterates over the ancestors of an element (from parent to parent).
76
77 <!-- ==================== INSTANCE METHODS ==================== -->
78 <a name="section-InstanceMethods"></a>
79 <table class="summary" border="1" cellpadding="3"
80        cellspacing="0" width="100%" bgcolor="white">
81 <tr bgcolor="#70b0f0" class="table-header">
82   <td colspan="2" class="table-header">
83     <table border="0" cellpadding="0" cellspacing="0" width="100%">
84       <tr valign="top">
85         <td align="left"><span class="table-header">Instance Methods</span></td>
86         <td align="right" valign="top"
87          ><span class="options">[<a href="#section-InstanceMethods"
88          class="privatelink" onclick="toggle_private();"
89          >hide private</a>]</span></td>
90       </tr>
91     </table>
92   </td>
93 </tr>
94 <tr>
95     <td width="15%" align="right" valign="top" class="summary">
96       <span class="summary-type">a new object with type S, a subtype of T</span>
97     </td><td class="summary">
98       <table width="100%" cellpadding="0" cellspacing="0" border="0">
99         <tr>
100           <td><span class="summary-sig"><a href="lxml.etree.AncestorsIterator-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
101         <span class="summary-sig-arg">S</span>,
102         <span class="summary-sig-arg">...</span>)</span></td>
103           <td align="right" valign="top">
104             
105             
106           </td>
107         </tr>
108       </table>
109       
110     </td>
111   </tr>
112   <tr>
113     <td colspan="2" class="summary">
114     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ElementMatchIterator-class.html" onclick="show_private();">_ElementMatchIterator</a></code></b>:
115       <code><a href="lxml.etree._ElementMatchIterator-class.html#__iter__">__iter__</a></code>,
116       <code><a href="lxml.etree._ElementMatchIterator-class.html#__next__">__next__</a></code>,
117       <code><a href="lxml.etree._ElementMatchIterator-class.html#next">next</a></code>
118       </p>
119     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
120       <code>__delattr__</code>,
121       <code>__format__</code>,
122       <code>__getattribute__</code>,
123       <code>__hash__</code>,
124       <code>__init__</code>,
125       <code>__reduce__</code>,
126       <code>__reduce_ex__</code>,
127       <code>__repr__</code>,
128       <code>__setattr__</code>,
129       <code>__sizeof__</code>,
130       <code>__str__</code>,
131       <code>__subclasshook__</code>
132       </p>
133     </td>
134   </tr>
135 </table>
136 <!-- ==================== PROPERTIES ==================== -->
137 <a name="section-Properties"></a>
138 <table class="summary" border="1" cellpadding="3"
139        cellspacing="0" width="100%" bgcolor="white">
140 <tr bgcolor="#70b0f0" class="table-header">
141   <td colspan="2" class="table-header">
142     <table border="0" cellpadding="0" cellspacing="0" width="100%">
143       <tr valign="top">
144         <td align="left"><span class="table-header">Properties</span></td>
145         <td align="right" valign="top"
146          ><span class="options">[<a href="#section-Properties"
147          class="privatelink" onclick="toggle_private();"
148          >hide private</a>]</span></td>
149       </tr>
150     </table>
151   </td>
152 </tr>
153   <tr>
154     <td colspan="2" class="summary">
155     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
156       <code>__class__</code>
157       </p>
158     </td>
159   </tr>
160 </table>
161 <!-- ==================== METHOD DETAILS ==================== -->
162 <a name="section-MethodDetails"></a>
163 <table class="details" border="1" cellpadding="3"
164        cellspacing="0" width="100%" bgcolor="white">
165 <tr bgcolor="#70b0f0" class="table-header">
166   <td colspan="2" class="table-header">
167     <table border="0" cellpadding="0" cellspacing="0" width="100%">
168       <tr valign="top">
169         <td align="left"><span class="table-header">Method Details</span></td>
170         <td align="right" valign="top"
171          ><span class="options">[<a href="#section-MethodDetails"
172          class="privatelink" onclick="toggle_private();"
173          >hide private</a>]</span></td>
174       </tr>
175     </table>
176   </td>
177 </tr>
178 </table>
179 <a name="__new__"></a>
180 <div>
181 <table class="details" border="1" cellpadding="3"
182        cellspacing="0" width="100%" bgcolor="white">
183 <tr><td>
184   <table width="100%" cellpadding="0" cellspacing="0" border="0">
185   <tr valign="top"><td>
186   <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
187         <span class="sig-arg">S</span>,
188         <span class="sig-arg">...</span>)</span>
189   </h3>
190   </td><td align="right" valign="top"
191     >&nbsp;
192     </td>
193   </tr></table>
194   
195   
196   <dl class="fields">
197     <dt>Returns: a new object with type S, a subtype of T</dt>
198     <dt>Overrides:
199         object.__new__
200     </dt>
201   </dl>
202 </td></tr></table>
203 </div>
204 <br />
205 <!-- ==================== NAVIGATION BAR ==================== -->
206 <table class="navbar" border="0" width="100%" cellpadding="0"
207        bgcolor="#a0c0ff" cellspacing="0">
208   <tr valign="middle">
209   <!-- Home link -->
210       <th>&nbsp;&nbsp;&nbsp;<a
211         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
212
213   <!-- Tree link -->
214       <th>&nbsp;&nbsp;&nbsp;<a
215         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
216
217   <!-- Index link -->
218       <th>&nbsp;&nbsp;&nbsp;<a
219         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
220
221   <!-- Help link -->
222       <th>&nbsp;&nbsp;&nbsp;<a
223         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
224
225   <!-- Project homepage -->
226       <th class="navbar" align="right" width="100%">
227         <table border="0" cellpadding="0" cellspacing="0">
228           <tr><th class="navbar" align="center"
229             ><a class="navbar" target="_top" href="/">lxml API</a></th>
230           </tr></table></th>
231   </tr>
232 </table>
233 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
234   <tr>
235     <td align="left" class="footer">
236     Generated by Epydoc 3.0.1
237     on Thu Jul  9 18:29:53 2020
238     </td>
239     <td align="right" class="footer">
240       <a target="mainFrame" href="http://epydoc.sourceforge.net"
241         >http://epydoc.sourceforge.net</a>
242     </td>
243   </tr>
244 </table>
245
246 <script type="text/javascript">
247   <!--
248   // Private objects are initially displayed (because if
249   // javascript is turned off then we want them to be
250   // visible); but by default, we want to hide them.  So hide
251   // them unless we have a cookie that says to show them.
252   checkCookie();
253   // -->
254 </script>
255 </body>
256 </html>