<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New issue] [windows phone] passing parameters to functions</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] [windows phone] passing parameters to functions</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[New comment] [windows phone] passing parameters to functions</span> <span class="anchorMarker">↓</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New issue] [windows phone] passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User oxcsnicho has proposed the issue:</p><p>"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:<br /><br />>>> def Four():<br />... print 2+2<br />...<br />>>> Four()<br />4<br /><br />but you cannot do this:<br /><br />>>> def PlusFour(n)<br />... print 2+2+n<br />...<br />>>> Four (10)<br />Attempt to access the method failed:<br />IronPython.Runtime.PythonFunction<br />+FunctionCaller`1.Call1<br />(System.Runtime.CompilerServices.CallSite,<br />IronPython.Runtime.CodeContext, System.Object,<br />System.Object)<br /><br />The C# code I was using is simple:<br /><br />1.create an empty WP7.1 project;<br />2.create correct reference (make sure when you include the dll, you set the CopyLocal property to True)<br />3. in MainPage.xaml.cs, do the following<br />** a: add using<br /><br />using Microsoft.Scripting.Hosting;<br /><br />** b: initialize the engine in MainPage() constructor:<br /><br />private ScriptEngine _engine = null;<br />public MainPage()<br />{<br /> InitializeComponent();<br /> _engine = IronPython.Hosting.Python.CreateEngine();<br />}<br /><br />** c: execute the engine against above script:<br /><br /> _engine.Execute(scriptInputBox.Text);"</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] [windows phone] passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User oxcsnicho has commented on the issue:</p><p>"attached the project that I have been using"</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [New comment] [windows phone] passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"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."</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="https://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>