summary refs log blame commit diff stats
path: root/doc/pydoc/ranger.shared.html
blob: 225b3ade6232b88f6c5d346d596b261c7733a9a5 (plain) (tree)










































































































                                                                                                                                                                                                                   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package ranger.shared</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.shared</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/work/ranger/ranger/shared/__init__.py">/home/hut/work/ranger/ranger/shared/__init__.py</a></font></td></tr></table>
    <p><tt>Shared&nbsp;objects&nbsp;contian&nbsp;singleton&nbsp;variables&nbsp;wich&nbsp;can&nbsp;be<br>
inherited,&nbsp;essentially&nbsp;acting&nbsp;like&nbsp;global&nbsp;variables.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.shared.mimetype.html">mimetype</a><br>
</td><td width="25%" valign=top><a href="ranger.shared.settings.html">settings</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.shared.html#Awareness">Awareness</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="ranger.shared.html#EnvironmentAware">EnvironmentAware</a>
</font></dt><dt><font face="helvetica, arial"><a href="ranger.shared.html#FileManagerAware">FileManagerAware</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Awareness">class <strong>Awareness</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="EnvironmentAware">class <strong>EnvironmentAware</strong></a>(<a href="ranger.shared.html#Awareness">Awareness</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.shared.html#EnvironmentAware">EnvironmentAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">Awareness</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>env</strong> = None</dl>

<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FileManagerAware">class <strong>FileManagerAware</strong></a>(<a href="ranger.shared.html#Awareness">Awareness</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="ranger.shared.html#FileManagerAware">FileManagerAware</a></dd>
<dd><a href="ranger.shared.html#Awareness">Awareness</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>fm</strong> = None</dl>

<hr>
Data descriptors inherited from <a href="ranger.shared.html#Awareness">Awareness</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>
8 </span><span class="Comment">//: 52 insert fragments</span> <span id="L39" class="LineNr">39 </span><span class="Comment">//: ↳ 52.2 check fragments</span> <span id="L40" class="LineNr">40 </span><span class="Comment">//: ---</span> <span id="L41" class="LineNr">41 </span><span class="Comment">//: 53 rewrite 'stash' instructions</span> <span id="L42" class="LineNr">42 </span><span class="Comment">//: end instruction inserting transforms</span> <span id="L43" class="LineNr">43 </span><span class="Comment">//:</span> <span id="L44" class="LineNr">44 </span><span class="Comment">//: begin instruction modifying transforms</span> <span id="L45" class="LineNr">45 </span><span class="Comment">//: 56.2 check header ingredients</span> <span id="L46" class="LineNr">46 </span><span class="Comment">//: ↳ 56.4 fill in return ingredients</span> <span id="L47" class="LineNr">47 </span><span class="Comment">//: 48 check or set types by name</span> <span id="L48" class="LineNr">48 </span><span class="Comment">//:</span> <span id="L49" class="LineNr">49 </span><span class="Comment">//: begin type modifying transforms</span> <span id="L50" class="LineNr">50 </span><span class="Comment">//: 56.3 deduce types from header</span> <span id="L51" class="LineNr">51 </span><span class="Comment">//: ---</span> <span id="L52" class="LineNr">52 </span><span class="Comment">//: 30 check or set invalid containers</span> <span id="L53" class="LineNr">53 </span><span class="Comment">//: end type modifying transforms</span> <span id="L54" class="LineNr">54 </span><span class="Comment">//: ↱ 46 collect surrounding spaces</span> <span id="L55" class="LineNr">55 </span><span class="Comment">//: ↳ 42 transform names</span> <span id="L56" class="LineNr">56 </span><span class="Comment">//: ↳ 57 static dispatch</span> <span id="L57" class="LineNr">57 </span><span class="Comment">//: ---</span> <span id="L58" class="LineNr">58 </span><span class="Comment">//: 13 update instruction operation</span> <span id="L59" class="LineNr">59 </span><span class="Comment">//: 40 transform braces</span> <span id="L60" class="LineNr">60 </span><span class="Comment">//: 41 transform labels</span> <span id="L61" class="LineNr">61 </span><span class="Comment">//: end instruction modifying transforms</span> <span id="L62" class="LineNr">62 </span><span class="Comment">//: ↳ 60 check immutable ingredients</span> <span id="L63" class="LineNr">63 </span><span class="Comment">//:</span> <span id="L64" class="LineNr">64 </span><span class="Comment">//: begin checks</span> <span id="L65" class="LineNr">65 </span><span class="Comment">//: ---</span> <span id="L66" class="LineNr">66 </span><span class="Comment">//: 21 check instruction</span> <span id="L67" class="LineNr">67 </span><span class="Comment">//: ↳ 61 check indirect calls against header</span> <span id="L68" class="LineNr">68 </span><span class="Comment">//: ↳ 56 check calls against header</span> <span id="L69" class="LineNr">69 </span><span class="Comment">//: ↳ 43 transform 'new' to 'allocate'</span> <span id="L70" class="LineNr">70 </span><span class="Comment">//: 30 check merge calls</span> <span id="L71" class="LineNr">71 </span><span class="Comment">//: 36 check types of return instructions</span> <span id="L72" class="LineNr">72 </span><span class="Comment">//: 43 check default space</span> <span id="L73" class="LineNr">73 </span><span class="Comment">//: 56 check return instructions against header</span> <span id="L74" class="LineNr">74 </span><span class="Comment">//: end checks</span> <span id="L75" class="LineNr">75 </span><span class="Comment">//: end transforms</span> <span id="L76" class="LineNr">76 </span> <span id="L77" class="LineNr">77 </span><span class="SalientComment">//:: Summary of type-checking in different phases</span> <span id="L78" class="LineNr">78 </span><span class="Comment">//: when dispatching instructions we accept first recipe that:</span> <span id="L79" class="LineNr">79 </span><span class="Comment">//: strictly matches all types</span> <span id="L80" class="LineNr">80 </span><span class="Comment">//: maps literal 0 or literal 1 to boolean for some ingredients</span> <span id="L81" class="LineNr">81 </span><span class="Comment">//: performs some other acceptable type conversion</span> <span id="L82" class="LineNr">82 </span><span class="Comment">//: literal 0 -&gt; address</span> <span id="L83" class="LineNr">83 </span><span class="Comment">//: literal -&gt; character</span> <span id="L84" class="LineNr">84 </span><span class="Comment">//: when checking instructions we ensure that types match, and that literals map to some scalar</span> <span id="L85" class="LineNr">85 </span><span class="Comment">//: (address can only map to literal 0)</span> <span id="L86" class="LineNr">86 </span><span class="Comment">//: (boolean can only map to literal 0 or literal 1)</span> <span id="L87" class="LineNr">87 </span><span class="Comment">//: (but conditionals can take any scalar)</span> <span id="L88" class="LineNr">88 </span><span class="Comment">//: at runtime we perform no checks</span> </pre> </body> </html> <!-- vim: set foldmethod=manual : -->