[issue30570] issubclass segfaults on objects with weird __getattr__
Louie Lu
report at bugs.python.org
Sun Jun 4 22:24:27 EDT 2017
Louie Lu added the comment:
I can reproduce this bugs on 3.7, Linux.
Python 3.7.0a0 (heads/master:d3bedf356a, Jun 5 2017, 10:21:52)
[GCC 6.3.1 20170306] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> class Foo(object):
... def __getattr__(self, attr):
... return (self, None)
...
>>> issubclass(Foo(), int)
[1] 21897 segmentation fault (core dumped) ./python
----------
nosy: +louielu
versions: +Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30570>
_______________________________________
More information about the Python-bugs-list
mailing list