This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients sfaleron, steven.daprano
Date 2018-08-06.15:13:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533568403.72.0.56676864532.issue34346@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think the description you give is very accurate. The description in the file splat.py says:

"Hangs/core dumps Python2 when instantiated"

(which is it? hang or core dump?)

but I can't replicate that. Instantiating A() is fine for me. (Tested in Python 2.7 on Linux.)

The whole business about "splat" is amusing but irrelevant. I can replicate the hang (no core dump) using this simpler example:

class B:
    def __getattr__(self, name):
        return name in dir(self)


Instantiating the class is fine, but calling dir() on it locks up:

>>> b = B()
>>> dir(b)

[1]+  Stopped                 python2.7 -E

(after typing Ctrl-Z in the xterm). Notice that B is an old-style class in this example. The same behaviour also occurs when inheriting from object.
History
Date User Action Args
2018-08-06 15:13:23steven.dapranosetrecipients: + steven.daprano, sfaleron
2018-08-06 15:13:23steven.dapranosetmessageid: <1533568403.72.0.56676864532.issue34346@psf.upfronthosting.co.za>
2018-08-06 15:13:23steven.dapranolinkissue34346 messages
2018-08-06 15:13:23steven.dapranocreate