Hi,

I'm developing a C# API that will be exposed to users via IronPython. I'm a
bit confused on what types of collections should the API provide through
its public interface (both as input and output parameters of methods and as
properties).

For example, what type is most suitable for exposing lists? Should I use
IronPython.Runtime.List or can I reuse standard .NET generic lists? I want
the API to have the Python look and feel, but on the other hand in some
cases exposing IronPython.Runtime.List means I have to construct&fill it
before passing it out (and performance is important in the case of this
API).

In terms of Python usage is there any real difference between
IronPython.Runtime collections and .NET ones? Do .NET collections provide
the same set of access methods and properties as standard Python
collections?

Thanks,
Igor
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to