Author izbyshev
Recipients izbyshev, levkivskyi
Date 2018-03-05.16:19:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

>>> from abc import ABC
>>> issubclass(1, ABC)
Segmentation fault (core dumped)

The stack trace is attached.

Before reimplementation of abc in C, the result was confusing too:

Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)]
 on win32
>>> from abc import ABC
>>> issubclass(1, ABC)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 230, in __subclasscheck__
  File "", line 84, in add
TypeError: cannot create weak reference to 'int' object
Date User Action Args
2018-03-05 16:19:41izbyshevsetrecipients: + izbyshev, levkivskyi
2018-03-05 16:19:41izbyshevsetmessageid: <>
2018-03-05 16:19:41izbyshevlinkissue32999 messages
2018-03-05 16:19:41izbyshevcreate