<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] 2.7.2.1&#58; ast.py fails on Lib&#47;subprocess.py</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] 2.7.2.1&#58; ast.py fails on Lib&#47;subprocess.py</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[New comment] pyc.py&#58; generates exes which fail on using std python libs</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_4">4. <span class="tocTitle">[New comment] pyc.py&#58; generates exes which fail on using std python libs</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_5">5. <span class="tocTitle">[New issue] Func&#60;object&#62; coersions in IList</span>&nbsp;<span class="anchorMarker">&darr;</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] 2.7.2.1&#58; ast.py fails on Lib&#47;subprocess.py</span> <a href="http://ironpython.codeplex.com/workitem/32446">view online</a></div><p>User ddewaleffe has proposed the issue:</p><p>"Parsing with ast module fails in subprocess.py&#58;<br /><br />bash-3.2&#36; ipy ipy-bug.py<br />Parsing file&#58; c&#58;&#92;s&#92;ipy27&#92;Lib&#92;subprocess.py<br />Got exception while parsing<br />Traceback &#40;most recent call last&#41;&#58;<br />  File &#34;ipy-bug.py&#34;, line 8, in &#60;module&#62;<br />    root&#61;ast.parse&#40;src,filename&#41;<br />  File &#34;C&#58;&#92;s&#92;ipy27&#92;Lib&#92;ast.py&#34;, line 37, in parse<br />    return compile&#40;source, filename, mode, PyCF_ONLY_AST&#41;<br />TypeError&#58; Unexpected expression type&#58; IronPython.Compiler.Ast.SetExpression<br />bash-3.2&#36;<br /><br />Attached is the way to reproduce &#40;module path to the file&#41;..."</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] 2.7.2.1&#58; ast.py fails on Lib&#47;subprocess.py</span> <a href="http://ironpython.codeplex.com/workitem/32446">view online</a></div><p>User ddewaleffe has commented on the issue:</p><p>"Also fails in random.py&#58;<br />Parsing file&#58; C&#58;&#92;s&#92;ipy27&#92;Lib&#92;random.py<br />Got exception while parsing or visiting nodes&#58; returning what we have so far...<br />Traceback &#40;most recent call last&#41;&#58;<br />  File &#34;C&#58;&#92;Users&#92;ddw&#92;Documents&#92;0-dropbox&#92;My Dropbox&#92;Prg&#92;ipy&#92;finddeps.py&#34;, line 55, in dire<br />ct_deps<br />    root&#61;ast.parse&#40;src,self.filename&#41;<br />  File &#34;C&#58;&#92;s&#92;ipy27&#92;Lib&#92;ast.py&#34;, line 37, in parse<br />    return compile&#40;source, filename, mode, PyCF_ONLY_AST&#41;<br />ValueError&#58; Unexpected PyOperator&#58; TrueDivide<br />Parameter name&#58; op<br /><br />Probably good to add a test that tries parsing all the source libs provided ..."</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [New comment] pyc.py&#58; generates exes which fail on using std python libs</span> <a href="http://ironpython.codeplex.com/workitem/32420">view online</a></div><p>User ddewaleffe has commented on the issue:</p><p>"I attach findeps.py and my modified pyc.py &#40;packaged in zip&#41;<br /><br />This relies on ast.py to recursively find imports and generate a list of files to be compiled along the main ones.<br />It works for the small examples I tried.<br />It may miss dependencies if ast.py fails to parse a source file &#40;e.g&#58; subprocess.py, random.py&#41;<br />"</p></div><div class="topic"><a name="toc_issue_4"></a><div class="topicHeader"><span class="topicTitle">4. [New comment] pyc.py&#58; generates exes which fail on using std python libs</span> <a href="http://ironpython.codeplex.com/workitem/32420">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"What license would you attribute to finddeps.py&#63; I think we would need it something similar to Apache in order to include it."</p></div><div class="topic"><a name="toc_issue_5"></a><div class="topicHeader"><span class="topicTitle">5. [New issue] Func&#60;object&#62; coersions in IList</span> <a href="http://ironpython.codeplex.com/workitem/32451">view online</a></div><p>User dsblank has proposed the issue:</p><p>"These two C&#35; functions behave very differently when passed IronPython functions &#40;PythonFunction, builtin, lambda, etc&#41;&#58;<br /><br />public void function1&#40;params Func&#60;object&#62; &#91;&#93; functions&#41; &#123;<br />   foreach &#40;Func&#60;object&#62; function in functions&#41; &#123;<br />       function&#40;&#41;&#59;<br />   &#125;<br />&#125;<br />public void function2&#40;IList&#60;Func&#60;object&#62;&#62; functions&#41; &#123;<br />   foreach &#40;Func&#60;object&#62; function in functions&#41; &#123;<br />       function&#40;&#41;&#59;<br />   &#125;<br />&#125;<br /><br />The first works as expected and executes the code. The second can&#39;t convert the IronPython function to a Func&#60;object&#62;.<br /><br />Workaround&#58;<br /><br />public void function3 &#40;IList&#60;dynamic&#62; functions&#41; &#123;<br />    foreach &#40;dynamic function in functions&#41; &#123;<br />         Func&#60;object&#62; func &#61; IronPython.Runtime.Converter.Convert&#60;Func&#60;object&#62;&#62;&#40;function&#41;&#59;<br />         func&#40;&#41;&#59;<br />    &#125;<br />&#125;<br /><br />&#91;Tested in MonoDevelop for .NET 4 on Windows7 64-bit. Need to include System.Core and Microsoft.CSharp.&#93;<br /><br />Dino says in mailing list Mar 17, 2012&#58;<br /><br />&#34;&#34;&#34;<br />...this doesn&#39;t so much deal with &#91;two different paths&#93; rather than how our IList&#60;T&#62; wrapper is implemented in ConversionWrappers.cs. The indexer is just doing a C&#35; cast from the value to the T type.  That could easily be changed to do a full Python conversion.<br /><br />I think doing an is check first and only doing the conversion if it&#39;s not already the proper type would be an alright change.  But it could be a little surprising in that sometimes you could get a new instance each time you access an element &#40;e.g. a new delegate could be created each time&#41;.<br />&#34;&#34;&#34;<br />-Doug"</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>