diff options
author | hut <hut@lavabit.com> | 2010-01-13 05:51:27 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-13 05:51:27 +0100 |
commit | b3556b21e23eb3381b220e0d3319d94b3a89e0ac (patch) | |
tree | 453f160878fd0499907d9bcfd3d32f11084aa50c /doc/pydoc/ranger.keyapi.html | |
parent | 0cfc59d6028c6b43e1dc323b94c84a8157db1859 (diff) | |
download | ranger-b3556b21e23eb3381b220e0d3319d94b3a89e0ac.tar.gz |
updated pydoc documentation
Diffstat (limited to 'doc/pydoc/ranger.keyapi.html')
-rw-r--r-- | doc/pydoc/ranger.keyapi.html | 58 |
1 files changed, 34 insertions, 24 deletions
diff --git a/doc/pydoc/ranger.keyapi.html b/doc/pydoc/ranger.keyapi.html index dfb97892..bda4bd02 100644 --- a/doc/pydoc/ranger.keyapi.html +++ b/doc/pydoc/ranger.keyapi.html @@ -9,7 +9,19 @@ <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.keyapi</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/keyapi.py">/home/hut/work/ranger/ranger/keyapi.py</a></font></td></tr></table> - <p></p> + <p><tt># Copyright (c) 2009, 2010 hut <hut@lavabit.com><br> +#<br> +# Permission to use, copy, modify, and/or distribute this software for any<br> +# purpose with or without fee is hereby granted, provided that the above<br> +# copyright notice and this permission notice appear in all copies.<br> +#<br> +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES<br> +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF<br> +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR<br> +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES<br> +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN<br> +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF<br> +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> @@ -30,7 +42,6 @@ </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.keyapi.html#Wrapper">Wrapper</a> -</font></dt><dt><font face="helvetica, arial"><a href="ranger.keyapi.html#nwrap">nwrap</a> </font></dt></dl> </dd> </dl> @@ -54,26 +65,6 @@ Data descriptors defined here:<br> <dl><dt><strong>__weakref__</strong></dt> <dd><tt>list of weak references to the object (if 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> <br> -<font color="#000000" face="helvetica, arial"><a name="nwrap">class <strong>nwrap</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> - -<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> -<td colspan=2><tt># Another wrapper for common actions which use a numerical argument:<br> </tt></td></tr> -<tr><td> </td> -<td width="100%">Static methods defined here:<br> -<dl><dt><a name="nwrap-move"><strong>move</strong></a>(relative<font color="#909090">=0</font>, absolute<font color="#909090">=None</font>, pages<font color="#909090">=False</font>)</dt></dl> - -<hr> -Data descriptors defined here:<br> -<dl><dt><strong>__dict__</strong></dt> -<dd><tt>dictionary for instance variables (if defined)</tt></dd> -</dl> -<dl><dt><strong>__weakref__</strong></dt> -<dd><tt>list of weak references to the object (if defined)</tt></dd> -</dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> @@ -119,6 +110,13 @@ Data descriptors defined here:<br> <dl><dt><a name="-mouseinterval"><strong>mouseinterval</strong></a>(...)</dt></dl> <dl><dt><a name="-mousemask"><strong>mousemask</strong></a>(...)</dt></dl> <dl><dt><a name="-napms"><strong>napms</strong></a>(...)</dt></dl> + <dl><dt><a name="-narg"><strong>narg</strong></a>(number_, function_, *args_, **keywords_)</dt><dd><tt>This applies the replace_narg function to the arguments and keywords<br> +and directly runs this function.<br> + <br> +Example:<br> +def foo(xyz, narg): return hash((xyz, narg))<br> + <br> +<a href="#-narg">narg</a>(50, foo, 123) == foo(123, narg=50)</tt></dd></dl> <dl><dt><a name="-newpad"><strong>newpad</strong></a>(...)</dt></dl> <dl><dt><a name="-newwin"><strong>newwin</strong></a>(...)</dt></dl> <dl><dt><a name="-nl"><strong>nl</strong></a>(...)</dt></dl> @@ -132,6 +130,17 @@ Data descriptors defined here:<br> <dl><dt><a name="-putp"><strong>putp</strong></a>(...)</dt></dl> <dl><dt><a name="-qiflush"><strong>qiflush</strong></a>(...)</dt></dl> <dl><dt><a name="-raw"><strong>raw</strong></a>(...)</dt></dl> + <dl><dt><a name="-replace_narg"><strong>replace_narg</strong></a>(number, function, args, keywords)</dt><dd><tt>This function returns (args, keywords) with one little change:<br> +if <function> has a named argument called "narg", args and keywords<br> +will be modified so that the value of "narg" will be <number>.<br> + <br> +def foo(xyz, narg): pass<br> + <br> +<a href="#-replace_narg">replace_narg</a>(666, foo, (), {'narg': 10, 'xyz': 5})<br> +=> (), {'narg': 666, 'xyz': 5}<br> + <br> +<a href="#-replace_narg">replace_narg</a>(666, foo, (1, 2), {})<br> +=> (1, 666), {}</tt></dd></dl> <dl><dt><a name="-reset_prog_mode"><strong>reset_prog_mode</strong></a>(...)</dt></dl> <dl><dt><a name="-reset_shell_mode"><strong>reset_shell_mode</strong></a>(...)</dt></dl> <dl><dt><a name="-resetty"><strong>resetty</strong></a>(...)</dt></dl> @@ -390,6 +399,7 @@ Data descriptors defined here:<br> <strong>KEY_UP</strong> = 259<br> <strong>LF</strong> = 10<br> <strong>NAK</strong> = 21<br> +<strong>NARG_KEYWORD</strong> = 'narg'<br> <strong>NL</strong> = 10<br> <strong>NUL</strong> = 0<br> <strong>OK</strong> = 0<br> @@ -407,7 +417,7 @@ Data descriptors defined here:<br> <strong>US</strong> = 31<br> <strong>VT</strong> = 11<br> <strong>controlnames</strong> = ['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'HT', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', ...]<br> -<strong>fm</strong> = <ranger.keyapi.Wrapper object at 0x7f20a5b429d0><br> +<strong>fm</strong> = <ranger.keyapi.Wrapper object at 0x1884110><br> <strong>version</strong> = b'2.2'<br> -<strong>wdg</strong> = <ranger.keyapi.Wrapper object at 0x7f20a5b42a10></td></tr></table> +<strong>wdg</strong> = <ranger.keyapi.Wrapper object at 0x1884150></td></tr></table> </body></html> \ No newline at end of file |