1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pydispatch.robustapply</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> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="pydispatch.html"><font color="#ffffff">pydispatch</font></a>.robustapply</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/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robustapply.py">/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robustapply.py</a></font></td></tr></table>
<p><tt>Robust apply mechanism<br>
<br>
Provides a function "call", which can sort out<br>
what arguments a given callable object can take,<br>
and subset the given arguments to match only<br>
those which are acceptable.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top></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="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-function"><strong>function</strong></a>(receiver)</dt><dd><tt>Get function-like callable object for given receiver<br>
<br>
returns (function_or_method, codeObject, fromMethod)<br>
<br>
If fromMethod is true, then the callable already<br>
has its first argument bound</tt></dd></dl>
<dl><dt><a name="-robustApply"><strong>robustApply</strong></a>(receiver, *arguments, **named)</dt><dd><tt>Call receiver with arguments and an appropriate subset of named</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>__cached__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/__pycache__/robustapply.cpython-310.pyc'<br>
<strong>__file__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robustapply.py'<br>
<strong>__loader__</strong> = <_frozen_importlib_external.SourceFileLoader object><br>
<strong>__name__</strong> = 'pydispatch.robustapply'<br>
<strong>__package__</strong> = 'pydispatch'<br>
<strong>__spec__</strong> = ModuleSpec(name='pydispatch.robustapply', loader...enGL-dev/pydispatcher/pydispatch/robustapply.py')<br>
<strong>func_code</strong> = '__code__'<br>
<strong>im_code</strong> = '__code__'<br>
<strong>im_func</strong> = '__func__'<br>
<strong>im_self</strong> = '__self__'</td></tr></table>
</body></html>
|