File: pydispatch.robustapply.html

package info (click to toggle)
pydispatcher 2.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: python: 1,076; makefile: 11
file content (57 lines) | stat: -rw-r--r-- 3,899 bytes parent folder | download
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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<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&nbsp;apply&nbsp;mechanism<br>
&nbsp;<br>
Provides&nbsp;a&nbsp;function&nbsp;"call",&nbsp;which&nbsp;can&nbsp;sort&nbsp;out<br>
what&nbsp;arguments&nbsp;a&nbsp;given&nbsp;callable&nbsp;object&nbsp;can&nbsp;take,<br>
and&nbsp;subset&nbsp;the&nbsp;given&nbsp;arguments&nbsp;to&nbsp;match&nbsp;only<br>
those&nbsp;which&nbsp;are&nbsp;acceptable.</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="#fffff" face="helvetica, arial"><big><strong>Modules</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="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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-function"><strong>function</strong></a>(receiver)</dt><dd><tt>Get&nbsp;function-like&nbsp;callable&nbsp;object&nbsp;for&nbsp;given&nbsp;receiver<br>
&nbsp;<br>
returns&nbsp;(function_or_method,&nbsp;codeObject,&nbsp;fromMethod)<br>
&nbsp;<br>
If&nbsp;fromMethod&nbsp;is&nbsp;true,&nbsp;then&nbsp;the&nbsp;callable&nbsp;already<br>
has&nbsp;its&nbsp;first&nbsp;argument&nbsp;bound</tt></dd></dl>
<dl><dt><a name="-robustApply"><strong>robustApply</strong></a>(receiver, *arguments, **named)</dt><dd><tt>Call&nbsp;receiver&nbsp;with&nbsp;arguments&nbsp;and&nbsp;an&nbsp;appropriate&nbsp;subset&nbsp;of&nbsp;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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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> = &lt;_frozen_importlib_external.SourceFileLoader object&gt;<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>