Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You seem to have three questions:</p> <ol> <li><p>"What does <code>lambda</code> mean in Python?"</p> <p>Which is <a href="http://docs.python.org/reference/expressions.html#lambda" rel="nofollow">covered by Python's documentation</a>. If you still have a hard time reading code written this way though, you can use the fact that <code>lambda x: y</code> is just a shortcut to writing <code>def my_function(x): return y</code>. Anywhere you see a <code>lambda</code>, like for example, this:</p> <pre><code>def foo(bar): return boz().addCallback(lambda result: qux(bar, result)) </code></pre> <p>you can always pull out the <code>lambda</code> into its own function so that it's easier for you to read, like this:</p> <pre><code>def foo(bar): def callback_for_boz(result): return qux(bar, result) return boz().addCallback(callback_for_boz) </code></pre></li> <li><p>"<a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother" rel="nofollow">How do I make input on one connection result in output on another?</a>"</p> <p>Which is <a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinputononeconnectionresultinoutputonanother" rel="nofollow">documented by Twisted's FAQ</a>. </p></li> <li><p>"<a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeTwistedtalktomultipleclientsconnecttomultipleservers" rel="nofollow">How do I make Twisted talk to multiple clients / connect to multiple servers?</a>"</p> <p>Which is <a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeTwistedtalktomultipleclientsconnecttomultipleservers" rel="nofollow">also a twisted FAQ</a>. The general idea here is that <code>reactor.run()</code> means "... and then run the whole program". The only reason you run any code before <code>reactor.run()</code> is to set up your initial timers, or listening sockets, or your first connection. You can call <code>connectTCP</code> or <code>listenTCP</code> as many times as you like, either before you run the reactor or in any callback that happens later in your program.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload