blob: 3b0d9f2315840cf765d35c84cb8ca351f6544572 [file] [log] [blame]
Jon Halla1cdd892015-08-10 13:36:28 -07001<?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>TestON.core.dicttoobject.DictToObject</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="TestON-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 >TestON</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="TestON-module.html">Package&nbsp;TestON</a> ::
46 <a href="TestON.core-module.html">Package&nbsp;core</a> ::
47 <a href="TestON.core.dicttoobject-module.html">Module&nbsp;dicttoobject</a> ::
48 Class&nbsp;DictToObject
49 </span>
50 </td>
51 <td>
52 <table cellpadding="0" cellspacing="0">
53 <!-- hide/show private -->
54 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
55 onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
56 <tr><td align="right"><span class="options"
57 >[<a href="frames.html" target="_top">frames</a
58 >]&nbsp;|&nbsp;<a href="TestON.core.dicttoobject.DictToObject-class.html"
59 target="_top">no&nbsp;frames</a>]</span></td></tr>
60 </table>
61 </td>
62 </tr>
63</table>
64<!-- ==================== CLASS DESCRIPTION ==================== -->
65<h1 class="epydoc">Class DictToObject</h1><p class="nomargin-top"><span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject">source&nbsp;code</a></span></p>
66<center>
67<center> <map id="class_hierarchy_for_dicttoobje" name="class_hierarchy_for_dicttoobje">
68<area shape="rect" id="node1" href="TestON.core.dicttoobject.DictToObject-class.html" title="DictToObject" alt="" coords="5,62,104,87"/>
69<area shape="rect" id="node2" href="javascript:void(0);" title="dict" alt="" coords="33,6,76,31"/>
70</map>
71 <img src="class_hierarchy_for_dicttoobje.gif" alt='' usemap="#class_hierarchy_for_dicttoobje" ismap="ismap" class="graph-without-title" />
72</center>
73</center>
74<hr />
75<!-- ==================== INSTANCE METHODS ==================== -->
76<a name="section-InstanceMethods"></a>
77<table class="summary" border="1" cellpadding="3"
78 cellspacing="0" width="100%" bgcolor="white">
79<tr bgcolor="#70b0f0" class="table-header">
80 <td colspan="2" class="table-header">
81 <table border="0" cellpadding="0" cellspacing="0" width="100%">
82 <tr valign="top">
83 <td align="left"><span class="table-header">Instance Methods</span></td>
84 <td align="right" valign="top"
85 ><span class="options">[<a href="#section-InstanceMethods"
86 class="privatelink" onclick="toggle_private();"
87 >hide private</a>]</span></td>
88 </tr>
89 </table>
90 </td>
91</tr>
92<tr>
93 <td width="15%" align="right" valign="top" class="summary">
94 <span class="summary-type"><pre class="literalblock">
95new empty dictionary
96
97</pre></span>
98 </td><td class="summary">
99 <table width="100%" cellpadding="0" cellspacing="0" border="0">
100 <tr>
101 <td><span class="summary-sig"><a href="TestON.core.dicttoobject.DictToObject-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
102 <span class="summary-sig-arg">data</span>=<span class="summary-sig-default">None</span>)</span><br />
103 x.__init__(...) initializes x; see help(type(x)) for signature</td>
104 <td align="right" valign="top">
105 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__init__">source&nbsp;code</a></span>
106
107 </td>
108 </tr>
109 </table>
110
111 </td>
112 </tr>
113<tr class="private">
114 <td width="15%" align="right" valign="top" class="summary">
115 <span class="summary-type">&nbsp;</span>
116 </td><td class="summary">
117 <table width="100%" cellpadding="0" cellspacing="0" border="0">
118 <tr>
119 <td><span class="summary-sig"><a name="__update"></a><span class="summary-sig-name">__update</span>(<span class="summary-sig-arg">self</span>,
120 <span class="summary-sig-arg">data</span>,
121 <span class="summary-sig-arg">did</span>)</span></td>
122 <td align="right" valign="top">
123 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__update">source&nbsp;code</a></span>
124
125 </td>
126 </tr>
127 </table>
128
129 </td>
130 </tr>
131<tr>
132 <td width="15%" align="right" valign="top" class="summary">
133 <span class="summary-type">&nbsp;</span>
134 </td><td class="summary">
135 <table width="100%" cellpadding="0" cellspacing="0" border="0">
136 <tr>
137 <td><span class="summary-sig"><a name="__getattr__"></a><span class="summary-sig-name">__getattr__</span>(<span class="summary-sig-arg">self</span>,
138 <span class="summary-sig-arg">key</span>)</span></td>
139 <td align="right" valign="top">
140 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__getattr__">source&nbsp;code</a></span>
141
142 </td>
143 </tr>
144 </table>
145
146 </td>
147 </tr>
148<tr>
149 <td width="15%" align="right" valign="top" class="summary">
150 <span class="summary-type">&nbsp;</span>
151 </td><td class="summary">
152 <table width="100%" cellpadding="0" cellspacing="0" border="0">
153 <tr>
154 <td><span class="summary-sig"><a href="TestON.core.dicttoobject.DictToObject-class.html#__setattr__" class="summary-sig-name">__setattr__</a>(<span class="summary-sig-arg">self</span>,
155 <span class="summary-sig-arg">key</span>,
156 <span class="summary-sig-arg">value</span>)</span><br />
157 x.__setattr__('name', value) &lt;==&gt; x.name = value</td>
158 <td align="right" valign="top">
159 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__setattr__">source&nbsp;code</a></span>
160
161 </td>
162 </tr>
163 </table>
164
165 </td>
166 </tr>
167<tr>
168 <td width="15%" align="right" valign="top" class="summary">
169 <span class="summary-type">None</span>
170 </td><td class="summary">
171 <table width="100%" cellpadding="0" cellspacing="0" border="0">
172 <tr>
173 <td><span class="summary-sig"><a href="TestON.core.dicttoobject.DictToObject-class.html#update" class="summary-sig-name">update</a>(<span class="summary-sig-arg">self</span>,
174 <span class="summary-sig-arg">*args</span>)</span><br />
175 Update D from dict/iterable E and F.</td>
176 <td align="right" valign="top">
177 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.update">source&nbsp;code</a></span>
178
179 </td>
180 </tr>
181 </table>
182
183 </td>
184 </tr>
185<tr>
186 <td width="15%" align="right" valign="top" class="summary">
187 <span class="summary-type">&nbsp;</span>
188 </td><td class="summary">
189 <table width="100%" cellpadding="0" cellspacing="0" border="0">
190 <tr>
191 <td><span class="summary-sig"><a name="merge"></a><span class="summary-sig-name">merge</span>(<span class="summary-sig-arg">self</span>,
192 <span class="summary-sig-arg">*args</span>)</span></td>
193 <td align="right" valign="top">
194 <span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.merge">source&nbsp;code</a></span>
195
196 </td>
197 </tr>
198 </table>
199
200 </td>
201 </tr>
202 <tr>
203 <td colspan="2" class="summary">
204 <p class="indent-wrapped-lines"><b>Inherited from <code>dict</code></b>:
205 <code>__cmp__</code>,
206 <code>__contains__</code>,
207 <code>__delitem__</code>,
208 <code>__eq__</code>,
209 <code>__ge__</code>,
210 <code>__getattribute__</code>,
211 <code>__getitem__</code>,
212 <code>__gt__</code>,
213 <code>__iter__</code>,
214 <code>__le__</code>,
215 <code>__len__</code>,
216 <code>__lt__</code>,
217 <code>__ne__</code>,
218 <code>__new__</code>,
219 <code>__repr__</code>,
220 <code>__setitem__</code>,
221 <code>__sizeof__</code>,
222 <code>clear</code>,
223 <code>copy</code>,
224 <code>fromkeys</code>,
225 <code>get</code>,
226 <code>has_key</code>,
227 <code>items</code>,
228 <code>iteritems</code>,
229 <code>iterkeys</code>,
230 <code>itervalues</code>,
231 <code>keys</code>,
232 <code>pop</code>,
233 <code>popitem</code>,
234 <code>setdefault</code>,
235 <code>values</code>,
236 <code>viewitems</code>,
237 <code>viewkeys</code>,
238 <code>viewvalues</code>
239 </p>
240 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
241 <code>__delattr__</code>,
242 <code>__format__</code>,
243 <code>__reduce__</code>,
244 <code>__reduce_ex__</code>,
245 <code>__str__</code>,
246 <code>__subclasshook__</code>
247 </p>
248 </td>
249 </tr>
250</table>
251<!-- ==================== CLASS VARIABLES ==================== -->
252<a name="section-ClassVariables"></a>
253<table class="summary" border="1" cellpadding="3"
254 cellspacing="0" width="100%" bgcolor="white">
255<tr bgcolor="#70b0f0" class="table-header">
256 <td colspan="2" class="table-header">
257 <table border="0" cellpadding="0" cellspacing="0" width="100%">
258 <tr valign="top">
259 <td align="left"><span class="table-header">Class Variables</span></td>
260 <td align="right" valign="top"
261 ><span class="options">[<a href="#section-ClassVariables"
262 class="privatelink" onclick="toggle_private();"
263 >hide private</a>]</span></td>
264 </tr>
265 </table>
266 </td>
267</tr>
268 <tr>
269 <td colspan="2" class="summary">
270 <p class="indent-wrapped-lines"><b>Inherited from <code>dict</code></b>:
271 <code>__hash__</code>
272 </p>
273 </td>
274 </tr>
275</table>
276<!-- ==================== PROPERTIES ==================== -->
277<a name="section-Properties"></a>
278<table class="summary" border="1" cellpadding="3"
279 cellspacing="0" width="100%" bgcolor="white">
280<tr bgcolor="#70b0f0" class="table-header">
281 <td colspan="2" class="table-header">
282 <table border="0" cellpadding="0" cellspacing="0" width="100%">
283 <tr valign="top">
284 <td align="left"><span class="table-header">Properties</span></td>
285 <td align="right" valign="top"
286 ><span class="options">[<a href="#section-Properties"
287 class="privatelink" onclick="toggle_private();"
288 >hide private</a>]</span></td>
289 </tr>
290 </table>
291 </td>
292</tr>
293 <tr>
294 <td colspan="2" class="summary">
295 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
296 <code>__class__</code>
297 </p>
298 </td>
299 </tr>
300</table>
301<!-- ==================== METHOD DETAILS ==================== -->
302<a name="section-MethodDetails"></a>
303<table class="details" border="1" cellpadding="3"
304 cellspacing="0" width="100%" bgcolor="white">
305<tr bgcolor="#70b0f0" class="table-header">
306 <td colspan="2" class="table-header">
307 <table border="0" cellpadding="0" cellspacing="0" width="100%">
308 <tr valign="top">
309 <td align="left"><span class="table-header">Method Details</span></td>
310 <td align="right" valign="top"
311 ><span class="options">[<a href="#section-MethodDetails"
312 class="privatelink" onclick="toggle_private();"
313 >hide private</a>]</span></td>
314 </tr>
315 </table>
316 </td>
317</tr>
318</table>
319<a name="__init__"></a>
320<div>
321<table class="details" border="1" cellpadding="3"
322 cellspacing="0" width="100%" bgcolor="white">
323<tr><td>
324 <table width="100%" cellpadding="0" cellspacing="0" border="0">
325 <tr valign="top"><td>
326 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
327 <span class="sig-arg">data</span>=<span class="sig-default">None</span>)</span>
328 <br /><em class="fname">(Constructor)</em>
329 </h3>
330 </td><td align="right" valign="top"
331 ><span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__init__">source&nbsp;code</a></span>&nbsp;
332 </td>
333 </tr></table>
334
335 <p>x.__init__(...) initializes x; see help(type(x)) for signature</p>
336 <dl class="fields">
337 <dt>Returns: <pre class="literalblock">
338new empty dictionary
339
340</pre></dt>
341 <dt>Overrides:
342 object.__init__
343 <dd><em class="note">(inherited documentation)</em></dd>
344 </dt>
345 </dl>
346</td></tr></table>
347</div>
348<a name="__setattr__"></a>
349<div>
350<table class="details" border="1" cellpadding="3"
351 cellspacing="0" width="100%" bgcolor="white">
352<tr><td>
353 <table width="100%" cellpadding="0" cellspacing="0" border="0">
354 <tr valign="top"><td>
355 <h3 class="epydoc"><span class="sig"><span class="sig-name">__setattr__</span>(<span class="sig-arg">self</span>,
356 <span class="sig-arg">key</span>,
357 <span class="sig-arg">value</span>)</span>
358 </h3>
359 </td><td align="right" valign="top"
360 ><span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.__setattr__">source&nbsp;code</a></span>&nbsp;
361 </td>
362 </tr></table>
363
364 <p>x.__setattr__('name', value) &lt;==&gt; x.name = value</p>
365 <dl class="fields">
366 <dt>Overrides:
367 object.__setattr__
368 <dd><em class="note">(inherited documentation)</em></dd>
369 </dt>
370 </dl>
371</td></tr></table>
372</div>
373<a name="update"></a>
374<div>
375<table class="details" border="1" cellpadding="3"
376 cellspacing="0" width="100%" bgcolor="white">
377<tr><td>
378 <table width="100%" cellpadding="0" cellspacing="0" border="0">
379 <tr valign="top"><td>
380 <h3 class="epydoc"><span class="sig"><span class="sig-name">update</span>(<span class="sig-arg">self</span>,
381 <span class="sig-arg">*args</span>)</span>
382 </h3>
383 </td><td align="right" valign="top"
384 ><span class="codelink"><a href="TestON.core.dicttoobject-pysrc.html#DictToObject.update">source&nbsp;code</a></span>&nbsp;
385 </td>
386 </tr></table>
387
388 <p>Update D from dict/iterable E and F. If E present and has a .keys()
389 method, does: for k in E: D[k] = E[k] If E present and lacks .keys()
390 method, does: for (k, v) in E: D[k] = v In either case, this is
391 followed by: for k in F: D[k] = F[k]</p>
392 <dl class="fields">
393 <dt>Returns: None</dt>
394 <dt>Overrides:
395 dict.update
396 <dd><em class="note">(inherited documentation)</em></dd>
397 </dt>
398 </dl>
399</td></tr></table>
400</div>
401<br />
402<!-- ==================== NAVIGATION BAR ==================== -->
403<table class="navbar" border="0" width="100%" cellpadding="0"
404 bgcolor="#a0c0ff" cellspacing="0">
405 <tr valign="middle">
406 <!-- Home link -->
407 <th>&nbsp;&nbsp;&nbsp;<a
408 href="TestON-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
409
410 <!-- Tree link -->
411 <th>&nbsp;&nbsp;&nbsp;<a
412 href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
413
414 <!-- Index link -->
415 <th>&nbsp;&nbsp;&nbsp;<a
416 href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
417
418 <!-- Help link -->
419 <th>&nbsp;&nbsp;&nbsp;<a
420 href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
421
422 <!-- Project homepage -->
423 <th class="navbar" align="right" width="100%">
424 <table border="0" cellpadding="0" cellspacing="0">
425 <tr><th class="navbar" align="center"
426 >TestON</th>
427 </tr></table></th>
428 </tr>
429</table>
430<table border="0" cellpadding="0" cellspacing="0" width="100%%">
431 <tr>
432 <td align="left" class="footer">
433 Generated by Epydoc 3.0.1 on Mon Aug 10 11:12:35 2015
434 </td>
435 <td align="right" class="footer">
436 <a target="mainFrame" href="http://epydoc.sourceforge.net"
437 >http://epydoc.sourceforge.net</a>
438 </td>
439 </tr>
440</table>
441
442<script type="text/javascript">
443 <!--
444 // Private objects are initially displayed (because if
445 // javascript is turned off then we want them to be
446 // visible); but by default, we want to hide them. So hide
447 // them unless we have a cookie that says to show them.
448 checkCookie();
449 // -->
450</script>
451</body>
452</html>