<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] Import modules from a zip archive containing non-ASCII characters does not work</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] Importing .NET types causes ImportExceptions (zipimport handler)</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[Status update] Setting the StdLib path</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] Import modules from a zip archive containing non-ASCII characters does not work</span> <a href="http://ironpython.codeplex.com/workitem/34571">view online</a></div><p>User vabe has commented on the issue:</p><p>"<p>Encoding is a first problem. <br>Second problem is in class SourceStringContentProvider. It uses SourceCodeReader, that does not support "Defining Python Source Code Encodings" http://www.python.org/dev/peps/pep-0263/</p><p>Attched file contains changes that work for me.</p><p>Changes:<br>1) Modified GetModuleCode (returns a byte [] instead of string)<br>2) SourceStringContentProvider replaced by MemoryStreamContentProvider (that uses context.GetSourceReader(...))</p>"</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] Importing .NET types causes ImportExceptions (zipimport handler)</span> <a href="http://ironpython.codeplex.com/workitem/34602">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"<p>FYI, the reason I need to throw an exception is this code:</p><p>```<br>private static object FindImporterForPath(CodeContext/*!*/ context, string dirname) {<br> List pathHooks = PythonContext.GetContext(context).GetSystemStateValue("path_hooks") as List;</p><p> foreach (object hook in (IEnumerable)pathHooks) {<br> try {<br> object handler = PythonCalls.Call(context, hook, dirname);</p><p> if (handler != null) {<br> return handler;<br> }<br> } catch (ImportException) {<br> // we can't handle the path<br> }<br> }</p><p>#if !SILVERLIGHT // DirectoryExists isn't implemented on Silverlight<br> if (!context.LanguageContext.DomainManager.Platform.DirectoryExists(dirname)) {<br> return new PythonImport.NullImporter(dirname);<br> }<br>#endif</p><p> return null;<br> }<br>```</p><p>The PythonCalls.Call calls the constructor of the zipimporter class, which means I have to throw an exception (ImportException) to tell Importer.cs not to use me as an importer. Any changes in that contract would require changes to core, and it could impact Python based importer schemes.</p>"</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [Status update] Setting the StdLib path</span> <a href="http://ironpython.codeplex.com/workitem/34627">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 />"Please use the mailing list for questions in the future. You can set the search path on the engine.<br />
<br />
ScriptEngine engine = Python.CreateEngine();<br />
var searchPaths = new List<string>(engine.GetSearchPaths());<br />
searchPaths.Add("/lib/ironpython/2.7.4");<br />
engine.SetSearchPaths(searchPaths);"</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="http://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>