[IronPython] Problem with Thread.Sleep
Michael Foord
fuzzyman at voidspace.org.uk
Mon Feb 9 17:21:35 CET 2009
Carl Trachte wrote:
> Hello.
>
> I'm a bit late to the 2.0 party, but I'm trying to upgrade my environment.
>
> This code fails:
>
>
>>>> from System.Threading import Thread
>>>> Thread.Sleep(3000)
>>>>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "C:\Program Files\IronPython 2.0\Lib\warnings.py", line 61, in warn
> File "C:\Program Files\IronPython 2.0\Lib\warnings.py", line 99, in
> warn_explicit
> TypeError: getlines() takes exactly 1 argument (2 given)
>
> I'm not a threading expert. Basically I want the program to pause for
> a few seconds. Am I doing something wrong, or do I have something set
> up wrong?
>
> Thanks in advance.
>
>
Thread.CurrentThread.Join(3000) will have the same effect, but that is a
very odd error.
Michael
> Carl T.
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list