Message323212
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. |
|
Date |
User |
Action |
Args |
2018-08-06 15:13:23 | steven.daprano | set | recipients:
+ steven.daprano, sfaleron |
2018-08-06 15:13:23 | steven.daprano | set | messageid: <1533568403.72.0.56676864532.issue34346@psf.upfronthosting.co.za> |
2018-08-06 15:13:23 | steven.daprano | link | issue34346 messages |
2018-08-06 15:13:23 | steven.daprano | create | |
|