[Python.NET] Dictionary and PyDict

Catalin Lungu lcatalin at siadv.com
Mon Feb 6 13:58:40 CET 2006


Hi all,
Why can't I import in Python the CLR.System.Collections.Generic.Dictionary assembly? I can import only System.Collections.Generic.

Another thing. I have the following finction in C#

public PyDict myfunc(PyDict PythonDict)
{
    return PythonDict;
}

and I call it from Python

dct = myfunc({"aaa":"bbb"})

I receive an error: TypeError: no method matches given arguments

Where can I find a manual with samples of use of PyDict, PyList, PyString, etc.?

Thanks in advance,
Catalin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20060206/a029df1a/attachment.htm 


More information about the PythonDotNet mailing list