<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] GetEncodings called in StringOps.cs fails using Mono</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New issue] DAQMX Code which works fine with "Python 2.7.3" giving issue with IRONPYTHON</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[New issue] DAQmxCreateDOChan() code which works in python does not works with ironpython</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_4">4. <span class="tocTitle">[New issue] Importing & reloading module leaks memory</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] GetEncodings called in StringOps.cs fails using Mono</span> <a href="http://ironpython.codeplex.com/workitem/33646">view online</a></div><p>User jdhardy has commented on the issue:</p><p>"If you do get it working, a github pull request or a patch on here is the easiest way for me to incorporate the fix."</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New issue] DAQMX Code which works fine with "Python 2.7.3" giving issue with IRONPYTHON</span> <a href="http://ironpython.codeplex.com/workitem/33648">view online</a></div><p>User suma_putani has proposed the issue:</p><p>"Hello,<br /><br />We are using National Instruments (NI) Driver 6501 for switch Testing. Below is the code which is written in Python 2.7.3. The same code does not work with Iron Python. <br /><br /><br />import ctypes<br />import numpy<br />import sys<br />import os <br />import time<br /><br />#------------- Functions ------------------------------------------<br /><br /># Error Writing module.<br />def WriteError(ErrorCode):<br /> if ErrorCode &lt; 0:<br /> BufSize = 1000<br /> Buf = ctypes.create_string_buffer('\000' * BufSize)<br /> nidaq.DAQmxGetErrorString(ErrorCode, ctypes.byref(Buf), BufSize)<br /> raise RuntimeError('nidaq call failed with error %d: %s'%(ErrorCode,repr(Buf.value)))<br /> return ErrorCode<br /><br />#------------- Functions ------------------------------<br /><br />int32 = ctypes.c_long<br />uint8 = ctypes.c_uint8<br />uInt32 = ctypes.c_ulong<br />uInt64 = ctypes.c_ulonglong<br />float64 = ctypes.c_double<br />TaskHandle = uInt32<br />Port = uInt32<br />ChannelValue = Port(0x77)<br /><br /># load DLL<br />nidaq = ctypes.windll.nicaiu<br /><br />DAQmx_Val_GroupByChannel = 0<br />DAQmx_Val_ChanForAllLines = 1<br /><br />taskHandle0 = TaskHandle(0)<br />CreateChan = &quot;Dev5/port0/line7:0&quot;<br /><br />Data = numpy.zeros((8,),dtype=numpy.uint8)<br />nidaq.DAQmxCreateTask(&quot;&quot;,ctypes.byref(taskHandle0))<br />Result = WriteError(nidaq.DAQmxCreateDOChan(taskHandle0,CreateChan,&quot;&quot;, DAQmx_Val_ChanForAllLines))<br />Result = WriteError(nidaq.DAQmxWriteDigitalU32(taskHandle0,1,1,float64(10.0),DAQmx_Val_GroupByChannel, ctypes.byref(ChannelValue),None,None))<br />Result = WriteError(nidaq.DAQmxReadDigitalLines(taskHandle0,-1,float64(10.0),DAQmx_Val_GroupByChannel,Data.ctypes.data, 8,None,None,None))<br /><br />print Data<br />str1 = Data[0:8]<br />str2 = &quot;&quot;<br />for i in str1:<br />        str2 = str2+str(i)<br />print hex(int(str2,2))<br /><br />#time.sleep(10)<br />nidaq.DAQmxStopTask(taskHandle0)<br />nidaq.DAQmxClearTask(taskHandle0)<br /><br />---------------------------------------------------------------------------------------<br />Output in Python 2.7.3 :<br />[0 1 1 1 0 1 1 1]<br />0x77<br /><br />Output in IronPython 2.7.3 :<br /><br />C:\IronPython 2.7&gt;IPY read.py<br /><br />Traceback (most recent call last):<br />  File &quot;read.py&quot;, line 33, in <br />  File &quot;read.py&quot;, line 12, in WriteError<br />RuntimeError: nidaq call failed with error -200170: 'Physical channel specified<br />does not exist on this device.\n\nRefer to the documentation for channels availa<br />ble on this device.'<br /> <br />I don't think it is something to do with Physical Channel as the same code works fine for Python 2.7.3. <br />Let me know if this is a Iron Python Issue. If so how to resolve it.<br /><br />Or If I need to refer to Ctypes variable in a different way."</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [New issue] DAQmxCreateDOChan() code which works in python does not works with ironpython</span> <a href="http://ironpython.codeplex.com/workitem/33649">view online</a></div><p>User jayprakash has proposed the issue:</p><p>"My this line of code works well when i execute it in python:<br />nidaq.DAQmxCreateDOChan(taskHandle0,CreateChan,&quot;&quot;, DAQmx_Val_ChanForAllLines)<br /><br />But when i execute the same come in ironpython i get an error code -200170(physical channel specified does not exist on this device)<br /><br />I am clueless about how to solve this issue."</p></div><div class="topic"><a name="toc_issue_4"></a><div class="topicHeader"><span class="topicTitle">4. [New issue] Importing & reloading module leaks memory</span> <a href="http://ironpython.codeplex.com/workitem/33650">view online</a></div><p>User ripedbone has proposed the issue:</p><p>"When I'm importing a module with __import__ and then reloading it with reload, it seems to leave the whole module into memory.<br /><br />Here's a simple example code how to reproduce this. It's just importing and reloading a module which has two classes and the other one has a long list of methods just to get the module size bigger.<br /><br />Garbage collection doesn't do anything with the memory until memory usage is ~600 Mb, which is quite strange. Furthermore, this maximum memory size is directly linked to the size of the imported module. Does anyone have an idea why? Or should I do the importing and reloading differently?<br /><br />Just run attached import_test.py to reproduce the problem."</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>