[Ironpython-users] issubclass throws TypeErrorException

Pilger Jan J.Pilger at steinbichler.de
Fri Sep 25 16:08:54 CEST 2015


Hi IronPython user message board,

I have defined three classes in a C# project:

public class BaseClass
{
}

public class SubClass : BaseClass
{
}

public class SubClass<T> : BaseClass
{
}

The following IronPython code throws a TypeErrorException (IronPython 2.7):

issubclass(SubClass, BaseClass)

Exception-Message: issubclass() arg 1 must be a class

Everything works fine when I just remove the generic class or move it to another namespace.

Why? What can I do to make this work?

Regards
  -- Jan

_____________________________________________________



i.A. Jan Pilger

- Development Software -

_____________________________________________________


extension:

+49 8035 8704-543

phone:

+49 8035 8704-0

fax:

+49 8035 1010

e-mail:

j.pilger at steinbichler.de<mailto:j.pilger at steinbichler.de>

web:

www.steinbichler.de<http://www.steinbichler.de>



[logo]<http://www.steinbichler.de/>

Steinbichler Optotechnik GmbH
Georg-Wiesböck-Ring 12, 83115 Neubeuern - Germany

CEO: Dr. Marcus Steinbichler
HRB 4836 Traunstein
_____________________________________________________

[Facebook]<http://www.facebook.com/steinbichleroptotechnik>[LinkedIn]<http://www.linkedin.com/company/steinbichler-optotechnik-gmbh>[Google+]<http://plus.google.com/102565731328169451720/posts>[Twitter]<http://twitter.com/steinbichler_>[Xing]<http://www.xing.com/companies/steinbichleroptotechnikgmbh>[YouTube]<http://www.youtube.com/user/steinbichler100>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 1156 bytes
Desc: image003.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 1099 bytes
Desc: image004.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.gif
Type: image/gif
Size: 1139 bytes
Desc: image005.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.gif
Type: image/gif
Size: 617 bytes
Desc: image006.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.gif
Type: image/gif
Size: 1028 bytes
Desc: image007.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.gif
Type: image/gif
Size: 1172 bytes
Desc: image008.gif
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment-0005.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4008 bytes
Desc: image002.jpg
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150925/c2742aa2/attachment.jpg>


More information about the Ironpython-users mailing list