| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html><head><title>Python: module pydispatch.robust</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>.robust</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/robust.py">/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robust.py</a></font></td></tr></table> |
| 12 | <p><tt>Module implementing error-catching version of send (sendRobust)</tt></p> |
| 13 | <p> |
| 14 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 15 | <tr bgcolor="#eeaa77"> |
| 16 | <td colspan=3 valign=bottom> <br> |
| 17 | <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> |
| 18 | |
| 19 | <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> |
| 20 | <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> |
| 21 | <br> |
| 22 | signal -- (hashable) signal value, see connect for details<br> |
| 23 | <br> |
| 24 | sender -- the sender of the signal<br> |
| 25 | <br> |
| 26 | if Any, only receivers registered for Any will receive<br> |
| 27 | the message.<br> |
| 28 | <br> |
| 29 | if Anonymous, only receivers registered to receive<br> |
| 30 | messages from Anonymous or Any will receive the message<br> |
| 31 | <br> |
| 32 | Otherwise can be any python object (normally one<br> |
| 33 | registered with a connect if you actually want<br> |
| 34 | something to occur).<br> |
| 35 | <br> |
| 36 | arguments -- positional arguments which will be passed to<br> |
| 37 | *all* receivers. Note that this may raise TypeErrors<br> |
| 38 | if the receivers do not allow the particular arguments.<br> |
| 39 | Note also that arguments are applied before named<br> |
| 40 | arguments, so they should be used with care.<br> |
| 41 | <br> |
| 42 | named -- named arguments which will be filtered according<br> |
| 43 | to the parameters of the receivers to only provide those<br> |
| 44 | acceptable to the receiver.<br> |
| 45 | <br> |
| 46 | Return a list of tuple pairs [(receiver, response), ... ]<br> |
| 47 | <br> |
| 48 | if any receiver raises an error (specifically any subclass of Exception),<br> |
| 49 | the error instance is returned as the result for that receiver.</tt></dd></dl> |
| 50 | </td></tr></table><p> |
| 51 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 52 | <tr bgcolor="#55aa55"> |
| 53 | <td colspan=3 valign=bottom> <br> |
| 54 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 55 | |
| 56 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 57 | <td width="100%"><strong>Anonymous</strong> = _Anonymous<br> |
| 58 | <strong>Any</strong> = _Any<br> |
| 59 | <strong>__cached__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/__pycache__/robust.cpython-310.pyc'<br> |
| 60 | <strong>__file__</strong> = '/home/mcfletch/OpenGL-dev/pydispatcher/pydispatch/robust.py'<br> |
| 61 | <strong>__loader__</strong> = <_frozen_importlib_external.SourceFileLoader object><br> |
| 62 | <strong>__name__</strong> = 'pydispatch.robust'<br> |
| 63 | <strong>__package__</strong> = 'pydispatch'<br> |
| 64 | <strong>__spec__</strong> = ModuleSpec(name='pydispatch.robust', loader=<_fr...ch/OpenGL-dev/pydispatcher/pydispatch/robust.py')</td></tr></table> |
| 65 | </body></html> |