Re: [Ironpython-users] Using coverage.py in IronPython app

2013-04-17 Thread Jackie Sproat
Anyone used coverage.py with IronPython. If I run from command line: C:\>ipy IronPython 2.7 (2.7.0.40) on .NET 4.0.30319.17929 Type "help", "copyright", "credits" or "license" for more information. >>> import coverage :1: DeprecationWarning: object.__new__() takes no parameters >>> from coverage

Re: [Ironpython-users] Calling Python function from C# with **args?

2013-04-17 Thread Doug Blank
On Wed, Apr 17, 2013 at 11:42 AM, Jeff Hardy wrote: > On Wed, Apr 17, 2013 at 7:00 AM, Doug Blank wrote: >> IronPython users, >> >> Is there a way to call a Python function or method defined like: >> >> def func(**args): >> return args >> >> from C#? > > PythonCalls.CallWithKeywordArgs should

Re: [Ironpython-users] Calling Python function from C# with **args?

2013-04-17 Thread Jeff Hardy
On Wed, Apr 17, 2013 at 7:00 AM, Doug Blank wrote: > IronPython users, > > Is there a way to call a Python function or method defined like: > > def func(**args): > return args > > from C#? PythonCalls.CallWithKeywordArgs should do what you want. If you don't have a CodeContext handy you shoul

[Ironpython-users] Calling Python function from C# with **args?

2013-04-17 Thread Doug Blank
IronPython users, Is there a way to call a Python function or method defined like: def func(**args): return args from C#? Currently, I'm using Mono with mcs -sdk:2 (aka, .NET 3.5) but if I need to upgrade to sdk:4 (.NET 4.0) I will. Thanks for any pointers, -Doug _