passing what a function returns to another function

Bart Nessux bart_nessux at
Sun Feb 8 17:05:06 CET 2004

Steven wrote:
>     for i in xrange(999999999):
>         # hmmm, this looks like a Denial of Service attack to me...
>         # haven't you got something better to do with your time,
>         # like maybe writing a natural language parser or something
>         # useful and challenging?
>         f = urlopen(url)

Thanks for the tips on functions.

It is a Denial of Service script written in Python and it is very effective
(produces loads > 150 on a 1000MHz PowerMac G4 running apache with static
html pages). It's been written for Unix load testing in an academic
setting. It will not be misused. Just trying to get the client/server
details worked out since the scripts have been rewritten to be more
modular... here's where I ran into problems with functions. 

Again, thanks to all for the tips.

More information about the Python-list mailing list