Where is run() implemented in twisted?

This is a question about how to refer to twisted API documentation.

I use twisted to write a simple server program with python like this,

from twisted.internet import reactor
reactor.listenTCP(8000, server.facotry)

This program worked well, but I wondered the definition of run() in class reactor, then I referred to twisted API documentation.
And I wrote in the code

import inspect

Then, I got

('run', <bound method SelectReactor.run of <twisted.internet.selectreactor.SelectReactor object at 0x0000000002C68F60>>)

I guessed run() in twisted.internet.selectreactor.SelectReactor.
But I didn’t find run() in twisted.internet.selectreactor.py.

Where is the definition of run()?

Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.