<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 comment] Pyc generates a *.dll regardless of "/target:..." usage</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] Add Option To Pyc To Modify Stub EXE to load DLL from EXEs Path</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[Status update] Pyc bug: parameter /target will be ignored if it appears before /main</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_4">4. <span class="tocTitle">[New comment] Pyc bug: parameter /target will be ignored if it appears before /main</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_5">5. <span class="tocTitle">[Status update] Pyc bug: parameter /target will be ignored if it appears before /main</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_6">6. <span class="tocTitle">[New comment] Pyc bug: parameter /target will be ignored if it appears before /main</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_7">7. <span class="tocTitle">[Status update] pyc fails if a file contains a call to unicode</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_8">8. <span class="tocTitle">[New comment] Pyc.py and FolderBrowserDialog</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_9">9. <span class="tocTitle">[Status update] pyc.py Compile of Dictionary with tuple values generates error "CompileToMethod cannot compile constant"</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_10">10. <span class="tocTitle">[New comment] ipy.exe / pyc.py fails to create working WPF .exe on Windows Server 2008-64, .NET 4.0</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_11">11. <span class="tocTitle">[New issue] reinterpret cast of UInt32 to Int32 does not work properly</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_12">12. <span class="tocTitle">[New issue] reinterpret cast of UInt32 to Int32 does not work properly</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_13">13. <span class="tocTitle">[Status update] reinterpret cast of UInt32 to Int32 does not work properly</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_14">14. <span class="tocTitle">[Status update] Trivial: IronPython.Hosting.ResourceFile appears to be dead code</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_15">15. <span class="tocTitle">[New comment] IRONPYTHONPATH not respected for pyc.py compiled assemblies</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_16">16. <span class="tocTitle">[New comment] implement clr.GetString and clr.GetBytes as helper to convert strings to and from bytes</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_17">17. <span class="tocTitle">[Status update] Improve debugging experience</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_18">18. <span class="tocTitle">[New comment] _winreg doesn't support key names which are 256 chars long</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_19">19. <span class="tocTitle">[New comment] Need a way to have a base class in an extension which is not exposed to Python</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_20">20. <span class="tocTitle">[New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_21">21. <span class="tocTitle">[New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_22">22. <span class="tocTitle">[New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_23">23. <span class="tocTitle">[New comment] compile('#foo\n', '<stdin>', 'single') throws null ref exception</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_24">24. <span class="tocTitle">[New comment] Some path ops are not done through PlatformAdaptationLayer in IronPython.Runtime.Importer</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_25">25. <span class="tocTitle">[Status update] Desktop IronPython debugging failure - Error: Reading old stack frames, should match 3</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 comment] Pyc generates a *.dll regardless of "/target:..." usage</span> <a href="http://ironpython.codeplex.com/workitem/19456">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Fixed in 88d48b9"</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] Add Option To Pyc To Modify Stub EXE to load DLL from EXEs Path</span> <a href="http://ironpython.codeplex.com/workitem/21987">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Fixed in 83d4d1f"</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [Status update] Pyc bug: parameter /target will be ignored if it appears before /main</span> <a href="http://ironpython.codeplex.com/workitem/29696">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Active to Closed with the following comment, <br /><br />"Fixed in 88d48b9"</p></div><div class="topic"><a name="toc_issue_4"></a><div class="topicHeader"><span class="topicTitle">4. [New comment] Pyc bug: parameter /target will be ignored if it appears before /main</span> <a href="http://ironpython.codeplex.com/workitem/29696">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Fixed in 88d48b9<br /><br /><br /><br />** Closed by slide_o_mix 2/19/2012 3:48 AM"</p></div><div class="topic"><a name="toc_issue_5"></a><div class="topicHeader"><span class="topicTitle">5. [Status update] Pyc bug: parameter /target will be ignored if it appears before /main</span> <a href="http://ironpython.codeplex.com/workitem/29696">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Closed to Proposed with the following comment, <br /><br />"Forgot to move to fixed instead of closing..."</p></div><div class="topic"><a name="toc_issue_6"></a><div class="topicHeader"><span class="topicTitle">6. [New comment] Pyc bug: parameter /target will be ignored if it appears before /main</span> <a href="http://ironpython.codeplex.com/workitem/29696">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Fixed in 88d48b9"</p></div><div class="topic"><a name="toc_issue_7"></a><div class="topicHeader"><span class="topicTitle">7. [Status update] pyc fails if a file contains a call to unicode</span> <a href="http://ironpython.codeplex.com/workitem/26593">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Active to Closed with the following comment, <br /><br />"Works in 2.7.1"</p></div><div class="topic"><a name="toc_issue_8"></a><div class="topicHeader"><span class="topicTitle">8. [New comment] Pyc.py and FolderBrowserDialog</span> <a href="http://ironpython.codeplex.com/workitem/27118">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Can you please add a test case? I am wondering if this has to do with STAThread attribute on the main of the stub exe."</p></div><div class="topic"><a name="toc_issue_9"></a><div class="topicHeader"><span class="topicTitle">9. [Status update] pyc.py Compile of Dictionary with tuple values generates error "CompileToMethod cannot compile constant"</span> <a href="http://ironpython.codeplex.com/workitem/29390">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Proposed to Closed with the following comment, <br /><br />"This works in 2.7.1"</p></div><div class="topic"><a name="toc_issue_10"></a><div class="topicHeader"><span class="topicTitle">10. [New comment] ipy.exe / pyc.py fails to create working WPF .exe on Windows Server 2008-64, .NET 4.0</span> <a href="http://ironpython.codeplex.com/workitem/29028">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Have you tried on 2.7.1?"</p></div><div class="topic"><a name="toc_issue_11"></a><div class="topicHeader"><span class="topicTitle">11. [New issue] reinterpret cast of UInt32 to Int32 does not work properly</span> <a href="http://ironpython.codeplex.com/workitem/32285">view online</a></div><p>User lastonogoe has proposed the issue:</p><p>"If you need to reinterpret typed unsigned integer value as signed one, the following code is supposed to use:<br /><br />a = UInt16.MaxValue #65535, 0xFFFF<br />b = Int16(a) # -1, 0xFFFF<br />print b, type(b)<br /><br />The code works fine for pairs of UInt64/Int64 and UInt16/Int16. But in case of UInt32/Int32 it produces unexpected result. It seems that "Int32(value)" statement behaves similar to built-in int() function. More precisely, when the passed argument is bigger then max signed integer the result will be of type "long" and its value will be outside the integer range."</p></div><div class="topic"><a name="toc_issue_12"></a><div class="topicHeader"><span class="topicTitle">12. [New issue] reinterpret cast of UInt32 to Int32 does not work properly</span> <a href="http://ironpython.codeplex.com/workitem/32286">view online</a></div><p>User lastonogoe has proposed the issue:</p><p>"If you need to reinterpret typed unsigned integer value as signed one, the following code is supposed to use:<br /><br />a = UInt16.MaxValue #65535, 0xFFFF<br />b = Int16(a) # -1, 0xFFFF<br />print b, type(b)<br /><br />The code works fine for pairs of UInt64/Int64 and UInt16/Int16. But in case of UInt32/Int32 it produces unexpected result. It seems that "Int32(value)" statement behaves similar to built-in int() function. More precisely, when the passed argument is bigger then max signed integer the result will be of type "long" and its value will be outside the integer range."</p></div><div class="topic"><a name="toc_issue_13"></a><div class="topicHeader"><span class="topicTitle">13. [Status update] reinterpret cast of UInt32 to Int32 does not work properly</span> <a href="http://ironpython.codeplex.com/workitem/32286">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Proposed to Closed with the following comment, <br /><br />"Duplicate of http://ironpython.codeplex.com/workitem/32285"</p></div><div class="topic"><a name="toc_issue_14"></a><div class="topicHeader"><span class="topicTitle">14. [Status update] Trivial: IronPython.Hosting.ResourceFile appears to be dead code</span> <a href="http://ironpython.codeplex.com/workitem/23717">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Active to Closed with the following comment, <br /><br />"File does not exist anymore."</p></div><div class="topic"><a name="toc_issue_15"></a><div class="topicHeader"><span class="topicTitle">15. [New comment] IRONPYTHONPATH not respected for pyc.py compiled assemblies</span> <a href="http://ironpython.codeplex.com/workitem/26706">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"What other environment variables would be useful?"</p></div><div class="topic"><a name="toc_issue_16"></a><div class="topicHeader"><span class="topicTitle">16. [New comment] implement clr.GetString and clr.GetBytes as helper to convert strings to and from bytes</span> <a href="http://ironpython.codeplex.com/workitem/7159">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"StringOps.FromByteArray no longer exists?"</p></div><div class="topic"><a name="toc_issue_17"></a><div class="topicHeader"><span class="topicTitle">17. [Status update] Improve debugging experience</span> <a href="http://ironpython.codeplex.com/workitem/22035">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Active to Closed with the following comment, <br /><br />"IronPython Tools deprecated in favor of Python Tools for Visual Studio"</p></div><div class="topic"><a name="toc_issue_18"></a><div class="topicHeader"><span class="topicTitle">18. [New comment] _winreg doesn't support key names which are 256 chars long</span> <a href="http://ironpython.codeplex.com/workitem/28743">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Please provide a test case if possible."</p></div><div class="topic"><a name="toc_issue_19"></a><div class="topicHeader"><span class="topicTitle">19. [New comment] Need a way to have a base class in an extension which is not exposed to Python</span> <a href="http://ironpython.codeplex.com/workitem/28891">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"Does the PythonHiddenBaseClass not work?<br /><br />[PythonHiddenBaseClass]<br />public class Wrapper : IDisposable {<br /><br />}<br /><br /><br /><br />/// <summary><br /> /// Marks a class as being hidden from the Python hierarchy. This is applied to the base class<br /> /// and then all derived types will not see the base class in their hierarchy and will not be<br /> /// able to access members declaredo on the base class.<br /> /// </summary><br /> [AttributeUsage(AttributeTargets.Class)]<br /> public sealed class PythonHiddenBaseClassAttribute : Attribute {<br /> }"</p></div><div class="topic"><a name="toc_issue_20"></a><div class="topicHeader"><span class="topicTitle">20. [New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <a href="http://ironpython.codeplex.com/workitem/30263">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"It looks like the first argument is explicitly removed in the method called by the stub executable:<br /><br />PythonOps.InitializeModule:<br /><br />Dictionary<string, object> options = new Dictionary<string, object>();<br />options["Arguments"] = ArrayUtils.RemoveFirst(Environment.GetCommandLineArgs()); // remove the EXE<br /><br />I'm not sure why this is the case."</p></div><div class="topic"><a name="toc_issue_21"></a><div class="topicHeader"><span class="topicTitle">21. [New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <a href="http://ironpython.codeplex.com/workitem/30263">view online</a></div><p>User peterSchwalm has commented on the issue:</p><p>"I figured that out too.<br />Perhaps I would suggest, to remove the "RemoveFirst", but I could not figure out if this code is also run if the code is not compiled (with pyc.py). I suppose it is, because if the script is run with ipy.exe the "ipy.exe" is the first command line argument and it makes sense to remove it, so that the script name becomes the first entry in sys.argv.<br /><br />A "good" version should probably something like this:<br /><br />if (runningInCompiledEnvironment ...)<br /> options["Arguments"] = ArrayUtils.Environment.GetCommandLineArgs(); <br />else<br /> options["Arguments"] = ArrayUtils.RemoveFirst(Environment.GetCommandLineArgs()); // remove the EXE<br /><br />But I do not have an idea how "runningInCompiledEnvironment" could be implemented in this startup environment.<br /><br />"</p></div><div class="topic"><a name="toc_issue_22"></a><div class="topicHeader"><span class="topicTitle">22. [New comment] sys.args[0] dissapears in ipy-script compiled with pyc.py</span> <a href="http://ironpython.codeplex.com/workitem/30263">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"I'm fairly sure that InitializeModule (this override anyway) is not called by anything but the pyc generated stub executable, but I will make sure."</p></div><div class="topic"><a name="toc_issue_23"></a><div class="topicHeader"><span class="topicTitle">23. [New comment] compile('#foo\n', '<stdin>', 'single') throws null ref exception</span> <a href="http://ironpython.codeplex.com/workitem/30940">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"NRE comes from here:<br /><br />internal static FunctionCode FromSourceUnit(SourceUnit sourceUnit, PythonCompilerOptions options, bool register) {<br /> var code = PythonContext.CompilePythonCode(sourceUnit, options, ThrowingErrorSink.Default);<br /><br /> return ((RunnableScriptCode)code).GetFunctionCode(register);<br /> }<br /><br />code is null for this statement after parsing because its an empty statement."</p></div><div class="topic"><a name="toc_issue_24"></a><div class="topicHeader"><span class="topicTitle">24. [New comment] Some path ops are not done through PlatformAdaptationLayer in IronPython.Runtime.Importer</span> <a href="http://ironpython.codeplex.com/workitem/31603">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"This looks to be fixed."</p></div><div class="topic"><a name="toc_issue_25"></a><div class="topicHeader"><span class="topicTitle">25. [Status update] Desktop IronPython debugging failure - Error: Reading old stack frames, should match 3</span> <a href="http://ironpython.codeplex.com/workitem/24046">view online</a></div><p>User slide_o_mix has updated the issue:</p><p>Status has changed from Active to Closed with the following comment, <br /><br />"SNAP failure."</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>