<span class="Apple-style-span" style="border-collapse: collapse; "><div>Anyone getting the following problem when running the current version of <a href="http://python.net" target="_blank" style="color: rgb(42, 93, 176); ">python.net</a> with python2.6?</div>
<div><br></div></span><div><span class="Apple-style-span" style="border-collapse: collapse;">C:\Documents and Settings\ethan&gt;python<br>Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on<br>
win32<br>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; from System import String<br>&gt;&gt;&gt; s = String[str](&quot;a&quot;)<br>
<br>Unhandled Exception: System.InvalidOperationException: Handle is not initialized<br>.<br>  at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)<br>  at System.Runtime.InteropServices.GCHandle.op_Explicit(IntPtr value)<br>
  at Python.Runtime.ManagedType.GetManagedObject(IntPtr ob)<br>  at Python.Runtime.Runtime.PythonArgsToTypeArray(IntPtr arg, Boolean mangleObj<br>ects)<br>  at Python.Runtime.ClassObject.type_subscript(IntPtr idx)<br>  at Python.Runtime.MetaType.mp_subscript(IntPtr tp, IntPtr idx)<br>
<br>If I try s = String(&quot;a&quot;) without the [str], it doesn&#39;t even give an error, it just quits.<br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">I spent a few minutes looking through the archives before posting, but I did not search exhaustively, so if this is a redundant post, I apologize.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">thanks,</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">-Ethan</span></div>