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) reactor.run()
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 inspect.getmembers(reactor)
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()?