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.etree.ElementDefaultClassLookup</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="/">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.etree-module.html">Module etree</a> ::
47 Class ElementDefaultClassLookup
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.etree.ElementDefaultClassLookup-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class ElementDefaultClassLookup</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <a href="lxml.etree.ElementClassLookup-class.html">ElementClassLookup</a> --+
70 <strong class="uidshort">ElementDefaultClassLookup</strong>
74 <p>ElementDefaultClassLookup(self, element=None, comment=None, pi=None, entity=None)
75 Element class lookup scheme that always returns the default Element
77 <p>The keyword arguments <tt class="rst-docutils literal">element</tt>, <tt class="rst-docutils literal">comment</tt>, <tt class="rst-docutils literal">pi</tt> and <tt class="rst-docutils literal">entity</tt>
78 accept the respective Element classes.</p>
80 <!-- ==================== INSTANCE METHODS ==================== -->
81 <a name="section-InstanceMethods"></a>
82 <table class="summary" border="1" cellpadding="3"
83 cellspacing="0" width="100%" bgcolor="white">
84 <tr bgcolor="#70b0f0" class="table-header">
85 <td colspan="2" class="table-header">
86 <table border="0" cellpadding="0" cellspacing="0" width="100%">
88 <td align="left"><span class="table-header">Instance Methods</span></td>
89 <td align="right" valign="top"
90 ><span class="options">[<a href="#section-InstanceMethods"
91 class="privatelink" onclick="toggle_private();"
92 >hide private</a>]</span></td>
98 <td width="15%" align="right" valign="top" class="summary">
99 <span class="summary-type"> </span>
100 </td><td class="summary">
101 <table width="100%" cellpadding="0" cellspacing="0" border="0">
103 <td><span class="summary-sig"><a href="lxml.etree.ElementDefaultClassLookup-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
104 <span class="summary-sig-arg">element</span>=<span class="summary-sig-default">None</span>,
105 <span class="summary-sig-arg">comment</span>=<span class="summary-sig-default">None</span>,
106 <span class="summary-sig-arg">pi</span>=<span class="summary-sig-default">None</span>,
107 <span class="summary-sig-arg">entity</span>=<span class="summary-sig-default">None</span>)</span><br />
108 x.__init__(...) initializes x; see help(type(x)) for signature</td>
109 <td align="right" valign="top">
119 <td width="15%" align="right" valign="top" class="summary">
120 <span class="summary-type">a new object with type S, a subtype of T</span>
121 </td><td class="summary">
122 <table width="100%" cellpadding="0" cellspacing="0" border="0">
124 <td><span class="summary-sig"><a href="lxml.etree.ElementDefaultClassLookup-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
125 <span class="summary-sig-arg">S</span>,
126 <span class="summary-sig-arg">...</span>)</span></td>
127 <td align="right" valign="top">
137 <td colspan="2" class="summary">
138 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
139 <code>__delattr__</code>,
140 <code>__format__</code>,
141 <code>__getattribute__</code>,
142 <code>__hash__</code>,
143 <code>__reduce__</code>,
144 <code>__reduce_ex__</code>,
145 <code>__repr__</code>,
146 <code>__setattr__</code>,
147 <code>__sizeof__</code>,
148 <code>__str__</code>,
149 <code>__subclasshook__</code>
154 <!-- ==================== PROPERTIES ==================== -->
155 <a name="section-Properties"></a>
156 <table class="summary" border="1" cellpadding="3"
157 cellspacing="0" width="100%" bgcolor="white">
158 <tr bgcolor="#70b0f0" class="table-header">
159 <td colspan="2" class="table-header">
160 <table border="0" cellpadding="0" cellspacing="0" width="100%">
162 <td align="left"><span class="table-header">Properties</span></td>
163 <td align="right" valign="top"
164 ><span class="options">[<a href="#section-Properties"
165 class="privatelink" onclick="toggle_private();"
166 >hide private</a>]</span></td>
172 <td width="15%" align="right" valign="top" class="summary">
173 <span class="summary-type"> </span>
174 </td><td class="summary">
175 <a name="comment_class"></a><span class="summary-name">comment_class</span>
179 <td width="15%" align="right" valign="top" class="summary">
180 <span class="summary-type"> </span>
181 </td><td class="summary">
182 <a name="element_class"></a><span class="summary-name">element_class</span>
186 <td width="15%" align="right" valign="top" class="summary">
187 <span class="summary-type"> </span>
188 </td><td class="summary">
189 <a name="entity_class"></a><span class="summary-name">entity_class</span>
193 <td width="15%" align="right" valign="top" class="summary">
194 <span class="summary-type"> </span>
195 </td><td class="summary">
196 <a name="pi_class"></a><span class="summary-name">pi_class</span>
200 <td colspan="2" class="summary">
201 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
202 <code>__class__</code>
207 <!-- ==================== METHOD DETAILS ==================== -->
208 <a name="section-MethodDetails"></a>
209 <table class="details" border="1" cellpadding="3"
210 cellspacing="0" width="100%" bgcolor="white">
211 <tr bgcolor="#70b0f0" class="table-header">
212 <td colspan="2" class="table-header">
213 <table border="0" cellpadding="0" cellspacing="0" width="100%">
215 <td align="left"><span class="table-header">Method Details</span></td>
216 <td align="right" valign="top"
217 ><span class="options">[<a href="#section-MethodDetails"
218 class="privatelink" onclick="toggle_private();"
219 >hide private</a>]</span></td>
225 <a name="__init__"></a>
227 <table class="details" border="1" cellpadding="3"
228 cellspacing="0" width="100%" bgcolor="white">
230 <table width="100%" cellpadding="0" cellspacing="0" border="0">
231 <tr valign="top"><td>
232 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
233 <span class="sig-arg">element</span>=<span class="sig-default">None</span>,
234 <span class="sig-arg">comment</span>=<span class="sig-default">None</span>,
235 <span class="sig-arg">pi</span>=<span class="sig-default">None</span>,
236 <span class="sig-arg">entity</span>=<span class="sig-default">None</span>)</span>
237 <br /><em class="fname">(Constructor)</em>
239 </td><td align="right" valign="top"
244 x.__init__(...) initializes x; see help(type(x)) for signature
252 <a name="__new__"></a>
254 <table class="details" border="1" cellpadding="3"
255 cellspacing="0" width="100%" bgcolor="white">
257 <table width="100%" cellpadding="0" cellspacing="0" border="0">
258 <tr valign="top"><td>
259 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
260 <span class="sig-arg">S</span>,
261 <span class="sig-arg">...</span>)</span>
263 </td><td align="right" valign="top"
270 <dt>Returns: a new object with type S, a subtype of T</dt>
278 <!-- ==================== NAVIGATION BAR ==================== -->
279 <table class="navbar" border="0" width="100%" cellpadding="0"
280 bgcolor="#a0c0ff" cellspacing="0">
283 <th> <a
284 href="lxml-module.html">Home</a> </th>
287 <th> <a
288 href="module-tree.html">Trees</a> </th>
291 <th> <a
292 href="identifier-index.html">Indices</a> </th>
295 <th> <a
296 href="help.html">Help</a> </th>
298 <!-- Project homepage -->
299 <th class="navbar" align="right" width="100%">
300 <table border="0" cellpadding="0" cellspacing="0">
301 <tr><th class="navbar" align="center"
302 ><a class="navbar" target="_top" href="/">lxml API</a></th>
306 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
308 <td align="left" class="footer">
309 Generated by Epydoc 3.0.1
310 on Thu Jul 9 18:29:53 2020
312 <td align="right" class="footer">
313 <a target="mainFrame" href="http://epydoc.sourceforge.net"
314 >http://epydoc.sourceforge.net</a>
319 <script type="text/javascript">
321 // Private objects are initially displayed (because if
322 // javascript is turned off then we want them to be
323 // visible); but by default, we want to hide them. So hide
324 // them unless we have a cookie that says to show them.