[IronPython] Accessing static properties in 2.0b3
TraumaPony
pontheangelofdeath at gmail.com
Wed Jul 9 05:50:47 CEST 2008
Hi, I'm having trouble accessing static properties in my code. Here's what I
have:
import clr
clr.AddReference("System.Threading")
def CurrentTask():
from System.Threading.Tasks import Task
return Task.CurrentTask
def Pause(timeout):
CurrentTask().Wait(timeout)
However, when I call CurrentTask(), I get an error:
An unhandled exception of type 'System.MissingMemberException' occurred in
Unknown Module.
Additional information: 'type' object has no attribute 'CurrentTask'
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080709/e3154e6b/attachment.html>
More information about the Ironpython-users
mailing list