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 58 59 60 61 62 63 64 65
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pydispatch.robust</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>.robust</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/robust.py">/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robust.py</a></font></td></tr></table>
<p><tt>Module implementing error-catching version of send (sendRobust)</tt></p>
<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="-sendRobust"><strong>sendRobust</strong></a>(signal=_Any, sender=_Anonymous, *arguments, **named)</dt><dd><tt>Send signal from sender to all connected receivers catching errors<br>
<br>
signal -- (hashable) signal value, see connect for details<br>
<br>
sender -- the sender of the signal<br>
<br>
if Any, only receivers registered for Any will receive<br>
the message.<br>
<br>
if Anonymous, only receivers registered to receive<br>
messages from Anonymous or Any will receive the message<br>
<br>
Otherwise can be any python object (normally one<br>
registered with a connect if you actually want<br>
something to occur).<br>
<br>
arguments -- positional arguments which will be passed to<br>
*all* receivers. Note that this may raise TypeErrors<br>
if the receivers do not allow the particular arguments.<br>
Note also that arguments are applied before named<br>
arguments, so they should be used with care.<br>
<br>
named -- named arguments which will be filtered according<br>
to the parameters of the receivers to only provide those<br>
acceptable to the receiver.<br>
<br>
Return a list of tuple pairs [(receiver, response), ... ]<br>
<br>
if any receiver raises an error (specifically any subclass of Exception),<br>
the error instance is returned as the result for that receiver.</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>Anonymous</strong> = _Anonymous<br>
<strong>Any</strong> = _Any<br>
<strong>__cached__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/__pycache__/robust.cpython-310.pyc'<br>
<strong>__file__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robust.py'<br>
<strong>__loader__</strong> = <_frozen_importlib_external.SourceFileLoader object><br>
<strong>__name__</strong> = 'pydispatch.robust'<br>
<strong>__package__</strong> = 'pydispatch'<br>
<strong>__spec__</strong> = ModuleSpec(name='pydispatch.robust', loader=<_fr...ch/OpenGL-dev/pydispatcher/pydispatch/robust.py')</td></tr></table>
</body></html>
|