[Twisted-Python] adding reactor as argument to getPage()?
steven meier
commercials24 at yahoo.de
Sat Jul 30 06:03:43 MDT 2016
hi,
after my last question which was answered with:
...the reactor should be passed in by the user...
i ran into getPage(), the
file: ./lib/python2.7/site-packages/twisted/web/client.py
which contains getPage() imports the reactor at the top.
it can be easily changed to add a argument to getPage() which passes it
down to _makeGetter...
then just comment out the import at the top and getPage() works when
given a reactor as argument.
probably breaking a lot of other code in that file.
since getPage() is a method thats probably used a lot...did i understand
the passing of the reactor or i did my mind go overboard?
as a reminder: i want to use the qt5reactor to get some gui output
More information about the Twisted-Python
mailing list