Re: Demo/sockets/throughput.py traceback

Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Thu, 17 Feb 1994 00:57:30 -0500

On Feb 16, 20:25, Jeff Blaine wrote:
>
>
> Python 1.0.1 from ftp.cwi.nl (Feb 16)
> -------------------------------------
>
> hosta> python throughput.py -s 9000
> Server ready...
>
>
> hostb> python throughput.py -c 20 hosta 9000
> Traceback (innermost last):
> File "throughput.py", line 93
> main()
> File "throughput.py", line 29
> client()
> File "throughput.py", line 72
> t1 = time.millitimer()
> AttributeError: millitimer
>

I think millitimer is obsolete, now that time.sleep( arg ) does
( or tries to do if the system supports it ) the same thing if
given a floating point arg.

I think you can just add, after "import time" :
"time.millitimer = time.sleep"

This could be another example where you would like to
be able to nest an import of the builtin time within a
time.py file than adds some compatability hacks.

- Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
- UVA Department of Molecular Physiology and Biological Physics