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