Debugging on windows via print statements -- reliable?

Aahz aahz at pythoncraft.com
Mon Mar 25 10:05:37 EST 2002


In article <mailman.1017034718.25848.python-list at python.org>,
Nick Arnett <narnett at mccmedia.com> wrote:
> [mailto:python-list-admin at python.org]On Behalf Of Peter Hansen
>>
>> By the way, how can Python code get "stuck"?  Is it a logic flaw,
>> or are you talking about the kind of "stuck" that used to happen,
>> in the "old days", when we were always writing code in languages
>> which would actually crash the computer?
>
>I'm using these vague adjectives because I can't tell what is
>happening.  Somewhere in the midst of retrieving pages with urllib and
>parsing them with sgmllib, everything seems to stop.  

Ah.  You're probably getting stuck in urllib.  You need to use
http://www.timo-tasi.org/python/timeoutsocket.py
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"We should forget about small efficiencies, about 97% of the time.
Premature optimization is the root of all evil."  --Knuth



More information about the Python-list mailing list