Author izbyshev
Recipients izbyshev, levkivskyi
Date 2018-03-05.16:19:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520266781.34.0.467229070634.issue32999@psf.upfronthosting.co.za>
In-reply-to
Content
Demo:

>>> 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 "abc.py", line 230, in __subclasscheck__
  File "_weakrefset.py", line 84, in add
TypeError: cannot create weak reference to 'int' object
History
Date User Action Args
2018-03-05 16:19:41izbyshevsetrecipients: + izbyshev, levkivskyi
2018-03-05 16:19:41izbyshevsetmessageid: <1520266781.34.0.467229070634.issue32999@psf.upfronthosting.co.za>
2018-03-05 16:19:41izbyshevlinkissue32999 messages
2018-03-05 16:19:41izbyshevcreate