This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients Maxime S, gvanrossum, serhiy.storchaka, terry.reedy, yselivanov
Date 2016-07-21.19:35:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469129707.89.0.887979246688.issue27546@psf.upfronthosting.co.za>
In-reply-to
Content
> Who actually wrote it [crawl.py], that would understand it?

I wrote it, and I can probably still recover my understanding of it.  Basically you say "python3 crawl.py xkcd.com -q" and it crawls the XKCD.com website -- that takes about 4 seconds on my machine, fetching 1764 urls. The -q is to make it more quiet while it's working -- but somehow it doesn't suppress the final report, which includes a full list of all crawled URLs -- this could use some surgery to pass the log level into Fetcher.report().  A test site that has only one URL is www.pythonlabs.com.

I ran the test program (tkaloop.py) and it appears to work, with one caveat: updates in response to Tk events (specifically clicking the button that toggles the color of the "Hello" label) seem to take an effect only once the self.root.update() call in your run_forever() is made, which appears to be only once per "interval" (i.e. 1 second).

Hopefully future development will make it so that when a Tk event happens, *somehow* the asyncio selector gets woken up.

(PS. Please don't abbreviate asyncio to aio. It makes your code harder to read for asyncio veterans. :-)
History
Date User Action Args
2016-07-21 19:35:07gvanrossumsetrecipients: + gvanrossum, terry.reedy, serhiy.storchaka, yselivanov, Maxime S
2016-07-21 19:35:07gvanrossumsetmessageid: <1469129707.89.0.887979246688.issue27546@psf.upfronthosting.co.za>
2016-07-21 19:35:07gvanrossumlinkissue27546 messages
2016-07-21 19:35:07gvanrossumcreate