[IronPython] Contains() doesn't work anymore for sys.modules?

Sumit Basu sumitb at microsoft.com
Tue May 24 00:36:30 CEST 2005

IronPython.Objects.Dict dictionaries seem to be changed in a strange way
in 0.7.5...
In IronPython-0.7.4, 
>>> sys.modules.Contains("site")
in IronPython-0.7.5
>>> sys.modules.Contains("site")
IronPython.Objects.PythonValueError: bad args to this method <method#
Contains on IronPython.Objects.Dict>
   at IronPython.Objects.ReflectedMethodBase.Call(Object[] args)
   at IronPython.Objects.Ops.Call(Object func, Object arg0)
   at input_36.Run(Frame frame)
   at IronPython.Hosting.PythonEngine.DoOneInteractive(Frame topFrame)
   at IronPython.Hosting.PythonEngine.RunInteractive()
Looking at the doc string, it seems to want some sort of key-value pair
- but Contains should just take a key, no?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050523/9a3d9540/attachment.html>

More information about the Ironpython-users mailing list