<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Arial",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi IronPython user message board,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">I have defined three classes in a C# project:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">public</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">class</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">BaseClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">public</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">class</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">SubClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"> :
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">BaseClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">{<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">}<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">public</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white">class</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">SubClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><T> :
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">BaseClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">}</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">The following IronPython code throws a TypeErrorException (IronPython 2.7):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">issubclass(</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">SubClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">,
</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:#2B91AF;background:white;mso-highlight:white">BaseClass</span><span lang="EN-US" style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white">)</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Exception-Message: issubclass() arg 1 must be a class<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Everything works fine when I just remove the generic class or move it to another namespace.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Why? What can I do to make this work?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">  -- Jan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE">_____________________________________________________</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"> </span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">i.A. Jan Pilger</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">- Development Software -<o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE">_____________________________________________________</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">extension:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">+49 8035 8704-543</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">phone:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">+49 8035 8704-0</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">fax:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">+49 8035 1010</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">e-mail:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><a href="mailto:j.pilger@steinbichler.de"><span style="color:#3F9703">j.pilger@steinbichler.de</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">web:</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
<td width="200" style="width:150.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><a href="http://www.steinbichler.de"><span style="color:#3F9703">www.steinbichler.de</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="117" style="width:87.75pt;padding:0cm 0cm 0cm 0cm"></td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://www.steinbichler.de/"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="194" height="94" id="_x0000_i1031" src="cid:image002.jpg@01D0F7AC.79059930" alt="logo"></span></a><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black;mso-fareast-language:DE"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE">Steinbichler Optotechnik GmbH<br>
Georg-Wiesböck-Ring 12, 83115 Neubeuern - Germany<br>
<br>
CEO: Dr. Marcus Steinbichler<br>
HRB 4836 Traunstein<br>
</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE">_____________________________________________________</span><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:DE"><br>
<br>
</span><a href="http://www.facebook.com/steinbichleroptotechnik"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1030" src="cid:image003.gif@01D0F7AB.9B1AAF70" alt="Facebook"></span></a><a href="http://www.linkedin.com/company/steinbichler-optotechnik-gmbh"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1029" src="cid:image004.gif@01D0F7AB.9B1AAF70" alt="LinkedIn"></span></a><a href="http://plus.google.com/102565731328169451720/posts"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1028" src="cid:image005.gif@01D0F7AB.9B1AAF70" alt="Google+"></span></a><a href="http://twitter.com/steinbichler_"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1027" src="cid:image006.gif@01D0F7AB.9B1AAF70" alt="Twitter"></span></a><a href="http://www.xing.com/companies/steinbichleroptotechnikgmbh"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1026" src="cid:image007.gif@01D0F7AB.9B1AAF70" alt="Xing"></span></a><a href="http://www.youtube.com/user/steinbichler100"><span style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#3F9703;mso-fareast-language:DE;text-decoration:none"><img border="0" width="25" height="25" id="_x0000_i1025" src="cid:image008.gif@01D0F7AB.9B1AAF70" alt="YouTube"></span></a><o:p></o:p></p>
</div>
</body>
</html>