[Ironpython-users] IronPython, Daily Digest 5/13/2012
no_reply at codeplex.com
no_reply at codeplex.com
Mon May 14 14:51:19 CEST 2012
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] [windows phone] passing parameters to functions
2. [New comment] [windows phone] passing parameters to functions
3. [New comment] [windows phone] passing parameters to functions
----------------------------------------------
ISSUES
1. [New issue] [windows phone] passing parameters to functions
http://ironpython.codeplex.com/workitem/32703
User oxcsnicho has proposed the issue:
"I actually encountered another issue (in addition to the 2+2.5 one that is being discovered in March, found that in archives) that seem to be a big issue for my porting work. It looks that passing parameters in functions does not work currently. Say, you can do the following:
>>> def Four():
... print 2+2
...
>>> Four()
4
but you cannot do this:
>>> def PlusFour(n)
... print 2+2+n
...
>>> Four (10)
Attempt to access the method failed:
IronPython.Runtime.PythonFunction
+FunctionCaller`1.Call1
(System.Runtime.CompilerServices.CallSite,
IronPython.Runtime.CodeContext, System.Object,
System.Object)
The C# code I was using is simple:
1.create an empty WP7.1 project;
2.create correct reference (make sure when you include the dll, you set the CopyLocal property to True)
3. in MainPage.xaml.cs, do the following
** a: add using
using Microsoft.Scripting.Hosting;
** b: initialize the engine in MainPage() constructor:
private ScriptEngine _engine = null;
public MainPage()
{
InitializeComponent();
_engine = IronPython.Hosting.Python.CreateEngine();
}
** c: execute the engine against above script:
_engine.Execute(scriptInputBox.Text);"-----------------
2. [New comment] [windows phone] passing parameters to functions
http://ironpython.codeplex.com/workitem/32703
User oxcsnicho has commented on the issue:
"attached the project that I have been using"-----------------
3. [New comment] [windows phone] passing parameters to functions
http://ironpython.codeplex.com/workitem/32703
User slide_o_mix has commented on the issue:
"I may be able to play around with this now, I just bought a Windows Phone and would like to have IronPython running on it for various reasons."
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120514/19a68f8f/attachment.html>
More information about the Ironpython-users
mailing list