Author steven.daprano
Recipients DeKrain, ronaldoussoren, steven.daprano
Date 2018-09-02.23:27:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
I've tried running this code in Python 3.6:

from _struct import Struct
for i in range(100000):
    L = [Struct.__new__(Struct) for j in range(1000)]
    for s in L:
            x = s.pack_into(bytearray())
        except SystemError:

I've run it 6 times, for a total of 600 million calls to Struct.__new__ 
and pack_into, and I cannot reproduce any crash or segfault. An 
exception (SystemError) is the correct behaviour.

Is anyone able to try it under Python 3.7?

Unless somebody is able to demonstrate a segfault or core dump, or 
otherwise demonstrate a problem with the C code, I think this ticket 
ought to be closed.
Date User Action Args
2018-09-02 23:27:59steven.dapranosetrecipients: + steven.daprano, ronaldoussoren, DeKrain
2018-09-02 23:27:59steven.dapranolinkissue34543 messages
2018-09-02 23:27:59steven.dapranocreate